Skip to content

Instantly share code, notes, and snippets.

@embix
Created May 15, 2012 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save embix/2704315 to your computer and use it in GitHub Desktop.
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
\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