-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.tex
83 lines (64 loc) · 2.01 KB
/
common.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage[french]{babel}
\setmainfont[Mapping=tex-text]{Gentium Book Basic}
\setsansfont{DejaVu Sans}
\usepackage[hidelinks,colorlinks]{hyperref}
\hypersetup{
linkcolor=black,
urlcolor=blue,
}
\usepackage{xcolor}
\definecolor{light-gray}{gray}{0.8}
\usepackage{array}
\renewcommand{\arraystretch}{2}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\usepackage{pbox}
%See http://tex.stackexchange.com/questions/109467/footnote-in-tabular-environment#109471
\usepackage{footnote}
\makesavenoteenv{tabular}
\usepackage{tikz}
%See http://tex.stackexchange.com/questions/63390/how-to-decrease-spacing-before-chapter-title#answer-63393
\usepackage{titlesec}
\titleformat{\chapter}[display]{\normalfont\huge\bfseries}{}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{-60pt}{20pt}
\titleformat{\section}[display]{\normalfont\Large\bfseries}{}{-10pt}{}
\newcommand{\mytextfield}[1]{
\TextField[bordercolor=,backgroundcolor=,width=#1]{}
}
\newcommand{\myfilledtextfield}[2]{
\TextField[bordercolor=,backgroundcolor=,width=#1,value=#2,readonly]{}
}
\newcommand{\mycheckbox}{
\mbox{\CheckBox[width=1.5em,bordercolor=]{}}
}
\newcommand{\mycheckedcheckbox}{
\mbox{\CheckBox[width=1.5em,bordercolor=,checked,readonly]{}}
}
\newcommand{\mynumberfield}[1]{
\TextField[bordercolor=,backgroundcolor=,align=1,width=#1]{}
}
\newcommand{\myfillednumberfield}[2]{
\TextField[bordercolor=,backgroundcolor=,align=1,width=#1,value=#2,readonly]{}
}
\newcommand{\cross}{
\textsf{☨}
}
\newcommand{\ankh}{
\textsf{☥}
}
\newcommand{\caduceus}{
\textsf{☤}
}
%See http://tex.stackexchange.com/questions/14696/full-page-image-as-title-page#answer-14701
%Need to be compiled twice to work properly
\newcommand{\fullbleed}[1]{
\clearpage
\thispagestyle{empty}
\begin{tikzpicture}[remember picture, overlay]
\node[inner sep=0pt] at (current page.center) {%
\includegraphics[width=\paperwidth]{#1}
};
\end{tikzpicture}
\clearpage
}