I have a problem when I use the command \verb|detectionFinProgramme|
. I don't know how to manage LaTex to get a normal alignement at the end of the line.
Does someone have a solution ?
Thanks in advance for your help.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI have a problem when I use the command \verb|detectionFinProgramme|
. I don't know how to manage LaTex to get a normal alignement at the end of the line.
Does someone have a solution ?
Thanks in advance for your help.
You can use egreg's solution to Hyphenation of CamelCaseClassNames: Mix automatic and manual? as follows:
\documentclass{article}
\makeatletter
\def\camelhyph#1{\c@melhyph#1\relax}
\def\c@melhyph#1{%
\ifx#1\relax\else
\ifx#1\-#1\else
\ifnum`#1<91 \-\fi
#1%
\expandafter\expandafter\expandafter\c@melhyph\expandafter
\fi
\fi}
\makeatother
\begin{document}
Filler text filler text filler text filler text filler text filler text
\texttt{\camelhyph{detectionFinProgramme}}
filler text filler text filler text filler text filler text filler
text filler text filler text filler text filler text filler text.
\end{document}
\verb
here\texttt{detectionFinProgramme}
would be better. It would not change the linebreak though. What do you want to happen? extra white space (try adding\sloppy
before the paragraph) or do you want to break within the word, and if so do you want a-
at the end of the line.