feat: added latex templates for both chicago and ieee paper formats
All checks were successful
ci / nix-fmt (push) Successful in 3m42s
All checks were successful
ci / nix-fmt (push) Successful in 3m42s
This commit is contained in:
parent
9c2e18021f
commit
5538afc870
8 changed files with 7337 additions and 0 deletions
41
templates/latex-chicago/main.tex
Normal file
41
templates/latex-chicago/main.tex
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
%===============================================================================
|
||||
% PREAMBLE
|
||||
%===============================================================================
|
||||
\documentclass{turabian-researchpaper}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{csquotes, ellipsis}
|
||||
|
||||
\usepackage[pass, letterpaper]{geometry}
|
||||
|
||||
\usepackage[authordate,backend=biber,sorting=nty]{biblatex-chicago}
|
||||
\ExecuteBibliographyOptions[jurisdiction,legal,legislation]{skipbib=false}
|
||||
\addbibresource{works-cited.bib}
|
||||
|
||||
\usepackage{hyperref}
|
||||
|
||||
\title{}
|
||||
\subtitle{}
|
||||
\author{}
|
||||
\course{}
|
||||
\date{\today}
|
||||
|
||||
%===============================================================================
|
||||
% MAIN DOCUMENT
|
||||
%===============================================================================
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
|
||||
%===============================================================================
|
||||
% Main Text
|
||||
%===============================================================================
|
||||
|
||||
\section{Introduction}
|
||||
|
||||
%===============================================================================
|
||||
% Bibliography
|
||||
%===============================================================================
|
||||
\printbibliography
|
||||
|
||||
\end{document}
|
||||
29
templates/latex-chicago/references.bib
Normal file
29
templates/latex-chicago/references.bib
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
@jurisdiction{babym1988_in_re_baby_m,
|
||||
title = {In re Baby M.},
|
||||
journaltitle = {N.J.},
|
||||
volume = {109},
|
||||
pages = {396},
|
||||
date = {1988-02-03},
|
||||
location = {N.J. Sup. Ct.},
|
||||
note = {Traditional surrogacy case. 537 A.2d 1227}
|
||||
}
|
||||
|
||||
@jurisdiction{johnson1933_johnson_v_calvert,
|
||||
title = {Johnson v. Calvert},
|
||||
journaltitle = {Cal.},
|
||||
volume = {5},
|
||||
pages = {84},
|
||||
date = {1993-05-20},
|
||||
location = {Cal. Sup. Ct.},
|
||||
note = {Gestational surrogacy case. 851 P.2d 776}
|
||||
}
|
||||
|
||||
@video{cassavetes2009_mysisterskeeper,
|
||||
title = {My Sister's Keeper},
|
||||
editor = {Nick Cassavetes},
|
||||
editortype = {director},
|
||||
year = {2009},
|
||||
location = {Los Angeles, CA},
|
||||
publisher = {New Line Cinema},
|
||||
type = {Streaming on Hulu},
|
||||
}
|
||||
482
templates/latex-chicago/turabian-formatting.sty
Normal file
482
templates/latex-chicago/turabian-formatting.sty
Normal file
|
|
@ -0,0 +1,482 @@
|
|||
% Turabian Formatting for LaTeX
|
||||
%
|
||||
% Based on Kate L. Turabian's "A Manual for Writers of Research Papers, Theses,
|
||||
% and Dissertations," 9th edition.
|
||||
%
|
||||
% ==============================
|
||||
% Copyright 2013-2018 Omar Abdool
|
||||
%
|
||||
% This work may be distributed and/or modified under the conditions of the LaTeX
|
||||
% Project Public License (LPPL), either version 1.3 of this license or (at your
|
||||
% option) any later version.
|
||||
%
|
||||
% The latest version of this license is in:
|
||||
% http://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% LPPL Maintenance Status: maintained (by Omar Abdool)
|
||||
%
|
||||
% This work consists of the files: turabian-formatting.sty,
|
||||
% turabian-researchpaper.cls, turabian-thesis.cls, turabian-formatting-doc.tex,
|
||||
% and turabian-formatting-doc.pdf (in addition to the README file).
|
||||
%
|
||||
% ==============================
|
||||
%
|
||||
%
|
||||
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{turabian-formatting}[2018/08/01 Turabian Formatting]
|
||||
|
||||
|
||||
% Package options: flags and variables
|
||||
|
||||
\newif\if@optraggedright\@optraggedrightfalse
|
||||
|
||||
\newif\if@authordateformat\@authordateformatfalse
|
||||
|
||||
\newif\if@appendbibformat\@appendbibformattrue
|
||||
|
||||
\newif\if@endnotesformat\@endnotesformatfalse
|
||||
|
||||
|
||||
% Package options: handling
|
||||
|
||||
\DeclareOption{raggedright}{\@optraggedrighttrue}
|
||||
|
||||
\DeclareOption{authordate}{\@authordateformattrue}
|
||||
|
||||
\DeclareOption{noadjustbib}{\@appendbibformatfalse}
|
||||
|
||||
\DeclareOption{endnotes}{\@endnotesformattrue}
|
||||
|
||||
\ProcessOptions\relax
|
||||
|
||||
|
||||
\RequirePackage{etoolbox}
|
||||
|
||||
|
||||
% Margin size: 1 inch on all sides
|
||||
\setlength\textwidth{\dimexpr \paperwidth -2in \relax}
|
||||
\setlength\hoffset{\z@}
|
||||
|
||||
\setlength\textheight{\dimexpr \paperheight -2in \relax}
|
||||
\setlength\voffset{\z@}
|
||||
|
||||
\setlength\oddsidemargin{\z@}
|
||||
\setlength\evensidemargin{\z@}
|
||||
|
||||
% Header top and footer baseline: set to 0.5in from page edges
|
||||
\setlength\topmargin{-0.5in}
|
||||
\setlength\headheight{\dimexpr \f@size pt \relax}
|
||||
\setlength\headsep{\dimexpr 0.5in -\headheight \relax}
|
||||
|
||||
\setlength\footskip{0.5in}
|
||||
|
||||
% Text spacing is double spaced
|
||||
\RequirePackage{setspace}
|
||||
\setstretch{2}
|
||||
|
||||
|
||||
% Preserve normalsize and footnotesize single spacing baselineskip values
|
||||
|
||||
\newlength\tf@singlelineskip
|
||||
\newlength\tf@fnsinglelineskip
|
||||
|
||||
\ifcase \@ptsize
|
||||
\setlength\tf@singlelineskip{12pt}
|
||||
\setlength\tf@fnsinglelineskip{9.5pt}
|
||||
\or
|
||||
\setlength\tf@singlelineskip{13.6pt}
|
||||
\setlength\tf@fnsinglelineskip{11pt}
|
||||
\or
|
||||
\setlength\tf@singlelineskip{14.5pt}
|
||||
\setlength\tf@fnsinglelineskip{12pt}
|
||||
\fi
|
||||
|
||||
|
||||
% Paragraph indent
|
||||
\setlength\parindent{0.5in}
|
||||
|
||||
% Renew \raggedright to preserve paragraph indent and set \@optraggedright to true
|
||||
\def\raggedright{%
|
||||
\let\\\@centercr\@rightskip\@flushglue \rightskip\@rightskip
|
||||
\leftskip\z@skip
|
||||
\@optraggedrighttrue}
|
||||
|
||||
% Use \raggedright if raggedright option true
|
||||
\if@optraggedright \raggedright \fi
|
||||
|
||||
% Prevent widowed text with 2 line default
|
||||
\PassOptionsToPackage{defaultlines=2, all}{nowidow}
|
||||
\AtEndPreamble{%
|
||||
\@ifpackageloaded{nowidow}%
|
||||
{}%
|
||||
{\RequirePackage{nowidow}}}
|
||||
|
||||
|
||||
% Footnotes: layout and formatting
|
||||
|
||||
\PassOptionsToPackage{bottom, marginal}{footmisc}
|
||||
\if@endnotesformat
|
||||
\PassOptionsToPackage{perpage}{footmisc}
|
||||
\fi
|
||||
|
||||
\RequirePackage{footmisc}
|
||||
|
||||
\setlength\footnotemargin{\parindent}
|
||||
|
||||
% Footnotes: Chicago symbols used when needed
|
||||
\setfnsymbol{chicago}
|
||||
|
||||
% Footnotes: separation between footnotes based on text size
|
||||
\ifcase \@ptsize
|
||||
\setlength\footnotesep{16.65pt}
|
||||
\or
|
||||
\setlength\footnotesep{18.7pt}
|
||||
\or
|
||||
\setlength\footnotesep{20.4pt}
|
||||
\fi
|
||||
|
||||
\setlength{\skip\footins}{\footnotesep}
|
||||
|
||||
% Footnotes: readjust footnote rule size and placement
|
||||
\renewcommand{\footnoterule}{%
|
||||
\vspace*{-3pt}
|
||||
\hrule width 2in height 0.4pt
|
||||
\vspace*{-4pt}}
|
||||
|
||||
% Footnotes: make command to set footnote punctuation
|
||||
\newcommand{\tf@setfnpunct}[1]{\def\tf@thefnpunct{#1\,\,}}
|
||||
\tf@setfnpunct{.}
|
||||
|
||||
% Footnotes: renew command for typesetting footnotes
|
||||
\renewcommand{\@makefntext}[1]{%
|
||||
\if@optraggedright \raggedright \fi
|
||||
\setlength\parindent{\footnotemargin}%
|
||||
\setlength\tf@singlelineskip{\tf@fnsinglelineskip}%
|
||||
\@thefnmark\tf@thefnpunct#1}
|
||||
|
||||
|
||||
% Page style (headings): place page number in header, top right
|
||||
\def\ps@headings{%
|
||||
\let\@oddfoot\@empty
|
||||
\let\@evenfoot\@empty
|
||||
\def\@evenhead{\thepage\hfil\slshape\leftmark}
|
||||
\def\@oddhead{{\slshape\rightmark}\hfil\thepage}
|
||||
\let\@mkboth\@gobbletwo
|
||||
\let\markboth\@mkboth
|
||||
\let\chaptermark\@gobble
|
||||
\let\sectionmark\@gobble}
|
||||
|
||||
% Page style (myheadings): make same as headings page style
|
||||
\let\ps@myheadings\ps@headings
|
||||
|
||||
% Page style (headings): set default page style and page numbering
|
||||
\pagestyle{headings}
|
||||
\pagenumbering{arabic}
|
||||
|
||||
% Page style (empty): adjust if twoside option used
|
||||
\if@twoside
|
||||
\def\cleardoublepage{%
|
||||
\clearpage
|
||||
\ifodd \c@page \else
|
||||
\hbox{}
|
||||
\thispagestyle{empty}
|
||||
\newpage
|
||||
\fi}
|
||||
\fi
|
||||
|
||||
|
||||
% Set top section command name to "section" (default)
|
||||
\def\tf@topsecname{section}
|
||||
|
||||
% Set adjustment for baselineskip after \section and \section* headings
|
||||
\def\tf@adjaftersec{\dimexpr \baselineskip -\tf@singlelineskip -\p@ \relax}
|
||||
|
||||
% Headings formatting: \section, \subsection, and \subsubsection
|
||||
\setcounter{secnumdepth}{0}
|
||||
|
||||
\renewcommand{\section}{%
|
||||
\@startsection{section}{1}%
|
||||
{\z@}%
|
||||
{-\tf@singlelineskip}%
|
||||
{\tf@singlelineskip}%
|
||||
{\normalfont\bfseries\normalsize\singlespacing\centering}}
|
||||
|
||||
\renewcommand{\subsection}{%
|
||||
\@startsection{subsection}{2}%
|
||||
{\z@}%
|
||||
{-\tf@singlelineskip}%
|
||||
{\tf@singlelineskip}%
|
||||
{\normalfont\mdseries\normalsize\singlespacing\centering}}
|
||||
|
||||
\renewcommand{\subsubsection}{%
|
||||
\@startsection{subsubsection}{3}%
|
||||
{\z@}%
|
||||
{-\tf@singlelineskip}%
|
||||
{\tf@singlelineskip}%
|
||||
{\normalfont\bfseries\normalsize\singlespacing\raggedright}}
|
||||
|
||||
% Headings formatting: following paragraphs start with an indent
|
||||
\def\tf@afterindent{\@afterindenttrue}
|
||||
|
||||
|
||||
% Table of Contents: renew formatting
|
||||
|
||||
\def\tf@tocpagestyle{\@empty}
|
||||
|
||||
\renewcommand{\tableofcontents}{%
|
||||
\tf@tocpagestyle
|
||||
\expandafter\csname \tf@topsecname\endcsname*{\contentsname}%
|
||||
\@mkboth{\contentsname}{\contentsname}%
|
||||
\if@optraggedright
|
||||
\let\tf@tocrmarg\@tocrmarg
|
||||
\def\@tocrmarg{\tf@tocrmarg plus1fil}
|
||||
\fi
|
||||
{ \vspace{\dimexpr -3\tf@singlelineskip +1\baselineskip \relax}%
|
||||
\singlespacing
|
||||
\@starttoc{toc}}}%
|
||||
|
||||
|
||||
% List of Figures and List of Tables: adjust titles
|
||||
|
||||
\renewcommand{\listfigurename}{Figures}
|
||||
\renewcommand{\listtablename}{Tables}
|
||||
|
||||
\AtEndPreamble{
|
||||
\@ifpackageloaded{polyglosia}%
|
||||
{%
|
||||
\addto\captionsenglish{%
|
||||
\renewcommand{\listfigurename}{Figures}
|
||||
\renewcommand{\listtablename}{Tables}}%
|
||||
}{}
|
||||
\@ifpackageloaded{babel}%
|
||||
{%
|
||||
\addto\captionsenglish{%
|
||||
\renewcommand{\listfigurename}{Figures}
|
||||
\renewcommand{\listtablename}{Tables}}%
|
||||
}{}}
|
||||
|
||||
% List of Figures
|
||||
\renewcommand{\listoffigures}{%
|
||||
\expandafter\csname \tf@topsecname\endcsname*{\listfigurename}%
|
||||
\@mkboth{\listfigurename}{\listfigurename}%
|
||||
\addcontentsline{toc}{\tf@topsecname}{\listfigurename}%
|
||||
{ \vspace{\dimexpr -3\tf@singlelineskip +1\baselineskip \relax}%
|
||||
\singlespacing
|
||||
\@starttoc{lof}}}
|
||||
|
||||
% List of Tables
|
||||
\renewcommand{\listoftables}{%
|
||||
\expandafter\csname \tf@topsecname\endcsname*{\listtablename}%
|
||||
\@mkboth{\listtablename}{\listtablename}%
|
||||
\addcontentsline{toc}{\tf@topsecname}{\listtablename}%
|
||||
{ \vspace{\dimexpr -3\tf@singlelineskip +1\baselineskip \relax}%
|
||||
\singlespacing
|
||||
\@starttoc{lot}}}
|
||||
|
||||
% List of Illustrations
|
||||
\newcommand{\listillustrationname}{Illustrations}
|
||||
\def\tf@illustrsection{\normalfont\bfseries\normalsize\singlespacing\noindent}
|
||||
|
||||
\newcommand{\listofillustrations}{%
|
||||
\expandafter\csname \tf@topsecname\endcsname*{\listillustrationname}%
|
||||
\@mkboth{\listillustrationname}{\listillustrationname}%
|
||||
\addcontentsline{toc}{\tf@topsecname}{\listillustrationname}%
|
||||
{ \vspace{\dimexpr -3\tf@singlelineskip +1\baselineskip \relax}%
|
||||
\singlespacing
|
||||
{\tf@illustrsection Figures}\par\nopagebreak
|
||||
\@starttoc{lof}
|
||||
\vspace{\tf@singlelineskip}
|
||||
{\tf@illustrsection Tables}\par\nopagebreak
|
||||
\@starttoc{lot}}}
|
||||
|
||||
|
||||
% Figures and Tables: float positioning
|
||||
|
||||
\setlength\textfloatsep{%
|
||||
\dimexpr 2\tf@singlelineskip +\p@ \relax minus 1\tf@singlelineskip}
|
||||
\setlength\floatsep{%
|
||||
\dimexpr 1\tf@singlelineskip +\p@ \relax plus 1\tf@singlelineskip}
|
||||
\setlength\intextsep{%
|
||||
\dimexpr 1\tf@singlelineskip +\p@ \relax plus 1\tf@singlelineskip}
|
||||
|
||||
\def\fps@table{!htb}
|
||||
\def\fps@figure{!htb}
|
||||
|
||||
% Figures and Tables: caption formatting
|
||||
|
||||
\setlength\abovecaptionskip{\z@}
|
||||
\setlength\belowcaptionskip{\z@}
|
||||
|
||||
\long\def\@makecaption#1#2{%
|
||||
\vskip\abovecaptionskip
|
||||
\if@optraggedright \raggedright \fi
|
||||
\small#1. #2\par
|
||||
\vskip\belowcaptionskip}
|
||||
|
||||
|
||||
% Lists: enumerate and itemize formatting
|
||||
\setlength\leftmargini{1.5\parindent}
|
||||
\setlength\leftmargin{\leftmargini}
|
||||
\setlength\leftmarginii{\parindent}
|
||||
\setlength\leftmarginiii{\parindent}
|
||||
\setlength\leftmarginiv{\parindent}
|
||||
\setlength\labelsep{.65em}
|
||||
\setlength\labelwidth{\dimexpr \parindent -\labelsep \relax}
|
||||
|
||||
% Lists: formatting command for both enumerate and itemize
|
||||
\def\tf@listformat{%
|
||||
\setlength\topsep{\z@}
|
||||
\setlength\itemsep{\z@}
|
||||
\setlength\parsep{\z@}
|
||||
\setlength\listparindent{\parindent}}
|
||||
|
||||
% Lists (enumerate): format of enumerate list labels
|
||||
\renewcommand{\labelenumi}{\arabic{enumi}.}
|
||||
\renewcommand{\labelenumii}{\alph{enumii})}
|
||||
\renewcommand{\labelenumiii}{(\arabic{enumiii})}
|
||||
\renewcommand{\labelenumiv}{(\alph{enumiv})}
|
||||
|
||||
% Lists (enumerate): redefine enumerate to include formatting command hook
|
||||
\def\tf@enumerateformat{\tf@listformat}
|
||||
\def\enumerate{%
|
||||
\ifnum \@enumdepth >\thr@@\@toodeep \else
|
||||
\advance\@enumdepth\@ne
|
||||
\edef\@enumctr{enum\romannumeral\the\@enumdepth}%
|
||||
\expandafter
|
||||
\list
|
||||
\csname label\@enumctr\endcsname
|
||||
{\usecounter\@enumctr%
|
||||
\def\makelabel##1{\hss\llap{##1}}%
|
||||
\tf@enumerateformat}%
|
||||
\fi}
|
||||
|
||||
% Lists (itemize): redefine itemize to include formatting command hook
|
||||
\def\tf@itemizeformat{\tf@listformat}
|
||||
\def\itemize{%
|
||||
\ifnum \@itemdepth >\thr@@\@toodeep \else
|
||||
\advance\@itemdepth\@ne
|
||||
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
|
||||
\expandafter
|
||||
\list
|
||||
\csname\@itemitem\endcsname
|
||||
{\def\makelabel##1{\hss\llap{##1}}%
|
||||
\tf@itemizeformat}%
|
||||
\fi}
|
||||
|
||||
|
||||
% Block quotation: formatting
|
||||
\renewenvironment{quotation}
|
||||
{%
|
||||
\list{}{%
|
||||
\setlength\listparindent{\parindent}
|
||||
\setlength\itemindent{\listparindent}
|
||||
\setlength\leftmargin{\parindent}
|
||||
% Adjust right margin based on raggedright option
|
||||
\if@optraggedright
|
||||
\setlength\rightmargin{\z@}
|
||||
\else
|
||||
\setlength\rightmargin{\leftmargin}
|
||||
\fi
|
||||
\setlength\parsep{\z@}
|
||||
\setlength\topsep{\dimexpr 2\tf@singlelineskip -\baselineskip \relax}}%
|
||||
\singlespacing%
|
||||
\item\relax%
|
||||
}
|
||||
{\endlist}
|
||||
\def\quote{\quotation}
|
||||
|
||||
|
||||
% thebibliography environment: formatting (adjust \@openbib@code hook default)
|
||||
|
||||
\setlength\bibindent{\parindent}
|
||||
|
||||
\renewcommand\@openbib@code{%
|
||||
\singlespacing
|
||||
\setlength\leftmargin{\bibindent}
|
||||
\setlength\itemindent{\dimexpr -\bibindent +\labelsep +\labelwidth \relax}
|
||||
\setlength\itemsep{\tf@singlelineskip}
|
||||
\setlength\parsep{\z@}}
|
||||
|
||||
|
||||
% biblatex-chicago: set formatting defaults and pass options
|
||||
\PassOptionsToPackage%
|
||||
{isbn=false, autolang=other, footmarkoff, backend=biber}%
|
||||
{biblatex-chicago}
|
||||
\if@authordateformat
|
||||
\PassOptionsToPackage{authordate}{biblatex-chicago}
|
||||
\fi
|
||||
|
||||
% biblatex-chicago: adjustments to \printbibliography formatting
|
||||
\if@appendbibformat
|
||||
\AtEndPreamble{%
|
||||
\@ifpackageloaded{biblatex}%
|
||||
{%
|
||||
\if@authordateformat
|
||||
\DefineBibliographyStrings{english}{%
|
||||
bibliography = {References}}
|
||||
\else
|
||||
\DefineBibliographyStrings{english}{%
|
||||
references = {Bibliography}}
|
||||
\fi
|
||||
\renewcommand{\bibsetup}{%
|
||||
\addcontentsline{toc}{\tf@topsecname}{\bibname}
|
||||
\vspace{\dimexpr -2\tf@singlelineskip +1\baselineskip \relax}%
|
||||
\singlespacing%
|
||||
\def\tf@adjaftersec{\dimexpr \tf@singlelineskip -\p@ \relax}}
|
||||
\renewcommand{\bibitemsep}{1\baselineskip}
|
||||
\renewcommand{\bibhang}{0.5in}
|
||||
}{}}
|
||||
\fi
|
||||
|
||||
|
||||
% Endnotes: support and formatting
|
||||
|
||||
\if@endnotesformat
|
||||
|
||||
\RequirePackage{endnotes, xparse}
|
||||
|
||||
% Changes footnote marker type and formatting
|
||||
\tf@setfnpunct{}
|
||||
\renewcommand*{\thefootnote}{\fnsymbol{footnote}}
|
||||
|
||||
\PassOptionsToPackage{notetype=endonly}{biblatex-chicago}
|
||||
|
||||
\AtEndPreamble{%
|
||||
% Make endnotes use of "_" not a special character when in text mode
|
||||
\appto{\enoteheading}{%
|
||||
\catcode`_=12
|
||||
\begingroup\lccode`~=`_
|
||||
\lowercase{\endgroup\let~}\sb
|
||||
\mathcode`_="8000}
|
||||
|
||||
% Create \jobname.ent if not already defined to avoid missing file error
|
||||
\preto{\theendnotes}{%
|
||||
\IfFileExists{./\jobname.ent}%
|
||||
{}%
|
||||
{%
|
||||
\immediate\openout\@enotes=\jobname.ent\relax
|
||||
\immediate\write\@enotes{}%
|
||||
}}}
|
||||
|
||||
% Set default endnotes formatting
|
||||
\renewcommand{\enotesize}{\normalsize}
|
||||
\renewcommand{\enoteformat}{%
|
||||
\if@optraggedright \raggedright \fi
|
||||
\setlength\parindent{\footnotemargin}
|
||||
\vspace{\tf@singlelineskip}
|
||||
\theenmark.\,\,}
|
||||
|
||||
\else
|
||||
|
||||
% Define \theendnotes if endnotes package not loaded
|
||||
\@ifpackageloaded{endnotes}%
|
||||
{}%
|
||||
{\def\theendnotes{\@empty}}
|
||||
|
||||
\fi
|
||||
|
||||
|
||||
390
templates/latex-chicago/turabian-researchpaper.cls
Normal file
390
templates/latex-chicago/turabian-researchpaper.cls
Normal file
|
|
@ -0,0 +1,390 @@
|
|||
% Turabian Formatting for LaTeX
|
||||
%
|
||||
% Based on Kate L. Turabian's "A Manual for Writers of Research Papers, Theses,
|
||||
% and Dissertations," 9th edition.
|
||||
%
|
||||
% ==============================
|
||||
% Copyright 2013-2018 Omar Abdool
|
||||
%
|
||||
% This work may be distributed and/or modified under the conditions of the LaTeX
|
||||
% Project Public License (LPPL), either version 1.3 of this license or (at your
|
||||
% option) any later version.
|
||||
%
|
||||
% The latest version of this license is in:
|
||||
% http://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% LPPL Maintenance Status: maintained (by Omar Abdool)
|
||||
%
|
||||
% This work consists of the files: turabian-formatting.sty,
|
||||
% turabian-researchpaper.cls, turabian-thesis.cls, turabian-formatting-doc.tex,
|
||||
% and turabian-formatting-doc.pdf (in addition to the README file).
|
||||
%
|
||||
% ==============================
|
||||
%
|
||||
%
|
||||
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{turabian-researchpaper}[2018/08/01 Turabian Research Paper]
|
||||
|
||||
|
||||
% Default point size
|
||||
\def\@@ptsize{12pt}
|
||||
|
||||
|
||||
% Document class options: handling
|
||||
|
||||
\DeclareOption{raggedright}{%
|
||||
\PassOptionsToPackage{\CurrentOption}{turabian-formatting}}
|
||||
|
||||
\DeclareOption{authordate}{%
|
||||
\PassOptionsToPackage{\CurrentOption}{turabian-formatting}}
|
||||
|
||||
\DeclareOption{noadjustbib}{%
|
||||
\PassOptionsToPackage{\CurrentOption}{turabian-formatting}}
|
||||
|
||||
\DeclareOption{endnotes}{%
|
||||
\PassOptionsToPackage{\CurrentOption}{turabian-formatting}}
|
||||
|
||||
\DeclareOption{twocolumn}{%
|
||||
\ClassWarningNoLine{turabian-researchpaper}{The '\CurrentOption' option is not supported}
|
||||
\OptionNotUsed}
|
||||
|
||||
\DeclareOption{10pt}{\def\@@ptsize{10pt}}
|
||||
|
||||
\DeclareOption{11pt}{\def\@@ptsize{11pt}}
|
||||
|
||||
\DeclareOption{12pt}{\def\@@ptsize{12pt}}
|
||||
|
||||
\DeclareOption{emptymargins}{%
|
||||
\ClassWarningNoLine{turabian-researchpaper}{The '\CurrentOption' option is no longer available}
|
||||
\OptionNotUsed}
|
||||
|
||||
\DeclareOption{endnotesonly}{%
|
||||
\ClassWarningNoLine{turabian-researchpaper}{The '\CurrentOption' option has been deprecated. Consider using the 'endnotes' option instead}
|
||||
\OptionNotUsed}
|
||||
|
||||
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
|
||||
|
||||
\ProcessOptions\relax
|
||||
|
||||
|
||||
% Load "article" document class with options
|
||||
\LoadClass[titlepage,oneside,onecolumn,\@@ptsize]{article}
|
||||
|
||||
|
||||
% Load turabian-formatting package
|
||||
\RequirePackage{turabian-formatting}
|
||||
|
||||
|
||||
% Part: formatting
|
||||
\def\tf@partformat{\normalfont\bfseries\singlespacing\centering}
|
||||
|
||||
\def\@part[#1]#2{%
|
||||
\ifnum \c@secnumdepth >-2\relax
|
||||
\refstepcounter{part}%
|
||||
\addcontentsline{toc}{part}%
|
||||
{\protect{\partname\space\thepart}}%
|
||||
\else
|
||||
\addcontentsline{toc}{part}{#1}%
|
||||
\fi
|
||||
\markboth{}{}%
|
||||
{ \tf@partformat
|
||||
\interlinepenalty \@M
|
||||
\ifnum \c@secnumdepth >-2\relax
|
||||
\partname\nobreakspace\thepart
|
||||
\par\nobreak
|
||||
\vspace*{1\baselineskip}%
|
||||
\fi
|
||||
\ifstrempty{#2}%
|
||||
{}%
|
||||
{#2\par\nobreak}}%
|
||||
\vspace{\dimexpr 3\tf@singlelineskip -\baselineskip \relax}}
|
||||
|
||||
\def\@spart#1{%
|
||||
{ \tf@partformat
|
||||
\interlinepenalty \@M
|
||||
#1\par\nobreak}%
|
||||
\vspace{\dimexpr 3\tf@singlelineskip -\baselineskip \relax}}
|
||||
|
||||
|
||||
% Sections: command to disable differentiate and reformat \section*
|
||||
\gdef\noadjustssect{\@adjustssectionfalse}
|
||||
|
||||
% Sections: \section* adjustment to space after heading
|
||||
\newif\if@adjustssection\@adjustssectiontrue
|
||||
\newlength\tf@ssect@afterskip
|
||||
\setlength\tf@ssect@afterskip{1\p@}
|
||||
|
||||
% Sections: adjustment to space after \section heading
|
||||
\newif\if@tf@adjustsection\@tf@adjustsectionfalse
|
||||
\newlength\tf@sect@afterskip
|
||||
\setlength\tf@sect@afterskip{1\p@}
|
||||
|
||||
% Sections: redefine \@startsection to differentiate starred version
|
||||
\def\@startsection#1#2#3#4#5#6{%
|
||||
\if@noskipsec \leavevmode \fi
|
||||
\par
|
||||
\@tempskipa #4\relax
|
||||
\@afterindenttrue
|
||||
\ifdim \@tempskipa <\z@
|
||||
\@tempskipa -\@tempskipa \tf@afterindent
|
||||
\fi
|
||||
\if@nobreak \everypar{} \else
|
||||
\addpenalty\@secpenalty\addvspace\@tempskipa
|
||||
\fi
|
||||
\setlength\tf@ssect@afterskip{\dimexpr #5 -\tf@adjaftersec \relax}
|
||||
\if@adjustssection
|
||||
\ifstrequal{#1}{section}%
|
||||
{\setlength\tf@ssect@afterskip{%
|
||||
\dimexpr 2\tf@singlelineskip -\tf@adjaftersec \relax}}%
|
||||
{}
|
||||
\fi
|
||||
\setlength\tf@sect@afterskip{\dimexpr #5 -\tf@adjaftersec \relax}
|
||||
\if@tf@adjustsection
|
||||
\ifstrequal{#1}{section}%
|
||||
{\setlength\tf@sect@afterskip{%
|
||||
\dimexpr 2\tf@singlelineskip -\tf@adjaftersec \relax}}%
|
||||
{}
|
||||
\fi
|
||||
\@ifstar
|
||||
{\@ssect{#3}{#4}{\tf@ssect@afterskip}{#6}}%
|
||||
{\@dblarg{\@sect{#1}{#2}{#3}{#4}{\tf@sect@afterskip}{#6}}}}
|
||||
|
||||
% Sections: formatting between \@svsec and heading
|
||||
\protected@edef\tf@secsep#1#2{\@empty}
|
||||
|
||||
% Sections: formatting of TOC \addcontentsline
|
||||
\def\tf@tocline#1{\protect{\csname the#1\endcsname\quad}}
|
||||
|
||||
% Sections: redefine \@sect to support optional two-line formatting
|
||||
\def\@sect#1#2#3#4#5#6[#7]#8{%
|
||||
\ifnum #2>\c@secnumdepth
|
||||
\let\@svsec\@empty
|
||||
\else
|
||||
\refstepcounter{#1}%
|
||||
\protected@edef\@svsec{\@seccntformat{#1}\relax}%
|
||||
\fi
|
||||
\@tempskipa #5\relax
|
||||
\ifdim \@tempskipa>\z@
|
||||
\begingroup
|
||||
#6{%
|
||||
\@hangfrom{\hskip #3\relax\@svsec}%
|
||||
\interlinepenalty \@M \tf@secsep{#1}{#8}#8\@@par}%
|
||||
\endgroup
|
||||
\csname #1mark\endcsname{#7}%
|
||||
\addcontentsline{toc}{#1}{%
|
||||
\ifnum #2>\c@secnumdepth \else
|
||||
\tf@tocline{#1}%
|
||||
\fi
|
||||
#7}%
|
||||
\else
|
||||
\def\@svsechd{%
|
||||
#6{\hskip #3\relax\@svsec #8}%
|
||||
\csname #1mark\endcsname{#7}%
|
||||
\addcontentsline{toc}{#1}{%
|
||||
\ifnum #2>\c@secnumdepth \else
|
||||
\tf@tocline{#1}%
|
||||
\fi
|
||||
#7}}%
|
||||
\fi
|
||||
\@xsect{#5}}
|
||||
|
||||
|
||||
% Title page: commands for use with \maketitle
|
||||
\newcommand{\subtitle}[1]{\gdef\tf@subtitle{#1}}
|
||||
\subtitle{}
|
||||
|
||||
\newcommand{\tf@subtitlesep}{\ifdefempty{\tf@subtitle}{}{:}}
|
||||
|
||||
\newcommand{\submissioninfo}[1]{\gdef\tf@submissioninfo{#1}}
|
||||
\submissioninfo{}
|
||||
|
||||
\newcommand{\course}[1]{\gdef\tf@course{#1}}
|
||||
\course{}
|
||||
|
||||
% Title page: command for emptying/completing \maketitle
|
||||
\newcommand{\tf@emptymaketitle}{%
|
||||
\global\let\thanks\relax
|
||||
\global\let\maketitle\relax
|
||||
|
||||
\global\let\@thanks\@empty
|
||||
\global\let\@author\@empty
|
||||
\global\let\@date\@empty
|
||||
\global\let\@title\@empty
|
||||
\global\let\tf@subtitle\@empty
|
||||
\global\let\tf@submissioninfo\@empty
|
||||
\global\let\tf@course\@empty
|
||||
|
||||
\global\let\title\relax
|
||||
\global\let\author\relax
|
||||
\global\let\date\relax
|
||||
\global\let\subtitle\relax
|
||||
\global\let\submissioninfo\relax
|
||||
\global\let\course\relax}
|
||||
|
||||
% Title page: renew \maketitle command research paper
|
||||
\if@titlepage
|
||||
% Formatting for titlepage option
|
||||
\renewcommand{\maketitle}{%
|
||||
\begin{titlepage}%
|
||||
\tf@setfnpunct{}
|
||||
\renewcommand*{\thefootnote}{\fnsymbol{footnote}}
|
||||
\let\footnoterule\relax
|
||||
\normalfont\normalsize\centering\singlespacing
|
||||
\parskip=1\baselineskip
|
||||
\vspace*{-2\baselineskip}
|
||||
\vspace*{0.333\paperheight}
|
||||
\vspace*{-1in}
|
||||
{ \bfseries\@title\tf@subtitlesep\par%
|
||||
\tf@subtitle\par}%
|
||||
\vspace*{2.35in}
|
||||
\@author\@thanks\par
|
||||
\tf@course\par
|
||||
\tf@submissioninfo\par
|
||||
\@date\par
|
||||
\parskip=\z@
|
||||
\end{titlepage}%
|
||||
% if not endnotes, reset footnote counter
|
||||
\if@endnotesformat \else \setcounter{footnote}{0} \fi
|
||||
\tf@emptymaketitle
|
||||
\cleardoublepage}
|
||||
\else
|
||||
% Formatting for notitlepage option
|
||||
\renewcommand{\maketitle}{%
|
||||
\thispagestyle{plain}
|
||||
{ \renewcommand*{\thefootnote}{\fnsymbol{footnote}}
|
||||
\normalfont\normalsize\centering\singlespacing
|
||||
\parskip=1\baselineskip
|
||||
\vspace*{0.5in}
|
||||
\vspace*{-1.5\baselineskip}
|
||||
{ \bfseries\@title\tf@subtitlesep\par%
|
||||
\tf@subtitle\par}%
|
||||
\vspace*{1\baselineskip}
|
||||
\@author\@thanks\par
|
||||
\tf@course\par
|
||||
\tf@submissioninfo\par
|
||||
\@date\par
|
||||
\vspace*{0.5in}
|
||||
\vspace*{-1\baselineskip}}
|
||||
% if not endnotes, reset footnote counter
|
||||
\if@endnotesformat \else \setcounter{footnote}{0} \fi
|
||||
\tf@emptymaketitle}
|
||||
\fi
|
||||
|
||||
|
||||
% Table of Contents, List of Figures, and List of Tables: item number alignment
|
||||
%\def\numberline#1{\hb@xt@\@tempdima{\hfil #1\hspace{1em}}}
|
||||
|
||||
\def\@tocrmarg{0.75in}
|
||||
\def\@pnumwidth{3.5ex}
|
||||
|
||||
|
||||
% Table of Contents: formatting
|
||||
\setcounter{tocdepth}{1}
|
||||
|
||||
\renewcommand*{\l@part}[2]{%
|
||||
\ifnum \c@tocdepth >-2\relax
|
||||
\addpenalty{-\@highpenalty}%
|
||||
\addvspace{1\baselineskip}%
|
||||
\setlength\@tempdima{0.5in}%
|
||||
\vskip \tf@singlelineskip
|
||||
{ \parindent \z@
|
||||
\rightskip \z@
|
||||
\parfillskip -\@rightskip
|
||||
\leavevmode
|
||||
\advance\leftskip\@tempdima
|
||||
\hskip -\leftskip
|
||||
\bfseries #1\nobreak\hfil \nobreak\par}
|
||||
\fi}
|
||||
|
||||
\renewcommand*{\l@section}[2]{%
|
||||
\ifnum \c@tocdepth >\z@
|
||||
\addpenalty\@secpenalty
|
||||
\setlength\@tempdima{\z@}%
|
||||
\vskip \tf@singlelineskip
|
||||
{ \parindent \z@
|
||||
\rightskip \@tocrmarg
|
||||
\parfillskip -\rightskip
|
||||
\leavevmode
|
||||
\advance\leftskip\@tempdima
|
||||
\hskip -\leftskip
|
||||
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par}
|
||||
\fi}
|
||||
|
||||
\renewcommand*{\l@subsection}{%
|
||||
\ifnum \c@tocdepth >1 \vskip \tf@singlelineskip \fi
|
||||
\@dottedtocline{2}{0.5in}{\z@}}
|
||||
|
||||
\renewcommand*{\l@subsubsection}{%
|
||||
\ifnum \c@tocdepth >2 \vskip \tf@singlelineskip \fi
|
||||
\@dottedtocline{3}{1.0in}{\z@}}
|
||||
|
||||
|
||||
% List of Figures: formatting
|
||||
\renewcommand*\l@figure{
|
||||
\vskip \tf@singlelineskip
|
||||
\@dottedtocline{1}{1em}{0.5in}}
|
||||
|
||||
|
||||
% List of Tables: formatting
|
||||
\def\l@table{\l@figure}
|
||||
|
||||
|
||||
% Abstract: formatting
|
||||
\renewenvironment{abstract}%
|
||||
{%
|
||||
\clearpage
|
||||
\section*{\abstractname}
|
||||
}%
|
||||
{\clearpage}
|
||||
|
||||
|
||||
% Appendixes: adjust formatting of section headings
|
||||
\def\tf@appendixsecfrmt{%
|
||||
\DeclareRobustCommand{\@seccntformat}[1]{%
|
||||
\ifstrequal{##1}{section}%
|
||||
{\appendixname\space \csname the##1\endcsname}%
|
||||
{\csname the##1\endcsname\quad}}
|
||||
\DeclareRobustCommand{\tf@secsep}[2]{%
|
||||
\ifstrequal{##1}{section}%
|
||||
{\ifstrempty{##2}{}{\par\nobreak}}%
|
||||
{\@empty}}
|
||||
\def\tf@tocline##1{\appendixname\space \csname the##1\endcsname.\quad}
|
||||
\@tf@adjustsectiontrue}
|
||||
|
||||
% Appendixes: make environment
|
||||
\newenvironment{appendixes}%
|
||||
{%
|
||||
\setcounter{secnumdepth}{1}
|
||||
\tf@appendixsecfrmt
|
||||
\setcounter{section}{0}%
|
||||
\setcounter{subsection}{0}%
|
||||
\gdef\thesection{\@Alph\c@section}%
|
||||
}%
|
||||
{%
|
||||
\setcounter{secnumdepth}{0}%
|
||||
\setcounter{section}{0}%
|
||||
\setcounter{subsection}{0}%
|
||||
\gdef\thesection{\@arabic\c@section}%
|
||||
}%
|
||||
|
||||
% Appendixes: remove \appendix command
|
||||
\def\appendix{\@empty}
|
||||
|
||||
|
||||
% Endnotes: Notes heading formatted as \section*
|
||||
\if@endnotesformat
|
||||
\renewcommand{\enoteheading}{%
|
||||
\section*{\notesname}%
|
||||
\markboth{\notesname}{\notesname}%
|
||||
\addcontentsline{toc}{section}{\notesname}%
|
||||
\vspace{\dimexpr -4\tf@singlelineskip +1\baselineskip \relax}
|
||||
\singlespacing\mbox{}%
|
||||
\def\tf@adjaftersec{\dimexpr \tf@singlelineskip -\p@ \relax}
|
||||
\let\tf@afterindent\@afterindenttrue}%
|
||||
\fi
|
||||
|
||||
|
||||
6347
templates/latex-ieee/IEEEtran.cls
Normal file
6347
templates/latex-ieee/IEEEtran.cls
Normal file
File diff suppressed because it is too large
Load diff
45
templates/latex-ieee/main.tex
Normal file
45
templates/latex-ieee/main.tex
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
%===============================================================================
|
||||
% PREAMBLE
|
||||
%===============================================================================
|
||||
\documentclass[conference]{IEEEtran}
|
||||
\IEEEoverridecommandlockouts
|
||||
|
||||
\usepackage{amsmath,amssymb,amsfonts}
|
||||
\usepackage{algorithm}
|
||||
\usepackage{algorithmic}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{textcomp}
|
||||
\usepackage{xcolor}
|
||||
|
||||
\usepackage[backend=biber,style=ieee]{biblatex}
|
||||
\addbibresource{references.bib}
|
||||
|
||||
%===============================================================================
|
||||
% MAIN DOCUMENT
|
||||
%===============================================================================
|
||||
\begin{document}
|
||||
|
||||
\title{Placeholder Title}
|
||||
|
||||
\author{
|
||||
\IEEEauthorblockN{First Last}
|
||||
\IEEEauthorblockA{Department \\
|
||||
\textit{Organization} \\
|
||||
\textit{City, State, Country} \\
|
||||
Email}
|
||||
}
|
||||
|
||||
\maketitle
|
||||
|
||||
%===============================================================================
|
||||
% Main Text
|
||||
%===============================================================================
|
||||
|
||||
\section{Introduction}
|
||||
|
||||
%===============================================================================
|
||||
% Bibliography
|
||||
%===============================================================================
|
||||
\printbibliography
|
||||
|
||||
\end{document}
|
||||
0
templates/latex-ieee/references.bib
Normal file
0
templates/latex-ieee/references.bib
Normal file
Loading…
Add table
Add a link
Reference in a new issue