Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News Sign UpSign In
| Download
Views: 29862
1
\documentclass[12pt,
2
DIV=12,
3
twoside=false,
4
twocolumn=false,
5
abstraction,
6
%headsepline,
7
%footsepline,
8
%plainheadsepline,
9
%plainfootsepline,
10
dottedtoc,
11
headings=normal,
12
headinclude=true,
13
footinclude=true,
14
parskip=half]{scrbook}
15
16
\usepackage{subfiles}
17
18
19
\usepackage[USenglish]{babel}
20
% for German text, change this to
21
% \usepackage[ngerman]{babel}
22
\usepackage[utf8]{inputenc}
23
\usepackage[T1]{fontenc}
24
25
% avoid old unsafe commands
26
\RequirePackage[l2tabu,orthodox,abort]{nag}
27
\usepackage{fixltx2e}
28
29
\usepackage{typearea}
30
% \usepackage{layouts}
31
32
\usepackage[onehalfspacing]{setspace}
33
\raggedbottom
34
\usepackage{graphicx}
35
36
% font tweaks
37
\usepackage{ellipsis,ragged2e,marginnote}
38
\usepackage[tracking=true]{microtype}
39
\usepackage{cmbright}
40
%\usepackage[upright]{fourier}
41
\usepackage{inconsolata} % better monospaced font!
42
\renewcommand{\familydefault}{\sfdefault}
43
\setkomafont{sectioning}{\normalcolor\bfseries}
44
\setkomafont{disposition}{\normalcolor\bfseries}
45
46
\usepackage[small, bf, up, hang]{caption}
47
\usepackage[percent]{overpic}
48
49
\usepackage{mathtools}
50
\usepackage{nicefrac}
51
% unit[2.3]{N} and unitfrac[4.3]{Nm}{s}
52
\usepackage{units}
53
54
\usepackage{booktabs}
55
\usepackage{tabularx}
56
57
%%% Bibliography management
58
% quite popular is natbib, read about it here
59
% https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management
60
% \usepackage{natbib}
61
% for this document we use biblatex with the biber backend
62
% this works very well, also for special characters etc.
63
\usepackage[backend=bibtex,style=alphabetic]{biblatex}
64
% this file contains the literature database
65
\addbibresource{bibliography.bib}
66
67
\usepackage{multirow}
68
\usepackage{rotating}
69
\usepackage{sagetex}
70
\usepackage{color}
71
72
% usually, inside a text a LaTeX command needs a trailing \ or {}
73
% for a trailing space. xspace solves this by looking ahead and inserting
74
% it for you.
75
\usepackage{xspace}
76
% Hence, after this redefinition "\LaTeX is" properly gives "LaTeX is".
77
\let\orgLaTeX\LaTeX
78
\renewcommand*{\LaTeX}{\orgLaTeX\xspace}
79
80
% quick setup for page numbers in the footer
81
\usepackage[automark]{scrlayer-scrpage}
82
\clearpairofpagestyles
83
% \ihead{\leftmark}
84
% \ohead{\includegraphics[height=1cm]{IMG/Logo.JPG}}
85
\ofoot{\thepage}
86
87
\title{Multiple \LaTeX Source Files}
88
\subtitle{Howto handle this in CoCalc}
89
\author{Harald Schilly}
90
91
\begin{document}
92
93
\maketitle
94
95
\chapter{Introduction}
96
97
This is an overview about how to write a large \LaTeX document
98
with multiple input sources, where:
99
100
\begin{itemize}
101
\item all sub-documents can be previewed by rendering only the partial document,
102
\item the forward/inverse search works,
103
\item SageTeX~\cite{sagetex} is supported,
104
\item formulas, graphics and the advanced KOMAscript package are enabled.
105
\end{itemize}
106
107
108
\tableofcontents
109
110
\chapter{Setup}
111
112
The general setup of this document is best explained by reading the header
113
of the ``\texttt{master.tex}'' file.
114
115
\section{Bibliography}
116
117
The bibliography uses \texttt{biblatex} and \texttt{biber},
118
which works much more robust than the older \texttt{bibtex}.
119
The file ``\texttt{bibliography.bib}'' defines the references
120
in the usual bibtex format,
121
and the references work across all sub-documents.
122
It also directly supports special characters. For example, the \cite{komascript} reference contains the letter ``ü'',
123
which is processed and rendered without any issues.
124
125
The next chapters are sub-documents.
126
They briefly describe each individual aspect in more detail.
127
128
\subfile{10-make.tex}
129
\subfile{20-subfiles.tex}
130
\subfile{30-komascript.tex}
131
\subfile{40-sagetex.tex}
132
133
\chapter{Conclusion}
134
135
\printbibliography
136
137
\end{document}
138
139
%configuration={"latex_command":"make 'master.pdf'"}
140
141