mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
misc
This commit is contained in:
parent
c5845349c1
commit
a708d2e968
5 changed files with 174 additions and 1 deletions
8
documents/manual/Makefile
Normal file
8
documents/manual/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
SOURCE = manual
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux
|
25
documents/manual/manual.tex
Normal file
25
documents/manual/manual.tex
Normal file
|
@ -0,0 +1,25 @@
|
|||
\documentclass[a5paper,9pt]{scrartcl}
|
||||
%\usepackage[ngerman]{babel}
|
||||
\usepackage[utf8]{inputenc}
|
||||
%\usepackage{amssymb,amsmath}
|
||||
%\usepackage{geometry}
|
||||
%\usepackage{graphicx}
|
||||
\usepackage{menukeys}
|
||||
|
||||
%\geometry{a4paper,left=18mm,right=18mm, top=1cm, bottom=2cm}
|
||||
|
||||
\begin{document}
|
||||
% \title{Manual}
|
||||
% \author{Martin Thoma}
|
||||
|
||||
\section{The Manual}
|
||||
|
||||
You can visualize paths \directory{/home/moose/Desktop/manual.tex}
|
||||
or menus \menu{View > Highlight Mode > Markup > LaTeX} or key
|
||||
press combinations: \keys{\ctrl + \shift + F} is for formatting
|
||||
in Eclipse.
|
||||
|
||||
You can also visualize \keys{\tab}, \keys{\capslock}, \keys{\Space},
|
||||
\keys{\arrowkeyup} and many more.
|
||||
|
||||
\end{document}
|
|
@ -1,5 +1,7 @@
|
|||
SOURCE = fractions
|
||||
|
||||
make:
|
||||
pdflatex fractions.tex -output-format=pdf
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
|
|
31
tikz/tut-uebung-vorlesung/Makefile
Normal file
31
tikz/tut-uebung-vorlesung/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = tut-uebung-vorlesung
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 1024
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
107
tikz/tut-uebung-vorlesung/tut-uebung-vorlesung.tex
Normal file
107
tikz/tut-uebung-vorlesung/tut-uebung-vorlesung.tex
Normal file
|
@ -0,0 +1,107 @@
|
|||
\documentclass{article}
|
||||
|
||||
\usepackage[utf8]{inputenc} % this is needed for umlauts
|
||||
\usepackage[ngerman]{babel} % this is needed for umlauts
|
||||
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
|
||||
|
||||
\usepackage[pdftex,active,tightpage]{preview}
|
||||
\setlength\PreviewBorder{2mm}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{shapes,snakes,calc,patterns}
|
||||
\usepackage{amsmath,amssymb}
|
||||
\begin{document}
|
||||
\begin{preview}
|
||||
\begin{tikzpicture}[%
|
||||
auto,
|
||||
example/.style={
|
||||
rectangle,
|
||||
draw=blue,
|
||||
thick,
|
||||
fill=blue!20,
|
||||
text width=4.5em,
|
||||
align=center,
|
||||
rounded corners,
|
||||
minimum height=2em
|
||||
},
|
||||
algebraicName/.style={
|
||||
text width=7em,
|
||||
align=center,
|
||||
minimum height=2em
|
||||
},
|
||||
explanation/.style={
|
||||
text width=10em,
|
||||
align=left,
|
||||
minimum height=3em
|
||||
}
|
||||
]
|
||||
\pgfdeclarepatternformonly{north east lines wide}%
|
||||
{\pgfqpoint{-1pt}{-1pt}}%
|
||||
{\pgfqpoint{10pt}{10pt}}%
|
||||
{\pgfqpoint{9pt}{9pt}}%
|
||||
{
|
||||
\pgfsetlinewidth{3pt}
|
||||
\pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
|
||||
\pgfpathlineto{\pgfqpoint{9.1pt}{9.1pt}}
|
||||
\pgfusepath{stroke}
|
||||
}
|
||||
|
||||
|
||||
% Big background
|
||||
\draw[fill=lime!20,lime!20, rounded corners] (-1.8, 0.60) rectangle (10,-5);
|
||||
\draw[fill=purple!20,purple!20, rounded corners] (0.65, -3.15) rectangle (3.35,-3.85);
|
||||
\draw[fill=purple!20,purple!20, rounded corners] (4.65, -3.15) rectangle (7.35,-3.85);
|
||||
|
||||
\draw[fill=blue!20,blue!20, rounded corners] (-1.35,-1.35) rectangle (1.35,-0.65);
|
||||
\draw[fill=blue!20,blue!20, rounded corners] (2.65,-1.35) rectangle (5.35,-0.65);
|
||||
\draw[fill=blue!20,blue!20, rounded corners] (6.65,-1.35) rectangle (9.35,-0.65);
|
||||
|
||||
\draw (2, 0) node[algebraicName] (A) {Modul: Programmieren}
|
||||
(6, 0) node[explanation] (X) {
|
||||
\begin{minipage}{0.9\textwidth}
|
||||
\tiny
|
||||
\begin{itemize}
|
||||
\item 5 ECTS
|
||||
\end{itemize}
|
||||
\end{minipage}
|
||||
}
|
||||
(0,-1) node[algebraicName] (B) {Tutorium}
|
||||
(4,-1) node[algebraicName] (C) {Übung}
|
||||
(8,-1) node[algebraicName] (D) {Vorlesung}
|
||||
(0,-2) node[algebraicName] (E) {Student}
|
||||
(4,-2) node[algebraicName] (F) {Mitarbeiter}
|
||||
(8,-2) node[algebraicName] (G) {Dozent}
|
||||
(2,-3.5) node[algebraicName, purple] (H) {Übungsschein}
|
||||
(1.8,-4.35) node[explanation] (X) {
|
||||
\begin{minipage}{\textwidth}
|
||||
\tiny
|
||||
\begin{itemize} \itemsep-0.4em
|
||||
\item Muss bestanden werden
|
||||
\item Keine Note
|
||||
\item keine Bonuspunkte
|
||||
\end{itemize}
|
||||
\end{minipage}
|
||||
}
|
||||
(6,-3.5) node[algebraicName, purple] (I) {Klausur}
|
||||
(5.8,-4.3) node[explanation] (X) {
|
||||
\begin{minipage}{\textwidth}
|
||||
\tiny
|
||||
\begin{itemize} \itemsep-0.4em
|
||||
\item Muss bestanden werden
|
||||
\item Abschlussnote ergibt Modulnote
|
||||
\end{itemize}
|
||||
\end{minipage}
|
||||
};
|
||||
|
||||
\draw[blue, thick, rounded corners] ($(B.north west)$) rectangle ($(B.south east)$);
|
||||
\draw[blue, thick, rounded corners] ($(C.north west)$) rectangle ($(C.south east)$);
|
||||
\draw[blue, thick, rounded corners] ($(D.north west)$) rectangle ($(D.south east)$);
|
||||
|
||||
\draw[purple, thick, rounded corners] ($(H.north west)$) rectangle ($(H.south east)$);
|
||||
\draw[purple, thick, rounded corners] ($(I.north west)$) rectangle ($(I.south east)$);
|
||||
|
||||
\draw[lime, thick, rounded corners] ($(B.north west)+(-0.1,0.1)$) rectangle ($(E.south east)+(0.1,-0.1)$);
|
||||
\draw[lime, thick, rounded corners] ($(C.north west)+(-0.1,0.1)$) rectangle ($(F.south east)+(0.1,-0.1)$);
|
||||
\draw[lime, thick, rounded corners] ($(D.north west)+(-0.1,0.1)$) rectangle ($(G.south east)+(0.1,-0.1)$);
|
||||
\end{tikzpicture}
|
||||
\end{preview}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue