Extra vertical offset after using \Compactitem in tabular produces extra vertical space after...
Giving a talk in my old university, how prominently should I tell students my salary?
Citing contemporaneous (interlaced?) preprints
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
If nine coins are tossed, what is the probability that the number of heads is even?
I can't die. Who am I?
Can a space-faring robot still function over a billion years?
Is there a frame of reference in which I was born before I was conceived?
In which way proportional valves are controlled solely by current?
What is the difference between a forward slip and a side slip?
Practical reasons to have both a large police force and bounty hunting network?
What are SHA-rounds?
Are paired adjectives bad style?
When to use mean vs median
For the Kanji 校 is the fifth stroke connected to the sixth stroke?
Why did John Williams use a march to symbolise Indiana Jones?
What are all the squawk codes?
Rationale to prefer local variables over instance variables?
Is it possible to counterspell the revised Artificer?
Is there a math equivalent to the conditional ternary operator?
Fake utcnow for the pytest
Which sins are beyond punishment?
It beats the alternative
Was it really inappropriate to write a pull request for the company I interviewed with?
For a 1-action spell, do I need to take a turn to ready the spell before I can cast it, or can I cast it immediately?
Extra vertical offset after using \
Compactitem in tabular produces extra vertical space after environmentAdjust environments's behaviour when nestedExtra Space After newcommandExtra space after new command using xparseTable too tall for pageModerncv: Extra vertical space after cvitemExtra vertical space in minimal classCenter two images using multiple hfillsfilbreak adds extra vertical spaceUnwanted extra vertical space
I want a simple title for my document that consists of 3 different parts.
Here is what I have:
begin{Huge}
textbf{Title part 1\ vspace{0.8cm}
Title part 2\ vspace{0.8cm}
Title part 3} vspace{2cm}
end{Huge}
which produces:
As you can see the offset between the first and the second part is larger than the one between 2 and 3, which is the desired 0.8cm
.
I found out that removing the \
after Title part 2
leads to a correct offset of 0.8cm
between the first and the second part:
begin{Huge}
textbf{Title part 1\ vspace{0.8cm}
Title part 2 vspace{0.8cm}
Title part 3}
end{Huge}
However, this, of course, removes the desired linebreak after part 2.
I also experimented with newline
and hfill break
but without success.
How can I get the three parts - each in a new line - evenly spaced (0.8cm)?
Edit
I am using linespread{1.5}
which seemed to also cause some trouble. It's my first time working with LaTeX so I don't know that much yet.
Anyway, the solution from @AboAmmar worked fine:
{Hugebfseries
Title part 1parvspace{0.8cm}
Title part 2parvspace{0.8cm}
Title part 3par
}
spacing
add a comment |
I want a simple title for my document that consists of 3 different parts.
Here is what I have:
begin{Huge}
textbf{Title part 1\ vspace{0.8cm}
Title part 2\ vspace{0.8cm}
Title part 3} vspace{2cm}
end{Huge}
which produces:
As you can see the offset between the first and the second part is larger than the one between 2 and 3, which is the desired 0.8cm
.
I found out that removing the \
after Title part 2
leads to a correct offset of 0.8cm
between the first and the second part:
begin{Huge}
textbf{Title part 1\ vspace{0.8cm}
Title part 2 vspace{0.8cm}
Title part 3}
end{Huge}
However, this, of course, removes the desired linebreak after part 2.
I also experimented with newline
and hfill break
but without success.
How can I get the three parts - each in a new line - evenly spaced (0.8cm)?
Edit
I am using linespread{1.5}
which seemed to also cause some trouble. It's my first time working with LaTeX so I don't know that much yet.
Anyway, the solution from @AboAmmar worked fine:
{Hugebfseries
Title part 1parvspace{0.8cm}
Title part 2parvspace{0.8cm}
Title part 3par
}
spacing
It’s the other way around: the expected space is between lines 1 and 2 (interline skip plus 0.8cm). Between lines 2 and 3 the space is not 0.8cm. In general, however, there is no precise notion of vertical space between two lines, because of ascenders and descenders. Only the distance between baselines is independent on the characters actually present in the lines.
– egreg
Aug 24 '18 at 13:09
add a comment |
I want a simple title for my document that consists of 3 different parts.
Here is what I have:
begin{Huge}
textbf{Title part 1\ vspace{0.8cm}
Title part 2\ vspace{0.8cm}
Title part 3} vspace{2cm}
end{Huge}
which produces:
As you can see the offset between the first and the second part is larger than the one between 2 and 3, which is the desired 0.8cm
.
I found out that removing the \
after Title part 2
leads to a correct offset of 0.8cm
between the first and the second part:
begin{Huge}
textbf{Title part 1\ vspace{0.8cm}
Title part 2 vspace{0.8cm}
Title part 3}
end{Huge}
However, this, of course, removes the desired linebreak after part 2.
I also experimented with newline
and hfill break
but without success.
How can I get the three parts - each in a new line - evenly spaced (0.8cm)?
Edit
I am using linespread{1.5}
which seemed to also cause some trouble. It's my first time working with LaTeX so I don't know that much yet.
Anyway, the solution from @AboAmmar worked fine:
{Hugebfseries
Title part 1parvspace{0.8cm}
Title part 2parvspace{0.8cm}
Title part 3par
}
spacing
I want a simple title for my document that consists of 3 different parts.
Here is what I have:
begin{Huge}
textbf{Title part 1\ vspace{0.8cm}
Title part 2\ vspace{0.8cm}
Title part 3} vspace{2cm}
end{Huge}
which produces:
As you can see the offset between the first and the second part is larger than the one between 2 and 3, which is the desired 0.8cm
.
I found out that removing the \
after Title part 2
leads to a correct offset of 0.8cm
between the first and the second part:
begin{Huge}
textbf{Title part 1\ vspace{0.8cm}
Title part 2 vspace{0.8cm}
Title part 3}
end{Huge}
However, this, of course, removes the desired linebreak after part 2.
I also experimented with newline
and hfill break
but without success.
How can I get the three parts - each in a new line - evenly spaced (0.8cm)?
Edit
I am using linespread{1.5}
which seemed to also cause some trouble. It's my first time working with LaTeX so I don't know that much yet.
Anyway, the solution from @AboAmmar worked fine:
{Hugebfseries
Title part 1parvspace{0.8cm}
Title part 2parvspace{0.8cm}
Title part 3par
}
spacing
spacing
edited 22 hours ago
atalantus
asked Aug 24 '18 at 11:10
atalantusatalantus
84
84
It’s the other way around: the expected space is between lines 1 and 2 (interline skip plus 0.8cm). Between lines 2 and 3 the space is not 0.8cm. In general, however, there is no precise notion of vertical space between two lines, because of ascenders and descenders. Only the distance between baselines is independent on the characters actually present in the lines.
– egreg
Aug 24 '18 at 13:09
add a comment |
It’s the other way around: the expected space is between lines 1 and 2 (interline skip plus 0.8cm). Between lines 2 and 3 the space is not 0.8cm. In general, however, there is no precise notion of vertical space between two lines, because of ascenders and descenders. Only the distance between baselines is independent on the characters actually present in the lines.
– egreg
Aug 24 '18 at 13:09
It’s the other way around: the expected space is between lines 1 and 2 (interline skip plus 0.8cm). Between lines 2 and 3 the space is not 0.8cm. In general, however, there is no precise notion of vertical space between two lines, because of ascenders and descenders. Only the distance between baselines is independent on the characters actually present in the lines.
– egreg
Aug 24 '18 at 13:09
It’s the other way around: the expected space is between lines 1 and 2 (interline skip plus 0.8cm). Between lines 2 and 3 the space is not 0.8cm. In general, however, there is no precise notion of vertical space between two lines, because of ascenders and descenders. Only the distance between baselines is independent on the characters actually present in the lines.
– egreg
Aug 24 '18 at 13:09
add a comment |
2 Answers
2
active
oldest
votes
documentclass{article}
begin{document}
begin{Huge}bfseries
Title part 1 vspace{0.8cm}
Title part 2 vspace{0.8cm}
Title part 3
end{Huge}
end{document}
Or the more compact version:
{Hugebfseries
Title part 1parvspace{0.8cm}
Title part 2parvspace{0.8cm}
Title part 3par
}
add a comment |
With this code:
documentclass[12pt, a4paper]{book}
begin{document}
begin{Huge}
noindenttextbf{Title part 1\[0.8cm]
Title part 2\[0.8cm]
Title part 3}vspace{2cm}
end{Huge}
Text text text text text text text text text text text text text text text text text text text text text text text text text.
end {document}
I have no idea why but you're solution didn't work for me.
– atalantus
Aug 24 '18 at 11:44
With just this code?
– Bernard
Aug 24 '18 at 11:45
When creating a new tex file and copy-pasting your whole code, it works fine. But when I tested your code in my file at the right place, it somehow didn't work.
– atalantus
Aug 24 '18 at 11:52
It made no difference. I still had the bigger offset between part 1 and 2.
– atalantus
Aug 24 '18 at 11:53
You should post a minimal example reproducing the problem. There must be something in the rest of you code that is responsible for this.
– Bernard
Aug 24 '18 at 11:55
|
show 1 more 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%2f447500%2fextra-vertical-offset-after-using%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
documentclass{article}
begin{document}
begin{Huge}bfseries
Title part 1 vspace{0.8cm}
Title part 2 vspace{0.8cm}
Title part 3
end{Huge}
end{document}
Or the more compact version:
{Hugebfseries
Title part 1parvspace{0.8cm}
Title part 2parvspace{0.8cm}
Title part 3par
}
add a comment |
documentclass{article}
begin{document}
begin{Huge}bfseries
Title part 1 vspace{0.8cm}
Title part 2 vspace{0.8cm}
Title part 3
end{Huge}
end{document}
Or the more compact version:
{Hugebfseries
Title part 1parvspace{0.8cm}
Title part 2parvspace{0.8cm}
Title part 3par
}
add a comment |
documentclass{article}
begin{document}
begin{Huge}bfseries
Title part 1 vspace{0.8cm}
Title part 2 vspace{0.8cm}
Title part 3
end{Huge}
end{document}
Or the more compact version:
{Hugebfseries
Title part 1parvspace{0.8cm}
Title part 2parvspace{0.8cm}
Title part 3par
}
documentclass{article}
begin{document}
begin{Huge}bfseries
Title part 1 vspace{0.8cm}
Title part 2 vspace{0.8cm}
Title part 3
end{Huge}
end{document}
Or the more compact version:
{Hugebfseries
Title part 1parvspace{0.8cm}
Title part 2parvspace{0.8cm}
Title part 3par
}
edited Aug 24 '18 at 11:38
answered Aug 24 '18 at 11:30
AboAmmarAboAmmar
34.3k32884
34.3k32884
add a comment |
add a comment |
With this code:
documentclass[12pt, a4paper]{book}
begin{document}
begin{Huge}
noindenttextbf{Title part 1\[0.8cm]
Title part 2\[0.8cm]
Title part 3}vspace{2cm}
end{Huge}
Text text text text text text text text text text text text text text text text text text text text text text text text text.
end {document}
I have no idea why but you're solution didn't work for me.
– atalantus
Aug 24 '18 at 11:44
With just this code?
– Bernard
Aug 24 '18 at 11:45
When creating a new tex file and copy-pasting your whole code, it works fine. But when I tested your code in my file at the right place, it somehow didn't work.
– atalantus
Aug 24 '18 at 11:52
It made no difference. I still had the bigger offset between part 1 and 2.
– atalantus
Aug 24 '18 at 11:53
You should post a minimal example reproducing the problem. There must be something in the rest of you code that is responsible for this.
– Bernard
Aug 24 '18 at 11:55
|
show 1 more comment
With this code:
documentclass[12pt, a4paper]{book}
begin{document}
begin{Huge}
noindenttextbf{Title part 1\[0.8cm]
Title part 2\[0.8cm]
Title part 3}vspace{2cm}
end{Huge}
Text text text text text text text text text text text text text text text text text text text text text text text text text.
end {document}
I have no idea why but you're solution didn't work for me.
– atalantus
Aug 24 '18 at 11:44
With just this code?
– Bernard
Aug 24 '18 at 11:45
When creating a new tex file and copy-pasting your whole code, it works fine. But when I tested your code in my file at the right place, it somehow didn't work.
– atalantus
Aug 24 '18 at 11:52
It made no difference. I still had the bigger offset between part 1 and 2.
– atalantus
Aug 24 '18 at 11:53
You should post a minimal example reproducing the problem. There must be something in the rest of you code that is responsible for this.
– Bernard
Aug 24 '18 at 11:55
|
show 1 more comment
With this code:
documentclass[12pt, a4paper]{book}
begin{document}
begin{Huge}
noindenttextbf{Title part 1\[0.8cm]
Title part 2\[0.8cm]
Title part 3}vspace{2cm}
end{Huge}
Text text text text text text text text text text text text text text text text text text text text text text text text text.
end {document}
With this code:
documentclass[12pt, a4paper]{book}
begin{document}
begin{Huge}
noindenttextbf{Title part 1\[0.8cm]
Title part 2\[0.8cm]
Title part 3}vspace{2cm}
end{Huge}
Text text text text text text text text text text text text text text text text text text text text text text text text text.
end {document}
edited Aug 24 '18 at 11:38
answered Aug 24 '18 at 11:30
BernardBernard
172k776204
172k776204
I have no idea why but you're solution didn't work for me.
– atalantus
Aug 24 '18 at 11:44
With just this code?
– Bernard
Aug 24 '18 at 11:45
When creating a new tex file and copy-pasting your whole code, it works fine. But when I tested your code in my file at the right place, it somehow didn't work.
– atalantus
Aug 24 '18 at 11:52
It made no difference. I still had the bigger offset between part 1 and 2.
– atalantus
Aug 24 '18 at 11:53
You should post a minimal example reproducing the problem. There must be something in the rest of you code that is responsible for this.
– Bernard
Aug 24 '18 at 11:55
|
show 1 more comment
I have no idea why but you're solution didn't work for me.
– atalantus
Aug 24 '18 at 11:44
With just this code?
– Bernard
Aug 24 '18 at 11:45
When creating a new tex file and copy-pasting your whole code, it works fine. But when I tested your code in my file at the right place, it somehow didn't work.
– atalantus
Aug 24 '18 at 11:52
It made no difference. I still had the bigger offset between part 1 and 2.
– atalantus
Aug 24 '18 at 11:53
You should post a minimal example reproducing the problem. There must be something in the rest of you code that is responsible for this.
– Bernard
Aug 24 '18 at 11:55
I have no idea why but you're solution didn't work for me.
– atalantus
Aug 24 '18 at 11:44
I have no idea why but you're solution didn't work for me.
– atalantus
Aug 24 '18 at 11:44
With just this code?
– Bernard
Aug 24 '18 at 11:45
With just this code?
– Bernard
Aug 24 '18 at 11:45
When creating a new tex file and copy-pasting your whole code, it works fine. But when I tested your code in my file at the right place, it somehow didn't work.
– atalantus
Aug 24 '18 at 11:52
When creating a new tex file and copy-pasting your whole code, it works fine. But when I tested your code in my file at the right place, it somehow didn't work.
– atalantus
Aug 24 '18 at 11:52
It made no difference. I still had the bigger offset between part 1 and 2.
– atalantus
Aug 24 '18 at 11:53
It made no difference. I still had the bigger offset between part 1 and 2.
– atalantus
Aug 24 '18 at 11:53
You should post a minimal example reproducing the problem. There must be something in the rest of you code that is responsible for this.
– Bernard
Aug 24 '18 at 11:55
You should post a minimal example reproducing the problem. There must be something in the rest of you code that is responsible for this.
– Bernard
Aug 24 '18 at 11:55
|
show 1 more 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%2f447500%2fextra-vertical-offset-after-using%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
It’s the other way around: the expected space is between lines 1 and 2 (interline skip plus 0.8cm). Between lines 2 and 3 the space is not 0.8cm. In general, however, there is no precise notion of vertical space between two lines, because of ascenders and descenders. Only the distance between baselines is independent on the characters actually present in the lines.
– egreg
Aug 24 '18 at 13:09