Skip to content
Permalink
Browse files
Optimized.
  • Loading branch information
Robin Schneider committed Apr 20, 2013
1 parent 3681cf7 commit c0ef81a414620007d6f39fa95e59888045fa5cf0
@@ -0,0 +1 @@
*-autopp.ctr
@@ -83,6 +83,9 @@
\iflandscape%
{\setlength{\hURLlongtextsize}{21.5cm}}% %% landscape
{\setlength{\hURLlongtextsize}{12.5cm}}% %% no landscape
\ifthenelse{\isnamedefined{setkomavar}}{% scrlttr2
\addtolength{\hURLlongtextsize}{-1cm}%
}{}%
\begin{center}%
\ifthenelse{\lengthtest{\textwidth > 815pt}} %% für lernator.de-Statistiken
{\hspace{1.5cm}}{}
@@ -95,7 +98,7 @@
\begin{minipage}{\hURLlongtextsize}%
Dieses Dokument \ifgitversion{liegt in Version \printversion{} vor.\\
Die aktuelle Version }{}ist als PDF Datei unter \printURLshort abrufbar.
\printURLlongextension%
\LanguageURLlongExtension%
\end{minipage}%
\ifthenelse{\lengthtest{\textwidth > 815pt}} %% für lernator.de-Statistiken
{\hspace{1.5cm}~}{}
@@ -108,7 +111,7 @@
\newcommand{\SetGitURL}[1]{\renewcommand{\GitURL}{#1}}
\newcommand{\printGitURLlong}{%
\ifthenelse{\equal{\GitURL}{}}{}{%
Der Quellcode für dies Dokument ist auf GitHub: \url{\GitURL}
\LanguageGitURLlong \url{\GitURL}
}%
}

@@ -137,13 +140,14 @@
}
}

\newcounter{Author@ChosenNumber} %% Sets the pdfcreator to \Typesetter
\newcommand{\AUTHOR}{}
\newcommand{\SetAUTHOR}[2]{
\newcounter{Author@ChosenNumber} %% Sets the pdfcreator to \Typesetter
\setcounter{Author@ChosenNumber}{#1}%% if #1 == 4
\threeIF{#1}{\newcommand{\AUTHOR}{\Typesetter}}
{\newcommand{\AUTHOR}{}}
{\newcommand{\AUTHOR}{Name nicht Definiert\xspace}}
{\newcommand{\AUTHOR}{#2\xspace}} %% if #1 == 4
\threeIF{#1}{\renewcommand{\AUTHOR}{\Typesetter}}
{\renewcommand{\AUTHOR}{}}
{\renewcommand{\AUTHOR}{Name nicht Definiert\xspace}}
{\renewcommand{\AUTHOR}{#2\xspace}} %% if #1 == 4
}

\newcommand{\SetABGABEDATUM}[5]{
@@ -34,7 +34,8 @@
\ifthenelse{\isnamedefined{setkomavar}}{}{% scrlttr2
\setcounter{vorstatpage}{\value{page}}%
\setcounter{tablesvorstat}{\value{table}}%
} \\}}
} \\}%
}

\newcommand{\PrintDefaultTitlepage}{\input{/home/rsadmin/Dokumente/LaTeX/input-document/titelpages/maketitle}}

@@ -4,7 +4,8 @@
\newcommand{\LanguageClassName}{class}
\newcommand{\LanguageLicenceName}{licence}
\newcommand{\LanguageVersionName}{version}
\newcommand{\printURLlongextension}{This PDF file also contains a version history and statistics
\newcommand{\LanguageGitURLlong}{The source code for this document can be found on GitHub: }
\newcommand{\LanguageURLlongExtension}{This PDF file also contains a version history and statistics
about this document}
\newcommand{\LanguageTitlepageName}{Front page}
\newcommand{\LanguageWordSee}{See}
@@ -4,7 +4,8 @@
\newcommand{\LanguageClassName}{Klasse}
\newcommand{\LanguageLicenceName}{Lizenz}
\newcommand{\LanguageVersionName}{Version}
\newcommand{\printURLlongextension}{In dieser PDF Datei finden sich auch noch Versionshinweise
\newcommand{\LanguageGitURLlong}{Der Quellcode für dieses Dokument ist auf GitHub: }
\newcommand{\LanguageURLlongExtension}{In dieser PDF Datei finden sich auch noch Versionshinweise
und Statistiken über dieses Dokument.}
\newcommand{\LanguageTitlepageName}{Titelseite}
\newcommand{\LanguageWordSee}{Siehe}
@@ -20,6 +20,7 @@
% tabularcalc, %% Berechnet Formeln in einer tabellarischen Umgebung
% pgfplotstable,
% skmath,
}

%% use \textrm{test}

@@ -8,9 +8,18 @@ use Getopt::Long;

my $print_author = 0;
my $commit_count = 1;
my $width = 0;
my $git_commit_address = 'https://github.com/ypid/document-Stundenplan/commit';
GetOptions ('startcommit=s' => \$commit_count,
'author' => \$print_author,
'width=s' => \$width,
'git-c-add=s' => \$git_commit_address,
);
if ($width) {
$width = "p{${width}cm}";
} else {
$width = 'l';
}
## Tags auslesen und benutzen
say '\begin{tabular}{lp{12cm}}
% \lable{tabular:Legende:git-log}
@@ -35,9 +44,9 @@ say '& \multicolumn{1}{c}{\textbf{Datum}}
& \multicolumn{1}{c}{\textbf{Versionsbericht}} & \multicolumn{1}{c}{\textbf{Fm}}
& \multicolumn{1}{c}{\textbf{La}} & \multicolumn{1}{c|}{\textbf{Ld}} \\\\ \hline}';
if ($print_author) {
say '\begin{longtable}{|rllllrrr|}';
say "\\begin{longtable}{|rllllrrr|}";
} else {
say '\begin{longtable}{|rlllrrr|}';
say "\\begin{longtable}{|rll${width}rrr|}";
}
say '\longtableheader
\endfirsthead
@@ -62,10 +71,10 @@ my @lines;
my @git_command = qw(git log --date=short --shortstat);
if ($print_author) {
@lines = reverse capturex(@git_command,
q(--pretty=format:%d & %an & %ad & %s));
qq(--pretty=format:%d & %an & %ad & \\href{$git_commit_address/%H}{%s}));
} else {
@lines = reverse capturex(@git_command,
q(--pretty=format:%d & %ad & %s));
qq(--pretty=format:%d & %ad & \\href{$git_commit_address/%H}{%s}));
}
my $which_line = 0;
my @changes;
@@ -86,4 +95,4 @@ for (@lines) {
}
$which_line ^= 1; ## toggle bit
}
say '\end{longtable}'
say '\end{longtable}';
@@ -9,12 +9,13 @@ binmode STDOUT, ':encoding(UTF-8)';

