Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
osak
talks
Commits
4b5646a8
Commit
4b5646a8
authored
May 28, 2019
by
Lennart Klebl
Browse files
preamble in latex.tex
parent
92d09781
Changes
4
Show whitespace changes
Inline
Side-by-side
workshops/latex/beispieldokument/zeta_0.tex
View file @
4b5646a8
\documentclass
[a4paper,german,12pt]
{
article
}
\usepackage
[utf8]
{
inputenc
}
\
u
se
pack
age
[n
german
]
{
babel
}
\usepackage
{
polyglossia
}
\se
tmainlangu
age
{
german
}
\usepackage
{
amsmath
}
\usepackage
{
hyperref
}
\usepackage
{
xcolor
}
...
...
workshops/latex/examples/preamble.pdf
0 → 100644
View file @
4b5646a8
File added
workshops/latex/examples/preamble.tex
0 → 100644
View file @
4b5646a8
\documentclass
[12pt,a6paper]
{
article
}
% Minimale Präambel für die meisten Fälle
\usepackage
{
polyglossia
}
% Silbentrennung
\setmainlanguage
{
german
}
% Sprache für ^^
\usepackage
[margin=2cm]
{
geometry
}
% Rand
\usepackage
{
amsmath
}
% Viel Mathe-Zeug
\usepackage
{
graphicx
}
% Bilder
\usepackage
{
xcolor
}
% Farben
\usepackage
{
hyperref
}
% Links
% Makros
\newcommand
{
\hello
}
[1]
{
Hallo #1
}
\newcommand
{
\bye
}{
Und Tschüss
}
% Abstände bei neuen Absätzen
\setlength\parskip
{
5pt
}
% vertikal
\setlength\parindent
{
0pt
}
% Einrückung
\begin{document}
\hello
{
zusammen
}
!
\bye
\end{document}
workshops/latex/latex.tex
View file @
4b5646a8
...
...
@@ -24,8 +24,8 @@
texcsstyle=*
\color
{
Mahogany
}
\bfseries
,
commentstyle=
\itshape\color
{
RoyalBlue
}
,
keywordstyle=
\color
{
RoyalBlue
}
\bfseries
,
moretexcs=
{
lstset,subsubsection,paragraph,subsection,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,section,documentclass,begin,includegraphics
}
,
morekeywords=
{
center,document,flushleft,flushright,itemize,enumerate,tabular
}
moretexcs=
{
lstset,subsubsection,paragraph,subsection,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,section,documentclass,begin,includegraphics
,hello,bye,setmainlanguage,setlength
}
,
morekeywords=
{
center,document,flushleft,flushright,itemize,enumerate,tabular
,article,polyglossia,geometry,amsmath,graphicx,xcolor,hyperref
}
}
\makeatletter
...
...
@@ -302,6 +302,8 @@
\\
}
;
\end{tikzpicture}
% TODO Kommentare, Sonderzeichen
\$\%\&\#\{\}
\end{frame}
\begin{frame}
[fragile]
{
Abschnitte
}
...
...
@@ -622,7 +624,34 @@
\end{tikzpicture}
\end{frame}
\begin{frame}
{
Präambel
}
\begin{frame}
[fragile]
{
Präambel
}
\begin{columns}
\begin{column}
{
0.4
\textwidth
}
\structure
{
Die
\glqq
{
Präambel
}
\grqq
}
wird benutzt für
\begin{itemize}
\item
\glqq
{
Dokumentenklasse
\grqq
}
-- also
\emph
{
Vorlage
}
(
\highlightRed
{
\textbackslash
{}
documentclass
}
)
\item
Pakete laden (
\highlightRed
{
\textbackslash
{}
usepackage
}
)
\item
Macros definieren (
\highlightRed
{
\textbackslash
{}
newcommand
}
)
\item
\highlightRed
{
\textbackslash
{}
begin
}
\verb
+
{document}
+
\\
(
\highlightRed
{
\textbackslash
{}
end
}
\verb
+
{document}
+
)
\item
{
\color
{
Gray
}
optionale Einstellungen
}
%TODO wegnehmen?
\end{itemize}
\end{column}
\begin{column}
{
0.05
\textwidth
}
\only
<1>
{
%
\color
{
RoyalBlue
}
\rule
{
0.5pt
}{
0.8
\textheight
}
%
}
%
\only
<2>
{
%
\color
{
Green
}
\rule
{
0.5pt
}{
0.8
\textheight
}
%
}
%
\end{column}
\begin{column}
{
0.55
\textwidth
}
\only
<1>
{
\lstinputlisting
[basicstyle=\tiny\ttfamily]
{
examples/preamble.tex
}}
\only
<2>
{
\includegraphics
[width=0.8\textwidth]
{
examples/preamble.pdf
}}
\end{column}
\end{columns}
\end{frame}
\end{document}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment