How do you get rid of the extra space that bold or large face characters make?
documentclass[letterpaper,10pt]{article}
begin{document}
textbf{ Large Blahblahblah}
end{document}
For some reason textbf or Large creates this extra unwanted space from the left margine. How do I get rid of it? hfill does nothing to shove the text back into place, begin{flushleft}... lied and doesn't actually flush textbf left.
indentation
|
show 1 more comment
documentclass[letterpaper,10pt]{article}
begin{document}
textbf{ Large Blahblahblah}
end{document}
For some reason textbf or Large creates this extra unwanted space from the left margine. How do I get rid of it? hfill does nothing to shove the text back into place, begin{flushleft}... lied and doesn't actually flush textbf left.
indentation
1
Welcome to TeX-SE! Trydocumentclass[letterpaper,10pt]{article} begin{document} noindent textbf{Large Blahblahblah} end{document}.
– marmot
Feb 24 at 5:13
That doesn't magically make it off topic, this is obviously related to TeX. There is a general rule in stackexchange to wait a day before accepting something as an official answer. Furthermore, if someone else has this question they can find the answer here instead of asking it again.
– Vane Voe
Feb 24 at 5:23
@VaneVoe Yes, off course it is on-topic. However, it is a tradition here that if a question is solved in comments, it will be closed as off-topic. Look at this question for example.
– JouleV
Feb 24 at 5:38
So you're saying people should blindly follow unofficial tradition just for tradition's sake instead of using basic, common-sense reasoning? That doesn't seem to speak to the rest of the community.
– Vane Voe
Feb 24 at 5:40
1
Bold and large looks as if you trying to make a sectioning title - if yes don't hard format it like this but use a proper sectioning command.
– Ulrike Fischer
Feb 24 at 7:52
|
show 1 more comment
documentclass[letterpaper,10pt]{article}
begin{document}
textbf{ Large Blahblahblah}
end{document}
For some reason textbf or Large creates this extra unwanted space from the left margine. How do I get rid of it? hfill does nothing to shove the text back into place, begin{flushleft}... lied and doesn't actually flush textbf left.
indentation
documentclass[letterpaper,10pt]{article}
begin{document}
textbf{ Large Blahblahblah}
end{document}
For some reason textbf or Large creates this extra unwanted space from the left margine. How do I get rid of it? hfill does nothing to shove the text back into place, begin{flushleft}... lied and doesn't actually flush textbf left.
indentation
indentation
edited Feb 24 at 5:21
JouleV
8,64222154
8,64222154
asked Feb 24 at 5:10
Vane VoeVane Voe
282
282
1
Welcome to TeX-SE! Trydocumentclass[letterpaper,10pt]{article} begin{document} noindent textbf{Large Blahblahblah} end{document}.
– marmot
Feb 24 at 5:13
That doesn't magically make it off topic, this is obviously related to TeX. There is a general rule in stackexchange to wait a day before accepting something as an official answer. Furthermore, if someone else has this question they can find the answer here instead of asking it again.
– Vane Voe
Feb 24 at 5:23
@VaneVoe Yes, off course it is on-topic. However, it is a tradition here that if a question is solved in comments, it will be closed as off-topic. Look at this question for example.
– JouleV
Feb 24 at 5:38
So you're saying people should blindly follow unofficial tradition just for tradition's sake instead of using basic, common-sense reasoning? That doesn't seem to speak to the rest of the community.
– Vane Voe
Feb 24 at 5:40
1
Bold and large looks as if you trying to make a sectioning title - if yes don't hard format it like this but use a proper sectioning command.
– Ulrike Fischer
Feb 24 at 7:52
|
show 1 more comment
1
Welcome to TeX-SE! Trydocumentclass[letterpaper,10pt]{article} begin{document} noindent textbf{Large Blahblahblah} end{document}.
– marmot
Feb 24 at 5:13
That doesn't magically make it off topic, this is obviously related to TeX. There is a general rule in stackexchange to wait a day before accepting something as an official answer. Furthermore, if someone else has this question they can find the answer here instead of asking it again.
– Vane Voe
Feb 24 at 5:23
@VaneVoe Yes, off course it is on-topic. However, it is a tradition here that if a question is solved in comments, it will be closed as off-topic. Look at this question for example.
– JouleV
Feb 24 at 5:38
So you're saying people should blindly follow unofficial tradition just for tradition's sake instead of using basic, common-sense reasoning? That doesn't seem to speak to the rest of the community.
– Vane Voe
Feb 24 at 5:40
1
Bold and large looks as if you trying to make a sectioning title - if yes don't hard format it like this but use a proper sectioning command.
– Ulrike Fischer
Feb 24 at 7:52
1
1
Welcome to TeX-SE! Try
documentclass[letterpaper,10pt]{article} begin{document} noindent textbf{Large Blahblahblah} end{document}.– marmot
Feb 24 at 5:13
Welcome to TeX-SE! Try
documentclass[letterpaper,10pt]{article} begin{document} noindent textbf{Large Blahblahblah} end{document}.– marmot
Feb 24 at 5:13
That doesn't magically make it off topic, this is obviously related to TeX. There is a general rule in stackexchange to wait a day before accepting something as an official answer. Furthermore, if someone else has this question they can find the answer here instead of asking it again.
– Vane Voe
Feb 24 at 5:23
That doesn't magically make it off topic, this is obviously related to TeX. There is a general rule in stackexchange to wait a day before accepting something as an official answer. Furthermore, if someone else has this question they can find the answer here instead of asking it again.
– Vane Voe
Feb 24 at 5:23
@VaneVoe Yes, off course it is on-topic. However, it is a tradition here that if a question is solved in comments, it will be closed as off-topic. Look at this question for example.
– JouleV
Feb 24 at 5:38
@VaneVoe Yes, off course it is on-topic. However, it is a tradition here that if a question is solved in comments, it will be closed as off-topic. Look at this question for example.
– JouleV
Feb 24 at 5:38
So you're saying people should blindly follow unofficial tradition just for tradition's sake instead of using basic, common-sense reasoning? That doesn't seem to speak to the rest of the community.
– Vane Voe
Feb 24 at 5:40
So you're saying people should blindly follow unofficial tradition just for tradition's sake instead of using basic, common-sense reasoning? That doesn't seem to speak to the rest of the community.
– Vane Voe
Feb 24 at 5:40
1
1
Bold and large looks as if you trying to make a sectioning title - if yes don't hard format it like this but use a proper sectioning command.
– Ulrike Fischer
Feb 24 at 7:52
Bold and large looks as if you trying to make a sectioning title - if yes don't hard format it like this but use a proper sectioning command.
– Ulrike Fischer
Feb 24 at 7:52
|
show 1 more comment
2 Answers
2
active
oldest
votes
The issue has nothing to do with boldface versus normal. Rather, you see the default indent of paragraphs. One way to switch it off (for one paragraph) is to use noindent.
documentclass[letterpaper,10pt]{article}
begin{document}
A normal paragraph.
textbf{Large A normal bold paragraph.}
noindent
A normal paragraph with texttt{textbackslash noindent}.
noindenttextbf{Large A bold paragraph with texttt{textbackslash noindent}.}
end{document}

add a comment |
There are two separate issues that keep the text from starting at the left-hand margin of the text block. Neither issue is actually associated with the fact that the text string happens to be rendered in bold&large.
Let's begin by studying an augmented version of the OP's MWE, along with a screenshot of the associated output. (The vertical line down the left-hand edge represents the edge of the text block.)
documentclass{article}
usepackage{showframe} % to show edges of text block
newcommandOnce{Once upon a time, dots} % test text string
begin{document}
vspace*{1mm} % just for this example
textbf{ Large Once} % OP's example
textbf{Large Once} % no space before "Large"
Once % normal font size and font weight
noindent
textbf{Large Once} % no more indentation!
setlengthparindent{0pt} % suppress paragraph indentation globally
textbf{Large Once}
end{document}

As the third line shows, the indentation issue is not caused by the fact that the text string is rendered in bold/large. Instead, it happens because (a) the text string occurs at the start of a (logical) paragraph and (b) the article document class (along with many other document classes) sets a non-zero value of parindent, which is the parameter that governs how much the first line of a paragraph is indented.
Notice also that the first line is indented even more than the second line is. What is the difference between textbf{ Large Once} and textbf{Large Once}? It's the whitespace character between { and Large. TeX does not gobble up all whitespace character. Beware the Ides of March. And beware carelessly inserted whitespace.
The fourth and fifth lines show how to suppress the indentation of the first line of a paragraph: For one-off suppression, use noindent; for global suppression, set parindent to 0pt. Aside: If you set parindent to 0pt, you should probably also set parskip -- the parameter that governs the amount of vertical whitespace between paragraphs to a non-zero value, e.g., setlengthparskip{0.5baselineskip}.
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%2f476418%2fhow-do-you-get-rid-of-the-extra-space-that-bold-or-large-face-characters-make%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
The issue has nothing to do with boldface versus normal. Rather, you see the default indent of paragraphs. One way to switch it off (for one paragraph) is to use noindent.
documentclass[letterpaper,10pt]{article}
begin{document}
A normal paragraph.
textbf{Large A normal bold paragraph.}
noindent
A normal paragraph with texttt{textbackslash noindent}.
noindenttextbf{Large A bold paragraph with texttt{textbackslash noindent}.}
end{document}

