From: Maxime Chupin Date: Mon, 5 Sep 2011 23:53:50 +0000 (+0100) Subject: Ajout de la rubrique divers dans exemples, 1 exemple. X-Git-Url: https://melusine.eu.org/syracuse/G/git/?a=commitdiff_plain;h=4082d0b68a58b6de2eb7e39c56acc71397f7f4c0;p=mp-gdd.git Ajout de la rubrique divers dans exemples, 1 exemple. --- diff --git a/doc/mp-gdd-doc.log b/doc/mp-gdd-doc.log index 8fa8021..3d0f21d 100644 --- a/doc/mp-gdd-doc.log +++ b/doc/mp-gdd-doc.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011) (format=pdflatex 2011.8.8) 21 AUG 2011 10:02 +This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011) (format=pdflatex 2011.8.8) 23 AUG 2011 21:05 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -442,6 +442,31 @@ Package: multicol 2011/06/27 v1.7a multicolumn formatting (FMi) \colbreak@box=\box51 \multicol@sort@counter=\count98 ) +(/usr/local/texlive/2011/texmf-dist/tex/latex/listings/listings.sty +\lst@mode=\count99 +\lst@gtempboxa=\box52 +\lst@token=\toks19 +\lst@length=\count100 +\lst@currlwidth=\dimen119 +\lst@column=\count101 +\lst@pos=\count102 +\lst@lostspace=\dimen120 +\lst@width=\dimen121 +\lst@newlines=\count103 +\lst@lineno=\count104 +\lst@maxwidth=\dimen122 + +(/usr/local/texlive/2011/texmf-dist/tex/latex/listings/lstmisc.sty +File: lstmisc.sty 2007/02/22 1.4 (Carsten Heinz) +\c@lstnumber=\count105 +\lst@skipnumbers=\count106 +\lst@framebox=\box53 +) +(/usr/local/texlive/2011/texmf-dist/tex/latex/listings/listings.cfg +File: listings.cfg 2007/02/22 1.4 listings configuration +)) +Package: listings 2007/02/22 1.4 (Carsten Heinz) + (/usr/local/texlive/2011/texmf-dist/tex/latex/mflogo/mflogo.sty Package: mflogo 1999/03/10 v2.0 LaTeX package for Metafont and MetaPost logos ) @@ -453,17 +478,17 @@ Language: frenchb 2009/03/16 v2.3d French support from the babel system (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/babel.def File: babel.def 2008/07/08 v3.8m Babel common definitions -\babel@savecnt=\count99 -\U@D=\dimen119 +\babel@savecnt=\count107 +\U@D=\dimen123 ) Package babel Info: Making : an active character on input line 120. Package babel Info: Making ; an active character on input line 121. Package babel Info: Making ! an active character on input line 122. Package babel Info: Making ? an active character on input line 123. -\FB@Mht=\dimen120 -\std@mcc=\count100 -\dec@mcc=\count101 -\parindentFFN=\dimen121 +\FB@Mht=\dimen124 +\std@mcc=\count108 +\dec@mcc=\count109 +\parindentFFN=\dimen125 ************************************* * Local config file frenchb.cfg used @@ -473,32 +498,32 @@ Package babel Info: Making ? an active character on input line 123. (./mp-gdd-doc.aux) \openout1 = `mp-gdd-doc.aux'. -LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 16. -LaTeX Font Info: ... okay on input line 16. -LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 16. -LaTeX Font Info: ... okay on input line 16. -LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 16. -LaTeX Font Info: ... okay on input line 16. -LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 16. -LaTeX Font Info: ... okay on input line 16. -LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 16. -LaTeX Font Info: ... okay on input line 16. -LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 16. -LaTeX Font Info: ... okay on input line 16. -LaTeX Font Info: Checking defaults for MDA/cmr/m/n on input line 16. -LaTeX Font Info: Try loading font information for MDA+cmr on input line 16. +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 17. +LaTeX Font Info: ... okay on input line 17. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 17. +LaTeX Font Info: ... okay on input line 17. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 17. +LaTeX Font Info: ... okay on input line 17. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 17. +LaTeX Font Info: ... okay on input line 17. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 17. +LaTeX Font Info: ... okay on input line 17. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 17. +LaTeX Font Info: ... okay on input line 17. +LaTeX Font Info: Checking defaults for MDA/cmr/m/n on input line 17. +LaTeX Font Info: Try loading font information for MDA+cmr on input line 17. (/usr/local/texlive/2011/texmf-dist/tex/latex/mathdesign/mdacmr.fd File: mdacmr.fd ) -LaTeX Font Info: ... okay on input line 16. -LaTeX Font Info: Checking defaults for MDB/cmr/m/n on input line 16. -LaTeX Font Info: Try loading font information for MDB+cmr on input line 16. +LaTeX Font Info: ... okay on input line 17. +LaTeX Font Info: Checking defaults for MDB/cmr/m/n on input line 17. +LaTeX Font Info: Try loading font information for MDB+cmr on input line 17. (/usr/local/texlive/2011/texmf-dist/tex/latex/mathdesign/mdbcmr.fd File: mdbcmr.fd ) -LaTeX Font Info: ... okay on input line 16. +LaTeX Font Info: ... okay on input line 17. *geometry* driver: auto-detecting *geometry* detected driver: pdftex @@ -534,134 +559,147 @@ LaTeX Font Info: ... okay on input line 16. * \@reversemarginfalse * (1in=72.27pt=25.4mm, 1cm=28.453pt) -LaTeX Info: Redefining \degres on input line 16. -LaTeX Info: Redefining \dots on input line 16. -LaTeX Info: Redefining \up on input line 16. +\c@lstlisting=\count110 +LaTeX Info: Redefining \degres on input line 17. +LaTeX Info: Redefining \dots on input line 17. +LaTeX Info: Redefining \up on input line 17. LaTeX Font Info: Font shape `T1/mdbch/m/n' will be -(Font) scaled to size 13.82408pt on input line 18. +(Font) scaled to size 13.82408pt on input line 19. LaTeX Font Info: Font shape `T1/mdbch/bx/n' in size <14.4> not available -(Font) Font shape `T1/mdbch/b/n' tried instead on input line 18. +(Font) Font shape `T1/mdbch/b/n' tried instead on input line 19. LaTeX Font Info: Font shape `T1/mdbch/b/n' will be -(Font) scaled to size 13.82408pt on input line 18. +(Font) scaled to size 13.82408pt on input line 19. LaTeX Font Info: Font shape `T1/cmtt/m/n' will be -(Font) scaled to size 10.74997pt on input line 20. -LaTeX Font Info: Try loading font information for U+logo on input line 20. +(Font) scaled to size 10.74997pt on input line 21. +LaTeX Font Info: Try loading font information for U+logo on input line 21. (/usr/local/texlive/2011/texmf-dist/tex/latex/mflogo/ulogo.fd File: ulogo.fd 1999/03/10 v2.0 LaTeX font defs for Metafont and MetaPost logos ) LaTeX Font Info: Font shape `T1/mdbch/m/fsc' will be -(Font) scaled to size 9.60007pt on input line 40. +(Font) scaled to size 9.60007pt on input line 41. LaTeX Font Info: Font shape `OT1/mdbch/m/n' will be -(Font) scaled to size 6.72005pt on input line 53. +(Font) scaled to size 6.72005pt on input line 54. LaTeX Font Info: Font shape `OT1/mdbch/m/n' will be -(Font) scaled to size 4.80003pt on input line 53. -LaTeX Font Info: Try loading font information for OML+mdbch on input line 53 +(Font) scaled to size 4.80003pt on input line 54. +LaTeX Font Info: Try loading font information for OML+mdbch on input line 54 . (/usr/local/texlive/2011/texmf-dist/tex/latex/mathdesign/mdbch/omlmdbch.fd File: omlmdbch.fd 2006/01/28 Fontinst v1.928 font definitions for OML/mdbch. ) LaTeX Font Info: Font shape `OML/mdbch/m/it' will be -(Font) scaled to size 9.60007pt on input line 53. +(Font) scaled to size 9.60007pt on input line 54. LaTeX Font Info: Font shape `OML/mdbch/m/it' will be -(Font) scaled to size 6.72005pt on input line 53. +(Font) scaled to size 6.72005pt on input line 54. LaTeX Font Info: Font shape `OML/mdbch/m/it' will be -(Font) scaled to size 4.80003pt on input line 53. -LaTeX Font Info: Try loading font information for OMS+mdbch on input line 53 +(Font) scaled to size 4.80003pt on input line 54. +LaTeX Font Info: Try loading font information for OMS+mdbch on input line 54 . (/usr/local/texlive/2011/texmf-dist/tex/latex/mathdesign/mdbch/omsmdbch.fd File: omsmdbch.fd 2006/01/28 Fontinst v1.928 font definitions for OMS/mdbch. ) LaTeX Font Info: Font shape `OMS/mdbch/m/n' will be -(Font) scaled to size 9.60007pt on input line 53. +(Font) scaled to size 9.60007pt on input line 54. LaTeX Font Info: Font shape `OMS/mdbch/m/n' will be -(Font) scaled to size 6.72005pt on input line 53. +(Font) scaled to size 6.72005pt on input line 54. LaTeX Font Info: Font shape `OMS/mdbch/m/n' will be -(Font) scaled to size 4.80003pt on input line 53. -LaTeX Font Info: Try loading font information for OMX+mdbch on input line 53 +(Font) scaled to size 4.80003pt on input line 54. +LaTeX Font Info: Try loading font information for OMX+mdbch on input line 54 . (/usr/local/texlive/2011/texmf-dist/tex/latex/mathdesign/mdbch/omxmdbch.fd File: omxmdbch.fd 2006/01/28 Fontinst v1.928 font definitions for OMX/mdbch. ) LaTeX Font Info: Font shape `OMX/mdbch/m/n' will be -(Font) scaled to size 9.60007pt on input line 53. +(Font) scaled to size 9.60007pt on input line 54. LaTeX Font Info: Font shape `OMX/mdbch/m/n' will be -(Font) scaled to size 6.72005pt on input line 53. +(Font) scaled to size 6.72005pt on input line 54. LaTeX Font Info: Font shape `OMX/mdbch/m/n' will be -(Font) scaled to size 4.80003pt on input line 53. +(Font) scaled to size 4.80003pt on input line 54. LaTeX Font Info: Font shape `OML/mdbch/m/n' will be -(Font) scaled to size 9.60007pt on input line 53. +(Font) scaled to size 9.60007pt on input line 54. LaTeX Font Info: Font shape `OML/mdbch/m/n' will be -(Font) scaled to size 6.72005pt on input line 53. +(Font) scaled to size 6.72005pt on input line 54. LaTeX Font Info: Font shape `OML/mdbch/m/n' will be -(Font) scaled to size 4.80003pt on input line 53. -LaTeX Font Info: Try loading font information for MDA+mdbch on input line 53 +(Font) scaled to size 4.80003pt on input line 54. +LaTeX Font Info: Try loading font information for MDA+mdbch on input line 54 . (/usr/local/texlive/2011/texmf-dist/tex/latex/mathdesign/mdbch/mdamdbch.fd File: mdamdbch.fd 2006/01/28 Fontinst v1.928 font definitions for MDA/mdbch. ) LaTeX Font Info: Font shape `MDA/mdbch/m/n' will be -(Font) scaled to size 9.60007pt on input line 53. +(Font) scaled to size 9.60007pt on input line 54. LaTeX Font Info: Font shape `MDA/mdbch/m/n' will be -(Font) scaled to size 6.72005pt on input line 53. +(Font) scaled to size 6.72005pt on input line 54. LaTeX Font Info: Font shape `MDA/mdbch/m/n' will be -(Font) scaled to size 4.80003pt on input line 53. -LaTeX Font Info: Try loading font information for MDB+mdbch on input line 53 +(Font) scaled to size 4.80003pt on input line 54. +LaTeX Font Info: Try loading font information for MDB+mdbch on input line 54 . (/usr/local/texlive/2011/texmf-dist/tex/latex/mathdesign/mdbch/mdbmdbch.fd File: mdbmdbch.fd 2006/01/28 Fontinst v1.928 font definitions for MDB/mdbch. ) LaTeX Font Info: Font shape `MDB/mdbch/m/n' will be -(Font) scaled to size 9.60007pt on input line 53. +(Font) scaled to size 9.60007pt on input line 54. LaTeX Font Info: Font shape `MDB/mdbch/m/n' will be -(Font) scaled to size 6.72005pt on input line 53. +(Font) scaled to size 6.72005pt on input line 54. LaTeX Font Info: Font shape `MDB/mdbch/m/n' will be -(Font) scaled to size 4.80003pt on input line 53. +(Font) scaled to size 4.80003pt on input line 54. LaTeX Font Info: Font shape `T1/mdbch/m/n' will be -(Font) scaled to size 6.72005pt on input line 53. +(Font) scaled to size 6.72005pt on input line 54. LaTeX Font Info: Font shape `T1/mdbch/m/n' will be -(Font) scaled to size 7.68005pt on input line 54. +(Font) scaled to size 7.68005pt on input line 55. +LaTeX Font Info: Font shape `T1/cmtt/m/n' will be +(Font) scaled to size 8.59998pt on input line 55. +LaTeX Font Info: Font shape `T1/mdbch/m/it' will be +(Font) scaled to size 9.60007pt on input line 74. +LaTeX Font Info: Font shape `T1/mdbch/bx/n' in size <10> not available +(Font) Font shape `T1/mdbch/b/n' tried instead on input line 82. +LaTeX Font Info: Font shape `T1/mdbch/b/n' will be +(Font) scaled to size 9.60007pt on input line 82. +LaTeX Font Info: Font shape `T1/cmtt/bx/n' in size <10> not available +(Font) Font shape `T1/cmtt/m/n' tried instead on input line 82. LaTeX Font Info: Font shape `T1/cmtt/m/n' will be -(Font) scaled to size 8.59998pt on input line 54. +(Font) scaled to size 10.74997pt on input line 82. LaTeX Font Info: Font shape `T1/mdbch/m/n' will be -(Font) scaled to size 11.52008pt on input line 74. +(Font) scaled to size 11.52008pt on input line 97. LaTeX Font Info: Font shape `T1/mdbch/bx/n' in size <12> not available -(Font) Font shape `T1/mdbch/b/n' tried instead on input line 74. +(Font) Font shape `T1/mdbch/b/n' tried instead on input line 97. LaTeX Font Info: Font shape `T1/mdbch/b/n' will be -(Font) scaled to size 11.52008pt on input line 74. +(Font) scaled to size 11.52008pt on input line 97. LaTeX Font Info: Font shape `T1/cmtt/bx/n' in size <12> not available -(Font) Font shape `T1/cmtt/m/n' tried instead on input line 74. +(Font) Font shape `T1/cmtt/m/n' tried instead on input line 97. LaTeX Font Info: Font shape `T1/cmtt/m/n' will be -(Font) scaled to size 12.89996pt on input line 74. +(Font) scaled to size 12.89996pt on input line 97. [1 {/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./mp-gdd-doc.aux) ) Here is how much of TeX's memory you used: - 3134 strings out of 493629 - 42964 string characters out of 3143345 - 95813 words of memory out of 3000000 - 6377 multiletter control sequences out of 15000+200000 - 35813 words of font info for 59 fonts, out of 3000000 for 9000 + 4738 strings out of 493629 + 63991 string characters out of 3143345 + 117940 words of memory out of 3000000 + 7964 multiletter control sequences out of 15000+200000 + 41656 words of font info for 65 fonts, out of 3000000 for 9000 831 hyphenation exceptions out of 8191 - 29i,5n,32p,229b,157s stack positions out of 5000i,500n,10000p,200000b,50000s + 29i,5n,32p,229b,964s stack positions out of 5000i,500n,10000p,200000b,50000s {/usr/local/texlive/2011/texmf-dist/fonts/enc/dvips/cm-supe r/cm-super-t1.enc}{/usr/local/texlive/2011/texmf-dist/fonts/enc/dvips/ly1/texna nsi.enc}< -/usr/local/texlive/2011/texmf-dist/fonts/type1/public/cm-super/sftt0800.pfb> -Output written on mp-gdd-doc.pdf (1 page, 92008 bytes). +b> + +Output written on mp-gdd-doc.pdf (1 page, 101414 bytes). PDF statistics: - 34 PDF objects out of 1000 (max. 8388607) - 24 compressed objects within 1 object stream + 42 PDF objects out of 1000 (max. 8388607) + 30 compressed objects within 1 object stream 0 named destinations out of 1000 (max. 500000) 1 words of extra memory for PDF output out of 10000 (max. 10000000) diff --git a/doc/mp-gdd-doc.pdf b/doc/mp-gdd-doc.pdf index 1c01130..364c0ae 100644 Binary files a/doc/mp-gdd-doc.pdf and b/doc/mp-gdd-doc.pdf differ diff --git a/doc/mp-gdd-doc.tex b/doc/mp-gdd-doc.tex index b9ac1d4..daac74d 100644 --- a/doc/mp-gdd-doc.tex +++ b/doc/mp-gdd-doc.tex @@ -4,6 +4,7 @@ \usepackage[margin=2.5cm]{geometry} \usepackage{xspace} \usepackage{multicol} +\usepackage{listings} \usepackage{mflogo} \usepackage[frenchb]{babel} @@ -69,6 +70,28 @@ toutes ces tables n'est pas chose courante. \section{Les types} +On peut, avec \mpgdd, construire plusieurs types +d'objets. Rappelons le, tout est \emph{objet} dont le nombre est +enregistré dans la variable \variable{gddO}. Le type d'objet, lui, est +stocké dans la table \variable{gddT[]}, et les tables \variable{gddA[]} +à \variable{gddF[]} contiennent les propriétés des objets. + +Nous allons ici décrire chaque type de l'extension \mpgdd ainsi que +leurs propriétés respectives. + +\paragraph{Le type \typeGDD{point}} Ce type est correspond au point de +l'espace euclidien. Pour être plus clair voici la fonction principale +pour créer un tel objet : + +\begin{lstlisting} +vardef Point(expr a,b) = + gddT[incr gddO] = "point"; + gddA[gddO] = a; gddB[gddO] = b; gddO +enddef; +\end{lstlisting} + + + \section{Fonctions générales} \subsection{Relatives aux \typeGDD{Point}s} diff --git a/exemples/divers/LISTE.txt b/exemples/divers/LISTE.txt new file mode 100644 index 0000000..5fa7d91 --- /dev/null +++ b/exemples/divers/LISTE.txt @@ -0,0 +1,8 @@ +fonction1-1.png +fonction2-1.png +== Les sources +fonction1.mp +fonction2.mp +== Les PDF +fonction1-1.pdf +fonction2-1.pdf \ No newline at end of file diff --git a/exemples/divers/brach-1.pdf b/exemples/divers/brach-1.pdf new file mode 100644 index 0000000..efb1dcf Binary files /dev/null and b/exemples/divers/brach-1.pdf differ diff --git a/exemples/divers/brach-1.png b/exemples/divers/brach-1.png new file mode 100644 index 0000000..1687464 Binary files /dev/null and b/exemples/divers/brach-1.png differ diff --git a/exemples/divers/brach.mp b/exemples/divers/brach.mp new file mode 100644 index 0000000..c7e857d --- /dev/null +++ b/exemples/divers/brach.mp @@ -0,0 +1,64 @@ +input gdd; +input gdd-rep; +input gdd-lbl; +input gdd-tra; +input gdd-fct; +input gdd-plt; +input gdd-arc; +input svgnames; + +lblPreambule := "\usepackage[frenchb]{babel}" & + "\usepackage[charter]{mathdesign}"; + +color darkred,darkblue; +darkred=(.6,0,0); +darkblue=(0,0,.6); + +labeloffset := 6; +gddTaillePoint := 3; +gddCouleurPoint := (1,1,1); + + +% la cycloide +vardef f(expr t)= + t-sin(t) +enddef; +vardef g(expr t)= + cos(t)-1 +enddef; + + +beginfig(1); + Repere(6,4,1,3,1,1); + Axes; + Debut; + Axes; + Graduations; Unites(2); + + A = Point(0,0); + B = Point(f(3),g(3)); + C = Point(2.4,-1); + M = Point(f(2.4),g(2.4)); + N = Point(2.4,0); + C1 = Cercle(C,1); + trace Arc(C,.3,Pi/2,Pi/2+2.4); + trace Droite((2.4,0),C) dashed evenly; + trace Courbe(f,g,0,3,500) withcolor darkred withpen pencircle scaled 1pt; + trace Courbe(f,g,3,4.5,100) dashed evenly; + trace Courbe(f,g,-2,0,100) dashed evenly; + trace C1; + trace Segment(C,M); + trace Arc(C,1,Pi/2,Pi/2+2.4) withcolor darkblue withpen pencircle scaled .7pt; + trace Segment(A,N) withcolor darkblue withpen pencircle scaled .7pt; + + marque.rt "C"; + marque.llft "M"; + pointe(N); + label.urt(TEX("$N$"),PtR(N)); + label.ulft(TEX("$\theta$"),PtR(C)+.2*gddU*(cos(Pi/2+1.2),sin(Pi/2+1.2))); + gddCouleurPoint := Yellow; + marque.urt "A"; + marque.llft "B"; + Fin; +endfig; +end \ No newline at end of file diff --git a/exemples/divers/index.xml b/exemples/divers/index.xml new file mode 100644 index 0000000..e6d6506 --- /dev/null +++ b/exemples/divers/index.xml @@ -0,0 +1,3 @@ + + mp-gdd – Divers + \ No newline at end of file diff --git a/exemples/divers/vue.xml b/exemples/divers/vue.xml new file mode 100644 index 0000000..b08ca69 --- /dev/null +++ b/exemples/divers/vue.xml @@ -0,0 +1 @@ + \ No newline at end of file