SHOW:
|
|
- or go back to the newest paste.
| 1 | \documentclass[a4paper,12pt,fleqn]{scrartcl}
| |
| 2 | ||
| 3 | %%------------------------------------------------------------------------------ | |
| 4 | % Various | |
| 5 | %%------------------------------------------------------------------------------ | |
| 6 | %\usepackage{fixltx2e} % Various fixes.
| |
| 7 | %\usepackage{xltxtra} % Not really necessary unless you need to use the \XeLaTeX{}.
| |
| 8 | %\usepackage{etoolbox} % Defines \newrobustcmd{} and other goodies.
| |
| 9 | %\usepackage{xspace} % Read the documentation, you may need it when you define new commands
| |
| 10 | %\usepackage{import} % sane imports. Much better than \input{} command.
| |
| 11 | ||
| 12 | %%------------------------------------------------------------------------------ | |
| 13 | % Geometry - Layout | |
| 14 | %%------------------------------------------------------------------------------ | |
| 15 | %\usepackage[a4paper,xetex]{geometry} % Customize page layout
| |
| 16 | %\usepackage{multicol} % Use multiple columns
| |
| 17 | %\usepacakge{pdflscape} % Pages in landscape mode
| |
| 18 | %\usepackage{parskip} % Use it when you want your paragraphs
| |
| 19 | % to be separated by an extra space. | |
| 20 | ||
| 21 | ||
| 22 | %%------------------------------------------------------------------------------ | |
| 23 | % Graphics - Colors | |
| 24 | %%------------------------------------------------------------------------------ | |
| 25 | %\usepackage{graphicx} % including figures
| |
| 26 | %\usepackage{xcolor} % More options with colors
| |
| 27 | ||
| 28 | %%------------------------------------------------------------------------------ | |
| 29 | % Languages | |
| 30 | %%------------------------------------------------------------------------------ | |
| 31 | %% Greek language hyphenation rules | |
| 32 | %\usepackage{xgreek}
| |
| 33 | %% Change hyphenation rules automatically when switching from greek to english glyphs. | |
| 34 | %\usepackage[Greek,Latin]{ucharclasses}
| |
| 35 | %\setTransitionsForGreek{\setlanguage{greek}}{\setlanguage{english}}
| |
| 36 | ||
| 37 | %%------------------------------------------------------------------------------ | |
| 38 | % Fonts | |
| 39 | %%------------------------------------------------------------------------------ | |
| 40 | %\usepackage{fontspec}
| |
| 41 | %\setmainfont[% | |
| 42 | %Kerning=On, | |
| 43 | %Mapping=tex-text, | |
| 44 | %UprightFont = Minion Pro, | |
| 45 | %ItalicFont = Minion Pro Italic, | |
| 46 | %SlantedFont = Minion Pro Italic, | |
| 47 | %BoldFont = Minion Pro Semibold, | |
| 48 | %BoldItalicFont = Minion Pro Semibold Italic, | |
| 49 | %BoldSlantedFont = Minion Pro Semibold Italic, | |
| 50 | %SmallCapsFont = Minion Pro, | |
| 51 | %]{Minion Pro}
| |
| 52 | %\setsansfont[% | |
| 53 | %Kerning=On, | |
| 54 | %Mapping=tex-text, | |
| 55 | %UprightFont = Myriad Pro, | |
| 56 | %ItalicFont = Myriad Pro Italic, | |
| 57 | %SlantedFont = Myriad Pro Italic, | |
| 58 | %BoldFont = Myriad Pro Semibold, | |
| 59 | %BoldItalicFont = Myriad Pro Semibold Italic, | |
| 60 | %BoldSlantedFont = Myriad Pro Semibold Italic, | |
| 61 | %SmallCapsFont = Myriad Pro, | |
| 62 | %]{Myriad Pro}
| |
| 63 | %\setmonofont[% | |
| 64 | %Kerning=On, | |
| 65 | %Mapping=tex-text, | |
| 66 | %]{Consolas}
| |
| 67 | %\usepackage{microtype} % advanced kerning rules
| |
| 68 | % Note: doesn't work fully with XeLaTeX | |
| 69 | ||
| 70 | %%------------------------------------------------------------------------------ | |
| 71 | % Math | |
| 72 | %%------------------------------------------------------------------------------ | |
| 73 | %\usepackage{amsmath}
| |
| 74 | %\usepackage[math-style=ISO]{unicode-math}
| |
| 75 | %\usepackage{mathtools}
| |
| 76 | %\newtagform{brackets}{[}{]}
| |
| 77 | %\usetagform{brackets}
| |
| 78 | %% Math fonts | |
| 79 | %\setmathfont{XITS Math}
| |
| 80 | %\setmathfont[range=\ell]{Latin Modern Math}
| |
| 81 | %% custom math commands | |
| 82 | %\newcommand{\abs}[1]{\ensuremath{\left|#1\right|}}
| |
| 83 | %\newcommand{\paren}[1]{\ensuremath{\left(#1\right)}}
| |
| 84 | %\newcommand{\brac}[1]{\ensuremath{\left[#1\right]}}
| |
| 85 | %\newcommand{\Brac}[1]{\ensuremath{\left\{#1\right\}}}
| |
| 86 | ||
| 87 | %%------------------------------------------------------------------------------ | |
| 88 | % Tables | |
| 89 | %%------------------------------------------------------------------------------ | |
| 90 | %\usepackage{longtable}
| |
| 91 | %\usepackage{booktabs}
| |
| 92 | %\usepackage{multirow}
| |
| 93 | %\usepackage{tabu}
| |
| 94 | %\usepackage{colortbl}
| |
| 95 | %\usepackage{siunitx}
| |
| 96 | %\sisetup{table-align-text-post = false,table-format = +1.2}
| |
| 97 | ||
| 98 | % threepartable allows to insert notes into a table. | |
| 99 | % threepartablex extends threeparttable to work with longtable. | |
| 100 | % They are not compatible with tabu! | |
| 101 | %\usepackage{threeparttable}
| |
| 102 | %\usepackage[referable]{threeparttablex}
| |
| 103 | ||
| 104 | % Patching the threeparttable package in order to work fine with tabu. | |
| 105 | % The patch must be applied before loading the caption package. | |
| 106 | % Look here : http://tex.stackexchange.com/questions/56504/threeparttablex-table-notes-for-tabu-tabulars-with-less-than-textwidth | |
| 107 | %\usepackage{xpatch}
| |
| 108 | %\makeatletter | |
| 109 | %\chardef\TPT@@@asteriskcatcode=\catcode`* | |
| 110 | %\catcode`*=11 | |
| 111 | %\xpatchcmd{\threeparttable}
| |
| 112 | % {\TPT@hookin{tabular}}
| |
| 113 | % {\TPT@hookin{tabular}\TPT@hookin{tabu}}
| |
| 114 | % {}{}
| |
| 115 | %\catcode`*=\TPT@@@asteriskcatcode | |
| 116 | %\makeatother | |
| 117 | ||
| 118 | %% custom commands | |
| 119 | %\newcommand{\mc}[1]{\multicolumn{1}{c}{#1}}
| |
| 120 | %\newcommand{\mr}[1]{\multirow{2}{*}{#1}}
| |
| 121 | ||
| 122 | %%------------------------------------------------------------------------------ | |
| 123 | % Lists | |
| 124 | %%------------------------------------------------------------------------------ | |
| 125 | % Defines new compact version of enumerate, itemize and description environments. | |
| 126 | % They are called respectively compactenum, compactitem, compactdesc | |
| 127 | %\usepackage{paralist} % Adds flexibility to the spacing of the standard environments:
| |
| 128 | %%------------------------------------------------------------------------------ | |
| 129 | % You can finetune the spacing of the new environments by changing the following lengths | |
| 130 | %\setlength{\pltopsep}{0pt} % Space between first item and preceding paragraph.
| |
| 131 | %\setlength{\plpartopsep}{0pt} % Extra space added to \topsep when environment starts a new paragraph (is called in vmode).
| |
| 132 | %\setlength{\plitemsep}{0pt} % Space between successive items.
| |
| 133 | %\setlength{\plparsep}{0pt} % Space between paragraphs within an item – the \parskip for this environment.
| |
| 134 | ||
| 135 | %%------------------------------------------------------------------------------ | |
| 136 | % Captions | |
| 137 | %%------------------------------------------------------------------------------ | |
| 138 | %\usepackage[% | |
| 139 | %margin=10pt, | |
| 140 | %font={small},
| |
| 141 | %labelfont=bf, | |
| 142 | %labelsep=endash] | |
| 143 | %{caption}
| |
| 144 | %\usepackage{subcaption}
| |
| 145 | ||
| 146 | %%------------------------------------------------------------------------------ | |
| 147 | % Hyperlinks | |
| 148 | %%------------------------------------------------------------------------------ | |
| 149 | %\usepackage[final]{hyperref}
| |
| 150 | %\usepackage{url}
| |
| 151 | %\hypersetup{
| |
| 152 | %bookmarks=true, % show bookmarks bar? | |
| 153 | %unicode=true, % non-Latin characters in Acrobat’s bookmarks | |
| 154 | %pdftoolbar=true, % show Acrobat’s toolbar? | |
| 155 | %pdfmenubar=true, % show Acrobat’s menu? | |
| 156 | %pdffitwindow=false, % window fit to page when opened | |
| 157 | %pdfstartview={FitH}, % fits the width of the page to the window
| |
| 158 | %pdftitle={title}, % title
| |
| 159 | %pdfauthor={FirstName SecondName}, % author
| |
| 160 | %pdfsubject={Subject}, % subject of the document
| |
| 161 | %pdfcreator={FirstName SecondName}, % creator of the document
| |
| 162 | %pdfproducer=FirstName SecondName}, % producer of the document | |
| 163 | %pdfkeywords={keyword1} {key2} {key3}, % list of keywords
| |
| 164 | %pdfnewwindow=true, % links in new window | |
| 165 | %colorlinks=true, % false: boxed links; true: colored links | |
| 166 | %linkcolor=red, % color of internal links | |
| 167 | %anchorcolor=blue, % color of anchors | |
| 168 | %citecolor=green, % color of links to bibliography | |
| 169 | %filecolor=magenta, % color of file links | |
| 170 | %urlcolor=cyan, % color of external links | |
| 171 | %pdfpagelayout=SinglePage | |
| 172 | %} | |
| 173 | ||
| 174 | %%------------------------------------------------------------------------------ | |
| 175 | % Headers - Footers | |
| 176 | %%------------------------------------------------------------------------------ | |
| 177 | %\usepackage{fancyhdr}
| |
| 178 | %\fancyhf{} % clear all header and footer fields
| |
| 179 | ||
| 180 | %%------------------------------------------------------------------------------ | |
| 181 | % Custom Commands | |
| 182 | %%------------------------------------------------------------------------------ | |
| 183 | %\newrobustcmd*{\tsup}[1]{\textsuperscript{#1}}
| |
| 184 | %\newrobustcmd*{\tsub}[1]{\textsubscript{#1}}
| |
| 185 | ||
| 186 | \begin{document}
| |
| 187 | ||
| 188 | \end{document} |