Debian Codegraph @

texmf-dist/doc/generic/pst-solides3d/pst-solides3d-doc.tex

raw
1 %\RequirePackage{pdfmanagement-testphase}
2 %\DeclareDocumentMetadata{}
3
4 \listfiles % Writes out the package versions in the log file
5 \documentclass[%
6 11pt, % normal font size (default, alias for fontsize=11pt)
7 bibtotoc, % add unnumbered entry for the bibliography to the table
8 % of contents (deprecated, use: toc=bibliography or
9 % bibliography=totoc)
10 parskip=half-, % use one base line vertical inter-paragraph space and
11 % at least 1 em horizontal space at the end of paragraphs
12 % instead of indenting first line of paragraphs
13 twoside, % use twosided layout (default)
14 smallheadings, % use smaller font sizes for headings (but at least
15 % \normalsize) with less vertical above and below headings
16 % (deprecated, use: headings=small)
17 1.1headlines, % set head height to 1.1\baselineskip of \normalsize
18 % (deprecated, use: headlines=1.1)
19 french,english,
20 usegeometry,
21 ]{scrbook}
22
23
24 %\graphicspath{{images/}}
25 \usepackage[T1]{fontenc}
26 \usepackage[scale=0.95]{tgpagella}
27 \usepackage[scale=0.92]{tgheros}
28 \usepackage[scaled=0.83]{beramono}
29 \usepackage{amsmath,amssymb} % allows multiple maths-environments
30 %\usepackage{libertinus}
31 %\usepackage[scaled=0.9]{beramono}
32 \usepackage[a4paper,hmargin=2cm,vmargin=3cm]{geometry} % Flexible and complete interface to document dimensions
33 \usepackage{scrlayer-scrpage}
34 \pagestyle{scrheadings}
35
36 \usepackage{babel}
37 \usepackage{makeidx}
38 \makeindex
39 %\usepackage{lscape}
40
41 \usepackage{biblatex}
42 \addbibresource{pst-solides3d-doc.bib}
43
44
45 %\usepackage{arev}
46 %\usepackage{manfnt}
47 %\usepackage[garamond]{mathdesign}
48 %\renewcommand{\ttdefault}{lmtt}
49
50 \usepackage{multicol} % Intermix single and multiple columns
51 \usepackage{longtable} % Allows tables to flow over page boundaries
52 \usepackage{array} % Extending the array and tabular environments
53 \usepackage{arrayjob} % Management of arrays
54 \usepackage{url} % Verbatim with URL-sensitive line breaks
55 \usepackage{framed} % Framed or shaded regions that can break across pages
56 \usepackage{ragged2e}
57 \usepackage{paralist}
58
59
60 %%%%%%%
61 %%%%%%% Loading the necessary graphic packages
62 \usepackage[dvipsnames,svgnames,x11names,prologue,table]{pstricks} % Loads 'PSTricks' and xcolor
63
64 %\usepackage{animate}
65 \usepackage{showexpl} % Typesetting LaTeX source code
66 \usepackage{pst-plot} % Macros for plotting functions and data records
67 \usepackage{pst-eucl} % The 'pst-eucl' package allow the drawing of Euclidean geometric
68 % figures using LaTeX macros for specifying mathematical constraints.
69 % It is thus possible to build point using common transformations or intersections.
70 % The use of coordinates is limited to points which controlled the figure.
71 \usepackage{pst-solides3d} % The package is designed to draw solids in 3D perspective.
72 \let\PSTfileversion\fileversion
73 \let\PSTfiledate\filedate
74 \usepackage{pstricks-add} % A collection of add-ons and bugfixes for PSTricks.
75 % Allows 'algebraic notation' instead of the PostScript
76 % native RPN (Revers Polish Notation).
77 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
78 % Note: 'pstricks-add' always needs to be loaded last. %
79 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80
81 \DeclareFixedFont{\timesnormal}{T1}{ptm}{m}{n}{2cm}
82 \raggedbottom
83 \makeatletter
84 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
85 %% adapt\'{e} de \psRandom du package pstricks-add
86 %% pour rendre al\'{e}atoire la taille des \'{e}toiles
87 %% Manuel Luque
88 \newdimen\pssizeStar
89 \def\psset@sizeStar#1{\pssetlength\pssizeStar{#1}}
90 \psset@sizeStar{1pt}
91 \def\psRandomStar{\pst@object{psRandomStar}}%
92 \def\psRandomStar@i{\@ifnextchar({\psRandomStar@ii}{\psRandomStar@iii(0,0)(1,1)}}
93 \def\psRandomStar@ii(#1){\@ifnextchar({\psRandomStar@iii(#1)}{\psRandomStar@iii(0,0)(#1)}}
94 \def\psRandomStar@iii(#1)(#2)#3{%
95 \def\pst@tempA{#3}%
96 \ifx\pst@tempA\pst@empty\psclip{\psframe(#2)}\else\psclip{#3}\fi
97 \pst@getcoor{#1}\pst@tempA
98 \pst@getcoor{#2}\pst@tempB
99 \begin@SpecialObj
100 \addto@pscode{
101 \pst@tempA\space /yMin exch def
102 /xMin exch def
103 \pst@tempB\space /yMax exch def
104 /xMax exch def
105 /dy yMax yMin sub def
106 /dx xMax xMin sub def
107 rrand srand % initializes the random generator
108 /getRandReal { rand 2147483647 div } def
109 \psk@randomPoints {
110 /DS \pst@number\pssizeStar\space getRandReal mul def
111 \@nameuse{psds@\psk@dotstyle}
112 \ifPst@color getRandReal 1 1 sethsbcolor \fi
113 getRandReal dx mul xMin add
114 getRandReal dy mul yMin add
115 Dot
116 \ifx\psk@fillstyle\psfs@solid fill \fi stroke
117 } repeat
118 }%
119 \end@SpecialObj
120 \endpsclip
121 \ignorespaces
122 }
123
124
125 \renewcommand*\l@section{\bprot@dottedtocline{1}{1.5em}{2.5em}} % hv
126 \renewcommand*\l@subsection{\bprot@dottedtocline{2}{3.8em}{3.5em}}% hv
127
128
129 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
130 %% macro H.Voss sur :
131 %%http://tug.org/mailman/htdig/pstricks/2007/004640.html
132
133 \def\GetCenter#1{ tx@NodeDict begin /N@#1 load GetCenter end
134 \pst@number\psyunit div /#1.y ED
135 \pst@number\psxunit div /#1.x ED }
136 \makeatother
137
138 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
139 %% Jean-Michel Sarlat et Guillaume Connan
140 \newenvironment{gbar}{%
141 \def\FrameCommand{{\color{red}\vrule width 2pt}\colorbox{yellow!30}}%
142 \MakeFramed {\advance\hsize-\width \FrameRestore}}%
143 {\endMakeFramed}
144
145 %%%%%%% Highlight some expressions
146 \newcommand\Cadre[1]{\psframebox[fillstyle=solid,fillcolor=gray!20,linecolor=gray!20]{\texttt{#1}}}
147
148 %%%%%%%
149 %%%%%%% Box and highlight some notes
150 \newcommand\encadre[1]{
151 \psframebox[fillstyle=solid,fillcolor=gray!20,linecolor=gray!20]{
152 \begin{minipage}{\textwidth}
153 {\textbf{\textcolor{OrangeReddy}{Note:}}\qquad #1}
154 \end{minipage}}
155 }
156
157
158 %%%%%%%
159 %%%%%%% Highlight the table of the predefined solids
160 \newcommand\toptableau{%
161 \rowcolor{gray!20}
162 \textbf{Solid} & \begin{tabular}{c}
163 \textbf{Default}\\
164 \textbf{Parameters}
165 \end{tabular} &
166 \begin{minipage}{4cm}
167 \centerline{\textbf{View}}
168 \end{minipage}&
169 \begin{minipage}{4cm}
170 \centerline{\textbf{Code}}
171 \end{minipage}}
172 %%%%%%%
173 %%%%%%% Color array
174 \newarray\colors
175 \readarray{colors}{%
176 Apricot&Aquamarine&Bittersweet&Black&Blue&BlueGreen&BlueViolet&BrickRed&Brown&BurntOrange%
177 &CadetBlue&CarnationPink&Cerulean&CornflowerBlue&Cyan&Dandelion&DarkOrchid%
178 &Emerald&ForestGreen&Fuchsia&Goldenrod&Gray&Green&GreenYellow&JungleGreen%
179 &Lavender&LimeGreen&Magenta&Mahogany&Maroon&Melon&MidnightBlue&Mulberry%
180 &NavyBlue&OliveGreen&Orange&OrangeRed&Orchid&Peach&Periwinkle&PineGreen%
181 &Plum&ProcessBlue&Purple&RawSienna&Red&RedOrange&RedViolet&Rhodamine&RoyalBlue%
182 &RoyalPurple&RubineRed&Salmon&SeaGreen&Sepia&SkyBlue&SpringGreen&Tan&TealBlue%
183 &Thistle&Turquoise&Violet&VioletRed&White&WildStrawberry&Yellow&YellowGreen&YellowOrange}
184
185 \edef\colorfaces{}%
186 \multido{\i=0+1}{67}{%
187 \checkcolors(\i)
188 \xdef\colorfaces{\colorfaces\i\space(\cachedata)\space}}
189
190 \definecolor{bleuciel}{rgb}{0.78,0.84,0.99}
191 \definecolor{OrangeReddy}{rgb}{0.73,0.00,0.00}
192
193 %%%%%%%
194 %%%%%%% Highlight some commands with backslashes (the three macros)
195 \newcommand\bs[1]{%
196 \psframebox[fillstyle=solid,fillcolor=gray!20,
197 linecolor=gray!20]{\texttt{\textbackslash#1}}}
198
199 %%%%%%%
200 %%%%%%% Positioning the viewpoint
201 \def\PointEcran(#1,#2,#3)#4{% position of the viewpoint on the screen
202 \pstVerb{/xM #1 def /yM #2 def /zM #3 def
203 /kC dE dup mul xM xE mul yM yE mul zM zE mul add add sub
204 xV xE mul xM xE mul sub
205 yV yE mul yM yE mul sub add
206 zV zE mul zM zE mul sub add
207 div def
208 /x_E kC xV xM sub mul xM add def
209 /y_E kC yV yM sub mul yM add def
210 /z_E kC zV zM sub mul zM add def}%
211 \psPoint(x_E,y_E,z_E){#4}}
212
213
214 \def\datapath{data/}% ./data/
215 \def\inputpath{text/}% ..
216
217 \lstset{%
218 basicstyle=\ttfamily\footnotesize,
219 commentstyle=\color{PineGreen}\slshape\footnotesize,
220 showspaces=false,
221 showstringspaces=false,
222 breaklines=true,
223 backgroundcolor=\color{gray!20},
224 breakautoindent=true,
225 captionpos=t,
226 language=TeX,
227 emph={\begin,\codejps,\end},
228 emphstyle=\color{RoyalBlue},
229 emph={[2]pspicture},
230 emphstyle={[2]\color{OrangeReddy}},
231 numbersep=5pt,
232 preset=\centering,
233 rframe={}%
234 }
235
236 \usepackage[
237 % colors for the links
238 colorlinks=true, % color links
239 urlcolor=OrangeReddy, % color of URL links
240 filecolor=black, % color of file links
241 linkcolor=OrangeReddy, % color of links
242 % Links
243 %raiselinks=true, % raise up links (for HyperTeX backend)
244 % backref=page, % do bibliographical back refenrernces
245 % pagebackref=true, % back reference by page numbers
246 % verbose, % be chatty
247 % hyperindex=true, % set up hyperlink indices
248 linktocpage=true, % make page number, not text, be linked on TOC, LOF, LOT
249 % hyperfootnotes=false, % do not set up hyperlink footnotes
250 % Bookmarks
251 bookmarks=true, % Generating Bookmarks for the PDF-Viewer
252 % bookmarksopenlevel=1, % Level to which Bookmarks are opened
253 bookmarksopen=true, % Open up Bookmarks tree
254 % bookmarksnumbered=true, % Put section numbers in Bookmarks
255 %bookmarkstype=toc, % Specify which TOC file to mimic
256 % Anchors
257 % plainpages=false, % do not page number anchors as plain arabic
258 % pageanchor=true % put an anchor on every page
259 ]{hyperref}
260
261 %%%%%%%
262 %%%%%%% PDF Informations
263 \hypersetup{%
264 pdftitle={pst-solides3d - The Documentation}, % Text for the PDF title field
265 pdfauthor={Jean-Paul Vignault, Manuel Luque, Arnaud Schmittbuhl, Herbert Voss;}, % Text for the PDF author field
266 pdfcreator={LaTeX, hyperref, KOMA-Script}, % Text for the PDF creator field
267 %pdfproducer={pdfeTeX 1.10b-2.1} % Text for the PDF producer field
268 pdfstartview=FitH, % Fits the width of the page to the window.
269 pdfpagemode=UseOutlines, % Show Bookmarks in the Viewer
270 pdfpagelabels=true % set PDF page labels
271 }
272 %\usepackage{breakurl} % Line-breakable \url-like links in hyperref when compiling via dvips/ps2pdf
273
274 %%%%%%%%%%%%%%%%%%%%%%%%%%%%% Herbert %%%%%%%%%%%%%%%%%%%%%%%%%%
275 \pagestyle{scrheadings}
276 \ofoot{\pagemark}
277 \newcommand\Input[2][\inputpath]{\ifoot{{\footnotesize#2}}\input{#1#2}}
278 \def\Lcs#1{\texttt{\textbackslash#1}%
279 \index{#1@\texttt{\textbackslash#1}}%
280 \index{Macro!#1@\texttt{\textbackslash#1}}}
281 \def\Lenv#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Environment!#1@\texttt{#1}}}
282 \def\Lkeyword#1{\texttt{#1}%
283 \index{#1@\texttt{#1}}\index{Keyword!#1@\texttt{#1}}}
284 \def\Lkeyval#1{\texttt{#1}%
285 \index{#1@\texttt{#1}}\index{Value!#1@\texttt{#1}}}
286 \def\Index#1{#1\index{#1}}
287
288
289 %%%%%%%
290 %%%%%%% Title Page
291 \title{\texttt{pst-solides3d}:\\
292 The Documentation -- The Basics
293 \\[0.5cm]
294 {\normalsize v. \PSTfileversion\ (\PSTfiledate)}\\[20pt]
295 %\includegraphics[scale=0.6]{images/kepler}
296 }
297 \author{Jean-Paul Vignault\thanks{\protect\url{<[email protected]>}}
298 \and Manuel Luque\thanks{\protect\url{<[email protected]>}}
299 \and Arnaud Schmittbuhl\thanks{\protect\url{<[email protected]>}}
300 \and Jürgen Gilg\thanks{\protect\url{<[email protected]>}}
301 \and Jean-Michel Sarlat\thanks{\protect\url{<[email protected]>}}
302 \and Herbert Voß\thanks{\protect\url{<[email protected]>}}}
303 \date{\today}
304
305 \begin{document}
306 \maketitle
307
308 %\tableofcontents
309
310 \newpage
311
312
313 \chapter{Basics for the package}
314 \Input{chapter-1-en}
315
316 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
317 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
318
319
320 \chapter{Setting the layout of the scenery}
321 \Input{chapter-2-en}
322 \Input{par-eclairageponctuel-en}
323 \Input{par-axes3D-en}
324
325
326
327
328
329 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
330 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
331
332 \chapter{Predefined solids and their positioning}
333
334 \Input{par-solidespredefinis-en}
335 \Input{par-positionnersolide-en}
336
337 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
338 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
339
340
341
342 \chapter{More options of \textbackslash{}psSolid}
343 \Input{par-commandestrace-en}
344 \Input{par-solidescreux-en}
345 \Input{par-numeroterfacettes-en}
346 \Input{par-enleverfacettes-en}
347 \Input{par-pointagesommets-en}
348 \Input{par-couleurs-en}
349 \Input{par-colorierfacettes-en}
350 \Input{par-opacity-en}
351 \Input{par-definitionmaillage-en}
352
353 \Input{par-modes-en}
354
355 \Input{par-tronque-en}
356 \Input{par-affinage-en}
357 \Input{par-chanfrein-en}
358 \Input{par-transform-en}
359 \Input{par-lignedeniveau-en}
360 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
361
362
363
364 \chapter{Usage of external files}
365 \Input{par-datfile-en}
366
367 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
368
369 \chapter{Some special objects}
370 \Input{par-grille-en}
371 \Input{par-point-en}
372 \Input{par-vecteur-en}
373 \Input{par-plan-en}
374 \Input{par-geode-en}
375
376 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
377
378 \chapter{Generating some new solids}
379 \Input{par-codejps-en}
380 \Input{par-definirfonction-en}
381 \Input{par-courbeR3-en}
382 \Input{par-tube-en}
383 \Input{par-prisme-en}
384 \Input{par-new-en}
385 \Input{par-face-en}
386 \Input{par-ruban-en}
387 \Input{par-anneaux-en}
388 \Input{par-cylindres-cones-en}
389 \Input{par-surfacesparametrees-en}
390 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
391
392 \chapter{Surfaces defined by a function of the form $z=f(x,y)$}
393 \Input{par-surfaces-en}
394
395
396
397 \clearpage
398 \Input{par-implicitsurface-en}%% hc 2016-12-11
399
400 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
401
402 \chapter{Advanced usage}
403 \Input{par-nommersolide-en}
404 \Input{par-section-en}
405 \Input{par-fusion-en}
406 \Input{par-fusionjps-en}
407
408 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
409 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
410
411
412 \chapter{Interaction with PSTricks}
413
414 \Input{par-positionnerpointconnu-en}
415 \Input{par-ligne3D-en}
416 \Input{par-tracerpolygone-en}
417 \Input{par-transformpointconnu-en}
418 \Input{par-annoterschema-en}
419
420 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
421 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
422
423
424 \chapter{Projections}
425 \Input{par-projpresentation-en}
426 \Input{par-projectionvisibility-en}
427 \Input{par-definirplanquelconque-en}
428 \Input{par-projectionpoint-en}
429 \Input{par-projectionvecteur-en}
430
431 \Input{par-projectiondroite-en}
432
433
434
435
436 %\newpage
437 \Input{par-projectioncercle-en}
438 \Input{par-projectionpolygone-en}
439 \Input{par-projectionligne-en}
440 %\newpage
441 \Input{par-projectionangledroit-en}
442 \Input{par-projectioncourbe-en}
443 \Input{par-projectiontexte-en}
444
445
446
447 \Input{par-image2d-en}
448
449 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
450 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
451
452 \chapter{Possible extensions}
453 \Input{par-extensions-en}
454
455 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
456 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
457
458 \appendix
459 \chapter{Appendix}
460 \Input{par-parametres-en}
461 \Input{par-keywords-en}
462 \Input{par-acknowledgements-en}
463 \Input{par-poems-en}
464
465 \printindex
466
467 \nocite{*}
468 \bgroup
469 \RaggedRight
470 \printbibliography{pst-solides3d-doc}
471 \egroup
472
473 \end{document}