GeneralComplete Words Using Wrapfig

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nettel
Posts: 14
Joined: Wed Oct 08, 2008 11:25 pm

Complete Words Using Wrapfig

Post by nettel »

Im using wrap fig in a document where I need the text to float around several smallish pictures. Is there a way to to force complete words when the end of the sentance reaches the picture box? i.e. I dont want the incomplete word to go over to the new line with a hyphen.....I would rather if it cant fit to take the complete word to the next line. Sample code im using below.

Is it possible to amend this code;

\begin{wrapfigure}{r}{0.47\textwidth}
\vspace{-20pt}
\begin{center}
\includegraphics[width=3in,height=!]{F2.pdf}
\vspace{-5pt}
\caption{\textbf{New model design incorporating pressure taps and RASB ports.}}
\label{taps}
\end{center}
\vspace{-5pt}
\end{wrapfigure}

Cheers

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

jgombos
Posts: 4
Joined: Tue Oct 07, 2008 9:52 pm

Complete Words Using Wrapfig

Post by jgombos »

Try adding this in your document:

Code: Select all

\hyphenation{New model design incorporating pressure taps and RASB ports}
Those words cannot be broken after that line is processed.
nettel
Posts: 14
Joined: Wed Oct 08, 2008 11:25 pm

Re: Complete Words Using Wrapfig

Post by nettel »

I tried \hyphenation{} to no avail and also tried nohyphens. I assume the text you want with no hyphens is entered within curly brackets? \hyphenation{} . I put these around the body text that surrounded the picture and i got errors.
Post Reply