chapter02.tex 4.98 KB
Newer Older
1
\makeatletter \def\input@path{{../}}\makeatother
2
3
4
\documentclass[demo.tex]{subfiles}
% \usepackage[class=book]{standalone}
% \usepackage[subpreambles]{standalone}
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

\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})
24
            \item Tables (cf. Section \ref{sec:tables})
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
            \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
94
95
                \resizebox {0.75\textwidth} {!} {\input{mesif}}
                % \input{mesif}
96
97
98
99
100
101
                \caption{MESIF protocol, \textcopyright~Marek Fiser, marekfiser.cz}
                \label{fig:mesif}
            \end{figure}

            \begin{figure}
                \centering
102
103
                \resizebox {0.65\textwidth} {!} {\input{timingtable}}
                \caption{SR flip-flop timing diagram}% (provided by the \texttt{timingtable} package)}
104
105
106
107
108
                \label{fig:timingtable}
            \end{figure}

            \begin{figure}
                \centering
109
110
                \resizebox {0.75\textwidth} {!} {\input{control-system}}
                \caption{Control system principle} %, http://www.texample.net/tikz/examples/control-system-principles/}
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
                \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
127
                \resizebox {\textwidth} {!} {\input{bandgab}}
128
129
130
131
                \caption{The bandgab of some semiconductors.}
                \label{tab:table1}
            \end{table}

132
133
134
135
136
137
138
139
140
            \begin{table}
                \centering\scriptsize
                \Rotatebox{90}{\resizebox {1.4\textwidth} {!} {\input{siunits}}}
                \caption{\acs{SI} base units}
                \label{tab:table2}
            \end{table}
    
    % \biblio{}
    \bibliolist{}
141
142

\end{document}