add a comment |
The issue has nothing to do with boldface versus normal. Rather, you see the default indent of paragraphs. One way to switch it off (for one paragraph) is to use noindent.
documentclass[letterpaper,10pt]{article}
begin{document}
A normal paragraph.
textbf{Large A normal bold paragraph.}
noindent
A normal paragraph with texttt{textbackslash noindent}.
noindenttextbf{Large A bold paragraph with texttt{textbackslash noindent}.}
end{document}

add a comment |
The issue has nothing to do with boldface versus normal. Rather, you see the default indent of paragraphs. One way to switch it off (for one paragraph) is to use noindent.
documentclass[letterpaper,10pt]{article}
begin{document}
A normal paragraph.
textbf{Large A normal bold paragraph.}
noindent
A normal paragraph with texttt{textbackslash noindent}.
noindenttextbf{Large A bold paragraph with texttt{textbackslash noindent}.}
end{document}

The issue has nothing to do with boldface versus normal. Rather, you see the default indent of paragraphs. One way to switch it off (for one paragraph) is to use noindent.
documentclass[letterpaper,10pt]{article}
begin{document}
A normal paragraph.
textbf{Large A normal bold paragraph.}
noindent
A normal paragraph with texttt{textbackslash noindent}.
noindenttextbf{Large A bold paragraph with texttt{textbackslash noindent}.}
end{document}

answered Feb 24 at 5:40
community wiki
marmot
add a comment |
add a comment |
There are two separate issues that keep the text from starting at the left-hand margin of the text block. Neither issue is actually associated with the fact that the text string happens to be rendered in bold&large.
Let's begin by studying an augmented version of the OP's MWE, along with a screenshot of the associated output. (The vertical line down the left-hand edge represents the edge of the text block.)
documentclass{article}
usepackage{showframe} % to show edges of text block
newcommandOnce{Once upon a time, dots} % test text string
begin{document}
vspace*{1mm} % just for this example
textbf{ Large Once} % OP's example
textbf{Large Once} % no space before "Large"
Once % normal font size and font weight
noindent
textbf{Large Once} % no more indentation!
setlengthparindent{0pt} % suppress paragraph indentation globally
textbf{Large Once}
end{document}

As the third line shows, the indentation issue is not caused by the fact that the text string is rendered in bold/large. Instead, it happens because (a) the text string occurs at the start of a (logical) paragraph and (b) the article document class (along with many other document classes) sets a non-zero value of parindent, which is the parameter that governs how much the first line of a paragraph is indented.
Notice also that the first line is indented even more than the second line is. What is the difference between textbf{ Large Once} and textbf{Large Once}? It's the whitespace character between { and Large. TeX does not gobble up all whitespace character. Beware the Ides of March. And beware carelessly inserted whitespace.
The fourth and fifth lines show how to suppress the indentation of the first line of a paragraph: For one-off suppression, use noindent; for global suppression, set parindent to 0pt. Aside: If you set parindent to 0pt, you should probably also set parskip -- the parameter that governs the amount of vertical whitespace between paragraphs to a non-zero value, e.g., setlengthparskip{0.5baselineskip}.
add a comment |
There are two separate issues that keep the text from starting at the left-hand margin of the text block. Neither issue is actually associated with the fact that the text string happens to be rendered in bold&large.
Let's begin by studying an augmented version of the OP's MWE, along with a screenshot of the associated output. (The vertical line down the left-hand edge represents the edge of the text block.)
documentclass{article}
usepackage{showframe} % to show edges of text block
newcommandOnce{Once upon a time, dots} % test text string
begin{document}
vspace*{1mm} % just for this example
textbf{ Large Once} % OP's example
textbf{Large Once} % no space before "Large"
Once % normal font size and font weight
noindent
textbf{Large Once} % no more indentation!
setlengthparindent{0pt} % suppress paragraph indentation globally
textbf{Large Once}
end{document}

