Created
May 15, 2012 19:15
-
-
Save embix/2704315 to your computer and use it in GitHub Desktop.
simplify an environment to a simple command allowing the use of special/shorter aliases within
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper,DIV=calc,ngerman]{scrartcl} | |
\usepackage[T1]{fontenc} | |
\usepackage[latin1]{inputenc} | |
\usepackage[ngerman]{babel} | |
\begin{document} | |
\newcommand{\aufz}[1]{ | |
\makeatletter | |
\providecommand{\i}{\item} | |
\begin{itemize} | |
#1 | |
\end{itemize} | |
%\renewcommand{\i}{} % sauberes undef machen | |
\let\i\relax | |
\makeatother | |
} | |
\aufz{ | |
\item bla | |
\item blub | |
\i hossa | |
\i wtf | |
} | |
\verb|\i| wuerde hier nix bewirken. | |
\i siehste! | |
\aufz{ | |
\i foo | |
\i fuck | |
\i mist | |
} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment