From: Maxime Chupin (Ceremade) Date: Thu, 24 Nov 2016 16:39:22 +0000 (+0100) Subject: Doc: avancées X-Git-Url: https://melusine.eu.org/syracuse/G/git/?a=commitdiff_plain;h=c25242309db6a2554651e368376b07d30afc3601;p=delaunay.git Doc: avancées --- diff --git a/doc/lltxdoc.cls b/doc/lltxdoc.cls index 1cbb919..5fcb48d 100644 --- a/doc/lltxdoc.cls +++ b/doc/lltxdoc.cls @@ -5,9 +5,9 @@ \ProvidesClass{lltxdoc} \LoadClass[a4paper]{scrartcl} +\RequirePackage{luamesh} \RequirePackage{fontspec} \RequirePackage{metalogo, xspace, ifmtarg, xargs, fancyvrb} -\RequirePackage[table]{xcolor} \RequirePackage[english]{babel} \RequirePackage[colorlinks=true]{hyperref} \RequirePackage{bookmark} diff --git a/doc/luamesh-doc.listing b/doc/luamesh-doc.listing new file mode 100644 index 0000000..319b968 --- /dev/null +++ b/doc/luamesh-doc.listing @@ -0,0 +1 @@ +\usepackage{luamesh} diff --git a/doc/luamesh-doc.pdf b/doc/luamesh-doc.pdf index 66ee430..295ebb5 100644 Binary files a/doc/luamesh-doc.pdf and b/doc/luamesh-doc.pdf differ diff --git a/doc/luamesh-doc.tex b/doc/luamesh-doc.tex index 1e0167e..5746bb2 100644 --- a/doc/luamesh-doc.tex +++ b/doc/luamesh-doc.tex @@ -8,11 +8,65 @@ % without any invariant section or cover text. \documentclass{lltxdoc} - +\usepackage{tcolorbox} \title{\Verb+luamesh+: compute and draw meshes with \lualatex} \author{Maxime Chupin \email{mc@melusine.eu.org}} \date{\today} + + +\tcbuselibrary{listings,breakable} + +\definecolor{vert}{rgb}{0.1,0.4,0.1} +\definecolor{bleu}{rgb}{0.1,0.1,0.4} +\lstset{ + numberstyle=\footnotesize\color{vert}, + keywordstyle=\ttfamily\bfseries\color{blue}, + basicstyle=\ttfamily\footnotesize, + commentstyle=\itshape\color{vert}, + stringstyle=\ttfamily, + showstringspaces=false, + language=[LaTeX]TeX, + breaklines=true, + breakindent=30pt, + defaultdialect=[LaTeX]TeX, + % frame=tb +} + +\lstdefinelanguage{lua} +{morekeywords={for,end,function,do,if,else,elseif,then, + tex.print,tex.sprint,io.read,io.open,string.find,string.explode,require}, + morecomment=[l]{--}, + morecomment=[s]{--[[}{]]}, + morestring=[b]'' +} + +\newtcblisting{Exemple}{% + arc=0pt,outer arc=0pt, + colback=red!2!white, + colframe=red!75!black, + breakable, + boxsep=0pt,left=5pt,right=5pt,top=5pt,bottom=5pt, bottomtitle = + 3pt, toptitle=3pt, + boxrule=0pt,bottomrule=0.5pt,toprule=0.5pt, toprule at break = + 0pt, bottomrule at break = 0pt, + listing options={breaklines}, +} + +\newtcblisting{commandshell}{colback=black,colupper=white,colframe=black, + arc=0pt, + listing only,boxsep=0pt,listing + options={style=tcblatex,language=sh}, + every listing line={\textcolor{red}{\small\ttfamily\bfseries user \$> }}} + +\newtcblisting{latexcode}{ + arc=0pt, + listing only,boxsep=0pt,listing + options={style=tcblatex}} + + +\newcommand\luamesh{\Verb+luamesh+\xspace} + \begin{document} \maketitle @@ -30,8 +84,36 @@ \section{Installation} +\subsection{With Linux} + +To install \luamesh with \TeX live, you have to create the local +\Verb+texmf+ directory in your \Verb+home+. + +\begin{commandshell} +mkdir ~/texmf +\end{commandshell} + +Then we have to files to place in the correct directories. First, the +\Verb+luamesh.sty+ file must be in the directory: +\begin{center} + \Verb+~/texmf/tex/latex/luamesh/+ +\end{center} +and secondly, the \Verb+luamesh.lua+ must be in the directory: +\begin{center} + \Verb+~/texmf/scripts/luamesh/+ +\end{center} + +Once you have done this, \luamesh can be included in your document +with +\begin{latexcode} +\usepackage{luamesh} +\end{latexcode} + + \section{The Macros} + + \subsection{Draw a Complete Mesh} \subsection{Draw the Set of Points}