summaryrefslogtreecommitdiffstats
path: root/salitter.sty
blob: c5f1824817977d65e66d5437545c5f9d7aede377 (plain)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
% ---- layout - lulu a5
\newcommand{\afivelayout}[0]{
    \setstocksize{8.52in}{6.08in} 
    \settrimmedsize{7.27in}{4.53in}{*}
    \settrims{0.50in}{0.75in}
    \setlrmarginsandblock{0.125in}{0.125in}{*} 
    \setulmarginsandblock{50pt}{*}{*}
    \setheaderspaces{*}{*}{1.618}
    \checkandfixthelayout}

% ---- layout - us letter, on laser printer
\newcommand{\usletterlayout}[0]{
    \setstocksize{8.5in}{5in} 
    \settrimmedsize{8in}{4.5in}{*}
    \settrims{0.25in}{0.25in}
    \setlrmarginsandblock{0.125in}{0.125in}{*} 
    \setulmarginsandblock{50pt}{*}{*}
    \setheaderspaces{*}{*}{1.618}
    \checkandfixthelayout}

% ---- layout - us letter, on laser printer
\newcommand{\usletteredenlayout}[0]{
    \setstocksize{8.5in}{5.5in} 
    \settrimmedsize{8.5in}{5.5in}{*}
    \settrims{0pt}{0pt}
    \settypeblocksize{7in}{4in}{*}
    \setlrmarginsandblock{0.75in}{0.75in}{*} 
    % \setlrmargins{*}{0.5in}{*}
    \setulmarginsandblock{50pt}{*}{1}
    \setheadfoot{0.2in}{0.2in}
    \setheaderspaces{*}{0.1in}{*}
    \setmarginnotes{1em}{2em}{1em}
    \settypeoutlayoutunit{in}
    \checkandfixthelayout[lines]}

% ---- layout duct tape

% some section where we just want to not be indenting paragraphs for a while
% obviously shouldnt be nested
% \newlength{\savelength}
% \newenvironment{noindent}{
%     \setlength{\savelength}{parindent}
%     \setlength{\parindent}{0}}{
%    \setlength{\parindent}{savelength}}

% ---- image shorthand

% \graphicspath{ {img/} } % a default, which could/should be changed

\newcommand{\img}[1]{
    \begin{center}
    % \includegraphics[width=0.9\textwidth]{1.1.1.png}
    \includegraphics[scale=1]{#1}
\end{center}}

% ---- font (antiqua)

\newcommand{\antiquafont}[0]{
    \usepackage{baskervald}
    \usepackage[T1]{fontenc}}

% ---- metadata for a title page

% ---- semantic punctuation, etc
% quoting a word when speaking of a word itself
\newcommand{\word}[1]{
    \enquote{#1}}

% ---- odds-and-ends added for aurora

\newcommand{\textquotetranslate}[3]{\enquote{#1} ({#2} --- #3)}

% eg, \term with translation
\newcommand{\termtranslate}[2]{\emph{#1} ({#2})}

% eg, "quotedword" with translation
\newcommand{\wordtranslate}[2]{\enquote{#1} ({#2})}

% textquote with citation
\newcommand{\citedquote}[2]{\enquote{#1} ({#2})}

% inclusion of text in original language, w/ citation, w/o translation
\newcommand{\citedoriginal}[3]{(\emph{#1} --- {#2})}

% the original construct in the text is unclear to me
% \newcommand{\citedoriginal}[3]{({#1} --- \emph{#2} {#3})}

% ---- random odds-and-ends components
\newcommand{\nofolios}{
	\pagestyle{empty}}

% timeforms bits i may use elsewhere...
\newcommand{\speaker}[1]{
        \textsc{#1}}

\newenvironment{dialogue}{
    % we want opposite indentation for paragraphs: first line of each paragraph not indented, every line after is indented.
    \begin{hangparas}{2em}{1}
}{
    \end{hangparas}
}

% ---- random odds-and-ends components

\newcommand{\articletitle}[1]{\enquote{#1}}
\newcommand{\booktitle}[1]{\emph{#1}}
\newcommand{\journaltitle}[1]{\emph{#1}}
\newcommand{\conferencetitle}[1]{\textit{#1}}
\newcommand{\symposiumtitle}[1]{\enquote{#1}}
\newcommand{\ie}[0]{i.e.}
\newcommand{\opcit}[0]{\textit{op. cit.}}
\newcommand{\etseq}[0]{\textit{et. seq.}}
\newcommand{\etal}[0]{\textit{et. al.}}

\newcommand{\signoff}[1]{
    {\raggedleft #1 \par}}

\newcommand{\signoffnote}[1]{
	{\raggedleft \textit{#1} \par}}

\newcommand{\chapterauthor}[1]{
    {\large \itshape #1 \par }}

% ---- symbols etc

% \newcommand{\gl}{\guillemotleft}
% \newcommand{\gr}{\guillemotright}
\newcommand\tld{\char`~}

\newcommand\editornote[1]{\footnote{\sffamily #1 --- S.W.}}