Skip to content
Permalink
Browse files
Optimized.
  • Loading branch information
Robin Schneider committed Jun 15, 2013
1 parent f304845 commit c5c45122518ad0e6cf9712dc248b26fd3eea4cf0
Showing with 15 additions and 12 deletions.
  1. +12 −2 MyPackages/letterRS.sty
  2. +2 −9 scripts/LaTeX-git-log
  3. +1 −1 templates/letter/letter.tex
@@ -21,6 +21,7 @@
\newcommand{\EmStrasse}{}
\newcommand{\EmPLZ}{}
\newcommand{\EmOrt}{}
\newcommand{\EmKompAddresse}{}

\newcommand{\Anschrift}[7]{
\renewcommand{\EmVorname}{#1}
@@ -40,8 +41,9 @@
\newcommand{\EmAddress}{\EmStrasse\\ \EmPLZ ~\EmOrt}
\newcommand{\EmName}{\EmVorname ~\EmNachname}

\newcommand{\AnschriftAuslesen}[1]{
\input{/home/rsadmin/Dokumente/LaTeX/input-document/Anschrift/#1.tex}
\newcommand{\AnschriftAuslesen}[1]{%
\input{/home/rsadmin/Dokumente/LaTeX/input-document/Anschrift/#1.tex}%
\CheckIfEmFirma%
}

\newcommand{\BriefAn}[1]{
@@ -50,6 +52,14 @@
\Serienbrief{\EmVorname}{\EmNachname}{\EmSex}{\EmStrasse}{\EmPLZ}{\EmOrt}
}

\newcommand{\CheckIfEmFirma}{%
\ifthenelse{\equal{\EmFirma}{}}{%
\renewcommand{\EmKompAddresse}{\EmName\\ \EmAddress}%
}{%
\renewcommand{\EmKompAddresse}{\EmFirma\\ \EmName\\ \EmAddress}%
}%
}

\newcommand{\Osehrgeehrte}[2]{
\ifthenelse{\equal{#1}{m}}{\opening{Sehr geehrter Herr #2,}}{}
\ifthenelse{\equal{#1}{w}}{\opening{Sehr geehrte Frau #2,}}{}
@@ -155,6 +155,7 @@ for (@lines) {
say '\end{longtable}';
# }}}

# Documentation {{{
__END__
=head1 NAME
@@ -168,21 +169,12 @@ LaTeX-git-log [options]
Options:
--help brief help message
--man full documentation
--man full documentation
--startcommit set the start value of count commit
--author set this if you want the author included
--width set the width in cm of the commit message field in the LaTeX table
--git-c-add set an base URL to show a commit. This script will automaticly try to the the base URL for github.
--user set a github user to derive the base URL
--repo set a github repository to derive the base URL
=head1 OPTIONS
@@ -204,3 +196,4 @@ Prints the manual page and exits.
If you execute B<this program> within a git repository it will output the entiry version history as table written in LaTeX.
=cut
# }}}
@@ -12,7 +12,7 @@
%\setkomavar{subject}{}

\begin{document}
\begin{letter}{\EmName\\ \EmAddress}
\begin{letter}{\EmKompAddresse}
\Osehrgeehrte{\EmSex}{\EmNachname}

ich wollte ihnen nur mal \LaTeX{} empfehlen~\dots

0 comments on commit c5c4512

Please sign in to comment.