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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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}