Bläddra i källkod

initial setup

master
Bit 4 månader sedan
förälder
incheckning
722c819653
8 ändrade filer med 152 tillägg och 1 borttagningar
  1. +9
    -1
      README.md
  2. +12
    -0
      base.tex
  3. +1
    -0
      base/commands.tex
  4. +58
    -0
      base/commands/math.tex
  5. +15
    -0
      base/imports.tex
  6. +17
    -0
      custom/uni.tex
  7. +18
    -0
      templates/uni.tex
  8. +22
    -0
      templates/uni/headline.tex

+ 9
- 1
README.md Visa fil

@@ -1,3 +1,11 @@
# .tex

My personalised LaTex base configuration, required to build my LaTex documents.
My personalised LaTex base configuration, required to build my LaTeX documents.

## How to use

- open any directory you want to store this configuration
- clone this repository into it
- change path in __base.tex__ to match your absolute path to this directory
- _optional: change information in the_ __custom__ _directory_
- _You must change the input path to the_ __base.tex__ _file_ __in each of my .tex files!__

+ 12
- 0
base.tex Visa fil

@@ -0,0 +1,12 @@
\def \importpath {/home/user/.tex}

\newcommand{\add}[1]{
\InputIfFileExists{\importpath/#1}{}{}
}

\newcommand{\addTemplate}[1]{
\add{templates/#1}
}

\add{base/imports}
\add{base/commands}

+ 1
- 0
base/commands.tex Visa fil

@@ -0,0 +1 @@
\add{base/commands/math}

+ 58
- 0
base/commands/math.tex Visa fil

@@ -0,0 +1,58 @@
\def \mathbbN {\mathbb{N}}
\def \mathbbZ {\mathbb{Z}}
\def \mathbbQ {\mathbb{Q}}
\def \mathbbI {\mathbb{I}}
\def \mathbbR {\mathbb{R}}
\def \mathbbC {\mathbb{C}}
\def \mathbbD {\mathbb{D}}
\def \mathbbW {\mathbb{W}}

\def \N {\mathbb{N}}
\def \Z {\mathbb{Z}}
\def \Q {\mathbb{Q}}
\def \I {\mathbb{I}}
\def \R {\mathbb{R}}
\def \C {\mathbb{C}}
\def \D {\mathbb{D}}
\def \W {\mathbb{W}}

\newcommand{\nsum}[3]{
\sum^{#1}_{#2} (#3)
}

\newcommand{\mmod}[1]{
(\mod #1)
}

\newcommand{\abs}[1]{
| #1 |
}

\newcommand{\rnddown}[1]{
\lfloor #1 \rfloor
}

\newcommand{\rndup}[1]{
\lceil #1 \rceil
}

\newcommand{\ecr}[1]{
\mathbb{Z}_{#1}
}

\newcommand{\inv}[1]{
#1^{-1}
}

\newcommand{\eqa}[1]{
\begin{eqnarray*}
#1
\end{eqnarray*}
}

\newcommand{\multifunc}[2]{
#1 = \begin{cases}
#2
\end{cases}
}


+ 15
- 0
base/imports.tex Visa fil

@@ -0,0 +1,15 @@
\documentclass[12pt,a4paper,german]{article}
\usepackage{url}
%\usepackage{graphics}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{ngerman}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{epsfig}
\usepackage{paralist}
\usepackage{amsmath}
\geometry{left=2.0cm,textwidth=17cm,top=3.5cm,textheight=23cm}


+ 17
- 0
custom/uni.tex Visa fil

@@ -0,0 +1,17 @@
\def \name {Max Mustermann}
\def \matrikel {000000000000}

\def \uniMath {
\def \pname{Partner 1}
%\def \pmatrikel {0000000000}
\def \ppname{Partner 2}
%\def \ppmatrikel {0000000000}
\def \pppname{Partner 3}
%\def \pppmatrikel {0000000000}
}

\def \uniKrypt {
\def \pname{Partner}
%\def \pmatrikel {0000000000}
}


+ 18
- 0
templates/uni.tex Visa fil

@@ -0,0 +1,18 @@
\add{templates/uni/headline}

\def \gruppe {}
\def \name {}
\def \pname {}
\def \ppname {}
\def \pppname {}
\def \matrikel {xxxxxxxxxxxx}
\def \pmatrikel {xxxxxxxxxxxx}
\def \ppmatrikel {xxxxxxxxxxxx}
\def \pppmatrikel {xxxxxxxxxxxx}
\add{custom/uni}

\newcommand{\uni}[1]{
\def \uebung{#1}
\headline
}


+ 22
- 0
templates/uni/headline.tex Visa fil

@@ -0,0 +1,22 @@
\usepackage{ifthen}
\def \private {\def \isprivate {true}}
\def \isprivate {false}

\newcommand{\ifempty}[3]{\ifthenelse{ \equal{#1}{} }{#2}{#3}}


\newcommand{\headline}{
\vspace*{-2cm}
\ifthenelse{ \equal{\isprivate}{true} }{
\noindent \name \\
}{
\ifempty{\name}{}{
\noindent \matrikel \quad \name \ifempty{\gruppe}{}{\hfill Gruppe: \gruppe} \\
\ifempty{\pname}{}{\noindent \pmatrikel \quad \pname \\}
\ifempty{\ppname}{}{\noindent \ppmatrikel \quad \ppname \\}
\ifempty{\pppname}{}{\noindent \pppmatrikel \quad \pppname \\}
}
}
\begin{center}{\Large \bf Lösung für Übung \# \uebung}\end{center}
}


Laddar…
Avbryt
Spara