Text Formatting ⇒ Prevent figure caption from splitting words?
Prevent figure caption from splitting words?
I was wondering if there was anything I can do to prevent a figure caption from splitting words between two lines.
Here is an example of what my captions look like:
%-----
Figure 1 - This figure is wond-
erful and I hope to use it again
%-----
I don't want any words ('wonderful' in this case) to be split apart.
I am using:
\usepackage[labelfont=bf,margin=1in,labelsep=endash]{caption}
Does anyone have any ideas?
Thanks!
Adam
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Prevent figure caption from splitting words?
one option would be to use the justification=raggedright option for the caption package; i.e., you could load the package with something like
Code: Select all
\usepackage[labelfont=bf,margin=1in,labelsep=endash,justification=raggedright]{caption}