Linked Questions

6
votes
2answers
1k views

Center two images using multiple \hfills [duplicate]

I have two images that I want to show side by side, horizontally centered. I would like to distribute the remaining horizontal space evenly in three parts: To the left of the first image, between the ...
719
votes
1answer
1.2m views

What commands are there for horizontal spacing?

I know that \: in LaTeX produces a space when rendered. Are there any alternatives, because my LaTeX renderer doesn't support \: (it renders it as text), and there is no help / FAQ that I can find.
183
votes
3answers
232k views

What does “overfull hbox” mean? (Why is there a black mark at the end of a line?)

I often see output from TeX with the warning overfull hbox, badness 10000. What does this message mean?
81
votes
4answers
25k views

What is the difference between 'fil' and 'fill'?

TeX provides the commands \vfil and \vfill (and their corresponding horizontal versions \hfil and \hfill). These commands are actually defined as: \vskip 0cm plus 1fil \vskip 0cm plus 1fill where '...
16
votes
3answers
18k views

How do I center the table of contents title using tocloft?

I'm getting odd behavior using package tocloft to format my table of contents and center the titles "Contents", "List of Figures", and "List of Tables". Using the code suggested in the tocloft ...
12
votes
2answers
2k views

Why isn't a \vrule between \hfills centered?

I have two boxes that fill up most of the width of a page, with a \vrule between them, with an \hfill on either side of the rule, so that the two boxes are pushed to either side of the page and the ...
11
votes
2answers
1k views

Why does \hspace*{\fill} need \null for desired output?

I was trying to centre some math within an enumerate list, without a lineskip. I eventually found this discussion of \hfill vs \hspace*{\fill} which seems to suggest that using \hspace*{\hfill} will ...
13
votes
1answer
13k views

\hfill doesnt work on new line

I am using res class to prepare my CV. My code is Secured All-India Rank 2480 in Joint Entrance Examination (JEE) among over $500,000$ applicants\hfill{\em(2010)}\\ Secured 2488th rank in All India ...
2
votes
1answer
826 views

\hspace not even

I want to put 3 figures in one line and I adjust the horizontal position of figures using \hspace{}. The problem is that when I set the spacing to -16pt, i.e. \hspace{-16pt}, the figure does not move ...
3
votes
1answer
708 views

Put mbox on the right even if a newline is just before it

I want to write two words on the right of the page. sometext TWO WORDS so I put a \hfill just before and because I don't want any break in the two words, I use \mbox: sometext \hfill \mbox{TWO WORDS} ...
2
votes
3answers
785 views

How to insert multiple hspace into one row line?

I am trying to put multiple hspace into one line of text to get something like this: So I want that the "where the customer can..." comes exactly under "In the Date Control". How can I solve this? ...
0
votes
3answers
48 views

I don't know how to create a Horizontal blank spaces starting a new line

I want to create a line which exists horizontal blank spaces at start of the line. The effect like this: However, the line must have one character when use \hfill like this: a\hfill Your-name-here ...