$^I = ".bak";

while (<>) {
s{\A%% <(?:Schule|school)/([^<>]+?).tex> (?:Vorlageversion|template version) ([^<> ]+?) <Robin Schneider>}{%% <school/$1.tex> template $2 by Robin `ypid` Schneider <ypid23\@aol.de>}ms;
while (<>) { ## Schule|school|letter|scrlttr2
s{\A%% <(?:Schule|school)/([^<>]+?).tex> (?:Vorlageversion|template version) ([^<> ]+?) <Robin Schneider>}{%% <school/$1.tex> template $2 by Robin `ypid` Schneider <ypid23\@aol.de>\n%% The current version can be found on: https://github.com/ypid/typesetting/blob/master/templates/school/$1.tex}ms;
s{\A%%%Präambel\Z}{%%% preamble}ms;
s{\A%\\listfiles.*}{%\\listfiles %% listfiles to logfile}m;
s{\A%% spet?zifische angaben\Z}{%% specific indications}msi;
s{\A%%%Body\Z}{%%% body}ms;
s{\A\\input{/home/rsadmin/Dokumente/LaTeX/input-document/titelpages/Epochenheft}\Z}{\\input{titelpages-EpochenheftRS.tex}}ms;
# if (/\A#!/) {
# $_ .= "## Copyright (C) 2011 by Yours Truly";
# }
@@ -1,10 +1,11 @@
%% <scrlttr2/letter.tex> template version 1.2.1 <Robin Schneider>
%% <letter/letter.tex> template 1.2.1 by Robin `ypid` Schneider <ypid23@aol.de>
%% The current version can be found on: https://github.com/ypid/typesetting/blob/master/templates/letter/letter.tex
%%% preamble
%\listfiles %% listfiles in die Logdatei
%\listfiles %% listfiles to logfile
\RequirePackage{RequirePackageRS}
\documentclass[ngerman,default_settings,address_Robin,signature_picture]{scrlttr2}

%% spezifische Angaben
%% specific indications
\AnschriftAuslesen{MaxMustermann}
%\renewcommand{\EmVorname}{}\renewcommand{\EmSex}{f}
%\setkomavar{signature}{}
@@ -0,0 +1,25 @@
%% <letter/letter.tex> template version 1.2.1 <Robin Schneider>
%%% preamble
%\listfiles %% listfiles to logfile
\RequirePackage{RequirePackageRS}
\documentclass[ngerman,default_settings,address_Robin,signature_picture]{scrlttr2}

%% specific indications
\AnschriftAuslesen{MaxMustermann}
%\renewcommand{\EmVorname}{}\renewcommand{\EmSex}{f}
%\setkomavar{signature}{}
%\setkomavar{subject}{}

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

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

\closing{Mit freudlichen Grüßen}
%\cc{name1 \\ name2}
%\renewcaptionname{ngerman}{\enclname}{Anlage}
%\encl{ anlage1 \\ anlage2}
%\ps{PS: Text}
\end{letter}
\end{document}
@@ -4,3 +4,4 @@ test*
files/images
files/git
Bewertung*
*-autopp.ctr
@@ -2,8 +2,7 @@
# Post-{commit,checkout,merge}
#
LaTeX-git-commit-count > files/git/version.tex ## \readgitstat{7}
LaTeX-git-log |sed 's/rlllrrr/rllp{14cm}rrr/g' > files/git/versions-log.tex
## Falls die Tabele über den rechten Rand geht: |sed 's/rlllrrr/rllp{12cm}rrr/g'
LaTeX-git-log --width=14 > files/git/versions-log.tex
# LaTeX-gitstats >/dev/null
#LaTeX-gitstats.sh "" >/dev/null
git fsck --full

0 comments on commit c0ef81a

Please sign in to comment.