mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
added 'custom envirnoment' example
This commit is contained in:
parent
020a2a132d
commit
a28f787179
3 changed files with 40 additions and 0 deletions
7
documents/custom-environment/Makefile
Normal file
7
documents/custom-environment/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE = custom-environment
|
||||||
|
make:
|
||||||
|
pdflatex $(SOURCE).tex -output-format=pdf
|
||||||
|
make clean
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(TARGET) *.class *.html *.log *.aux *.out
|
32
documents/custom-environment/custom-environment.tex
Normal file
32
documents/custom-environment/custom-environment.tex
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
\documentclass[a4paper]{scrartcl}
|
||||||
|
\usepackage{blindtext}
|
||||||
|
|
||||||
|
\newcounter{examplecounter}
|
||||||
|
\renewcommand{\theexamplecounter}{\arabic{examplecounter}}
|
||||||
|
\newenvironment{Beispiel}[1][]{%
|
||||||
|
\goodbreak%
|
||||||
|
\refstepcounter{examplecounter}%
|
||||||
|
\begin{list}{}{\setlength{\rightmargin}{\leftmargin}}%
|
||||||
|
\item[{\textbf{Beispiel~\theexamplecounter:}}]#1\par\nobreak}{%
|
||||||
|
\end{list}}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla quam
|
||||||
|
elit, vestibulum nec facilisis at, condimentum id enim. Sed iaculis
|
||||||
|
lacinia quam, vel accumsan eros tempor in. Integer ipsum metus,
|
||||||
|
accumsan sit amet commodo a, egestas vitae sem. Mauris ut orci ut
|
||||||
|
dolor viverra convallis nec a erat. Aenean consequat elit vel eros
|
||||||
|
fermentum vestibulum id at ipsum. In vitae orci mauris, et rhoncus
|
||||||
|
odio. Pellentesque habitant morbi tristique senectus et netus et
|
||||||
|
malesuada fames ac turpis egestas.
|
||||||
|
|
||||||
|
\blindtext[4]
|
||||||
|
|
||||||
|
\begin{Beispiel}[A title]
|
||||||
|
\begin{tabular}{ccc}
|
||||||
|
1 & 2 & 3\\
|
||||||
|
4 & 5 & 6\\
|
||||||
|
7 & 8 & 9
|
||||||
|
\end{tabular}
|
||||||
|
\end{Beispiel}
|
||||||
|
\end{document}
|
1
tikz/tax-revenue-de-2012-09-piechart/Readme.md
Normal file
1
tikz/tax-revenue-de-2012-09-piechart/Readme.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
TODO: doesn't compile right now
|
Loading…
Add table
Add a link
Reference in a new issue