Erstellen und Modifizieren von Kommandos in LaTeX


LaTeX erlaubt es eigene Kommandos zu definieren und die vorhandenen Kommandos zu ersetzen.

Neues Kommando \kl ohne Parameter
\newcommand{\kl}{{ \colorbox{yellow}{\large \textcolor{green}{ZUM KORREKTURLESEN}}}\\ }


Neues Kommando \ia ohne Parameter
\newcommand{\ia}{{ \colorbox{yellow}{\large \textcolor{red}{IN ARBEIT}}}\\ }


Das Kommando \textbf{ ... } soll anstelle des Fettgedruckten einen gelben Hintergrund liefern
\renewcommand{\textbf}[1]{\colorbox{yellow}{#1}}


Environment wird immer mit \begin{EnvironmentName} eingeleitet und \end{EnvironmentName} beendet.
\newenvironment{myquote}%
    {\begin{quote}\small}%
    {\end{quote}}%
\SetBlockEnvironment{myquote}



% My commands
\newcommand{\kl}[1]{\colorbox{yellow}{#1}} % activate higlighting
\newcommand{\ia}[1]{\colorbox{red}{#1}}
%\newcommand{\kl}[1]{#1} % deactivate higlighting
%\newcommand{\ia}[1]{#1}




Siehe auch
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki