Tag Info

New answers tagged

7

Some reminders: Don't use ~\\ while ending lines. Don't use two \\ to end a paragraph. Use \par in place of all ~\\ and ~\\~\\ or leave a blank line. If you are using italic shape for an entire paragraph, it is better to use itshape (which is a switch) inside a group → {\itshape your text...}. Having said that, this works: ...


3

Redefine \glstextformat: \documentclass{article} \usepackage{glossaries} \newglossaryentry{sample}{name={sample},description={an example}} \renewcommand{\glstextformat}[1]{\textit{#1}} \begin{document} \gls{sample}. \end{document}


3

There is a difference. \textit and \textbf change independent font attributes, the shape and the series. If the font is changed in two steps, then the first step might cause a LaTeX Font Warning depending on the current font attributes, if the combination in this step is not available. Example: \documentclass{article} \makeatletter ...


3

I'm not sure about your real needs, but this seems to do: \documentclass{beamer} \newcommand{\italnum}[1]{\begingroup\fontfamily{cmr}\itshape#1\endgroup} \begin{document} \begin{frame} \frametitle{This is \italnum{1}} A number $2$ and also italic \italnum{2} \end{frame} \end{document} If you need it working also in math mode, let me know.



Top 50 recent answers are included