Re: [NTG-context] metapost textext?

2005-12-21 Thread Peter Rolf
Hans Hagen wrote: > Hans van der Meer wrote: > >> Panic using metapost in context. >> This used to work. I did a file that previously (\thisisutilityversion >> {1998.12.20}) had good output but now has "unknown" everywhere for >> textext calls! &g

Re: [NTG-context] developing large numbers of MP files for inclusion in source

2005-12-24 Thread Taco Hoekwater
David Arnold wrote: I am open to any suggestions on how to most efficiently develop and include figures (in Metapost, of course) in our main document. Well, if you do not depend on metafun -- context interaction, then I would just create a metapost input file per chapter, and compile it

[NTG-context] Passing text to Metapost functions

2005-12-25 Thread David Arnold
n*uux,0)--(1.05*xxmax*uux,0); label.rt(btex $xlbl$, (1.05*xxmax*uux,0)); drawdblarrow (0,1.05*yymin*uuy)--(0,1.05*yymax*uuy); enddef; create_axes(xmin,xmax,ymin,ymax,ux,uy)(x); endfig; end. Two questions: 1. How can I do this in plain metapost? 2. What would be t

Re: [NTG-context] Miktex, Metapost and \loadfontfilesoncetrue

2006-03-30 Thread Hans Hagen
Hans >> >> >> >> > To Hans, > No, the formats are all newly generated after the install of cont-tmf.zip. > The \loadfontfileoncetrue is used in meta-ini.tex by > \def\resetMPenvironment > but what why is it needed ? > > Does

Re: [NTG-context] Metapost label alignment etc.

2006-07-05 Thread Idris Samawi Hamid
n ingeneous solution like Mojca. I will do this in a > brute force way like you, but using loops for repetitive tasks and > allowing metapost to do all the calculations for me. -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using O

Re: [NTG-context] Context 2006.07.13 released

2006-07-14 Thread Hans Hagen
Hans van der Meer wrote: > On Jul 14, 2006, at 11:54, Taco Hoekwater wrote: > > >> New features since 2006.05.11: >> >> * The use of \sometxt in MetaPost figures (instead of \textext) can >>remove the need for indirect "texexec" runs, resulti

Re: [NTG-context] Metapost/Metafun/Tex/Context question

2006-07-19 Thread Aditya Mahajan
On Wed, 19 Jul 2006, WN wrote: > Hi all, > > I am trying to do the following in Metapost but my new math symbol is > not recognized. > Context knows about it but Tex does not. > > How can I make this work ? Hans and Taco have already explained the correct way to do this, s

Re: [NTG-context] figure directory is sort of searched

