Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hofbi committed Feb 18, 2015
0 parents commit c6e8868
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 2.8)

project(eem NONE)
include(UseLATEX)

add_custom_target(
writegitid ALL
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/write-gitid.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

set(IMAGES
img/Logo.pdf
)

add_latex_document(formelsammlung.tex DEFAULT_PDF
IMAGES ${IMAGES}
DEPENDS writegitid
)
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Formelsammlung Template
## Formelsammlung für Latex4ei
### Links

Public Version: [latex4ei.de](http://latex4ei.de)

## Written by
- Hofbauer, Markus
- Meyer, Kevin
6 changes: 6 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# clean build and output files in main folder

set -eu

rm -rf *.aux *.log *.out formelsammlung.pdf
60 changes: 60 additions & 0 deletions formelsammlung.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
% Formelsammlung ...
%
% Geschrieben im SS 2014 an der TU München
% von Markus Hofbauer und Kevin Meyer für LaTeX4EI (latex4ei.de)
% Kontakt: [email protected] oder via Kontaktformular auf http://latex4ei.de

% Dokumenteinstellungen
% ======================================================================


% Dokumentklasse (Schriftgröße 6, DIN A4, Artikel)
\documentclass[fs, footer]{latex4ei}

\usepackage[european]{circuitikz}
\usepackage{tabularx}
\usepackage{multirow}
\usetikzlibrary{arrows, calc, intersections}
\usepackage{hyperref}

% tabularx definition
\newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{L}{@{\extracolsep\fill}X}

% SI-Zahlen mit Komma als Dezimaltrenner
\sisetup{locale=DE}
\sisetup{range-phrase = \ldots}
\sisetup{range-units = single}

% SI-Einheiten
\DeclareSIUnit \voltampere {VA}
\DeclareSIUnit \var {Var}
\DeclareSIUnit \newtonmeter {Nm}
\DeclareSIUnit \voltsecond {Vs}
\DeclareSIUnit \amperesecond {As}

% Nicht neuen, sondern alten Vector benutzen
\let\newvec = \vec
\let\vec = \oldvec

% Weitere Definitionen
\renewcommand{\ggT}[1]{\ensuremath{\operatorname{ggT}\left\{#1\right\}}}

% Eigener Inhalt für Center-Teil des Footers
\fancyfoot[C]{von Markus Hofbauer und Kevin Meyer - Kontakt: \href{mailto:[email protected]}{\textit{[email protected]}}}

% Dokumentbeginn
% ======================================================================
\begin{document}

\IfFileExists{git.id}{\input{git.id}}{}
\ifdefined\HgRevision\fancyfoot[R]{Stand: \HgNiceDate \ (hg \HgRevision) \qquad \thepage}\fi

% Aufteilung in Spalten
\begin{multicols*}{4}
\fstitle{Vorlage}

\section{Inhalt}

\end{multicols*}
\end{document}
Binary file added img/Logo.pdf
Binary file not shown.
13 changes: 13 additions & 0 deletions write-gitid.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# Write hd.id File

Os=`uname -s`

if [ "$Os" = "Darwin" ]; then
DATEBIN=gdate
else
DATEBIN=date
fi

hg parent --template '\\def\\HgNode\{{node|short}}\n\\def\\HgDate\{{date|isodate}}\n\\def\\HgAuthor\{{author|person}}\n\\def\\HgRevision\{{rev}}\n' > hg.id
hg parent --template '{date|isodate}' | xargs -I var_d $DATEBIN -d "var_d" +\\def\\HgNiceDate{%-d.\ %B\ %Y\ um\ %H:%M\ Uhr} >> hg.id

0 comments on commit c6e8868

Please sign in to comment.