Skip to content

Commit c6e8868

Browse files
committed
initial commit
0 parents  commit c6e8868

File tree

6 files changed

+107
-0
lines changed

6 files changed

+107
-0
lines changed

CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
cmake_minimum_required(VERSION 2.8)
2+
3+
project(eem NONE)
4+
include(UseLATEX)
5+
6+
add_custom_target(
7+
writegitid ALL
8+
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/write-gitid.sh
9+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
10+
)
11+
12+
set(IMAGES
13+
img/Logo.pdf
14+
)
15+
16+
add_latex_document(formelsammlung.tex DEFAULT_PDF
17+
IMAGES ${IMAGES}
18+
DEPENDS writegitid
19+
)

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Formelsammlung Template
2+
## Formelsammlung für Latex4ei
3+
### Links
4+
5+
Public Version: [latex4ei.de](http://latex4ei.de)
6+
7+
## Written by
8+
- Hofbauer, Markus
9+
- Meyer, Kevin

clean.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
# clean build and output files in main folder
3+
4+
set -eu
5+
6+
rm -rf *.aux *.log *.out formelsammlung.pdf

formelsammlung.tex

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
% Formelsammlung ...
2+
%
3+
% Geschrieben im SS 2014 an der TU München
4+
% von Markus Hofbauer und Kevin Meyer für LaTeX4EI (latex4ei.de)
5+
% Kontakt: [email protected] oder via Kontaktformular auf http://latex4ei.de
6+
7+
% Dokumenteinstellungen
8+
% ======================================================================
9+
10+
11+
% Dokumentklasse (Schriftgröße 6, DIN A4, Artikel)
12+
\documentclass[fs, footer]{latex4ei}
13+
14+
\usepackage[european]{circuitikz}
15+
\usepackage{tabularx}
16+
\usepackage{multirow}
17+
\usetikzlibrary{arrows, calc, intersections}
18+
\usepackage{hyperref}
19+
20+
% tabularx definition
21+
\newcolumntype{C}{>{\centering\arraybackslash}X}
22+
\newcolumntype{L}{@{\extracolsep\fill}X}
23+
24+
% SI-Zahlen mit Komma als Dezimaltrenner
25+
\sisetup{locale=DE}
26+
\sisetup{range-phrase = \ldots}
27+
\sisetup{range-units = single}
28+
29+
% SI-Einheiten
30+
\DeclareSIUnit \voltampere {VA}
31+
\DeclareSIUnit \var {Var}
32+
\DeclareSIUnit \newtonmeter {Nm}
33+
\DeclareSIUnit \voltsecond {Vs}
34+
\DeclareSIUnit \amperesecond {As}
35+
36+
% Nicht neuen, sondern alten Vector benutzen
37+
\let\newvec = \vec
38+
\let\vec = \oldvec
39+
40+
% Weitere Definitionen
41+
\renewcommand{\ggT}[1]{\ensuremath{\operatorname{ggT}\left\{#1\right\}}}
42+
43+
% Eigener Inhalt für Center-Teil des Footers
44+
\fancyfoot[C]{von Markus Hofbauer und Kevin Meyer - Kontakt: \href{mailto:[email protected]}{\textit{[email protected]}}}
45+
46+
% Dokumentbeginn
47+
% ======================================================================
48+
\begin{document}
49+
50+
\IfFileExists{git.id}{\input{git.id}}{}
51+
\ifdefined\HgRevision\fancyfoot[R]{Stand: \HgNiceDate \ (hg \HgRevision) \qquad \thepage}\fi
52+
53+
% Aufteilung in Spalten
54+
\begin{multicols*}{4}
55+
\fstitle{Vorlage}
56+
57+
\section{Inhalt}
58+
59+
\end{multicols*}
60+
\end{document}

img/Logo.pdf

151 KB
Binary file not shown.

write-gitid.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
# Write hd.id File
3+
4+
Os=`uname -s`
5+
6+
if [ "$Os" = "Darwin" ]; then
7+
DATEBIN=gdate
8+
else
9+
DATEBIN=date
10+
fi
11+
12+
hg parent --template '\\def\\HgNode\{{node|short}}\n\\def\\HgDate\{{date|isodate}}\n\\def\\HgAuthor\{{author|person}}\n\\def\\HgRevision\{{rev}}\n' > hg.id
13+
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 commit comments

Comments
 (0)