== Speicher-Button ausblenden bei Ausdruck ==
% \usepackage{ocg-p}
\begin{ocg}[printocg=never]{SaveAsButton}{SaveAsButtonID}{1}
% content...
\Acrobatmenu{SaveAs}{\fcolorbox{black}{yellow}{PDF-Dokument speichern}}
\end{ocg}
== Zweitschrift ==
in //scrlettr2//
%------------------------------------------------------------
\documentclass[copy]{scrlettr2}
%------------------------------------------------------------
== Euro ==
%------------------------------------------------------------
\usepackage{eurosym}
\usepackage[utf8]{inputenc}
\DeclareUnicodeCharacter{20AC}{\euro}
%------------------------------------------------------------
== Unterscheidung nach Geschlecht ==
%------------------------------------------------------------
\DTLifstringeq{\sex}{w}%
{Ihre Tochter}%
{Ihr Sohn}
%------------------------------------------------------------
== Quelldatei einbinden ==
%------------------------------------------------------------
\usepackage{navigator}
\embeddedfile{sourcecode}{\jobname.tex}
%------------------------------------------------------------
== Entwurf Wasserzeichen ==
%------------------------------------------------------------
\usepackage{draftwatermark}
\SetWatermarkText{ENTWURF}
\SetWatermarkLightness{0.8}
\SetWatermarkScale{4}
%------------------------------------------------------------
== Testen ob Argument leer ist usw. ==
%------------------------------------------------------------
\makeatletter % We need to access some internal commands
\newcommand*{\IfDataT}[1]{% Create a macro taking one argument
\ifx#1\empty
\expandafter\@gobble % Empty input: ignore the next thing
\else
\ifx#1\DTLstringnull
\expandafter\expandafter\expandafter
\@gobble % NULL input: ignore the next thing
\else
\expandafter\expandafter\expandafter
\@firstofone % Use the next thing unchanged
\fi
\fi
}
\newcommand*{\IfDataTF}[1]{% Create a macro taking one argument
\ifx#1\empty
\expandafter\@secondoftwo % Empty value: use the False branch
\else
\ifx#1\DTLstringnull
\expandafter\expandafter\expandafter
\@secondoftwo % NULL value: use the False branch
\else
\expandafter\expandafter\expandafter
\@firstoftwo % A real value: use the True branch
\fi
\fi
}
\makeatother
%------------------------------------------------------------
== Schreibfläche für Arbeitsblätter ==
%% ---------------------------------------
\usepackage{tikz}
\newcommand{\karos}[2]{
\begin{tikzpicture}
\draw[xstep=0.4cm,ystep=0.4cm,color=lightgray] (0,0) grid (#1,#2);
\end{tikzpicture}}
%----------------------------------------------------------------