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

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.