In a two sided document, is it possible to put a float on the left/right side?
Suppose I have two big float environments, e.g figures, and I want to display one of them on the left page and the other one on the right page. This happens because I'm more interested in the easiness of comparing the figures than having them near where they are defined.
What I could do right now is to set the specifier to p
for both environments (not really needed since they are big enough to be placed in a float page by default), look where they are placed and, if the position is not what I desired, i.e. the first figure on the right page and the second on the next left page, change where I include the figures in the code.
This approach is annoying for two reasons:
- Moving where I include the figures in the code just to obtain the right result means that sometimes in order to put the figures in the right place in the document I have to put them in another section in the code. The result is a wrong labelling.
- If I add/remove content before that page the way they are displayed in the document could change again. Thus, I have to continuously move these figures until I have completed the document or I have to put them only in the end.
There is a way to say if a given figure must go on a left/right page? Alternatively, there is a way to define a double float page starting from a left page?
floats
add a comment |
Suppose I have two big float environments, e.g figures, and I want to display one of them on the left page and the other one on the right page. This happens because I'm more interested in the easiness of comparing the figures than having them near where they are defined.
What I could do right now is to set the specifier to p
for both environments (not really needed since they are big enough to be placed in a float page by default), look where they are placed and, if the position is not what I desired, i.e. the first figure on the right page and the second on the next left page, change where I include the figures in the code.
This approach is annoying for two reasons:
- Moving where I include the figures in the code just to obtain the right result means that sometimes in order to put the figures in the right place in the document I have to put them in another section in the code. The result is a wrong labelling.
- If I add/remove content before that page the way they are displayed in the document could change again. Thus, I have to continuously move these figures until I have completed the document or I have to put them only in the end.
There is a way to say if a given figure must go on a left/right page? Alternatively, there is a way to define a double float page starting from a left page?
floats
Related: How to float until on left (or right) page?
– Martin Scharrer♦
Dec 30 '18 at 15:29
add a comment |
Suppose I have two big float environments, e.g figures, and I want to display one of them on the left page and the other one on the right page. This happens because I'm more interested in the easiness of comparing the figures than having them near where they are defined.
What I could do right now is to set the specifier to p
for both environments (not really needed since they are big enough to be placed in a float page by default), look where they are placed and, if the position is not what I desired, i.e. the first figure on the right page and the second on the next left page, change where I include the figures in the code.
This approach is annoying for two reasons:
- Moving where I include the figures in the code just to obtain the right result means that sometimes in order to put the figures in the right place in the document I have to put them in another section in the code. The result is a wrong labelling.
- If I add/remove content before that page the way they are displayed in the document could change again. Thus, I have to continuously move these figures until I have completed the document or I have to put them only in the end.
There is a way to say if a given figure must go on a left/right page? Alternatively, there is a way to define a double float page starting from a left page?
floats
Suppose I have two big float environments, e.g figures, and I want to display one of them on the left page and the other one on the right page. This happens because I'm more interested in the easiness of comparing the figures than having them near where they are defined.
What I could do right now is to set the specifier to p
for both environments (not really needed since they are big enough to be placed in a float page by default), look where they are placed and, if the position is not what I desired, i.e. the first figure on the right page and the second on the next left page, change where I include the figures in the code.
This approach is annoying for two reasons:
- Moving where I include the figures in the code just to obtain the right result means that sometimes in order to put the figures in the right place in the document I have to put them in another section in the code. The result is a wrong labelling.
- If I add/remove content before that page the way they are displayed in the document could change again. Thus, I have to continuously move these figures until I have completed the document or I have to put them only in the end.
There is a way to say if a given figure must go on a left/right page? Alternatively, there is a way to define a double float page starting from a left page?
floats
floats
edited Dec 30 '18 at 14:57
Alan Munn
159k28425701
159k28425701
asked Dec 7 '18 at 15:56
gvgramaziogvgramazio
1,447521
1,447521
Related: How to float until on left (or right) page?
– Martin Scharrer♦
Dec 30 '18 at 15:29
add a comment |
Related: How to float until on left (or right) page?
– Martin Scharrer♦
Dec 30 '18 at 15:29
Related: How to float until on left (or right) page?
– Martin Scharrer♦
Dec 30 '18 at 15:29
Related: How to float until on left (or right) page?
– Martin Scharrer♦
Dec 30 '18 at 15:29
add a comment |
1 Answer
1
active
oldest
votes
On a good day you could try afterpage
, which isn't the most stable of packages but could be used to automatically get to the start of the next two page spread, at which point you can add the two figures.
documentclass[a5paper,twoside]{article}
defzz{One two three four five six. stepcounter{enumi} Roman{enumi}, roman{enumi}, seven eight nine ten. }
defzzz{zzzz red blue green theinputlineno, yellow. zzzzzzparzzzzzz}
usepackage{afterpage}
begin{document}
begin{titlepage}
zzz
end{titlepage}
section{One}
zzz zzzzz
section{Two}
zz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzz zz zzzzzzzzzzzzzzzzzzzzzzzzzz
section{Three}
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zz zzzzzz zz zz zzz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzzzzzzzzzzzzzzzzzzzzzzz
section{four}
zz zzzzzzzzzzzz zz zz zzz
zz zzzzzzzzzzzz zz zz zzz
end{document}
You could have said that you have written it, I discovered it reading your documentation. You are definitely too modest. Thanks for your suggestion, I will give it a try. Just one more question: what could be the instability in this use case?
– gvgramazio
Dec 8 '18 at 10:51
see the footnote on page 1 of the afterpage doc, which decribed the status in 1992 or whenever it was, status hasn't really changed, It pokes in to parts of latex that were never intended to be poked and I never thought anyone would use it, but it seems people use it quite a bit so perhaps it works better than it should....
– David Carlisle
Dec 8 '18 at 18:49
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463714%2fin-a-two-sided-document-is-it-possible-to-put-a-float-on-the-left-right-side%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
On a good day you could try afterpage
, which isn't the most stable of packages but could be used to automatically get to the start of the next two page spread, at which point you can add the two figures.
documentclass[a5paper,twoside]{article}
defzz{One two three four five six. stepcounter{enumi} Roman{enumi}, roman{enumi}, seven eight nine ten. }
defzzz{zzzz red blue green theinputlineno, yellow. zzzzzzparzzzzzz}
usepackage{afterpage}
begin{document}
begin{titlepage}
zzz
end{titlepage}
section{One}
zzz zzzzz
section{Two}
zz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzz zz zzzzzzzzzzzzzzzzzzzzzzzzzz
section{Three}
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zz zzzzzz zz zz zzz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzzzzzzzzzzzzzzzzzzzzzzz
section{four}
zz zzzzzzzzzzzz zz zz zzz
zz zzzzzzzzzzzz zz zz zzz
end{document}
You could have said that you have written it, I discovered it reading your documentation. You are definitely too modest. Thanks for your suggestion, I will give it a try. Just one more question: what could be the instability in this use case?
– gvgramazio
Dec 8 '18 at 10:51
see the footnote on page 1 of the afterpage doc, which decribed the status in 1992 or whenever it was, status hasn't really changed, It pokes in to parts of latex that were never intended to be poked and I never thought anyone would use it, but it seems people use it quite a bit so perhaps it works better than it should....
– David Carlisle
Dec 8 '18 at 18:49
add a comment |
On a good day you could try afterpage
, which isn't the most stable of packages but could be used to automatically get to the start of the next two page spread, at which point you can add the two figures.
documentclass[a5paper,twoside]{article}
defzz{One two three four five six. stepcounter{enumi} Roman{enumi}, roman{enumi}, seven eight nine ten. }
defzzz{zzzz red blue green theinputlineno, yellow. zzzzzzparzzzzzz}
usepackage{afterpage}
begin{document}
begin{titlepage}
zzz
end{titlepage}
section{One}
zzz zzzzz
section{Two}
zz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzz zz zzzzzzzzzzzzzzzzzzzzzzzzzz
section{Three}
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zz zzzzzz zz zz zzz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzzzzzzzzzzzzzzzzzzzzzzz
section{four}
zz zzzzzzzzzzzz zz zz zzz
zz zzzzzzzzzzzz zz zz zzz
end{document}
You could have said that you have written it, I discovered it reading your documentation. You are definitely too modest. Thanks for your suggestion, I will give it a try. Just one more question: what could be the instability in this use case?
– gvgramazio
Dec 8 '18 at 10:51
see the footnote on page 1 of the afterpage doc, which decribed the status in 1992 or whenever it was, status hasn't really changed, It pokes in to parts of latex that were never intended to be poked and I never thought anyone would use it, but it seems people use it quite a bit so perhaps it works better than it should....
– David Carlisle
Dec 8 '18 at 18:49
add a comment |
On a good day you could try afterpage
, which isn't the most stable of packages but could be used to automatically get to the start of the next two page spread, at which point you can add the two figures.
documentclass[a5paper,twoside]{article}
defzz{One two three four five six. stepcounter{enumi} Roman{enumi}, roman{enumi}, seven eight nine ten. }
defzzz{zzzz red blue green theinputlineno, yellow. zzzzzzparzzzzzz}
usepackage{afterpage}
begin{document}
begin{titlepage}
zzz
end{titlepage}
section{One}
zzz zzzzz
section{Two}
zz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzz zz zzzzzzzzzzzzzzzzzzzzzzzzzz
section{Three}
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zz zzzzzz zz zz zzz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzzzzzzzzzzzzzzzzzzzzzzz
section{four}
zz zzzzzzzzzzzz zz zz zzz
zz zzzzzzzzzzzz zz zz zzz
end{document}
On a good day you could try afterpage
, which isn't the most stable of packages but could be used to automatically get to the start of the next two page spread, at which point you can add the two figures.
documentclass[a5paper,twoside]{article}
defzz{One two three four five six. stepcounter{enumi} Roman{enumi}, roman{enumi}, seven eight nine ten. }
defzzz{zzzz red blue green theinputlineno, yellow. zzzzzzparzzzzzz}
usepackage{afterpage}
begin{document}
begin{titlepage}
zzz
end{titlepage}
section{One}
zzz zzzzz
section{Two}
zz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzz zz zzzzzzzzzzzzzzzzzzzzzzzzzz
section{Three}
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zz zzzzzz zz zz zzz
afterpage{%
ifoddvalue{page}relax
expandafter
afterpage
fi
{begin{figure}[p]
raggedright
rule{.7textwidth}{.7textheight}
caption{on the left}
end{figure}
begin{figure}[p]
raggedleft
rule{.7textwidth}{.7textheight}
caption{on the right}
end{figure}}}
zzzzzzzzzzzzzzzzzzzzzzzz
section{four}
zz zzzzzzzzzzzz zz zz zzz
zz zzzzzzzzzzzz zz zz zzz
end{document}
answered Dec 7 '18 at 22:27
David CarlisleDavid Carlisle
483k4011171858
483k4011171858
You could have said that you have written it, I discovered it reading your documentation. You are definitely too modest. Thanks for your suggestion, I will give it a try. Just one more question: what could be the instability in this use case?
– gvgramazio
Dec 8 '18 at 10:51
see the footnote on page 1 of the afterpage doc, which decribed the status in 1992 or whenever it was, status hasn't really changed, It pokes in to parts of latex that were never intended to be poked and I never thought anyone would use it, but it seems people use it quite a bit so perhaps it works better than it should....
– David Carlisle
Dec 8 '18 at 18:49
add a comment |
You could have said that you have written it, I discovered it reading your documentation. You are definitely too modest. Thanks for your suggestion, I will give it a try. Just one more question: what could be the instability in this use case?
– gvgramazio
Dec 8 '18 at 10:51
see the footnote on page 1 of the afterpage doc, which decribed the status in 1992 or whenever it was, status hasn't really changed, It pokes in to parts of latex that were never intended to be poked and I never thought anyone would use it, but it seems people use it quite a bit so perhaps it works better than it should....
– David Carlisle
Dec 8 '18 at 18:49
You could have said that you have written it, I discovered it reading your documentation. You are definitely too modest. Thanks for your suggestion, I will give it a try. Just one more question: what could be the instability in this use case?
– gvgramazio
Dec 8 '18 at 10:51
You could have said that you have written it, I discovered it reading your documentation. You are definitely too modest. Thanks for your suggestion, I will give it a try. Just one more question: what could be the instability in this use case?
– gvgramazio
Dec 8 '18 at 10:51
see the footnote on page 1 of the afterpage doc, which decribed the status in 1992 or whenever it was, status hasn't really changed, It pokes in to parts of latex that were never intended to be poked and I never thought anyone would use it, but it seems people use it quite a bit so perhaps it works better than it should....
– David Carlisle
Dec 8 '18 at 18:49
see the footnote on page 1 of the afterpage doc, which decribed the status in 1992 or whenever it was, status hasn't really changed, It pokes in to parts of latex that were never intended to be poked and I never thought anyone would use it, but it seems people use it quite a bit so perhaps it works better than it should....
– David Carlisle
Dec 8 '18 at 18:49
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463714%2fin-a-two-sided-document-is-it-possible-to-put-a-float-on-the-left-right-side%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Related: How to float until on left (or right) page?
– Martin Scharrer♦
Dec 30 '18 at 15:29