\DocumentMetadata{} \documentclass[% 10pt,% oneside, a4paper,% french,% notitlepage ]% {book}% \usepackage{luatextra} \usepackage{amsmath,amssymb,marvosym,stmaryrd,calrsfs,minted,setspace,array,caption,fvextra}% \usepackage[math-style=french]{unicode-math} \usepackage[math-style=french]{fourier-otf}% \usepackage[svgnames]{xcolor} \usepackage[margin=1.5cm,top=1cm,bottom=1.5cm,headheight=5mm,headsep=2mm]{geometry} \usepackage[unicode,pdfstartview = FitH, colorlinks, linkcolor=blue]{hyperref} \usepackage{multicol,xspace}% \usepackage[protrusion=true,expansion=true]{microtype} \usepackage{babel}% %\usepackage{minitoc} \usepackage[Lenny]{fncychap} \usepackage{animate} \usepackage[noexec,3d,cachedir=tkz]{luadraw} \usetikzlibrary{shadings} \def\version{3.1} \hypersetup{ pdfauthor={P. Fradin}, pdflang={fr}, %hidelinks, pdfcreator={LuaLatex} } \title{\textbf{Le paquet \emph{luadraw} (\version)}} \author{Patrick Fradin} %\date{} \onehalfspacing %\newminted{Lua}{bgcolor=Beige,ignorelexererrors=true,linenos,numbersep=6pt,breaklines,fontsize=\footnotesize}% \newminted{TeX}{bgcolor=Gray!30,breaklines,fontsize=\footnotesize}% \newminted{Lua}{bgcolor=Beige,ignorelexererrors=true,breaklines,fontsize=\footnotesize}% %\columnseprule 0.4pt \columnsep 25pt \definecolor{bgcol}{RGB}{238,240,252}% couleur de fond des listings \newenvironment*{demo}[2][]{% \gdef\legende{#2}% \gdef\lab{#1}% \bgroup \VerbatimOut{\jobname.tmp}% }% {% \endVerbatimOut% \egroup% %\begin{center} %\begin{tabular}{|m{10cm}|m{7cm}|} %\hline %\begin{minipage}{10cm} %\inputminted[ignorelexererrors=true,breaklines,bgcolor=Beige,linenos,numbersep=6pt,frame=single,fontsize=\footnotesize]{Lua}{\jobname.tmp}% \inputminted[ignorelexererrors=true,breaklines,bgcolor=Beige,frame=single,fontsize=\footnotesize]{Lua}{\jobname.tmp}% %\end{minipage} %& \begin{minipage}{0.9\textwidth} %\par\smallskip \begin{center} \captionof{figure}{\legende}\label{\lab}% \input{\jobname.tmp}% %\end{center} %\par\smallskip %\hline %\end{tabular} \end{center} \end{minipage} }% \newcommand*{\opt}[1]{\texttt{\textcolor{violet}{#1}}}%option \newcommand*{\val}[1]{\texttt{\textcolor{blue}{#1}}}%value \newcommand*{\cmd}[1]{\textbf{#1}}%commande \newcommand*{\cmdln}[1]{\par\hfil\cmd{#1}\hfil\par}%commande sur une ligne \newcommand*{\fac}[1]{[#1]}%arguments facultatifs \newcommand*{\code}[1]{\textbf{\texttt{#1}}}%code \newcommand*{\codeln}[1]{\par\hfil\code{#1}\hfil\par}%code sur une ligne %\newcommand*{\argu}[1]{\texttt{\textcolor{Maroon}{<#1>}}}%argument \newcommand*{\argu}[1]{$\langle$\emph{#1}$\rangle$}%argument \newcommand*{\varglob}[1]{\texttt{\textcolor{DarkGreen}{#1}}}%variable globale \newcommand*{\true}{\val{true}\xspace}% \newcommand*{\false}{\val{false}\xspace}% \newcommand*{\nil}{\val{nil}\xspace}% \newcommand*{\drawcmd}{\emph{\textbackslash draw}\xspace}% \newcommand*{\luadrawenv}{\emph{luadraw}\xspace}% \begin{document} \maketitle \hfil{\Large Dessin 2D et 3D avec Lua et TikZ.}\hfil\par \hfil{\small \url{https://github.com/pfradin/luadraw}}\hfil\par \vspace*{2cm} \begin{small} \hfil\textbf{Résumé}\hfil\par Le paquet \luadrawenv définit l'environnement du même nom, celui-ci permet de créer des graphiques mathématiques en utilisant le langage Lua. Ces graphiques sont dessinés au final par TikZ (et automatiquement sauvegardés), alors pourquoi les faire en Lua ? Parce que celui-ci apporte toute la puissance d'un langage de programmation simple, efficace, capable de faire des calculs, tout en utilisant les possibilités graphiques de TikZ. \end{small}% %\include{body-fr/luadraw-doc-saisie.tex}% saisie d'une section ou sous-section seulement \clearpage% \setcounter{tocdepth}{3}% \setcounter{secnumdepth}{2}% \begin{multicols}{2} \tableofcontents \end{multicols} \listoffigures \renewcommand{\labelitemi}{$\bullet$} \renewcommand{\labelitemii}{--} \renewcommand{\labelitemiii}{$*$} %\renewcommand{\thechapter}{\Roman{chapter}} \renewcommand{\thesection}{\Roman{section}~} \renewcommand{\thesubsection}{\arabic{subsection})} \renewcommand{\thesubsubsection}{\arabic{subsection}.\arabic{subsubsection}} \renewcommand{\thefigure}{\arabic{figure}} \include{body-fr/luadraw-doc2d.tex} \include{body-fr/luadraw-doc3d.tex} \include{body-fr/luadraw-doc-Annexes.tex} \end{document}