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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis