Changement de fonte, pas convaincu toujours
[delaunay.git] / doc / lltxdoc.cls
1 % private class for lualatex-doc
2 % see lualatex-doc.tex for copying conditions
3 % Manuel Pégourié-Gonnard
4
5 \ProvidesClass{lltxdoc}
6
7 \LoadClass[a4paper]{scrartcl}
8 \RequirePackage{fontspec}
9 \RequirePackage{metalogo, xspace, ifmtarg, xargs, fancyvrb}
10 \RequirePackage[table]{xcolor}
11 \RequirePackage[english]{babel}
12 \RequirePackage[colorlinks=true]{hyperref}
13 \RequirePackage{bookmark}
14
15 \defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase}
16 % \setmainfont{Linux Libertine O}
17 \setmainfont{Slabo 27px}
18 \setsansfont{Kurier}
19 \setmonofont{Monaco}
20
21 \newcommand*\simplelogo [1] {%
22   \ifcsname #1\endcsname \else \badlogocommand \fi
23   \lowercase{\expandafter\simple@logo\expandafter{%
24       \csname #1\expandafter\endcsname\expandafter}}\expandafter{%
25     \csname #1\endcsname}{#1}}
26 \newcommand*\simple@logo [3] {%
27   \newcommand #1 {#2\xspace}%
28   \pdfstringdefDisableCommands{\def#1{#3\space}}}
29
30 \providecommand \ConTeXt    {Con\TeX{}t}
31 \providecommand \pdfTeX     {pdf\TeX}
32 \providecommand \TeXLive    {\TeX\thinspace Live}
33 \providecommand \MiKTeX     {MiK\TeX}
34
35 \simplelogo {TeX}
36 \simplelogo {LaTeX}
37 \simplelogo {LuaTeX}
38 \simplelogo {LuaLaTeX}
39 \simplelogo {XeTeX}
40 \simplelogo {XeLaTeX}
41 \simplelogo {ConTeXt}
42 \simplelogo {pdfTeX}
43 \simplelogo {MiKTeX}
44 \simplelogo {TeXLive}
45
46 \colorlet{code}{blue!80!black}
47 \fvset{formatcom=\color{code}}
48 \DefineShortVerb|
49 \catcode`\  10 % non-breakable space
50
51 \newcommand*\email  [1] {<\href{mailto:#1}{#1}>}
52 \newcommand*\ctan   [1]
53 {\href{http://mirror.ctan.org/#1}{\nolinkurl{#1}}}
54 \newcommand \file       {\nolinkurl}
55 \newcommand*\note   [1] {\noindent\textsf{\bfseries #1.}\quad\ignorespaces}
56 \newcommand \cmd        {\texttt}
57 \newcommand \code   [1] {\texorpdfstring {\texttt{\color{code}#1}} {#1}}
58 \newcommand*\cs     [1] {\code{\textbackslash #1}}
59
60 \newcommandx*\para [2][2] {%
61   \@ifmtarg{#2}{\para@{#1}{#1}}{\para@{#1}{#2}}}
62 \newcommand \para@ [2] {%
63   \par \medskip
64   \hypertarget{para.#2}{}%
65   \belowpdfbookmark{#1}{para.#2}%
66   \noindent
67   \label{para.#2}%
68   \makebox [0pt][r] {%
69     \textsf{\bfseries #1\quad}}%
70   \ignorespaces
71 }
72 \newcommandx*\pararef [3][1, 3] {%
73   \@ifmtarg{#3}{\para@ref{#1}{#2}{#2}}{\para@ref{#1}{#2}{#3}}}
74 \newcommand \para@ref [3] {%
75   \hyperlink{para.#3}{#1{#2}}}
76 \newcommand*\parapageref [1] {%
77   \autopagref{para.#1}}
78
79 \newcommand \pf {\textsf}
80 \newcommand \pk {\pararef[\pf]}
81
82 \newcommandx*\pkdesc [6][6] {%
83   \para                             {#1}
84   \pkditem {Engines}                {#3}
85   \pkditem {Formats}                {#4}
86   \pkditem {Authors}            [\\]{#2}
87   \pkditem {CTAN location}      [\\]{#5}[\ctan]
88   \pkditem {Development url}    [\\]{#6}[\url]
89   \newline
90 }
91 \newcommandx*\pkditem [4][2,4] {\@ifnotmtarg{#3}{%
92     #2\textsf{\bfseries #1:} #4{#3}.%
93   }}
94
95
96 \newenvironment{myquote}{%
97   \list{}{\leftmargin0pt \rightmargin1em}%
98 \item\relax
99   \small
100 }{%
101   \endlist
102 }

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.