LaTeX-templates

My LaTeX templates
git clone https://github.com/michaelneuper/LaTeX-templates.git
README | Files | Log | Refs

commit 5f9f157f1a249045cd4df4a2add0974706a93710
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Sat, 18 Mar 2023 13:41:11 +0200

Initial commit

Diffstat:
A.auctex-auto/document.el | 23+++++++++++++++++++++++
AEssay/Figures/fish.png | 0
AEssay/diazessay.cls | 114+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AEssay/main.tex | 125+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AEssay/sample.bib | 20++++++++++++++++++++
AProject/bibliography.bib | 6++++++
AProject/content/1-first-section.tex | 5+++++
AProject/main.tex | 21+++++++++++++++++++++
AProject/packages.sty | 38++++++++++++++++++++++++++++++++++++++
AProject/styles.sty | 9+++++++++
AProject/titlepage.tex | 19+++++++++++++++++++
Aarticle.tex | 33+++++++++++++++++++++++++++++++++
Ahomework.tex | 39+++++++++++++++++++++++++++++++++++++++
13 files changed, 452 insertions(+), 0 deletions(-)

diff --git a/.auctex-auto/document.el b/.auctex-auto/document.el @@ -0,0 +1,23 @@ +(TeX-add-style-hook + "document" + (lambda () + (TeX-add-to-alist 'LaTeX-provided-class-options + '(("article" "a5paper" "12pt"))) + (TeX-add-to-alist 'LaTeX-provided-package-options + '(("inputenc" "utf8") ("fontenc" "T1") ("geometry" "margin=1in") ("babel" "english"))) + (TeX-run-style-hooks + "latex2e" + "article" + "art12" + "inputenc" + "fontenc" + "fancyhdr" + "lmodern" + "microtype" + "geometry" + "babel" + "amsfonts" + "amsmath" + "amssymb")) + :latex) + diff --git a/Essay/Figures/fish.png b/Essay/Figures/fish.png Binary files differ. diff --git a/Essay/diazessay.cls b/Essay/diazessay.cls @@ -0,0 +1,114 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Diaz Essay +% LaTeX Class +% Version 1.0 (13/1/19) +% +% This class originates from: +% http://www.LaTeXTemplates.com +% +% Authors: +% Vel (vel@LaTeXTemplates.com) +% Nicolas Diaz (nsdiaz@uc.cl) +% +% License: +% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/) +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%---------------------------------------------------------------------------------------- +% CLASS CONFIGURATION +%---------------------------------------------------------------------------------------- + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{diazessay}[2019/01/13 Diaz Essay class v1.0] + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Pass through any options to the base class +\ProcessOptions\relax % Process given options + +\LoadClass{article} % Load the base class + +%---------------------------------------------------------------------------------------- +% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS +%---------------------------------------------------------------------------------------- + +\usepackage[english]{babel} % English language hyphenation + +\usepackage{graphicx} % Required for including images +\graphicspath{{Figures/}{./}} % Specifies where to look for included images (trailing slash required) + +\usepackage{wrapfig} % Allows in-line images + +\usepackage{booktabs} % Required for better horizontal rules in tables + +\usepackage{enumitem} % Required for list customisation +\setlist{noitemsep} % No spacing between list items + +\makeatletter +\renewcommand\@biblabel[1]{\textbf{#1.}} % Remove the square brackets from each bibliography item ('[1]' to '1.') +\makeatother + +%---------------------------------------------------------------------------------------- +% DOCUMENT MARGINS +%---------------------------------------------------------------------------------------- + +\usepackage{geometry} % Required for adjusting page dimensions and margins + +\geometry{ + paper=a4paper, % Paper size, change to letterpaper for US letter size + top=2.5cm, % Top margin + bottom=3cm, % Bottom margin + left=4cm, % Left margin + right=4cm, % Right margin + headheight=0.75cm, % Header height + footskip=1.5cm, % Space from the bottom margin to the baseline of the footer + headsep=0.75cm, % Space from the top margin to the baseline of the header + %showframe, % Uncomment to show how the type block is set on the page +} + +%---------------------------------------------------------------------------------------- +% FONTS +%---------------------------------------------------------------------------------------- + +\usepackage[utf8]{inputenc} % Required for inputting international characters +\usepackage[T1]{fontenc} % Use 8-bit encoding + +\usepackage{mathpazo} % Use the Palatino font + +\usepackage[protrusion=true, expansion=true]{microtype} % Better typography + +\linespread{1.05} % Increase line spacing slightly; Palatino benefits from a slight increase by default + +%---------------------------------------------------------------------------------------- +% TITLE +%---------------------------------------------------------------------------------------- + +\makeatletter +\renewcommand{\maketitle}{ % Customise the title (do not edit title and author name here) + \vspace*{30pt} % Vertical whitespace before the title + \begin{flushright} % Right align + {\LARGE\@title} % Increase the font size of the title + + \vspace{50pt} % Vertical whitespace between the title and author name + + {\large\@author}\\ % Author name + \@date % Date + + \vspace{40pt} % Vertical whitespace between the author block and abstract + \end{flushright} +} +\makeatother + +%---------------------------------------------------------------------------------------- +% HEADERS AND FOOTERS +%---------------------------------------------------------------------------------------- + +\usepackage{fancyhdr} % Required for customising headers and footers +\pagestyle{fancy} % Enable custom headers and footers + +\renewcommand{\headrulewidth}{0pt} % Remove default top horizontal rule +\lhead{} % Left header +\chead{} % Centre header +\rhead{} % Right header +\lfoot{} % Left footer +\cfoot{\thepage} % Centre footer +\rfoot{} % Right footer diff --git a/Essay/main.tex b/Essay/main.tex @@ -0,0 +1,125 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Diaz Essay +% LaTeX Template +% Version 2.0 (13/1/19) +% +% This template originates from: +% http://www.LaTeXTemplates.com +% +% Authors: +% Vel (vel@LaTeXTemplates.com) +% Nicolas Diaz (nsdiaz@uc.cl) +% +% License: +% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/) +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%---------------------------------------------------------------------------------------- +% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS +%---------------------------------------------------------------------------------------- + +\documentclass[11pt]{diazessay} % Font size (can be 10pt, 11pt or 12pt) + +%---------------------------------------------------------------------------------------- +% TITLE SECTION +%---------------------------------------------------------------------------------------- + +\title{\textbf{Surviving the End of the World} \\ {\Large\itshape What to Do When Your Planet Is Destroyed}} % Title and subtitle + +\author{\textbf{Ford Prefect} \\ \textit{Interstellar University}} % Author and institution + +\date{\today} % Date, use \date{} for no date + +%---------------------------------------------------------------------------------------- + +\begin{document} + +\maketitle % Print the title section + +%---------------------------------------------------------------------------------------- +% ABSTRACT AND KEYWORDS +%---------------------------------------------------------------------------------------- + +%\renewcommand{\abstractname}{Summary} % Uncomment to change the name of the abstract to something else + +\begin{abstract} +Morbi tempor congue porta. Proin semper, leo vitae faucibus dictum, metus mauris lacinia lorem, ac congue leo felis eu turpis. Sed nec nunc pellentesque, gravida eros at, porttitor ipsum. Praesent consequat urna a lacus lobortis ultrices eget ac metus. In tempus hendrerit rhoncus. Mauris dignissim turpis id sollicitudin lacinia. Praesent libero tellus, fringilla nec ullamcorper at, ultrices id nulla. Phasellus placerat a tellus a malesuada. +\end{abstract} + +\hspace*{3.6mm}\textit{Keywords:} lorem, ipsum, dolor, sit amet, lectus % Keywords + +\vspace{30pt} % Vertical whitespace between the abstract and first section + +%---------------------------------------------------------------------------------------- +% ESSAY BODY +%---------------------------------------------------------------------------------------- + +\section*{Introduction} + +This statement requires citation \cite{Smith:2012qr}; this one does too \cite{Smith:2013jd}. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean dictum lacus sem, ut varius ante dignissim ac. Sed a mi quis lectus feugiat aliquam. Nunc sed vulputate velit. Sed commodo metus vel felis semper, quis rutrum odio vulputate. Donec a elit porttitor, facilisis nisl sit amet, dignissim arcu. Vivamus accumsan pellentesque nulla at euismod. Duis porta rutrum sem, eu facilisis mi varius sed. Suspendisse potenti. Mauris rhoncus neque nisi, ut laoreet augue pretium luctus. Vestibulum sit amet luctus sem, luctus ultrices leo. Aenean vitae sem leo. + +Nullam semper quam at ante convallis posuere. Ut faucibus tellus ac massa luctus consectetur. Nulla pellentesque tortor et aliquam vehicula. Maecenas imperdiet euismod enim ut pharetra. Suspendisse pulvinar sapien vitae placerat pellentesque. Nulla facilisi. Aenean vitae nunc venenatis, vehicula neque in, congue ligula. + +Pellentesque quis neque fringilla, varius ligula quis, malesuada dolor. Aenean malesuada urna porta, condimentum nisl sed, scelerisque nisi. Suspendisse ac orci quis massa porta dignissim. Morbi sollicitudin, felis eget tristique laoreet, ante lacus pretium lacus, nec ornare sem lorem a velit. Pellentesque eu erat congue, ullamcorper ante ut, tristique turpis. Nam sodales mi sed nisl tincidunt vestibulum. Interdum et malesuada fames ac ante ipsum primis in faucibus. + +%------------------------------------------------ + +\section*{Section Name} + +Cras gravida, est vel interdum euismod, tortor mi lobortis mi, quis adipiscing elit lacus ut orci. Phasellus nec fringilla nisi, ut vestibulum neque. Aenean non risus eu nunc accumsan condimentum at sed ipsum. +\begin{wrapfigure}{l}{0.42\textwidth} % Inline image example, use an 'r' column type to position the figure on the right + \includegraphics[width=\linewidth]{fish.png} + \caption{An example fish.} +\end{wrapfigure} +Aliquam fringilla non diam sed varius. Suspendisse tellus felis, hendrerit non bibendum ut, adipiscing vitae diam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis purus eget nisl scelerisque, commodo rhoncus lacus porta. Vestibulum vitae turpis tincidunt, varius dolor in, dictum lectus. Aenean ac ornare augue, ac facilisis purus. Sed leo lorem, molestie sit amet fermentum id, suscipit ut sem. Vestibulum orci arcu, vehicula sed tortor id, ornare dapibus lorem. Praesent aliquet iaculis lacus nec fermentum. Morbi eleifend blandit dolor, pharetra hendrerit neque ornare vel. Nulla ornare, nisl eget imperdiet ornare, libero enim interdum mi, ut lobortis quam velit bibendum nibh. + +\begin{itemize} + \item First bullet point item + \item Second bullet point item + \item Third bullet point item +\end{itemize} + +Morbi tempor congue porta. Proin semper, leo vitae faucibus dictum, metus mauris lacinia lorem, ac congue leo felis eu turpis. Sed nec nunc pellentesque, gravida eros at, porttitor ipsum. Praesent consequat urna a lacus lobortis ultrices eget ac metus. In tempus hendrerit rhoncus. Mauris dignissim turpis id sollicitudin lacinia. Praesent libero tellus, fringilla nec ullamcorper at, ultrices id nulla. Phasellus placerat a tellus a malesuada. + +\begin{enumerate} + \item First numbered list item + \item Second numbered list item +\end{enumerate} + +%------------------------------------------------ + +\section*{Conclusion} + +Fusce in nibh augue. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In dictum accumsan sapien, ut hendrerit nisi. Phasellus ut nulla mauris. Phasellus sagittis nec odio sed posuere. Vestibulum porttitor dolor quis suscipit bibendum. Mauris risus lectus, cursus vitae hendrerit posuere, congue ac est. Suspendisse commodo eu eros non cursus. Mauris ultrices venenatis dolor, sed aliquet odio tempor pellentesque. Duis ultricies, mauris id lobortis vulputate, tellus turpis eleifend elit, in gravida leo tortor ultricies est. Maecenas vitae ipsum at dui sodales condimentum a quis dui. Nam mi sapien, lobortis ac blandit eget, dignissim quis nunc. + +Donec luctus tincidunt mauris, non ultrices ligula aliquam id. Sed varius, magna a faucibus congue, arcu tellus pellentesque nisl, vel laoreet magna eros et magna. Vivamus lobortis elit eu dignissim ultrices. Fusce erat nulla, ornare at dolor quis, rhoncus venenatis velit. Donec sed elit mi. Sed semper tellus a convallis viverra. Maecenas mi lorem, placerat sit amet sem quis, adipiscing tincidunt turpis. Cras a urna et tellus dictum eleifend. Fusce dignissim lectus risus, in bibendum tortor lacinia interdum. + +\begin{table}[h] % [h] forces the table to be output where it is defined in the code (it suppresses floating) + \caption{Example table.} + \centering + \begin{tabular}{l l r} + \toprule + \multicolumn{2}{c}{Name} \\ + \cmidrule(r){1-2} + First Name & Last Name & Grade \\ + \midrule + John & Doe & $7.5$ \\ + Richard & Miles & $5$ \\ + \bottomrule + \end{tabular} +\end{table} + +Fusce eleifend porttitor arcu, id accumsan elit pharetra eget. Mauris luctus velit sit amet est sodales rhoncus. Donec cursus suscipit justo, sed tristique ipsum fermentum nec. Ut tortor ex, ullamcorper varius congue in, efficitur a tellus. Vivamus ut rutrum nisi. Phasellus sit amet enim efficitur, aliquam nulla id, lacinia mauris. Quisque viverra libero ac magna maximus efficitur. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vestibulum mollis eros in tellus fermentum, vitae tristique justo finibus. Sed quis vehicula nibh. Etiam nulla justo, pellentesque id sapien at, semper aliquam arcu. Integer at commodo arcu. Quisque dapibus ut lacus eget vulputate. + +%---------------------------------------------------------------------------------------- +% BIBLIOGRAPHY +%---------------------------------------------------------------------------------------- + +\bibliographystyle{unsrt} + +\bibliography{sample.bib} + +%---------------------------------------------------------------------------------------- + +\end{document} diff --git a/Essay/sample.bib b/Essay/sample.bib @@ -0,0 +1,19 @@ +@BOOK{Smith:2012qr, + title = {{B}ook {T}itle}, + publisher = {Publisher}, + author = {Smith, J.~M. and Jones, A.~B.}, + year = {2012}, + edition = {7th}, +} + +@ARTICLE{Smith:2013jd, + author = {Jones, A.~B. and Smith, J.~M.}, + title = {{A}rticle {T}itle}, + journal = {Journal title}, + year = {2013}, + volume = {13}, + pages = {123-456}, + number = {52}, + month = {March}, + publisher = {Publisher} +} +\ No newline at end of file diff --git a/Project/bibliography.bib b/Project/bibliography.bib @@ -0,0 +1,5 @@ +@book{KM-DK-1867, + title = {Das Kapital}, + author = {Karl Marx}, + year = {1867} +} +\ No newline at end of file diff --git a/Project/content/1-first-section.tex b/Project/content/1-first-section.tex @@ -0,0 +1,4 @@ +\section{First Section} + +Lorem ipsum dolor sit... +\parencite{KM-DK-1867} +\ No newline at end of file diff --git a/Project/main.tex b/Project/main.tex @@ -0,0 +1,20 @@ +\documentclass[a4paper, 12pt]{article} + +\usepackage{packages} % Custom packages +\usepackage{styles} % Custom styles + +\begin{document} + +\include{titlepage} + +\begin{center} + \tableofcontents +\end{center} +\newpage + +\input{content/1-first-section} + +\pagebreak +\printbibliography + +\end{document} +\ No newline at end of file diff --git a/Project/packages.sty b/Project/packages.sty @@ -0,0 +1,38 @@ +% ENCODING +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} + +% STYLES +\usepackage{fancyhdr} % Fancy headers and footers +\usepackage{csquotes} % Advanced inline display and quotes +\usepackage{xcolor} % Add color support +% \usepackage{siunitx} % Proper formatting of units +\usepackage[margin=1in]{geometry} % Better margin sizes +\usepackage[colorlinks=true, + linkcolor=black, + citecolor=blue, + urlcolor=blue]{hyperref} % Hyperlinks + +% FONTS +\usepackage{amsfonts, amsmath, amssymb} % Math fonts +\usepackage{lmodern} % Changes font to lmodern +\usepackage{microtype} % Just makes everything look better + +% LANGUAGE +\usepackage[english]{babel} % Language setting +% \usepackage{tipa} % Support for IPA + +% FIGURES +% \usepackage{booktabs} % Better tables +% \usepackage{tikz} % Drawing pictures +% \usepackage{algorithm} % Add algorithms +% \usepackage{pgfplots} % Plot graphs +\usepackage{graphicx} % Support for adding images + \graphicspath{ {./images/} } +% \usepackage{minted} % Code highlighting + % \usemintedstyle{emacs} + +% BIBLIOGRAPHY +\usepackage[style=authoryear-ibid, + backend=biber]{biblatex} % Referencing + \addbibresource{bibliography.bib} diff --git a/Project/styles.sty b/Project/styles.sty @@ -0,0 +1,9 @@ +\setlength{\headheight}{14.5pt} +\addtolength{\topmargin}{-2.5pt} + +% PAGE STYLE +\pagestyle{fancy} +\fancyhf{} +\rhead{\leftmark} + % \lhead{\rightmark} +\rfoot{Page \thepage} diff --git a/Project/titlepage.tex b/Project/titlepage.tex @@ -0,0 +1,18 @@ +\begin{titlepage} % Suppresses displaying the page number on the title page and the subsequent page counts as page 1 + + \raggedleft % Right align the title page + + \rule{1pt}{\textheight} % Vertical line + \hspace{0.05\textwidth} % Whitespace between the vertical line and title page text + \parbox[b]{0.75\textwidth}{ % Paragraph box for holding the title page text, adjust the width to move the title page left or right on the page + + {\Huge\bfseries Project \\[0.5\baselineskip] \LaTeX ~Template}\\[2\baselineskip] % Title + {\large\textit{A predictable subtitle}}\\[4\baselineskip] % Subtitle or further description + {\Large\textsc{author}} % Author name, lower case for consistent small caps + + \vspace{0.5\textheight} % Whitespace between the title block and the publisher + + {\noindent The Publisher~~}\\[\baselineskip] % Publisher and logo + } + +\end{titlepage} +\ No newline at end of file diff --git a/article.tex b/article.tex @@ -0,0 +1,32 @@ +\documentclass[a4paper, 12pt]{article} + +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{lmodern} % Changes font to lmodern +\usepackage{microtype} % Just makes everything look better +\usepackage[margin=1in]{geometry} % Better margin sizes +\usepackage[english]{babel} % Language setting + +% OPTIONAL +\usepackage{amsfonts, amsmath, amssymb} % Math fonts +% \usepackage{graphicx} % Graphics +% \graphicspath{ {./images/} } +% \usepackage{tikz} % Drawing pictures +% \usepackage{minted} % Code highlighting +% \usepackage[colorlinks=true, urlcolor=blue]{hyperref} % Hyperlinks +% \usepackage{minted} % Code highlighting +% \usemintedstyle{emacs} +% \usepackage{biblatex} % Bibliography +% \usepackage{booktabs} % Better tables + +\title{Article} +\author{Author} +\date{Date} + +\begin{document} + +\maketitle + +\section{First Section} + +\end{document} +\ No newline at end of file diff --git a/homework.tex b/homework.tex @@ -0,0 +1,39 @@ +\documentclass[a4paper, 12pt]{article} + +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{lmodern} % Changes font to lmodern +\usepackage{microtype} % Just makes everything look better +\usepackage[margin=1in]{geometry} % Better margin sizes +\usepackage[english]{babel} % Language setting +\usepackage{fullpage} + +% OPTIONAL +\usepackage{amsfonts, amsmath, amssymb} % Math fonts +% \usepackage{graphicx} % Graphics +% \graphicspath{ {./images/} } +% \usepackage{tikz} % Drawing pictures +% \usepackage{minted} % Code highlighting +% \usepackage[colorlinks=true, urlcolor=blue]{hyperref} % Hyperlinks +% \usepackage{minted} % Code highlighting +% \usemintedstyle{emacs} +% \usepackage{biblatex} % Bibliography +% \usepackage{booktabs} % Better tables + +\begin{document} + +\begin{center} + \hrule + \vspace{.4cm} + {\textbf { \large Finding the Equation of a Circle}} +\end{center} +{\textbf{Name:}\ Student Name \hspace{\fill} \textbf{Date:} 25 Januarie 2018 \\ +{ \textbf{Teacher:}} \ Mr/Mrs\hspace{\fill} \textbf{Class:} Mathematics \\ + \hrule } + +\begin{enumerate} +\item Solve for $x$ + +\end{enumerate} + +\end{document}