As the third line shows, the indentation issue is not caused by the fact that the text string is rendered in bold/large. Instead, it happens because (a) the text string occurs at the start of a (logical) paragraph and (b) the article document class (along with many other document classes) sets a non-zero value of parindent, which is the parameter that governs how much the first line of a paragraph is indented.
Notice also that the first line is indented even more than the second line is. What is the difference between textbf{ Large Once} and textbf{Large Once}? It's the whitespace character between { and Large. TeX does not gobble up all whitespace character. Beware the Ides of March. And beware carelessly inserted whitespace.
The fourth and fifth lines show how to suppress the indentation of the first line of a paragraph: For one-off suppression, use noindent; for global suppression, set parindent to 0pt. Aside: If you set parindent to 0pt, you should probably also set parskip -- the parameter that governs the amount of vertical whitespace between paragraphs to a non-zero value, e.g., setlengthparskip{0.5baselineskip}.
add a comment |
There are two separate issues that keep the text from starting at the left-hand margin of the text block. Neither issue is actually associated with the fact that the text string happens to be rendered in bold&large.
Let's begin by studying an augmented version of the OP's MWE, along with a screenshot of the associated output. (The vertical line down the left-hand edge represents the edge of the text block.)
documentclass{article}
usepackage{showframe} % to show edges of text block
newcommandOnce{Once upon a time, dots} % test text string
begin{document}
vspace*{1mm} % just for this example
textbf{ Large Once} % OP's example
textbf{Large Once} % no space before "Large"
Once % normal font size and font weight
noindent
textbf{Large Once} % no more indentation!
setlengthparindent{0pt} % suppress paragraph indentation globally
textbf{Large Once}
end{document}

As the third line shows, the indentation issue is not caused by the fact that the text string is rendered in bold/large. Instead, it happens because (a) the text string occurs at the start of a (logical) paragraph and (b) the article document class (along with many other document classes) sets a non-zero value of parindent, which is the parameter that governs how much the first line of a paragraph is indented.
Notice also that the first line is indented even more than the second line is. What is the difference between textbf{ Large Once} and textbf{Large Once}? It's the whitespace character between { and Large. TeX does not gobble up all whitespace character. Beware the Ides of March. And beware carelessly inserted whitespace.
The fourth and fifth lines show how to suppress the indentation of the first line of a paragraph: For one-off suppression, use noindent; for global suppression, set parindent to 0pt. Aside: If you set parindent to 0pt, you should probably also set parskip -- the parameter that governs the amount of vertical whitespace between paragraphs to a non-zero value, e.g., setlengthparskip{0.5baselineskip}.
There are two separate issues that keep the text from starting at the left-hand margin of the text block. Neither issue is actually associated with the fact that the text string happens to be rendered in bold&large.
Let's begin by studying an augmented version of the OP's MWE, along with a screenshot of the associated output. (The vertical line down the left-hand edge represents the edge of the text block.)
documentclass{article}
usepackage{showframe} % to show edges of text block
newcommandOnce{Once upon a time, dots} % test text string
begin{document}
vspace*{1mm} % just for this example
textbf{ Large Once} % OP's example
textbf{Large Once} % no space before "Large"
Once % normal font size and font weight
noindent
textbf{Large Once} % no more indentation!
setlengthparindent{0pt} % suppress paragraph indentation globally
textbf{Large Once}
end{document}

As the third line shows, the indentation issue is not caused by the fact that the text string is rendered in bold/large. Instead, it happens because (a) the text string occurs at the start of a (logical) paragraph and (b) the article document class (along with many other document classes) sets a non-zero value of parindent, which is the parameter that governs how much the first line of a paragraph is indented.
Notice also that the first line is indented even more than the second line is. What is the difference between textbf{ Large Once} and textbf{Large Once}? It's the whitespace character between { and Large. TeX does not gobble up all whitespace character. Beware the Ides of March. And beware carelessly inserted whitespace.
The fourth and fifth lines show how to suppress the indentation of the first line of a paragraph: For one-off suppression, use noindent; for global suppression, set parindent to 0pt. Aside: If you set parindent to 0pt, you should probably also set parskip -- the parameter that governs the amount of vertical whitespace between paragraphs to a non-zero value, e.g., setlengthparskip{0.5baselineskip}.
answered Feb 24 at 5:56
MicoMico
284k31388778
284k31388778
add a comment |
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%2f476418%2fhow-do-you-get-rid-of-the-extra-space-that-bold-or-large-face-characters-make%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
1
Welcome to TeX-SE! Try
documentclass[letterpaper,10pt]{article} begin{document} noindent textbf{Large Blahblahblah} end{document}.– marmot
Feb 24 at 5:13
That doesn't magically make it off topic, this is obviously related to TeX. There is a general rule in stackexchange to wait a day before accepting something as an official answer. Furthermore, if someone else has this question they can find the answer here instead of asking it again.
– Vane Voe
Feb 24 at 5:23
@VaneVoe Yes, off course it is on-topic. However, it is a tradition here that if a question is solved in comments, it will be closed as off-topic. Look at this question for example.
– JouleV
Feb 24 at 5:38
So you're saying people should blindly follow unofficial tradition just for tradition's sake instead of using basic, common-sense reasoning? That doesn't seem to speak to the rest of the community.
– Vane Voe
Feb 24 at 5:40
1
Bold and large looks as if you trying to make a sectioning title - if yes don't hard format it like this but use a proper sectioning command.
– Ulrike Fischer
Feb 24 at 7:52