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 ...
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.
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?
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 '...
18k views

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 ...
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 ...
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 ...
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 ...
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 ...
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} ...