Re: [NTG-context] Save/Redraw labels as pictures
> > vardef J = thelabel(textext("J") scaled 2,origin) enddef ; That will work! Troy ___ 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] OOP in Metafun.
> But I would like to use some "object oriented" like approach. I have done some OOP like coding... https://bitbucket.org/andrecaldas/math-video-classes/src/77036fe1001ede35e301305700943ac952089d32/src/environments/diagrams.tex?at=default This is my first METAFUN experience. Comments are very welcome! André Caldas. ___ 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] MKIV math: arrow symbols undefined
On Sun, 2012-12-09 at 13:05 +0100, Hans Hagen wrote: > reported to the lm/gyre team Thanks Hans. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] different interlinear space for quotation?
Am 09.12.2012 um 19:42 schrieb Pablo Rodríguez : > Hi there, > > I have a text in which I want the interlinear space in narrower > environments and the font size to be smaller. > > I tried something like the sample below, but it doesn't work (no suprise > :-(). > > \startsetups[setups:narrow] > \setupinterlinespace[line=2.8ex] > \tfx > \stopsetups > > \definenarrower[narrowlines][left=4em, setups=setups:narrow] > > \definelines[narrow][before={\blank\startnarrowlines[left]},after=\stopnarrowlines\blank] > \stopsetups > > \starttext > \input ward\par > \startnarrow > \input knuth\par > \stopnarrow > \input ward\par > \stoptext > > Does anyone know how can I achieve a smaller font size and interlinear > space only in narrower environments? > > Many thanks for your help, http://www.ntg.nl/pipermail/ntg-context/2012/070327.html You can use the “style” key to \defineannotation to change the font/size. You also change line spacing with the “interlinespace” key but value won’t be used unless you set “paragraph=yes”. 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 ___
Re: [NTG-context] different vertical space with \definelines and \setuplines
Am 09.12.2012 um 20:08 schrieb Pablo Rodríguez : > Hi Hans, > > I have the following sample: > > \definelines[narrow][before=\blank,after=\blank] > \stopsetups > > \starttext > This is a paragraph.\par > \startnarrow > this is a verse > > this is a verse > \stopnarrow > This is paragraph.\par > \stoptext > > If I replace \definelines with \setuplines, before and after aren't honored. > > \definelines adds an extra paragraph separation space within the lines > that isn't inserted with \setuplines. > > Is this intended? 1. When you add a blank line in a “lines” environment context inserts the value from the “inbetween” key. \starttext \startlines[inbetween=INBETWEEN] this is a verse this is a verse \stoplines \stoptext You can remove the line by setting “inbetween=”. 2. The \startnarrow command is already defined in the core as narrower command. \definenarrower[mynarrow][left=4em,default=left] \starttext Normal Text. \startnarrow Indented Text. \stopnarrow Normal Text. \startnarrow[mynarrow] Indented Text. \stopnarrow Normal Text. \stoptext 3. Replacing \definelines with \setuplines changes nothing because you haven’t created a lines environment with the name “narrow” yet. 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 ___
[NTG-context] different vertical space with \definelines and \setuplines
Hi Hans, I have the following sample: \definelines[narrow][before=\blank,after=\blank] \stopsetups \starttext This is a paragraph.\par \startnarrow this is a verse this is a verse \stopnarrow This is paragraph.\par \stoptext If I replace \definelines with \setuplines, before and after aren't honored. \definelines adds an extra paragraph separation space within the lines that isn't inserted with \setuplines. Is this intended? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] OOP in Metafun.
Hello, list! I am writing down a macro package for commutative diagrams using metafun. This is my first try: https://bitbucket.org/andrecaldas/math-video-classes/src/9a050eab20348c9a9c9e50740618173648979f45/src/environments/diagrams.tex?at=default Used here: https://bitbucket.org/andrecaldas/math-video-classes/src/9a050eab2034/src/products/assorted/open_mapping_theorem/notes/introduction.tex?at=default#cl-106 But I would like to use some "object oriented" like approach. That is, I'd like the diagram data structure to be set up like this: d = CD.new; d.vertex("$X$"); d.arrow("$f$"); d.vertex("$Y$"); d.newline; d.arrow("$\pi$"); d.arrow("$\pi$"); d.vertex("$A$"); d.arrow("$g$"); d.vertex("$B$"); or even in some "thelabel" similar fashion, d = CD.new; CD.vertex(d, "$X$"); CD.arrow(d, "$f$"); CD.vertex(d, "$Y$"); CD.newline(d); CD.arrow(d, "$\pi$"); CD.arrow(d, "$\pi$"); CD.vertex(d, "$A$"); CD.arrow(d, "$g$"); CD.vertex(d, "$B$"); How do I do that in METAFUN/METAPOST? Cheers, André Caldas. ___ 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] different interlinear space for quotation?
Hi there, I have a text in which I want the interlinear space in narrower environments and the font size to be smaller. I tried something like the sample below, but it doesn't work (no suprise :-(). \startsetups[setups:narrow] \setupinterlinespace[line=2.8ex] \tfx \stopsetups \definenarrower[narrowlines][left=4em, setups=setups:narrow] \definelines[narrow][before={\blank\startnarrowlines[left]},after=\stopnarrowlines\blank] \stopsetups \starttext \input ward\par \startnarrow \input knuth\par \stopnarrow \input ward\par \stoptext Does anyone know how can I achieve a smaller font size and interlinear space only in narrower environments? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] setuphead command changes?
Am 09.12.2012 um 15:46 schrieb Wolfgang Schuster : > > Am 09.12.2012 um 12:22 schrieb revic...@caesar.elte.hu: > >> Thanks. I only apply commands for certain headings, so is there a way to >> have that working within the startsubject or is it not inheriting from setup >> heads? > > > You can use the optional second argument for \start… to set your own > arguments. > > \define\SubectCommand > {\doifsomething > {\structureuservariable{text}} > {\inmargin{\structureuservariable{text > > \setuphead[section][commandbefore=\SubectCommand] Should be: \define\SubjectCommand {\doifsomething {\structureuservariable{text}} {\inmargin{\structureuservariable{text \setuphead[subject][commandbefore=\SubjectCommand] 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 ___
Re: [NTG-context] setuphead command changes?
Am 09.12.2012 um 12:22 schrieb revic...@caesar.elte.hu: > Thanks. I only apply commands for certain headings, so is there a way to have > that working within the startsubject or is it not inheriting from setup heads? You can use the optional second argument for \start… to set your own arguments. \define\SubectCommand {\doifsomething {\structureuservariable{text}} {\inmargin{\structureuservariable{text \setuphead[section][commandbefore=\SubectCommand] \starttext \startsubject[title=Ward] \input ward \stopsubject \startsubject[title=Knuth][text=XXX] \input knuth \stopsubject \startsubject[title=Tufte] \input tufte \stopsubject \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 ___
Re: [NTG-context] MKIV math: arrow symbols undefined
On 12/8/2012 8:56 PM, Kip Warner wrote: On Sat, 2012-12-08 at 11:03 +0100, Andreas Mang wrote: Dear all, I've noticed that "\leadsto", "\rightsquigarrow" and "\leftrightsquigarrow" are not defined in MKIV (ConTeXt ver: 2012.12.06 18:39 MKIV). However, they appear in MKII (ConTeXt ver: 2012.12.06 18:39 MKII). I've tested the entire set at http://www.access2science.com/latex/Arrows.html Cheers, Andreas %%% MINIMAL EXAMPLE %%% \starttext leadsto: $\leadsto$ squidarrow: $\leftrightsquigarrow$ squidarrow: $\rightsquigarrow$ \stoptext %%% MINIMAL EXAMPLE %%% I concur. reported to the lm/gyre team Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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 ___
Re: [NTG-context] [luatex-plain] call to undefined function in font-def.lua
On 12/8/2012 1:27 PM, Philipp Gesang wrote: Hi Hans, the plain format from context calls a non-existing function fonts.goodies.filenames.resolve(). It appears that the format was not updated to include the expected code from fonts-gds.lua. [1] Terminal output below. that code is context specific so we need local resolvefile = fontgoodies and fontgoodies.filenames and fontgoodies.filenames.resolve or function(s) return s end no beta today (as i upgraded some low level file code which needs testing) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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 ___
Re: [NTG-context] setuphead command changes?
Am 09.12.2012 um 02:35 schrieb revic...@caesar.elte.hu: > Hi, > > The following minimal example works on live.contextgarden.net but with the latest beta the command parameter doesn't seem work (the "TEST" does not appear in the margin). > > \showframe > \starttext > \define[2]\cmd{\inmargin{TEST}} > \startsubject[title=Title,command=\cmd] > \input knuth > \stopsubject > \stoptext > > Can someone confirm this? You have to use “alternative=command” before you can apply a command: \define[2]\SubjectCommand {\inmargin{TEST}} \setuphead [subject] [alternative=command, command=\SubjectCommand] \showframe \starttext \startsubject[title=Title] \input knuth \stopsubject \stoptext Thanks. I only apply commands for certain headings, so is there a way to have that working within the startsubject or is it not inheriting from setupheads? \define[2]\SubjectCommand {\inmargin{TEST}} \showframe \starttext \startsubject[title=Intro] \input knuth \stopsubject \startsubject[title=Title,alternative=command,command=\SubjectCommand] \input knuth \stopsubject \stoptext This still doesn't show me the margin-text, whereas your example is fine. When you want more control about the layout of your header use \defineheadalternative to create it: \defineheadalternative [Subject] [alternative=horizontal, renderingsetup=Subject] \startsetups[Subject] \headsetupspacing \inmargin{TEST} \stopsetups \setuphead [subject] [alternative=Subject, distance=0pt] \showframe \starttext \startsubject[title=Title]% \input knuth \stopsubject \stoptext That is great, thanks! Adam ___ 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] setuphead command changes?
Am 09.12.2012 um 02:35 schrieb revic...@caesar.elte.hu: > Hi, > > The following minimal example works on live.contextgarden.net but with the > latest beta the command parameter doesn't seem work (the "TEST" does not > appear in the margin). > > \showframe > \starttext > \define[2]\cmd{\inmargin{TEST}} > \startsubject[title=Title,command=\cmd] > \input knuth > \stopsubject > \stoptext > > Can someone confirm this? You have to use “alternative=command” before you can apply a command: \define[2]\SubjectCommand {\inmargin{TEST}} \setuphead [subject] [alternative=command, command=\SubjectCommand] \showframe \starttext \startsubject[title=Title] \input knuth \stopsubject \stoptext When you want more control about the layout of your header use \defineheadalternative to create it: \defineheadalternative [Subject] [alternative=horizontal, renderingsetup=Subject] \startsetups[Subject] \headsetupspacing \inmargin{TEST} \stopsetups \setuphead [subject] [alternative=Subject, distance=0pt] \showframe \starttext \startsubject[title=Title]% \input knuth \stopsubject \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 ___