Skip to content

Commit 781aabd

Browse files
committed
added general transformation command and prepared version 1.1
1 parent 0c9c19b commit 781aabd

11 files changed

Lines changed: 109 additions & 105 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Write beautiful latex cheat sheets with minimal effort.
88

99
## How to use
1010
put `latex4ei` folder in `./template-files/` into the same folder as
11-
your latex file. Specify \documentclass{latex4ei/latex4ei_sheet} and compile your code.
11+
your latex file. Specify `\documentclass{latex4ei/latex4ei_sheet}` and compile your code.
1212
See the documentation for further details.
1313

1414
## Permanent installation
@@ -28,7 +28,7 @@ sudo mktexlsr
2828
ln -s ./pkg /usr/local/texlive/texmf-local/tex/latex/latex4ei
2929
```
3030

31-
If you want to share your documents please refer to the license.txt
32-
Read the changelog.txt and known_bugs.txt and check [www.latex4ei.de](http://latex4ei.de) for updates.
31+
If you want to share your documents please refer to the LICENSE file
32+
Read the changelog.md and known_bugs.txt and check [www.latex4ei.de](http://latex4ei.de) for updates.
3333

3434
© 2011-2016, LaTeX4EI

changelog.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
# LaTeX4EI Template
1+
# LaTeX4EI Template
22
Date: 2016-01-06
33

44
## Changelog
55

6-
#### Release 1.0
6+
### Release 1.1
7+
8+
* Added thesis class
9+
* Added general transformation command
10+
* Small Bugfixes
11+
12+
### Release 1.0
713

814
* new box macros
915
the boxes are now implemented as environments, which allows better error tracking.

template-files/cheatsheet_template.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
2-
% LaTeX4EI Template for Cheat Sheets Version 1.0
3-
%
1+
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
2+
% LaTeX4EI Template for Cheat Sheets Version 1.1
3+
%
44
% Authors: Emanuel Regnath, Martin Zellner
55
% Contact: info@latex4ei.de
6-
% Encode: UTF-8, tabwidth = 4, newline = LF
7-
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
6+
% Encode: UTF-8, tabwidth = 4, newline = LF
7+
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
88

99

1010
% ======================================================================
@@ -40,19 +40,19 @@ \section{Math}
4040

4141
\begin{sectionbox}
4242
\subsection{Sinus}
43-
43+
4444
Text goes here ...
45-
46-
45+
46+
4747
\end{sectionbox}
4848

4949

5050
\begin{sectionbox}
5151
\subsection{Cosinus}
52-
52+
5353
Text goes here ...
54-
55-
54+
55+
5656
\end{sectionbox}
5757

5858

template-files/latex4ei/latex4ei.sty

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
%
44
% Authors: Emanuel Regnath, Martin Zellner
55
% Contact: info@latex4ei.de
6-
% Version: 1.0
6+
% Version: 1.1
77
% License: TBD
88
%
9-
% © 2011-2015, LaTeX4EI
9+
% © 2011-2018, LaTeX4EI
1010

1111
\NeedsTeXFormat{LaTeX2e}
1212
\ProvidesPackage{latex4ei/latex4ei}[2013/05/06 Macros for LaTeX4EI]
@@ -44,7 +44,7 @@
4444

4545
%\RequirePackage{xltxtra}
4646

47-
47+
4848
% for unicode decalarations
4949
%\let\DeclareUnicodeCharacter\newunicodechar
5050
\setmainfont{Times New Roman} % Libertinus Serif
@@ -53,7 +53,7 @@
5353

5454
% some hacking for scientific.sty
5555
\AtBeginDocument{
56-
56+
5757
% scale fonts to same x height
5858
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
5959

@@ -251,14 +251,14 @@
251251
\makeatletter
252252
\providecommand{\todo}[1]{%
253253
\textcolor{red}{\bfseries ToDo:\@ifundefined{@captype}{\marginpar{\color{red}\bfseries ToDo!}}{\relax} #1} %check for float environments
254-
}
254+
}
255255
\makeatother
256256

257257
% Special term
258258
\providecommand{\term}[1]{\textit{#1}}
259259

260260
% small note
261-
\providecommand{\note}[1]{\textit{Note: #1}}
261+
\providecommand{\note}[1]{\textit{Note: #1}}
262262

263263
% Related work
264264
\providecommand{\work}[1]{\textit{#1}}
@@ -268,7 +268,7 @@
268268

269269
% References and Links
270270
% ----------------------------------------------------------------------
271-
271+
272272
\providecommand{\sectionname}{Section}
273273

274274
% several ref macros

template-files/latex4ei/latex4ei_boxes.sty

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
%
44
% Authors: Emanuel Regnath, Martin Zellner
55
% Contact: info@latex4ei.de
6-
% Version: 1.0
6+
% Version: 1.1
77
% License: TBD
88
%
9-
% © 2011-2015, LaTeX4EI
9+
% © 2011-2018, LaTeX4EI
1010

1111
\NeedsTeXFormat{LaTeX2e}
1212
\ProvidesPackage{latex4ei_boxes}[2015/02/06 Boxes for LaTeX4EI]

template-files/latex4ei/latex4ei_colors.sty

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
%
44
% Authors: Emanuel Regnath, Martin Zellner
55
% Contact: info@latex4ei.de
6-
% Version: 1.0
6+
% Version: 1.1
77
% License: TBD
8-
%
9-
% © 2011-2015, LaTeX4EI
8+
%
9+
% © 2011-2018, LaTeX4EI
1010

1111
\NeedsTeXFormat{LaTeX2e}
1212
\ProvidesPackage{latex4ei/latex4ei_colors}[2016/03/30 Colors for LaTeX4EI]
@@ -29,7 +29,7 @@
2929

3030
% TUM Color Palette
3131
% ----------------------------------------------------------------------
32-
% Note: The following color definitions are copied
32+
% Note: The following color definitions are copied
3333
% from the official TUM Styleguide
3434

3535
% the tum logo color
@@ -57,8 +57,8 @@
5757
\definecolor{tum_purple}{RGB}{105, 8, 90} % 55%: 173, 119, 164
5858
\definecolor{tum_purple_dark}{RGB}{15, 27, 95} % 55%: 123, 130, 167
5959

60-
\definecolor{tum_blue_ocean}{RGB}{0, 119, 138} % 55%: 115, 180, 191
61-
\definecolor{tum_green_leaf}{RGB}{0, 124, 48} % 55%: 115, 183, 141
60+
\definecolor{tum_blue_ocean}{RGB}{0, 119, 138} % 55%: 115, 180, 191
61+
\definecolor{tum_green_leaf}{RGB}{0, 124, 48} % 55%: 115, 183, 141
6262
\definecolor{tum_green_grass}{RGB}{103, 154, 029} % 55%: 172, 200, 131
6363

6464
\definecolor{tum_yellow}{RGB}{255, 220, 0} % 55%: 255, 236, 115

template-files/latex4ei/latex4ei_report.cls

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
%
2-
% Report class from LaTeX4EI
2+
% Report class from LaTeX4EI
33
%
44
% Authors: Emanuel Regnath, Martin Zellner
55
% Contact: info@latex4ei.de
6-
% Version: 1.0
6+
% Version: 1.1
77
% License: TBD
8-
%
9-
% © 2011-2015, LaTeX4EI
8+
%
9+
% © 2011-2018, LaTeX4EI
1010

1111
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
1212
\ProvidesClass{latex4ei_report}[2015/03/15]
@@ -26,7 +26,7 @@
2626
% set default options for base class
2727
\PassOptionsToClass{a4paper, 11pt}{\baseclass}
2828

29-
% pass unknown options to base class
29+
% pass unknown options to base class
3030
\DeclareOption*{%
3131
\PassOptionsToClass{\CurrentOption}{\baseclass}%
3232
}
@@ -51,7 +51,7 @@
5151

5252

5353
\RequirePackage{abstract}
54-
54+
5555

5656

5757
% ======================================================================
@@ -76,10 +76,10 @@
7676
%\renewcommand{\sfdefault}{cmss} % cmss, phv pag
7777

7878

79-
\shorthandoff{"} % don't convert "A to Ä!
79+
\shorthandoff{"} % don't convert "A to Ä!
8080

8181

82-
% calculate linespacing based on font size
82+
% calculate linespacing based on font size
8383
% char per line: 85
8484
\RequirePackage{setspace}
8585
\linespread{1.3}\selectfont
@@ -213,7 +213,7 @@
213213

214214
\makeatletter
215215
\renewcommand\p@subfigure{\thefigure}
216-
\renewcommand{\thefigure}{\@arabic\c@figure}
216+
\renewcommand{\thefigure}{\@arabic\c@figure}
217217
\renewcommand{\thesubfigure}{\alph{subfigure})}
218218
\makeatother
219219

template-files/latex4ei/latex4ei_sheet.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
%
44
% Authors: Emanuel Regnath, Martin Zellner
55
% Contact: info@latex4ei.de
6-
% Version: 1.0
6+
% Version: 1.1
77
% License: CC-BY-NC-SA
88
%
9-
% © 2011-2015, LaTeX4EI
9+
% © 2011-2018, LaTeX4EI
1010

1111
\NeedsTeXFormat{LaTeX2e}
1212
\ProvidesClass{latex4ei_sheet}[2014/03/30 Cheet Sheet Template from LaTeX4EI]

template-files/latex4ei/latex4ei_thesis.cls

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
%
2-
% Thesis class from LaTeX4EI
2+
% Thesis class from LaTeX4EI
33
%
44
% Authors: Emanuel Regnath, Martin Zellner
55
% Contact: info@latex4ei.de
6-
% Version: 1.0
6+
% Version: 1.1
77
% License: TBD
8-
%
9-
% © 2011-2015, LaTeX4EI
8+
%
9+
% © 2011-2018, LaTeX4EI
1010

1111

1212
% ToDo:
@@ -33,7 +33,7 @@
3333
% define baseclass
3434
\def\baseclass{scrreprt}
3535

36-
% Options
36+
% Options
3737
\newif\ifmarginnumbers\marginnumbersfalse
3838
\DeclareOption{marginnumbers}{\marginnumberstrue}
3939

@@ -51,7 +51,7 @@
5151
% set default options for base class
5252
\PassOptionsToClass{a4paper, 11pt}{\baseclass}
5353

54-
% pass unknown options to base class
54+
% pass unknown options to base class
5555
\DeclareOption*{%
5656
\PassOptionsToClass{\CurrentOption}{\baseclass}%
5757
}
@@ -94,10 +94,10 @@
9494
% fix for footnotes in tables
9595
\RequirePackage{footnote}
9696
\makesavenoteenv{tabular}
97-
\makesavenoteenv{table}
97+
\makesavenoteenv{table}
9898
%\shorthandoff{"} % don't convert "A to Ä!
99-
100-
99+
100+
101101
% font
102102
%\RequirePackage[osf]{mathpazo} % old style numbering
103103
%\renewcommand{\rmdefault}{ppl} % cmr, ptm, ppl, pnc, pbk
@@ -124,7 +124,7 @@
124124
\colorlet{col_subsubsection}{tum_blue_dark2}
125125
\colorlet{col_table}{tum_blue_dark}
126126
\colorlet{col_figure}{tum_blue_dark}
127-
127+
128128
\colorlet{col_link}{tum_blue}
129129

130130
\colorlet{col_lst}{tum_blue_dark}
@@ -144,7 +144,7 @@
144144
\RequirePackage{lettrine}
145145

146146

147-
% calculate linespacing based on font size
147+
% calculate linespacing based on font size
148148
% char per line: 85
149149
\RequirePackage{setspace}
150150
% \setlength{\baselineskip}{3pt}
@@ -166,7 +166,7 @@
166166

167167

168168
%\usepackage{natbib}
169-
%\bibliographystyle{natdin}
169+
%\bibliographystyle{natdin}
170170

171171

172172
% ======================================================================
@@ -313,11 +313,11 @@
313313
\setlength{\extrarowheight}{0em}%
314314
\renewcommand*{\glossaryheader}{}% have nothing after \begin{theglossary}
315315
\renewcommand*{\glsgroupheading}[1]{}%
316-
\renewcommand*{\glsgroupskip}{}% have nothing between glossary groups
316+
\renewcommand*{\glsgroupskip}{}% have nothing between glossary groups
317317
\begin{longtable}{@{}ll@{}}}{\end{longtable}}%
318318
\renewcommand*{\glossaryentryfield}[5]{%
319319
\textbf{\glstarget{##1}{##2}}% the entry name
320-
##4% the symbol
320+
##4% the symbol
321321
& ##3% the description
322322
\space\space ##5\\}% the number list
323323
}
@@ -334,11 +334,11 @@
334334
\newcommand\frontmatter{%
335335
\setcounter{page}{1} % set page counter to 1
336336
\pagenumbering{Roman} % roman figures
337-
\loadgeometry{frontmatter} %
337+
\loadgeometry{frontmatter} %
338338
\pagestyle{empty} % no numbering in the frontmatter
339339
\makeatletter
340340
\let\ps@oldplain\ps@plain % backup
341-
\let\ps@plain\ps@empty % set plain pagestyle to empty
341+
\let\ps@plain\ps@empty % set plain pagestyle to empty
342342
\makeatother
343343
}
344344

@@ -427,7 +427,7 @@
427427
\else %% Für Einseitig
428428
\fancyhead[OL]{\textcolor{black!70}{\leftmark --- \itshape\nouppercase{\rightmark}}} % gerade Seiten, rechts
429429
\fancyhead[OR]{\textcolor{black!70}{\thepage}} % gerade Seiten, links
430-
\fi
430+
\fi
431431
\renewcommand{\headrulewidth}{0pt} % Underline headers
432432
\renewcommand{\footrulewidth}{0pt} % no footer rule
433433
%\fancypagestyle{plain}{} % No chapter+section on chapter start pages
@@ -566,7 +566,7 @@
566566
\makeatletter
567567
\@removefromreset{figure}{chapter} % continous figure numbering
568568
\renewcommand\p@subfigure{\thefigure}
569-
\renewcommand{\thefigure}{\@arabic\c@figure}
569+
\renewcommand{\thefigure}{\@arabic\c@figure}
570570
\renewcommand{\thesubfigure}{\alph{subfigure})}
571571
\makeatother
572572

@@ -649,7 +649,7 @@
649649
numberstyle=\tiny\sffamily\color{col_lst_number},
650650
numbersep=1em,
651651
keepspaces=true,
652-
breaklines=true,
652+
breaklines=true,
653653
breakatwhitespace=true,
654654
postbreak=\postbreak,
655655
keywordstyle=\bfseries\color{tum_blue_dark},

0 commit comments

Comments
 (0)