I am trying to hyphenate long keywords like given in the example:
\documentclass[10pt]{article}
\usepackage{underscore}
\begin{document}
\pagestyle{empty}
\parbox{1pt}{TESTSTRING\_TESTSTRING\_HYPHENATION}
\\\\
%\begin{figure}[here]
%\centerline{\includegraphics*[width=0.8\paperwidth]{/pictures/regular_testname.png}}
%\centerline{\includegraphics*[width=0.8\paperwidth]{/pictures/escaped\_testname.png}}
%\end{figure}
\end{document}
I tried this and this and more without success. If I uncomment the figures in the example, the underscore
-package produced problems because the underscore in the filenames isn't interpreted properly anymore. Without using this package, the pictures can be inserted, but I don't get my strings hyphenated.
Do you have an idea how to hyphenate properly and just locally, like e.g. in that kind: TESTSTRING\myUnderTESTSTRING\myUnderHYPHENATION
?
And how can I control that no hyphen is written while hyphenating the string? This would be even preferable.
As a side-question: In my example, why isn't the first part of the string being hyphenated?
parbox
in a table/tabular environment.\hspace{0pt}TESTSTRING\_TESTSTRING\_HYPHENATION
will allow the first word to be hyphenated.underscore
package, hyphenation can be achieved with\hspace{0pt}TESTSTRING\_\allowbreak\hspace{0pt}TESTSTRING\_\allowbreak\hspace{0pt}HYPHENATION