Advertisement
Guest User

Untitled

a guest
Sep 4th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 5.73 KB | None | 0 0
  1. % GENERAL MANUSCRIPT TEMPLATE
  2.  
  3.     % by Nicholas E. Reith
  4.  
  5.     % DATE: November 26th, 2014
  6.  
  7. %--------------------------------------------------------%
  8. %   PREAMBLE
  9. %--------------------------------------------------------%
  10.  
  11. % DOCUMENT CLASS
  12.     % Change "letterpaper" to "a4" if you use a4 paper size
  13.     \documentclass[a4,12pt, oneside]{article}
  14.  
  15. % TITLE SECTION
  16.  
  17. % blockquote
  18. \usepackage{etoolbox}
  19. \AtBeginEnvironment{quote}{\singlespacing\small}
  20.    
  21.  %Abstract
  22.     \usepackage{abstract} % Allows abstract customization
  23.     % Set the "Abstract" text to bold
  24.     \renewcommand{\abstractnamefont}{\normalfont\bfseries}
  25.     % Set the abstract itself to small italic text
  26.     \renewcommand{\abstracttextfont}{\normalfont\small\itshape}
  27.  
  28.  %Title
  29.     \usepackage{titlesec} % Allows customization of titles
  30. % Table
  31.     \usepackage{booktabs}
  32.    \usepackage{tabularx}
  33.    \usepackage{pbox}
  34.  %Date
  35.     \usepackage[ngerman]{babel}
  36.     \usepackage{datetime} % allows for including today's date
  37.     % These two lines creates a new date format ``Month day(th), year''
  38.     %\newdateformat{usvardate}{
  39.     %\monthname[\THEMONTH] \ordinal{DAY}, \THEYEAR}
  40.     \newdateformat{myformat}{
  41.    \THEDAY{ten }\monthname[\THEMONTH], \THEYEAR}
  42.  
  43. % MARGINS
  44.     %NOTE: All spaces in this template are in inches, because it is
  45.     % formatted for letterpaper (8.5 x 11 inch) paper. If you use a4
  46.     % paper, choose different sizes in millimeters or centimeters.
  47.     \usepackage[top=2.5cm, outer=2.5cm, inner=3cm, bottom=2.5cm]{geometry}
  48.     %\usepackage[top=1.5in, bottom=1.5in, left=1in, right=1in]{geometry}
  49.    
  50. % HEADERS & FOOTERS
  51.  %Footnotes
  52.     \usepackage[bottom]{footmisc} % Makes footnotes stick to bottom of the page
  53.    
  54.  %Headers from page 2 on
  55.     \usepackage{fancyhdr}
  56.    \pagestyle{fancy}
  57.    \setlength{\headheight}{15pt}
  58.    
  59.     %\fancyheadoffset{\textwidth}
  60.  
  61.  
  62.      
  63. % MATH SUPPORT
  64.     % The amssymb package provides various useful mathematical symbols
  65.     \usepackage{amssymb}
  66.     % The amsthm package provides extended theorem environments
  67.     \usepackage{amsthm}
  68.     % The newtxmath package provides additional math symbol support
  69.         % in Times New Roman symbols, etc.
  70.     \usepackage{newtxmath}
  71.  
  72. % FONTS
  73.     \usepackage{microtype} % Slightly tweak font spacing for aesthetics
  74.     \usepackage[utf8]{inputenc}
  75.    \usepackage[T1]{fontenc}
  76.    
  77.     % activate arial
  78.     % \usepackage{helvet}
  79.     % \renewcommand{\familydefault}{\sfdefault} %
  80.    
  81.     \usepackage{newtxtext} % Makes default font Adobe Times New Roman
  82.  
  83. % LANDSCAPE
  84.     \usepackage{pdflscape}
  85.  
  86. % LAUTSCHRIFT
  87.     \usepackage{tipa}
  88.  
  89. % LINES
  90.     % Spacing
  91.     \usepackage{setspace} % See \doublespacing command at the top of content.tex
  92.     % Numbering
  93.     \usepackage{lineno,xcolor}  % See \linenumbers at the top of content.tex
  94.  
  95. % COMMENTS
  96.     \usepackage[colorinlistoftodos]{todonotes} % allows margin comments
  97.     % See examples in content.tex, and here for manual:
  98.     % http://www.ctan.org/pkg/todonotes
  99.     \usepackage{soul} % allows for highlighting
  100.    
  101. % GRAPHICS
  102.     \usepackage{graphicx} % More advanced figure inclusion
  103.     \usepackage{float} % For specifying table/figure locations, i.e. [ht!]
  104.    
  105.     % The printlen command allows the user to print the exact text width or height.
  106.     % This is useful, when trying to create graphics (outside of LaTeX, of course)
  107.     % with the optimal dimensions. See here for usage: http://www.ctan.org/pkg/printlen
  108.     \usepackage{printlen}
  109.  
  110. % TABLES
  111.     \usepackage{longtable} % For long tables that span multiple pages
  112.     \newcommand{\sym}[1]{\rlap{#1}}% For symbols like *** in tables
  113.     \usepackage{tabularx} % Allows advanced table features
  114.     \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
  115.    \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
  116.    \newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}
  117.    \usepackage{relsize} % Allows precise adjustment of font size,
  118.         %useful for fitting tables to page width
  119.  
  120. % REFERENCES
  121.     \usepackage{hyperref} % For hyperlinks in the PDF
  122.     \usepackage{url}
  123.      
  124.     % BIBTEX    
  125.     \usepackage{csquotes}
  126.     %\usepackage[style=verbose, backend=biber]{biblatex}
  127.     \usepackage[style=verbose, bibstyle=authoryear, backend=biber, labeldate]{biblatex}
  128.     \usepackage{hyperref}
  129.  
  130.     \bibliography{biblio}
  131.    \addbibresource{references/biblio.bib}
  132.    
  133.     %\renewbibmacro*{cite:full}{%
  134.     %   \usebibmacro{cite:full:citepages}%
  135.     %       \printtext[bibhyperref]{\printtext[bibhypertarget]{%
  136.     %           \usedriver
  137.     %           {\DeclareNameAlias{sortname}{default}}
  138.     %           {\thefield{entrytype}}}%
  139.     %   \usebibmacro{shorthandintro}}}
  140.    
  141.     \renewbibmacro*{cite:full}{%
  142.       \usebibmacro{cite:full:citepages}%
  143.       \printtext[bibhyperref]{%
  144.         \printtext[bibhypertarget]{%
  145.           \usedriver
  146.             {\DeclareNameAlias{sortname}{default}}
  147.            {\thefield{entrytype}}}%
  148.         \usebibmacro{shorthandintro}}}
  149.  
  150.    \DeclareCiteCommand{\cite}
  151.      {\usebibmacro{prenote}}
  152.      {\usebibmacro{citeindex}%
  153.        \usebibmacro{cite:authoryear}}
  154.      {\multicitedelim}
  155.      {\usebibmacro{cite:postnote}}
  156.  
  157.    \DeclareCiteCommand{\parencite}[\mkbibparens]
  158.      {\usebibmacro{prenote}}
  159.      {\usebibmacro{citeindex}%
  160.        \usebibmacro{cite:authoryear}}
  161.      {\multicitedelim}
  162.      {\usebibmacro{cite:postnote}}
  163.  
  164.    \newbibmacro*{cite:labelyear+extrayear}{%
  165.       \iffieldundef{labelyear}
  166.        {}
  167.         {\printtext[bibhyperref]{%
  168.            \printfield{labelyear}%
  169.            \printfield{extrayear}}}}
  170.  
  171.    \renewbibmacro*{cite:authoryear}{%
  172.       \printnames{labelname}%
  173.       \setunit*{\nameyeardelim}%
  174.       \printtext[bibhyperlink]{%
  175.         \usebibmacro{cite:labelyear+extrayear}}}
  176.  
  177.    \renewbibmacro*{date}{\printdateextralabel}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement