General ⇒ Accessing a previous LaTeX \def
Accessing a previous LaTeX \def
\def\linedL{{\L}}
\def\L{{\cal L}}
and then access the two macros separately. But of course this doesn't work correctly, since the second definition automatically modifies the first definition too. Any suggestions of how to make this work the way I want? Thanks! (And, sorry if this is already covered somewhere -- I coudln't think of what keywords to search for.)
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Accessing a previous LaTeX \def
Code: Select all
\documentclass{scrartcl}
\usepackage{xspace}
\edef\linedL{\L\noexpand\xspace}
\def\L{\mathcal{L}}
\begin{document}
\linedL and $\L$
\end{document}
Elke