I am writing my Bachelorthesis and I have to write T8-1 till T8-4 many times. I want that it is no hyphenation in it.
Code: Select all
\hyphentation{T8-1}
\hyphentation{T8\-1}
\hyphentation{T8"~1}
How do I change that?
Code: Select all
\hyphentation{T8-1}
\hyphentation{T8\-1}
\hyphentation{T8"~1}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
\newcommand{\Teighti}{\mbox{T8-1}}
\newcommand{\Teightii}{\mbox{T8-2}}
%etc ... Or
\newcommand{\Teight}[1]{\mbox{T8-#1}}
babel
with German language shorthands? If that is true then the solution is easy:Code: Select all
\documentclass{article}
\usepackage[ngerman]{babel}
\begin{document}
\parbox{0pt}{\hspace*{0pt}T8-1} % breaks
\parbox{0pt}{\hspace*{0pt}T8"~1} % does not break
\end{document}
\hyphenation
words need to consist of letters. Within the argument of \hyphenation
-
has a special meaning: it specifies where a word is allowed to break. So even if 1 and 8 were lettersCode: Select all
\hyphenation{T8-1}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p