chapter02.tex 4.93 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
\makeatletter \def\input@path{{../}}\makeatother
\documentclass[../demo.tex]{subfiles}

\begin{document}

    \chapter{Content}\label{content}
        
        This chapter provides examples on
        
        \begin{itemize}
            \item Acronyms (cf. Section \ref{sec:acronyms})
            \item References (cf. Section \ref{sec:references})
            \item Textual:
            \begin{itemize}
                \item \texttt{itemize} (cf. Subsection \ref{subsec:itemize})
                \item \texttt{enumerate} (cf. Subsection \ref{subsec:enumerate})
                \item \texttt{description} (cf. Subsection \ref{subsec:description})
                \item Theorems (cf. Subsection \ref{subsec:theorem})
            \end{itemize}
            \item Figures (cf. Section \ref{sec:figures})
            \item Syntax Highlighting (cf. Section \ref{sec:source code})
            \item and many more.
        \end{itemize}

        \section{Acronyms}\label{sec:acronyms}

            \ac{ES}-style beamer template of \acs{UAS} Technikum Wien.

        \section{References}\label{sec:references}

            \begin{itemize}
                \item \citet{einstein1905}
                \item \citet{pentz2004}
                \item \citet{latexcompanion}
                \item \citet{daniel1998}
                \item \citet{knuthwebsite}
                \item \citet{article, book, booklet}
            \end{itemize}

        \section{Textual}\label{sec:textual}

            \subsection{Itemize}\label{subsec:itemize}

                \begin{itemize}
                    \item One
                    \item Two
                    \item Three
                \end{itemize}

            \subsection{Enumerate}\label{subsec:enumerate}

                \begin{enumerate}
                    \item One
                    \item Two
                    \item Three
                \end{enumerate}

            \subsection{Description}\label{subsec:description}

                \begin{description}
                    \item [Ant] Ameise
                    \item [Elephant] Elefant
                    \item [Bee] Biene
                    \item [Honey] Honig
                \end{description}

            \subsection{Theorem}\label{subsec:theorem}

                \newtheorem{dummy}{Dummytext}
                \begin{dummy}
                    \blindtext
                \end{dummy}

        \section{Figures}\label{sec:figures}

            See illustration (Figure \ref{fig:dilbert1}), TikZ example (Figure \ref{fig:mesif}), \texttt{timingtable} (\ref{fig:timingtable}),
            and another TikZ example (Figure \ref{fig:control-system}).

            \begin{figure}
                \centering
                \includegraphics[width=0.33\textwidth]{dilbert1.pdf}%
                \includegraphics[width=0.33\textwidth]{dilbert2.pdf}%
                \includegraphics[width=0.33\textwidth]{dilbert3.pdf}
                % \caption{\textcopyright~2018 Scott Adams, \url{dilbert.com}}
                \caption{\textcopyright~2018 Scott Adams, dilbert.com}
                \label{fig:dilbert1}
            \end{figure}

            \begin{figure}
                \centering
                \resizebox {0.75\textwidth} {!} {\includestandalone{mesif}}
                \caption{MESIF protocol, \textcopyright~Marek Fiser, marekfiser.cz}
                \label{fig:mesif}
            \end{figure}

            \begin{figure}
                \centering
                \resizebox {0.65\textwidth} {!} {\includestandalone{timingtable}}
                \caption{SR flip-flop timing diagram (provided by the \texttt{timingtable} package)}
                \label{fig:timingtable}
            \end{figure}

            \begin{figure}
                \centering
                \resizebox {0.75\textwidth} {!} {\includestandalone{control-system}}
                % \caption{Control system principle, http://www.texample.net/tikz/examples/control-system-principles/}
                \label{fig:control-system}
            \end{figure}

        \section{Source Code}\label{sec:source code}
        
            \lstinputlisting[
                caption={C Syntax Highlighting},
                label=lst:main,
            ]{main.c}
            
        \section{Tables}\label{sec:tables}

            See simple table (Table \ref{tab:table1}, and more advanced, rotated example table (Table \ref{tab:table2})).
        
            \begin{table}
                \centering\scriptsize
                \resizebox {\textwidth} {!} {\includestandalone{bandgab}}
                \caption{The bandgab of some semiconductors.}
                \label{tab:table1}
            \end{table}

            % \begin{adjustbox}{angle=90}
                \begin{table}
                    \centering\scriptsize
                    \Rotatebox{90}{\resizebox {1.6\textwidth} {!} {\includestandalone{siunits}}}
                    \caption{\acs{SI} base units}
                    \label{tab:table2}
                \end{table}
            % \end{adjustbox}

\end{document}