Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/latex/multiple-files/master.tex
Views: 1002
\documentclass[12pt,1DIV=12,2twoside=false,3twocolumn=false,4abstraction,5%headsepline,6%footsepline,7%plainheadsepline,8%plainfootsepline,9dottedtoc,10headings=normal,11headinclude=true,12footinclude=true,13parskip=half]{scrbook}1415\usepackage{subfiles}1617\usepackage[USenglish]{babel}18% for German text, change this to19% \usepackage[ngerman]{babel}20\usepackage[utf8]{inputenc}21\usepackage[T1]{fontenc}2223% avoid old unsafe commands24\RequirePackage[l2tabu,orthodox,abort]{nag}25\usepackage{fixltx2e}2627\usepackage{typearea}28% \usepackage{layouts}2930\usepackage[onehalfspacing]{setspace}31\raggedbottom32\usepackage{graphicx}3334% font tweaks35\usepackage{ellipsis,ragged2e,marginnote}36\usepackage[tracking=true]{microtype}37\usepackage{cmbright}38%\usepackage[upright]{fourier}39\usepackage{inconsolata} % better monospaced font!40\renewcommand{\familydefault}{\sfdefault}41\setkomafont{sectioning}{\normalcolor\bfseries}42\setkomafont{disposition}{\normalcolor\bfseries}4344\usepackage[small, bf, up, hang]{caption}45\usepackage[percent]{overpic}4647\usepackage{mathtools}48\usepackage{nicefrac}49% unit[2.3]{N} and unitfrac[4.3]{Nm}{s}50\usepackage{units}5152\usepackage{booktabs}53\usepackage{tabularx}5455%%% Bibliography management56% quite popular is natbib, read about it here57% https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management58% \usepackage{natbib}59% for this document we use biblatex with the biber backend60% this works very well, also for special characters etc.61\usepackage[backend=bibtex,style=alphabetic]{biblatex}62% this file contains the literature database63\addbibresource{bibliography.bib}6465\usepackage{multirow}66\usepackage{rotating}67\usepackage{sagetex}68\usepackage{color}6970% usually, inside a text a LaTeX command needs a trailing \ or {}71% for a trailing space. xspace solves this by looking ahead and inserting72% it for you.73\usepackage{xspace}74% Hence, after this redefinition "\LaTeX is" properly gives "LaTeX is".75\let\orgLaTeX\LaTeX76\renewcommand*{\LaTeX}{\orgLaTeX\xspace}7778% quick setup for page numbers in the footer79\usepackage[automark]{scrlayer-scrpage}80\clearpairofpagestyles81% \ihead{\leftmark}82% \ohead{\includegraphics[height=1cm]{IMG/Logo.JPG}}83\ofoot{\thepage}8485\title{Multiple \LaTeX Source Files}86\subtitle{Howto handle this in CoCalc}87\author{Harald Schilly}8889\begin{document}9091\maketitle9293\chapter{Introduction}9495This is an overview about how to write a large \LaTeX document96with multiple input sources, where:9798\begin{itemize}99\item all sub-documents can be previewed by rendering only the partial document,100\item the forward/inverse search works,101\item SageTeX~\cite{sagetex} is supported,102\item formulas, graphics and the advanced KOMAscript package are enabled.103\end{itemize}104105106\tableofcontents107108\chapter{Setup}109110The general setup of this document is best explained by reading the header111of the ``\texttt{master.tex}'' file.112113\section{Bibliography}114115The bibliography uses \texttt{biblatex} and \texttt{biber},116which works much more robust than the older \texttt{bibtex}.117The file ``\texttt{bibliography.bib}'' defines the references118in the usual bibtex format,119and the references work across all sub-documents.120It also directly supports special characters. For example, the \cite{komascript} reference contains the letter ``ü'',121which is processed and rendered without any issues.122123The next chapters are sub-documents.124They briefly describe each individual aspect in more detail.125126\subfile{10-make.tex}127\subfile{20-subfiles.tex}128\subfile{30-komascript.tex}129\subfile{40-sagetex.tex}130131\chapter{Conclusion}132133\printbibliography134135\end{document}136137%sagemathcloud={"latex_command":"make 'master.pdf'"}138139140