Split vertical spacing in two continuity pages
I want to construct a macro named vs
which typeset a constant vertical spacing, e.g. vs{40em}
will get 40em height of white spacing. I know there are many ways -- vskip
, vspace
, etc... -- to achieve this. But, all these methods fail if encountering pagebreak, as shown in my attached figure produced by the following MWE. Anyone can help me with this?
MWE:
documentclass{article}
usepackage{geometry}
geometry{showframe}
begin{document}
some text.vskip10em
question 1...vskip40em
question 2...vskip40em
question 3...vskip40em
end{document}
spacing
add a comment |
I want to construct a macro named vs
which typeset a constant vertical spacing, e.g. vs{40em}
will get 40em height of white spacing. I know there are many ways -- vskip
, vspace
, etc... -- to achieve this. But, all these methods fail if encountering pagebreak, as shown in my attached figure produced by the following MWE. Anyone can help me with this?
MWE:
documentclass{article}
usepackage{geometry}
geometry{showframe}
begin{document}
some text.vskip10em
question 1...vskip40em
question 2...vskip40em
question 3...vskip40em
end{document}
spacing
add a comment |
I want to construct a macro named vs
which typeset a constant vertical spacing, e.g. vs{40em}
will get 40em height of white spacing. I know there are many ways -- vskip
, vspace
, etc... -- to achieve this. But, all these methods fail if encountering pagebreak, as shown in my attached figure produced by the following MWE. Anyone can help me with this?
MWE:
documentclass{article}
usepackage{geometry}
geometry{showframe}
begin{document}
some text.vskip10em
question 1...vskip40em
question 2...vskip40em
question 3...vskip40em
end{document}
spacing
I want to construct a macro named vs
which typeset a constant vertical spacing, e.g. vs{40em}
will get 40em height of white spacing. I know there are many ways -- vskip
, vspace
, etc... -- to achieve this. But, all these methods fail if encountering pagebreak, as shown in my attached figure produced by the following MWE. Anyone can help me with this?
MWE:
documentclass{article}
usepackage{geometry}
geometry{showframe}
begin{document}
some text.vskip10em
question 1...vskip40em
question 2...vskip40em
question 3...vskip40em
end{document}
spacing
spacing
edited 1 hour ago
lyl
asked 17 hours ago
lyllyl
70638
70638
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
If you want that the space can be splitted and be in part on one page and in part on the next, you could try a loop with small chunks. E.g.
documentclass{article}
usepackage{geometry}
geometry{showframe}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommandmanyvspace { m }
{
par
int_step_inline:nn{#1}{vspace*{1em}goodbreak}
}
ExplSyntaxOff
begin{document}
some text.vskip10em
question 1... manyvspace{30}
question 2... manyvspace{40}
question 3... manyvspace{40}
end{document}
add a comment |
Simply use the *
form:
vspace*{4cm}
This answers the question in the title, although looking at your sketch example code, I would have thought you always wanted a question title above the space in which case the space should never fall at the top of the page so dropping space at that point should not be an issue.
Following further comments it seems you don't really want space at all but rather a white paragraph of (say) 5 lines, which may be broken over a page, for which you can do
section*{Some title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
section*{Some other title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
Following your suggest, I replacevskip40em
withvspace*{40em)
, but get a typeset which is not my desire. I just want the vertical spacing can cross pages, that is to say, the top position of the next page can also white blanked.
– lyl
17 hours ago
@lyl vspace* will make space at the top of the page if a page break happens befpre it. If you mean that you want 40em of space allows a blank in the middle then that is a different question with a different answer.mbox{}\mbox{}\mbox{}\mbox{}par
will make 4 lines of "space" that can have a page break in the middle.
– David Carlisle
15 hours ago
Repeat some times of mbox\, well, it's a hacky trick. Thank you!
– lyl
37 mins ago
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%2f479030%2fsplit-vertical-spacing-in-two-continuity-pages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you want that the space can be splitted and be in part on one page and in part on the next, you could try a loop with small chunks. E.g.
documentclass{article}
usepackage{geometry}
geometry{showframe}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommandmanyvspace { m }
{
par
int_step_inline:nn{#1}{vspace*{1em}goodbreak}
}
ExplSyntaxOff
begin{document}
some text.vskip10em
question 1... manyvspace{30}
question 2... manyvspace{40}
question 3... manyvspace{40}
end{document}
add a comment |
If you want that the space can be splitted and be in part on one page and in part on the next, you could try a loop with small chunks. E.g.
documentclass{article}
usepackage{geometry}
geometry{showframe}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommandmanyvspace { m }
{
par
int_step_inline:nn{#1}{vspace*{1em}goodbreak}
}
ExplSyntaxOff
begin{document}
some text.vskip10em
question 1... manyvspace{30}
question 2... manyvspace{40}
question 3... manyvspace{40}
end{document}
add a comment |
If you want that the space can be splitted and be in part on one page and in part on the next, you could try a loop with small chunks. E.g.
documentclass{article}
usepackage{geometry}
geometry{showframe}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommandmanyvspace { m }
{
par
int_step_inline:nn{#1}{vspace*{1em}goodbreak}
}
ExplSyntaxOff
begin{document}
some text.vskip10em
question 1... manyvspace{30}
question 2... manyvspace{40}
question 3... manyvspace{40}
end{document}
If you want that the space can be splitted and be in part on one page and in part on the next, you could try a loop with small chunks. E.g.
documentclass{article}
usepackage{geometry}
geometry{showframe}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommandmanyvspace { m }
{
par
int_step_inline:nn{#1}{vspace*{1em}goodbreak}
}
ExplSyntaxOff
begin{document}
some text.vskip10em
question 1... manyvspace{30}
question 2... manyvspace{40}
question 3... manyvspace{40}
end{document}
answered 16 hours ago
Ulrike FischerUlrike Fischer
195k8302688
195k8302688
add a comment |
add a comment |
Simply use the *
form:
vspace*{4cm}
This answers the question in the title, although looking at your sketch example code, I would have thought you always wanted a question title above the space in which case the space should never fall at the top of the page so dropping space at that point should not be an issue.
Following further comments it seems you don't really want space at all but rather a white paragraph of (say) 5 lines, which may be broken over a page, for which you can do
section*{Some title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
section*{Some other title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
Following your suggest, I replacevskip40em
withvspace*{40em)
, but get a typeset which is not my desire. I just want the vertical spacing can cross pages, that is to say, the top position of the next page can also white blanked.
– lyl
17 hours ago
@lyl vspace* will make space at the top of the page if a page break happens befpre it. If you mean that you want 40em of space allows a blank in the middle then that is a different question with a different answer.mbox{}\mbox{}\mbox{}\mbox{}par
will make 4 lines of "space" that can have a page break in the middle.
– David Carlisle
15 hours ago
Repeat some times of mbox\, well, it's a hacky trick. Thank you!
– lyl
37 mins ago
add a comment |
Simply use the *
form:
vspace*{4cm}
This answers the question in the title, although looking at your sketch example code, I would have thought you always wanted a question title above the space in which case the space should never fall at the top of the page so dropping space at that point should not be an issue.
Following further comments it seems you don't really want space at all but rather a white paragraph of (say) 5 lines, which may be broken over a page, for which you can do
section*{Some title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
section*{Some other title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
Following your suggest, I replacevskip40em
withvspace*{40em)
, but get a typeset which is not my desire. I just want the vertical spacing can cross pages, that is to say, the top position of the next page can also white blanked.
– lyl
17 hours ago
@lyl vspace* will make space at the top of the page if a page break happens befpre it. If you mean that you want 40em of space allows a blank in the middle then that is a different question with a different answer.mbox{}\mbox{}\mbox{}\mbox{}par
will make 4 lines of "space" that can have a page break in the middle.
– David Carlisle
15 hours ago
Repeat some times of mbox\, well, it's a hacky trick. Thank you!
– lyl
37 mins ago
add a comment |
Simply use the *
form:
vspace*{4cm}
This answers the question in the title, although looking at your sketch example code, I would have thought you always wanted a question title above the space in which case the space should never fall at the top of the page so dropping space at that point should not be an issue.
Following further comments it seems you don't really want space at all but rather a white paragraph of (say) 5 lines, which may be broken over a page, for which you can do
section*{Some title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
section*{Some other title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
Simply use the *
form:
vspace*{4cm}
This answers the question in the title, although looking at your sketch example code, I would have thought you always wanted a question title above the space in which case the space should never fall at the top of the page so dropping space at that point should not be an issue.
Following further comments it seems you don't really want space at all but rather a white paragraph of (say) 5 lines, which may be broken over a page, for which you can do
section*{Some title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
section*{Some other title}
mbox{}\
mbox{}\
mbox{}\
mbox{}\
mbox{}
edited 15 hours ago
answered 17 hours ago
David CarlisleDavid Carlisle
494k4111381885
494k4111381885
Following your suggest, I replacevskip40em
withvspace*{40em)
, but get a typeset which is not my desire. I just want the vertical spacing can cross pages, that is to say, the top position of the next page can also white blanked.
– lyl
17 hours ago
@lyl vspace* will make space at the top of the page if a page break happens befpre it. If you mean that you want 40em of space allows a blank in the middle then that is a different question with a different answer.mbox{}\mbox{}\mbox{}\mbox{}par
will make 4 lines of "space" that can have a page break in the middle.
– David Carlisle
15 hours ago
Repeat some times of mbox\, well, it's a hacky trick. Thank you!
– lyl
37 mins ago
add a comment |
Following your suggest, I replacevskip40em
withvspace*{40em)
, but get a typeset which is not my desire. I just want the vertical spacing can cross pages, that is to say, the top position of the next page can also white blanked.
– lyl
17 hours ago
@lyl vspace* will make space at the top of the page if a page break happens befpre it. If you mean that you want 40em of space allows a blank in the middle then that is a different question with a different answer.mbox{}\mbox{}\mbox{}\mbox{}par
will make 4 lines of "space" that can have a page break in the middle.
– David Carlisle
15 hours ago
Repeat some times of mbox\, well, it's a hacky trick. Thank you!
– lyl
37 mins ago
Following your suggest, I replace
vskip40em
with vspace*{40em)
, but get a typeset which is not my desire. I just want the vertical spacing can cross pages, that is to say, the top position of the next page can also white blanked.– lyl
17 hours ago
Following your suggest, I replace
vskip40em
with vspace*{40em)
, but get a typeset which is not my desire. I just want the vertical spacing can cross pages, that is to say, the top position of the next page can also white blanked.– lyl
17 hours ago
@lyl vspace* will make space at the top of the page if a page break happens befpre it. If you mean that you want 40em of space allows a blank in the middle then that is a different question with a different answer.
mbox{}\mbox{}\mbox{}\mbox{}par
will make 4 lines of "space" that can have a page break in the middle.– David Carlisle
15 hours ago
@lyl vspace* will make space at the top of the page if a page break happens befpre it. If you mean that you want 40em of space allows a blank in the middle then that is a different question with a different answer.
mbox{}\mbox{}\mbox{}\mbox{}par
will make 4 lines of "space" that can have a page break in the middle.– David Carlisle
15 hours ago
Repeat some times of mbox\, well, it's a hacky trick. Thank you!
– lyl
37 mins ago
Repeat some times of mbox\, well, it's a hacky trick. Thank you!
– lyl
37 mins ago
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.
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%2f479030%2fsplit-vertical-spacing-in-two-continuity-pages%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