How to make horizontal space between a dot and a text equal to horizontal space between the dot of numerical label of numbered list and its item?What do we call the vertical space between a list item label and the item text?
Does an ice chest packed full of frozen food need ice?
Notation of last measure of a song with a pickup measure
Version 2 - print new even-length arrays from two arrays
What's the right way to purge recursively with apt?
Question about JavaScript Math.random() and basic logic
How would a aircraft visually signal in distress?
What risks are there when you clear your cookies instead of logging off?
What is this solid state starting relay component?
Remove sudoers using script
Last survivors from different time periods living together
How many pairs of subsets can be formed?
Is any name of Vishnu Siva?
Implement Homestuck's Catenative Doomsday Dice Cascader
How do photons get into the eyes?
What's up with this leaf?
How is it possible that Gollum speaks Westron?
Is it possible to (7 day) schedule sleep time of a hard drive?
How to make horizontal space between a dot and a text equal to horizontal space between the dot of numerical label of numbered list and its item?
Does the "6 seconds per round" rule apply to speaking/roleplaying during combat situations?
Deformation of rectangular plot
Is the term 'open source' a trademark?
How to generate random points without duplication?
My coworkers think I had a long honeymoon. Actually I was diagnosed with cancer. How do I talk about it?
Is this half mask suitable for spray painting?
How to make horizontal space between a dot and a text equal to horizontal space between the dot of numerical label of numbered list and its item?
What do we call the vertical space between a list item label and the item text?
Yesterday I could swear the horizontal spacing between the end of the item-label (a number followed by dot) of a numbered-list and the item-text following that label is 5.2pt, although the output (showoutput log) shows 5.0. After running some tests today, it's (surprisingly) not 5.2pt but 5.05. Considering today's code was not a copy of yesterday's (which cannot be recovered by now, unfortunately), most likely explanation is changes in the code. However, 5.05pt is still not 5.0. That's one issue I would like a feedback from you about.
The second issue is that there's no length macro I know of that defines the spacing in question (between a list-label and its item) while such macros are usually available for adjustment (so I can't adjust the spacing of the list).
Now let's go through the following demonstration.
documentclass[varwidth]standalone
usepackagefontspec
setmainfontGeorgia
showoutput
begindocument
beginenumerate
itemhello
endenumerate
1. hello
newlengthspaceWidth
settowidthspaceWidth
thespaceWidth % 2.41211pt
enddocument
...........TU/Georgia(0)/m/n/10 1.
.........glue 5.0
........penalty 0
........TU/Georgia(0)/m/n/10 hello
........TU/Georgia(0)/m/n/10 1.
........glue 2.41211 plus 1.20605 minus 0.80403
........TU/Georgia(0)/m/n/10 hello
(Space of 2.41211pt is less than glue of 5.0pt.)
Replace 1. hello
with 1.makebox[5.0pt]hello
(and remove thespaceWidth
):
beginenumerate
itemhello
endenumerate
1.makebox[5.0pt]hello
...........TU/Georgia(0)/m/n/10 1.
.........glue 5.0
........penalty 0
........TU/Georgia(0)/m/n/10 hello
........TU/Georgia(0)/m/n/10 1.
........hbox(0.0+0.0)x5.0, glue set 2.5fil
.........glue 0.0 plus 1.0fil minus 1.0fil
.........glue 0.0 plus 1.0fil minus 1.0fil
........TU/Georgia(0)/m/n/10 hello
Perfect (so far)!
Now remove setmainfontGeorgia
:
Obviously, 5.0pt is NOT enough.
Let's try 5.05pt: replace 1.makebox[5.0pt]hello
with 1.makebox[5.05pt]hello
:
Perfect.
What's your take on it? Thank you.
spacing lists
add a comment |
Yesterday I could swear the horizontal spacing between the end of the item-label (a number followed by dot) of a numbered-list and the item-text following that label is 5.2pt, although the output (showoutput log) shows 5.0. After running some tests today, it's (surprisingly) not 5.2pt but 5.05. Considering today's code was not a copy of yesterday's (which cannot be recovered by now, unfortunately), most likely explanation is changes in the code. However, 5.05pt is still not 5.0. That's one issue I would like a feedback from you about.
The second issue is that there's no length macro I know of that defines the spacing in question (between a list-label and its item) while such macros are usually available for adjustment (so I can't adjust the spacing of the list).
Now let's go through the following demonstration.
documentclass[varwidth]standalone
usepackagefontspec
setmainfontGeorgia
showoutput
begindocument
beginenumerate
itemhello
endenumerate
1. hello
newlengthspaceWidth
settowidthspaceWidth
thespaceWidth % 2.41211pt
enddocument
...........TU/Georgia(0)/m/n/10 1.
.........glue 5.0
........penalty 0
........TU/Georgia(0)/m/n/10 hello
........TU/Georgia(0)/m/n/10 1.
........glue 2.41211 plus 1.20605 minus 0.80403
........TU/Georgia(0)/m/n/10 hello
(Space of 2.41211pt is less than glue of 5.0pt.)
Replace 1. hello
with 1.makebox[5.0pt]hello
(and remove thespaceWidth
):
beginenumerate
itemhello
endenumerate
1.makebox[5.0pt]hello
...........TU/Georgia(0)/m/n/10 1.
.........glue 5.0
........penalty 0
........TU/Georgia(0)/m/n/10 hello
........TU/Georgia(0)/m/n/10 1.
........hbox(0.0+0.0)x5.0, glue set 2.5fil
.........glue 0.0 plus 1.0fil minus 1.0fil
.........glue 0.0 plus 1.0fil minus 1.0fil
........TU/Georgia(0)/m/n/10 hello
Perfect (so far)!
Now remove setmainfontGeorgia
:
Obviously, 5.0pt is NOT enough.
Let's try 5.05pt: replace 1.makebox[5.0pt]hello
with 1.makebox[5.05pt]hello
:
Perfect.
What's your take on it? Thank you.
spacing lists
1
Your question is not clear, but the length you allude to has a name: it islabelsep
.
– Bernard
7 hours ago
add a comment |
Yesterday I could swear the horizontal spacing between the end of the item-label (a number followed by dot) of a numbered-list and the item-text following that label is 5.2pt, although the output (showoutput log) shows 5.0. After running some tests today, it's (surprisingly) not 5.2pt but 5.05. Considering today's code was not a copy of yesterday's (which cannot be recovered by now, unfortunately), most likely explanation is changes in the code. However, 5.05pt is still not 5.0. That's one issue I would like a feedback from you about.
The second issue is that there's no length macro I know of that defines the spacing in question (between a list-label and its item) while such macros are usually available for adjustment (so I can't adjust the spacing of the list).
Now let's go through the following demonstration.
documentclass[varwidth]standalone
usepackagefontspec
setmainfontGeorgia
showoutput
begindocument
beginenumerate
itemhello
endenumerate
1. hello
newlengthspaceWidth
settowidthspaceWidth
thespaceWidth % 2.41211pt
enddocument
...........TU/Georgia(0)/m/n/10 1.
.........glue 5.0
........penalty 0
........TU/Georgia(0)/m/n/10 hello
........TU/Georgia(0)/m/n/10 1.
........glue 2.41211 plus 1.20605 minus 0.80403
........TU/Georgia(0)/m/n/10 hello
(Space of 2.41211pt is less than glue of 5.0pt.)
Replace 1. hello
with 1.makebox[5.0pt]hello
(and remove thespaceWidth
):
beginenumerate
itemhello
endenumerate
1.makebox[5.0pt]hello
...........TU/Georgia(0)/m/n/10 1.
.........glue 5.0
........penalty 0
........TU/Georgia(0)/m/n/10 hello
........TU/Georgia(0)/m/n/10 1.
........hbox(0.0+0.0)x5.0, glue set 2.5fil
.........glue 0.0 plus 1.0fil minus 1.0fil
.........glue 0.0 plus 1.0fil minus 1.0fil
........TU/Georgia(0)/m/n/10 hello
Perfect (so far)!
Now remove setmainfontGeorgia
:
Obviously, 5.0pt is NOT enough.
Let's try 5.05pt: replace 1.makebox[5.0pt]hello
with 1.makebox[5.05pt]hello
:
Perfect.
What's your take on it? Thank you.
spacing lists
Yesterday I could swear the horizontal spacing between the end of the item-label (a number followed by dot) of a numbered-list and the item-text following that label is 5.2pt, although the output (showoutput log) shows 5.0. After running some tests today, it's (surprisingly) not 5.2pt but 5.05. Considering today's code was not a copy of yesterday's (which cannot be recovered by now, unfortunately), most likely explanation is changes in the code. However, 5.05pt is still not 5.0. That's one issue I would like a feedback from you about.
The second issue is that there's no length macro I know of that defines the spacing in question (between a list-label and its item) while such macros are usually available for adjustment (so I can't adjust the spacing of the list).
Now let's go through the following demonstration.
documentclass[varwidth]standalone
usepackagefontspec
setmainfontGeorgia
showoutput
begindocument
beginenumerate
itemhello
endenumerate
1. hello
newlengthspaceWidth
settowidthspaceWidth
thespaceWidth % 2.41211pt
enddocument
...........TU/Georgia(0)/m/n/10 1.
.........glue 5.0
........penalty 0
........TU/Georgia(0)/m/n/10 hello
........TU/Georgia(0)/m/n/10 1.
........glue 2.41211 plus 1.20605 minus 0.80403
........TU/Georgia(0)/m/n/10 hello
(Space of 2.41211pt is less than glue of 5.0pt.)
Replace 1. hello
with 1.makebox[5.0pt]hello
(and remove thespaceWidth
):
beginenumerate
itemhello
endenumerate
1.makebox[5.0pt]hello
...........TU/Georgia(0)/m/n/10 1.
.........glue 5.0
........penalty 0
........TU/Georgia(0)/m/n/10 hello
........TU/Georgia(0)/m/n/10 1.
........hbox(0.0+0.0)x5.0, glue set 2.5fil
.........glue 0.0 plus 1.0fil minus 1.0fil
.........glue 0.0 plus 1.0fil minus 1.0fil
........TU/Georgia(0)/m/n/10 hello
Perfect (so far)!
Now remove setmainfontGeorgia
:
Obviously, 5.0pt is NOT enough.
Let's try 5.05pt: replace 1.makebox[5.0pt]hello
with 1.makebox[5.05pt]hello
:
Perfect.
What's your take on it? Thank you.
spacing lists
spacing lists
edited 7 hours ago
bp2017
asked 8 hours ago
bp2017bp2017
1,270316
1,270316
1
Your question is not clear, but the length you allude to has a name: it islabelsep
.
– Bernard
7 hours ago
add a comment |
1
Your question is not clear, but the length you allude to has a name: it islabelsep
.
– Bernard
7 hours ago
1
1
Your question is not clear, but the length you allude to has a name: it is
labelsep
.– Bernard
7 hours ago
Your question is not clear, but the length you allude to has a name: it is
labelsep
.– Bernard
7 hours ago
add a comment |
1 Answer
1
active
oldest
votes
In your document, both strings start at different horizontal positions. This difference does not account to a whole number of pixels on your screen, so you can't perfectly align the dots. So comparing the position on the h
becomes meaningless. If you look closely at your last picture containing both hello
s, you see that the red line does not touch both dots in the same way.
To get a more meaningful picture, you can ask TeX to indent your text in the same way it indents the label:
documentclass[varwidth]standalone
usepackagefontspec
showoutput
begindocument
beginenumerate
itemhello
endenumerate
settowidthleftskip1. % Don't do this in a real document!
advanceleftskip -20pt
leftskip-leftskip
noindent1.makebox[5.0pt]hello
enddocument
This moves the 1. hello
to the right to align with the label list entry. Now both are perfectly aligned, both the 1.
and the hello
. So the distance actually is exactly 5pt.
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%2f493863%2fhow-to-make-horizontal-space-between-a-dot-and-a-text-equal-to-horizontal-space%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
In your document, both strings start at different horizontal positions. This difference does not account to a whole number of pixels on your screen, so you can't perfectly align the dots. So comparing the position on the h
becomes meaningless. If you look closely at your last picture containing both hello
s, you see that the red line does not touch both dots in the same way.
To get a more meaningful picture, you can ask TeX to indent your text in the same way it indents the label:
documentclass[varwidth]standalone
usepackagefontspec
showoutput
begindocument
beginenumerate
itemhello
endenumerate
settowidthleftskip1. % Don't do this in a real document!
advanceleftskip -20pt
leftskip-leftskip
noindent1.makebox[5.0pt]hello
enddocument
This moves the 1. hello
to the right to align with the label list entry. Now both are perfectly aligned, both the 1.
and the hello
. So the distance actually is exactly 5pt.
add a comment |
In your document, both strings start at different horizontal positions. This difference does not account to a whole number of pixels on your screen, so you can't perfectly align the dots. So comparing the position on the h
becomes meaningless. If you look closely at your last picture containing both hello
s, you see that the red line does not touch both dots in the same way.
To get a more meaningful picture, you can ask TeX to indent your text in the same way it indents the label:
documentclass[varwidth]standalone
usepackagefontspec
showoutput
begindocument
beginenumerate
itemhello
endenumerate
settowidthleftskip1. % Don't do this in a real document!
advanceleftskip -20pt
leftskip-leftskip
noindent1.makebox[5.0pt]hello
enddocument
This moves the 1. hello
to the right to align with the label list entry. Now both are perfectly aligned, both the 1.
and the hello
. So the distance actually is exactly 5pt.
add a comment |
In your document, both strings start at different horizontal positions. This difference does not account to a whole number of pixels on your screen, so you can't perfectly align the dots. So comparing the position on the h
becomes meaningless. If you look closely at your last picture containing both hello
s, you see that the red line does not touch both dots in the same way.
To get a more meaningful picture, you can ask TeX to indent your text in the same way it indents the label:
documentclass[varwidth]standalone
usepackagefontspec
showoutput
begindocument
beginenumerate
itemhello
endenumerate
settowidthleftskip1. % Don't do this in a real document!
advanceleftskip -20pt
leftskip-leftskip
noindent1.makebox[5.0pt]hello
enddocument
This moves the 1. hello
to the right to align with the label list entry. Now both are perfectly aligned, both the 1.
and the hello
. So the distance actually is exactly 5pt.
In your document, both strings start at different horizontal positions. This difference does not account to a whole number of pixels on your screen, so you can't perfectly align the dots. So comparing the position on the h
becomes meaningless. If you look closely at your last picture containing both hello
s, you see that the red line does not touch both dots in the same way.
To get a more meaningful picture, you can ask TeX to indent your text in the same way it indents the label:
documentclass[varwidth]standalone
usepackagefontspec
showoutput
begindocument
beginenumerate
itemhello
endenumerate
settowidthleftskip1. % Don't do this in a real document!
advanceleftskip -20pt
leftskip-leftskip
noindent1.makebox[5.0pt]hello
enddocument
This moves the 1. hello
to the right to align with the label list entry. Now both are perfectly aligned, both the 1.
and the hello
. So the distance actually is exactly 5pt.
answered 7 hours ago
Marcel KrügerMarcel Krüger
13.5k11636
13.5k11636
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%2f493863%2fhow-to-make-horizontal-space-between-a-dot-and-a-text-equal-to-horizontal-space%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
Your question is not clear, but the length you allude to has a name: it is
labelsep
.– Bernard
7 hours ago