2006-08-15 Thread Sanjoy Mahajan
.pdf etc. It actually > turned out to be easier for me, because that way I could use the > figure filename as the reference. Good idea, thanks. I might also integrate the figures (they're all MetaPost) into the .tex source, what I couldn't do in (e)plain TeX. I expect I'll hav

Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend

2007-04-15 Thread Sanjoy Mahajan
> If you set prologues := 1 in the mp file, that should help. That still gave Courier fonts after including fig.1 in test.ps. > In a new metapost (texlive2007) you can even generate an > image with the font included by using prologues := 3. That worked. [I'm using MetaPost 0.99

Re: [NTG-context] MetaPost question

2007-05-04 Thread Aditya Mahajan
On Wed, 2 May 2007, Aditya Mahajan wrote: > On Wed, 2 May 2007, Tobias Burnus wrote: > >> Hi, >> >> I want to define a macro in MetaPost which does: >> >> def myfunc (expr x,y)(text t) = >> draw thelabel.rt (btex You passed \quotation{t} etex, (x,y));

[NTG-context] Draw chess board

2007-05-24 Thread Zhichu Chen
Hi I love chess games, especially one kind of them which is generally called Go. I know there is some file can store each details in one game: http://www.red-bean.com/sgf/ AFAIK, there is no module available to draw chess in ConTeXt now. I wanna do this by using MetaPost and fieldstack. But I

Re: [NTG-context] Margins around figures

2007-09-07 Thread Kumar Appaiah
On Fri, Sep 07, 2007 at 12:31:26PM +0200, Wolfgang Schuster wrote: > He can set the offset in ConTeXt and not in MetaPost, e.g. > > \offset[leftoffset=...]{\externalfigure[fugurename]} > > The \offset command is described in the details manual, he can also > look at the defi

Re: [NTG-context] System commands are disabled

2007-10-14 Thread Leo
n the ConTeXt from TeXLive 2007, the metapost graph is not >> displayed in the final pdf file. Any ideas? >> > 1. Open the file /usr/local/texlive/2007/texmf/web2c/texmf.cnf in the > editor of your choice. > > 2. scroll down to line 441 > > 3. change shell_escape = f to

Re: [NTG-context] new context still hangs on this

2007-12-17 Thread Hans Hagen
gt; This is LuaTeX, Version snapshot-0.20.1-2007120800 (Web2C 7.5.6) > ConTeXt ver: 2007.12.14 08:57 MKIV fmt: 2007.12.14 int: english/english > This is MetaPost, Version 1.002 (Web2C 7.5.5) (INIMP) > > > > Should I recompile I recompile LuaTeX and MetaPost after ConTeXt

[NTG-context] Re: MetaPost error

2003-09-04 Thread ^Nitram^
Hello >Some more information would be useful: >do ConTeXt files (without metapost stuff) work correctly? Yes - thank You for Your time - now everything looks good. I fixed it by following: -install miktex (large version but I will experimental with small version) -unzip new vers

Re: [NTG-context] Re: [NTG-context]metapost prblem

2003-09-23 Thread Severin Obertüfer
that works!! thanks for the hint severin - Original Message - From: "Jens-Uwe Morawski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 2:50 PM Subject: Re: [NTG-context] Re: [NTG-context]metapost prblem > On Mon, 22 Sep

Odp: Re: [NTG-context] The smallest instalation for work with ConTeXt and MetaFun (TeXLive8) ?

2003-10-07 Thread ^Nitram^
n other computer and I: - get 'generic basic' type of installation (with pictex(2) and langpolish) - without any changes - works fine, but no polish characters and metapost - make plr fonts and metafun format - fine, but no metapost - uncomment \useMETAFUNformattrue,

Re : [NTG-context] MetaPost with etex/btex

2003-12-14 Thread David Munger
e produces some garbage between "Some" and "label", and \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode doesn't work at all. Sorry for being that vague. David On 2003-12-14 07:01:34, Willi Egger wrote : Hi David, The use of the different possibi

[NTG-context] Re: Can I compare with someone?

2003-12-14 Thread Staszek Wawrykiewicz
On Wed, 10 Dec 2003, David Arnold wrote: > I've recently installed tetex 2.0.2. I am having difficulty with Metapost > [...] > Now, when I compile, texexec seems to be invoked. Is this what happens on > your systems? Is this correct behavior? > > [EMAIL PROTECTED] darnold

[NTG-context] [punknova][PATCH] README.md: Fix typos

2011-08-17 Thread Paul Menzel
(http://tug.org/TUGboat/Articles/tb09-2/tb21knut.pdf). -The Original Metafont sources were adapted to a more Metapost friendly -form by Taco Hoekwater et. al. +The original Metafont sources were adapted to a more MetaPost friendly +form by Taco Hoekwater et al. Punk is a dynamic font, every time a gly

[NTG-context] Minimum example of problem getting curly braces printed in METAPOST

2020-04-02 Thread Gerben Wierda
Here is a minimum example of a problem that I have in getting curly braces printed in METAPOST in code that is generated by lua.Any help is welcome.\usemodule[scite]\setupxml [entities=yes]\startluacodefunction warn( ... )  texio.write_nl("-> " .. string.format(...))endl

Re: [NTG-context] POV-Ray

2010-05-18 Thread Renaud AUBIN
Hi, I indeed agree with Taco… but it depends on your input format, your purpose, etc. For me, the issue can't be resumed to a power comparison between povray and metapost because these tools serve differents purposes! If you want to obtain 3D realistic rendering (with raytracing)

Re: [NTG-context] Metafun "Structure-Trees"

2017-09-18 Thread Ursula Hermann
> synctex functionality is enabled (-1), expect runtime overhead! open source > level 2, order 3, name 'D:/My Documents/graphic.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Mikael Sundqvist
Hi! Not really what you ask for, perhaps, but this could be interesting for you: https://tex.stackexchange.com/q/39296/52406 /Mikael On Tue, May 11, 2021 at 12:58 PM Henning Hraban Ramm wrote: > > Hi MetaFans, > > is it possible to get lines with Metapost that look like they wer

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Hans Hagen via ntg-context
On 3/12/2022 3:35 PM, Marco Patzer via ntg-context wrote: On Mon, 31 Jan 2022 20:02:42 +0100 Marco Patzer via ntg-context wrote: LMTX seems to have an issue with \asciimode and MetaPost: \asciimode \starttext \startMPcode fill unitsquare scaled 2cm; \stopMPcode \stoptext Results

[NTG-context] Re: Gray gradient with Metapost

2023-10-06 Thread Henning Hraban Ramm
btain, if possible, a gray gradient like in the image. > My code uses Metapost but maybe this is possible with Metafun. Have a look into the Metafun manual, chapter 8.1 “shading”. Hraban ___ If your ques

[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
Hi, in my ConTeXt book, some examples for \framed with rounded corners look odd, as if the MetaPost calculation of rounded corners fails. I can’t find a minimal example that shows the problem, and I can’t imagine which of the settings in my extensive environment would cause it. Find below

[NTG-context] Re: MetaPost lines in tables?

2024-02-19 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 19.02.2024 um 22:39: I guess I asked this a while ago, but I can’t find an answer: Is it possible to replace the lines of a TABLE with my own MetaPost graphics? ATM I’m trying to place my MP lines behind a frame-less TABLE; it will probably work, but it’s a

[NTG-context] ANN: Updated Vim scripts for ConTeXt

2016-10-10 Thread Nicola
a paragraph); - i$ and a$ text objects; - better integration with MetaPost (indentation and autocompletion inside \startMP...\stopMP... works automatically); - syntax highglighting can be enabled for any nested filetype (MetaPost and Lua are enabled by default); - compiler plugin, supporting

[NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-18 Thread Jaroslav Hajtmar
... I suppose the impossibility of combining asymptote code and such Lua code (or not?). There is a similar possibility, at least in Metapost? For simpler pictures it would probably suffice Thanx Jaroslav Hajtmar

Re: [NTG-context] troubles with \MPinclusions (Taco Hoekwater)

2019-02-21 Thread Damien Thiriet
tional. > >Every metapost graphic does at least this at its start: > >save x,y; >currentpicture := nullpicture; >currentpen:=defaultpen; > >so pair xx[]; would have worked just fine. > >In general, I would advice to stay away from single-let

Re: [NTG-context] *** Spam *** Drawing scaled externalfigure in Metapost produces erroneous size in the latest beta

2019-04-04 Thread Lutz Haseloff
Hi Thorsten, I had the same problem a couple of months ago. Use sized instead of scaled now. The same goes for xscaled and yscaled. Greetings Lutz Am 4. April 2019 01:31:29 MESZ schrieb "Thorsten S." : >Hello! > >The simple Metapost code that follows worked fine until upgrad

Re: [NTG-context] Latest beta breaks LuajitTeX

2013-04-04 Thread Marco Patzer
On 2013–04–04 Hans Hagen wrote: > >Indeed, LuajitTeX works, but you broke MkII. The format generation > >already fails: > > > >… > >(/tmp/mkiitest/tex/texmf/metapost/base/string.mp > >(/tmp/mkiitest/tex/texmf-context/metapost/context/base/mp-func.mpii) )

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
possible things cannot be done other than by putting a fontchange inside each label. Hans van der Meer On 6 May 2013, at 6:04 PM, Marco Patzer wrote: > On 2013–05–06 Meer, H. van der wrote: > >> What is the simplest way to change the size of fonts in labels drawn in

[NTG-context] Code Called Twice?

2013-10-10 Thread Thangalin
extcommand={\ThemeChapterTitle}] \starttext \startchapter[title=Why Is heading:ThemeTitleStyle Called Twice?] \input knuth \stopchapter \stoptext It appears as though heading:ThemeTitleStyle is being called twice: metapost> info: >> "HEADING:THEMETITLESTYLE" &g

Re: [NTG-context] functions and paths in metapost

2013-10-14 Thread Hans Hagen
On 10/14/2013 2:38 PM, Jean Magnan de Bornier wrote: Hello all, Is it possible to define a path in metapost-metafun using "function"? In the metafun manual (chapter on Functions) the examples shown are all of the type "draw function ...". I wonder if it is possible to

Re: [NTG-context] Custom letter head

2008-07-07 Thread Wolfgang Schuster
On Mon, Jul 7, 2008 at 9:26 AM, Oliver Buerschaper <[EMAIL PROTECTED]> wrote: > Dear Wolfgang, > > I was wondering how I could place a simple MetaPost graphic into the > head area of a letter, next to the address data. I know the manual > says you're going to write this

Re: [NTG-context] Metapost beta 1.090 released

2008-07-18 Thread Hans Hagen
> Yue Wang wrote: >> Hi, Taco: >> >>> This MetaPost release is based on MPlib. >> Oh! My God!!! Such a big change~ So are you sure the code is stable enough? > > I have to push out the code sometime, otherwise it will never be ready. > But it will not be

Re: [NTG-context] Persian translation of "Context an excursion"

2008-08-03 Thread Hans Hagen
Mehdi Omidali wrote: > Hi everyone, > I am translating "Context an excursion" to persian and I have a > problem in the style. I use MKIV for this translation but navigation > tools and metapost pictures are not displayed in the output. I use > texlivetest2008 and the lat

Re: [NTG-context] Some Metapost Problems

2008-10-08 Thread Wolfgang Werners-Lucchini
o tex runs anyway, > because it collects all the graphics in a single metapost run > which is a more efficient way of generating the graphics (in > mkii), > that is its reason for existence. But sometimes it doesn't work, > so having \runMPgraphicstrue in your cont-usr.tex is not a

Re: [NTG-context] Including xfig graphics

2011-01-07 Thread Taco Hoekwater
On 01/07/2011 10:07 AM, Alan BRASLAU wrote: Hello, Ultimately, you will probably be more satisfied using Metapost graphics "natively" within ConTeXt. With xfig, you can export to Metapost. This code can probably be directly used by ConTexT, or perhaps with minor modifications. I d

Re: [NTG-context] What has happened to externalfigure command?

2011-01-08 Thread Verhaag, G.C.H.M.
dered correctly! What's the file format of someplot.1? MetaPost, EPS? It was generated with MetaPost about 2 years ago! Maybe some automatic preprocessing fails. (see also http://wiki.contextgarden.net/File_Formats) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texn

Re: [NTG-context] Finite state machine

2011-04-26 Thread Vedran Miletić
;> Is there a way to create finite state machines with ConTeXt? > >>> yes > >> > >> How? > > I don't know the details, but it should be simple with Lua using the > > tables, cfr. > > http://en.wikipedia.org/wiki/Finite-state_machine >

Re: [NTG-context] simpleslides + combinepages != qpdf

2011-05-02 Thread Reviczky, Adam
Right, I have a feeling that this is MetaPost related, hence the random problems with different styles. I can reproduce this now without simpleslides too, using only metapost. Here's a minimal example: Get logo_ignite.mp from: http://pastebin.com/raw.php?i=VqvcWniu % slide

Re: [NTG-context] A cases type environment using a right brace?

2011-07-21 Thread Hans Hagen
On 21-7-2011 3:24, Aditya Mahajan wrote: On Thu, 21 Jul 2011, Thomas A. Schmitz wrote: http://www.ntg.nl/pipermail/ntg-context/2010/049601.html Wolfgang Thank you Wolfgang, the metapost solution looks very good! I'll make this part of my cont-user.tex, I think... Can we have this as

Re: [NTG-context] metapost question (bug?)

2011-07-21 Thread Alan Braslau
ole point of this figure -- I am using metapost to achieve very easily an effect, conceptually very simple, that a colleague has not been able to produce using Adobe Illustrator. Thank you again for helping out. Alan

[NTG-context] mp-chem.mpiv bug

2011-11-07 Thread Alan Braslau
There is a (new) problem typesetting text in chemical structures. Alan Minimal example: \starttext \startchemical \chemical [ONE,Z0] [O] \stopchemical \stoptext ! terminal: (/usr/local/context/beta/tex/texmf-context/metapost/context/base/mp-chem.mpiv) >> labtype-10 ! Unknown re

Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Taco Hoekwater
ce > > MyPens[j] := pencircle scaled 2pt ; > > by something like > > MyPens[j] := pencircle scaled (2+j) pt ; MyPens[j] := pencircle scaled ((2+j)*pt); “pt” is just a multiplier variable in MetaPost. there is an implied multiplication operation, but that only work

Re: [NTG-context] Import a metapost extension

2020-09-01 Thread Taco Hoekwater
ote: > > Hello > Is it possible to import a metapost extension into a file compiled with the > lmtx engine ? > I tried unsuccessfully with this example : > > begin test.tex > > \starttext > \startMPcode > input mp-scratch; > > Scratchversion:=3; >

[NTG-context] Metafun in MacTeX 209 distribution

2010-04-04 Thread jindrich Ruzicka
Hello people, I installed Mac TeX -2009 Distribution on a new iMAC. when I try to run texexec on a Context file that includes a metapost program, I receive no picture that is defined in metapost part. (btw in my linux installation it works) What I can find in log file is: ... runsystem

[NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Marco
t;\color[static]Test"), (i*1cm,-2cm)); endfor; \stopuseMPgraphic \useMPgraphic {1} \stoptext Is it possible to get the metapost construct »withcolor« to work with text or do I have to take a different approach? Thanks

Re: [NTG-context] Command "show" in Metapost/Metafun

2009-03-11 Thread Aditya Mahajan
On Thu, 12 Mar 2009, Curious Learn wrote: Hi, I am trying to learn Metapost using Context. I tried a few examples for drawing things and they worked well. But the "show" command does not seem to work. For example, the code \startuseMPgraphic{GridDots} u=1cm; pickup

Re: [NTG-context] How to "unfill" a picture?

2009-06-24 Thread Zhichu Chen
Cool, but just curiosity, metapost can handle fonts right? How those glyphs don't have this problem? I've read the specification of the type1 fonts, they don't seem to have such weird paths, just some borderlines with different directions. On Wed, Jun 24, 2009 at 3:32 PM, Taco

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-13 Thread Aditya Mahajan
On Thu, 13 Aug 2009, richard.steph...@converteam.com wrote: > > Hello, > > > > Is it possible to generate multi-line labels in MetaPost?  I have   > > naively tried the following hoping to get a line feed between the   > > two words, but it doesn't work! &

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread Matěj Týč
, that was it. I have added 'mpost' to 'shell_escape_commands' in texmf.conf file. If it is possible, I would appreciate a warning that a shell command has not been escaped. I had no clue what might gone wrong. And last but not least, do you think that metapost can be a securi

Re: [NTG-context] MetaPost broken mkiv latest minimals

2009-11-24 Thread Hans Hagen
Mojca Miklavec wrote: On Tue, Nov 24, 2009 at 21:21, Hans Hagen wrote: Alan BRASLAU wrote: MetaPost is broken in mkiv (works in mkii). minimal example: \starttext \startuniqueMPgraphic{circle} pickup pencircle scaled 1pt ; draw fullcircle scaled 2cm ; \stopuniqueMPgraphic

Re: [NTG-context] MetaPost broken mkiv latest minimals

2009-11-24 Thread Alan BRASLAU
On Tuesday 24 November 2009 21:49:06 Hans Hagen wrote: > Mojca Miklavec wrote: > > On Tue, Nov 24, 2009 at 21:21, Hans Hagen wrote: > >> Alan BRASLAU wrote: > >>> MetaPost is broken in mkiv (works in mkii). > >>> > >>> minimal example: &g

Re: [NTG-context] Metapost and mkiv

2009-11-27 Thread Willi Egger
ext \uniqueMPgraphic{test} \stoptext KR Willi On Nov 27, 2009, at 10:31 AM, Alan BRASLAU wrote: Is this a bug in mkiv metapost? Alan minimal example: \setupcolors [state=start] \starttext \startuniqueMPgraphic{test} for i = 0 upto 10 : draw thelabel(

Re: [NTG-context] metapost textext?

2005-12-21 Thread David Arnold
On Dec 21, 2005, at 8:13 AM, Hans van der Meer wrote: Panic using metapost in context. This used to work. I did a file that previously (\thisisutilityversion{1998.12.20}) had good output but now has "unknown" everywhere for textext calls! \starttext \startuseMPgraphic{one}

Re: [NTG-context] metapost textext?

2005-12-21 Thread Willi Egger
Hi, this code compiles without problems on a Windows-XP machine with: This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5) ConTeXt ver: 2005.11.30 fmt: 2005.12.19 int: english mes: english Willi Hans Hagen wrote: Hans van der Meer wrote: Panic using metapost in context. This used

Re: [NTG-context] metafun & \sometxt: should black be "black" or "textcolor"?

2006-08-07 Thread Taco Hoekwater
; upto the first non-zero color is ignored by metapost. > I can image a "fair solution" to draw "withcolor black" in black and > to let the parts with no explicit color and an empty drawoptions() > string to use the "default color" (perhaps with gsave/grestore)

[NTG-context] character redefinition environment

2006-11-05 Thread Enzo Cordes
Hi list, I want to assign Metapost graphics to single letters (in a newly defined evironment, that take care of these assignments). The purpose is being able to rapidly build huge tables containing lots of these symbols. Everything works fine if I assign these graphics to non-letters, e.g

Re: [NTG-context] [metapost] shading text

2007-05-07 Thread Stephan Hennig
ngs. I've updated to v8.56, recently, and didn't observe any problems with pstoedit and MetaPost with older versions of Ghostscript (in other applications). What version of Ghostscript are you running? Best regards, Stephan Hennig

Re: [NTG-context] Draw chess board

2007-05-24 Thread Wolfgang Schuster
able to draw chess in ConTeXt now. I wanna do > this by using MetaPost and fieldstack. But I don't know how to tell metapost > the details of the sgf file. Can anyone give me a suggestion? > > BTW, I don't like the name. It's invented by acient Chinese and it

[NTG-context] Table with metapost framing and colors

2003-09-11 Thread Michal Kvasnicka
thin. Moreover, a part of the header (the first row) must be black. I didn't know how to do it, so I used Metapost in a company with the overlay mechanism provided with the ConTeXt. It works well, but: 1) When a cell has black background, it turns its frame from black to white. It's a

Re: [NTG-context] Re: externalfigure

2004-09-13 Thread Vit Zyka
ce to the figure and metapost never touches (reads) the picture, only the next step (mptopdf) does. So metapost has no idea of the image attributes. Patrick If you do not specify BOTH width and height of the image the pdftex have to read image SIZE from the image file. Metafun's externalfigu

Re: [NTG-context] Metapost animation

2004-09-14 Thread Michal Kvasnicka
Hans Hagen wrote: Michal Kvasnicka wrote: Now to my next question. I have seen a great thing: Metapost pictures were animated (probably with the JavaScript code). You can found some examples here: http://www.math.muni.cz/~plch/nkpm/nradanm6.pdf http://www.math.muni.cz/~plch/nkpm/nradanm8

Re: [NTG-context] \typebuffer and tabs / specify code type

2004-11-03 Thread Eckhart Guthöhrlein
On Wed, Nov 03, 2004 at 01:39:45PM +0100, Hans Hagen wrote: > Eckhart Guthöhrlein wrote: > >Hi all, > > > >I'm using \typebuffer to typeset some metapost code. How can I tell it > >to either ignore tabs or treat them like 1,2,3,... spaces, instead of > >printi

Re: [NTG-context] Fonts in Metapost

2005-07-01 Thread Willi Egger
Metapost. I defined my own typescripts somewhere and I also have a mapfile for that fonts. In normal text it workes fine (even math). Now I want to change the font in MP as well (my text is included as label("test",(200,200));): %normal stups: \loadmapfile[cmbright.map] %it seem

[NTG-context] tweaking underlining

2005-07-08 Thread Stuart Jansen
ow to do this: > you can redefine the metapost graphic, the main thing there is that > you draw/fill something related to the multipar paths; it takes a bit > of experimenting, but after a while you start seeing possibilities. > See plus-rul.tex for an example of such a graphic. I t

Re: [NTG-context] TeX + Metapost syntax highlighting in Vim

2005-07-14 Thread VnPenguin
On 7/8/05, Nikolai Weibull <[EMAIL PROTECTED]> wrote: > Mojca Miklavec wrote: > > > In case someone finds this experimental piece of code for highlighting > > metapost inside ConTeXt useful, put: > > Hi! > > I don't want to be a party-pooper, but

Re: [NTG-context] MetaPost Question

2015-12-06 Thread Alan BRASLAU
Please change your mailing name and address. In order to draw 3D perspective diagrams in MetaPost, you will need to transform 3D paths to a 2D projection. There are many methods to accomplish this, and there are several MP modules that have been written to address this issue. One fairly simple

Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Aditya Mahajan
On Wed, 2 Nov 2016, Nicola wrote: The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default inside ConTeXt documents; for MetaPost files ('mp' filetype), you must put let g:mp_metafun_macros = 1 into your vimrc. Ah, great! > The i

Re: [NTG-context] Vim wiki page updated

2016-11-03 Thread Nicola
On 03/11/2016 10:45, Hans Hagen wrote: On 11/2/2016 11:35 PM, Aditya Mahajan wrote: On Wed, 2 Nov 2016, Nicola wrote: The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default inside ConTeXt documents; for MetaPost files ('mp' filetype), yo

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2017-07-27 Thread Hans Hagen
On 7/27/2017 3:52 AM, Mojca Miklavec wrote: Hi, I just wanted to say that I found a more reliable way to go from metapost to dxf. First run "context something.mp" and then pstoedit -dt -f dxf:-polyaslines\ -mm something.1 something.dxf For some reason the SVG files from metapost

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Tobias Columbus
Hi again, I tried my example from yesterday in context with metapost format, but the output still differs from what mptopdf produces. While doing that, I noticed that the mpost format is currently not usable out of the box: \startMPcode{metapost} draw (0,0) -- (1cm,0) ; \stopMPcode produces

Re: [NTG-context] Pass a lua table to metapost

2014-12-08 Thread DesdeChaves
b[i] = unitsquare xscaled... 2014-12-08 9:21 GMT+00:00 Hans Hagen : > On 12/7/2014 8:25 PM, DesdeChaves wrote: > >> >> I would like to pass the lua table keys and values to metapost. In the >> keys i have information about

Re: [NTG-context] mplib

2008-03-14 Thread Aditya Mahajan
and conversion > to pdf show a throughput of less than 0.001 seconds per graphic; a usual > we did much timing and although experimental, the code is already pretty > okay, just to give an idea: > > mkiv lua stats : metapost processing time - 6.834 seconds (loading: > 0.014 s

Re: [NTG-context] luaTeX and on-the-fly MetaPost compilation

2008-05-24 Thread Hans Hagen
Stephan Hennig wrote: > Hi, > > I didn't have the opportunity to touch luaTeX yet, but let me ask one > question in advance: Since luaTeX has a built-in MetaPost interpreter, > is it possible to refer to a certain figure in a MetaPost source file > for inclusion, inste

[NTG-context] mptopdf and btex ... etex (was: gnuplot: `! Undefined control sequence.` with format specifier %)

2011-12-11 Thread Mojca Miklavec
On Mon, Dec 12, 2011 at 01:02, Mojca Miklavec wrote: > > ... however I still have some problems. For some reason ConTeXt only > generates dvi files from metapost code which has never been the case > before. I need to figure out what is going on. Ouch. > mtxrun mptopdf gptest-

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Aditya Mahajan
On Thu, 17 Dec 2020, Neven Sajko wrote: > Hello all, > > I am completely new to TeX, ConTeXt, MetaPost, etc. (Except for some > MathJax snippets and the like.) > > I am using Aditya's LMTX package from AUR on Archlinux. > > I have some SVGs (generated by t

Re: [NTG-context] How can I compare picture variables in metapost?

2009-05-05 Thread Zhichu Chen
to answer: you can't (well, not unless you invest a *lot* > of effort into creating a bitmap edge structure). Well, quick and pain. > > However what you can do is ask metapost to calculate intersectionpoints > with (the most likely ones of) the already existing objects. This may &g

Re: [NTG-context] How can I compare picture variables in metapost?

2009-05-06 Thread Peter Rolf
Aditya Mahajan schrieb: On Tue, 5 May 2009, Peter Rolf wrote: Taco Hoekwater schrieb: Taco Hoekwater wrote: Zhichu Chen wrote: Seems that I don't have too many choices. Maybe using lua to do the math and throwing the result to metapost is faster? I think I can do this, but I don'

Re: [NTG-context] Re: Creatin metafun.mem on OSX

2005-11-09 Thread andrea valle
e it gave me: apples-Computer:~ apple$ kpsewhere mp-spec.mp /sw/share/texmf/metapost/context/base/mp-spec.mp Now it gives me nothing: apples-Computer:~ apple$ kpsewhere mp-spec.mp apples-Computer:~ apple$ on my system (Gerben's architecture), I get: /usr/local/teTeX/share/texmf.local/metapos

Re: [NTG-context] metafun & \sometxt: should black be "black" or "textcolor"?

2006-08-06 Thread Hans Hagen
drawn inbetween and >> a color changed twice), then the second text will be black. But it's >> quite unpredictable (that one might even be bug in my code, so I don't >> want to complain before I have an example). >> > > Ok, I looked into this again, and I wa

Re: [NTG-context] MetaPost memory was: metafun.mem on texlive

2007-05-16 Thread Andrea Valle
I made some tweakings to memory. I was able to escape TeX memory exceedings. But not this one This is MetaPost, Version 0.993 (Web2C 7.5.6) (/usr/local/texlive/2007/texmf/web2c/natural.tcx) (Fatal mem file error; I'm stymied) This means you have to regenerate the metafun.mem file. Your tw

Re: [NTG-context] still waiting for mswincontext

2007-09-26 Thread Hans Hagen
lems but this is only on the latest bins, font searching is very engine dependent and also to some extend os dependent (upper/lowercase) etc etc anyhow, the dust will probably settle in a few weeks (new bins available everywhere) a tricky area is metapost ... since mp cannot handle open type we

Re: [NTG-context] MetaPost with etex/btex

2003-12-14 Thread David Arnold
% Enabling run time \METAPOST\ (also enable \write18 in % texmf.cnf): \runMPgraphicstrue \runMPTEXgraphicstrue % This saves some runtime, but needs a format, which you can % make with 'texexec --make --alone metafun'. Make sure that % the mem files are moved to the used web2c path (

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-30 Thread Hans Hagen
so I decided to try to use the super ugly route with metapost -> svg -> dxf -> g-code for the first time. I have a few questions. (1) I love Hans' shortcuts in metafun, but I seem to remember that things like input metafun; or perhaps input mp-tool; used to work, so t

[NTG-context] Fwd: EuroBachoTeX 2013 ante portas

2013-03-05 Thread Willi Egger
gt; We count on your participation - if you visited one of the previous > conferences, > you will remember that it worth coming. And it will be so this year! > > Papers/presentations > ==== > And now the conference content "as usual": we look forward to the &

Re: [NTG-context] emp.sty and metapost

2006-06-28 Thread David Arnold
ou run the bare command 'latex' >> on a simple test file? >> > there's also > > mptopdf useemp.mp qdf $ mptopdf useemp.mp MPtoPDF 1.3.2 : running 'texexec --mptex ' TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 metapost : useemp

Re: [NTG-context] ConTeXt textext fails

2007-01-26 Thread Hans van der Meer
any difference > if you set > \chardef\TeXtextcolormode\zerocount > at the top of your document? (In the case that you have problems > with colors.) Let me explain why I have still need for \textext and textext. I think there is room for all of these: textext, \textext, \sometxt. For

Re: [NTG-context] german sharp s in Metapost Labels

2004-01-09 Thread Hans Hagen
] [courier] [default] [rscale=1.1] \setupbodyfont [postscript, 11pt] \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex, center currentpicture); \stopMPcode \stoptext Hi all, if i use another Font as cmr to typeset labels in MetaPost

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Hans Hagen via ntg-context
with both a 0 and a 1. je kunt direct dat nummer converteren maar blijkbaar gaf ik de verkeerde volgorde uit: \useMPlibrary[kaktovik] % de officiele manier \definefontfeature [default] [default] [metapost=kaktovik] \setupbodyfont[dejavu] \starttext 2023 \kaktoviknumerals{5}\kaktoviknum

[NTG-context] ConTeXt Group Journal 2012 Table of Contents

2013-10-29 Thread Taco Hoekwater
2012. Contents 5 Dayplan 7 CrafTeX — Mari Voipio 8 MetaPost: PNG Output — Taco Hoekwater The latest version of Metapost (1.80x) has a third output backend: it is now possible to generate PNG bitmaps directly from within Metapost. 10 Database publishing with the speedata Publ

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Xenia
ewrap-temp-MATLAB-1.vimout Overfull \hbox (24.35204pt too wide) in paragraph at lines 14--1 [][][][]\3>modern-designsize-12pt-tt-tf-0--0 fprintf('ran-dom text ran-dom text ran-dom text ran-dom text ran-dom text ran- \hbox(10.42677+4.05482)x426.78743, direction TLT .\whatsit ..\localinterline

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-06 Thread Xenia
nes 2--2 [][][]\3>modern-designsize-12pt-tt-tf-0--0 fprintf('random text random text random text: %g \n',(x_max-y_max)*z/random)[] \hbox(10.42677+4.05482)x426.78743, direction TLT .\whatsit ..\localinterlinepenalty=0 ..\localbrokenpenalty=0 ..\localleftbox=null ..\localrightbox=nul

[NTG-context] metapost:animations

2005-07-25 Thread luigi.scarso
Maybe someone doesn't know: http://melusine.eu.org/syracuse/metapost/animations/ (for swf: http://www.quiss.org/swftools/) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Re: btex-etex

2005-04-04 Thread Jiri Polcar
graphics : metaposting mpgraph.mp TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002 metapost to tex : mpgraph executable : pdfetex format : cont-en inputfile : tmpgraph output : dvips interface : en options :

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Aditya Mahajan
it > > seems to me that \startanimation … \stopanimation is not working with > > \dorecurse{}{} … > > It just list all the graphics. > > Any hint is welcome. > > A while back, I wrote some code to easily generate metapost animations. > > https://adityam.github.io/

<    8   9   10   11   12   13   14   15   16   17   >