Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
Hi Michael, Thank you for your help but it does not work, maybe a problem with the Emacs shell. Running `ConTeXt' on `ntg32' with ``context --once --texutil --nonstop ntg32.tex'' resolvers | trees | analyzing 'home:texmf' mtx-context | run 1: luatex --fmt="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en" --interaction="nonstopmode" --jobname="ntg32" --lua="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg32.tex" --c:input="./ntg32.tex" --c:kindofrun=3 --c:maxnofruns=1 --c:nonstopmode --c:once --c:texutil "cont-yes.mkiv" This is LuaTeX, Version 0.95.0 (TeX Live 2016) system commands enabled. resolvers > trees > analyzing 'home:texmf' open source > 1 > 1 > /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv ConTeXt ver: 2016.05.17 19:20 MKIV current fmt: 2016.10.29 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv close source> 2 > 2 > /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv system > files > jobname 'ntg32', input './ntg32', result 'ntg32' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/fab/ntg32.tex fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded backend > xmp > using file '/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 close source> 2 > 3 > /home/fab/ntg32.tex close source> 1 > 3 > /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv mkiv lua stats > used config file: selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua mkiv lua stats > used cache path: /home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9 mkiv lua stats > resource resolver: loadtime 0.104 seconds, 1 scans with scantime 0.021 seconds, 0 shared scans, 9 found files, scanned paths: /home/fab/texmf mkiv lua stats > stored bytecode data: 387 modules (0.366 sec), 82 tables (0.011 sec), 469 chunks (0.377 sec) mkiv lua stats > traced context: maxstack: 1176, freed: 1, unreachable: 1175 mkiv lua stats > cleaned up reserved nodes: 47 nodes, 9 lists of 444 mkiv lua stats > node memory usage: 15 glue, 2 penalty, 22 attribute, 38 glue_spec, 8 attribute_list, 2 temp mkiv lua stats > node list callback tasks: 6 unique task lists, 5 instances (re)created, 32 calls mkiv lua stats > used backend: pdf (backend for directly generating pdf output)mkiv lua stats > jobdata time: 0.001 seconds saving, 0.001 seconds loading mkiv lua stats > callbacks: 136 direct, 245 indirect, 381 total mkiv lua stats > randomizer: resumed with value 0.17602822472156 mkiv lua stats > positions: 13 collected, 8 regulars, 5 regions, 0 unresolved regions mkiv lua stats > loaded patterns: en::2, load time: 0.000 mkiv lua stats > result saved in file: ntg32.pdf, compresslevel 3, objectcompresslevel 3 mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf mkiv lua stats > font engine: otf 3.020, afm 1.512, tfm 1.000, 4 instances, load time 0.161 seconds mkiv lua stats > used platform: linux-64, type: unix, binary subtree: bin mkiv lua stats > luatex banner: this is luatex, version 0.95.0 (tex live 2016)mkiv lua stats > control sequences: 43813 of 65536 + 10 mkiv lua stats > lua properties: engine: lua, used memory: 78 MB (ctx: 77 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.587 seconds, 1 processed pages, 1 shipped pages, 1.704 pages/second system | total runtime: 0.831 seconds TeX Output finished at Sun Oct 30 10:09:20 Fabrice 2016-10-30 2:36 GMT+02:00 Michael Eidenbenz <eidenb...@arch.ethz.ch>: > the command should be: > > (eval-after-load "tex" > '(add-to-list 'TeX-command-list > '("context" > "source /home/fab/context/tex/setuptex && context" > TeX-run-TeX > nil > (context-mode) > :help "Run ConTeXt") t)) > > > > > > > On 29 Oct 2016, at 23:41, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > > > Hi, > > @Tobias > > > > If I add this to my .emacs I get > > > > (s
Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
Hi, @Tobias If I add this to my .emacs I get (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t) (add-to-list 'load-path "/home/fab/context/tex/texmf-linux-64/bin/context") Warning (initialization): An error occurred while loading `/home/fab/.emacs': Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin @Michael fab@debian:~$ which context /home/fab/bin/context fab@debian:~$ source context/tex/setuptex Setting "/home/fab/context/tex" as ConTeXt root. fab@debian:~$ which context /home/fab/context/tex/texmf-linux-64/bin/context fab@debian:~$ If I add this to my .emacs is always texlive 2016 is invoked when I compile (eval-after-load "tex" '(add-to-list 'TeX-command-list '("context" "(/home/fab/context)/setuptex&" TeX-run-TeX nil (context-mode) :help "Run ConTeXt") t)) Thanks, Fabrice 2016-10-29 12:50 GMT+02:00 Michael Eidenbenz: > sorry that should be: > > (path to textree)/setuptex && context . > > > > cd (path to textree) && setuptex && context etc... > > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
Hi, If I add this (add-to-list 'load-path "/home/fab/context/tex/texmf-linux-64/bin") in the .emacs, one C-c C-c invokes the executable texlive, not the context of standalone. Fabrice 2016-10-29 1:23 GMT+02:00 Michael Eidenbenz <eidenb...@arch.ethz.ch>: > you can add any TeX command (the ones you call with C-c C-c) to your > init.el like this: > > '(add-to-list 'TeX-command-list > '("contex" > "context %t --nonstopmode --purgeall" % change the > command to your needs > TeX-run-TeX > nil > (context-mode) > :help "Run ConTeXt") > t)) > > I run emacs25 and auctex 11.89.5 without problems. > although i use auctex only for C-c C-c. > > Michael > > > On 28 Oct 2016, at 23:57, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > Hi Mica, > I added this (custom-set-variables ' (ConTeXt-Mark-version "IV")) in my > .emacs and it seems to work, thank you. > Another question : when I do a C-c C-c is texlive context of 2016 is > called. How to be it standalone context ? > Fabrice > > 2016-10-28 19:07 GMT+02:00 Mica Semrick <m...@silentumbrella.com>: > >> I haven't checked in a while, since this is already set in my init.el >> file, but auxtex was using mkii/texexec a few years ago. Have you checked >> you're using mkiv/context? >> >> On October 28, 2016 6:04:27 AM PDT, Fabrice Couvreur < >> fabrice1.couvr...@gmail.com> wrote: >> >>> Hello, >>> I just upgraded to emacs24 and am having problems compiling my files who >>> compiled perfectly with emacs23. >>> I installed AUCTeX with M-x-install package and that's it ! >>> I deleted my old init.el file and start over ! >>> The ~/.emacs.d only contains this : >>> >>> fab @ debian: ~ $ cd .emacs.d / >>> fab @ debian: ~ / .emacs.d $ ls -l >>> total 8 >>> drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list >>> drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA >>> fab @ debian: ~ / $ .emacs.d >>> >>> Consider the following file: >>> If I make a C-c C-c, all I get is the text in italics, the macro is not >>> compiled. >>> Thanks, >>> Fabrice >>> >>> % macros=mkvi >>> >>> \setupcolors[state=start] >>> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] >>> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] >>> >>> >>> \defineframedtext >>> [MyDefinition] >>> [before={\blank[line,halfline]}, >>>after={\blank}, >>>frame=off, >>>background=MyFrame, >>>width=\textwidth, >>>height=fit, >>>location=left, >>>style=italic] >>> >>> \defineoverlay >>> [MyFrame] >>> [\useMPgraphic{MyFrame}] >>> >>> \definelabel >>> [Définition] >>> [headstyle=\bf\smallcaps] >>> >>> \startuseMPgraphic{MyFrame} >>> path b ; >>> picture p ; >>> p := textext.rt("\white\Définition") ; >>> p := p shifted (2BodyFontSize,OverlayHeight-ypart center >>> p+.25ExHeight) ; >>> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; >>> fill OverlayBox withcolor \MPcolor{MyColorA} ; >>> fill b withcolor \MPcolor{MyColorB} ; >>> draw leftboundary OverlayBox ; >>> draw p ; >>> setbounds currentpicture to OverlayBox ; >>> \stopuseMPgraphic >>> >>> \starttext >>> \startMyDefinition >>> \input knuth >>> \stopMyDefinition >>> >>> \stoptext >>> >>> %%% Local Variables: >>> %%% mode: context >>> %%% End: >>> >>> -- >>> >>> If your question is of interest to others as well, please add an entry to >>> the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> wiki : http://contextgarden.net >>> -- >>> >>> >> >> ___ >> If your question is of interest to others as well, please add an entry t
Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
Hi Mica, I added this (custom-set-variables ' (ConTeXt-Mark-version "IV")) in my .emacs and it seems to work, thank you. Another question : when I do a C-c C-c is texlive context of 2016 is called. How to be it standalone context ? Fabrice 2016-10-28 19:07 GMT+02:00 Mica Semrick <m...@silentumbrella.com>: > I haven't checked in a while, since this is already set in my init.el > file, but auxtex was using mkii/texexec a few years ago. Have you checked > you're using mkiv/context? > > On October 28, 2016 6:04:27 AM PDT, Fabrice Couvreur < > fabrice1.couvr...@gmail.com> wrote: > >> Hello, >> I just upgraded to emacs24 and am having problems compiling my files who >> compiled perfectly with emacs23. >> I installed AUCTeX with M-x-install package and that's it ! >> I deleted my old init.el file and start over ! >> The ~/.emacs.d only contains this : >> >> fab @ debian: ~ $ cd .emacs.d / >> fab @ debian: ~ / .emacs.d $ ls -l >> total 8 >> drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list >> drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA >> fab @ debian: ~ / $ .emacs.d >> >> Consider the following file: >> If I make a C-c C-c, all I get is the text in italics, the macro is not >> compiled. >> Thanks, >> Fabrice >> >> % macros=mkvi >> >> \setupcolors[state=start] >> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] >> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] >> >> >> \defineframedtext >> [MyDefinition] >> [before={\blank[line,halfline]}, >>after={\blank}, >>frame=off, >>background=MyFrame, >>width=\textwidth, >>height=fit, >>location=left, >>style=italic] >> >> \defineoverlay >> [MyFrame] >> [\useMPgraphic{MyFrame}] >> >> \definelabel >> [Définition] >> [headstyle=\bf\smallcaps] >> >> \startuseMPgraphic{MyFrame} >> path b ; >> picture p ; >> p := textext.rt("\white\Définition") ; >> p := p shifted (2BodyFontSize,OverlayHeight-ypart center >> p+.25ExHeight) ; >> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; >> fill OverlayBox withcolor \MPcolor{MyColorA} ; >> fill b withcolor \MPcolor{MyColorB} ; >> draw leftboundary OverlayBox ; >> draw p ; >> setbounds currentpicture to OverlayBox ; >> \stopuseMPgraphic >> >> \starttext >> \startMyDefinition >> \input knuth >> \stopMyDefinition >> >> \stoptext >> >> %%% Local Variables: >> %%% mode: context >> %%% End: >> >> -- >> >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> -- >> >> > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Emacs24 + AucTeX + ConTeXt
Hello, I just upgraded to emacs24 and am having problems compiling my files who compiled perfectly with emacs23. I installed AUCTeX with M-x-install package and that's it ! I deleted my old init.el file and start over ! The ~/.emacs.d only contains this : fab @ debian: ~ $ cd .emacs.d / fab @ debian: ~ / .emacs.d $ ls -l total 8 drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA fab @ debian: ~ / $ .emacs.d Consider the following file: If I make a C-c C-c, all I get is the text in italics, the macro is not compiled. Thanks, Fabrice % macros=mkvi \setupcolors[state=start] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] \defineframedtext [MyDefinition] [before={\blank[line,halfline]}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt("\white\Définition") ; p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ; b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; fill OverlayBox withcolor \MPcolor{MyColorA} ; fill b withcolor \MPcolor{MyColorB} ; draw leftboundary OverlayBox ; draw p ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \starttext \startMyDefinition \input knuth \stopMyDefinition \stoptext %%% Local Variables: %%% mode: context %%% End: ntg60.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] A question about \startcombination[3*1] \stopcombination (again)
Hi Wolfgang, Thank you for your suggestion. But why use rather framed than framedtext ? Fabrice 2016-10-25 17:15 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 25. Oktober 2016 um 16:14 > Hello, > I can not make three columns and one row. But three rows and one column, it > is possible. > > You’re getting three columns but each framedtext has the width of the > textblock and two > of your three frames are shown outside of the visible space, using framed > instead of > framedtext helps. > > \defineframed > [algorithmframe] > [width=fit, >align=normal, >strut=no, >offset=1ex, >foregroundstyle={\switchtobodyfont[8pt]}, >background=color, >location=middle, >backgroundcolor=lightgray, >framecolor=darkred, >corner=round] > > \definelines > [algorithm] > [space=on, >before={\startframed[algorithmframe]}, >after=\stopframed] > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] A question about \startcombination[3*1] \stopcombination (again)
Hello, I can not make three columns and one row. But three rows and one column, it is possible. Thank you Fabrice \defineframedtext [algorithmframe] [width=fit, bodyfont=8pt, background=color, location=middle, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startmidaligned \startcombination[3*1] {\hbox{\startalgorithm Variables : \math{U} est un nombre réel \math{i} et \math{N} sont des nombres entiers Début : Saisir une valeur pour \math{N} Affecter 115 à \math{U} Pour \math{i} de 1 à \math{N} faire Affecter \math{0,6\times U+120} à \math{U} Fin Pour Afficher \math{U} Fin \stopalgorithm}}{Algorithme 1} {\hbox{\startalgorithm Variables : \math{U} est un nombre réel \math{i} et \math{N} sont des nombres entiers Début : Saisir une valeur pour \math{N} Pour \math{i} de 1 à \math{N} faire Affecter 115 à \math{U} Affecter \math{0,4\times U+115} à \math{U} Fin Pour Afficher \math{U} Fin \stopalgorithm}}{Algorithme 2} {\hbox{\startalgorithm Variables : \math{U} est un nombre réel \math{i} et \math{N} sont des nombres entiers Début : Saisir une valeur pour \math{N} Affecter 115 à \math{U} Pour \math{i} de 1 à \math{N} faire Affecter \math{0,4\times U+120} à \math{U} Fin Pour Afficher \math{U} Fin \stopalgorithm}}{Algorithme 3} \stopcombination \stopmidaligned \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Question about structure
Hello, How to compile the final chapter added (sequences/probabilites) without recompiling all the other chapters ? The command line is currently used context --purgeall cours.tex Thank you Fabrice \startproduct cours \project documents \startfrontmatter \component contents \stopfrontmatter \startbodymatter \component sequences/suites-1 \component sequences/exercices-suites \component sequences/derivation \component sequences/exercices-derivation \component sequences/lois-discretes \component sequences/exercices-lois-discretes \component sequences/continuite \component sequences/exercices-continuite \component sequences/exponentielles \component sequences/probabilites \stopbodymatter \stopproduct ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about natural tables
Hi Wolfgang, Thanks Fabrice 2016-10-09 21:58 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 9. Oktober 2016 um 10:42 > > Hello, > I do not succeed in having two sub-columns of the same width in the third > column. > > Your table has four columns but you set only the width for the first > three, adding a width setting for the fourth column helps. > > \startsetups[table:initialize] > \setupTABLE[start][align={middle,lohi},offset=0.8ex, > style=\smallbodyfont] > \setupTABLE[column][1][width=0.10\textwidth] > \setupTABLE[column][2][width=0.40\textwidth] > \setupTABLE[column][3][width=0.25\textwidth] > \setupTABLE[column][4][width=0.25\textwidth] > \setupTABLE[1][1,2,3][frame=off] > \stopsetups > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Question about natural tables
Hello, I do not succeed in having two sub-columns of the same width in the third column. Thank you. Fabrice \useMPlibrary[dum] \startsetups[table:initialize] \setupTABLE[start][align={middle,lohi},offset=0.8ex] \setupTABLE[column][2][width=0.5\textwidth] \setupTABLE[column][3][width=0.4\textwidth] \setupTABLE[column][first][width=1.5cm] \setupTABLE[1][1,2,3][frame=off] \stopsetups \starttext \startlinecorrection[blank] \startmidaligned \bTABLE[setups=table:initialize] \bTR \bTD\eTD \bTD Algébriquement \eTD \bTD [nc=2] Graphiquement \eTD \eTR \bTR \bTD \eTD \bTD[nr=2] L'équation \math{ax^2+bx+c=0} \eTD \bTD[nc=2] La parabole d'équation \math{y=ax^2+bx+c} \eTD \eTR \bTR \bTD \eTD \bTD Cas où \math{a\geqslant 0} \eTD \bTD Cas où \math{a\leqslant 0} \eTD \eTR \bTR \bTD\math{\Delta >0} \eTD \bTD admet deux solutions distinctes : \startformula x_1=\frac{-b-\sqrt{\Delta}}{2a}\quad \rm{et} \quad x_2=\frac{-b+\sqrt{\Delta}}{2a} \stopformula \eTD \bTD[nc=2] coupe deux fois l'axe des abscisses \dontleavehmode\startcombination[2*1]{\externalfigure[dummy][scale=900]}{}{\externalfigure[dummy][scale=900]}{} \stopcombination \eTD \eTR \bTR \bTD\math{\Delta=0} \eTD \bTD admet une unique solution : \startformula x_0=-\frac{b}{2a} \stopformula \eTD \bTD[nc=2] coupe l'axe des abscisses en un seul point \dontleavehmode\startcombination[2*1]{\externalfigure[dummy][scale=900]}{}{\externalfigure[dummy][scale=900]}{} \stopcombination \eTD \eTR \bTR \bTD\math{\Delta<0} \eTD \bTD n'admet pas de solution \eTD \bTD [nc=2] ne coupe pas l'axe des abscisses \dontleavehmode\startcombination[2*1]{\externalfigure[dummy][scale=900]}{}{\externalfigure[dummy][scale=900]}{} \stopcombination\eTD \eTR \eTABLE \stopmidaligned \stoplinecorrection \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Center a framedtext
Hi Wolfgang, Thanks. Fabrice 2016-09-28 9:08 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 27. September 2016 um 22:02 > Hi Wolfgang, > Thank you for your suggestion, but I think I was not clear enough. In > fact, I want to place the algorithm as the image. > > You need also "location=middle" for the framedtext. > > \defineframedtext > [algorithmframe] > [width=fit, >location=middle, >background=color, >backgroundcolor=lightgray, >framecolor=darkred, >corner=round] > > \definelines > [algorithm] > [space=on, >before=\startalgorithmframe, >after=\stopalgorithmframe] > > \starttext > > \startmakeup[standard] > \startalgorithm > Initialisation : > \math{u} prend la valeur 2\,000 > \math{S} prend la valeur 2\,000 > Traitement : > Pour \math{i} allant de 2 à \math{n} > \math{u} prend la valeur \math{u\times 1,008} > \math{S} prend la valeur \math{S +u} > Fin Pour > Sortie : > Afficher \math{S} > \stopalgorithm > \stopmakeup > > \stoptext > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Center a framedtext
> > Hi Wolfgang, Thank you for your suggestion, but I think I was not clear enough. In fact, I want to place the algorithm as the image. Fabrice \defineframedtext [algorithmframe] [width=fit, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startmakeup[standard][align=middle] \startalgorithm Initialisation : \math{u} prend la valeur 2\,000 \math{S} prend la valeur 2\,000 Traitement : Pour \math{i} allant de 2 à \math{n} \math{u} prend la valeur \math{u\times 1,008} \math{S} prend la valeur \math{S +u} Fin Pour Sortie : Afficher \math{S} \stopalgorithm \stopmakeup \startlinecorrection[blank] \startmidaligned \externalfigure[cow.pdf] \stopmidaligned \stoplinecorrection \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Center a framedtext
Hello, How to make the algorithm is centered vertically and horizontally ? thank you, Fabrice \defineframedtext [algorithmframe] [width=fit, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned \startalgorithm Initialisation : \math{u} prend la valeur 2\,000 \math{S} prend la valeur 2\,000 Traitement : Pour \math{i} allant de 2 à \math{n} \math{u} prend la valeur \math{u\times 1,008} \math{S} prend la valeur \math{S +u} Fin Pour Sortie : Afficher \math{S} \stopalgorithm \stopmidaligned \stoplinecorrection \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange behavior with \definelabel[][] in context standalone
Hi Wolgang, I updated standalone context, it works correctly. Fabrice 2016-08-29 12:13 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 29. August 2016 um 11:45 > Hello, > I noticed a problem with standalone context and not with texlive 2016 > > See my mail about \savecounter which shows the real reason for this result. > > 2 Question > 3 Question > > instead of > > 1 Question > 2 Question > > Thanks > fabrice > > > Keep your examples minimal, the custom frame isn’t necessary, the table > can be shorter (the setups can be removed as well) and the conversionset > isn’t necessary. > > \defineframed > [FRAME] > [frame=off, >offset=0pt, >location=low, >width=\struttotal, >background=color, >backgroundcolor=darkred, >foregroundcolor=white, >forgroundstyle=bold] > > \defineprocessor[ACPROCESSOR][command=\FRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > > \startsetups[table:initialize] > \setupTABLE[start] >[align={middle,lohi},width=0.12\textwidth,type=\tfx,offset=1ex] > \setupTABLE[column][first] >[align={middle,right},width=0.52\textwidth] > \setupTABLE[1][1][frame=off] > \stopsetups > > \definelabel[TableRow][text=,numbercommand=\FRAME] > > \starttext > > \startmidaligned > \bTABLE[setups=table:initialize] > \bTR > \bTD \eTD > \bTD a \eTD > \bTD b \eTD > \bTD c \eTD > \bTD d \eTD > \eTR > \bTR > \bTD \TableRow\ question \eTD > \bTD \eTD > \bTD \eTD > \bTD \eTD > \bTD \eTD > \eTR > \bTR > \bTD \TableRow\ question \eTD > \bTD \eTD > \bTD \eTD > \bTD \eTD > \bTD \eTD > \eTR > \eTABLE > \stopmidaligned > \stoptext > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange behavior with \definelabel[][] in context standalone
Hello, I noticed a problem with standalone context and not with texlive 2016 2 Question 3 Question instead of 1 Question 2 Question Thanks fabrice \defineframed [FRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=darkred, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\FRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \startsetups[table:initialize] \setupTABLE[start] [align={middle,lohi},width=0.12\textwidth,type=\tfx,offset=1ex] \setupTABLE[column][first] [align={middle,right},width=0.52\textwidth] \setupTABLE[1][1][frame=off] \stopsetups \definelabel[TableRow][text=,numbercommand=\FRAME] \starttext \startmidaligned \bTABLE[setups=table:initialize] \bTR \bTD \eTD \bTD a \eTD \bTD b \eTD \bTD c \eTD \bTD d \eTD \eTR \bTR \bTD \TableRow\ question \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \bTR \bTD \TableRow\ question \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \eTABLE \stopmidaligned \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug with standalone ?
Hello Wolfgang, This is an unfortunate forgetting on my part, sorry. However, I noticed another problem with standalone context and not with texlive 2016 2 Question 1 3 Question 2 instead of 1 Question 1 2 Question 2 Thank you Fabrice 2016-08-27 6:54 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 27. August 2016 um 00:15 > Hello, > If I compile the file with context from texlive 2016, no problem. But with > context from standalone, I get an error ("tex error on line 1 in file > /home/fab/ntg53.tex: ! Missing } inserted") > thank you, > > You’re missing a \stopmidaligned after the table. > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug with standalone ?
Hello, If I compile the file with context from texlive 2016, no problem. But with context from standalone, I get an error ("tex error on line 1 in file /home/fab/ntg53.tex: ! Missing } inserted") thank you, Fabrice \defineframed [FRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=darkred, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\FRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \startsetups[table:initialize] \setupTABLE[start] [align={middle,lohi},width=0.12\textwidth,type=\tfx,offset=1ex] \setupTABLE[column][first] [align={middle,right},width=0.52\textwidth] \setupTABLE[1][1][frame=off] \stopsetups \definelabel[TableRow][text=,numbercommand=\FRAME] \starttext \startmidaligned \bTABLE[setups=table:initialize] \bTR \bTD \eTD \bTD a \eTD \bTD b \eTD \bTD c \eTD \bTD d \eTD \eTR \bTR \bTD \TableRow\ question \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \bTR \bTD \TableRow\ question \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \eTABLE \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about \startcombination \stopcombination
Hi Hans Thank you, I do not know. Fabrice 2016-08-18 19:46 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 8/18/2016 7:12 PM, Fabrice Couvreur wrote: > >> Hello, >> The use of \startcombination ... \stopcombination does not work with my >> environment, I do not get all framed but only two and four >> Thank you >> Fabrice >> >> # >> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] >> >> \defineframedtext >> [MyFrame] >> [before={\blank}, >>after={\blank}, >>frame=off, >>background=MyFrame, >>width=6cm, >>height=fit, >>style=small] >> >> \startuseMPgraphic{MyFrame} >> path b; >> picture p; >> p := textext.rt("\tfx\white\framedtextparameter{Title}"); >> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); >> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; >> fill OverlayBox withcolor \MPcolor{MyColorA}; >> fill b withcolor darkred ; >> draw p; >> setbounds currentpicture to boundingbox currentpicture enlarged 2mm ; >> \stopuseMPgraphic >> >> \defineoverlay >> [MyFrame] >> [\useMPgraphic{MyFrame}] >> >> \starttext >> >> \startlinecorrection[blank] >> \startmidaligned >> \startcombination[2*2] >> {\startMyFrame[Title=ALGO A] >> One >> \stopMyFrame}{} >> {\startMyFrame[Title=ALGO B] >> Two >> \stopMyFrame}{} >> {\startMyFrame[Title=ALGO C] >> Three >> \stopMyFrame}{} >> {\startMyFrame[Title=ALGO D] >> Four >> \stopMyFrame}{} >> \stopcombination >> \stopmidaligned >> \stoplinecorrection >> >> \stoptext >> # >> > > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] > > \defineframedtext > [MyFrame] > [frame=off, >background=MyFrame, >width=6cm, >height=fit, >style=small] > > \startuseMPgraphic{MyFrame} > path b; > picture p; > p := textext.rt("\tfx\white\framedtextparameter{Title}"); > p := p shifted (2BodyFontSize,OverlayHeight-ypart center > p+.25ExHeight); > b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; > fill OverlayBox withcolor "MyColorA" ; > fill b withcolor darkred ; > draw p ; > setbounds currentpicture to boundingbox currentpicture enlarged 2mm ; > \stopuseMPgraphic > > \defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > > \starttext > > \startcombination[2*2] > {\MyFrame[Title=ALGO A]{One}} {} > {\MyFrame[Title=ALGO B]{Two}} {} > {\MyFrame[Title=ALGO C]{Three}} {} > {\MyFrame[Title=ALGO D]{Four}} {} > \stopcombination > > \stoptext > > the start/stop variant ignores the width > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Question about \startcombination \stopcombination
Hello, The use of \startcombination ... \stopcombination does not work with my environment, I do not get all framed but only two and four Thank you Fabrice # \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \defineframedtext [MyFrame] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=6cm, height=fit, style=small] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\tfx\white\framedtextparameter{Title}"); p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; fill OverlayBox withcolor \MPcolor{MyColorA}; fill b withcolor darkred ; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm ; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startlinecorrection[blank] \startmidaligned \startcombination[2*2] {\startMyFrame[Title=ALGO A] One \stopMyFrame}{} {\startMyFrame[Title=ALGO B] Two \stopMyFrame}{} {\startMyFrame[Title=ALGO C] Three \stopMyFrame}{} {\startMyFrame[Title=ALGO D] Four \stopMyFrame}{} \stopcombination \stopmidaligned \stoplinecorrection \stoptext # ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange behavior with context standalone (pgfplots)
Hi, Thanks Herbert and Hans, your solutions work both Fabrice 2016-08-16 20:35 GMT+02:00 Herbert Voss <herbert.v...@fu-berlin.de>: > Am 16.08.2016 um 16:52 schrieb Fabrice Couvreur: > > \usemodule[pgfplots] >> >> \pgfplotsset{compat=1.13} >> \usetikzlibrary[intersections] >> \usepgfplotslibrary[fillbetween] >> >> \starttext >> >> \starttikzpicture[/pgf/declare >> function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},] >> \switchtobodyfont[8pt] >> \startaxis >> > > [...] > \starttext > > \starttikzpicture[ > /pgf/declare function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);}, > font={\switchtobodyfont[8pt]} > ] > % > \startaxis > [...] > > Herbert > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange behavior with context standalone (pgfplots)
HI Hans, Sorry, I forgot \usemodule[pgfplots] \pgfplotsset{compat=1.13} \usetikzlibrary[intersections] \usepgfplotslibrary[fillbetween] \starttext \starttikzpicture[/pgf/declare function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},] \switchtobodyfont[8pt] \startaxis [restrict x to domain=-3:5, xmax=5, xmin=-3, restrict y to domain=-3:3, ymax=3, ymin=-3, x=2cm, y=2cm, axis lines=center, axis line style =ultra thick, major tick style=black, xtick={-2,-1,...,4}, ytick={-2,-1,...,2}, yticklabels={,,}, xticklabels={,,}, extra x ticks={-3,5}, extra x tick label={\null}, extra y ticks={-3,3}, extra y tick label={\null}, extra tick style={tick style={draw=none}}, xlabel=$x$,ylabel=$y$, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south, }, samples=1000, >=stealth] \addplot[smooth, draw=none, tension=0.6, name path=plot] coordinates{ (-2,-2.5) (-1.5,0)(-1,1.5) (-0.5,2) (0,1.5) (1,0) (2,-0.5) (3,0) (4,1.5) }; \path[name path=cut line] (-2,1.5) -- (4,1.5); \draw[thick,intersection segments={of=plot and cut line,sequence=L1}]; \draw[thick,intersection segments={of=plot and cut line,sequence=L2}]; \draw[thick, intersection segments={of=plot and cut line,sequence=L3}]; \node[fill=black,circle,scale=0.4] at (-2,-2.5){}; \node[fill=black,circle,scale=0.4] at (4,1.5){}; \node[below] at (-1.5,-1.5) {\math{{\cal C}_f}}; \node[below] at (1,0) {1}; \node[left] at (0,1) {1}; \node[below left] at (0,0) {0}; \stopaxis \stoptikzpicture \stoptext 2016-08-16 16:34 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 8/16/2016 4:26 PM, Fabrice Couvreur wrote: > >> Hello, >> With context in distribution TeXLive 2016,no problem but with standalone >> context, I get the "0.01pt" text in the left corner of the graph. >> > > no code / mwe > > Thanks >> Fabrice >> >> >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> >> > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange behavior with context standalone (pgfplots)
Hello, With context in distribution TeXLive 2016,no problem but with standalone context, I get the "0.01pt" text in the left corner of the graph. Thanks Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to reset a new processor ?
Oups, I forgot the name "ex", I am confused. Thanks Fabrice 2016-08-08 13:27 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 8. August 2016 um 13:11 > Hi Wolfgang, > In fact, I have a project "Lesson" with components chapter 1, chapter 2, > ... > If I add \setupenumeration [] [way=bysubsection] to each component that > does not work. > > \defineenumeration[exercise][text=Exercise ] > \setupenumeration [exercise][way=bysection] > > \starttext > > \dorecurse{5} > {\expanded{\chapter{Chapter \recurselevel}} > \dorecurse{3} >{\expanded{\section{Section \recurselevel}} > \dorecurse{3} > {\startexercise >\input ward >\stopexercise}}} > > \stoptext > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to reset a new processor ?
Hi Wolfgang, In fact, I have a project "Lesson" with components chapter 1, chapter 2, ... If I add \setupenumeration [] [way=bysubsection] to each component that does not work. Fabrice 2016-08-08 12:30 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 8. August 2016 um 12:27 > Hi, > I use a counter for each "Exercises" section of each chapter (Wolfgang thank > you !). > How to reset the counter to 1 for each section ? > thank you, > Fabrice > > > \defineprocessor[ACPROCESSOR][command=\EXFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \setupenumeration[...][way=bysection] % way=bychapter etc. > > Wolfgang > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to reset a new processor ?
Hi, I use a counter for each "Exercises" section of each chapter (Wolfgang thank you !). How to reset the counter to 1 for each section ? thank you, Fabrice \defineprocessor[ACPROCESSOR][command=\EXFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Use \framedtext to write an algorithm
Hi Wolfgang, That's great, I did not know but it's really convenient. Fabrice 2016-07-29 17:02 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 29. Juli 2016 um 16:43 > I know that Wolfgang wrote a module to reproduce algorithms, but it is in > English ! > Can we ensure to respect the withdrawal of the text ? > > You can use the lines environment with enabled spaces (space=on). > > \defineframedtext > [algorithmframe] > [width=fit, >background=color, >backgroundcolor=lightgray, >framecolor=darkred, >corner=round] > > \definelines > [algorithm] > [space=on, >before=\startalgorithmframe, >after=\stopalgorithmframe] > > \starttext > > \startalgorithm > Variables \math{I} et \math{J} entiers > T tableau d'entiers > Début > Pour \math{I} allant de \math{1} à \math{3} >Pour \math{J} allant de \math{1} à \math{3} > Si \math{J>I} > Alors \math{T[I, J]=J-I} > Sinon \math{T[I, J]=0} > Fin Si >Fin Pour > Fin > \stopalgorithm > > \stoptext > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Use \framedtext to write an algorithm
I know that Wolfgang wrote a module to reproduce algorithms, but it is in English ! Can we ensure to respect the withdrawal of the text ? \starttext \framedtext [align={middle,verytolerant, fit,nothyphenated,stretch}, width=0.4\textwidth, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=00,] Variables \math{I} et \math{J} entiers T tableau d'entiers Début Pour \math{I} allant de \math{1} à \math{3} Pour \math{J} allant de \math{1} à \math{3} Si \math{J>I} Alors \math{T[I, J]=J-I} Sinon \math{T[I, J]=0} Fin Si Fin Pour Fin } \stoptext Thanks, Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about \setupitemgroup
Hi Wolfgang, I'm confused, it does not work and I can not find the solution Thanks fabrice your output : 1.a. 1.b. 1.c. 2. 3. 4. my output : 1.a b. c. 2. 3. 4. \setupitemgroup [itemize] [color=darkred, distance=\spaceamount, option={packed,fit,intext}] \starttext \startitemize[n,repeat] \noitem \startitemize[a] \item \item \item \stopitemize \item \item \item \stopitemize \stoptext Context version ConTeXt ver: 2016.07.23 13:35 MKIV beta fmt: 2016.7.24 int: english/english 2016-07-24 12:28 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hi Wolgang, > Thank you for your reply only is not what I would like. > Your output: > > 1. > 2.a. > 2.b > > My output: > > 1. > 2.a. > b. > > thank you, > Fabrice > > 2016-07-23 18:41 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com> > : > >> Fabrice Couvreur <fabrice1.couvr...@gmail.com> >> 23. Juli 2016 um 10:28 >> Hi Wolfgang, >> I thought the keyword to correct the problem was but I repeat this otiens >> >> 1. >> 2.a. >> 2.b >> >> instead of >> >> 1. >> 2.a. >> b. >> >> You need todays beta to get the correct output for the following example >> (the \noitem hasn’t thw right defintion in older versions): >> >> \setupitemgroup >> [itemize] >> [color=darkred, >>distance=\spaceamount, >>option={packed,fit,intext}] >> >> \starttext >> >> \startitemize[n,repeat] >> >> \item \input tufte >> >> \noitem \startitemize[a] >> \item \input tufte >> \item \input tufte >> \stopitemize >> >> \stopitemize >> >> \stoptext >> >> Wolfgang >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Change the color of the number of subsection
Hi Henri, Thank you, it works. What's weird is that I used \setuphead [subsection][... ] once unsuccessfully probably a mistake on my part. Fabrice 2016-07-27 12:23 GMT+02:00 Henri Menke <henrime...@gmail.com>: > Hi Fabrice, > > use \setuphead (see below). > > Cheers, Henri > > --- > > \starttext > > \setuphead > [subsection] > [ > sectionsegments=subsection:subsection, > color=darkred, > ] > > \startsubsection[title={Recherche d'une fonction sous contraintes}] > \stopsubsection > > \stoptext > > On 07/27/2016 11:24 AM, Fabrice Couvreur wrote: > > Hello, > > With this > > > > \startsubsection > >[title={\darkred Recherche d'une fonction sous contraintes}, > > sectionsegments=subsection:subsection, > > numbercommand={\darkred}] > > > > it does not work. > > Thanks > > Fabrice > > > > > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > ___ > > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Change the color of the number of subsection
Hello, With this \startsubsection [title={\darkred Recherche d'une fonction sous contraintes}, sectionsegments=subsection:subsection, numbercommand={\darkred}] it does not work. Thanks Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Optimize code to create a environnementt with Metafun ?
Hi Wolfgang Thanks once again ! \startMyFrame[Title=Thanks ] \input knuth \stopMyFrame \startMyFrame[Title=once again !] \input knuth \stopMyFrame Fabrice 2016-07-26 21:49 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 26. Juli 2016 um 20:21 > Hi Hans, > I think I was not very clear. > > > > Title first framed : Hans > > Title second framed : Hagen > > > You can pass a title to the optional framedtext argument (use camel case > to avoid > using existing key names) and access the value later in the metapost > graphic. > > Thanks > Fabrice > > \setupbodyfont[pagella,11pt] > > \setupcolors[state=start] > > \defineframedtext > [MyFrame] > [before={\blank}, >after={\blank}, >frame=off, >background=MyFrame, >width=\textwidth, > > width=max, > >height=fit, >style=italic] > > \setvariables > [text] > [text1=Hans, >text2=Hagen,] > > > \startuseMPgraphic{MyFrame} > path b; > picture p; > p := textext.rt("\white\getvariable{text}{text1}"); > > > p := textext.rt("\white\framedtextparameter{Title}"); > > p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); > b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth; > fill OverlayBox withcolor lightgray; > fill b withcolor darkred; > draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor > darkred; > draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor > darkred; > draw p; > setbounds currentpicture to boundingbox currentpicture enlarged 2mm; > \stopuseMPgraphic > > \defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > > \starttext > > > \startMyFrame > \input knuth > \stopMyFrame > > \startMyFrame > \input knuth > \stopMyFrame > > > \startMyFrame[Title=Hans] > \input knuth > \stopMyFrame > > \startMyFrame[Title=Hagen] > \input knuth > \stopMyFrame > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Optimize code to create a environnementt with Metafun ?
Hi Hans, I think I was not very clear. Title first framed : Hans Title second framed : Hagen Thanks Fabrice \setupbodyfont[pagella,11pt] \setupcolors[state=start] \defineframedtext [MyFrame] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, style=italic] \setvariables [text] [text1=Hans, text2=Hagen,] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\white\getvariable{text}{text1}"); p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth; fill OverlayBox withcolor lightgray; fill b withcolor darkred; draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startMyFrame \input knuth \stopMyFrame \startMyFrame \input knuth \stopMyFrame 2016-07-26 16:15 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/26/2016 3:12 PM, Fabrice Couvreur wrote: > >> Hi Hans, >> How to pass the "SomeText" parameter? >> > > with setvariables and getvariable > > \setupbodyfont[pagella,11pt] >> >> \setupcolors[state=start] >> >> \defineframedtext >> [SomeText] >> [before={\blank}, >>after={\blank}, >>frame=off, >>background=MyFrame, >>width=\textwidth, >>height=fit, >>style=italic] >> >> \startuseMPgraphic{MyFrame} >> path b; >> picture p; >> p := textext.rt("\white SomeText"); >> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); >> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth; >> fill OverlayBox withcolor lightgray; >> fill b withcolor darkred; >> draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor >> darkred; >> draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor >> darkred; >> draw p; >> setbounds currentpicture to boundingbox currentpicture enlarged 2mm; >> \stopuseMPgraphic >> >> \defineoverlay >> [MyFrame] >> [\useMPgraphic{MyFrame}] >> >> \starttext >> >> >> \startSomeText{SomeText1} >> \input knuth >> \stopSomeText >> >> \startSomeText{SomeText2} >> \input knuth >> \stopSomeText >> >> \stoptext >> >> Thanks >> Fabrice >> >> 2016-07-26 12:34 GMT+02:00 Hans Hagen <pra...@wxs.nl >> <mailto:pra...@wxs.nl>>: >> >> >> On 7/26/2016 10:18 AM, Fabrice Couvreur wrote: >> >> Hello, >> Hans and Wolfgang really helped me to create new environments >> with Metafun. >> I think Hans continuous development Metafun. So my question is >> simple: >> can we optimize this code? >> >> >> in what sense ... >> >> speed? not much to gain >> >> correctness? mayhe use "lightgray" and "darkred" for consistency >> >> typography? sure, but more a discussion topic at the ctx meeting >> >> Thanks, >> Fabrice >> >> \setupbodyfont[pagella,11pt] >> >> \setupcolors[state=start] >> >> \defineframedtext >> [MyDefinition] >> [before={\blank}, >>after={\blank}, >>frame=off, >>background=MyFrame, >>width=\textwidth, >>height=fit, >>style=italic] >> >> \definelabel >> [Définition] >> [headstyle=\bf\smallcaps] >> >> \startuseMPgraphic{MyFrame} >> path b; >> picture p; >> p := textext.rt("\white\Définition"); >> p := p shifted (2BodyFontSize,OverlayHeight-ypart center >> p+.25ExHeight); >> b := boundingbox p leftenlarged .5EmWidth rightenlarged >> .5EmWidth; >> fill OverlayBox withcolor \MPcolor{lightgray}; >> fill b withcolor darkred; >> draw bottomboundary OverlayBox withpen pencircle scaled 1pt >> withcolor >> darkred; >> draw topboundary OverlayBox withpen pencircle scaled 1pt >> withcolor >> darkred; >> draw p; >> setbounds currentpicture to boundingbox currentpicture enlar
Re: [NTG-context] Optimize code to create a environnementt with Metafun ?
Hi Hans, How to pass the "SomeText" parameter ? \setupbodyfont[pagella,11pt] \setupcolors[state=start] \defineframedtext [SomeText] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, style=italic] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\white SomeText"); p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth; fill OverlayBox withcolor lightgray; fill b withcolor darkred; draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startSomeText{SomeText1} \input knuth \stopSomeText \startSomeText{SomeText2} \input knuth \stopSomeText \stoptext Thanks Fabrice 2016-07-26 12:34 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/26/2016 10:18 AM, Fabrice Couvreur wrote: > >> Hello, >> Hans and Wolfgang really helped me to create new environments with >> Metafun. >> I think Hans continuous development Metafun. So my question is simple: >> can we optimize this code? >> > > in what sense ... > > speed? not much to gain > > correctness? mayhe use "lightgray" and "darkred" for consistency > > typography? sure, but more a discussion topic at the ctx meeting > > Thanks, >> Fabrice >> >> \setupbodyfont[pagella,11pt] >> >> \setupcolors[state=start] >> >> \defineframedtext >> [MyDefinition] >> [before={\blank}, >>after={\blank}, >>frame=off, >>background=MyFrame, >>width=\textwidth, >>height=fit, >>style=italic] >> >> \definelabel >> [Définition] >> [headstyle=\bf\smallcaps] >> >> \startuseMPgraphic{MyFrame} >> path b; >> picture p; >> p := textext.rt("\white\Définition"); >> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); >> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth; >> fill OverlayBox withcolor \MPcolor{lightgray}; >> fill b withcolor darkred; >> draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor >> darkred; >> draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor >> darkred; >> draw p; >> setbounds currentpicture to boundingbox currentpicture enlarged 2mm; >> \stopuseMPgraphic >> >> \defineoverlay >> [MyFrame] >> [\useMPgraphic{MyFrame}] >> >> \starttext >> >> \showframe >> >> \startMyDefinition >> \input knuth >> \stopMyDefinition >> >> \stoptext >> >> >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> >> > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Optimize code to create a environnementt with Metafun ?
Hi Hans, So the code is "perfect" ? : =) typography? sure, but more a discussion topic at the ctx meeting Seriously, where can we read the conference proceedings ? Thanks Fabrice 2016-07-26 12:34 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/26/2016 10:18 AM, Fabrice Couvreur wrote: > >> Hello, >> Hans and Wolfgang really helped me to create new environments with >> Metafun. >> I think Hans continuous development Metafun. So my question is simple: >> can we optimize this code? >> > > in what sense ... > > speed? not much to gain > > correctness? mayhe use "lightgray" and "darkred" for consistency > > typography? sure, but more a discussion topic at the ctx meeting > > Thanks, >> Fabrice >> >> \setupbodyfont[pagella,11pt] >> >> \setupcolors[state=start] >> >> \defineframedtext >> [MyDefinition] >> [before={\blank}, >>after={\blank}, >>frame=off, >>background=MyFrame, >>width=\textwidth, >>height=fit, >>style=italic] >> >> \definelabel >> [Définition] >> [headstyle=\bf\smallcaps] >> >> \startuseMPgraphic{MyFrame} >> path b; >> picture p; >> p := textext.rt("\white\Définition"); >> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); >> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth; >> fill OverlayBox withcolor \MPcolor{lightgray}; >> fill b withcolor darkred; >> draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor >> darkred; >> draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor >> darkred; >> draw p; >> setbounds currentpicture to boundingbox currentpicture enlarged 2mm; >> \stopuseMPgraphic >> >> \defineoverlay >> [MyFrame] >> [\useMPgraphic{MyFrame}] >> >> \starttext >> >> \showframe >> >> \startMyDefinition >> \input knuth >> \stopMyDefinition >> >> \stoptext >> >> >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> >> > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Optimize code to create a environnementt with Metafun ?
Hello, Hans and Wolfgang really helped me to create new environments with Metafun. I think Hans continuous development Metafun. So my question is simple: can we optimize this code ? Thanks, Fabrice \setupbodyfont[pagella,11pt] \setupcolors[state=start] \defineframedtext [MyDefinition] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, style=italic] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\white\Définition"); p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth; fill OverlayBox withcolor \MPcolor{lightgray}; fill b withcolor darkred; draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \showframe \startMyDefinition \input knuth \stopMyDefinition \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Place a text over an arrow (Metafun)
Hi Hans and Otared, I did not know this module (Context is so rich !), it's great ! thanks Fabrice 2016-07-25 11:29 GMT+02:00 Otared Kavian <ota...@gmail.com>: > Hi Fabrice, > > Do you know the step charts module in ConTeXt? I guess you can achieve > what you want as in the example below (sorry, I did not took your example, > I am just copying an example from my archives…). > > %% > \usemodule[steps] > \starttext > > Pour voir que la composée de deux fonctions $f$ et $u$, continues en un > point $x_{*}$, est continue, on peut suivre le schéma suivant~: > \placefigure[middle,none][-]{}{ > %\scale[,width=.35\textwidth]{ > \startSTEPtable > \cell {$(f\circ u)(x_{*} + o(1)) = $} \text{définition de $f\circ u$} > \cell {$f\left(u\left(x_{*} + o(1)\right)\right) = $} \text {$u$ est > continue} > \cell {$f\left(u(x_{*}) + o(1)\right) = $} \text {$f$ est continue} > \cell {$f\left(u(x_{*})\right) + o(1) =$} \text {définition de $f\circ u$} > \cell {$(f\circ u)(x_{*}) + o(1)$.} > \stopSTEPtable > %} > } > \stoptext > %% > > Best regrads: Otared > > > > On 25 Jul 2016, at 10:36, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > Hello, > My way is not very elegant but I would do this: > > Formula >arrow text > Formula >arrow text > Formula >arrow text > Formula > > # > \startuseMPgraphic{MyArrow} > path p ; > p:=(0,0){right}..(0.5cm,-0.6cm)..(0,-1.2cm){left} ; > drawarrow p withpen pencircle scaled 1.5bp withcolor 0.625white ; > \stopuseMPgraphic > > \starttext > > \showgrid > > \math{A\times X=B} > > \hfill On multiplie, à gauche, les deux membres de l'égalité par > \math{A^{-1}}. > > \hskip 5cm \relax \dontleavehmode\useMPgraphic{MyArrow} > > \math{A^{-1}\times A\times X=A^{-1}\times B} > > \hfill On utilise l'égalité \math{A^{-1}\times A=I}. > > \hskip 5cm \relax \dontleavehmode \useMPgraphic{MyArrow} > > \math{I\times X=A^{-1}\times B} > > \hfill On utilise l'égalité \math{X\times I=I\times X=X}. > > \hskip 5cm \relax \dontleavehmode \useMPgraphic{MyArrow} > > On a donc \math{X=A^{-1}\times B} > > \stoptext > # > > Thanks, > Fabrice > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Place a text over an arrow (Metafun)
Hello, My way is not very elegant but I would do this: Formula arrow text Formula arrow text Formula arrow text Formula # \startuseMPgraphic{MyArrow} path p ; p:=(0,0){right}..(0.5cm,-0.6cm)..(0,-1.2cm){left} ; drawarrow p withpen pencircle scaled 1.5bp withcolor 0.625white ; \stopuseMPgraphic \starttext \showgrid \math{A\times X=B} \hfill On multiplie, à gauche, les deux membres de l'égalité par \math{A^{-1}}. \hskip 5cm \relax \dontleavehmode\useMPgraphic{MyArrow} \math{A^{-1}\times A\times X=A^{-1}\times B} \hfill On utilise l'égalité \math{A^{-1}\times A=I}. \hskip 5cm \relax \dontleavehmode \useMPgraphic{MyArrow} \math{I\times X=A^{-1}\times B} \hfill On utilise l'égalité \math{X\times I=I\times X=X}. \hskip 5cm \relax \dontleavehmode \useMPgraphic{MyArrow} On a donc \math{X=A^{-1}\times B} \stoptext # Thanks, Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about \setupitemgroup
Hi Wolgang, Thank you for your reply only is not what I would like. Your output: 1. 2.a. 2.b My output: 1. 2.a. b. thank you, Fabrice 2016-07-23 18:41 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 23. Juli 2016 um 10:28 > Hi Wolfgang, > I thought the keyword to correct the problem was but I repeat this otiens > > 1. > 2.a. > 2.b > > instead of > > 1. > 2.a. > b. > > You need todays beta to get the correct output for the following example > (the \noitem hasn’t thw right defintion in older versions): > > \setupitemgroup > [itemize] > [color=darkred, >distance=\spaceamount, >option={packed,fit,intext}] > > \starttext > > \startitemize[n,repeat] > > \item \input tufte > > \noitem \startitemize[a] > \item \input tufte > \item \input tufte > \stopitemize > > \stopitemize > > \stoptext > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about \setupitemgroup
Hi Wolfgang, I thought the keyword to correct the problem was but I repeat this otiens 1. 2.a. 2.b instead of 1. 2.a. b. Fabrice 2016-07-22 16:12 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > I just noticed that there is a problem with the level 2. a. The letter a > is on the number 2 > > \startitemize[n] > > \item \input tufte > > \item \startitemize[a] > \item \input tufte > \item \input tufte > \stopitemize > > \stopitemize > > Fabrice > > 2016-07-22 13:06 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > >> Hi Wolfgang, >> Thank you for your time and your solutions >> Fabrice >> >> >> 2016-07-22 12:47 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com >> >: >> >>> Fabrice Couvreur <fabrice1.couvr...@gmail.com> >>> 22. Juli 2016 um 12:32 >>> Hi, >>> I can not find any keyword must be used to get what I want. >>> Thanks, >>> Fabrice >>> >>> \setupbodyfont[pagella,11pt] >>> >>> \setupitemgroup >>> [itemize] >>> [each] >>> [color=darkred] >>> [packed] >>> >>> \starttext >>> >>> \startitemize[n] >>> >>> \item \input tufte >>> >>> \item \startitemize[a] >>> >>> \item \input tufte >>> >>> \stopitemize >>> >>> \stopitemize >>> >>> {\tfc What I want to do :} >>> >>> \blank >>> >>> {\darkred 1.} \input tufte >>> >>> {\darkred a.} \input tufte >>> >>> \stoptext >>> >>> \setupitemgroup >>> [itemize] >>> [color=darkred, >>>distance=\spaceamount, >>>option={packed,fit,intext}] >>> >>> \starttext >>> >>> \startitemize[n] >>> >>> \item \input tufte >>> >>> \startitemize[a] >>> \item \input tufte >>> \stopitemize >>> >>> \stopitemize >>> >>> \stoptext >>> >>> Wolfgang >>> >>> >>> ___ >>> If your question is of interest to others as well, please add an entry >>> to the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >>> archive : http://foundry.supelec.fr/projects/contextrev/ >>> wiki : http://contextgarden.net >>> >>> ___ >>> >> >> > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about \setupitemgroup
I just noticed that there is a problem with the level 2. a. The letter a is on the number 2 \startitemize[n] \item \input tufte \item \startitemize[a] \item \input tufte \item \input tufte \stopitemize \stopitemize Fabrice 2016-07-22 13:06 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hi Wolfgang, > Thank you for your time and your solutions > Fabrice > > > 2016-07-22 12:47 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com> > : > >> Fabrice Couvreur <fabrice1.couvr...@gmail.com> >> 22. Juli 2016 um 12:32 >> Hi, >> I can not find any keyword must be used to get what I want. >> Thanks, >> Fabrice >> >> \setupbodyfont[pagella,11pt] >> >> \setupitemgroup >> [itemize] >> [each] >> [color=darkred] >> [packed] >> >> \starttext >> >> \startitemize[n] >> >> \item \input tufte >> >> \item \startitemize[a] >> >> \item \input tufte >> >> \stopitemize >> >> \stopitemize >> >> {\tfc What I want to do :} >> >> \blank >> >> {\darkred 1.} \input tufte >> >> {\darkred a.} \input tufte >> >> \stoptext >> >> \setupitemgroup >> [itemize] >> [color=darkred, >>distance=\spaceamount, >>option={packed,fit,intext}] >> >> \starttext >> >> \startitemize[n] >> >> \item \input tufte >> >> \startitemize[a] >> \item \input tufte >> \stopitemize >> >> \stopitemize >> >> \stoptext >> >> Wolfgang >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about \setupitemgroup
Hi Wolfgang, Thank you for your time and your solutions Fabrice 2016-07-22 12:47 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 22. Juli 2016 um 12:32 > Hi, > I can not find any keyword must be used to get what I want. > Thanks, > Fabrice > > \setupbodyfont[pagella,11pt] > > \setupitemgroup > [itemize] > [each] > [color=darkred] > [packed] > > \starttext > > \startitemize[n] > > \item \input tufte > > \item \startitemize[a] > > \item \input tufte > > \stopitemize > > \stopitemize > > {\tfc What I want to do :} > > \blank > > {\darkred 1.} \input tufte > > {\darkred a.} \input tufte > > \stoptext > > \setupitemgroup > [itemize] > [color=darkred, >distance=\spaceamount, >option={packed,fit,intext}] > > \starttext > > \startitemize[n] > > \item \input tufte > > \startitemize[a] > \item \input tufte > \stopitemize > > \stopitemize > > \stoptext > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Question about \setupitemgroup
Hi, I can not find any keyword must be used to get what I want. Thanks, Fabrice \setupbodyfont[pagella,11pt] \setupitemgroup [itemize] [each] [color=darkred] [packed] \starttext \startitemize[n] \item \input tufte \item \startitemize[a] \item \input tufte \stopitemize \stopitemize {\tfc What I want to do :} \blank {\darkred 1.} \input tufte {\darkred a.} \input tufte \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about headcommand
Thanks Wolfgang Fabrice 2016-07-22 10:26 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 22. Juli 2016 um 09:48 > Hi Wolfgang, > It is clear, I think I understand (My English is not perfect !). So back > to my original post, if I want only the counter is white and surrounded > by a red frame, just write : > > \defineenumeration > [ex] >[text=, > distance=0.3em, > width=fit, > numberconversionset=ACCONVERSION, > alternative=serried, >] > > \defineprocessor[ACPROCESSOR][command=\ACFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > You can play with the position of the frame and place the number on the > same line as the content: > > \defineframed > [ACFRAME] > [frame=off, >offset=0pt, >location=low, >width=\struttotal, >background=color, >backgroundcolor=red, >foregroundcolor=white, >forgroundstyle=bold] > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about headcommand
Hi Wolfgang, It is clear, I think I understand (My English is not perfect !). So back to my original post, if I want only the counter is white and surrounded by a red frame, just write : \defineenumeration [ex] [text=, distance=0.3em, width=fit, numberconversionset=ACCONVERSION, alternative=serried, ] \defineprocessor[ACPROCESSOR][command=\ACFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] Thanks, Fabrice 2016-07-22 8:08 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 22. Juli 2016 um 02:02 > Hi Wolfgang, > In fact, I wanted to know why the instructions to create a new style for > the counter were useless (% in the code) . > > The settings aren’t useless, the are applied to the counter as intended. > > \setupbodyfont[pagella,11pt] > > \defineprocessor[ACPROCESSOR][color=red] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration > [ex] > [text=, >distance=0.3em, >width=fit, >numberconversionset=ACCONVERSION, >alternative=serried] > > \starttext > > \dorecurse{5} > {\startex >\input knuth >\stopex} > > \stoptext > > I think I understand that headnumber sends settings (text and number) to > the \ACFRAME command. > > The headcommand is applied to the text *and* counter of the enumeration > while numberconversionset > changes on the counter, i.e. when you want a frame only around the counter > you have to use > numberconversionset but when you want a frame around both you have to use > headcommand. > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about headcommand
Hi Wolfgang, In fact, I wanted to know why the instructions to create a new style for the counter were useless (% in the code) . I think I understand that headnumber sends settings (text and number) to the \ACFRAME command. Fabrice Envoyé de mon iPad > Le 22 juil. 2016 à 01:22, Wolfgang Schuster <schuster.wolfg...@gmail.com> a > écrit : > >> Fabrice Couvreur 22. Juli 2016 um 00:57 >> Hello, >> In the code below, why headcommand enough ? > I’m sorry but I don’t know what you’re asking for. > > Wolfgang > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Question about headcommand
Hello, In the code below, why headcommand enough ? thanks, Fabrice \setupbodyfont[pagella,11pt] \defineframed [ACFRAME] [width=0.5cm, height=0.5cm, background=color, backgroundcolor=red, foregroundcolor=white, forgroundstyle=bold, framecolor=red, ] \defineenumeration [ex] [text=, distance=0.3em, width=fit, headcommand=\ACFRAME, %numberconversionset=ACCONVERSION, alternative=serried, ] %\defineprocessor[ACPROCESSOR][color=white,command=\groupedcommand{}{}] %\defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \starttext \dorecurse {5} { \startex \input knuth \stopex } \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug with the matrix library (TIKZ)
Hi Hans, thanks Fabrice 2016-07-21 14:30 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/21/2016 11:50 AM, Fabrice Couvreur wrote: > >> Hi Hans, >> If I do this, the problem remains the same. >> >> \starttikzpicture >> \vbox{\matrix [matrix of math nodes,ampersand replacement=\&] >> { >> a_8 \& a_1 \& a_6 \\ >> a_3 \& a_5 \& |[red]| a_7 \\ >> a_4 \& a_9 \& a_2 \\ >> };} >> \stoptikzpicture >> > > I'm not sure why you want to use tikz for matrices but this works > > \starttikzpicture > \matrix [matrix of math nodes,ampersand replacement=\&] > { > a_8 \& a_1 \& a_6 \\ > a_3 \& a_5 \& {\red a_7} \\ > a_4 \& a_9 \& a_2 \\ > }; > \stoptikzpicture > > (forget about | there) > > Hans > > 2016-07-21 11:38 GMT+02:00 Hans Hagen <pra...@wxs.nl >> <mailto:pra...@wxs.nl>>: >> >> >> On 7/21/2016 11:25 AM, Fabrice Couvreur wrote: >> >> Hello, >> Everything is in the title, as this example shows. >> >> >> normally it means that you need to wrap in a \vbox{...} >> >> Thanks, >> Fabrice >> >> >> >> >> \usemodule[tikz] >> \usetikzlibrary[matrix] >> >> \setupbodyfont[pagella,11pt] >> >> \starttext >> >> \starttikzpicture >> \matrix [matrix of math nodes,ampersand replacement=\&] >> { >> a_8 \& a_1 \& a_6 \\ >> a_3 \& a_5 \& |[red]| a_7 \\ >> a_4 \& a_9 \& a_2 \\ >> }; >> \stoptikzpicture >> >> \stoptext >> >> >> >> tex error > tex error on line 14 in file >> /home/fab/ntg49.tex: ! >> Argument of \tikz@lib@matrix@with@options has an extra } >> >> >> \par >> >> } >> l.14 } >> ; >> >> 4 \setupbodyfont[pagella,11pt] >> 5 >> 6 \starttext >> 7 >> 8 \starttikzpicture >> 9 \matrix [matrix of math nodes,ampersand replacement=\&] >> 10 { >> 11 a_8 \& a_1 \& a_6 \\ >> 12 a_3 \& a_5 \& |[red]| a_7 \\ >> 13 a_4 \& a_9 \& a_2 \\ >> 14 >>}; >> 15 \stoptikzpicture >> 16 >> 17 \stoptext >> >> >> >> >> >> ___ >> If your question is of interest to others as well, please add an >> entry to the Wiki! >> >> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> >> >> >> -- >> >> - >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>tel: 038 477 53 69 | www.pragma-ade.nl >> <http://www.pragma-ade.nl> | www.pragma-pod.nl >> <http://www.pragma-pod.nl> >> - >> >> ___ >> If your question is of interest to others as well, please add an >> entry to the Wiki! >> >> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / >> >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> &g
Re: [NTG-context] Bug with the matrix library (TIKZ)
Hi Hans, thanks I'm not sure why you want to use tikz for matrices but this works https://drive.google.com/file/d/0B-mkD83s36jbMFE5ZjJvdFJSejg/view?usp=sharing Fabrice 2016-07-21 14:30 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/21/2016 11:50 AM, Fabrice Couvreur wrote: > >> Hi Hans, >> If I do this, the problem remains the same. >> >> \starttikzpicture >> \vbox{\matrix [matrix of math nodes,ampersand replacement=\&] >> { >> a_8 \& a_1 \& a_6 \\ >> a_3 \& a_5 \& |[red]| a_7 \\ >> a_4 \& a_9 \& a_2 \\ >> };} >> \stoptikzpicture >> > > I'm not sure why you want to use tikz for matrices but this works > > \starttikzpicture > \matrix [matrix of math nodes,ampersand replacement=\&] > { > a_8 \& a_1 \& a_6 \\ > a_3 \& a_5 \& {\red a_7} \\ > a_4 \& a_9 \& a_2 \\ > }; > \stoptikzpicture > > (forget about | there) > > Hans > > 2016-07-21 11:38 GMT+02:00 Hans Hagen <pra...@wxs.nl >> <mailto:pra...@wxs.nl>>: >> >> >> On 7/21/2016 11:25 AM, Fabrice Couvreur wrote: >> >> Hello, >> Everything is in the title, as this example shows. >> >> >> normally it means that you need to wrap in a \vbox{...} >> >> Thanks, >> Fabrice >> >> >> >> >> \usemodule[tikz] >> \usetikzlibrary[matrix] >> >> \setupbodyfont[pagella,11pt] >> >> \starttext >> >> \starttikzpicture >> \matrix [matrix of math nodes,ampersand replacement=\&] >> { >> a_8 \& a_1 \& a_6 \\ >> a_3 \& a_5 \& |[red]| a_7 \\ >> a_4 \& a_9 \& a_2 \\ >> }; >> \stoptikzpicture >> >> \stoptext >> >> >> >> tex error > tex error on line 14 in file >> /home/fab/ntg49.tex: ! >> Argument of \tikz@lib@matrix@with@options has an extra } >> >> >> \par >> >> } >> l.14 } >> ; >> >> 4 \setupbodyfont[pagella,11pt] >> 5 >> 6 \starttext >> 7 >> 8 \starttikzpicture >> 9 \matrix [matrix of math nodes,ampersand replacement=\&] >> 10 { >> 11 a_8 \& a_1 \& a_6 \\ >> 12 a_3 \& a_5 \& |[red]| a_7 \\ >> 13 a_4 \& a_9 \& a_2 \\ >> 14 >>}; >> 15 \stoptikzpicture >> 16 >> 17 \stoptext >> >> >> >> >> >> ___ >> If your question is of interest to others as well, please add an >> entry to the Wiki! >> >> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> >> >> >> -- >> >> - >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>tel: 038 477 53 69 | www.pragma-ade.nl >> <http://www.pragma-ade.nl> | www.pragma-pod.nl >> <http://www.pragma-pod.nl> >> - >> >> ___ >> If your question is of interest to others as well, please add an >> entry to the Wiki! >> >> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / >> >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/cont
Re: [NTG-context] Bug with the matrix library (TIKZ)
Hi Hans, If I do this, the problem remains the same. \starttikzpicture \vbox{\matrix [matrix of math nodes,ampersand replacement=\&] { a_8 \& a_1 \& a_6 \\ a_3 \& a_5 \& |[red]| a_7 \\ a_4 \& a_9 \& a_2 \\ };} \stoptikzpicture 2016-07-21 11:38 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/21/2016 11:25 AM, Fabrice Couvreur wrote: > >> Hello, >> Everything is in the title, as this example shows. >> > > normally it means that you need to wrap in a \vbox{...} > > Thanks, >> Fabrice >> >> >> >> \usemodule[tikz] >> \usetikzlibrary[matrix] >> >> \setupbodyfont[pagella,11pt] >> >> \starttext >> >> \starttikzpicture >> \matrix [matrix of math nodes,ampersand replacement=\&] >> { >> a_8 \& a_1 \& a_6 \\ >> a_3 \& a_5 \& |[red]| a_7 \\ >> a_4 \& a_9 \& a_2 \\ >> }; >> \stoptikzpicture >> >> \stoptext >> >> >> tex error > tex error on line 14 in file /home/fab/ntg49.tex: ! >> Argument of \tikz@lib@matrix@with@options has an extra } >> >> >> \par >> >> } >> l.14 } >> ; >> >> 4 \setupbodyfont[pagella,11pt] >> 5 >> 6 \starttext >> 7 >> 8 \starttikzpicture >> 9 \matrix [matrix of math nodes,ampersand replacement=\&] >> 10 { >> 11 a_8 \& a_1 \& a_6 \\ >> 12 a_3 \& a_5 \& |[red]| a_7 \\ >> 13 a_4 \& a_9 \& a_2 \\ >> 14 >>}; >> 15 \stoptikzpicture >> 16 >> 17 \stoptext >> >> >> >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> >> > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug with the matrix library (TIKZ)
Hello, Everything is in the title, as this example shows. Thanks, Fabrice \usemodule[tikz] \usetikzlibrary[matrix] \setupbodyfont[pagella,11pt] \starttext \starttikzpicture \matrix [matrix of math nodes,ampersand replacement=\&] { a_8 \& a_1 \& a_6 \\ a_3 \& a_5 \& |[red]| a_7 \\ a_4 \& a_9 \& a_2 \\ }; \stoptikzpicture \stoptext tex error > tex error on line 14 in file /home/fab/ntg49.tex: ! Argument of \tikz@lib@matrix@with@options has an extra } \par } l.14 } ; 4 \setupbodyfont[pagella,11pt] 5 6 \starttext 7 8 \starttikzpicture 9 \matrix [matrix of math nodes,ampersand replacement=\&] 10 { 11 a_8 \& a_1 \& a_6 \\ 12 a_3 \& a_5 \& |[red]| a_7 \\ 13 a_4 \& a_9 \& a_2 \\ 14 >>}; 15 \stoptikzpicture 16 17 \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with the environment {\quotation}
thanks Aditya Fabrice 2016-07-21 2:05 GMT+02:00 Aditya Mahajan <adit...@umich.edu>: > On Thu, 21 Jul 2016, Fabrice Couvreur wrote: > > Hello, >> With the latest version of Standalone Context, environment {\quotation} >> causes a compilation error but with texlive 2016, no problem. >> thanks, >> Fabrice >> >> >> \mainlanguage[fr] >> >> \starttext >> >> Seuls les nombres vont servir aux calculs, le gérant peut donc résumer ce >> tableau à l'aide du seul tableau de nombres suivant, appelé {\quotation la >> matrice \math{A}}. >> >> \stoptext >> > > Use \quotation{} rather than {\quotation ...} > > Aditya > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with the environment {\quotation}
Hello, With the latest version of Standalone Context, environment {\quotation} causes a compilation error but with texlive 2016, no problem. thanks, Fabrice \mainlanguage[fr] \starttext Seuls les nombres vont servir aux calculs, le gérant peut donc résumer ce tableau à l'aide du seul tableau de nombres suivant, appelé {\quotation la matrice \math{A}}. \stoptext tex error > tex error on line 3 in file /home/fab/ntg47.tex: ! Extra }, or forgotten \endgroup l.3 ...ant, appelé {\quotation la matrice \math{A}} ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setting \textrules
Hi Wolfgang, Is there a simple way to add a light gray background ? thanks, Fabrice 2016-07-14 11:57 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hi Wolfgang, > it's perfect ! > thanks, > Fabrice > > 2016-07-14 6:41 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > >> Fabrice Couvreur <fabrice1.couvr...@gmail.com> >> 13. Juli 2016 um 01:02 >> Hello, >> I would like the text of the property is in italic without using the >> environment {\it}. >> >> Use the enumeration environment. >> >> Is this the best way when I use \setuptextrules[width=-1ex] ? >> >> You can set the width and distance values to 0pt and put a space after >> the counter. >> >> begin example >> \setupbodyfont[pagella,11pt] >> >> \define[1]\ProprieteHeadcommand >> {\textrule[top]{#1}} >> >> \defineenumeration >> [propriete] >> [text=Propriété , >>style=italic, >>headcommand=\ProprieteHeadcommand, >>numbercommand=\groupedcommand{}{\nbsp}, >>after=\textrule] >> >> \setuptextrules[width=0pt,distance=0pt] >> >> \starttext >> >> \startpropriete >> Soit \math{q} un réel \math{\neq 1}, alors pour tout entier naturel >> \math{n\geqslant 1} on a : >> \startformula >> S=1+q+q^2+\dots+q^n=\frac{1-q^{n+1}}{1-q}. >> \stopformula >> \stoppropriete >> >> \stoptext >> end example >> >> Wolfgang >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] alignment problem in a table
Hello, The third column of matrix is not centered vertically and horizontally. thank you, Fabrice \setupbodyfont[pagella,11pt] \definemathmatrix [pmatrix] [left={\left(\,},right={\,\right)}] \define[3]\coef{\math{#1_{#2, #3}}\autoinsertnextspace} \startsetups[table:initialize] \setupTABLE[offset=0.8ex,width=0.25\textwidth] \setupTABLE[row][first] [background=color,backgroundcolor=lightgray] \setupTABLE[start][align={middle,lohi}] \stopsetups \starttext {\bf Matrices particulières} \startlinecorrection[blank] \startmidaligned \switchtobodyfont[10pt] \bTABLE[setups=table:initialize] \bTR \bTD {\bf Matrice ligne} \\ Dimension \math{\left(1\times p\right)} \eTD \bTD {\bf Matrice colonne} \\ Dimension \math{\left(n\times 1\right)} \eTD \bTD {\bf Matrice carrée} \\ Dimension \math{\left(n\times n\right)} \eTD \bTD {\bf Matrice unité \math{\bi I_n}} \\ Dimension \math{\left(n\times n\right)}\eTD \eTR \bTR \bTD \startformula \startpmatrix \NC \coef{a}{1}{1} \NC \coef{a}{1}{2} \NC \dots \NC \coef{a}{1}{p} \stoppmatrix \stopformula \eTD \bTD \startformula \startpmatrix \NC \coef{a}{1}{1} \NR \NC \coef{a}{2}{1} \NR \NC\dots \NR \NC \coef{a}{n}{1} \stoppmatrix \stopformula \eTD \bTD \startformula \startpmatrix \NC \coef{a}{1}{1} \NC \coef{a}{1}{2} \NC \dots \NC \coef{a}{1}{n}\NR \NC \coef{a}{2}{1} \NC \coef{a}{2}{2} \NC \dots \NC \coef{a}{2}{n}\NR \NC \dots \NC \dots \NC \dots \NC \dots \NR \NC \coef{a}{n}{1} \NC \coef{a}{n}{2} \NC \dots \NC \coef{a}{n}{n} \stoppmatrix \stopformula \eTD \bTD \startformula \startpmatrix \NC 1 \NC 0 \NC \dots \NC 0 \NR \NC 0 \NC 1 \NC \dots \NC 0 \NR \NC \dots \NC \dots \NC \dots \NC \dots \NR \NC 0 \NC 0 \NC \dots \NC 1 \stoppmatrix \stopformula \eTD \eTR \eTABLE \stopmidaligned \stoplinecorrection \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (no subject)
Hi Otared, thanks, in fact, the placement of the \placerecipe{}{} in the text determines the placement of the framed in the right margin if I understand. Fabrice 2016-07-17 10:46 GMT+02:00 Otared Kavian <ota...@gmail.com>: > Hi Fabrice, > > If you want the framed box to be placed on the same baseline as the letter > A, in the example, then you have to tell ConTeXt to place a margin material > right after A, as in > > > A\\ \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > B \\ C > > and you can play with setupframed by choosing an option « low » or » high > » according to your desire. > > Best regards: Otared > > > > On 16 Jul 2016, at 23:23, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > > > Hi Kavian, > > Okay, but I do not understand why the top of the framed can not be on > the baseline of the letter A. > > Fabrice > > > > 2016-07-16 11:28 GMT+02:00 Otared Kavian <ota...@gmail.com>: > > Hi Fabrice, > > > > Indeed you can place your float a little bit higher in th emargin, as in > the example below, by using the keyword « high ». > > > > Best regrads: Otared K. > > % begin fabrice-inmargin.tex > > \setuplayout > > [width=13cm, > >rightmargin=5cm] > > > > \setupbodyfont[pagella,11pt] > > > > \definefloat > >[recipe] > >[figure] > > > > \setupfloat > >[recipe] > >[default={rightmargin,none,high}] > > > > \setupframed > > [frame=on, > >width=\rightmarginwidth, > >align=justify, > >offset=2pt, > >location=low, > >rulethickness=1pt, > >framecolor=darkred, > >corner=00] > > > > \showgrid > > \showframe > > > > \starttext > > > > A\\ B \\ C > > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > > > \input ward.tex > > > > \setupfloat > >[recipe] > >[default={rightmargin,none,low}] > > > > A\\ B \\ C > > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > > > \stoptext > > % end fabrice-inmargin.tex > > > > > On 16 Jul 2016, at 00:44, Fabrice Couvreur < > fabrice1.couvr...@gmail.com> wrote: > > > > > > Hi Kavian (your first name ?) > > > Thank you for your suggestion but it is still a little problem: why > the baseline of the framed is the thirdA and not the first ? > > > thank you, > > > Fabrice > > > > > > \useMPlibrary [dum] > > > > > > \setuplayout > > > [width=13cm, > > >rightmargin=5cm] > > > > > > > > > \setupbodyfont[pagella,11pt] > > > > > > \definefloat > > >[recipe] > > >[figure] > > > > > > \setupfloat > > >[recipe] > > >[default={rightmargin,none}] > > > > > > \setupframed > > > [frame=on, > > >width=\rightmarginwidth, > > >align=justify, > > >offset=2pt, > > >location=low, > > >rulethickness=1pt, > > >framecolor=darkred, > > >corner=00] > > > > > > \starttext > > > > > > \showframe > > > > > > > > > A\\A\\A > > > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > > > > > > > > > > > \stoptext > > > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > ___ > > > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > ___ > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (no subject)
Hi Kavian, Okay, but I do not understand why the top of the framed can not be on the baseline of the letter A. Fabrice 2016-07-16 11:28 GMT+02:00 Otared Kavian <ota...@gmail.com>: > Hi Fabrice, > > Indeed you can place your float a little bit higher in th emargin, as in > the example below, by using the keyword « high ». > > Best regrads: Otared K. > % begin fabrice-inmargin.tex > \setuplayout > [width=13cm, >rightmargin=5cm] > > \setupbodyfont[pagella,11pt] > > \definefloat >[recipe] >[figure] > > \setupfloat >[recipe] >[default={rightmargin,none,high}] > > \setupframed > [frame=on, >width=\rightmarginwidth, >align=justify, >offset=2pt, >location=low, >rulethickness=1pt, >framecolor=darkred, >corner=00] > > \showgrid > \showframe > > \starttext > > A\\ B \\ C > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > \input ward.tex > > \setupfloat >[recipe] >[default={rightmargin,none,low}] > > A\\ B \\ C > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > \stoptext > % end fabrice-inmargin.tex > > > On 16 Jul 2016, at 00:44, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > > > Hi Kavian (your first name ?) > > Thank you for your suggestion but it is still a little problem: why the > baseline of the framed is the thirdA and not the first ? > > thank you, > > Fabrice > > > > \useMPlibrary [dum] > > > > \setuplayout > > [width=13cm, > >rightmargin=5cm] > > > > > > \setupbodyfont[pagella,11pt] > > > > \definefloat > >[recipe] > >[figure] > > > > \setupfloat > >[recipe] > >[default={rightmargin,none}] > > > > \setupframed > > [frame=on, > >width=\rightmarginwidth, > >align=justify, > >offset=2pt, > >location=low, > >rulethickness=1pt, > >framecolor=darkred, > >corner=00] > > > > \starttext > > > > \showframe > > > > > > A\\A\\A > > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > > > > > > > \stoptext > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (no subject)
Hi Kavian (your first name ?) Thank you for your suggestion but it is still a little problem: why the baseline of the framed is the third A and not the first ? thank you, Fabrice \useMPlibrary [dum] \setuplayout [width=13cm, rightmargin=5cm] \setupbodyfont[pagella,11pt] \definefloat [recipe] [figure] \setupfloat [recipe] [default={rightmargin,none}] \setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00] \starttext \showframe A\\A\\A \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} \stoptext 2016-07-15 18:51 GMT+02:00 Otared Kavian <ota...@gmail.com>: > Hi Fabrice, > > You can give an option to \framed, as in: > > \placerecipe{}{\framed[align=justify,offset=2pt]{La vie n'est pas un long > fleuve tranquille !}} > > You may also (in the above example) replace « fleuve » by « fleu||ve » in > order to get a hyphenation. > > Best regards: OK > > > On 15 Jul 2016, at 16:19, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > > > Hi Wolfgang, > > Thank you. Now I want the figures or boxes with text are automatically > placed in the right margin. Is this the best way ? > > How have justified text in the boxes ? > > Fabrice > > > > > > \useMPlibrary [dum] > > > > \setuplayout > > [width=13cm, > >rightmargin=5cm] > > > > \setupbodyfont[pagella,11pt] > > > > \definefloat > >[recipe] > >[figure] > > > > \setupfloat > >[recipe] > >[default={rightmargin,none}] > > > > \setupframed > > [frame=on, > >width=\rightmarginwidth, > >align=flushleft, > >location=low, > >rulethickness=1pt, > >framecolor=blue, > >corner=00] > > > > \starttext > > > > \showframe > > > > \placerecipe{}{\externalfigure [dummy] [width=\rightmarginwidth]} > > > > \placerecipe{}{\framed{La vie n'est pas un long fleuve tranquille !}} > > > > \stoptext > > ### > > > > > > 2016-07-15 13:26 GMT+02:00 Wolfgang Schuster < > schuster.wolfg...@gmail.com>: > >> Fabrice Couvreur 15. Juli 2016 um 13:17 > >> > >> Hello everyone, > >> The document > https://drive.google.com/file/d/0B-mkD83s36jbREZmbGdPaGVHUDg/view?usp=sharing > shows what I would do at the place reserved for the text and that reserved > for comments, ratings ... > >> Must use two columns or predefine the dimensions of the paper ? > > Change the layout of the page, the blue boxes are margin texts. > > > > \setuplayout > > [width=13cm, > >rightmargin=5cm] > > > > \showframe > > > > \starttext > > \page[dummy] > > \stoptext > > > > Wolfgang > > > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > ___ > > > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > ___ > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (no subject)
Hi Wolfgang, Thank you. Now I want the figures or boxes with text are automatically placed in the right margin. Is this the best way ? How have justified text in the boxes ? Fabrice \useMPlibrary [dum] \setuplayout [width=13cm, rightmargin=5cm] \setupbodyfont[pagella,11pt] \definefloat [recipe] [figure] \setupfloat [recipe] [default={rightmargin,none}] \setupframed [frame=on, width=\rightmarginwidth, align=flushleft, location=low, rulethickness=1pt, framecolor=blue, corner=00] \starttext \showframe \placerecipe{}{\externalfigure [dummy] [width=\rightmarginwidth]} \placerecipe{}{\framed{La vie n'est pas un long fleuve tranquille !}} \stoptext ### 2016-07-15 13:26 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 15. Juli 2016 um 13:17 > Hello everyone, > The document > https://drive.google.com/file/d/0B-mkD83s36jbREZmbGdPaGVHUDg/view?usp=sharing > shows > what I would do at the place reserved for the text and that reserved for > comments, ratings ... > Must use two columns or predefine the dimensions of the paper ? > > Change the layout of the page, the blue boxes are margin texts. > > \setuplayout > [width=13cm, >rightmargin=5cm] > > \showframe > > \starttext > \page[dummy] > \stoptext > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] (no subject)
Hello everyone, The document https://drive.google.com/file/d/0B-mkD83s36jbREZmbGdPaGVHUDg/view?usp=sharing shows what I would do at the place reserved for the text and that reserved for comments, ratings ... Must use two columns or predefine the dimensions of the paper ? thanks, Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setting \textrules
Hi Wolfgang, it's perfect ! thanks, Fabrice 2016-07-14 6:41 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 13. Juli 2016 um 01:02 > Hello, > I would like the text of the property is in italic without using the > environment {\it}. > > Use the enumeration environment. > > Is this the best way when I use \setuptextrules[width=-1ex] ? > > You can set the width and distance values to 0pt and put a space after the > counter. > > begin example > \setupbodyfont[pagella,11pt] > > \define[1]\ProprieteHeadcommand > {\textrule[top]{#1}} > > \defineenumeration > [propriete] > [text=Propriété , >style=italic, >headcommand=\ProprieteHeadcommand, >numbercommand=\groupedcommand{}{\nbsp}, >after=\textrule] > > \setuptextrules[width=0pt,distance=0pt] > > \starttext > > \startpropriete > Soit \math{q} un réel \math{\neq 1}, alors pour tout entier naturel > \math{n\geqslant 1} on a : > \startformula > S=1+q+q^2+\dots+q^n=\frac{1-q^{n+1}}{1-q}. > \stopformula > \stoppropriete > > \stoptext > end example > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Set Contents
Hi Wolfgang, thank you for the answer (There is much to know !). I would also have this: > > I First chapter >Activity >1.1 Second section >1.2 Third section \setupheadnumber[section][0] Fabrice 2016-07-13 18:20 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 13. Juli 2016 um 17:09 > Hello, > I wish that in the table of contents and only one, the number of chapters > are I, II, III, IV ... > > When you change a different conversion for the chapter numbers only in the > ToC use this: > > \defineconversionset[chapterconversion][n,R][n] > > \setuplist > [chapter] > [numberconversionset=chapterconversion] > > but when you want it in the entire document use this: > > \defineconversionset[chapterconversion][n,R][n] > > \setuphead > [chapter] > [sectionconversionset=chapterconversion] > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Set Contents
Hello, I wish that in the table of contents and only one, the number of chapters are I, II, III, IV ... I would also have this: I First chapter Activity 1.1 Second section 1.2 Third section thanks, Fabrice \setuplist [chapter] [after={\blank[line]}, style=bold] \setuplist [section] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c] \starttext \title [content] {Sommaire} \placecontent \startchapter[title={First chapter}] \startsection[title={Activity},number=no] \stopsection \startsection[title={Second section}] \stopsection \startsection[title={Third section}] \stopsection \stopchapter \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Setting \textrules
Hello, I would like the text of the property is in italic without using the environment {\it}. Is this the best way when I use \setuptextrules[width=-1ex] ? thank you, Fabrice ### \definetypeface [mainface] [rm] [serif] [palatino] [default] [features=default] \definetypeface [mainface] [tt] [mono] [modern] [default] [features=default, rscale=1.1] \definetypeface [mainface] [mm] [math] [pagella] [default] [encoding=texnansi] \setupbodyfont[mainface,11pt] \definelabel [Propriété] [headstyle=bolditalic,way=bytext] \setuptextrules[width=-1ex] \starttext \textrule[top]{\Propriété} {\it Soit \math{q} un réel \math{\neq 1}, alors pour tout entier naturel \math{n\geqslant 1} on a : \startformula S=1+q+q^2+\dots+q^n=\frac{1-q^{n+1}}{1-q}. \stopformula} \textrule \textrule[top]{\Propriété} Soit \math{q} un réel \math{\neq 1}, alors pour tout entier naturel \math{n\geqslant 1} on a : \startformula S=1+q+q^2+\dots+q^n=\frac{1-q^{n+1}}{1-q}. \stopformula \textrule \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Remove files that are not needed (Metafun)
Thanks Wolfgang and Aditya Fabrice 2016-07-12 21:04 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 12. Juli 2016 um 20:41 > > How filling the number ? > > \startusableMPgraphic{NumberHead} > draw outlinetext.b > ("\bf\namedheadnumber{chapter}") > (withcolor "lightgray") > (withpen pencircle scaled .1) > ysized 60pt ; > \stopusableMPgraphic > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Remove files that are not needed (Metafun)
> > this is more modern (the method, not the font): How filling the number ? 2016-07-12 17:56 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/12/2016 5:21 PM, Fabrice Couvreur wrote: > >> Compiling this file returns files ntg46-mpgraph.log ntg46-mpgraph.tex >> ntg46-mpgraph.mpy ntg46-mpgraph.pdf ntg46-mpgraph.tuc >> > > this is more modern (the method, not the font): > > \startusableMPgraphic{NumberHead} > draw outlinetext.d > ("\bf\namedheadnumber{chapter}") > (withpen pencircle scaled .1) > ysized 60pt ; > \stopusableMPgraphic > > > > % macros=mkvi >> >> \setuppagenumbering[location=footer] >> >> \startusableMPgraphic{NumberHead} >> picture r ; >> r := image ( graphictext >> "\bf\namedheadnumber{chapter}" >> scaled 5pt >> withfillcolor \MPcolor{lightgray} >> withpen pencircle scaled 1pt ; ) ; >> draw r ; >> \stopusableMPgraphic >> >> \def\processMPheadnumber#1% >> {\useMPgraphic{NumberHead}} >> >> \setuphead >>[chapter] >>[command=\HeadTitle, >> headstyle=\ss, >> numbercommand=\processMPheadnumber] >> >> >> \unexpanded\def\HeadTitle#1#2% >> {\framed >> [frame=off, >> bottomframe=on, >> width=broad, >> align={broad,nothyphenated,left}] >> {#1\blank[nowhite]#2}} >> >> \starttext >> >> \startchapter >> [title={Fist chapter}] >> >> \input knuth >> >> \stopchapter >> >> \stoptext >> >> 2016-07-12 16:45 GMT+02:00 Hans Hagen <pra...@wxs.nl >> <mailto:pra...@wxs.nl>>: >> >> On 7/12/2016 3:30 PM, Fabrice Couvreur wrote: >> >> Thank youfor the information, but it remains to delete the files >> ... >> mpgraph.log >> >> >> fwiw, mkiv normally doesn't have such files >> >> Hans >> >> >> - >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>tel: 038 477 53 69 | www.pragma-ade.nl >> <http://www.pragma-ade.nl> | www.pragma-pod.nl >> <http://www.pragma-pod.nl> >> - >> >> >> ___ >> If your question is of interest to others as well, please add an >> entry to the Wiki! >> >> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> >> >> >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> >> > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Remove files that are not needed (Metafun)
Compiling this file returns files ntg46-mpgraph.log ntg46-mpgraph.tex ntg46-mpgraph.mpy ntg46-mpgraph.pdf ntg46-mpgraph.tuc % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} picture r ; r := image ( graphictext "\bf\namedheadnumber{chapter}" scaled 5pt withfillcolor \MPcolor{lightgray} withpen pencircle scaled 1pt ; ) ; draw r ; \stopusableMPgraphic \def\processMPheadnumber#1% {\useMPgraphic{NumberHead}} \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\processMPheadnumber] \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, bottomframe=on, width=broad, align={broad,nothyphenated,left}] {#1\blank[nowhite]#2}} \starttext \startchapter [title={Fist chapter}] \input knuth \stopchapter \stoptext 2016-07-12 16:45 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/12/2016 3:30 PM, Fabrice Couvreur wrote: > >> Thank youfor the information, but it remains to delete the files ... >> mpgraph.log >> > > fwiw, mkiv normally doesn't have such files > > Hans > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Remove files that are not needed (Metafun)
Thank you for the information, but it remains to delete the files ... mpgraph.log It takes maybe write a script. Fabrice 2016-07-12 14:42 GMT+02:00 Willi Egger <cont...@boede.nl>: > context —purgeall is your friend. The pdfs you will have to delete > manually. > > Willi > > On 12 jul. 2016, at 12:44, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > > > > > Hello, > > One of my command uses a macro build from Metafun. The compilation > generates many files. > > How to delete files in the formats mpgraph.log, mpgraph.mpy, > mpgraph.pdf, mpgraph.tex and mpgraph.tuc ? > > thank you, > > Fabrice > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > ___ > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Remove files that are not needed (Metafun)
Hello, One of my command uses a macro build from Metafun. The compilation generates many files. How to delete files in the formats mpgraph.log, mpgraph.mpy, mpgraph.pdf, mpgraph.tex and mpgraph.tuc ? thank you, Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \currentheadnumber does not work
Hello Wolfgang, When compiling the file with the macro, there is a lot of files that can be deleted (mpgraph.mpy, mpgraph.pdf ...) How to do ? thank you, Fabrice 2016-07-10 10:56 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hi Wolfgang, > Thank you for the code and still as clear explanations. > Fabrice > > 2016-07-09 12:45 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com> > : > >> Fabrice Couvreur <fabrice1.couvr...@gmail.com> >> 9. Juli 2016 um 12:17 >> Hi Wolfgang, >> >> In the first example, so I do not need the command \currentheadnumber >> but just do : >> >> \setuphead >>[chapter] >>[command=\HeadTitle, >> headstyle=\ss, >> numbercommand=\Headed] >> >> ConTeXt passes the section number to the argument of the \Headed command. >> >> But in this second example, using the command >> \determineheadnumber[chapter], the chapter number is always 0 >> >> You need \determineheadnumber[...] each time when the value for >> \currentheadnumber should change. >> >> \setuppagenumbering[location=footer] >> >> \startusableMPgraphic{NumberHead} >> picture r ; >> r := image ( graphictext >> \MPstring{chapter} >> scaled 4pt >> withfillcolor \MPcolor{lightgray} >> withpen pencircle scaled 1pt ; ) ; >> draw r ; >> \stopusableMPgraphic >> >> \defineoverlay[NumberHead][\uniqueMPgraphic{NumberHead}] >> >> \def\processMPheadnumber#1% >> {\setMPtext{chapter}{\bf#1} >>\useMPgraphic{NumberHead}} >> >> \setuphead >>[chapter] >>[command=\HeadTitle, >> headstyle=\ss, >> numbercommand=\processMPheadnumber{\currentheadnumber}] >> >> The following works here. >> >> \startusableMPgraphic{NumberHead} >> picture r ; >> r := image ( graphictext >> "\bf\namedheadnumber{chapter}" >> scaled 4pt >> withfillcolor \MPcolor{lightgray} >> withpen pencircle scaled 1pt ; ) ; >> draw r ; >> \stopusableMPgraphic >> >> \def\processMPheadnumber#1% >> {\useMPgraphic{NumberHead}} >> >> \setuphead >>[chapter] >>[command=\HeadTitle, >> headstyle=\ss, >> numbercommand=\processMPheadnumber] >> >> Wolfgang >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ >> > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \currentheadnumber does not work
Hi Wolfgang, Thank you for the code and still as clear explanations. Fabrice 2016-07-09 12:45 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 9. Juli 2016 um 12:17 > Hi Wolfgang, > > In the first example, so I do not need the command \currentheadnumber > but just do : > > \setuphead >[chapter] >[command=\HeadTitle, > headstyle=\ss, > numbercommand=\Headed] > > ConTeXt passes the section number to the argument of the \Headed command. > > But in this second example, using the command > \determineheadnumber[chapter], the chapter number is always 0 > > You need \determineheadnumber[...] each time when the value for > \currentheadnumber should change. > > \setuppagenumbering[location=footer] > > \startusableMPgraphic{NumberHead} > picture r ; > r := image ( graphictext > \MPstring{chapter} > scaled 4pt > withfillcolor \MPcolor{lightgray} > withpen pencircle scaled 1pt ; ) ; > draw r ; > \stopusableMPgraphic > > \defineoverlay[NumberHead][\uniqueMPgraphic{NumberHead}] > > \def\processMPheadnumber#1% > {\setMPtext{chapter}{\bf#1} >\useMPgraphic{NumberHead}} > > \setuphead >[chapter] >[command=\HeadTitle, > headstyle=\ss, > numbercommand=\processMPheadnumber{\currentheadnumber}] > > The following works here. > > \startusableMPgraphic{NumberHead} > picture r ; > r := image ( graphictext > "\bf\namedheadnumber{chapter}" > scaled 4pt > withfillcolor \MPcolor{lightgray} > withpen pencircle scaled 1pt ; ) ; > draw r ; > \stopusableMPgraphic > > \def\processMPheadnumber#1% > {\useMPgraphic{NumberHead}} > > \setuphead >[chapter] >[command=\HeadTitle, > headstyle=\ss, > numbercommand=\processMPheadnumber] > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \currentheadnumber does not work
Hi Wolfgang, In the first example, so I do not need the command \currentheadnumber but just do : \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\Headed] But in this second example, using the command \determineheadnumber[chapter], the chapter number is always 0 \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} picture r ; r := image ( graphictext \MPstring{chapter} scaled 4pt withfillcolor \MPcolor{lightgray} withpen pencircle scaled 1pt ; ) ; draw r ; \stopusableMPgraphic \defineoverlay[NumberHead][\uniqueMPgraphic{NumberHead}] \def\processMPheadnumber#1% {\setMPtext{chapter}{\bf#1} \useMPgraphic{NumberHead}} \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, bottomframe=on, width=broad, align={broad,nothyphenated,left}] {#1\blank[nowhite]#2}} \determineheadnumber[chapter] \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\processMPheadnumber{\currentheadnumber}] \starttext \startchapter [title={Fist chapter}] \input knuth \stopchapter \startchapter [title={Second chapter}] \input knuth \stopchapter \startchapter [title={Third chapter}] \input knuth \stopchapter \stoptext 2016-07-09 11:32 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 9. Juli 2016 um 11:12 > Hello, > In this command, I have two problems : > > - \currentheadnumber does not work > > You need > > \determineheadnumber[chapter] > > before you can access the value with > > \currentheadnumber > > - the chapter number appears in black > > You need this setup: > > \setuphead >[chapter] >[numbercommand=\Headed] > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \currentheadnumber does not work
Hello, In this command, I have two problems : - \currentheadnumber does not work - the chapter number appears in black thank you, Fabrice \setuppagenumbering[location=footer] \startuseMPgraphic{head} pickup pencircle scaled 1mm ; drawoptions(withcolor lightgray) ; fill unitsquare scaled 1cm smoothed 1.2 ; \stopuseMPgraphic \defineoverlay[head][\uniqueMPgraphic{head}] \def\Headed#1% {\framed [background=head,frame=off,offset=overlay] {\color[white]{#1}}} \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, bottomframe=on, width=broad, align={broad,nothyphenated,left}] {#1\blank[white]#2}} \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\Headed{\currentheadnumber}] \starttext \startchapter [title={Fist chapter}] \input knuth \stopchapter \startchapter [title={Second chapter}] \input knuth \stopchapter \startchapter [title={Third chapter}] \input knuth \stopchapter \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Baseline and framed
The following macro places the title right \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, width=broad, align={broad,nothyphenated,left}] {#1\blank#2}} 2016-07-06 23:22 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > I wish the chapter title on right of the page. The numbering of the > chapters is fixed at 0, why ? > thank you, > Fabrice > > > > \unexpanded\def\HeadTitle#1#2% > {\vbox \bgroup >\setupframed[offset=0.5em,frame=off] >\inframed[width=fit,align=right]{#1}% >\inframed[width=fit,align=right]{#2}% >\egroup} > > > \startusableMPgraphic{chapter} > picture r ; > r := image ( graphictext > \MPstring{chapter} > scaled 3pt > withfillcolor \MPcolor{lightgray} > withpen pencircle scaled 1pt ; ) ; > draw r ; > \stopusableMPgraphic > > \unexpanded\def\processMPheadnumber#1% > {\setMPtext{chapter}{\bf#1} >\useMPgraphic{chapter}} > > \setuphead >[chapter] >[command=\HeadTitle, > numbercommand=\processMPheadnumber{\currentheadnumber}] > > \starttext > > \startchapter > [title={Séries statistiques à deux variables}] > > > \stopchapter > > \startchapter > [title={Matrice}] > > > \stopchapter > > \startchapter > [title={Graphe}] > > > \stopchapter > > \stoptext > > > 2016-07-06 16:24 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > >> Thank you Hans, the code would be : >> >> \unexpanded\def\HeadTitle#1#2% >> {\hbox to \hsize \bgroup >>\hfill >>\setupframed[offset=0.5em,frame=off] >>\inframed[width=fit,align=left,frame=off]{\darkred#1}% >> >> \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% >>\egroup} >> >> Thank you Hans, the code would be: >> Could I ask you how to have the chapter number is like the >> http://www.pragma-ade.nl/general/manuals/cont-enp.pdf book? >> This is a macro Metafun but I do not quite understand the mechanism. >> thank you, >> Fabrice >> >> 2016-07-06 15:03 GMT+02:00 Hans Hagen <pra...@wxs.nl>: >> >>> On 7/6/2016 1:37 PM, Fabrice Couvreur wrote: >>> >>>> >>>> Hello, >>>> In the manual, there is the macro below. >>>> Why theword "Matrice" is not on the same baseline as the number "1" ? >>>> thank you, >>>> Fabrice >>>> >>>> \unexpanded\def\HeadTitle#1#2% >>>> {\hbox to \hsize \bgroup >>>>\setupframed[height=1cm,offset=0.5em,frame=on] >>>>\framed[width=fit,align=left]{\darkred#1}% >>>> >>>> >>>> \framed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% >>>> \egroup} >>>> >>>> \setuphead >>>>[chapter] >>>>[command=\HeadTitle] >>>> >>>> \starttext >>>> >>>> \startchapter >>>> [title={Matrice}] >>>> >>>> >>>> \stopchapter >>>> >>>> \stoptext >>>> >>> >>> fonts and such ... better use: >>> >>> \unexpanded\def\HeadTitle#1#2% >>> {\hbox to \hsize \bgroup >>>\inframed[width=fit,align=left]{\darkred#1}% >>> >>> >>> \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% >>>\egroup} >>> >>> - >>> Hans Hagen | PRAGMA ADE >>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl >>> - >>> >>> ___ >>> If your question is of interest to others as well, please add an entry >>> to the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >>> archive : http://foundry.supelec.fr/projects/contextrev/ >>> wiki : http://contextgarden.net >>> >>> ___ >> >> >> > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Baseline and framed
I wish the chapter title on right of the page. The numbering of the chapters is fixed at 0, why ? thank you, Fabrice \unexpanded\def\HeadTitle#1#2% {\vbox \bgroup \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=right]{#1}% \inframed[width=fit,align=right]{#2}% \egroup} \startusableMPgraphic{chapter} picture r ; r := image ( graphictext \MPstring{chapter} scaled 3pt withfillcolor \MPcolor{lightgray} withpen pencircle scaled 1pt ; ) ; draw r ; \stopusableMPgraphic \unexpanded\def\processMPheadnumber#1% {\setMPtext{chapter}{\bf#1} \useMPgraphic{chapter}} \setuphead [chapter] [command=\HeadTitle, numbercommand=\processMPheadnumber{\currentheadnumber}] \starttext \startchapter [title={Séries statistiques à deux variables}] \stopchapter \startchapter [title={Matrice}] \stopchapter \startchapter [title={Graphe}] \stopchapter \stoptext 2016-07-06 16:24 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Thank you Hans, the code would be : > > \unexpanded\def\HeadTitle#1#2% > {\hbox to \hsize \bgroup >\hfill >\setupframed[offset=0.5em,frame=off] >\inframed[width=fit,align=left,frame=off]{\darkred#1}% > > \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% >\egroup} > > Thank you Hans, the code would be: > Could I ask you how to have the chapter number is like the > http://www.pragma-ade.nl/general/manuals/cont-enp.pdf book? > This is a macro Metafun but I do not quite understand the mechanism. > thank you, > Fabrice > > 2016-07-06 15:03 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > >> On 7/6/2016 1:37 PM, Fabrice Couvreur wrote: >> >>> >>> Hello, >>> In the manual, there is the macro below. >>> Why theword "Matrice" is not on the same baseline as the number "1" ? >>> thank you, >>> Fabrice >>> >>> \unexpanded\def\HeadTitle#1#2% >>> {\hbox to \hsize \bgroup >>>\setupframed[height=1cm,offset=0.5em,frame=on] >>>\framed[width=fit,align=left]{\darkred#1}% >>> >>> >>> \framed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% >>> \egroup} >>> >>> \setuphead >>>[chapter] >>>[command=\HeadTitle] >>> >>> \starttext >>> >>> \startchapter >>> [title={Matrice}] >>> >>> >>> \stopchapter >>> >>> \stoptext >>> >> >> fonts and such ... better use: >> >> \unexpanded\def\HeadTitle#1#2% >> {\hbox to \hsize \bgroup >>\inframed[width=fit,align=left]{\darkred#1}% >> >> >> \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% >>\egroup} >> >> - >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl >> - >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___ > > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Baseline and framed
Thank you Hans, the code would be : \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=left,frame=off]{\darkred#1}% \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% \egroup} Thank you Hans, the code would be: Could I ask you how to have the chapter number is like the http://www.pragma-ade.nl/general/manuals/cont-enp.pdf book? This is a macro Metafun but I do not quite understand the mechanism. thank you, Fabrice 2016-07-06 15:03 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/6/2016 1:37 PM, Fabrice Couvreur wrote: > >> >> Hello, >> In the manual, there is the macro below. >> Why theword "Matrice" is not on the same baseline as the number "1" ? >> thank you, >> Fabrice >> >> \unexpanded\def\HeadTitle#1#2% >> {\hbox to \hsize \bgroup >>\setupframed[height=1cm,offset=0.5em,frame=on] >>\framed[width=fit,align=left]{\darkred#1}% >> >> >> \framed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% >> \egroup} >> >> \setuphead >>[chapter] >>[command=\HeadTitle] >> >> \starttext >> >> \startchapter >> [title={Matrice}] >> >> >> \stopchapter >> >> \stoptext >> > > fonts and such ... better use: > > \unexpanded\def\HeadTitle#1#2% > {\hbox to \hsize \bgroup >\inframed[width=fit,align=left]{\darkred#1}% > > > \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% >\egroup} > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Baseline and framed
Hello, In the manual, there is the macro below. Why the word "Matrice" is not on the same baseline as the number "1" ? thank you, Fabrice \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \setupframed[height=1cm,offset=0.5em,frame=on] \framed[width=fit,align=left]{\darkred#1}% \framed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% \egroup} \setuphead [chapter] [command=\HeadTitle] \starttext \startchapter [title={Matrice}] \stopchapter \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] source of the manual "Fonts out of ConTEXt"
Hello everyone, Hans made a new presentation of this book, is it possible to have the source code ? thank you, Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Package esvect and Context
It's ok. Thanks, Fabrice 2016-06-15 14:58 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 15. Juni 2016 um 14:48 > Hi Wolfgang, > what directory I put this file knowing that I installed the standalone > version in /home/fab/context > Fabrice > > The commend was meant for Hans, all *you* have to do is update your TeX > installation, afterwards you can try the following example: > > \useMPlibrary[mat] > > \setupmathstackers > [both] > [color=darkred, >alternative=mp] > > \setupmathstackers > [top] > [color=darkred, >alternative=mp] > > \setupmathstackers > [bottom] > [color=darkred, >alternative=mp] > > \starttext > > $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad > \doublebracket{a+b+c+d}$ \blank > $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad > \doubleparent {a+b+c+d}$ \blank > $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad > \doublebrace {a+b+c+d}$ \blank > $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad > \doublebar{a+b+c+d}$ \blank > > $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank > $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank > > \stoptext > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Package esvect and Context
Hi Wolfgang, what directory I put this file knowing that I installed the standalone version in /home/fab/context Fabrice 2016-06-07 23:04 GMT+02:00 Wolfgang Schuster: > Hans Hagen > 6. Juni 2016 um 22:50 > > > If you really want to go over the top: > > \useMPlibrary[mat] > > The file "meta-imp-mis.mkiv" is missing which results in a error about > "math_stacker_draw" being undefined. > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Package esvect and Context
lua stats > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf mkiv lua stats > font engine: otf 3.022, afm 1.512, tfm 1.000, 4 instances, load time 0.149 seconds mkiv lua stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkiv lua stats > luatex banner: this is luatex, version 0.95.0 (tex live 2016) mkiv lua stats > control sequences: 43841 of 65536 + 10 mkiv lua stats > lua properties: engine: lua, used memory: 59 MB (ctx: 58 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.551 seconds, 1 processed pages, 1 shipped pages, 1.815 pages/second system | total runtime: 0.784 seconds Thanks, Fabrice 2016-06-06 22:50 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 6/6/2016 9:39 PM, Fabrice Couvreur wrote: > >> Hi Joseph, >> This is already the command I used, but I think the point of the too >> small arrow. >> > > If you really want to go over the top: > > \useMPlibrary[mat] > > % will be in meta-imp-mat.mkiv > > \startMPextensions > vardef math_stacker_arrow_shape = > image ( > drawarrow > (OverlayWidth,OverlayOffset) -- (0,OverlayOffset) > withcolor > OverlayLineColor ; > setbounds currentpicture to boundingbox currentpicture > bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ; > ) > enddef ; > vardef math_stacker_leftarrow_shape = > math_stacker_arrow_shape > enddef ; > vardef math_stacker_rightarrow_shape = > math_stacker_arrow_shape rotated 180 > enddef ; > \stopMPextensions > > \startuniqueMPgraphic{math:stacker:\number"2190} > math_stacker_draw(math_stacker_leftarrow_shape) ; > \stopuniqueMPgraphic > > \startuniqueMPgraphic{math:stacker:\number"2192} > math_stacker_draw(math_stacker_rightarrow_shape) ; > \stopuniqueMPgraphic > > % so far > > \setupmathstackers > [both] % vfenced] > [color=darkred, >alternative=mp] > > \setupmathstackers > [top] > [color=darkred, >alternative=mp] > > \setupmathstackers > [bottom] > [color=darkred, >alternative=mp] > > \starttext > > $\overbracket {a+b+c+d} \quad \underbracket{a+b+c+d} \quad > \doublebracket{a+b+c+d}$ \blank > $\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad > \doubleparent {a+b+c+d}$ \blank > $\overbrace {a+b+c+d} \quad \underbrace {a+b+c+d} \quad > \doublebrace {a+b+c+d}$ \blank > $\overbar {a+b+c+d} \quad \underbar{a+b+c+d} \quad > \doublebar{a+b+c+d}$ \blank > > $\overleftarrow {a+b+c+d} \quad \overrightarrow {a+b+c+d} $ \blank > $\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank > > \stoptext > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl > - > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Package esvect and Context
Hi Joseph, This is already the command I used, but I think the point of the too small arrow. Regards, Fabrice 2016-06-06 21:23 GMT+02:00 <josephcan...@gmail.com>: > Hi Fabrice, > > Have you tried \vec command ? > > \startformula > > \vec{AB} = \vec{AC} + \vec{CB} > > \stopformula > > Best regards > > Joseph > > *From:* Fabrice Couvreur <fabrice1.couvr...@gmail.com> > *Sent:* Saturday, June 4, 2016 9:12 AM > *To:* ntg-context@ntg.nl > > Hello everyone, > When I used LaTeX, I was writing the vectors with esvect package. > Is there an equivalent with Context ? > Fabrice > > https://www.ctan.org/tex-archive/macros/latex/contrib/esvect/ > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Space between the main items
Hello everyone, How to insert more vertical space between the main items in the following code ? \def\point#1#2{$\bigl(#1\,;#2\bigr)$} \def\vector#1{\vec{#1}} \definemathmatrix [pmatrix] [left={\left(\,},right={\,\right)}] \starttext \startitemize[n][stopper={.},style=bold,color=darkred] \item Les coordonnées du vecteur \math{\vector{AB}} sont : \blank[formula] \startitemize[a,columns,joinedup,pack,1*broad,four] [stopper={.},style=bold,color=darkred] \item \math{\startpmatrix 2 \NR 1\NR \stoppmatrix} \item \math{\startpmatrix -2 \NR 2\NR \stoppmatrix} \item \math{\startpmatrix 3 \NR -3 \NR \stoppmatrix} \item \math{\startpmatrix -3 \NR 3 \NR \stoppmatrix} \stopitemize \blank[formula] \item Les coordonnées du vecteur \math{\vector{CD}} sont : \blank[formula] \startitemize[a,columns,joinedup,pack,1*broad,four] [stopper={.},style=bold,color=darkred] \item \math{\startpmatrix -2 \NR 3 \NR \stoppmatrix} \item \math{\startpmatrix 1 \NR 5 \NR \stoppmatrix} \item \math{\startpmatrix 0 \NR 5 \NR \stoppmatrix} \item \math{\startpmatrix 5 \NR 0 \NR \stoppmatrix} \stopitemize \blank[formula] \item Les coordonnées du vecteur \math{\vector{p}=\vector{AC}+\vector{FE}} sont : \blank[formula] \startitemize[a,columns,joinedup,pack,1*broad,four] [stopper={.},style=bold,color=darkred] \item \math{\startpmatrix 3 \NR 3 \NR \stoppmatrix} \item \math{\startpmatrix -3 \NR 3 \NR \stoppmatrix} \item \math{\startpmatrix 3 \NR -3 \NR \stoppmatrix} \item \math{\startpmatrix -3 \NR -3 \NR \stoppmatrix} \stopitemize \blank[formula] \item Les coordonnées du point \math{G} tel que \math{\vector{BG}=\vector{FA}} sont : \blank[formula] \startitemize[a,columns,joinedup,pack,1*broad,four] [stopper={.},style=bold,color=darkred] \item \point{1}{3} \item \point{3}{2} \item \point{2}{3} \item \point{1}{-4} \stopitemize \stopitemize \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Package esvect and Context
Hello everyone, When I used LaTeX, I was writing the vectors with esvect package. Is there an equivalent with Context ? Fabrice https://www.ctan.org/tex-archive/macros/latex/contrib/esvect/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange behavior with Utopia fonts in math mode
Hello, I compiled this file with a strange exit for mathematical formula. What's missing in my file ? Thank you. Fabrice \loadtypescriptfile[mathdesign] \usetypescriptfile[utopia] \definetypeface[mainface][rm] [serif][palatino][default][encoding=texnansi] \definetypeface[mainface][ss][sans] [helvetica] [default][encoding=texnansi] [rscale=auto] \definetypeface[mainface][mm] [math] [utopia] [default] [rscale=auto] \setupbodyfont[mainface,12pt] \starttext \input knuth \startformula f(x) = \sum_{i=1}^n a_i x^i \stopformula \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fourier install fonts
Hi Hans, I renounce the Fourier install fonts, but instead, I will use the fonts Utopia. The following file produces the error : fab@debian:~$ context ntg44.tex resolvers | trees | analyzing 'home:texmf' mtx-context | run 1: luatex --fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="ntg44" --lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg44.tex" --c:input="./ntg44.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv" This is LuaTeX, Version beta-0.90.0 (TeX Live 2016) system commands enabled. resolvers > trees > analyzing 'home:texmf' open source > 1 > 1 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv ConTeXt ver: 2016.03.26 13:51 MKIV beta fmt: 2016.4.12 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv close source> 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv system > files > jobname 'ntg44', input './ntg44', result 'ntg44' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/fab/ntg44.tex fonts > typescripts > unknown library 'utopia' open source > 3 > 4 > /home/fab/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv close source> 3 > 4 > /home/fab/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv fonts > preloading modern-designsize (mono) fonts > typescripts > unknown library 'modern-designsize' fonts > 'fallback modern-designsize tt 12pt' is loaded open source > 3 > 5 > /home/fab/context/tex/texmf-context/tex/context/sample/common/knuth.tex close source> 3 > 5 > /home/fab/context/tex/texmf-context/tex/context/sample/common/knuth.tex tex error > tex error on line 23 in file /home/fab/ntg44.tex: ! Math error: parameter \Umathaxis\textstyle is not set \stopdisplaymath ...math \Ucheckedstopdisplaymath \par \ifvmode \ifcase \c_s... \strc_formulas_stop_formula ...formula \endcsname \dostoptagged \dostoptagge... l.23 \stopformula 13 \appendtoks \rm \to \everymathematics 14 \setupmathematics 15 [lcgreek=normal, ucgreek=normal] 16 17 \starttext 18 19 \input knuth 20 21 \startformula 22{\Bbb P}(x) = \sum_{i=1}^n α_i x^i 23 >> \stopformula 24 25 \stoptext 26 27 28 %%% 29 %%% Local Variables: 30 %%% Mode: context 31 %%% End: 32 ? \usetypescriptfile[utopia] \definetypeface[mainface][rm] [serif][palatino][default][encoding=texnansi] \definetypeface[mainface][ss][sans] [helvetica] [default][encoding=texnansi] [rscale=auto] \definetypeface[mainface][mm] [math] [utopia] [default] [rscale=auto] \setupbodyfont[mainface,12pt] \appendtoks \rm \to \everymathematics \setupmathematics [lcgreek=normal, ucgreek=normal] \starttext \input knuth \startformula {\Bbb P}(x) = \sum_{i=1}^n α_i x^i \stopformula \stoptext Thanks, Fabrice 2016-04-12 13:59 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 4/12/2016 1:19 PM, Fabrice Couvreur wrote: > >> >> Hi Hans, >> I downloaded the fonts in /home/fab/texmf/fonts/opentype/fourier-GUT then: >> >> fab@debian:~$ mtxrun --script fonts --list --all --pattern=*fourier* >> >> resolvers | trees | analyzing 'home:.texlive2015/texmf-config' >> resolvers | trees | analyzing 'home:texmf' >> fourieralternateblack fourieralternateblack >> fourier-alt-black.afm >> fourieralternateboldfourieralternatebold >> fourier-alt-bold.afm >> fourieralternatebolditalic fourieralternatebolditalic >> fourier-alt-boldita.afm >> fourieralternatebolditalicbold fourieralternatebolditalic >> fourier-alt-boldita.afm >> fourieralternateitalic fourieralternateitalic >> fourier-alt-ita.afm >> fourieralternateitalicnormalfourieralternateitalic >> fourier-alt-ita.afm >> fourieralternateroman fourieralternateroman >> fourier-alt.afm >> fourieralternateromannormal fourieralternateroman >> fourier-alt.afm >> fourieralternatesemiboldfourieralternatesemibold >&
Re: [NTG-context] Fourier install fonts
Hi Hans, I downloaded the fonts in /home/fab/texmf/fonts/opentype/fourier-GUT then : fab@debian:~$ mtxrun --script fonts --list --all --pattern=*fourier* resolvers | trees | analyzing 'home:.texlive2015/texmf-config' resolvers | trees | analyzing 'home:texmf' fourieralternateblack fourieralternateblack fourier-alt-black.afm fourieralternateboldfourieralternatebold fourier-alt-bold.afm fourieralternatebolditalic fourieralternatebolditalic fourier-alt-boldita.afm fourieralternatebolditalicbold fourieralternatebolditalic fourier-alt-boldita.afm fourieralternateitalic fourieralternateitalic fourier-alt-ita.afm fourieralternateitalicnormalfourieralternateitalic fourier-alt-ita.afm fourieralternateroman fourieralternateroman fourier-alt.afm fourieralternateromannormal fourieralternateroman fourier-alt.afm fourieralternatesemiboldfourieralternatesemibold fourier-alt-semi.afm fourieralternatesemitalic fourieralternatesemitalic fourier-alt-semiita.afm fourieralternatesemitalicsemibold fourieralternatesemitalic fourier-alt-semiita.afm fouriermathblackboard fouriermathblackboard fourier-bb.afm fouriermathblackboardblack fouriermathblackboard fourier-bb.afm fouriermathcal fouriermathcal fourier-mcl.afm fouriermathcalnormalfouriermathcal fourier-mcl.afm fouriermathextensionfouriermathextension fourier-mex.afm fouriermathextensionmedium fouriermathextension fourier-mex.afm fouriermathletters fouriermathletters fourier-ml.afm fouriermathlettersbold fouriermathlettersbold fourier-mlb.afm fouriermathlettersbolditalicfouriermathlettersbolditalic fourier-mlitb.afm fouriermathlettersitalicfouriermathlettersitalic fourier-mlit.afm fouriermathlettersnormalfouriermathletters fourier-ml.afm fouriermathsymbols fouriermathsymbols fourier-ms.afm fouriermathsymbolsbold fouriermathsymbols fourier-ms.afm fourierorns fourierorns fourier-orns.afm fourierornsnormal fourierorns fourier-orns.afm fab@debian:~$ I begin with the text without math : \starttypescript [serif] [fourier] \setups[font:fallback:serif] \definefontsynonym [Fourier-Regular] [file:fourier-alt-black.afm] \definefontsynonym [Fourier-Italic] [file:fourier-alt-ita.afm] \definefontsynonym [Fourier-Bold][file:fourier-alt-bold.afm] \definefontsynonym [Fourier-BoldItalic] [file:fourier-alt-boldita.afm] \stoptypescript \starttypescript [serif] [fourier] [name] \setups[font:fallback:serif] \definefontsynonym [Serif][Fourier-Regular] \definefontsynonym [SerifItalic] [Fourier-Italic] \definefontsynonym [SerifBold][Fourier-Bold] \definefontsynonym [SerifBoldItalic] [Fourier-BoldItalic] \stoptypescript \definetypeface [mainface] [rm] [serif] [fourier] [default] \setupbodyfont[mainface] \starttext \input knuth \stoptext Unfortunately, the output file is empty. Thanks Fabrice 2016-04-11 19:08 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 4/11/2016 12:43 PM, Fabrice Couvreur wrote: > >> Hi, >> With Latex, just do it : >> >> \usepackage[T1]{fontenc} \usepackage{fourier} >> >> I'm confused about how to do it with Context. >> Thanks for your help. >> > > you need a typescript file for it an dit being 8 bit fonts you also need a > virtual font definition file (like the px, tx and mathdesign fonts have) > ... no big deal (one time job) but someone has to do it > (so far no one needed fourier i guess) > > Hans > > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-
[NTG-context] Fourier install fonts
Hi, With Latex, just do it : \usepackage[T1]{fontenc}\usepackage{fourier} I'm confused about how to do it with Context. Thanks for your help. Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Last version standalone issue
Hello, I think you're right, the problem is TIKZ. If I delete my file mymodules.tex everything related TIKZ, the file compiles without problems. Fabrice 2016-02-18 22:05 GMT+01:00 Hans Hagen <pra...@wxs.nl>: > On 2/18/2016 4:53 PM, Fabrice Couvreur wrote: > >> Hello, >> With the latest version, compiling returns this : >> >> fab@debian:~/Terminale/2015_2016$ context test-9.tex >> > > what is test-9 > > it migh tbe this tikz issue discussed last week > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with Enumerations
Hi Hans, By removing \startlinecorrection[blank] the problem persists with the following code. Thank you. Fabrice \starttext \startitemize[n][stopper={.},style=bold] \item La suite \m{\left(U_n\right)} est géométrique de premier terme \m{U_0 = 10} et de raison \m{q = 3 }, alors : \startitemize[a,columns,joinedup,pack,2*broad,three][stopper={.},style=bold] \item \math{U_4 = 22} \item \math{U_4 = 810} \item \math{U_4 = 10 \times 3^3} \item \math{U_4 = 10 + 3 \times 4} \stopitemize \stopitemize \stoptext 2016-02-18 22:03 GMT+01:00 Hans Hagen <pra...@wxs.nl>: > On 2/18/2016 5:34 PM, Fabrice Couvreur wrote: > >> Hello, >> I do not succeed more to have a list according to the number of columns >> that I chose. >> Thank you >> Fabrice >> >> \starttext >> >> \startitemize[n][stopper={.},style=bold] >> >> \item La suite \m{\left(U_n\right)} est géométrique de premier terme >> \m{U_0 = 10} et de raison \m{q = 3 }, alors : >> >> \startlinecorrection[blank] >> >> >> \startitemize[a,columns,joinedup,pack,2*broad,three][stopper={.},style=bold] >> >> >> \item \math{U_4 = 22} >> \item \math{U_4 = 810} >> \item \math{U_4 = 10 \times 3^3} >> \item \math{U_4 = 10 + 3 \times 4} >> >> \stopitemize >> >> \stoplinecorrection >> >> \stopitemize >> > > don't use the line correction wrapper > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl > - > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with Enumerations
Hello, I do not succeed more to have a list according to the number of columns that I chose. Thank you Fabrice \starttext \startitemize[n][stopper={.},style=bold] \item La suite \m{\left(U_n\right)} est géométrique de premier terme \m{U_0 = 10} et de raison \m{q = 3 }, alors : \startlinecorrection[blank] \startitemize[a,columns,joinedup,pack,2*broad,three][stopper={.},style=bold] \item \math{U_4 = 22} \item \math{U_4 = 810} \item \math{U_4 = 10 \times 3^3} \item \math{U_4 = 10 + 3 \times 4} \stopitemize \stoplinecorrection \stopitemize \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Last version standalone issue
Hello, With the latest version, compiling returns this : fab@debian:~/Terminale/2015_2016$ context test-9.tex resolvers | trees | analyzing 'home:texmf' mtx-context | run 1: luatex --fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="test-9" --lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test-9.tex" --c:input="./test-9.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv" This is LuaTeX, Version beta-0.89.0 (TeX Live 2016/dev) system commands enabled. resolvers > trees > analyzing 'home:texmf' system > callbacks > not registering frozen 'find_format_file' open source > 1 > 1 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv ConTeXt ver: 2016.02.17 11:11 MKIV beta fmt: 2016.2.18 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv close source> 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv system > files > jobname 'test-9', input './test-9', result 'test-9' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/fab/Terminale/2015_2016/test-9.tex open source > 3 > 4 > manual.tex open source > 4 > 5 > my-fonts.tex open source > 5 > 6 > /home/fab/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv close source> 5 > 6 > /home/fab/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv fonts > preloading modern-designsize (mono) fonts > typescripts > unknown library 'modern-designsize' fonts > 'fallback modern-designsize tt 11pt' is loaded close source> 4 > 6 > my-fonts.tex open source > 4 > 7 > my-layout.tex colors > 'rgb' color space is supported colors > 'cmyk' color space is supported close source> 4 > 7 > my-layout.tex open source > 4 > 8 > my-modules.tex open source > 5 > 9 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/symb-imp-mvs.mkiv close source> 5 > 9 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/symb-imp-mvs.mkiv fonts > symbols > library 'mvs' loaded resolvers > modules > 'algorithmic' is loaded open source > 5 > 10 > /home/fab/context/tex/texmf-modules/tex/context/third/algorithmic/t-algorithmic.mkiv loading > Context User Module / Algorithms close source> 5 > 10 > /home/fab/context/tex/texmf-modules/tex/context/third/algorithmic/t-algorithmic.mkiv resolvers > modules > 'tikz' is loaded open source > 5 > 11 > /home/fab/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex loading > ConTeXt User Module / tikz open source > 6 > 12 > /home/fab/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex loading > ConTeXt User Module / pgf open source > 7 > 13 > /home/fab/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex loading > ConTeXt User Module / pgfcor open source > 8 > 14 > /home/fab/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex loading > ConTeXt User Module / pgfsys open source > 9 > 15 > /home/fab/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex loading > ConTeXt User Module / pgfrcs open source > 10 > 16 > /home/fab/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex loading > ConTeXt User Module / pgfmodules close source> 10 > 16 > /home/fab/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex open source > 10 > 17 > /home/fab/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex open source > 11 > 18 > /home/fab/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex close source> 11 > 18 > /home/fab/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex close source> 10 > 18 > /home/fab/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex open source > 10 > 19 > /home/fab/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def close source> 10 > 19 > /home/fab/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def open source > 10 > 20 > /home/fab/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex close source> 10 > 20 > /home/fab/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex close source> 9 > 20 > /home/fab/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex open source > 9 > 21 > /home/fab/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex close source> 9 > 21 >
[NTG-context] Primitive angle (Metapost)
Hello, I want to reproduce this figure. In the example below, it seemed to me that he had to write dir(180-angle(1,0.5)), but not. \starttext \startMPcode path p ; p := (3.5cm,-1.5cm)--(0cm,0.25cm)--1.2cm*dir(180-angle(1,0.5)) ; draw p dashed evenly withcolor 0.625white; draw p reflectedabout ((3.75cm,-1.5cm),(3.75cm,1.5cm)) dashed evenly withcolor 0.625white ; draw (-1cm,-1.5cm)--(8.5cm,-1.5cm)--(8.5cm,0.9cm)--(-1cm,0.9cm)--cycle withcolor 0.625white ; for i=0 upto 14 : draw unitsquare scaled 0.5cm shifted(i/2*cm,0*cm) ; endfor ; for i=0 upto 10 : draw unitsquare scaled 0.5cm shifted((i+2)/2*cm,-1/2*cm) ; endfor ; for i=0 upto 6 : draw unitsquare scaled 0.5cm shifted((i+4)/2*cm,-1*cm) ; endfor ; for i=0 upto 2 : draw unitsquare scaled 0.5cm shifted((i+6)/2*cm,-3/2*cm) ; endfor ; \stopMPcode \stoptext Thank you. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Numbering and module visualcounter
Hello, In the code below, I use the module visualcounter The numbering is obtained 1.1 1.2 1.3 How to have 1 2 3 ? thank you, Fabrice \usemodule[visualcounter] \unprotect \definevisualcounter [randomcircle] [ mp=visualcounter::randomcircle, rulethickness=1pt, ] \startuseMPgraphic{visualcounter::randomcircle} begingroup; \includeMPgraphic{visualcounter::initialization} if (last_counter > 0) and (current_counter > 0) : newpicture countertext ; countertext := textext("\white\visualcounterparameter\c!text"); newpicture max_countertext ; max_countertext := textext("\white\visualcounterparameter{\c!max\c!text}"); newnumeric diameter; diameter := 1.9 * max(bbwidth(max_countertext), bbheight(max_countertext)); newpath randomcircle; randomcircle := fullcircle xyscaled(diameter, diameter) randomized (diameter/20); pickup pencircle scaled \visualcounterparameter\c!rulethickness ; fill randomcircle withcolor green; % Can be made configurable label (countertext, origin); fi; endgroup; \stopuseMPgraphic \protect \definevisualcounter [fuzzyitem] [randomcircle] [counter=\getvalue{v_strc_itemgroups_counter}] \definesymbol[fuzzy][{\framed[location=depth, frame=off, strut=no]{\usevisualcounter{fuzzyitem}}}] \setuphead [part] [command=\ChapterCommand, page=yes, textstyle=\ss, sectionresetset=, number=no, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [command=\ChapterCommand, textstyle=\ss, sectionresetset=, conversion=, number=no, page=no, placehead=yes, bodypartlabel=part, sectionsegments=chapter:chapter] \setuphead [section] [command=\ChapterCommand, textstyle=\ss, page=yes, conversion=numbers, sectionsegments=section:section, number=yes] \starttext \startpart [title={First Part}] \startchapter [title={First chapter}] \startsection [title={First section}] \startitemize[fuzzy] \startitem \input knuth \stopitem \startitem \input knuth \stopitem \stopitemize \stopsection \stopchapter \stoppart \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Numbering and module visualcounter
Hi Wolfgang, Without your help, I would not have found. I'll try to understand but as of today my knowledge is not yet sufficient. Thank you Fabrice 2016-01-25 16:08 GMT+01:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 25. Januar 2016 um 14:20 > > Hello, > In the code below, I use the module visualcounter > The numbering is obtained > > 1.1 > 1.2 > 1.3 > How to have > > 1 > 2 > 3 ? > thank you, > Fabrice > > \usemodule[visualcounter] > \unprotect > > You can drop the \unprotect and \protect command when you use > > \visualcounterparameter{XXX} > > instead of > > \visualcounterparameter\c!XXX > > > \definevisualcounter > [randomcircle] > [ > mp=visualcounter::randomcircle, > rulethickness=1pt, > ] > > \startuseMPgraphic{visualcounter::randomcircle} > begingroup; > > \includeMPgraphic{visualcounter::initialization} > > if (last_counter > 0) and (current_counter > 0) : > newpicture countertext ; countertext := > textext("\white\visualcounterparameter\c!text"); > > You need the value of the “n” key, not the “text” key. > > newpicture countertext ; countertext := > textext("\white\visualcounterparameter{n}"); > > newpicture max_countertext ; max_countertext := > textext("\white\visualcounterparameter{\c!max\c!text}"); > > newnumeric diameter; > diameter := 1.9 * max(bbwidth(max_countertext), > bbheight(max_countertext)); > > newpath randomcircle; > randomcircle := fullcircle xyscaled(diameter, diameter) randomized > (diameter/20); > > pickup pencircle scaled \visualcounterparameter\c!rulethickness ; > fill randomcircle withcolor green; % Can be made configurable > label (countertext, origin); > > > fi; > endgroup; > \stopuseMPgraphic > \protect > > \definevisualcounter > [fuzzyitem] > [randomcircle] > [counter=\getvalue{v_strc_itemgroups_counter}] > > You can set the counter for the enumeration with > > [counter=itemgroup:itemize] > > \definesymbol[fuzzy][{\framed[location=depth, frame=off, > strut=no]{\usevisualcounter{fuzzyitem}}}] > > Keep setups like this only in your examples when they are necessary which > isn’t the case here. > > \setuphead [part] > [command=\ChapterCommand, > page=yes, > textstyle=\ss, > sectionresetset=, > number=no, > placehead=yes, > bodypartlabel=chapter] > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fieldstacks are broken
Dear Wolfgang and Jeong, Sorry for the noise! I simply make a copy and paste the code without reading because the subject of the question interested me. This works perfectly correcting the errors reported by Wolfgang. With Evince or Xpdf is impossible to play the movie, but with Acroread yes. thank you, Fabrice 2016-01-24 19:27 GMT+01:00 Wolfgang Schuster: > Jeong Dal > 24. Januar 2016 um 15:02 > Dear Wolfgang and Fabrice, > > I am sorry. I didn’t notice that there is a difference between my code and > Fabrice’s. > I made a wrong comment. > > I know that there are several options in the animation module: menu, > menustyle, menucolor, framerate. > Would you please explain the menustyle option once more? > > The key has no effect because there is only one style for the buttons. > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fieldstacks are broken
Hello everyone, I tested the code and it does not work: I get one page with buttons for animation is not working. thank you, Fabrice \def\MyGraphics#1{% \unexpanded\def\MyGraphics#1{% \startMPcode path p,q; p:=fullcircle scaled 72; L:=length p; N:=20; q:=subpath (0,#1/N*L) of p; draw q withcolor red; fill fullcircle scaled 3 shifted point length q of q withcolor blue; setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75; \stopMPcode}} \usemodule[animation] \setupinteraction[state=start] \starttext \startanimation[menu=yes] {\MyGraphics {5}} {\MyGraphics {10}} {\MyGraphics {15}} {\MyGraphics {20}} \stopanimation \stoptext fab@debian:~$ context ntg43.tex resolvers | trees | analyzing 'home:texmf' mtx-context | run 1: luatex --fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="ntg43" --lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg43.tex" --c:input="./ntg43.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv" This is LuaTeX, Version beta-0.88.0 (TeX Live 2016/dev) system commands enabled. resolvers > trees > analyzing 'home:texmf' system > callbacks > not registering frozen 'find_format_file' open source > 1 > 1 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv ConTeXt ver: 2016.01.18 22:21 MKIV beta fmt: 2016.1.22 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv close source> 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv system > files > jobname 'ntg43', input './ntg43', result 'ntg43' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/fab/ntg43.tex resolvers > modules > 'animation' is loaded open source > 3 > 4 > /home/fab/context/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi close source> 3 > 4 > /home/fab/context/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded open source > 3 > 5 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/java-imp-fld.mkiv close source> 3 > 5 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/java-imp-fld.mkiv interactions> javascripts > loaded: library 'fld' backend > xmp > using file '/home/fab/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 close source> 2 > 5 > /home/fab/ntg43.tex close source> 1 > 5 > /home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.025 seconds, 1 scans with scantime 0.013 seconds, 0 shared scans, 13 found files, scanned paths: /home/fab/texmf mkiv lua stats > stored bytecode data: 383 modules (0.240 sec), 81 tables (0.011 sec), 464 chunks (0.251 sec) mkiv lua stats > traced context: maxstack: 1169, freed: 9, unreachable: 1160 mkiv lua stats > cleaned up reserved nodes: 42 nodes, 9 lists of 443 mkiv lua stats > node memory usage: 2 glue, 2 penalty, 9 attribute, 27 glue_spec, 3 attribute_list, 2 temp, 1 pdf_literal mkiv lua stats > node list callback tasks: 6 unique task lists, 6 instances (re)created, 44 calls mkiv lua stats > used backend: pdf (backend for directly generating pdf output) mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: 226 direct, 1256 indirect, 1482 total mkiv lua stats > randomizer: resumed with value 0.6945844393664 mkiv lua stats > loaded tex modules: 1 requested, all found (*-animation) mkiv lua stats > loaded patterns: en::2, load time: 0.000 mkiv lua stats > interactive elements: 5 references, 0 destinations mkiv lua stats > result saved in file: ntg43.pdf, compresslevel 3, objectcompresslevel 3 mkiv lua stats > loaded fonts: 3 files: contnav.afm, latinmodern-math.otf, lmroman12-regular.otf mkiv lua stats > font engine: otf 3.012, afm 1.500, tfm 1.000, 5 instances, load time 0.196 seconds mkiv lua stats > pdf annotations: 5 links (5 unique), 4 special mkiv lua stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkiv lua stats > luatex banner: this is luatex, version beta-0.88.0 (tex live 2016/dev) mkiv lua stats > control sequences: 43642 of 65536 + 10 mkiv lua stats > lua properties: engine: lua, used memory: 57 MB (ctx: 57 MB), hash type: lua, hash chars:
[NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode
Hello, The code below works perfectly without the placement of the label, but if I want to place the label, it no longer works. Thank you \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \switchtobodyfont [pagella, 9pt] \placerecipe{}{ \startMPcode pair vert[] ; n:=6 ; radius=2cm ; for i=0 upto n : vert[i] = radius * dir(360*i/n) ; endfor ; draw for i=0 upto n-1: vert[i] -- endfor cycle withcolor blue ; draw for i=0 upto n-1: vert[i] .. endfor cycle withcolor red ; draw (0,0)--vert[0] withcolor green ; draw (0,0)--vert[5] withcolor green ; draw (0,0) --(vert[0]+vert[5])/2 dashed evenly ; % label.urt("C",vert[1]) ; \stopMPcode } \input knuth \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Placing an image on a portion of a frame
Hi, I wish beyond the image on the frame at the edge of the text. Thank you. Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \definecolor[FondTableaux][c=0.00, m=0.00, y=0.20, k=0.00] \starttext \placerecipe{}{\rotate[rotation=-15]{\externalfigure[vipere.jpg][width=6cm]}} \startframedtext[width=fit,background=color,backgroundcolor=FondTableaux] \input knuth \stopframedtext \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ePub and Metapost
Hi, Is it possible to produce a epub file from a file containing a figure made with Metapost ? Thanks, Fabrice Envoyé de mon iPad___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Rotating an image
Hi Wolfgang, Why is it necessary to add currentpicture := nullpicture ; ? Thank you, Fabrice 2015-10-15 17:27 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 12. Oktober 2015 um 20:58 > A small question not directly related context. > I would like to turn my image 15 degrees. > Thanks, > Fabrice > > picture pic ; > pic := currentpicture ; > u := 0.5cm ; > z1 = origin ; > z2 = (9u, 0) ; > path p ; > p := fullcircle scaled 14u ; > path q ; > q := p shifted (9u,0) ; > pair A ; > A := p intersectionpoint q ; > path a ; > a := z1 -- z2 ; > path b ; > b := z1 -- A ; > path c ; > c := z2 -- A ; > draw a ; > draw b ; > draw c ; > pair I ; > pair J ; > I := point 0.6 of b ; > J := point 0.6 of c ; > draw I -- J ; > pair L ; > L := point 0.8 of b ; > label.top("A", A) ; > label.lrt("C", z2) ; > label.llft("B", origin) ; > label.ulft("I", I) ; > label.urt("J", J) ; > label.ulft("$x$", L) ; > draw pic rotated 15 ; > > \startMPpage > picture pic ; > > u := 0.5cm ; > z1 = origin ; > z2 = (9u, 0) ; > path p ; > p := fullcircle scaled 14u ; > path q ; > q := p shifted (9u,0) ; > pair A ; > A := p intersectionpoint q ; > path a ; > a := z1 -- z2 ; > path b ; > b := z1 -- A ; > path c ; > c := z2 -- A ; > draw a ; > draw b ; > draw c ; > pair I ; > pair J ; > I := point 0.6 of b ; > J := point 0.6 of c ; > draw I -- J ; > pair L ; > L := point 0.8 of b ; > label.top("A", A) ; > label.lrt("C", z2) ; > label.llft("B", origin) ; > label.ulft("I", I) ; > label.urt("J", J) ; > label.ulft("$x$", L) ; > pic := currentpicture ; > currentpicture := nullpicture; > draw pic rotated 15 ; > \stopMPpage > > You can also rotate the image when you place it in your document with > \rotate[rotation=15]{...}. > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___