I need to format my text in bold therefore I have several options for the same result. The main result would look like
\textbf{text in bold}
which works fine. But as soon as line breaks start to kick in the problem seems to get difficult. E.g.
\textbf{text
in bold}
Especially with the additional line break in between. LaTeX fails to compile. The log files indicate an introduced \par which seems to be in conflict with \textbf.
I found the solution for replace \textbf with {\bfseries ...}. Other solutions I found are italic (={\itshape...}, \texttt (={\ttfamily...})
I have the same problems for
\underline,\textsubscriptand\textsuperscript
are there similar solutions as for the bold font available?
\underline, have a look at this answer. I am wondering why you want to use subscript and superscript multiline. – Mar 11 '19 at 14:05\underlinehas exactly the same result. @Thruston: I don't understand how to define a new environment. Just defining\newenvironment{myUL}[1]{\underline{#1}}{\par}will only format the very first char. And for the definition of a font: I want to use the regular font - just with e.g.underline– LeO Mar 11 '19 at 14:40