\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Vicnet} \pdfinfo{ /Title (openscad.pdf) /Creator (Cheatography) /Author (Vicnet) /Subject (OpenSCAD Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{4678B3} \definecolor{LightBackground}{HTML}{F3F6FA} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{OpenSCAD Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Vicnet} via \textcolor{DarkBackground}{\uline{cheatography.com/19532/cs/5965/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Vicnet \\ \uline{cheatography.com/vicnet} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 12th May, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{2D}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Using\_the\_2D\_Subsystem\#circle"\}\}circle\{\{/link\}\}(r=1 | d)} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Using\_the\_2D\_Subsystem\#square"\}\}square\{\{/link\}\}(size | {[}w,h{]}, {\emph{center}})} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Using\_the\_2D\_Subsystem\#polygon"\}\}polygon\{\{/link\}\}(points, {\emph{paths}}, {\emph{convexity}})} \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Using\_the\_2D\_Subsystem\#Text"\}\}text\{\{/link\}\}(str, size, font, halign, valign, spacing, dir, lang, script)} \tn % Row Count 13 (+ 4) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Importing\_Geometry\#import"\}\}import\{\{/link\}\}("...dxf|.svg")} \tn % Row Count 16 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Polygones réguliers: circle(r|d, \$fn=3|4|...)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{3D}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Primitive\_Solids\#sphere"\}\}sphere\{\{/link\}\}(r | d)} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Primitive\_Solids\#cylinder"\}\}cylinder\{\{/link\}\}(h, r | d, {\emph{center}})} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Primitive\_Solids\#cylinder"\}\}cylinder\{\{/link\}\}(h, r1 | d1, r2 | d2, {\emph{center}})} \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Primitive\_Solids\#cube"\}\}cube\{\{/link\}\}(size | {[}w,d,h{]}, {\emph{center}})} \tn % Row Count 12 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Primitive\_Solids\#polyhedron"\}\}polyhedron\{\{/link\}\}(points, faces, {\emph{convexity}})} \tn % Row Count 15 (+ 3) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Other\_Language\_Features\#Surface"\}\}surface\{\{/link\}\}("...dat|.png", {\emph{center}}, {\emph{invert}}, {\emph{convexity}})} \tn % Row Count 19 (+ 4) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Importing\_Geometry\#import"\}\}import\{\{/link\}\}("...stl")} \tn % Row Count 22 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{2D / 3D}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Using\_the\_2D\_Subsystem\#Linear\_Extrude"\}\}linear\_extrude\{\{/link\}\}(h, {\emph{center}}, {\emph{convexity}}, twist, slices, scale)} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Using\_the\_2D\_Subsystem\#3D\_to\_2D\_Projection"\}\}projection\{\{/link\}\}(cut)} \tn % Row Count 7 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Using\_the\_2D\_Subsystem\#Rotate\_Extrude"\}\}rotate\_extrude\{\{/link\}\}({\emph{convexity}})} \tn % Row Count 10 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{2e colonne}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Transformations}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Transformations\#translate"\}\}translate\{\{/link\}\}({[}x,y,z{]})} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Transformations\#rotate"\}\}rotate\{\{/link\}\}({[}x,y,z{]})} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Transformations\#scale"\}\}scale\{\{/link\}\}({[}x,y,z{]})} \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Transformations\#resize"\}\}resize\{\{/link\}\}({[}x,y,z{]}, auto | {[}autox,autoy,autoz{]})} \tn % Row Count 12 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Transformations\#offset"\}\}offset\{\{/link\}\}(r | delta, chamfer)} \tn % Row Count 15 (+ 3) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Transformations\#multmatrix"\}\}multmatrix\{\{/link\}\}(m)} \tn % Row Count 18 (+ 3) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Transformations\#mirror"\}\}mirror\{\{/link\}\}({[}x,y,z{]})} \tn % Row Count 21 (+ 3) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/Transformations\#color"\}\}color\{\{/link\}\}("name" | {[}r,g,b,a{]} | {[}r,g,b{]}, a)} \tn % Row Count 24 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{resize: auto calcule avec paramètres à 0} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Opérations}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{union()} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{difference()} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{intersection()} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{hull()} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{minkowski()} \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{3e colonne}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.69678 cm} x{4.28022 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Rendu}} \tn % Row 0 \SetRowColor{LightBackground} \$fa & angle minium \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \$fs & taille face minimum \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \$fn & nombre de faces \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \$t & timeur animation \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Affichage}} \tn % Row 0 \SetRowColor{LightBackground} * & ignore \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \# & debug \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \% & transparent \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} ! & ignore avant \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.9954 cm} x{3.9816 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Point de vue}} \tn % Row 0 \SetRowColor{LightBackground} \$vpr & rotation (°) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \$vpt & translation \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \$vpd & distance caméra \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Page suivante}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.88666 cm} x{2.09034 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Module}} \tn % Row 0 \SetRowColor{LightBackground} module {\emph{name}}(…) \{ … \} & déclaration \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{children({\emph{index}})} \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} \$children & nombre d'enfants \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} parent\_module(n) & nom module niveau n \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.4839 cm} x{1.4931 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Fonctions}} \tn % Row 0 \SetRowColor{LightBackground} function {\emph{name}}(…) = exp ; & \seqsplit{déclaration} \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.78712 cm} x{2.18988 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Librairies}} \tn % Row 0 \SetRowColor{LightBackground} include \textless{}….scad\textgreater{} & importe et exécute \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} use \textless{}….scad\textgreater{} & importe seulement \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{`File-\textgreater{}Show Library Folder...`} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{\{\{fa-folder-o\}\} `{\emph{installation}}/libraries`} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\{\{fa-folder-o\}\} \seqsplit{`\$HOME/.local/share/OpenSCAD/libraries`}} \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} \{\{fa-folder-o\}\} `OPENSCADPATH` & répertoires multiples : \tn % Row Count 9 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.68298 cm} x{1.29402 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Controles}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{if (...) \{ ... \}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} for (i = {[}start:incr:end{]} ) \{ ... \} & \seqsplit{intervalle} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} for (i = {[}x, x, ...{]} ) \{ ... \} & vecteur \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} intersection\_for( i = ...) \{ ... \} & évite union \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.38896 cm} x{2.58804 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Liste}} \tn % Row 0 \SetRowColor{LightBackground} {[} for (i = range|list) i {]} & génération \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {[} for (i = …) if (condition(i)) i {]} & condition \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {[} for (i = …) let(assign) a {]} & \{\{link="https://en.wikibooks.org/wiki/OpenSCAD\_User\_Manual/List\_Comprehensions\#let"\}\}assignement\{\{/link\}\} \tn % Row Count 10 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{2e colonne}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.18528 cm} x{1.79172 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Chaines}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{chr(n)} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{len(str)} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} search(value, str) & index \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} str(str, str, ...) & concatène \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.03597 cm} x{1.94103 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Basique}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{variable = expression;} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{let(name = expression)} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} // ~ /{\emph{ ...}}/ & commentaire \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 9.99 | 1.2e20 | PI & nombre \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} true | false & booléen \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} "..." & chaine \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} {[}exp, ...{]} & vecteur \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} {[}start:incr:end{]} & interval \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} undef & indéfini \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} + | - | * | / | \% & scalaire \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} + | - | * | / & vecteur ou matrice \tn % Row Count 12 (+ 2) % Row 11 \SetRowColor{white} == | != | \textless{} | \textless{}= | \textgreater{} | \textgreater{}= & relation \tn % Row Count 14 (+ 2) % Row 12 \SetRowColor{LightBackground} \&\& | || & logique \tn % Row Count 15 (+ 1) % Row 13 \SetRowColor{white} boolexp ? trueexp : falseexp & conditionnel \tn % Row Count 17 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.13551 cm} x{1.84149 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Système}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{echo(list)} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} version() & vecteur \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} vector\_num() & nombre \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{3e colonne}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.23965 cm} x{2.73735 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vecteurs}} \tn % Row 0 \SetRowColor{LightBackground} concat(v1, v2, ...) & concatène vecteurs \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} concat(x, x, ...) & crée un vecteur \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} cross(v, w) & produit vectoriel \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{len(v)} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} lookup(key, v) & valeur ou interpolation \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{max(v)} \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{min(v)} \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} norm(v) & longueur \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} search(value, v) & index \tn % Row Count 11 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.08574 cm} x{1.89126 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Mathématique}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{abs(x)} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} sign(x) & -1, 0, 1 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} round(x) & plus proche \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} ceil(x) & supérieur \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} floor(x) & inférieur \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{exp(x)} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{log(x)} \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{ln(x)} \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{max(x, x, ...)} \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{min(x, x, ...)} \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} \% & modulo \tn % Row Count 11 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{pow(x,y)} \tn % Row Count 12 (+ 1) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{sqrt(x)} \tn % Row Count 13 (+ 1) % Row 13 \SetRowColor{white} rands(min, max, n, {\emph{seed}}) & vecteur taille n \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Trigonométrie}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{cos(deg)} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{sin(deg)} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{tan(deg)} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} acos(x) & en degrés \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} asin(x) & en degrés \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} atan(x) & en degrés \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} atan2(x,y) & en degrés \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}