Dies ist eine alte Version des Dokuments!


Mercurial Infos einfügen
\usepackage[eso-foot]{svninfo}
\svnInfo $Id $

oder

\documentclass{article}
\usepackage{svninfo}
 
\makeatletter
\def\@svnInfoCrackAndEat #1 #2 #3 #4 #5 #6 $ {\@svnEndRead
  \@svnInfoCrackString #2 #3 #4 #5 {#6} $ %
}
\makeatother
 
\begin{document}
\svnInfo $Id: doc.tex 8 2013-04-11 19:37:31Z User Name $ %<= Id keyword substituted by svn  
 
[\svnInfoOwner]
 
\end{document}

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