[Tex/LaTex] How to wrap a word in line without hyphen

line-breaking

I m writing one article in which i need to write a paragraph full of medical terms. How can i wrap a text in a line without using line break (or hyphen)?

Regards

Best Answer

You can break a word with no hyphen at the end of the line (see the other answers), but then it doesn't look like a broken word. It might be a good idea to use some other symbol there instead of the hyphen, for instance $\bm\cdot$ (with \usepackage{bm}). This can be done by defining:

\newcommand{\+}{\discretionary{\mbox{${\bm\cdot}\mkern-1mu$}}{}{}}

I strongly recommend using the package microtype too, which helps a lot here. I added a small negative \mkern after the dot, to make it protrude a bit to the right margin.

\documentclass{article}

\usepackage{bm}
\newcommand{\+}{\discretionary{\mbox{${\bm\cdot}\mkern-1mu$}}{}{}}
\usepackage{microtype}

\begin{document}

\hsize 4.75cm

x\hfill x

This is my\-very\-long\-word\-that\-I\-want\-to\-break\-at\-any\-of\-these\-given\-points

This is my\+very\+long\+word\+that\+I\+want\+to\+break\+at\+any\+of\+these\+given\+points

\renewcommand\+{\discretionary{}{}{}}

This is my\+very\+long\+word\+that\+I\+want\+to\+break\+at\+any\+of\+these\+given\+points

\end{document}
Related Question