[NTG-context] Meptapost Drawing not showing-up in Context Letter Style
I am trying to get a metapost drawing as logo added to right upper corner of a DIN B style letterhead, but it does not show up, just the letter itself. Is there anything to change to the layers for the MP toe reveal itself? Thanks, Jeroen % BEGIN MP LOGO SETUP \startuseMPgraphic{mpglogo} path p; p := (0,0)--(100,0)--(100,100)--(0,100)--cycle; path q; q := p cornered 30pt; draw q withcolor black withpen pencircle scaled 7pt; \stopuseMPgraphic \definelayer [logo] [repeat=no] \setlayer [logo] [hoffset=160mm,voffset=17mm] {\scale[width=25mm,height=25mm]{\useMPgraphic{mpglogo}}} \setupbackgrounds[page][background=logo] % END MP LOGO SETUP, BEGIN LETTER SETUP \usemodule[letter][style=dinb] \setupletterlayer [reference] [list={name,phone,email,date}] \setupletterlayer [address] [y=55mm] \setupletterdescription [enclosure] [location=top, leftmargin=0.5em, symbol=#1,] \usesymbols[mvs] \definesymbol[1][{\symbol[martinvogel 2][PointingHand]}] \setupletter [toname={John Doe}, toaddress={201, Main Street\\23124 London\\United Kingdom}, fromname={Jansen NV}, fromaddress={Waalhaven 2200\\2842 KL Rotterdam}, name={Piet jansen}, phone={+31(010)4234 4232}, email={peter.jan...@gmail.com}, date={\currentdate}, signature={\externalfigure[autograph][height=4\lineheight]\\\correspondenceparameter{name}},] % END LETTER SETUP, START LETTER \startletter [subject={Outstanding Invoices}, opening={Dear Sir,}, closing={Kind Regards,}, enclosure={list:Commercial Invoice,Accounts Statement},] \dorecurse{3}{\input knuth \par} \stopletter ___ 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] Asymptote and Context
I am running context minimals and Asymptote on Windows.This example used to work in the past, but it seems to have stopped working. Is there anything that has changed? \usemodule[filter] \defineexternalfilter [ASY] [filtercommand={asy -tex "context" -outformat pdf -outname \externalfilteroutputfile}, output=\externalfilterbasefile.pdf, cache=yes, readcommand=\ReadImage,] \define[1]\ReadImage{\externalfigure[#1]} \starttext Testing if we can include an asymptote image \startplacefigure[location={here}, title={An Asymptote figure}] \startASY unitsize(1cm); draw((-.1,0) -- (2,0), arrow=Arrow(TeXHead)); draw((0,-.1) -- (0,2), arrow=Arrow(TeXHead)); draw((0,0) .. (1,1) .. (2,sqrt(2))); \stopASY \stopplacefigure \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 ___
Re: [NTG-context] MetaPost Question
I guess the code I am looking for is the below to hatch the cut-out section. How can I load the MetaPost hatching package in Context minimals so it understands the hatchfill command? Thanks Jeroen \startMPinclusions input hatching; \stopMPinclusions \starttext \placefigure[here,force][fig:tubing]{Tubular Linear Volumetric Capacity} {\startMPcode % inner circle draw fullcircle xscaled 2.5cm yscaled 0.7cm shifted (1.25cm,0); draw (0,0) -- (0,-5cm) dashed evenly; draw (2.5cm,0) -- (2.5cm,-5cm) dashed evenly; draw fullcircle xscaled 2.5cm yscaled 0.7cm shifted (1.25cm,-5cm) dashed evenly; %outer circle draw fullcircle xscaled 2.9cm yscaled 1cm shifted (1.25cm,0); draw (-.2cm,0) -- (-.2cm,-5cm); draw (2.7cm,0) -- (2.7cm,-5cm); draw halfcircle scaled 2.9cm yscaled 0.012cm shifted (1.25cm,-5cm) dashed evenly; draw halfcircle scaled 2.9cm yscaled 0.012cm rotated 180 shifted (1.25cm,-5cm); %cut-out section hatchfill circle withcolor (45, 5mm, -.5bp); fill fullcircle xscaled 2.5cm yscaled 0.7cm shifted (1.25cm,-2.7cm) withcolor (.6,.6,.6); label.top("tubular",(1.26cm,-1.3cm)); label.top("inside area",(1.28cm,-1.8cm)); label.top("($in^2$)",(1.28cm,-2.4cm)); %arrows and label ID drawarrow (0,-4.1cm) -- (2.5cm,-4.1cm); drawarrow (2.5cm,-4.1cm) -- (0,-4.1cm); label.top("ID ($in$)",(1.26cm,-4.15cm)); %arrows and label tubular length draw (3.25cm,-5cm) -- (3.25cm,0); drawarrow (3.25cm,-5) -- (3.25cm,0); drawarrow (3.25cm,0) -- (3.25cm,-5cm); label.top("tubular length ($in$)",(5.2cm,-2.75cm)); \stopMPcode} \stoptext 2015-12-06 21:54 GMT+01:00 Context NTG <context...@gmail.com>: > I am trying to graph a cylinder. Is there a way to draw a more elliptic > top/bottom. This one seems some flattened at the top and bottom. I would > like to hatch the mid elliptic that is collored grey now. Is there a way to > do this. > > Thanks > Jeroen > > > > \placefigure > > [here,force] > > [fig:tubing] > > {Tubular Linear Volumetric Capacity} > > {\startMPcode > > > draw (0,0){up} ... (1.25cm, 2mm) ... (2.5cm,0){down} ... (1.25cm, -2mm) > ... cycle; > > draw (0,0) -- (0,-5cm) dashed evenly; > > draw (2.5cm,0) -- (2.5cm,-5cm) dashed evenly; > > draw (0,-5cm){up} ... (1.25cm, -4.8cm) ... (2.5cm,-5cm){down} ... (1.25cm, > -5.2cm) ... cycle dashed evenly; > > > draw (-.2cm,0){up} ... (1.25cm, 3.5mm) ... (2.7cm,0){down} ... (1.25cm, > -3.5mm) ... cycle; > > draw (-.2cm,0) -- (-.2cm,-5cm); > > draw (2.7cm,0) -- (2.7cm,-5cm); > > draw (-.2cm,-5cm){up} ... (1.25cm, -4.7cm) ... (2.7cm,-5cm){down} dashed > evenly; > > draw (-.2cm,-5cm){down} ... (1.25cm, -5.3cm) ... (2.7cm,-5cm){up}; > > > fill (0,-2.5cm){up} ... (1.25cm, -2.3cm) ... (2.5cm,-2.5cm){down} ... > (1.25cm, -2.7cm) ... cycle withcolor (.6,.6,.6) dashed evenly; > > label.top("tubular",(1.26cm,-1.1cm)); > > label.top("inside area",(1.28cm,-1.6cm)); > > label.top("($in^2$)",(1.28cm,-2.2cm)); > > > draw (3.25cm,-5cm) -- (3.25cm,0); > > drawarrow (3.25cm,-5) -- (3.25cm,0); > > drawarrow (3.25cm,0) -- (3.25cm,-5cm); > > label.top("tubular length ($in$)",(5.2cm,-2.75cm)); > > > \stopMPcode} > ___ 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] MetaPost Question
I am trying to graph a cylinder. Is there a way to draw a more elliptic top/bottom. This one seems some flattened at the top and bottom. I would like to hatch the mid elliptic that is collored grey now. Is there a way to do this. Thanks Jeroen \placefigure [here,force] [fig:tubing] {Tubular Linear Volumetric Capacity} {\startMPcode draw (0,0){up} ... (1.25cm, 2mm) ... (2.5cm,0){down} ... (1.25cm, -2mm) ... cycle; draw (0,0) -- (0,-5cm) dashed evenly; draw (2.5cm,0) -- (2.5cm,-5cm) dashed evenly; draw (0,-5cm){up} ... (1.25cm, -4.8cm) ... (2.5cm,-5cm){down} ... (1.25cm, -5.2cm) ... cycle dashed evenly; draw (-.2cm,0){up} ... (1.25cm, 3.5mm) ... (2.7cm,0){down} ... (1.25cm, -3.5mm) ... cycle; draw (-.2cm,0) -- (-.2cm,-5cm); draw (2.7cm,0) -- (2.7cm,-5cm); draw (-.2cm,-5cm){up} ... (1.25cm, -4.7cm) ... (2.7cm,-5cm){down} dashed evenly; draw (-.2cm,-5cm){down} ... (1.25cm, -5.3cm) ... (2.7cm,-5cm){up}; fill (0,-2.5cm){up} ... (1.25cm, -2.3cm) ... (2.5cm,-2.5cm){down} ... (1.25cm, -2.7cm) ... cycle withcolor (.6,.6,.6) dashed evenly; label.top("tubular",(1.26cm,-1.1cm)); label.top("inside area",(1.28cm,-1.6cm)); label.top("($in^2$)",(1.28cm,-2.2cm)); draw (3.25cm,-5cm) -- (3.25cm,0); drawarrow (3.25cm,-5) -- (3.25cm,0); drawarrow (3.25cm,0) -- (3.25cm,-5cm); label.top("tubular length ($in$)",(5.2cm,-2.75cm)); \stopMPcode} ___ 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] can't find file `./1.tex'.
file D:/0_System/software_portable/context/context0/tex/texmf-context/tex/context/base/cont-yes.mkiv is present but I am not sure what file ./1.tex is. I can not find a file ending at 1.tex Jeroen 2015-11-15 23:04 GMT+00:00 Hans Hagen <pra...@wxs.nl>: > On 11/14/2015 8:32 PM, Context NTG wrote: > >> I installed in windows 7 x64 standatalone context from >> http://standalone.contextgarden.net/setup/context-setup-mswin.zip >> I installed it with first-setup.bat --version=current --modules=all >> I added d:\context\tex\texmf-win64\bin in the PATH >> I made a simple \starttext .. \stoptext file and run it in a command >> prompt with: >> >> context myfile.tex >> >> Below is the output. Would somebody know what could cause this problem >> >> Thanks >> John >> >> >> >> ConTeXt ver: 2015.05.18 12:26 MKIV current fmt: 2015.11.14 int: >> english/english >> system > 'cont-new.mkiv' loaded >> open source > 2 > 2 > >> D:/0_System/software_portable/context/context0/tex/tex >> mf-context/tex/context/base/cont-new.mkiv >> close source> 2 > 2 > >> D:/0_System/software_portable/context/context0/tex/tex >> mf-context/tex/context/base/cont-new.mkiv >> system > files > jobname '1', input './1', result '1' >> fonts > latin modern fonts are not preloaded >> languages > language 'en' is active >> tex error > error on line 8 in file >> D:/0_System/software_portable/context/ >> context0/tex/texmf-context/tex/context/base/cont-yes.mkiv: ! I can't >> find file ` >> ./1.tex'. >> l.8 } >> > > is that file present? > > > - > 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 > > ___ ___ 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] can't find file `./1.tex'.
I installed in windows 7 x64 standatalone context from http://standalone.contextgarden.net/setup/context-setup-mswin.zip I installed it with first-setup.bat --version=current --modules=all I added d:\context\tex\texmf-win64\bin in the PATH I made a simple \starttext .. \stoptext file and run it in a command prompt with: context myfile.tex Below is the output. Would somebody know what could cause this problem Thanks John ConTeXt ver: 2015.05.18 12:26 MKIV current fmt: 2015.11.14 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > D:/0_System/software_portable/context/context0/tex/tex mf-context/tex/context/base/cont-new.mkiv close source> 2 > 2 > D:/0_System/software_portable/context/context0/tex/tex mf-context/tex/context/base/cont-new.mkiv system > files > jobname '1', input './1', result '1' fonts > latin modern fonts are not preloaded languages > language 'en' is active tex error > error on line 8 in file D:/0_System/software_portable/context/ context0/tex/texmf-context/tex/context/base/cont-yes.mkiv: ! I can't find file ` ./1.tex'. l.8 } \clf_processjob ...uafunction \16>>clf_processjob l.97 \getvalue{clf_processjob} % from cont-run.lua 1 %D \module 2 %D [ file=cont-yes, 3 %Dversion=2012.06.01, 4 %D title=\CONTEXT\ Miscellaneous Macros, 5 %D subtitle=Startup Stub, 6 %D author=Hans Hagen, 7 %D date=\currentdate, 8 >> %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] 9 %C 10 %C This module is part of the \CONTEXT\ macro||package and is 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for 12 %C details. 13 14 % At some point I will reconsider the \starttext .. \stoptext 15 % wraping as we can assume proper styling. It's a left-over from 16 % mkii that we need to get rid of. 17 18 % now moved to cont-run.lua Please type another input file name: ___ 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] Asymptote in Context
Here is an Asymptote example unitsize(1cm); draw((-.1,0) -- (2,0), arrow=Arrow(TeXHead)); draw((0,-.1) -- (0,2), arrow = Arrow(TeXHead)); draw((0,0) .. (1,1) .. (2,sqrt(2))); Below is how I have started setting this up in Context. This creates a pdf file with the drawing, but it is not included in the final docuement. \defineexternalfilter [ASY] [filtercommand={asy -tex context -View -outformat pdf -outname \externalfilteroutputfile\space \externalfilterinputfile}, output=\externalfilterbasefile.out, readcommand=\typefile, cache=force, location=text, continue=yes] \starttext \startASY[myplot] unitsize(1cm); draw((-.1,0) -- (2,0), arrow=Arrow(TeXHead)); draw((0,-.1) -- (0,2), arrow = Arrow(TeXHead)); draw((0,0) .. (1,1) .. (2,sqrt(2))); \stopASY \externalfigure[myplot] \stoptext Thanks Jeroen 2014-12-28 12:04 GMT+01:00 Mojca Miklavec mojca.miklavec.li...@gmail.com: Dear Aditya, On Sun, Dec 28, 2014 at 8:21 AM, Aditya Mahajan wrote: On Wed, 24 Dec 2014, Context NTG wrote: Could anybody explain how to use Asymptote in ConTeXt with the filter module. Can you post a minimal asymptote file and how it shoud be processed via the command line? I have no time to create a nice minimal example, but here's an ugly non-minimal example which should at least enable you to test the interaction with the filter module. I also added one ConTeXt-specific command while trying to make math fonts work properly, just replace lucidaot with another font in case you don't have that one installed. You can run the example with asy -tex context cylinder.asy (Maybe it's possible to set the tex engine inside the file as well.) Bonus points if you can get PRC to work properly before TL 2015. Or if you can make the file print properly from OS X without using Acrobat or ghostscript/CUPS. Preview.app forgets to print the (smoothly shaded) cylinder for example. 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 ___ ___ 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] Asymptote in Context
Could anybody explain how to use Asymptote in ConTeXt with the filter module. Thanks Jeroen ___ 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] PSTricks in Context
Would you perhaps also have the instructions how to just add PST to standalone ConTeXt, similar to TikZ is used in standalone ConTeXt. I want to work with clean ConTeXt without all the overhead of MikTeX or any other Windows version of TeX. In Standalone ConTeXt I work perfectly easy with drawings in metapost, TikZ, and graphs with Gnuplot and R. I would like to add PST to it, but was up to now unsuccessful. Many Thanks Jeroen 2014-12-18 14:29 GMT+00:00 Mojca Miklavec mojca.miklavec.li...@gmail.com: On Wed, Dec 17, 2014 at 10:22 PM, Context NTG wrote: I am using on Win7 x 64bit with standalone Context from http://standalone.contextgarden.net/setup/context-setup-win64.zip in \tex\texmf-context\tex\context\base\m-pstricks.mkii line 46 looks as following: \loadpstrickscolors{colo-rgb.mkii}} The following example does not yield anything \usemodule[pstricks] \starttext \startPSTRICKS \pspicture(0mm,0mm)(30mm,30mm) \psline(0,0)(3,3) \endpspicture \stopPSTRICKS \stoptext Is there anything I am doing wrong? Probably not, but the ConTeXt Minimals are missing support for PSTricks (there are a lot of tools missing, including many binaries). If you know how to install it, probably the easiest option to get PSTricks running on Windows would be W32TeX. (I could actually make a rsync-able complete version of W32TeX with a relative ease. It contains the latest version of all the tools, including ConTeXt. Maybe I should do that as MikTeX no longer supports ConTeXt, TeX Live has frozen ConTeXt and binaries, ConTeXt Distribution lacks some tools, and W32TeX is actually one of the best TeX collections for Windows around; its only drawback is the lack of an installer and updater – comparable to what MikTeX offers.) 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 ___ ___ 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] PSTricks in Context
I am using on Win7 x 64bit with standalone Context from http://standalone.contextgarden.net/setup/context-setup-win64.zip http://standalone.contextgarden.net/setup/context-setup-win64.zip in \tex\texmf-context\tex\context\base\m-pstricks.mkii line 46 looks as following: \loadpstrickscolors{colo-rgb.mkii}} The following example does not yield anything \usemodule[pstricks] \starttext \startPSTRICKS \pspicture(0mm,0mm)(30mm,30mm) \psline(0,0)(3,3) \endpspicture \stopPSTRICKS \stoptext Is there anything I am doing wrong? Jeroen 2014-12-16 13:07 GMT+00:00 Herbert Voss herbert.v...@fu-berlin.de: Am 16.12.2014 um 11:35 schrieb luigi scarso: On Tue, Dec 16, 2014 at 11:04 AM, Akira Kakuto kak...@fuk.kindai.ac.jp mailto:kak...@fuk.kindai.ac.jp wrote: Hi Luigi, The example works if one copies colo-rgb.mkii as colo-rgb.tex in the same folder of the example ... It is OK by changing line 46 in m-pstricks.mkii: \loadpstrickscolors{colo-rgb}} to \loadpstrickscolors{colo-rgb.__mkii}} as Herbert said. In the recent beta's, the change was already done. yes right --- I have downloaded the current into TL, but one can do the same with the zips of beta and have the correct \loadpstrickscolors{colo-rgb.mkii} I have a script cpCTX2TL which installs the current beta and then copies all relevant files into the current TL installation. 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/ 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 ___