commit b2dfd0057cf450f03ac7641b0e67505506d54671 Author: CDaut Date: Tue Nov 22 22:07:24 2022 +0100 template and first chapters diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0509c59 --- /dev/null +++ b/.gitignore @@ -0,0 +1,314 @@ +# Created by https://www.toptal.com/developers/gitignore/api/latex +# Edit at https://www.toptal.com/developers/gitignore?templates=latex + +### LaTeX ### +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs +*.lzo +*.lzs +*.slg +*.slo +*.sls + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplot +*.gnuplot +*.table + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.glog +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# newpax +*.newpax + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# svg +svg-inkscape/ + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# titletoc +*.ptc + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib + +### LaTeX Patch ### +# LIPIcs / OASIcs +*.vtc + +# glossaries +*.glstex + +# End of https://www.toptal.com/developers/gitignore/api/latex diff --git a/bibliography.bib b/bibliography.bib new file mode 100644 index 0000000..3d7b249 --- /dev/null +++ b/bibliography.bib @@ -0,0 +1,15 @@ +@online{OnlineRef1, + author = {Smith, Arthur}, + title = {A very important Online Study}, + year = N/A, + url = {\url{AVeryReliableBlog.com}}, + urldate = {2022-08-15} +} + +@article{ArticleRef, + title={A well Researched paper to cite}, + journal={Journal which may or may not be real}, + author={Author, Autherson}, + year={2022}, + month={8} + } diff --git a/defs.tex b/defs.tex new file mode 100644 index 0000000..48578d2 --- /dev/null +++ b/defs.tex @@ -0,0 +1,286 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% NEW defs.tex file hack + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% PACKAGES TO BE USED + +% \usepackage{fontspec} +\usepackage{graphicx} +\usepackage{grffile} +\usepackage{multicol} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{bm} +\usepackage{wrapfig} +% \usepackage{url} +\usepackage{pdfpages} + +\usepackage{color} +\usepackage{xcolor} +%\usepackage{floatrow} +\usepackage{hyperref} + +\hypersetup{ + colorlinks=true, + allcolors=blue + } + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% footnote with no marker + +\newcommand\blfootnote[1]{% + \begingroup + \renewcommand\thefootnote{}\footnote{#1}% + \addtocounter{footnote}{-1}% + \endgroup +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Bibliography + +\usepackage[backend=biber]{biblatex} + +\DefineBibliographyStrings{english}{andothers={+}} + +\newbibmacro{name:newformat}{% + \namepartfamily % #1->\namepartfamily, #2->\namepartfamilyi + } + +\DeclareNameFormat{default}{% + \nameparts{#1}% split the name data, will not be necessary in future versions + \usebibmacro{name:newformat}% + \usebibmacro{name:andothers}% +} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% % SET THE FONT (FONTSPEC PACKAGE REQUIRED!) + +% %\renewcommand{\familydefault}{\sfdefault} +% \setmainfont{Arial} + +% %\newfontfamily\Condensed[Ligatures=TeX]{ArialNarrow} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% PAGE DIMENSIONS + +\textheight 10in +\textwidth 6.6in +\topmargin -35pt +\oddsidemargin -15pt + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% PARAGRAPH PROPERTIES +\parindent=0pt +\parskip=1pt + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% SECTION COMMANDS + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newcounter{project} +\newcommand{\project}[2] + {\refstepcounter{project} + \addcontentsline{toc}{section}{\theproject:\ \ #2 -- (#1)} + {\Large\fontseries{b}\selectfont{ + \theproject:\ \ #2 -- (#1)}\par} + \vspace{0mm}\ignorespaces + \setcounter{footnote}{0} + } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% the \ftedata{}: takes one argumemnt. + +%\newcommand{\ftedata}[1] +%{{\centering\sffamily\fontseries{sbc} +% \selectfont{#1}\par}\vspace{1mm}\ignorespaces} + +\newcommand{\ftedata}[1] +{{%\sffamily%\fontseries{sbc}\selectfont{#1} +#1\par}\vspace{0mm}\ignorespaces} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% the \facilites{}: takes one argumemnt. + +%\newcommand{\facilities}[1] +%{{\centering\sffamily\fontseries{sbc} +%\selectfont{#1}\par}\vspace{1mm}\ignorespaces} + +\newcommand{\facilities}[1] +{{%\sffamily%\fontseries{sbc}\selectfont{#1} +#1\par}\vspace{1mm}\ignorespaces} + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Redefine \footnotesize to normal size font + +\renewcommand{\footnotesize}{\fontsize{11pt}{11pt}\selectfont} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Figure captions + +\usepackage[format=plain,font=small,labelfont=bf,skip=-5pt,belowskip=-20pt]{caption} +\renewcommand{\figurename}{Fig.} + +% headings + +\newcommand{\heading}[1] +{\par\vspace{2mm}\noindent{\large\fontseries{b}\selectfont{\bf #1}}} + +% subheadings +\newcommand{\Condensed}{} +\newcommand{\sstrong}[1]{\textbf{#1}} + +\newcommand{\subheading}[1] +{\par\vspace{1.5mm}\noindent{\Condensed\sstrong{#1}}} + +% metadata + +\newcommand{\metadata}[1] + {{\centering\small{#1}\par}\vspace{1mm}\ignorespaces} + +% psummary + +\newenvironment{psummary}[1][]{\vspace{1mm}\par\hrule\vspace{0.5mm}\noindent\metadata{{#1}}{\par\noindent\sstrong{Abstract\ }}}{\par\vspace{2mm}\hrule} + +% compact lists + +\newenvironment{shortitem} +{\begin{list} +{$\bullet$}{\topsep=0pt\itemsep=0pt\parsep=0pt\parskip=0pt\leftmargin=12pt}} +{\end{list}} + +\newenvironment{compactlist}{\begin{list}{$\triangleright$}% + {\topsep=0pt\itemsep=0pt\parsep=0pt\parskip=0pt\leftmargin=12pt}}% + {\end{list}} + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% JOURNAL SHORTCUTS + +\def\mnras{{MNRAS}} +\def\pr{{PR}} +\def\prd{{PRD}} +\def\prl{{PRL}} +\def\apj{{ApJ}} +\def\apjs{{ApJS}} +\def\apjl{{AJL}} +\def\apjl{{ApJL}} +\def\aa{{A\&A}} +\def\nat{{Nat.}} +\def\astropart{{Astro-particle Phys.~}} +\def\rvmp{{RMP}} +\def\physrep{{PR}} +\def\jcap{JCAP} +\def\araa{ARAA} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%ABBREVIATIONS + +\def\LCDM{\mbox{$\Lambda$CDM}} +\def\Lsun{\mbox{L$_\odot$}} +\def\Msun{\mbox{M$_\odot$}} +\def\spose#1{\hbox to 0pt{#1\hss}} +\def\simlt{\mathrel{\spose{\lower 3pt\hbox{$\mathchar"218$}} + \raise 2.0pt\hbox{$\mathchar"13C$}}} +\def\simgt{\mathrel{\spose{\lower 3pt\hbox{$\mathchar"218$}} + \raise 2.0pt\hbox{$\mathchar"13E$}}} +\def\eg{{\textit{e.g.}}} +\def\gtsima{$\; \buildrel > \over \sim \;$} +\def\ltsima{$\; \buildrel < \over \sim \;$} +\def\gsim{\lower.5ex\hbox{\gtsima}} +\def\lsim{\lower.5ex\hbox{\ltsima}} +\def\simgt{\lower.5ex\hbox{\gtsima}} +\def\simlt{\lower.5ex\hbox{\ltsima}} +\def\simpr{\lower.5ex\hbox{\prosima}} +\def\la{\lsim} +\def\ga{\gsim} +\def\zcr{Z_{\rm cr}} +\def\ekin{\mbox{\cal E}_{\rm kin}} +\def\ekin{{\cal E}_{\rm kin}} +\def\fgg{f_{\gamma\gamma}} +\def\Lya{Ly$\alpha$~} +\def\sngg{SN$_{\gamma\gamma}$~} +\def\msun{{M_\odot}} + +% Arial doesn't do small caps (so replaced with normal caps) +\newcommand{\spitzer}{\emph{Spitzer}} +\newcommand{\jwst}{\emph{JWST}} +\newcommand{\sam}{\emph{SAM}} +\newcommand{\swift}{\emph{Swift}} +\newcommand{\wfirst}{\emph{WFirst}} +\newcommand{\euclid}{\emph{Euclid}} +\newcommand{\hubble}{\emph{Hubble}} +\newcommand{\herschel}{\emph{Herschel}} +\newcommand{\webb}{\emph{Webb}} +\newcommand{\bluetides}{\textsc{Bluetides}} +%\newcommand{\eagle}{\textsc{Eagle}} +\newcommand{\eagle}{{EAGLE}} +%\newcommand{\colibre}{\textsc{Colibre}} +\newcommand{\colibre}{{COLIBRE}} +%\newcommand{\gadget}{\textsc{Gadget}} +\newcommand{\gadget}{{GADGET}} +\newcommand{\lgal}{\textsc{L-Galaxies}} +\newcommand{\arepo}{\textsc{AREPO}} +\newcommand{\cosmomc}{\textsc{CosmoMC}} +\newcommand{\SO}{\textsc{Simons Observatory}} +\newcommand{\planck}{\textsc{Planck}} +\newcommand{\getdist}{\textsc{GetDist}} + +\newcommand{\Eg}{E_{\mathrm{G}}} +\newcommand{\kms}{\mbox{$\mbox{\,km\,s}^{-1}$}} +\newcommand{\Mpc}{h^{-1}\, \mathrm{Mpc}} +\newcommand{\Msol}{h^{-1}M_{\odot}} +\newcommand{\hMpc}{\mbox{ $h^{-1}{\rm Mpc}$}} +\newcommand{\volunit}{\mbox{\,$h^{-3}$\,Mpc$^{3}$}} +\newcommand{\del}{\delta} +\newcommand{\Del}{\Delta} +\newcommand{\nb}{\bar{n}} +\newcommand{\etalb}{et al.} +\def\etal{et~al.~} + + +\def\spose#1{\hbox to 0pt{#1\hss}} + +\def\simgt{\mathrel{\spose{\lower 3pt\hbox{$\mathchar"218$}} + \raise 2.0pt\hbox{$\mathchar"13E$}}} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% highlighting macros + +\newcommand{\red}[1]{{\color{red}{#1}}} +\newcommand{\green}[1]{{\color{green}{#1}}} +\newcommand{\blue}[1]{{\color{blue}{#1}}} +\newcommand{\brown}[1]{{\color{brown}{#1}}} +\newcommand{\white}[1]{{\color{white}{#1}}} + +% Comments, etc +\newcommand{\changed}[2][{}]{\red{\sout{#1}}\blue{#2}} +%\newcommand{\changed}[2][{}]{#2} +\newcommand{\comment}[1]{\brown{#1}} +\newcommand{\todo}[1]{\red{#1}} \ No newline at end of file diff --git a/figs/Sock.jpeg b/figs/Sock.jpeg new file mode 100644 index 0000000..f11c238 Binary files /dev/null and b/figs/Sock.jpeg differ diff --git a/main.pdf b/main.pdf new file mode 100644 index 0000000..74899f1 Binary files /dev/null and b/main.pdf differ diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..2134e3e --- /dev/null +++ b/main.tex @@ -0,0 +1,36 @@ +\documentclass[a4paper,11pt, twocolumn]{article} +\usepackage{fancyhdr} +\usepackage[compact]{titlesec} +\titlespacing{\section}{1pt}{*1}{*1} +\titlespacing{\subsection}{0.2pt}{*0.2}{*0.2} +\titlespacing{\subsubsection}{0.2pt}{*0.2}{*0.2} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\input{defs.tex} +\input{mydefs.tex} + +\addbibresource{bibliography.bib} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\begin{document} + +\fancyhf{} +\pagestyle{fancy} +\lhead{Jabde.com} +\rhead{Roper et All} +\cfoot{\thepage } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\clearpage + +% PROJECTS +\newcommand{\projectpath}{} % Necessary because of the inclusion of extra files +\begin{refsection} +\include{project} +\end{refsection} +\end{document} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + diff --git a/mydefs.tex b/mydefs.tex new file mode 100644 index 0000000..aec045c --- /dev/null +++ b/mydefs.tex @@ -0,0 +1,4 @@ +\usepackage{lipsum} +\usepackage[T1]{fontenc} +\usepackage[sfdefault]{biolinum} +\biolinum \ No newline at end of file diff --git a/project.tex b/project.tex new file mode 100644 index 0000000..8fc60c5 --- /dev/null +++ b/project.tex @@ -0,0 +1,126 @@ +\twocolumn[ + \title{\bf - An algorithm for faster sock sorting} + \author{ + CelloClemens$^{1,2}$, + Henriente$^{1}$, + } + \date{\today} + % List of institutions + \maketitle + $^{1}$Department for theoretical laundry science, Karlsruhe institute of suffering and sorrow (KISS), Karlsruhe, Germany \\ + $^{2}$Institute of laundry sorting, Department for socks, Karlsruhe institute of suffering and sorrow (KISS), Karlsruhe, Germany + \begin{psummary} + Sorting socks can often be a time consuming task. This paper introduces the fastest method known in the scientific community to tackle + this challanging task. To be able to implement this new algorithm + a new data structure will be introduced and discussed. Abundant application of this novel algorithm may be able to + reduce the time required for sorting socks considerably. + \end{psummary} + \vspace{2mm} +] +\fancypagestyle{firstpage}{% + \lhead{Please help I am stuck in the basement sorting socks} + \rhead{Journal of Immaterial Science} +} +\thispagestyle{firstpage} + +% The introduction +\section{Introduction} +While sorting algorithms are one of the most discussed algorithms in the +computer science community, application of this field to laundry is still quite new. +In fact no research is known to the authors connecting the fields of computer science +and laundry sorting. A few definitions are required in order to establish a baseline +for the algorithm discussed in the following paper. + +\subsection{Definitions} +In this section a few definitions, common in the field of theoretical laundry science shall be +introduced. These are required to understand the algorithm and its advantages. + +\subsubsection{Sock} +Let $\Lambda_a$ be the Set of laundry. The set of socks, $\Sigma\subset\Lambda_a$ +is defined as $\Sigma:=\{s\in\Lambda_a|\chi(s)=1\}$\footnote{Yes, some socks have holes. So what?!}, where $\chi(s)$ is the Euler +characteristic of $s$. For every sock $s$ there is an equal counterpart $s^{-1}$ giving rise +to the identity $s\cong s^{-1}$. The task commonly known as "sock sorting" is in fact the +search for this isomorphism $\eta$ and matching every sock $s$ to its inverse +$s^{-1}$. +\begin{figure}[h] + \centering + \includegraphics[width=\columnwidth]{\projectpath figs/Sock.jpeg} + \vspace{0.1in} + \caption{Three single socks.} + \label{fig:Sock} + \vspace{0.1in} +\end{figure} +\subsubsection{Laundry basket} +Let $\Lambda$ be a set of laundry items. Then a laundry basket is a +triple $(\Lambda, +, -)$ representing a data structure that implements +the following functions: +\begin{itemize} + \item \lstinline{} +\end{itemize} +\section{Methodology} + +In order to invent this thing or analyze this data, we're going to need to use the equation below. + +\begin{equation} + Heuristic_\alpha(x) = \sqrt{\sum{All of the things}}, +\end{equation} + +Of course we trust that equation because of the work done in \cite{OnlineRef1} which may or may not agree with the dude that wrote \cite{ArticleRef}. + +\section{Another Section} + +I don't know, you could have a boring data collection bit here, or an architecture, or something. I'm sure it'll be mostly filler. + +\section{Filler Section 2} + +As shown in figure , Freud is not displaying Penis envy by holding a cigar. + +I swear it's just a cigar. + +\section{Discussion and Results} + +According to all of this data and our unbiased analysis, all of our beliefs have been validated. Just check out Table \ref{table:1}. + +\begin{table}[h!] + \vspace{0.1in} + \begin{center} + \begin{tabular}{||c c c c||} + \hline + Col1 & Col2 & Col2 & Col3 \\ [0.5ex] + \hline\hline + 1 & 6 & 87837 & 787 \\ + \hline + 2 & 7 & 78 & 5415 \\ + \hline + 3 & 545 & 778 & 7507 \\ + \hline + 4 & 545 & 18744 & 7560 \\ + \hline + 5 & 88 & 788 & 6344 \\ [1ex] + \hline + \end{tabular} + \vspace{0.1in} + \caption{Table to prove how right you are.} + \label{table:1} + \end{center} +\end{table} + + +Wow, what astounding results! + +\section{Conclusion} + +In conclusion, I am very smart + +\section{Acknowledgements} + +I did this all by myself, so I'm kinda awesome. But I guess I hocked and edited this template from the cowshed article so thanks for that William Roper + +\begingroup +\setlength\bibitemsep{0pt} +\setlength\bibnamesep{0pt} +\printbibliography[heading=subbibliography] +\endgroup + +%when translating non-inline equations into Wordpress, use the code below +%

$latex \displaystyle \mathop{\mathbb E}_{x\sim X} f(x):= 1 \ \ \ \ (1)&fg=000000$

\ No newline at end of file