I am writing a document where we use a lot of Python and C++ class names. We decided to use a teletype font so we tend to have a lot of \texttt{camelCaseClassName}. Unfortunately, some of them are quite long. I added some hyphenation rules for the ones which are causing trouble in the text. I did it using \hyphenation{a-b-c}. This seems to work without the teletype font and in italics (\textit), but when I force teletype I end up having long words sticking out into the margins.
Can you please advise whether there is a way to fix it or if it is intentional or something that needs to be fixed in the package. Thanks.
Hi,
I am writing a document where we use a lot of Python and C++ class names. We decided to use a teletype font so we tend to have a lot of
\texttt{camelCaseClassName}
. Unfortunately, some of them are quite long. I added some hyphenation rules for the ones which are causing trouble in the text. I did it using\hyphenation{a-b-c}
. This seems to work without the teletype font and in italics (\textit
), but when I force teletype I end up having long words sticking out into the margins.Can you please advise whether there is a way to fix it or if it is intentional or something that needs to be fixed in the package. Thanks.