From 07d7e3a5a79176c60268080ff98096132358d54b Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Mon, 8 Jul 2019 13:56:14 +0200 Subject: [PATCH] from template --- aas_macros.sty | 107 ++++++++++++++++++++++++++++++ bibliographie.bib | 19 ++++++ main.tex | 80 +++++++++++++++++++++++ template.tex | 163 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 369 insertions(+) create mode 100644 aas_macros.sty create mode 100644 bibliographie.bib create mode 100644 main.tex create mode 100644 template.tex diff --git a/aas_macros.sty b/aas_macros.sty new file mode 100644 index 0000000..8382510 --- /dev/null +++ b/aas_macros.sty @@ -0,0 +1,107 @@ +% +% These Macros are taken from the AAS TeX macro package version 5.2 +% and are compatible with the macros in the A&A document class +% version 7.0 +% Include this file in your LaTeX source only if you are not using +% the AAS TeX macro package or the A&A document class and need to +% resolve the macro definitions in the TeX/BibTeX entries returned by +% the ADS abstract service. +% +% If you plan not to use this file to resolve the journal macros +% rather than the whole AAS TeX macro package, you should save the +% file as ``aas_macros.sty'' and then include it in your LaTeX paper +% by using a construct such as: +% \documentstyle[11pt,aas_macros]{article} +% +% For more information on the AASTeX and A&A packages, please see: +% http://journals.aas.org/authors/aastex.html +% ftp://ftp.edpsciences.org/pub/aa/readme.html +% For more information about ADS abstract server, please see: +% http://adsabs.harvard.edu/ads_abstracts.html +% + +% Abbreviations for journals. The object here is to provide authors +% with convenient shorthands for the most "popular" (often-cited) +% journals; the author can use these markup tags without being concerned +% about the exact form of the journal abbreviation, or its formatting. +% It is up to the keeper of the macros to make sure the macros expand +% to the proper text. If macro package writers agree to all use the +% same TeX command name, authors only have to remember one thing, and +% the style file will take care of editorial preferences. This also +% applies when a single journal decides to revamp its abbreviating +% scheme, as happened with the ApJ (Abt 1991). + +\let\jnl@style=\rmfamily +\def\ref@jnl#1{{\jnl@style#1}} + +\def\aj{\ref@jnl{AJ}} % Astronomical Journal +\def\actaa{\ref@jnl{Acta Astron.}} % Acta Astronomica +\def\araa{\ref@jnl{ARA\&A}} % Annual Review of Astron and Astrophys +\def\apj{\ref@jnl{ApJ}} % Astrophysical Journal +\def\apjl{\ref@jnl{ApJ}} % Astrophysical Journal, Letters +\def\apjs{\ref@jnl{ApJS}} % Astrophysical Journal, Supplement +\def\ao{\ref@jnl{Appl.~Opt.}} % Applied Optics +\def\apss{\ref@jnl{Ap\&SS}} % Astrophysics and Space Science +\def\aap{\ref@jnl{A\&A}} % Astronomy and Astrophysics +\def\aapr{\ref@jnl{A\&A~Rev.}} % Astronomy and Astrophysics Reviews +\def\aaps{\ref@jnl{A\&AS}} % Astronomy and Astrophysics, Supplement +\def\azh{\ref@jnl{AZh}} % Astronomicheskii Zhurnal +\def\baas{\ref@jnl{BAAS}} % Bulletin of the AAS +\def\bac{\ref@jnl{Bull. astr. Inst. Czechosl.}} + % Bulletin of the Astronomical Institutes of Czechoslovakia +\def\caa{\ref@jnl{Chinese Astron. Astrophys.}} + % Chinese Astronomy and Astrophysics +\def\cjaa{\ref@jnl{Chinese J. Astron. Astrophys.}} + % Chinese Journal of Astronomy and Astrophysics +\def\icarus{\ref@jnl{Icarus}} % Icarus +\def\jcap{\ref@jnl{J. Cosmology Astropart. Phys.}} + % Journal of Cosmology and Astroparticle Physics +\def\jrasc{\ref@jnl{JRASC}} % Journal of the RAS of Canada +\def\memras{\ref@jnl{MmRAS}} % Memoirs of the RAS +\def\mnras{\ref@jnl{MNRAS}} % Monthly Notices of the RAS +\def\na{\ref@jnl{New A}} % New Astronomy +\def\nar{\ref@jnl{New A Rev.}} % New Astronomy Review +\def\pra{\ref@jnl{Phys.~Rev.~A}} % Physical Review A: General Physics +\def\prb{\ref@jnl{Phys.~Rev.~B}} % Physical Review B: Solid State +\def\prc{\ref@jnl{Phys.~Rev.~C}} % Physical Review C +\def\prd{\ref@jnl{Phys.~Rev.~D}} % Physical Review D +\def\pre{\ref@jnl{Phys.~Rev.~E}} % Physical Review E +\def\prl{\ref@jnl{Phys.~Rev.~Lett.}} % Physical Review Letters +\def\pasa{\ref@jnl{PASA}} % Publications of the Astron. Soc. of Australia +\def\pasp{\ref@jnl{PASP}} % Publications of the ASP +\def\pasj{\ref@jnl{PASJ}} % Publications of the ASJ +\def\rmxaa{\ref@jnl{Rev. Mexicana Astron. Astrofis.}}% + % Revista Mexicana de Astronomia y Astrofisica +\def\qjras{\ref@jnl{QJRAS}} % Quarterly Journal of the RAS +\def\skytel{\ref@jnl{S\&T}} % Sky and Telescope +\def\solphys{\ref@jnl{Sol.~Phys.}} % Solar Physics +\def\sovast{\ref@jnl{Soviet~Ast.}} % Soviet Astronomy +\def\ssr{\ref@jnl{Space~Sci.~Rev.}} % Space Science Reviews +\def\zap{\ref@jnl{ZAp}} % Zeitschrift fuer Astrophysik +\def\nat{\ref@jnl{Nature}} % Nature +\def\iaucirc{\ref@jnl{IAU~Circ.}} % IAU Cirulars +\def\aplett{\ref@jnl{Astrophys.~Lett.}} % Astrophysics Letters +\def\apspr{\ref@jnl{Astrophys.~Space~Phys.~Res.}} + % Astrophysics Space Physics Research +\def\bain{\ref@jnl{Bull.~Astron.~Inst.~Netherlands}} + % Bulletin Astronomical Institute of the Netherlands +\def\fcp{\ref@jnl{Fund.~Cosmic~Phys.}} % Fundamental Cosmic Physics +\def\gca{\ref@jnl{Geochim.~Cosmochim.~Acta}} % Geochimica Cosmochimica Acta +\def\grl{\ref@jnl{Geophys.~Res.~Lett.}} % Geophysics Research Letters +\def\jcp{\ref@jnl{J.~Chem.~Phys.}} % Journal of Chemical Physics +\def\jgr{\ref@jnl{J.~Geophys.~Res.}} % Journal of Geophysics Research +\def\jqsrt{\ref@jnl{J.~Quant.~Spec.~Radiat.~Transf.}} + % Journal of Quantitiative Spectroscopy and Radiative Transfer +\def\memsai{\ref@jnl{Mem.~Soc.~Astron.~Italiana}} + % Mem. Societa Astronomica Italiana +\def\nphysa{\ref@jnl{Nucl.~Phys.~A}} % Nuclear Physics A +\def\physrep{\ref@jnl{Phys.~Rep.}} % Physics Reports +\def\physscr{\ref@jnl{Phys.~Scr}} % Physica Scripta +\def\planss{\ref@jnl{Planet.~Space~Sci.}} % Planetary Space Science +\def\procspie{\ref@jnl{Proc.~SPIE}} % Proceedings of the SPIE + +\let\astap=\aap +\let\apjlett=\apjl +\let\apjsupp=\apjs +\let\applopt=\ao + diff --git a/bibliographie.bib b/bibliographie.bib new file mode 100644 index 0000000..83188ab --- /dev/null +++ b/bibliographie.bib @@ -0,0 +1,19 @@ +% Encoding: UTF-8 + +@Article{guowhite, + author = {{Guo}, Q. and {White}, S.~D.~M.}, + title = {Galaxy growth in the concordance CDM cosmology}, + journaltitle = {\mnras}, + date = {2008-02}, + volume = {384}, + pages = {2-10}, + doi = {10.1111/j.1365-2966.2007.12619.x}, + eprint = {0708.1814}, + eprinttype = {arXiv}, + adsnote = {Provided by the SAO/NASA Astrophysics Data System}, + adsurl = {http://adsabs.harvard.edu/abs/2008MNRAS.384....2G}, + keywords = {galaxies: evolution , galaxies: formation , galaxies: high-redshift , galaxies: interactions , cosmology: theory , dark matter}, +} +} + +@Comment{jabref-meta: databaseType:biblatex;} diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..d24e84f --- /dev/null +++ b/main.tex @@ -0,0 +1,80 @@ +\input{template.tex} +\hypersetup{ + pdftitle={The Title of the Bachelor Thesis}, + pdfauthor={Lukas Winkler} +} +\title{The Title of the Bachelor Thesis} +\subtitle{bla bla} +\author{Lukas Winkler\footnote{\texttt{a01505981@unet.univie.ac.at}}} +%\publishers{TEST} +\date{1. August 2019} + +\usepackage{lipsum} % just for lorem ipsum +\newcommand{\blabla}{Bla bla bla} + +\begin{document} + +\maketitle + +\tableofcontents + +\chapter{Introduction}\label{introduction} + +\lipsum[1] + +\section{\blabla} + +\lipsum[1-2] + + +\begin{figure} + \centering +% \includegraphics[width=.5\linewidth]{thefile.png} + \caption{\blabla} + \label{fig:bla} +\end{figure} + +\chapter{Another chapter} + +\lipsum[1-2] + +Even more \enquote{Text} with \SI{20.4e5}{\kilo\meter\per\hour}! + +\begin{align} + \dv{a} +\end{align} + +\section{More text} + +\lipsum[2-5]\footcite{guowhite} + + + +\begin{itemize} +\setlength\itemsep{-0.5em} +\item test +\item more test +\end{itemize} + +See Chapter \ref{introduction}. + + +\section{An equation} + +\begin{align} + a&=\sqrt{4} \\ + b&=a^2 +\end{align} + +% ---------------------------------------------------------- + +\appendix +\chapter{Some data} + +\lipsum[1] + +\printbibliography + + +\end{document} + diff --git a/template.tex b/template.tex new file mode 100644 index 0000000..34f222f --- /dev/null +++ b/template.tex @@ -0,0 +1,163 @@ +\RequirePackage[l2tabu, orthodox]{nag} + +\documentclass[ +a4paper, +% draft, %% produce only a draft version (mark lines that need manual edition and don't show graphics) +bibliography=totoc, % add bibilography to table of contents +11pt, %% set default font size to 11 point +DIV=14, % replace this with a larger number to get less padding around all text (or use calc for the ideal border) +parskip=half, % how much space between paragraphs. If you prefer indention instead of space between paragraphs remove it +oneside, % replace with twoside before printing +%draft, % uncomment for faster compilation +british, % language of the document +%appendixprefix=true % in case you want Appendix A written in front of appendix headings +]{scrbook} + + + +%--------------------------- Important Packages -------------------------------- + +%\usepackage[ngerman]{babel} + +% required for proper characters +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} + + +% helps with equations +\usepackage{amsmath,amssymb,amstext} +\usepackage{amsthm} + + +\usepackage{microtype} %slightly changes letter spacing to make text fit better + +\usepackage{aas_macros} % this imports the aas_macros.sty file that is required to print bibtex exported from ADS + + +%------------------------------- Helpful Features --------------------------------- + +% properly format +\usepackage{siunitx} +\sisetup{ + per-mode=fraction, % create a fraction instead of km h^-1 +% locale=DE, + locale=US, + output-decimal-marker = {.}, % usefull even for German + separate-uncertainty = true, + quotient-mode=fraction +} + +%\usepackage{nicefrac} +\usepackage[autostyle=true]{csquotes} % automatically create nice quotes with \enquote{text} +\usepackage{pdflscape} +%\usepackage{cancel} % In case you want to cancel out some values in an equation +\usepackage{physics} % lots of shortcuts for physics equations (e.g. $\dv{a}$) + +\usepackage{subcaption} % allows to nicely put two images next to each other +\usepackage{tabularx} +\usepackage{booktabs} % nicer table seperations + +%----------------------------------- Style decisions ----------------------------------- + +\hyphenpenalty=750 % break less words than default - try different values for success +\interfootnotelinepenalty=10000 % splitting footnotes between pages is really ugly and should only be done if really necessary +\usepackage[sc]{mathpazo} % use the Palatino font and a fitting math font + +\pagestyle{headings} +% how the header of the pages looks like +% for something nicer take a look at fancyhdr + +\usepackage{xcolor} % allows defining colors + +% not sure what these two do, but they definitly do something +\colorlet{bluebookmarks}{blue} +\colorlet{blueallcolors}{blue} + +%----------------------------------- Bibliography ---------------------------------------- + + +\PassOptionsToPackage{hyphens}{url}\usepackage[ + backend=biber, + style=authortitle-comp, % choose a style from https://de.overleaf.com/learn/latex/Biblatex_citation_styles + %sortlocale=de_AT, + sortlocale=en_GB, + backref=true % use if you like it -- puts a link to the page where it is cited into the bibliography +]{biblatex} + +\addbibresource{bibliographie.bib} + + +%---------------------------------- Source Code ----------------------------------------- + +%\usepackage[scaled=.85]{FiraMono} +%\usepackage{listings} +%\usepackage{scrhack} % should fix warning +%\definecolor{strings}{HTML}{008000} +%\definecolor{keywords}{HTML}{000080} +%\definecolor{mygray}{rgb}{0.58,0,0.82} +% +%\lstset{ % +% % backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument +% basicstyle=\footnotesize\ttfamily, % the size of the fonts that are used for the code +% basewidth=0.5em, +% breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace +% breaklines=true, % sets automatic line breaking +% captionpos=b, % sets the caption-position to bottom +% % commentstyle=\color{mygreen}, % comment style +% deletekeywords={...}, % if you want to delete keywords from the given language +% escapeinside={(*}{*)}, % if you want to add LaTeX within your code +% extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8 +% frame=single, % adds a frame around the code +% keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible) +% keywordstyle=\color{keywords}, % keyword style +% morekeywords={*,...}, % if you want to add more keywords to the set +% numbers=none, % where to put the line-numbers; possible values are (none, left, right) +% numbersep=5pt, % how far the line-numbers are from the code +% rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here)) +% showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces' +% showstringspaces=false, % underline spaces within strings only +% showtabs=false, % show tabs within strings adding particular underscores +% stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered +% stringstyle=\color{strings}, % string literal style +% tabsize=2, % sets default tabsize to 2 spaces +% language=bash +%} +%\lstset{literate=% support Umlauts in listings +% {Ö}{{\"O}}1 +% {Ä}{{\"A}}1 +% {Ü}{{\"U}}1 +% {ß}{{\ss}}1 +% {ü}{{\"u}}1 +% {ä}{{\"a}}1 +% {ö}{{\"o}}1 +%} + + +%--------------------------------------- PDF output and hyperlinks ---------------------------- + + +\usepackage{graphicx} % support graphics + +\pdfcompresslevel=9 % create small files (I think it is by default when using hyperref) +\pdfsuppresswarningpagegroup=1 % https://tex.stackexchange.com/a/78020/66733 + + +% support hyperlinks in the PDF + +\usepackage[ % +colorlinks=false, %% turn on colored links (true is better for on-screen reading, false is better for printout versions) +linkcolor = blue, +allcolors=blue, +%%% PDF-specific display options +bookmarks=true, %% if true, generate PDF bookmarks (requires two passes of pdflatex) +bookmarksopen=false, %% if true, show all PDF bookmarks expanded +bookmarksnumbered=false, %% if true, add the section numbers to the bookmarks +%pdfstartpage={1}, %% determines, on which page the PDF file is opened +% pdfpagemode=None %% None, UseOutlines (=show bookmarks), UseThumbs (show thumbnails), FullScreen +draft=false +]{hyperref} + + + + +