Début de la documentation
[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 \setsansfont{Kurier}
18 \setmonofont[Scale=MatchLowercase]{Monaco}
19
20 \newcommand*\simplelogo [1] {%
21   \ifcsname #1\endcsname \else \badlogocommand \fi
22   \lowercase{\expandafter\simple@logo\expandafter{%
23       \csname #1\expandafter\endcsname\expandafter}}\expandafter{%
24     \csname #1\endcsname}{#1}}
25 \newcommand*\simple@logo [3] {%
26   \newcommand #1 {#2\xspace}%
27   \pdfstringdefDisableCommands{\def#1{#3\space}}}
28
29 \providecommand \ConTeXt    {Con\TeX{}t}
30 \providecommand \pdfTeX     {pdf\TeX}
31 \providecommand \TeXLive    {\TeX\thinspace Live}
32 \providecommand \MiKTeX     {MiK\TeX}
33
34 \simplelogo {TeX}
35 \simplelogo {LaTeX}
36 \simplelogo {LuaTeX}
37 \simplelogo {LuaLaTeX}
38 \simplelogo {XeTeX}
39 \simplelogo {XeLaTeX}
40 \simplelogo {ConTeXt}
41 \simplelogo {pdfTeX}
42 \simplelogo {MiKTeX}
43 \simplelogo {TeXLive}
44
45 \colorlet{code}{blue!80!black}
46 \fvset{formatcom=\color{code}}
47 \DefineShortVerb|
48 \catcode`\  10 % non-breakable space
49
50 \newcommand*\email  [1] {<\href{mailto:#1}{#1}>}
51 \newcommand*\ctan   [1]
52 {\href{http://mirror.ctan.org/#1}{\nolinkurl{#1}}}
53 \newcommand \file       {\nolinkurl}
54 \newcommand*\note   [1] {\noindent\textsf{\bfseries #1.}\quad\ignorespaces}
55 \newcommand \cmd        {\texttt}
56 \newcommand \code   [1] {\texorpdfstring {\texttt{\color{code}#1}} {#1}}
57 \newcommand*\cs     [1] {\code{\textbackslash #1}}
58
59 \newcommandx*\para [2][2] {%
60   \@ifmtarg{#2}{\para@{#1}{#1}}{\para@{#1}{#2}}}
61 \newcommand \para@ [2] {%
62   \par \medskip
63   \hypertarget{para.#2}{}%
64   \belowpdfbookmark{#1}{para.#2}%
65   \noindent
66   \label{para.#2}%
67   \makebox [0pt][r] {%
68     \textsf{\bfseries #1\quad}}%
69   \ignorespaces
70 }
71 \newcommandx*\pararef [3][1, 3] {%
72   \@ifmtarg{#3}{\para@ref{#1}{#2}{#2}}{\para@ref{#1}{#2}{#3}}}
73 \newcommand \para@ref [3] {%
74   \hyperlink{para.#3}{#1{#2}}}
75 \newcommand*\parapageref [1] {%
76   \autopagref{para.#1}}
77
78 \newcommand \pf {\textsf}
79 \newcommand \pk {\pararef[\pf]}
80
81 \newcommandx*\pkdesc [6][6] {%
82   \para                             {#1}
83   \pkditem {Engines}                {#3}
84   \pkditem {Formats}                {#4}
85   \pkditem {Authors}            [\\]{#2}
86   \pkditem {CTAN location}      [\\]{#5}[\ctan]
87   \pkditem {Development url}    [\\]{#6}[\url]
88   \newline
89 }
90 \newcommandx*\pkditem [4][2,4] {\@ifnotmtarg{#3}{%
91     #2\textsf{\bfseries #1:} #4{#3}.%
92   }}
93
94
95 \newenvironment{myquote}{%
96   \list{}{\leftmargin0pt \rightmargin1em}%
97 \item\relax
98   \small
99 }{%
100   \endlist
101 }

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.