Tag Info

New answers tagged

0

To recover the definition of \@alph you can add \appto\arabic@numbers{% \let\@alph\@origalph% \let\@Alph\@origAlph% } Code \documentclass[a5paper]{article} \newcommand{\subscript}[2]{$#1 _ #2$} \usepackage{amsfonts} \usepackage{polyglossia} \usepackage{enumitem} \setdefaultlanguage[numerals=maghrib]{arabic} \setotherlanguage{english} ...


1

This is a deliberate choice by the class: %% Misc tweaks \AtEndOfClass{% %% Make maths in titles go automatically bold \g@addto@macro\bfseries{\boldmath} %% Declare a bold version of the typewriter font ...


0

Still simpler: \documentclass{hepthesis} \usepackage{amsmath} \usepackage{enumitem} \begin{document} \begin{mainmatter} $T$ as in test. (This is what I want.) \begin{description}[font=\mdseries] \item[hehe! $T$] as in test. \end{description} \end{mainmatter} \end{document}


4

You can redefine the \makelabel using before key: \documentclass{hepthesis} \usepackage{amsmath} \usepackage{enumitem} \begin{document} \begin{mainmatter} $T$ as in test. (This is what I want.) \begin{description}[before={\renewcommand\makelabel[1]{\normalfont ##1}}] \item[$T$] as in test. \end{description} ...


1

Set leftmargin to 0pt so nothing can fit there and the new line is forced: \documentclass{article} \usepackage{enumitem} %\setlist[description]{style=nextline,leftmargin=0pt} % Optional Global Setup \begin{document} \begin{description}[style=nextline,leftmargin=0pt] % Local Setup \item [Green] The color green. \item [Red] The color red. \item ...


2

Just add the wide option. Might also be an idea to play with the itemindent \documentclass[a4paper]{memoir} \usepackage{kantlipsum} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=(\arabic*),wide,itemindent=\labelsep] \item \kant[1] \item \kant[1] \end{enumerate} \end{document}


4

You can define a command to color box containing the item label which can be applied to some item, here we use the enumitem package. \documentclass{article} \usepackage{xcolor} \usepackage{enumitem} \newcommand{\hilight}[1]{\setlength{\fboxsep}{1pt}\colorbox{yellow}{#1}} \newcommand{\hlitem}{\stepcounter{enumi}\item[\hilight{\theenumi}]} ...


2

Use \everymath{\displaystyle}. To make it local, put it inside a group: \documentclass{article} \begin{document} Text style: $\frac{a}{b}$ \bgroup \everymath{\displaystyle} Display style: $\frac{a}{b}$ \egroup And back: $\frac{a}{b}$ \end{document}


4

With the etoolbox and/or enumitem packages: \documentclass{article} \usepackage[showframe, nomarginpar]{geometry} \usepackage{mathtools} \usepackage{enumitem} \usepackage{etoolbox} \AtBeginEnvironment{enumerate}{\everymath{\displaystyle}} \begin{document} \begin{enumerate}% \item $\sin \frac{1}{x},\quad x\in (0,1]$ \item $\frac{1}{\sin ...



Top 50 recent answers are included