Merge pull request #8 from FYS3150-G2-2023/janitaws/latex-setup
Janitaws/latex setup
This commit is contained in:
commit
655bf6aceb
3
.gitignore
vendored
3
.gitignore
vendored
@ -35,9 +35,10 @@
|
||||
*.aux
|
||||
*.log
|
||||
*.out
|
||||
*.bib
|
||||
*.synctex.gz
|
||||
*.bbl
|
||||
latex/mainNotes.bib
|
||||
|
||||
|
||||
# C++ specifics
|
||||
src/*
|
||||
|
||||
BIN
latex/main.pdf
Normal file
BIN
latex/main.pdf
Normal file
Binary file not shown.
77
latex/main.tex
Normal file
77
latex/main.tex
Normal file
@ -0,0 +1,77 @@
|
||||
\documentclass[english,notitlepage,reprint,nofootinbib]{revtex4-1} % defines the basic parameters of the document
|
||||
\usepackage{subfiles}
|
||||
% For preview: skriv i terminal: latexmk -pdf -pvc filnavn
|
||||
% If you want a single-column, remove "reprint"
|
||||
|
||||
% Silence warning of revtex4-1
|
||||
\usepackage{silence}
|
||||
\WarningFilter{revtex4-1}{Repair the float}
|
||||
|
||||
% Allows special characters (including æøå)
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{fontawesome}
|
||||
% \usepackage[english]{babel}
|
||||
|
||||
%% Note that you may need to download some of these packages manually, it depends on your setup.
|
||||
%% I recommend downloading TeXMaker, because it includes a large library of the most common packages.
|
||||
|
||||
\usepackage{physics,amssymb} % mathematical symbols (physics imports amsmath)
|
||||
|
||||
\usepackage{graphicx} % include graphics such as plots
|
||||
\def\resources{\graphicspath{{"./images/"}}}
|
||||
\usepackage{xcolor} % set colors
|
||||
\usepackage{hyperref} % automagic cross-referencing
|
||||
\usepackage{listings} % display code
|
||||
\usepackage{subfigure} % imports a lot of cool and useful figure commands
|
||||
% \usepackage{float}
|
||||
%\usepackage[section]{placeins}
|
||||
\usepackage{algorithm}
|
||||
\usepackage[noend]{algpseudocode}
|
||||
\usepackage{subfigure}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{quantikz}
|
||||
% defines the color of hyperref objects
|
||||
% Blending two colors: blue!80!black = 80% blue and 20% black
|
||||
\hypersetup{ % this is just my personal choice, feel free to change things
|
||||
colorlinks,
|
||||
linkcolor={red!50!black},
|
||||
citecolor={blue!50!black},
|
||||
urlcolor={blue!80!black}}
|
||||
|
||||
% Biblio stuff
|
||||
\def\biblio{\bibliographystyle{plain}\bibliography{./references}}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\title{Project 3} % self-explanatory
|
||||
\author{Cory Alexander Balaton \& Janita Ovidie Sandtrøen Willumsen \\ \faGithub \, \url{https://github.uio.no/FYS3150-G2-2023/Project-3}} % self-explanatory
|
||||
\date{\today} % self-explanatory
|
||||
\noaffiliation % ignore this, but keep it.
|
||||
|
||||
% Abstract
|
||||
\subfile{./sections/abstract.tex}
|
||||
|
||||
|
||||
\maketitle
|
||||
|
||||
|
||||
% Introduction
|
||||
\subfile{./sections/introduction.tex}
|
||||
|
||||
% Methods
|
||||
\subfile{./sections/methods.tex}
|
||||
|
||||
% Results
|
||||
\subfile{./sections/results.tex}
|
||||
|
||||
% Conclusion
|
||||
\subfile{./sections/conclusion.tex}
|
||||
|
||||
\onecolumngrid
|
||||
|
||||
\bibliographystyle{plain}
|
||||
\bibliography{.references/references}
|
||||
|
||||
|
||||
\end{document}
|
||||
9
latex/references/references.bib
Normal file
9
latex/references/references.bib
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
@inbook{midpoint_rule,
|
||||
author = "A.C Faul",
|
||||
title = "A Concise Introduction to Numerical Analysis",
|
||||
chapter = "5",
|
||||
pages = "131",
|
||||
publisher= "CRC Press",
|
||||
year = "2016",
|
||||
}
|
||||
12
latex/sections/abstract.tex
Normal file
12
latex/sections/abstract.tex
Normal file
@ -0,0 +1,12 @@
|
||||
\documentclass[../main.tex]{subfiles}
|
||||
\resources % search for graphics in ../res/imgs/
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{abstract}
|
||||
Add an abstract for the project?
|
||||
\end{abstract}
|
||||
|
||||
\biblio
|
||||
\end{document}
|
||||
13
latex/sections/conclusion.tex
Normal file
13
latex/sections/conclusion.tex
Normal file
@ -0,0 +1,13 @@
|
||||
\documentclass[../main.tex]{subfiles}
|
||||
\resources % search for graphics in ../res/imgs/
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\section{Conclusion}
|
||||
|
||||
|
||||
|
||||
|
||||
\biblio
|
||||
\end{document}
|
||||
13
latex/sections/introduction.tex
Normal file
13
latex/sections/introduction.tex
Normal file
@ -0,0 +1,13 @@
|
||||
\documentclass[../main.tex]{subfiles}
|
||||
\resources % search for graphics in ../res/imgs/
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\section{Introduction}
|
||||
|
||||
|
||||
|
||||
|
||||
\biblio
|
||||
\end{document}
|
||||
13
latex/sections/methods.tex
Normal file
13
latex/sections/methods.tex
Normal file
@ -0,0 +1,13 @@
|
||||
\documentclass[../main.tex]{subfiles}
|
||||
\resources % search for graphics in ../res/imgs/
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\section{Methods}
|
||||
|
||||
|
||||
|
||||
|
||||
\biblio
|
||||
\end{document}
|
||||
13
latex/sections/results.tex
Normal file
13
latex/sections/results.tex
Normal file
@ -0,0 +1,13 @@
|
||||
\documentclass[../main.tex]{subfiles}
|
||||
\resources % search for graphics in ../res/imgs/
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\section{Results}
|
||||
|
||||
|
||||
|
||||
|
||||
\biblio
|
||||
\end{document}
|
||||
Loading…
Reference in New Issue
Block a user