From: Maxime Chupin (escudo) Date: Wed, 23 Nov 2016 22:29:35 +0000 (+0100) Subject: Début de la documentation X-Git-Url: https://melusine.eu.org/syracuse/G/git/?p=delaunay.git;a=commitdiff_plain;h=dc546a7929393fda34c0c92242bec83d64855344 Début de la documentation --- diff --git a/doc/lltxdoc.cls b/doc/lltxdoc.cls new file mode 100644 index 0000000..46725b2 --- /dev/null +++ b/doc/lltxdoc.cls @@ -0,0 +1,101 @@ +% private class for lualatex-doc +% see lualatex-doc.tex for copying conditions +% Manuel Pégourié-Gonnard + +\ProvidesClass{lltxdoc} + +\LoadClass[a4paper]{scrartcl} +\RequirePackage{fontspec} +\RequirePackage{metalogo, xspace, ifmtarg, xargs, fancyvrb} +\RequirePackage[table]{xcolor} +\RequirePackage[english]{babel} +\RequirePackage[colorlinks=true]{hyperref} +\RequirePackage{bookmark} + +\defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase} +\setmainfont{Linux Libertine O} +\setsansfont{Kurier} +\setmonofont[Scale=MatchLowercase]{Monaco} + +\newcommand*\simplelogo [1] {% + \ifcsname #1\endcsname \else \badlogocommand \fi + \lowercase{\expandafter\simple@logo\expandafter{% + \csname #1\expandafter\endcsname\expandafter}}\expandafter{% + \csname #1\endcsname}{#1}} +\newcommand*\simple@logo [3] {% + \newcommand #1 {#2\xspace}% + \pdfstringdefDisableCommands{\def#1{#3\space}}} + +\providecommand \ConTeXt {Con\TeX{}t} +\providecommand \pdfTeX {pdf\TeX} +\providecommand \TeXLive {\TeX\thinspace Live} +\providecommand \MiKTeX {MiK\TeX} + +\simplelogo {TeX} +\simplelogo {LaTeX} +\simplelogo {LuaTeX} +\simplelogo {LuaLaTeX} +\simplelogo {XeTeX} +\simplelogo {XeLaTeX} +\simplelogo {ConTeXt} +\simplelogo {pdfTeX} +\simplelogo {MiKTeX} +\simplelogo {TeXLive} + +\colorlet{code}{blue!80!black} +\fvset{formatcom=\color{code}} +\DefineShortVerb| +\catcode`\ 10 % non-breakable space + +\newcommand*\email [1] {<\href{mailto:#1}{#1}>} +\newcommand*\ctan [1] +{\href{http://mirror.ctan.org/#1}{\nolinkurl{#1}}} +\newcommand \file {\nolinkurl} +\newcommand*\note [1] {\noindent\textsf{\bfseries #1.}\quad\ignorespaces} +\newcommand \cmd {\texttt} +\newcommand \code [1] {\texorpdfstring {\texttt{\color{code}#1}} {#1}} +\newcommand*\cs [1] {\code{\textbackslash #1}} + +\newcommandx*\para [2][2] {% + \@ifmtarg{#2}{\para@{#1}{#1}}{\para@{#1}{#2}}} +\newcommand \para@ [2] {% + \par \medskip + \hypertarget{para.#2}{}% + \belowpdfbookmark{#1}{para.#2}% + \noindent + \label{para.#2}% + \makebox [0pt][r] {% + \textsf{\bfseries #1\quad}}% + \ignorespaces +} +\newcommandx*\pararef [3][1, 3] {% + \@ifmtarg{#3}{\para@ref{#1}{#2}{#2}}{\para@ref{#1}{#2}{#3}}} +\newcommand \para@ref [3] {% + \hyperlink{para.#3}{#1{#2}}} +\newcommand*\parapageref [1] {% + \autopagref{para.#1}} + +\newcommand \pf {\textsf} +\newcommand \pk {\pararef[\pf]} + +\newcommandx*\pkdesc [6][6] {% + \para {#1} + \pkditem {Engines} {#3} + \pkditem {Formats} {#4} + \pkditem {Authors} [\\]{#2} + \pkditem {CTAN location} [\\]{#5}[\ctan] + \pkditem {Development url} [\\]{#6}[\url] + \newline +} +\newcommandx*\pkditem [4][2,4] {\@ifnotmtarg{#3}{% + #2\textsf{\bfseries #1:} #4{#3}.% + }} + + +\newenvironment{myquote}{% + \list{}{\leftmargin0pt \rightmargin1em}% +\item\relax + \small +}{% + \endlist +} \ No newline at end of file diff --git a/doc/luamesh-doc.pdf b/doc/luamesh-doc.pdf new file mode 100644 index 0000000..6d696bb Binary files /dev/null and b/doc/luamesh-doc.pdf differ diff --git a/doc/luamesh-doc.tex b/doc/luamesh-doc.tex new file mode 100644 index 0000000..1e0167e --- /dev/null +++ b/doc/luamesh-doc.tex @@ -0,0 +1,50 @@ +% luamesh: compute and draw meshes with lua, luamplib and tikz +% +% Originally written by Maxime Chupin , +% 2010. +% +% Distributed under the terms of the GNU free documentation licence: +% http://www.gnu.org/licenses/fdl.html +% without any invariant section or cover text. + +\documentclass{lltxdoc} + +\title{\Verb+luamesh+: compute and draw meshes with \lualatex} +\author{Maxime Chupin \email{mc@melusine.eu.org}} +\date{\today} + +\begin{document} + +\maketitle + +\begin{abstract} + The package \Verb|luamesh| allows to compute and draw triangulation + of Delaunay. The algorithm is written with lua, and depending of the + choice of the ``engine'', the draw is done by MetaPost (with + \Verb|luamplib|) or by \Verb|tikz|. + + The Delaunay triangulation algorithm is the Bowyer and Watson + algorithm. Several macros are provided to draw the global mesh, the + set of points, a particular step of the algorithm. +\end{abstract} + +\section{Installation} + +\section{The Macros} + +\subsection{Draw a Complete Mesh} + +\subsection{Draw the Set of Points} + +\subsection{Draw a Step of the Bowyer and Watson Algorithm} + +\section{Gallery of Examples} + +\end{document} + + + +%%% Local Variables: +%%% flyspell-mode: 1 +%%% ispell-local-dictionary: "american" +%%% End: