Skip to content
Permalink
Browse files
Optimized latex-git-log.
  • Loading branch information
Robin Schneider committed Jun 15, 2013
1 parent af3d63d commit 489927feca92be10ddb5bde1b8fb11dae6b37bbb
@@ -46,7 +46,7 @@ Options:

In this case you should specify the width of the column
containing the commit messages. I normally use something like
--width=14 for DIN A4.
--width=14 for DIN A4 in landscape.

--git-c-add
Set an base URL to link to a commit. This script will
@@ -1,21 +1,19 @@
%% This file was generated by the script latex-git-log
%% Base git commit URL: https://github.com/ypid/typesetting/commit
\begin{tabular}{lp{12cm}}
% \lable{tabular:legend:git-log}
\label{tabular:legend:git-log}
\textbf{acronym} & \textbf{meaning} \\
V & \texttt{version} \\
Tag & git tag \\
Tag & \texttt{git tag} \\
Fm & Number of \texttt{modified files}. \\
La & Number of \texttt{added lines}. \\
Ld & Number of \texttt{deleted lines}. \\
\end{tabular}

\bigskip
\newcounter{gitversionnumber}
\newcommand{\StepPrintgitV}{\stepcounter{gitversionnumber}\arabic{gitversionnumber}}

\iflanguage{ngerman}{\shorthandoff{"}}{}
\begin{longtable}{|rllp{6cm}rrr|}
\begin{longtable}{|rllp{13cm}rrr|}
\hline \multicolumn{1}{|c}{\textbf{V}} & \multicolumn{1}{c}{\textbf{Tag}}
& \multicolumn{1}{c}{\textbf{date}}
& \multicolumn{1}{c}{\textbf{commit message}} & \multicolumn{1}{c}{\textbf{Fm}}
@@ -28,7 +26,7 @@
\hline% \hline
\endlastfoot

\hline 1 & & 2012-08-18 & \href{https://github.com/ypid/typesetting/commit/3ff663fcfbc56662426740cf6bab2a840e320db6}{added template.dtx from http://texhacks.blogspot.de/} & 2 & 127 & 0 \\
\hline 1 & & 2012-08-18 & \href{https://github.com/ypid/typesetting/commit/3ff663fcfbc56662426740cf6bab2a840e320db6}{added template.dtx from http://texhacks.blogspot.de/2011/01/simpler-dtx-template.html} & 2 & 127 & 0 \\
\hline 2 & & 2012-08-19 & \href{https://github.com/ypid/typesetting/commit/e9fc9a2847fe14067bb3ec8d4e4298ff8806f11f}{made my first changes on the docstrip template} & 2 & 40 & 48 \\
\hline 3 & & 2012-08-19 & \href{https://github.com/ypid/typesetting/commit/cbc7bbcdda54f7b43f2039531d2a4f58c35f8964}{optimized} & 1 & 5 & 4 \\
\hline 4 & & 2012-08-22 & \href{https://github.com/ypid/typesetting/commit/55d994c391c509897dd56a6a755c51a1e62bd4d4}{optimized} & 2 & 119 & 115 \\
@@ -61,4 +59,5 @@
\hline 31 & & 2013-04-21 & \href{https://github.com/ypid/typesetting/commit/782b0e0e51773b02cf909600444da892c890b926}{Optimized.} & 4 & 30 & 13 \\
\hline 32 & & 2013-05-22 & \href{https://github.com/ypid/typesetting/commit/f3048459117aa782b32324bd08ce77bfde325a62}{Optimized (mainly LaTeX-git-wdiff).} & 9 & 229 & 78 \\
\hline 33 & & 2013-06-15 & \href{https://github.com/ypid/typesetting/commit/c5c45122518ad0e6cf9712dc248b26fd3eea4cf0}{Optimized.} & 3 & 15 & 12 \\
\hline 34 & v1.0 & 2013-06-15 & \href{https://github.com/ypid/typesetting/commit/af3d63d88a8e37c45c4dc7c8b54ee55091f7ea80}{Made latex-git-log ready for CTAN.} & 6 & 482 & 199 \\
\end{longtable}
Binary file not shown.
@@ -1,4 +1,4 @@
\documentclass[12pt,a4paper,english]{scrartcl}
\documentclass[12pt,a4paper,english,landscape]{scrartcl}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
@@ -11,7 +11,7 @@

The example-output.tex was generated with this command:
\begin{verbatim}
latex-git-log --width=6 --lang=en > example-output.tex
latex-git-log --width=13 --lang=en > example-output.tex
\end{verbatim}

\end{document}
@@ -79,18 +79,16 @@ else {

# LaTeX template {{{
say '\begin{tabular}{lp{12cm}}
% \lable{tabular:legend:git-log}
\label{tabular:legend:git-log}
\textbf{'. loc('acronym') .'} & \textbf{'. loc('meaning') .'} \\\\
V & \texttt{'. loc('version') .'} \\\\
Tag & '. loc('git tag') .' \\\\
Tag & '. loc('\texttt{git tag}') .' \\\\
Fm & '. loc('Number of \texttt{modified files}.') .' \\\\
La & '. loc('Number of \texttt{added lines}.') .' \\\\
Ld & '. loc('Number of \texttt{deleted lines}.') .' \\\\
\end{tabular}
\bigskip
\newcounter{gitversionnumber}
\newcommand{\StepPrintgitV}{\stepcounter{gitversionnumber}\arabic{gitversionnumber}}
\iflanguage{ngerman}{\shorthandoff{"}}{}';
if ($print_author) {
@@ -206,7 +204,7 @@ you have a very long commit message then the table will not actually on the
page and you will get a "Overfull" error message from TeX.
In this case you should specify the width of the column containing the commit messages.
I normally use something like --width=14 for DIN A4.
I normally use something like --width=14 for DIN A4 in landscape.
=item B<--git-c-add>
@@ -20,7 +20,7 @@ msgstr "Bedeutung"
msgid "version"
msgstr "Version"

msgid "git tag"
msgid "\\texttt{git tag}"
msgstr "\\texttt{Markierung} einer Menge von Dateien, aus denen sich zu einem beliebigen Zeitpunkt eine bestimmte Version wiederherstellen lässt"

msgid "Number of \\texttt{modified files}."

0 comments on commit 489927f

Please sign in to comment.