8
votes
Accepted
Expand key-values with \def of \newcommand?
You can define new keys:
\documentclass{article}
\usepackage{enumitem}
\SetEnumitemKey{alph}{label=#1\alph*), ref=#1\alph*}
\begin{document}
\begin{enumerate}[alph=A]
\item abc\label{test}
\end{...
5
votes
How to color math symbols?
In sufficiently new version of LaTeX, simply load xcolor package and use \mathcolor. Refer to texdoc mathcolor for documentation.
\documentclass{article}
\usepackage{xcolor}
\begin{document}
$\...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
macros × 8118expansion × 468
tikz-pgf × 458
environments × 428
math-mode × 376
conditionals × 342
tex-core × 318
tables × 285
spacing × 267
optional-arguments × 207
errors × 194
expl3 × 191
xparse × 190
arguments × 141
cross-referencing × 138
counters × 134
sectioning × 130
packages × 123
formatting × 121
programming × 112
etoolbox × 104
beamer × 103
strings × 103
symbols × 101
color × 99