New answers tagged

2

A quick way with enumitem and the font option. Note: This way, all item description labels will be written in italic font. \documentclass{article} \usepackage{enumitem} \begin{document} \begin{description}[font={\itshape}] \item[5 V]\textit{(Pin: 2, 4)} rest of Text \end{description} \end{document}


6

unicode-math should be loaded after all font-packages (well, packages, that load fonts as well, like amsmath etc.) are loaded, to provide the corresponding changes. The unicode-math package states (see section 3 Getting started): Load unicode-math as a regular LATEX package. It should be loaded after any other maths or font-related package in case it ...


7

A simple application of grouping: \documentclass{article} \newcount\emphlevel \DeclareRobustCommand{\emph}[1]{% \begingroup \normalfont \advance\emphlevel by 1 \ifcase\emphlevel \or `\aftergroup'\normalfont \or \normalfont\expandafter\textsc \or \normalfont\expandafter\textit \else \normalfont!!!!\expandafter\textbf \fi ...


4

I decided to use another command name, but the nesting can be controlled with a counter and \ifcase...\fi conditional. The 4th level will provide an usual \@ctrerr, but this could be shifted to basically any level. \documentclass{article} \newcounter{smartlevel} \makeatletter \newcommand{\smartcmd}[1]{% \stepcounter{smartlevel}% ...


7

\documentclass{article} \newcounter{emphlevel} \renewcommand\emph[1]{\stepcounter{emphlevel}% \ifnum\value{emphlevel}=1`#1'\else \ifnum\value{emphlevel}=2\textsc{#1}\else \ifnum\value{emphlevel}=3\textit{#1}\else \fi\fi\fi\addtocounter{emphlevel}{-1}% } \begin{document} \emph{Single quotes within \emph{Small Caps within \emph{more italics} and} ...



Top 50 recent answers are included