2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4 ;; MODULE : latex-texmacs-drd.scm
5 ;; DESCRIPTION : TeXmacs extensions to LaTeX
6 ;; COPYRIGHT : (C) 2005 Joris van der Hoeven
8 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
10 ;; This software falls under the GNU general public license version 3 or later.
11 ;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
12 ;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
14 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16 (texmacs-module (convert latex latex-texmacs-drd))
18 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
19 ;; Extra TeXmacs symbols
20 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
22 (drd-table latex-texmacs-symbol%
24 (leftarrowlim "\\mathop{\\leftarrow}\\limits")
25 (rightarrowlim "\\mathop{\\rightarrow}\\limits")
26 (leftrightarrowlim "\\mathop{\\leftrightarrow}\\limits")
27 (mapstolim "\\mathop{\\mapsto}\\limits")
28 (longleftarrowlim "\\mathop{\\longleftarrow}\\limits")
29 (longrightarrowlim "\\mathop{\\longrightarrow}\\limits")
30 (longleftrightarrowlim "\\mathop{\\longleftrightarrow}\\limits")
31 (longmapstolim "\\mathop{\\longmapsto}\\limits")
32 (leftsquigarrowlim "\\mathop{\\leftsquigarrow}\\limits")
33 (rightsquigarrowlim "\\mathop{\\rightsquigarrow}\\limits")
34 (leftrightsquigarrowlim "\\mathop{\\leftrightsquigarrow}\\limits")
35 (equallim "\\mathop{=}\\limits")
36 (longequallim "\\mathop{\\longequal}\\limits")
37 (Leftarrowlim "\\mathop{\\leftarrow}\\limits")
38 (Rightarrowlim "\\mathop{\\rightarrow}\\limits")
39 (Leftrightarrowlim "\\mathop{\\leftrightarrow}\\limits")
40 (Longleftarrowlim "\\mathop{\\longleftarrow}\\limits")
41 (Longrightarrowlim "\\mathop{\\longrightarrow}\\limits")
42 (Longleftrightarrowlim "\\mathop{\\longleftrightarrow}\\limits")
44 ;; asymptotic relations by Joris
45 (nasymp "\\not\\asymp")
46 (asympasymp "{\\asymp\\!\\!\\!\\!\\!\\!-}")
47 (nasympasymp "{\\not\\asymp\\!\\!\\!\\!\\!\\!-}")
48 (simsim "{\\approx\\!\\!\\!\\!\\!\\!-}")
49 (nsimsim "{\\not\\approx\\!\\!\\!\\!\\!\\!-}")
50 (npreccurlyeq "\\not\\preccurlyeq")
51 (precprec "\\prec\\!\\!\\!\\prec")
52 (precpreceq "\\preceq\\!\\!\\!\\preceq")
53 (precprecprec "\\prec\\!\\!\\!\\prec\\!\\!\\!\\prec")
54 (precprecpreceq "\\preceq\\!\\!\\!\\preceq\\!\\!\\!\\preceq")
55 (succsucc "\\succ\\!\\!\\!\\succ")
56 (succsucceq "\\succeq\\!\\!\\!\\succeq")
57 (succsuccsucc "\\succ\\!\\!\\!\\succ\\!\\!\\!\\succ")
58 (succsuccsucceq "\\succeq\\!\\!\\!\\succeq\\!\\!\\!\\succeq")
59 (lleq "\\leq\\negmedspace\\negmedspace\\leq")
60 (llleq "\\leq\\negmedspace\\negmedspace\\leq\\negmedspace\\negmedspace\\leq")
61 (ggeq "\\geq\\negmedspace\\negmedspace\\geq")
62 (gggeq "\\geq\\negmedspace\\negmedspace\\geq\\negmedspace\\negmedspace\\geq")
64 ;; extra literal symbols
65 (btimes "{\\mbox{\\rotatebox[origin=c]{90}{$\\ltimes$}}}")
66 (Backepsilon "{\\mbox{\\rotatebox[origin=c]{180}{E}}}")
67 (Mho "{\\mbox{\\rotatebox[origin=c]{180}{$\\Omega$}}}")
68 (mapmulti "{\\mbox{\\rotatebox[origin=c]{180}{$\\multimap$}}}")
77 (Epsilon "\\mathrm{E}")
83 (Omicron "\\mathrm{O}")
89 ;; other extra symbols
99 (nequiv "\\not\\equiv")
100 (dotamalg "\\mathaccent95{\\amalg}")
101 (dottimes "\\mathaccent95{\\times}")
102 (dotoplus "\\mathaccent95{\\oplus}")
103 (dototimes "\\mathaccent95{\\otimes}")
104 (into "\\rightarrow")
105 (longequal "{=\\!\\!=}")
106 (longhookrightarrow "{\\lhook\\joinrel\\relbar\\joinrel\\rightarrow}")
107 (longhookleftarrow "{\\leftarrow\\joinrel\\relbar\\joinrel\\rhook}")
108 (longdownarrow "\\downarrow")
109 (longuparrow "\\uparrow")
110 (triangleup "\\triangle")
111 (precdot "{\\prec\\hspace{-0.6em}\\cdot}\\;\\,")
112 (preceqdot "{\\preccurlyeq\\hspace{-0.6em}\\cdot}\\;\\,")
113 (llangle "{\\langle\\!\\langle}")
114 (rrangle "{\\rangle\\!\\rangle}")
120 (upequal "{\\mbox{\\rotatebox[origin=c]{90}{$=$}}}")
122 (plusassign "+\\!\\!=")
123 (minusassign "-\\!\\!=")
124 (timesassign "\times\\!\\!=")
125 (overassign "/\\!\\!=")
129 (transtype "\\,:\\!!>")
130 (udots "{\\mathinner{\\mskip1mu\\raise1pt\\vbox{\\kern7pt\\hbox{.}}\\mskip2mu\\raise4pt\\hbox{.}\\mskip2mu\\raise7pt\\hbox{.}\\mskip1mu}}"))
133 ((latex-texmacs-macro% 'x 'body) (latex-texmacs-symbol% 'x 'body))
134 ((latex-texmacs-arity% 'x 0) (latex-texmacs-symbol% 'x 'body))
136 ((latex-texmacs-tag% 'x) (latex-texmacs-macro% 'x 'body))
137 ((latex-arity% 'x 'arity) (latex-texmacs-arity% 'x 'arity))
138 ((latex-symbol% 'x) (latex-texmacs-symbol% 'x 'body)))
140 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
141 ;; Extra TeXmacs macros
142 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
144 (drd-table latex-texmacs-0%
147 (tmat "\\symbol{\"40}")
148 (tmbsl "\\ensuremath{\\backslash}")
149 (tmdummy "$\\mbox{}$")
150 (TeXmacs "T\\kern-.1667em\\lower.5ex\\hbox{E}\\kern-.125emX\\kern-.1em\\lower.5ex\\hbox{\\textsc{m\\kern-.05ema\\kern-.125emc\\kern-.05ems}}")
151 (madebyTeXmacs (footnote (!recurse (withTeXmacstext))))
153 (!append (!translate "This document has been produced using") " "
154 (!recurse (TeXmacs)) " (" (!translate "see") " "
155 (texttt "http://www.texmacs.org") ")"))
156 (scheme "{\\sc Scheme}")
157 (pari "{\\sc Pari}"))
159 (drd-table latex-texmacs-1%
160 (tmtextrm (!group (rmfamily) (!group 1)))
161 (tmtextsf (!group (sffamily) (!group 1)))
162 (tmtexttt (!group (ttfamily) (!group 1)))
163 (tmtextmd (!group (mdseries) (!group 1)))
164 (tmtextbf (!group (bfseries) (!group 1)))
165 (tmtextup (!group (upshape) (!group 1)))
166 (tmtextsl (!group (slshape) (!group 1)))
167 (tmtextit (!group (itshape) (!group 1)))
168 (tmtextsc (!group (scshape) (!group 1)))
169 (tmmathbf (ensuremath (boldsymbol 1)))
170 (tmop (ensuremath (operatorname 1)))
171 (tmstrong (textbf 1))
172 (tmem (!group "\\em " 1 "\\/"))
180 (tmacronym (textsc 1))
181 (tmperson (textsc 1))
182 (tmscript (text (scriptsize (!math 1))))
184 (dueto (textup (textbf (!append "(" 1 ") "))))
186 (email (!group (textit (!translate "Email:")) " " (texttt 1)))
187 (homepage (!group (textit (!translate "Web:")) " "(texttt 1)))
188 (keywords (!group (textbf (!translate "Keywords:")) " " 1))
189 (AMSclass (!group (textbf (!translate "A.M.S. subject classification:"))
192 (drd-table latex-texmacs-2%
193 (tmhlink (!group "\\color{blue} " 1))
194 (tmaction (!group "\\color{blue} " 1))
195 (subindex (index (!append 1 "!" 2))))
197 (drd-table latex-texmacs-3%
198 (subsubindex (index (!append 1 "!" 2 "!" 3)))
200 (glossaryentry (!append (item (!option (!append 1 (hfill)))) 2 (dotfill) 3)))
202 (drd-table latex-texmacs-4%
203 (subsubsubindex (index (!append 1 "!" 2 "!" 3 "!" 4))))
206 ((latex-texmacs-macro% 'x 'body) (latex-texmacs-0% 'x 'body))
207 ((latex-texmacs-arity% 'x 0) (latex-texmacs-0% 'x 'body))
208 ((latex-texmacs-macro% 'x 'body) (latex-texmacs-1% 'x 'body))
209 ((latex-texmacs-arity% 'x 1) (latex-texmacs-1% 'x 'body))
210 ((latex-texmacs-macro% 'x 'body) (latex-texmacs-2% 'x 'body))
211 ((latex-texmacs-arity% 'x 2) (latex-texmacs-2% 'x 'body))
212 ((latex-texmacs-macro% 'x 'body) (latex-texmacs-3% 'x 'body))
213 ((latex-texmacs-arity% 'x 3) (latex-texmacs-3% 'x 'body))
214 ((latex-texmacs-macro% 'x 'body) (latex-texmacs-4% 'x 'body))
215 ((latex-texmacs-arity% 'x 4) (latex-texmacs-4% 'x 'body))
217 ((latex-texmacs% 'x) (latex-texmacs-0% 'x 'body))
218 ((latex-texmacs% 'x) (latex-texmacs-1% 'x 'body))
219 ((latex-texmacs% 'x) (latex-texmacs-2% 'x 'body))
220 ((latex-texmacs% 'x) (latex-texmacs-3% 'x 'body))
221 ((latex-texmacs% 'x) (latex-texmacs-4% 'x 'body)))
223 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
224 ;; Extra TeXmacs environments
225 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
227 (drd-table latex-texmacs-environment%
229 (!append (noindent) (textbf (!append (!translate "Proof") "\\ "))
231 (hspace* (fill)) (!math (Box)) (medskip)))
233 (!append (noindent) (textbf (!append 1 "\\ "))
235 (hspace* (fill)) (!math (Box)) (medskip)))
237 ((!begin "list" "" (!append "\\setlength{\\topsep}{0pt}"
238 "\\setlength{\\leftmargin}{" 1 "}"
239 "\\setlength{\\rightmargin}{" 2 "}"
240 "\\setlength{\\parindent}{" 3 "}"
241 "\\setlength{\\listparindent}{\\parindent}"
242 "\\setlength{\\itemindent}{\\parindent}"
243 "\\setlength{\\parsep}{\\parskip}"))
247 (!append (begingroup) "\\setlength{\\parskip}{" 1 "}"
251 ((!begin "tmparmod" "1.5em" "0pt" "0pt") ---))
252 ("elsequation" ((!begin "eqnarray") (!append --- "&&")))
253 ("elsequation*" ((!begin "eqnarray*") (!append --- "&&")))
255 ((!begin "list" "" (!append "\\setlength{\\labelwidth}{6.5em}"
256 "\\setlength{\\leftmargin}{7em}"
259 (drd-table latex-texmacs-env-arity%
270 (drd-group latex-texmacs-tag%
271 begin-proof begin-proof* begin-tmparmod begin-tmparsep begin-tmindent
272 begin-elsequation begin-elsequation* begin-theglossary)
274 (drd-group latex-environment-0%
275 begin-proof begin-tmindent begin-elsequation begin-elsequation*)
277 (drd-group latex-environment-1%
278 begin-proof* begin-theglossary)
280 (drd-group latex-environment-3%
281 begin-tmparmod begin-tmparsep)
283 (define-macro (latex-texmacs-itemize env lab)
284 (with env-sym (string->symbol (string-append "begin-" env))
286 (drd-table latex-texmacs-environment%
289 (!append "\\renewcommand{\\labelitemi}{" ,lab "}"
290 "\\renewcommand{\\labelitemii}{" ,lab "}"
291 "\\renewcommand{\\labelitemiii}{" ,lab "}"
292 "\\renewcommand{\\labelitemiv}{" ,lab "}"
294 (drd-table latex-texmacs-env-arity% (,env 0))
296 (drd-group latex-texmacs-tag% ,env-sym)
297 (drd-group latex-list% ,env-sym))))
299 (define-macro (latex-texmacs-enumerate env lab)
300 (with env-sym (string->symbol (string-append "begin-" env))
302 (drd-table latex-texmacs-environment%
303 (,env ((!begin "enumerate" (!option ,lab)) ---)))
304 (drd-table latex-texmacs-env-arity% (,env 0))
306 (drd-group latex-texmacs-tag% ,env-sym)
307 (drd-group latex-list% ,env-sym))))
309 (define-macro (latex-texmacs-description env)
310 (with env-sym (string->symbol (string-append "begin-" env))
312 (drd-table latex-texmacs-environment%
313 (,env ((!begin "description") ---)))
314 (drd-table latex-texmacs-env-arity% (,env 0))
316 (drd-group latex-texmacs-tag% ,env-sym)
317 (drd-group latex-list% ,env-sym))))
319 (latex-texmacs-itemize "itemizeminus" "$-$")
320 (latex-texmacs-itemize "itemizedot" "$\\bullet$")
321 (latex-texmacs-itemize "itemizearrow" "$\\rightarrow$")
322 (latex-texmacs-enumerate "enumeratenumeric" "1.")
323 (latex-texmacs-enumerate "enumerateroman" "i.")
324 (latex-texmacs-enumerate "enumerateromancap" "I.")
325 (latex-texmacs-enumerate "enumeratealpha" "a{\\textup{)}}")
326 (latex-texmacs-enumerate "enumeratealphacap" "A.")
327 (latex-texmacs-description "descriptioncompact")
328 (latex-texmacs-description "descriptionaligned")
329 (latex-texmacs-description "descriptiondash")
330 (latex-texmacs-description "descriptionlong")
332 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
333 ;; Extra preamble definitions which are needed to export certain macros
334 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
336 (drd-table latex-texmacs-preamble%
339 "\\renewcommand{\\mho}{\\mbox{\\rotatebox[origin=c]{180}{$\\omega$}}}"))
342 "\\definecolor{grey}{rgb}{0.75,0.75,0.75}\n"
343 "\\definecolor{orange}{rgb}{1.0,0.5,0.5}\n"
344 "\\definecolor{brown}{rgb}{0.5,0.25,0.0}\n"
345 "\\definecolor{pink}{rgb}{1.0,0.5,0.5}\n"))
348 "\\newcommand{\\tmfloatcontents}{}\n"
349 "\\newlength{\\tmfloatwidth}\n"
350 "\\newcommand{\\tmfloat}[5]{\n"
351 " \\renewcommand{\\tmfloatcontents}{#4}\n"
352 " \\setlength{\\tmfloatwidth}{\\widthof{\\tmfloatcontents}+1in}\n"
353 " \\ifthenelse{\\equal{#2}{small}}\n"
354 " {\\ifthenelse{\\lengthtest{\\tmfloatwidth > \\linewidth}}\n"
355 " {\\setlength{\\tmfloatwidth}{\\linewidth}}{}}\n"
356 " {\\setlength{\\tmfloatwidth}{\\linewidth}}\n"
357 " \\begin{minipage}[#1]{\\tmfloatwidth}\n"
359 " \\tmfloatcontents\n"
360 " \\captionof{#3}{#5}\n"
362 " \\end{minipage}}\n")))
364 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
365 ;; Plain style theorems
366 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
368 (define-macro (latex-texmacs-thmenv prim name before after)
369 (with env-sym (string->symbol (string-append "begin-" prim))
371 (drd-table latex-texmacs-env-preamble%
372 (,prim (!append ,@before (newtheorem ,prim (!translate ,name))
376 (drd-group latex-texmacs-tag% ,env-sym)
377 (drd-group latex-environment-0% ,env-sym))))
379 (define-macro (latex-texmacs-theorem prim name)
380 `(latex-texmacs-thmenv ,prim ,name () ()))
382 (define-macro (latex-texmacs-remark prim name)
383 `(latex-texmacs-thmenv
384 ,prim ,name ("{" (!recurse (theorembodyfont "\\rmfamily"))) ("}")))
386 (define-macro (latex-texmacs-exercise prim name)
387 `(latex-texmacs-thmenv
388 ,prim ,name ("{" (!recurse (theorembodyfont "\\rmfamily\\small"))) ("}")))
390 (latex-texmacs-theorem "theorem" "Theorem")
391 (latex-texmacs-theorem "proposition" "Proposition")
392 (latex-texmacs-theorem "lemma" "Lemma")
393 (latex-texmacs-theorem "corollary" "Corollary")
394 (latex-texmacs-theorem "axiom" "Axiom")
395 (latex-texmacs-theorem "definition" "Definition")
396 (latex-texmacs-theorem "notation" "Notation")
397 (latex-texmacs-theorem "conjecture" "Conjecture")
398 (latex-texmacs-remark "remark" "Remark")
399 (latex-texmacs-remark "note" "Note")
400 (latex-texmacs-remark "example" "Example")
401 (latex-texmacs-remark "convention" "Convention")
402 (latex-texmacs-remark "warning" "Warning")
403 (latex-texmacs-exercise "exercise" "Exercise")
404 (latex-texmacs-exercise "problem" "Problem")
406 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
407 ;; AMS style theorems
408 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
410 (define-macro (ams-texmacs-theorem abbr full)
412 (drd-table latex-texmacs-env-preamble%
413 (,abbr (!append "\\theoremstyle{plain}\n"
414 (newtheorem ,abbr (!translate ,full))
418 (define-macro (ams-texmacs-remark abbr full)
420 (drd-table latex-texmacs-env-preamble%
421 (,abbr (!append "\\theoremstyle{remark}\n"
422 (newtheorem ,abbr (!translate ,full))
426 (ams-texmacs-theorem "theorem" "Theorem")
427 (ams-texmacs-theorem "proposition" "Proposition")
428 (ams-texmacs-theorem "lemma" "Lemma")
429 (ams-texmacs-theorem "corollary" "Corollary")
430 (ams-texmacs-theorem "axiom" "Axiom")
431 (ams-texmacs-theorem "definition" "Definition")
432 (ams-texmacs-theorem "notation" "Notation")
433 (ams-texmacs-theorem "conjecture" "Conjecture")
434 (ams-texmacs-remark "remark" "Remark")
435 (ams-texmacs-remark "note" "Note")
436 (ams-texmacs-remark "example" "Example")
437 (ams-texmacs-remark "convention" "Convention")
438 (ams-texmacs-remark "warning" "Warning")
439 (ams-texmacs-remark "exercise" "Exercise")
440 (ams-texmacs-remark "problem" "Problem")
442 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
443 ;; Style-dependent extra macros
444 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
446 (drd-table latex-texmacs-0%
447 (appendix "" letter-style%))
449 (define-macro (latex-texmacs-section name inside . conds)
450 `(drd-table latex-texmacs-1%
451 (,name (!append (medskip) (bigskip) "\n\n" (noindent) (textbf ,inside))
454 (define-macro (latex-texmacs-paragraph name inside . conds)
455 `(drd-table latex-texmacs-1%
456 (,name (!append (smallskip) "\n\n" (noindent) (textbf ,inside))
459 (latex-texmacs-section chapter (!append "\\huge " 1) article-style%)
460 (latex-texmacs-section chapter (!append "\\huge " 1) letter-style%)
461 (latex-texmacs-section section (!append "\\LARGE " 1) letter-style%)
462 (latex-texmacs-section subsection (!append "\\Large " 1) letter-style%)
463 (latex-texmacs-section subsubsection (!append "\\large " 1) letter-style%)
464 (latex-texmacs-paragraph paragraph 1 letter-style%)
465 (latex-texmacs-paragraph subparagraph 1 letter-style%)
467 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
468 ;; Deprecated extra macros
469 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
471 (drd-table latex-texmacs-0%
472 (labeleqnum "\\addtocounter{equation}{-1}\\refstepcounter{equation}\\addtocounter{equation}{1})")
473 (eqnumber (!append "\\hfill(\\theequation" (!recurse (labeleqnum)) ")"))
474 (leqnumber (!append "(\\theequation" (!recurse (labeleqnum)) ")\\hfill"))
475 (reqnumber (!append "\\hfill(\\theequation" (!recurse (labeleqnum)) ")")))
477 (drd-table latex-texmacs-1%
478 (key (!append "\\fbox{\\rule[-2pt]{0pt}{9pt}" (texttt 1) "}"))
479 (skey (!recurse (key (!append "shift-" 1))))
480 (ckey (!recurse (key (!append "ctrl-" 1))))
481 (akey (!recurse (key (!append "alt-" 1))))
482 (mkey (!recurse (key (!append "meta-" 1))))
483 (hkey (!recurse (key (!append "hyper-" 1)))))
485 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
486 ;; Language specific preambles
487 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
489 (drd-table latex-preamble-language-def%
491 "\\usepackage[cp1251]{inputenc}\n\\usepackage[bulgarian]{babel}")
492 ("czech" "\\usepackage[czech]{babel}")
493 ("danish" "\\usepackage[danish]{babel}")
494 ("dutch" "\\usepackage[dutch]{babel}")
495 ("finnish" "\\usepackage[finnish]{babel}")
496 ("french" "\\usepackage[french]{babel}")
497 ("german" "\\usepackage[german]{babel}")
498 ("hungarian" "\\usepackage[hungarian]{babel}")
499 ("italian" "\\usepackage[italian]{babel}")
500 ("polish" "\\usepackage[polish]{babel}")
501 ("portuguese" "\\usepackage[portuges]{babel}")
502 ("romanian" "\\usepackage[romanian]{babel}")
503 ("russian" "\\usepackage[cp1251]{inputenc}\n\\usepackage[russian]{babel}")
504 ("slovene" "\\usepackage[slovene]{babel}")
505 ("spanish" "\\usepackage[spanish]{babel}")
506 ("swedish" "\\usepackage[swedish]{babel}")
508 "\\usepackage[cp1251]{inputenc}\n\\usepackage[ukrainian]{babel}"))
510 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
512 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
514 (drd-table corkT1-to-latex-catcodes%
525 ; ("\x0A" "\\.{ }") ; newline may still be present in strings!!!
529 ("\x0E" "{\\guilsinglleft}")
530 ("\x0F" "{\\guilsinglright}")
610 ("\xBF" "{\\pounds}")
676 (drd-table cyrillic-catcodes%
744 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
745 ;; Page size settings
746 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
748 (drd-table latex-paper-type%
756 ("a7" "papersize={74mm,105mm}")
757 ("a8" "papersize={52mm,74mm")
758 ("a9" "papersize={37mm,52mm}")
766 ("b7" "papersize={88mm,125mm}")
767 ("b8" "papersize={62mm,88mm}")
768 ("b9" "papersize={44mm,62mm}")
769 ("legal" "legalpaper")
770 ("letter" "letterpaper")
771 ("executive" "executivepaper")
772 ("archA" "papersize={9in,12in}")
773 ("archB" "papersize={12in,18in}")
774 ("archC" "papersize={18in,24in}")
775 ("archD" "papersize={24in,36in}")
776 ("archE" "papersize={36in,48in}")
777 ("10x14" "papersize={10in,14in}")
778 ("11x17" "papersize={11in,17in}")
779 ("C5" "papersize={162mm,229mm}")
780 ("Comm10" "papersize={297pt,684pt}")
781 ("DL" "papersize={110mm,220mm}")
782 ("halfletter" "papersize={140mm,216mm}")
783 ("halfexecutive" "papersize={133mm,184mm}")
784 ("ledger" "papersize={432mm,279mm}")
785 ("Monarch" "papersize={98mm,190mm}")
786 ("csheet" "papersize={432mm,559mm}")
787 ("dsheet" "papersize={559mm,864mm}")
788 ("esheet" "papersize={864mm,1118mm}")
789 ("flsa" "papersize={216mm,330mm}")
790 ("flse" "papersize={216mm,330mm}")
791 ("folio" "papersize={216mm,330mm}")
792 ("lecture note" "papersize={15.5cm,23.5cm}")
793 ("note" "papersize={216mm,279mm}")
794 ("quarto" "papersize={215mm,275mm}")
795 ("statement" "papersize={140mm,216mm}")
796 ("tabloid" "papersize={279mm,432mm}"))