Skip to content

Commit

Permalink
added general transformation command and prepared version 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hofbi committed Feb 12, 2018
1 parent 0c9c19b commit 781aabd
Show file tree
Hide file tree
Showing 11 changed files with 109 additions and 105 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Write beautiful latex cheat sheets with minimal effort.

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

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

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

© 2011-2016, LaTeX4EI
10 changes: 8 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# LaTeX4EI Template
# LaTeX4EI Template
Date: 2016-01-06

## Changelog

#### Release 1.0
### Release 1.1

* Added thesis class
* Added general transformation command
* Small Bugfixes

### Release 1.0

* new box macros
the boxes are now implemented as environments, which allows better error tracking.
Expand Down
22 changes: 11 additions & 11 deletions template-files/cheatsheet_template.tex
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% LaTeX4EI Template for Cheat Sheets Version 1.0
%
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% LaTeX4EI Template for Cheat Sheets Version 1.1
%
% Authors: Emanuel Regnath, Martin Zellner
% Contact: [email protected]
% Encode: UTF-8, tabwidth = 4, newline = LF
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% Encode: UTF-8, tabwidth = 4, newline = LF
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %


% ======================================================================
Expand Down Expand Up @@ -40,19 +40,19 @@ \section{Math}

\begin{sectionbox}
\subsection{Sinus}

Text goes here ...


\end{sectionbox}


\begin{sectionbox}
\subsection{Cosinus}

Text goes here ...


\end{sectionbox}


Expand Down
14 changes: 7 additions & 7 deletions template-files/latex4ei/latex4ei.sty
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
%
% Authors: Emanuel Regnath, Martin Zellner
% Contact: [email protected]
% Version: 1.0
% Version: 1.1
% License: TBD
%
% © 2011-2015, LaTeX4EI
% © 2011-2018, LaTeX4EI

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{latex4ei/latex4ei}[2013/05/06 Macros for LaTeX4EI]
Expand Down Expand Up @@ -44,7 +44,7 @@

%\RequirePackage{xltxtra}


% for unicode decalarations
%\let\DeclareUnicodeCharacter\newunicodechar
\setmainfont{Times New Roman} % Libertinus Serif
Expand All @@ -53,7 +53,7 @@

% some hacking for scientific.sty
\AtBeginDocument{

% scale fonts to same x height
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}

Expand Down Expand Up @@ -251,14 +251,14 @@
\makeatletter
\providecommand{\todo}[1]{%
\textcolor{red}{\bfseries ToDo:\@ifundefined{@captype}{\marginpar{\color{red}\bfseries ToDo!}}{\relax} #1} %check for float environments
}
}
\makeatother

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

