Re: [NTG-context] Tables, Row Span, and Colors
Updating ConTeXt minimals fixed my problem. Thank you. 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] mkiv versus mkii: whitespace issues
> Am 14.03.2015 um 15:54 schrieb Gerben Wierda : > > I am running into two issues with my mkii-to-mkiv conversion project > > - The \chapter command in mkiv uses more whitespace between the header and > the first paragraph. How can I influence this? > - \startitemize[packed,joinedup] inserts whitespace between the list and the > paragraph before it where mkii doesn’t > > How can I fix this? Do you have a example because I can’t reproduce it. \showgrid \starttext \chapter{\contextmark} \input knuth \startitemize[packed,joinedup] \item One \item Two \item Three \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 ___
[NTG-context] mkiv versus mkii: whitespace issues
I am running into two issues with my mkii-to-mkiv conversion project - The \chapter command in mkiv uses more whitespace between the header and the first paragraph. How can I influence this? - \startitemize[packed,joinedup] inserts whitespace between the list and the paragraph before it where mkii doesn’t How can I fix this? G ___ 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 Centre Multi-line Verbatim Text
Thank you Wolfgang. On Saturday, March 14, 2015, Wolfgang Schuster wrote: > > > Am 13.03.2015 um 21:32 schrieb Emmanuel Asante < > emmanuela.asa...@gmail.com >: > > > > Hello All, > > > > I am trying to centre a multi-line verbatim text horizontally on the > page but I cannot figure out how to do that. With the code below how can I > centre the whole block horizontally on the page? > > > > \setuptyping[TEX] > > > > \startTEX > >RSpec.describe Post, :type => :model do > > end > > \stopTEX > > You can add a framedtext environment around the verbatim text and use > “location=middle” to center it. > > \setuptyping > [TEX] > [before={\startframedtext[location=middle]}, >after=\stopframedtext] > > \starttext > > \startTEX >RSpec.describe Post, :type => :model do > end > \stopTEX > > \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] Styling captions inside \startcombination ... \stopcombination
On 3/14/2015 10:50 AM, Mojca Miklavec wrote: Hello, I'm using the following code to make the figure captions smaller: \setupcaptions[style={\switchtobodyfont[8pt]}] Now I'm looking for the magic keywoard to also decrease the size of captions inside combinations, as in the following case for example (otherwise the "subcaptions" are too big in comparison): \setupcaptions[style={\switchtobodyfont[8pt]}] \setupexternalfigures[location={default}] \starttext \placefigure{Cows in \ConTeXt} {\startcombination[2*1] {\mirror{\externalfigure[cow][width=4cm]}}{First cow} {\externalfigure[cow][width=4cm]}{Second cow} \stopcombination} \stoptext the obvious: \setupcombinations[style={\switchtobodyfont[8pt]}] - 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 ___
[NTG-context] Problem in using vlingrid() and hlingrid() macros (Metafun)
Hi, I encounter some problems in the use of vlingrid() and hlingrid() macros. In the code below, we see that the grid is not correct. Does the code can be improved ? thank you, Fabrice \starttext \startMPcode path p ; u := 2cm ; v:= 1cm ; p := (-u,-5v)--(3u,-5v)--(3u,4v)--(-u,4v)--cycle ; drawoptions(withpen pencircle scaled 0.5pt withcolor \MPcolor{mycolor}); draw vlingrid(-u,3u,u,4u,9v) shifted (0,-5v) ; draw hlingrid(-5v,4v,v,9v,4u) shifted (-u,0) ; drawoptions(withpen pencircle scaled 1pt) ; drawarrow (-u,0)--(3u,0) ; drawarrow (0,-5v)--(0,4v) ; draw curvedfunction ("x", "3*x*x-5*x+1", -1, 3, 0.01) xyscaled (u,v) withcolor red ; draw curvedfunction ("x", "-5*x+1", -1, 3, 0.01) xyscaled (u,v) withcolor blue ; draw curvedfunction ("x", "7*x-11", -1, 3, 0.01) xyscaled (u,v) withcolor green ; label.bot(btex $x$ etex,(2.97u,-0.1v)) ; label.rt(btex $y$ etex,(0.01u,3.9v)) ; label.llft("0",(0,0)) ; dotlabel.urt("A",(0,v)) ; dotlabel("",(u,-4v)) ; label.rt("C",(1.02u,-4v)) ; dotlabel.lrt("B",(2u,3v)) ; label.bot("1",(u,0)) ; label.lft("1",(0,v)) ; clip currentpicture to p ; \stopMPcode \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] How to Centre Multi-line Verbatim Text
> Am 13.03.2015 um 21:32 schrieb Emmanuel Asante : > > Hello All, > > I am trying to centre a multi-line verbatim text horizontally on the page but > I cannot figure out how to do that. With the code below how can I centre the > whole block horizontally on the page? > > \setuptyping[TEX] > > \startTEX >RSpec.describe Post, :type => :model do > end > \stopTEX You can add a framedtext environment around the verbatim text and use “location=middle” to center it. \setuptyping [TEX] [before={\startframedtext[location=middle]}, after=\stopframedtext] \starttext \startTEX RSpec.describe Post, :type => :model do end \stopTEX \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 ___
[NTG-context] Styling captions inside \startcombination ... \stopcombination
Hello, I'm using the following code to make the figure captions smaller: \setupcaptions[style={\switchtobodyfont[8pt]}] Now I'm looking for the magic keywoard to also decrease the size of captions inside combinations, as in the following case for example (otherwise the "subcaptions" are too big in comparison): \setupcaptions[style={\switchtobodyfont[8pt]}] \setupexternalfigures[location={default}] \starttext \placefigure{Cows in \ConTeXt} {\startcombination[2*1] {\mirror{\externalfigure[cow][width=4cm]}}{First cow} {\externalfigure[cow][width=4cm]}{Second cow} \stopcombination} \stoptext Thank you, Mojca ___ 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 ___