I am using the following template for a document. The only problem I have is the last digit of the number "1900" does not line up with the "s" in the word "apples" on the right side of the file (please refer to the screenshot at the bottom). It seems "1900" would need one extra space to the right to exactly line up with the word "Apples". I don't know how to make that happen.





\def\bull{\vrule height 0.8ex width .7ex depth -.1ex }


        \hrulefill \\


            {\Large \scshape {#1}}\\ \smallskip
            {#2}\\ \smallskip 
            {#3}\\ \smallskip



\header{I Eat Apples}
    \textbf{One Apple} \hfill {Jan 1900}
    \begin{itemize} \itemsep -0pt  % reduce space between items
        \item Two Apples \hfill{Apples}


enter image description here


The problem is an unwanted white space by an end of line, the line with "Jan 1900". The following line \vspace*{-4pt} also belongs to the paragraph that ends with \begin{itemize}. Thus there are two spaces by line ends at the end of the paragraph. However TeX only removes one space by an internal \unskip and replaces it by \parfillskip. Thus the result at the end of this paragraph is:

(Jan 1900)<space><\parfillskip (0pt plus 1fil)>

The problem is solved by either inserting an emtpy line before \vspace. Then the paragraph has already ended and \vspace is called in vertical mode without effect of its line end.

Or at least one of the line ends is commented as shown in the example file:

    \textbf{One Apple} \hfill {Jan 1900}%
    \begin{itemize} \itemsep -0pt  % reduce space between items
        \item Two Apples \hfill{Apples}


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.