% small note
\providecommand{\note}[1]{\textit{Note: #1}}
\providecommand{\note}[1]{\textit{Note: #1}}

% Related work
\providecommand{\work}[1]{\textit{#1}}
Expand All @@ -268,7 +268,7 @@

% References and Links
% ----------------------------------------------------------------------

\providecommand{\sectionname}{Section}

% several ref macros
Expand Down
4 changes: 2 additions & 2 deletions template-files/latex4ei/latex4ei_boxes.sty
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
%
% Authors: Emanuel Regnath, Martin Zellner
% Contact: [email protected]
% Version: 1.0
% Version: 1.1
% License: TBD
%
% © 2011-2015, LaTeX4EI
% © 2011-2018, LaTeX4EI

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{latex4ei_boxes}[2015/02/06 Boxes for LaTeX4EI]
Expand Down
12 changes: 6 additions & 6 deletions template-files/latex4ei/latex4ei_colors.sty
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
%
% Authors: Emanuel Regnath, Martin Zellner
% Contact: [email protected]
% Version: 1.0
% Version: 1.1
% License: TBD
%
% © 2011-2015, LaTeX4EI
%
% © 2011-2018, LaTeX4EI

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

% TUM Color Palette
% ----------------------------------------------------------------------
% Note: The following color definitions are copied
% Note: The following color definitions are copied
% from the official TUM Styleguide

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

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

\definecolor{tum_yellow}{RGB}{255, 220, 0} % 55%: 255, 236, 115
Expand Down
18 changes: 9 additions & 9 deletions template-files/latex4ei/latex4ei_report.cls
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
%
% Report class from LaTeX4EI
% Report class from LaTeX4EI
%
% Authors: Emanuel Regnath, Martin Zellner
% Contact: [email protected]
% Version: 1.0
% Version: 1.1
% License: TBD
%
% © 2011-2015, LaTeX4EI
%
% © 2011-2018, LaTeX4EI

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

% pass unknown options to base class
% pass unknown options to base class
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{\baseclass}%
}
Expand All @@ -51,7 +51,7 @@


\RequirePackage{abstract}



% ======================================================================
Expand All @@ -76,10 +76,10 @@
%\renewcommand{\sfdefault}{cmss} % cmss, phv pag


\shorthandoff{"} % don't convert "A to Ä!
\shorthandoff{"} % don't convert "A to Ä!


% calculate linespacing based on font size
% calculate linespacing based on font size
% char per line: 85
\RequirePackage{setspace}
\linespread{1.3}\selectfont
Expand Down Expand Up @@ -213,7 +213,7 @@

\makeatletter
\renewcommand\p@subfigure{\thefigure}
\renewcommand{\thefigure}{\@arabic\c@figure}
\renewcommand{\thefigure}{\@arabic\c@figure}
\renewcommand{\thesubfigure}{\alph{subfigure})}
\makeatother

Expand Down
4 changes: 2 additions & 2 deletions template-files/latex4ei/latex4ei_sheet.cls
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
%
% Authors: Emanuel Regnath, Martin Zellner
% Contact: [email protected]
% Version: 1.0
% Version: 1.1
% License: CC-BY-NC-SA
%
% © 2011-2015, LaTeX4EI
% © 2011-2018, LaTeX4EI

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{latex4ei_sheet}[2014/03/30 Cheet Sheet Template from LaTeX4EI]
Expand Down
38 changes: 19 additions & 19 deletions template-files/latex4ei/latex4ei_thesis.cls
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
%
% Thesis class from LaTeX4EI
% Thesis class from LaTeX4EI
%
% Authors: Emanuel Regnath, Martin Zellner
% Contact: [email protected]
% Version: 1.0
% Version: 1.1
% License: TBD
%
% © 2011-2015, LaTeX4EI
%
% © 2011-2018, LaTeX4EI


% ToDo:
Expand All @@ -33,7 +33,7 @@
% define baseclass
\def\baseclass{scrreprt}

% Options
% Options
\newif\ifmarginnumbers\marginnumbersfalse
\DeclareOption{marginnumbers}{\marginnumberstrue}

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

% pass unknown options to base class
% pass unknown options to base class
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{\baseclass}%
}
Expand Down Expand Up @@ -94,10 +94,10 @@
% fix for footnotes in tables
\RequirePackage{footnote}
\makesavenoteenv{tabular}
\makesavenoteenv{table}
\makesavenoteenv{table}
%\shorthandoff{"} % don't convert "A to Ä!


% font
%\RequirePackage[osf]{mathpazo} % old style numbering
%\renewcommand{\rmdefault}{ppl} % cmr, ptm, ppl, pnc, pbk
Expand All @@ -124,7 +124,7 @@
\colorlet{col_subsubsection}{tum_blue_dark2}
\colorlet{col_table}{tum_blue_dark}
\colorlet{col_figure}{tum_blue_dark}

\colorlet{col_link}{tum_blue}

\colorlet{col_lst}{tum_blue_dark}
Expand All @@ -144,7 +144,7 @@
\RequirePackage{lettrine}


% calculate linespacing based on font size
% calculate linespacing based on font size
% char per line: 85
\RequirePackage{setspace}
% \setlength{\baselineskip}{3pt}
Expand All @@ -166,7 +166,7 @@


%\usepackage{natbib}
%\bibliographystyle{natdin}
%\bibliographystyle{natdin}


% ======================================================================
Expand Down Expand Up @@ -313,11 +313,11 @@
\setlength{\extrarowheight}{0em}%
\renewcommand*{\glossaryheader}{}% have nothing after \begin{theglossary}
\renewcommand*{\glsgroupheading}[1]{}%
\renewcommand*{\glsgroupskip}{}% have nothing between glossary groups
\renewcommand*{\glsgroupskip}{}% have nothing between glossary groups
\begin{longtable}{@{}ll@{}}}{\end{longtable}}%
\renewcommand*{\glossaryentryfield}[5]{%
\textbf{\glstarget{##1}{##2}}% the entry name
##4% the symbol
##4% the symbol
& ##3% the description
\space\space ##5\\}% the number list
}
Expand All @@ -334,11 +334,11 @@
\newcommand\frontmatter{%
\setcounter{page}{1} % set page counter to 1
\pagenumbering{Roman} % roman figures
\loadgeometry{frontmatter} %
\loadgeometry{frontmatter} %
\pagestyle{empty} % no numbering in the frontmatter
\makeatletter
\let\ps@oldplain\ps@plain % backup
\let\ps@plain\ps@empty % set plain pagestyle to empty
\let\ps@plain\ps@empty % set plain pagestyle to empty
\makeatother
}

Expand Down Expand Up @@ -427,7 +427,7 @@
\else %% Für Einseitig
\fancyhead[OL]{\textcolor{black!70}{\leftmark --- \itshape\nouppercase{\rightmark}}} % gerade Seiten, rechts
\fancyhead[OR]{\textcolor{black!70}{\thepage}} % gerade Seiten, links
\fi
\fi
\renewcommand{\headrulewidth}{0pt} % Underline headers
\renewcommand{\footrulewidth}{0pt} % no footer rule
%\fancypagestyle{plain}{} % No chapter+section on chapter start pages
Expand Down Expand Up @@ -566,7 +566,7 @@
\makeatletter
\@removefromreset{figure}{chapter} % continous figure numbering
\renewcommand\p@subfigure{\thefigure}
\renewcommand{\thefigure}{\@arabic\c@figure}
\renewcommand{\thefigure}{\@arabic\c@figure}
\renewcommand{\thesubfigure}{\alph{subfigure})}
\makeatother

Expand Down Expand Up @@ -649,7 +649,7 @@
numberstyle=\tiny\sffamily\color{col_lst_number},
numbersep=1em,
keepspaces=true,
breaklines=true,
breaklines=true,
breakatwhitespace=true,
postbreak=\postbreak,
keywordstyle=\bfseries\color{tum_blue_dark},
Expand Down
Loading

0 comments on commit 781aabd

Please sign in to comment.