Skip to content
Permalink
Browse files
Added macro for showing the github URL and optimized.
  • Loading branch information
Robin Schneider committed Apr 4, 2013
1 parent dc3b091 commit 457664094f33618c62348fe5a9798cc98117bcad
@@ -9,6 +9,8 @@
timeRS,
xspace,
ccicons,
auto-pst-pdf,
pst-barcode,
}

\newcommand{\choosedefaultlicense}{\SetLICENSE{CreativeCommons/by-nc-sa}{0}}
@@ -68,8 +70,6 @@
{\LICENSEname}}%
}



\newcommand{\SetTITEL}[1]{\newcommand{\TITEL}{#1\xspace}}
\newcommand{\SUBJECT}{}
\newcommand{\SetSUBJECT}[1]{\renewcommand{\SUBJECT}{#1\xspace}}
@@ -79,7 +79,6 @@
\newcommand{\printURLshort}{\ifthenelse{\equal{\URL}{}}{}{\url{\URL}\xspace}}
\newcommand{\printURLlong}[1][3cm]{%
\ifthenelse{\equal{\URL}{}}{}{%
\immediate\write18{qrencode -s 1 -m 0 -o /tmp/\jobname-qr.png "\URL"}%
\newlength{\hURLlongtextsize}%
\iflandscape%
{\setlength{\hURLlongtextsize}{21.5cm}}% %% landscape
@@ -88,7 +87,9 @@
\ifthenelse{\lengthtest{\textwidth > 815pt}} %% für lernator.de-Statistiken
{\hspace{1.5cm}}{}
\begin{minipage}{#1}%
\href{\URL}{\includegraphics[width=#1]{/tmp/\jobname-qr.png}}%
\begin{pspicture}(1in,1in)%
\psbarcode{\URL}{eclevel=M width=1.3 height=1.3}{qrcode}%
\end{pspicture}%
\end{minipage}%
\hfill
\begin{minipage}{\hURLlongtextsize}%
@@ -100,6 +101,15 @@
{\hspace{1.5cm}~}{}
\end{center}%
}%
\printGitURLlong%
}

\newcommand{\GitURL}{}
\newcommand{\SetGitURL}[1]{\renewcommand{\GitURL}{#1}}
\newcommand{\printGitURLlong}{%
\ifthenelse{\equal{\GitURL}{}}{}{%
Der Quellcode für dies Dokument ist auf GitHub: \url{\GitURL}
}%
}

\newboolean{@ifCREATEDATE}
@@ -131,13 +141,12 @@
\newcounter{Author@ChosenNumber} %% Sets the pdfcreator to \Typesetter
\setcounter{Author@ChosenNumber}{#1}%% if #1 == 4
\threeIF{#1}{\newcommand{\AUTHOR}{\Typesetter}}
{\newcommand{\AUTHOR}{\input{/home/rsadmin/.userinfo/name-fake}\xspace}}
{\newcommand{\AUTHOR}{}}
{\newcommand{\AUTHOR}{Name nicht Definiert\xspace}}
{\newcommand{\AUTHOR}{#2\xspace}} %% if #1 == 4
}

\newcommand{\SetABGABEDATUM}[5]{
\newcommand{\ReleaseDateName}{Abgabedatum}
\newcounter{ReleaseDate@ChosenNumber}
\setcounter{ReleaseDate@ChosenNumber}{#1}
\sixIF{#1}{ %% if #1 == 1
@@ -2,6 +2,8 @@
## \readgitstat{7}
reversiongit="`git log --pretty="%h"|wc -l`"
shorthashgit="`git rev-parse --short HEAD`"
if [ -n "$1" ];then
reversiongit=$((reversiongit + $1 -1))
fi
echo '\setcounter{reversiongit}{'${reversiongit}'}'
echo '\newcommand{\shorthashgit}{'${shorthashgit}'}'

@@ -10,7 +10,7 @@ my $print_author = 0;
my $commit_count = 1;
GetOptions ('startcommit=s' => \$commit_count,
'author' => \$print_author,
);
);
## Tags auslesen und benutzen
say '\begin{tabular}{lp{12cm}}
% \lable{tabular:Legende:git-log}
@@ -73,6 +73,7 @@ for (@lines) {
next if /\A\Z/xms;
chomp;
if ($which_line) {
s#\(\w+?/\w+?\) ##;
s/\((?:HEAD, |)(.*?)(?:, master|)\)/$1/;
s/ master//;
say "\\hline $commit_count &$_ & " . join(' & ', @changes) . ' \\\\';
@@ -25,7 +25,8 @@ sed 's/{/(((((/g' \
umlaute (){
sed 's/M-CM-</ü/g' \
|sed 's/M-CM-^\\/Ü/g' \
|tr "$" "x"|sed 's/M-CM-x/ä/g' \
|tr "$" "x" \
|sed 's/M-CM-x/ä/g' \
|sed 's/M-CM-^D/Ä/g' \
|sed 's/M-CM-6/ö/g' \
|sed 's/M-CM-^V/Ö/g' \
@@ -4,7 +4,7 @@
./tlmgr-update Updates TeX Live
./pdfoptmod Executes pdfopt and removes the original PDF file
./LaTeX-git-wdiff Converts the output of git diff --color-words
./LaTeX-git-log Converts the output of git log into LaTeX
./LaTeX-git-log-author Converts the output of git log (with author) into LaTeX
./LaTeX-git-log Converts the output of git log into LaTeX (you can choose if you want to include the author)
./makeindex-dtx Executes makeindex for dtx files
./kpseshow Find and show a file in the TeX tree
</pre>
@@ -5,5 +5,3 @@ source /etc/profile
export http_proxy='http://knuth.intra:3128/' ## change this
tlmgr update --self bin-texlive texlive.infra
tlmgr update --all


This file was deleted.

@@ -1,9 +1,9 @@
#!/bin/sh
#!/bin/bash
# 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-gitstats >/dev/null
# LaTeX-gitstats >/dev/null
#LaTeX-gitstats.sh "" >/dev/null
git fsck --full

0 comments on commit 4576640

Please sign in to comment.