-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample15.tex
198 lines (196 loc) · 6.06 KB
/
example15.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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
\documentclass[twoside,twocolumn]{article}
\usepackage[utf8]{inputenc}
\usepackage{ifthen}
\usepackage{boxedminipage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\newcommand{\mymarks}{
\ifthenelse{\equal{\leftmark}{\rightmark}}
{\rightmark} % if equal
{\rightmark--\leftmark}} % if not equal
\fancyhead[LE,RO]{\mymarks}
\fancyhead[LO,RE]{\thepage}
\renewcommand{\sectionmark}[1]{}
\newcommand\entry[2]{\makebox[3cm][l]{#1} -- #2\markboth{#1}{#1}\\}
\setlength{\textheight}{10cm}
\begin{document}
\section{Introduction}
\thispagestyle{plain}
\begin{boxedminipage}{\textwidth}
This is example 15 in the fancyhdr documentation.\\
This example creates dictionary-style headers. Each dictionary entry uses \verb|\markboth{#1}{#1}| and the headers use \verb|\rightmark| for the first entry defined on
the page and \verb|\leftmark| for the last one.
\begin{verbatim}
\newcommand{\mymarks}{
\ifthenelse{\equal{\leftmark}{\rightmark}}
{\rightmark} % if equal
{\rightmark--\leftmark}} % if not equal
\fancyhead[LE,RO]{\mymarks}
\fancyhead[LO,RE]{\thepage}
\end{verbatim}
\end{boxedminipage}
\clearpage
\def~{\ensuremath{\sim}}
\noindent
\entry{abdomen}{el abdomen}
\entry{about}{sobre, más o menos}
\entry{about to do sthg}{estar a punto de}
\entry{above}{encima de, arriba}
\entry{abroad (go ~)}{ir al extranjero (live,go)}
\entry{absent}{ausente}
\entry{absent-minded}{distraído}
\entry{absolutely}{absolutamente}
\entry{abuse}{abusar de, insultar}
\entry{accelerator}{el acelerador}
\entry{accent}{acento}
\entry{accept}{aceptar, admitir}
\entry{access (have ~)}{tener acceso a\ldots}
\entry{accident}{accidente}
\entry{accommodation}{alojamiento}
\entry{accompany}{acompañar}
\entry{accomplish}{conseguir, lograr (goal)}
\entry{according (to)}{según}
\entry{account}{la cuenta}
\entry{accountant}{contable}
\entry{accurate}{preciso}
\entry{accuse}{acusar a alguien de algo}
\entry{ache (n/v)}{el dolor, me duele}
\entry{acid}{ácido}
\entry{action}{acción}
\entry{active}{activo}
\entry{activity}{actividad}
\entry{actor/actress}{actor/actriz}
\entry{adaptor}{adaptador}
\entry{add (v)}{añadir}
\entry{addicted (to)}{ser adicto a}
\entry{address}{la dirección}
\entry{advertisement}{anuncio}
\entry{adjust}{ajustar}
\entry{admission}{admisión}
\entry{admit}{confesar}
\entry{adolescent}{adolescente}
\entry{adopt}{adoptar}
\entry{adult}{adulto}
\entry{adultery}{adulterio}
\entry{advance (in)}{por adelantado}
\entry{advanced}{avanzado}
\entry{advantage}{ventaja}
\entry{adventure}{aventura}
\entry{advice}{consejo, aviso}
\entry{advise}{aconsejar, dar consejo.}
\entry{aerial}{antena}
\entry{affect}{afectar (med)}
\entry{affection}{el cariño}
\entry{afford}{poder, permitirse algo}
\entry{afraid}{asustado, con miedo}
\entry{afraid (of)}{tener miedo de}
\entry{after}{después de, que}
\entry{after (all)}{después de todo}
\entry{afternoon}{tarde, de la tarde}
\entry{afterwards}{después}
\entry{again}{otra vez, de nuevo}
\entry{against}{contra, contra de}
\entry{age}{edad}
\entry{agency}{agencia, buró}
\entry{agent}{agente}
\entry{aggressive}{agresivo}
\entry{ago}{hace una semana}
\entry{agree}{estar de acuerdo.}
\entry{aim}{objetivo}
\entry{air}{el aire}
\entry{air base}{base aérea}
\entry{air filter}{el filtro}
\entry{air force}{fuerza aérea}
\entry{air mail}{correo aéreo}
\entry{air-conditioning (AC)}{el aire acondicionado}
\entry{airline}{línea aérea}
\entry{airplane}{el avión}
\entry{airport}{aeropuerto.}
\entry{aisle}{el pasillo}
\entry{alarm}{alarma.}
\entry{alarm clock}{el despertador}
\entry{album}{álbum (phot)}
\entry{alcohol}{alcohol}
\entry{alcoholic}{alcohólico}
\entry{algebra}{álgebra}
\entry{alibi}{coartada, excusa}
\entry{alien}{el extraterrestre, el extranjero}
\entry{alive}{vivo. estar vivo}
\entry{all}{todo, todos.}
\entry{all right}{¿de acuerdo? está bien}
\entry{allergic to}{alérgico a}
\entry{allergy}{alergia.}
\entry{alligator}{el caimán}
\entry{allow}{permitir, autorizar.}
\entry{almonds}{almendras.}
\entry{almost}{casi, apenas.}
\entry{alone}{solo, único.}
\entry{aloud}{en voz alta}
\entry{alphabet}{alfabeto, abecé.}
\entry{already}{ya.}
\entry{alright}{bien, como se debe.}
\entry{also}{también, además.}
\entry{although}{aunque}
\entry{always}{siempre.}
\entry{ambassador}{embajador}
\entry{ambition}{ambición}
\entry{ambitious}{ambicioso}
\entry{ambulance}{la ambulancia}
\entry{American}{americano.}
\entry{amount}{cantidad, suma.}
\entry{amusing}{divertido}
\entry{analyze}{analizar}
\entry{ancestors}{antepasados}
\entry{anchor}{ancla}
\entry{and}{y.}
\entry{angel}{ángel.}
\entry{angle}{ángulo}
\entry{angry}{colérico, airado. enfadado}
\entry{animal}{animal, bestia.}
\entry{ankle}{el tobillo}
\entry{announce}{anunciar}
\entry{annoy}{molestar, irritar}
\entry{annoying}{pesado}
\entry{answer (n)}{respuesta, contestación.}
\entry{answer (v)}{responder, contestar.}
\entry{answering machine}{contestador automático}
\entry{ant}{la hormiga}
\entry{antenna}{la antena}
\entry{antler}{el cuerno}
\entry{any}{cualquier. alguno/a}
\entry{anybody}{cualquiera, alguien.}
\entry{anything}{cualquier cosa, nada.}
\entry{anyway}{de todos modos.}
\entry{anywhere}{dondequiera.}
\entry{apartment}{apartamento, cuarto.}
\entry{apartment building}{los apartamentos}
\entry{appear}{aparecer.}
\entry{appearance}{apariencia}
\entry{appetite}{apetito, gana, deseo.}
\entry{appetizer}{el aperitivo}
\entry{applaud}{aplaudir}
\entry{apple}{la manzana}
\entry{application}{aplicación, pedido.}
% \entry{apply}{aplicar.}
% \entry{appointment}{cita}
% \entry{apprentice}{aprendiz}
% \entry{apricot}{el albaricoque}
% \entry{April}{abril.}
% \entry{Arab}{árabe.}
% \entry{Arabic}{árabe (idioma), árabe.}
% \entry{architect}{el arquitecto}
% \entry{Argentina}{argentina}
% \entry{arm (body)}{el brazo}
% \entry{armchair}{la butaca}
% \entry{armrest}{el descanso brazo, el apoyabrazos}
% \entry{arms (weapons)}{armas}
% \entry{army}{ejército, armada.}
% \entry{around}{alrededor de}
% \entry{arrange (room)}{organizar}
% \entry{arrest}{detener}
% \entry{arrival}{la llegada}
% \entry{arrive}{llegar, venir}
% \entry{arrogant}{arrogante}
% \entry{art}{el arte}
% \entry{art gallery}{galería de arte}
\end{document}