How to make horizontal space between a dot and a text equal to horizontal space between the dot of numerical...

How would a aircraft visually signal in distress?

Translating 'Liber'

What does the "c." listed under weapon length mean?

What is the advantage of carrying a tripod and ND-filters when you could use image stacking instead?

Average spam confidence

Phone number to a lounge, or lounges generally

Why is the relationship between frequency and pitch exponential?

Is it possible to (7 day) schedule sleep time of a hard drive?

What's the right way to purge recursively with apt?

How to translate “Me doing X” like in online posts?

Avoiding cliches when writing gods

Last survivors from different time periods living together

From the list of 3-tuples, how can I select tuples which contain one for more nines?

How did students remember what to practise between lessons without any sheet music?

When writing an error prompt, should we end the sentence with a exclamation mark or a dot?

How many times can you cast a card exiled by Release to the Wind?

Select items in a list that contain criteria #2

SF novella separating the dumb majority from the intelligent part of mankind

How hard would it be to convert a glider into an powered electric aircraft?

Why don’t airliners have temporary liveries?

Required to check-in in person at international layover airport

Does the "6 seconds per round" rule apply to speaking/roleplaying during combat situations?

Why doesn’t a normal window produce an apparent rainbow?

Russian equivalents of "no love lost"



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?













1















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}
usepackage{fontspec}
setmainfont{Georgia}
showoutput
begin{document}
begin{enumerate}
item{}hello
end{enumerate}
1. hello

newlengthspaceWidth
settowidth{spaceWidth}{ }
thespaceWidth % 2.41211pt
end{document}

...........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):



begin{enumerate}
item{}hello
end{enumerate}
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 setmainfont{Georgia}:









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.










share|improve this question




















  • 1





    Your question is not clear, but the length you allude to has a name: it is labelsep.

    – Bernard
    8 hours ago
















1















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}
usepackage{fontspec}
setmainfont{Georgia}
showoutput
begin{document}
begin{enumerate}
item{}hello
end{enumerate}
1. hello

newlengthspaceWidth
settowidth{spaceWidth}{ }
thespaceWidth % 2.41211pt
end{document}

...........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):



begin{enumerate}
item{}hello
end{enumerate}
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 setmainfont{Georgia}:









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.










share|improve this question




















  • 1





    Your question is not clear, but the length you allude to has a name: it is labelsep.

    – Bernard
    8 hours ago














1












1








1








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}
usepackage{fontspec}
setmainfont{Georgia}
showoutput
begin{document}
begin{enumerate}
item{}hello
end{enumerate}
1. hello

newlengthspaceWidth
settowidth{spaceWidth}{ }
thespaceWidth % 2.41211pt
end{document}

...........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):



begin{enumerate}
item{}hello
end{enumerate}
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 setmainfont{Georgia}:









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.










share|improve this question
















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}
usepackage{fontspec}
setmainfont{Georgia}
showoutput
begin{document}
begin{enumerate}
item{}hello
end{enumerate}
1. hello

newlengthspaceWidth
settowidth{spaceWidth}{ }
thespaceWidth % 2.41211pt
end{document}

...........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):



begin{enumerate}
item{}hello
end{enumerate}
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 setmainfont{Georgia}:









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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 is labelsep.

    – Bernard
    8 hours ago














  • 1





    Your question is not clear, but the length you allude to has a name: it is labelsep.

    – Bernard
    8 hours ago








1




1





Your question is not clear, but the length you allude to has a name: it is labelsep.

– Bernard
8 hours ago





Your question is not clear, but the length you allude to has a name: it is labelsep.

– Bernard
8 hours ago










1 Answer
1






active

oldest

votes


















4














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 hellos, 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}
usepackage{fontspec}
showoutput
begin{document}
begin{enumerate}
item{}hello
end{enumerate}
settowidthleftskip{1.} % Don't do this in a real document!
advanceleftskip -20pt
leftskip-leftskip
noindent1.makebox[5.0pt]{}hello
end{document}


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.






share|improve this answer
























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    4














    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 hellos, 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}
    usepackage{fontspec}
    showoutput
    begin{document}
    begin{enumerate}
    item{}hello
    end{enumerate}
    settowidthleftskip{1.} % Don't do this in a real document!
    advanceleftskip -20pt
    leftskip-leftskip
    noindent1.makebox[5.0pt]{}hello
    end{document}


    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.






    share|improve this answer




























      4














      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 hellos, 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}
      usepackage{fontspec}
      showoutput
      begin{document}
      begin{enumerate}
      item{}hello
      end{enumerate}
      settowidthleftskip{1.} % Don't do this in a real document!
      advanceleftskip -20pt
      leftskip-leftskip
      noindent1.makebox[5.0pt]{}hello
      end{document}


      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.






      share|improve this answer


























        4












        4








        4







        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 hellos, 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}
        usepackage{fontspec}
        showoutput
        begin{document}
        begin{enumerate}
        item{}hello
        end{enumerate}
        settowidthleftskip{1.} % Don't do this in a real document!
        advanceleftskip -20pt
        leftskip-leftskip
        noindent1.makebox[5.0pt]{}hello
        end{document}


        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.






        share|improve this answer













        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 hellos, 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}
        usepackage{fontspec}
        showoutput
        begin{document}
        begin{enumerate}
        item{}hello
        end{enumerate}
        settowidthleftskip{1.} % Don't do this in a real document!
        advanceleftskip -20pt
        leftskip-leftskip
        noindent1.makebox[5.0pt]{}hello
        end{document}


        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 8 hours ago









        Marcel KrügerMarcel Krüger

        13.5k11636




        13.5k11636






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...