Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Rik
On 7/16/2018 10:24, Fabrice Couvreur wrote: % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}") (withcolor "lightgray") ysized 50pt ; \stopusableMPgraphic

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Pablo Rodriguez
On 07/17/2018 12:36 PM, Fabrice Couvreur wrote: > Hi Hans, > In fact, the file compiles well with the beta version but only from a > terminal by running the > /home/aragorn/context/tex/texmf-linux-64/bin/context Test.tex && evince > Test.pdf command. > On the other hand, if I compile with Emacs,

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Hans Hagen
On 7/17/2018 12:36 PM, Fabrice Couvreur wrote: Hi Hans, In fact, the file compiles well with the beta version but only from a terminal by running the /home/aragorn/context/tex/texmf-linux-64/bin/context Test.tex && evince Test.pdf command. On the other hand, if I compile with Emacs, the

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Fabrice Couvreur
Hi Hans, In fact, the file compiles well with the beta version but only from a terminal by running the /home/aragorn/context/tex/texmf-linux-64/bin/context Test.tex && evince Test.pdf command. On the other hand, if I compile with Emacs, the chapter number does not appear. I configured Emacs so

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-16 Thread Fabrice Couvreur
The chapter number does not appear. My editor is emacs and I compile with Context Full. 2018-07-16 19:27 GMT+02:00 Hans Hagen : > On 7/16/2018 4:24 PM, Fabrice Couvreur wrote: > >> Hello, >> The idea is to make a chapter header as with the "titlesec" package. My >> code compiles under texlive

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-16 Thread Hans Hagen
On 7/16/2018 4:24 PM, Fabrice Couvreur wrote: Hello, The idea is to make a chapter header as with the "titlesec" package. My code compiles under texlive context 2018 but does not compile with last beta contest standalone. it processes on my machine so what fails? Thank you Fabrice

[NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-16 Thread Fabrice Couvreur
Hello, The idea is to make a chapter header as with the "titlesec" package. My code compiles under texlive context 2018 but does not compile with last beta contest standalone. Thank you Fabrice % macros=mkvi \setuppagenumbering[location=footer]

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Hans Hagen
ormalizes the figure to a square. This will not be changed as it is a very old feature of MetaFun. The solution is draw rawtextext("\externalfigure[cow]") xsized 5cm ; where one can use xsized, ysized or xysized (taking a pair). That works indeed. Thanks. draw figure "..

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Marco Patzer
w" scaled 5cm ; > >> normalizes the figure to a square. This will not be changed as it > >> is a very old feature of MetaFun. > >> > >> The solution is > >> draw rawtextext("\externalfigure[cow]") xsized 5cm ; > >> where one can use

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Hans Hagen
On 7/8/2018 1:45 AM, Marco Patzer wrote: On Sat, 7 Jul 2018 14:27:38 -0600 Alan Braslau wrote: For "historic" reasons, draw externalfigure "cow" scaled 5cm ; normalizes the figure to a square. This will not be changed as it is a very old feature of MetaFun. The s

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
On Sat, 7 Jul 2018 14:27:38 -0600 Alan Braslau wrote: > For "historic" reasons, > draw externalfigure "cow" scaled 5cm ; > normalizes the figure to a square. This will not be changed as it is a > very old feature of MetaFun. > > The solution is >

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
> > \setupexternalfigures [location=default] > > \starttext > >\externalfigure [cow][width=5cm] > > > >\startMPcode > > draw externalfigure "cow" scaled 5cm; > >\stopMPcode > > \stoptext > it's all in the metafun manual No d

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Hans Hagen
"cow" scaled 5cm; \stopMPcode \stoptext it's all in the metafun manual xsized 5cm - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Alan Braslau
externalfigure [cow][width=5cm] > > \startMPcode > draw externalfigure "cow" scaled 5cm; > \stopMPcode > \stoptext For "historic" reasons, draw externalfigure "cow" scaled 5cm ; normalizes the figure to a square. This will not be changed a

Re: [NTG-context] MetaPost shading broken with latest beta

2018-06-24 Thread Hans Hagen
On 6/24/2018 12:17 AM, Adam Reviczky wrote: Hi, Using the shading function in a metapost image the whole page is filled in instead of the figure that defines it. Minimal example as from the metafun manual 8.3.3 (http://www.pragma-ade.nl/general/manuals/metafun-p.pdf): \starttext \startMPcode

[NTG-context] MetaPost shading broken with latest beta

2018-06-23 Thread Adam Reviczky
Hi, Using the shading function in a metapost image the whole page is filled in instead of the figure that defines it. Minimal example as from the metafun manual 8.3.3 (http://www.pragma-ade.nl/general/manuals/metafun-p.pdf): \starttext \startMPcode fill fullsquare xyscaled (1cm,1cm

Re: [NTG-context] metafun: error when I call the same function twice consecutively.

2018-06-01 Thread Jeong Dal
Dear Alan, Thank you for the clear explanation about z. I tought that z is a special variable different from other pairs. Now, I know that it is an equation. Thank you again. Best regards, Dalyoung > 2018. 6. 1. 오후 11:24, Alan Braslau 작성: > > On Fri, 01 Jun 2018 20:29:41 +0900 > Jeong Dal

Re: [NTG-context] metafun: error when I call the same function twice consecutively.

2018-06-01 Thread Alan Braslau
On Fri, 01 Jun 2018 20:29:41 +0900 Jeong Dal wrote: > After inserting a line “save x, y;”, it works. This is also defined as "clearxy ;" For those learning MetaPost, simplifying, z is defined as "(x,y)" so one can write z = (a,b) ; This is an EQUATION in MetaPost (x,y) = (a,b)

Re: [NTG-context] metafun: error when I call the same function twice consecutively.

2018-06-01 Thread Jeong Dal
Dear Henri Menke, Thank you for the solution. After inserting a line “save x, y;”, it works. Thank you so much. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] metafun: error when I call the same function twice consecutively.

2018-05-31 Thread Henri Menke
On 01/06/18 14:22, Jeong Dal wrote: Hi, I defined a function using MetaFun, and call it to draw a figure. It is OK when I call it once. But there is an error when it runs the same function second time. (it stops when it call fap(3,2) after fap(2,2)) I have no idea what is wrong and how

[NTG-context] metafun: error when I call the same function twice consecutively.

2018-05-31 Thread Jeong Dal
Hi, I defined a function using MetaFun, and call it to draw a figure. It is OK when I call it once. But there is an error when it runs the same function second time. (it stops when it call fap(3,2) after fap(2,2)) I have no idea what is wrong and how to fix it. Would you please tell me what I

Re: [NTG-context] question about followtext in MP

2018-05-24 Thread Pablo Rodriguez
On 05/24/2018 06:30 PM, Alan Braslau wrote: > On Thu, 24 May 2018 18:11:05 +0200 Pablo Rodriguez wrote: > >> paging through the manuals, Metafun seems easier than MetaPost. >> >> I think it will take me a while to understand the basics of it. > > Metafun is an ex

Re: [NTG-context] question about followtext in MP

2018-05-24 Thread Alan Braslau
On Thu, 24 May 2018 18:11:05 +0200 Pablo Rodriguez <oi...@gmx.es> wrote: > paging through the manuals, Metafun seems easier than MetaPost. > > I think it will take me a while to understand the basics of it. Metafun is an extension to MetaPost, providing some useful tools and im

Re: [NTG-context] question about followtext in MP

2018-05-24 Thread Pablo Rodriguez
On 05/23/2018 11:24 PM, Alan Braslau wrote: > On Wed, 23 May 2018 21:06:42 +0200 > [...] > If you are going to use MP, why not read the manual (mpman.pdf) or > better yet, refer to the MetaFun manual that is even available in > printed form at http://www.h2o-books.com/catalog/

Re: [NTG-context] question about followtext in MP

2018-05-23 Thread Alan Braslau
> > \stopMPpage > > Many thanks for your help, Alan. > > I didn’t know that dir even existed. > > So I get a much better star that the one I tried before. > > Many thanks for your help, >

Re: [NTG-context] double followtokens?

2018-04-08 Thread Hans Hagen
) What am I doing wrong here? probably using a mechanism in away that is a bit ovet the top (so you can wait till the embedded variant shows up) we will have this in metafun: followtext("this way",p) ; so that one can do it all in mp ... a nice gimmick for the c

Re: [NTG-context] double followtokens?

2018-04-08 Thread Pablo Rodriguez
rom 2018.04.04 00:51). But even commenting that second command, \followtokens seems to require that path is named RotPath to be used the text. I get the standard line. What am I doing wrong here? > we will have this in metafun: > > followtext("this way",p) ; > > so that

Re: [NTG-context] double followtokens?

2018-04-08 Thread Hans Hagen
{~this way~} \followtokens{\reversedtext{~this way~}} we will have this in metafun: followtext("this way",p) ; so that one can do it all in mp ... a nice gimmick for the ctx mee

Re: [NTG-context] MetaFun: Rotate picture without rotating labels

2018-04-05 Thread Henri Menke
On Fri, 2018-04-06 at 11:05 +1200, Henri Menke wrote: > Dear list, > > In the MWE below I would like py to be px rotated by 90 degrees but the labels > should not be rotated.  Is it possible? > > Cheers, Henri > > --- I thought of using vardef but that is kind of verbose because I gave to

[NTG-context] MetaFun: Rotate picture without rotating labels

2018-04-05 Thread Henri Menke
Dear list, In the MWE below I would like py to be px rotated by 90 degrees but the labels should not be rotated.  Is it possible? Cheers, Henri --- \startMPpage   path p ; p := origin .. (2,1) .. (3,0) .. (2,-1) .. (-2,1) .. (-3,0) .. (-2,-1) .. cycle ;   picture px, py ;   px := image (

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Keith McKay
Thanks dr. Hans! It certainly will. Best Wishes Keith On 05/04/2018 19:55, dr. Hans van der Meer wrote: Maybe this script could help a bit too. Use with following code scheme in ConTeXt: \starttex t\startMPpage % Your Metapost/metafun code here \stopMPpage \stoptext It will produce

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread dr. Hans van der Meer
Maybe this script could help a bit too.  mpone Description: Binary data Use with following code scheme in ConTeXt:\starttext\startMPpage% Your Metapost/metafun code here\stopMPpage\stoptextIt will produce a standalone image in a pdf. dr. Hans van der Meer On 5 Apr 2018, at 18:45, Keith McKay

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Keith McKay
Thanks Nicola and Alan. I'll look into that. Best Wishes Keith On 05/04/2018 17:42, Nicola wrote: On 05/04/2018 18:24, Alan Braslau wrote: On Thu, 5 Apr 2018 15:28:34 +0100 Keith McKay wrote: I use a mac-mini and it seems that mupdf, of which mutools is part off,

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Nicola
On 05/04/2018 18:24, Alan Braslau wrote: On Thu, 5 Apr 2018 15:28:34 +0100 Keith McKay wrote: I use a mac-mini and it seems that mupdf, of which mutools is part off, does not have a macOS version, or I would have to build from source. However it looks like I can use

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Alan Braslau
On Thu, 5 Apr 2018 15:28:34 +0100 Keith McKay wrote: > I use a mac-mini and it seems that mupdf, of which mutools is part > off, does not have a macOS version, or I would have to build from > source. However it looks like I can use Inkscape with a wee bit > thought to do

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Keith McKay
. Keith On 05/04/2018 13:39, Hans Hagen wrote: On 4/5/2018 1:10 PM, Keith McKay wrote: Dear Readers, I have been playing about with METAFUN over the last few days trying to get a feel for it. I was wondering if it is possible to save the graphics produced in a context document for use outside

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Hans Hagen
On 4/5/2018 1:10 PM, Keith McKay wrote: Dear Readers, I have been playing about with METAFUN over the last few days trying to get a feel for it. I was wondering if it is possible to save the graphics produced in a context document for use outside. On looking at the Metapost manual I see you

[NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Keith McKay
Dear Readers, I have been playing about with METAFUN over the last few days trying to get a feel for it. I was wondering if it is possible to save the graphics produced in a context document for use outside. On looking at the Metapost manual I see you can using the following commands save

Re: [NTG-context] texdoc in ConTeXt standalone

2018-04-04 Thread Hans Hagen
.  ConTeXt standalone also comes with documentation in      /opt/context/tex/texmf-context/doc/context However, I find it tedious to always search for the correct subfolder to get to the document I need.  It would be great if there was something like      mtxrun --script doc metafun which

Re: [NTG-context] texdoc in ConTeXt standalone

2018-04-04 Thread Hans Hagen
.  ConTeXt standalone also comes with documentation in      /opt/context/tex/texmf-context/doc/context However, I find it tedious to always search for the correct subfolder to get to the document I need.  It would be great if there was something like      mtxrun --script doc metafun which

Re: [NTG-context] texdoc in ConTeXt standalone

2018-04-04 Thread Henri Menke
umentation for packages.  ConTeXt standalone also > > comes with documentation in > > > >      /opt/context/tex/texmf-context/doc/context > > > > However, I find it tedious to always search for the correct subfolder to get > > to > > the document I nee

Re: [NTG-context] texdoc in ConTeXt standalone

2018-04-04 Thread Hans Hagen
t However, I find it tedious to always search for the correct subfolder to get to the document I need.  It would be great if there was something like     mtxrun --script doc metafun which would open the MetaFun manual.  Similarly "mtxrun --script doc gnuplot" would open the manual o

[NTG-context] texdoc in ConTeXt standalone

2018-04-04 Thread Henri Menke
ays search for the correct subfolder to get to the document I need.  It would be great if there was something like     mtxrun --script doc metafun which would open the MetaFun manual.  Similarly "mtxrun --script doc gnuplot" would open the manual of the gnuplot module, etc. See attached for

Re: [NTG-context] Circled text in metapost

2018-03-30 Thread Henri Menke
t; > Gerhard Kugler <g.w.kug...@posteo.de> wrote: > > > > > > > > > > > > > > > One misunderstanding made by my post: I want to write the text curved > > > > as a (half-)circle. > > > Take a look at the Metafun manual. &g

Re: [NTG-context] Circled text in metapost

2018-03-30 Thread Henri Menke
rstanding made by my post: I want to write the text curved > > > as a (half-)circle. > > Take a look at the Metafun manual. > > > In the manual is an example on page 233 with the following content: Nah!  Don't use those macros.  They are only for demonstration.  Use the buil

Re: [NTG-context] Circled text in metapost

2018-03-29 Thread Gerhard Kugler
On Thu, Mar 29, 2018 at 07:11:50AM -0600, Alan Braslau wrote: > On Thu, 29 Mar 2018 12:43:56 +0200 > Gerhard Kugler <g.w.kug...@posteo.de> wrote: > > > One misunderstanding made by my post: I want to write the text curved > > as a (half-)circle. > >

Re: [NTG-context] Circled text in metapost

2018-03-29 Thread Alan Braslau
On Thu, 29 Mar 2018 12:43:56 +0200 Gerhard Kugler <g.w.kug...@posteo.de> wrote: > One misunderstanding made by my post: I want to write the text curved > as a (half-)circle. Take a look at the Metafun m

Re: [NTG-context] Circled text in metapost

2018-03-29 Thread Hans Hagen
? The Metafun experts would probably tear this apart... \startuniqueMPgraphic{half circle} path p, q ; p := fullcircle scaled OverlayWidth; q := (p cutafter (point .5 along p)) shifted (0,-.5BodyFontSize) ; fill q -- cycle withcolor lightgray ; draw q withpen pencircle scaled 2pt

Re: [NTG-context] Circled text in metapost

2018-03-29 Thread Henri Menke
On 03/29/2018 10:28 PM, Gerhard Kugler wrote: > Hi, > > in documentations I can find various examples of circled text. But > copying them I had no success till now. > > I want to place text in half circles of various radiuses. Is there > anywhere a simple example? The

Re: [NTG-context] Fwd: Macro to write a vector (Metafun) is broken

2018-03-22 Thread Fabrice Couvreur
modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded metapost> initializing instance 'metafun' using format 'metafun' metapost> loading 'metafun' as '/home/fab/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' using me

Re: [NTG-context] Fwd: Macro to write a vector (Metafun) is broken

2018-03-22 Thread Hans Hagen
-- Forwarded message -- From: Fabrice Couvreur <fabrice1.couvr...@gmail.com> Date: Tue, Mar 20, 2018 at 4:29 PM Subject: [NTG-context] Macro to write a vector (Metafun) is broken To: mailing list for ConTeXt users <ntg-context@ntg.nl> Hello Hans, The macro you w

[NTG-context] Macro to write a vector (Metafun) is broken

2018-03-20 Thread Fabrice Couvreur
Hello Hans, The macro you wrote to draw the arrows of the vectors does not seem to work anymore. Thank you Fabrice \useMPlibrary[mat] % will be in meta-imp-mat.mkiv \startMPextensions vardef math_stacker_arrow_shape = image ( drawarrow

Re: [NTG-context] about makempy (metapost outlines)

2018-02-19 Thread Hans Hagen
y longer .. it's better now, see metafun manual etc) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.prag

Re: [NTG-context] image file resolver in Lua?

2018-02-05 Thread Rudolf Bahr
gt; >align={flushleft,low}, > > >valign=bottom, > > >]{% > > >\vbox{ > > > \textreference[#1]{\strut #2}\vfill #2 > > >}} > > > \stopfullpagemakeup > > > } > > > > > > > > > usage exam

Re: [NTG-context] image file resolver in Lua?

2018-02-04 Thread Hans Hagen
s with the help of lua! Up to now I used to use python and a independend lua to provide some necessary data for context. For instance python invokes graphicsmagick in order to get the size of images. Because it's provided in px and not in pt, so often some further manual work is unavoidable.

Re: [NTG-context] image file resolver in Lua?

2018-02-02 Thread Rudolf Bahr
> \stoppostponing > > > > Greetlings, Hraban > --- > http://www.fiee.net > http://wiki.contextgarden.net > GPG Key ID 1C9B22FD > Moin Hraban! It's very interesting for me to see, how exactly you calculate the size of images and texts with the help of lua! Up t

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wolfgang Schuster
r 20, name '../setup_code.tex' close source > level 4, order 20, name '../setup_code.tex' close source > level 3, order 20, name '../setup_global.tex' open source > level 3, order 21, name '../setup_frontmatter.tex' structures > begin of sectionblock 'frontpart' open source > leve

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
9, name '../setup_matrix.tex' close source> level 4, order 19, name '../setup_matrix.tex' open source > level 4, order 20, name '../setup_code.tex' close source> level 4, order 20, name '../setup_code.tex' close source> level 3, order 20, name '../setup_global.tex' o

Re: [NTG-context] getting metafun positions within (displayed) math mode

2017-11-17 Thread Sanjoy Mahajan
[Sorry for probably breaking the threading -- long story with not using the mailing-list administrative interface correctly at first.] Aditya writes: > No time for a detailed answer, but what you need is the following: > ... Thank you -- that should work. I won't have many of these equation

Re: [NTG-context] getting metafun positions within (displayed) math mode

2017-11-17 Thread Aditya Mahajan
On Thu, 16 Nov 2017, Sanjoy Mahajan wrote: However, the \hpos hides its argument in an \hbox, and thus hides it from the math layout. Thus, I have to do something like this minimal example: \starttext \startformula \sum_0^1 % what it should look like \quad

Re: [NTG-context] getting metafun positions within (displayed) math mode

2017-11-16 Thread Nigel King
rt (here, each symbol) is connected with an > line to its explanation. > > I'm trying to do so with a combination of ConTeXt, MetaPost/MetaFun, > TikZ, and whatever else might work. But I am a bit stuck at the > following spot. > > My plan is to use MetaFun to get the coordina

[NTG-context] getting metafun positions within (displayed) math mode

2017-11-16 Thread Sanjoy Mahajan
like (from page 2 of Fleisch's book). It's like a labeled part diagram (say, for a laptop), where each part (here, each symbol) is connected with an line to its explanation. I'm trying to do so with a combination of ConTeXt, MetaPost/MetaFun, TikZ, and whatever else might work. But I am a bit stuck

Re: [NTG-context] framed with titles

2017-11-14 Thread Jeong Dal
ow to put the theorem counter after chapternumber instead of \recurselevel. Here is a sample code. Thank you for reading. Best regards, Dalyoung framed Text copied from MetaFun manual \startuseMPgraphic{FunnyFrame} picture p ; numeric o ; path a, b ; pair c ; p := textext.rt(\MPstring{FunnyFra

Re: [NTG-context] framed with titles

2017-11-13 Thread Jeong Dal
to do the following two things. 1. to put “Theorem #.#” inside the FrameTitle?(#.# means that chapter number.theorem number) 2. to suppress the automatically display of “Thm #” inside the text? Thanks for reading. Best regards, Dalyoung framed Text copied from MetaFun book

Re: [NTG-context] framed with titles

2017-11-05 Thread Jeong Dal
Dear Javier, There is a nice sample (‘FunnyFrame’ and ‘\FrameTitle’) which you can find in metafun manual.(metafun-p.pdf or metafun-s.pdf) I used it a lot with a little modification. I hope that is what you want. cheers, Dalyoung > 2017. 11. 5. 오후 8:00, ntg-context-requ...@ntg.nl

Re: [NTG-context] Page printed upside down

2017-10-24 Thread Fabrice Couvreur
he links and for your help. I'm going to look at Metafun > > for the vertical line. > > Hi Fabrice, > > I know that curiosity killed the cat, but why do you need the vertical > line? > > Pablo > -- > http://www.ousia.tk > ___

Re: [NTG-context] Page printed upside down

2017-10-23 Thread Pablo Rodriguez
On 10/23/2017 12:34 PM, Fabrice Couvreur wrote: > Hi Pablo, > Thank you for the links and for your help. I'm going to look at Metafun > for the vertical line. Hi Fabrice, I know that curiosity killed the cat, but why do you need the vertical line? Pablo -- http://www

Re: [NTG-context] Page printed upside down

2017-10-23 Thread Fabrice Couvreur
Hi Pablo, Thank you for the links and for your help. I'm going to look at Metafun for the vertical line. Fabrice 2017-10-22 9:48 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>: > On 10/21/2017 11:45 PM, Fabrice Couvreur wrote: > > Hi Pablo, > > Sorry for the late response. I

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

2017-09-18 Thread luigi scarso
On Mon, Sep 18, 2017 at 10:57 AM, Hans Hagen wrote: > On 9/18/2017 10:25 AM, Ursula Hermann wrote: >> >> Hello! >> >> I have tried an example: >> >> 1 \starttext >> 2 This is me >> 3 \startMPcode >> 4 u:=0.4cm; >> 5 dirlabel:=90; >> 6

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

2017-09-18 Thread Hans Hagen
On 9/18/2017 10:25 AM, Ursula Hermann wrote: Hello! I have tried an example: 1 \starttext 2 This is me 3 \startMPcode 4 u:=0.4cm; 5 dirlabel:=90; 6 abscoord:=true; 7 endlabelspace:=0.5cm; 8 draw startlable ("S") 9 draw

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

2017-09-18 Thread Ursula Hermann
rce > 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 metapost> initializing instance 'metafun' using format 'metafun' metapost>

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

2017-09-14 Thread Ursula Hermann
2017 20:26 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Metafun "Structure-Trees" What exactly do you mean? (we can build tree diagrams with Metapost) Alan > On 13 Sep 2017, at 12:43, Ursula Hermann <ursula.herm...@univie.ac.at> wrote: > >

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

2017-09-13 Thread Alan Braslau
What exactly do you mean? (we can build tree diagrams with Metapost) Alan > On 13 Sep 2017, at 12:43, Ursula Hermann wrote: > > Hello! > > My question is: Is it possible to make „Structure Trees“ for English > Sentences with „Categorial Grammar“? Sorry, I have

[NTG-context] Metafun "Structure-Trees"

2017-09-13 Thread Ursula Hermann
Hello! My question is: Is it possible to make "Structure Trees" for English Sentences with "Categorial Grammar"? Sorry, I have no example. Thanks Uschi Hermann ___ If your question is of interest to

Re: [NTG-context] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der
> \defineornament >[FrameTitle] >[preset=lefttop] I tried this example and I wonder what the [preset=lefttop] does. Because whatever I fill in for lefttop, the ornament appears always in the topleft corner and nowhere else. Hans van der Meer > On 23 Aug 2017, at 00:50, Aditya

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
Hi Pablo, I speak of the text in the frame as in the image https://mail.google.com/mail/u/0/?ui=2=d5d294e54c=att=15e0c2d8c5b8cf7c=0.1=safe=f_j6o6zsx20 Fabrice 2017-08-30 22:45 GMT+02:00 Pablo Rodriguez : > On 08/30/2017 06:07 PM, Fabrice Couvreur wrote: > > Hi Aditya, > > I tried :

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
On 08/30/2017 06:07 PM, Fabrice Couvreur wrote: > Hi Aditya, > I tried : > [...] > to have my text wrapped around the ornament as in the figure but it > does not work. Hi Fabrice, sorry if I’m missing something, but I wonder whether the next sample is what you intend.

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
m>: > >> Hi Aditya, >> Sorry I forgot to attach the image of what I want to do. I know corner=number >> parameter of framed and framed text but I wanted to do it with Metafun. >> Thank you >> Fabrice >> >> 2017-08-23 0:50 GMT+02:00 Aditya Mahajan <a

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
Sorry 'corner=00' ! 2017-08-23 1:01 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hi Aditya, > Sorry I forgot to attach the image of what I want to do. I know corner=number > parameter of framed and framed text but I wanted to do it with Metafun. > Thank you >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
With your solution 'corner=01' 2017-08-23 1:01 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hi Aditya, > Sorry I forgot to attach the image of what I want to do. I know corner=number > parameter of framed and framed text but I wanted to do it with Metafun. > T

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
Hi Aditya, Sorry I forgot to attach the image of what I want to do. I know corner=number parameter of framed and framed text but I wanted to do it with Metafun. Thank you Fabrice 2017-08-23 0:50 GMT+02:00 Aditya Mahajan <adit...@umich.edu>: > On Wed, 23 Aug 2017, Fabrice Couvr

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Aditya Mahajan
On Wed, 23 Aug 2017, Fabrice Couvreur wrote: Hello, I would like to have three corners rounded as in the figure. Not sure if you had simplified your example or not. But if all you want is a rounded corner, you can consider using corner=number parameter of framed and framed text:

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
Hello, I would like to have three corners rounded as in the figure. Thank you Fabrice \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \startuseMPgraphic{MyFrame} path b ; picture p ; p :=

Re: [NTG-context] question for metapost experts

2017-08-10 Thread Hans Hagen
On 8/10/2017 2:07 PM, Schmitz Thomas A. wrote: Hi all, this one is for all the metapos/metafun experts out there (Alan, are you there?). For a counter in one of my slide backgrounds, I have to calculate an intersectionpoint, given in percentage of the difference between current page and last

[NTG-context] question for metapost experts

2017-08-10 Thread Schmitz Thomas A.
Hi all, this one is for all the metapos/metafun experts out there (Alan, are you there?). For a counter in one of my slide backgrounds, I have to calculate an intersectionpoint, given in percentage of the difference between current page and last page. I have always had some difficulties

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

2017-07-27 Thread Mojca Miklavec
On 27 July 2017 at 10:49, Hans Hagen wrote: > 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

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 get wrong

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

2017-07-26 Thread Mojca Miklavec
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 get wrong dimensions when converted via inkscape, but

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-25 Thread Aditya Mahajan
On Mon, 24 Jul 2017, Alan Braslau wrote: On Mon, 24 Jul 2017 10:26:25 +0200 Hans Hagen wrote: On 7/24/2017 1:40 AM, Aditya Mahajan wrote: Hi, Is it possible to set pen width using properties(...)? The following does not work (the color is set, but not the pen width):

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-24 Thread Alan Braslau
On Mon, 24 Jul 2017 10:26:25 +0200 Hans Hagen wrote: > On 7/24/2017 1:40 AM, Aditya Mahajan wrote: > > Hi, > > > > Is it possible to set pen width using properties(...)? The > > following does not work (the color is set, but not the pen width): > > > > \starttext > >

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-24 Thread Hans Hagen
On 7/24/2017 1:40 AM, Aditya Mahajan wrote: Hi, Is it possible to set pen width using properties(...)? The following does not work (the color is set, but not the pen width): \starttext \startMPcode property p[] ; p[1] := properties(withcolor red withpen pencircle scaled 1bp); p[2] :=

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-23 Thread Alan Braslau
withproperties is an experimental, metafun extension that appears to cover color and pre/postscripts. It could be extended to cover withpen, etc. Look at mp-mplib.mkiv. properties() returns an image object that can hold many things. The graph package does similar tricks. Alan On Sun, 23 Jul

[NTG-context] Metafun: setting pen size in properties

2017-07-23 Thread Aditya Mahajan
Hi, Is it possible to set pen width using properties(...)? The following does not work (the color is set, but not the pen width): \starttext \startMPcode property p[] ; p[1] := properties(withcolor red withpen pencircle scaled 1bp); p[2] := properties(withcolor blue withpen pencircle scaled

Re: [NTG-context] getting the glyph of a character

2017-05-01 Thread Alan Braslau
On Mon, 1 May 2017 21:20:33 -0400 Mohammad Hossein Bateni <bat...@gmail.com> wrote: > MetaPost's documentation mentions that glyph operator works on Adobe > Type 1 fonts.  Does it also work with OpenType fonts when used from > within LuaTeX and CONTEXT? The metafun manual

[NTG-context] getting the glyph of a character

2017-05-01 Thread Jeong Dal
Dear all. At page 50-52 of the manual of metapost, “Mpman”, it is explained to get a glyph of font using the command ‘glyph'. glyph ⟨numeric expression⟩ of ⟨string expression⟩ glyph ⟨string expression⟩ of ⟨string expression⟩ . Is it possible to do the similar thing in metafun? I couldn’t

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
hic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage See ch. 8.2 of the metafun manual. HTH Thomas ___ If your question is of interest to others as

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Thomas A. Schmitz
; label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm, 50mm)) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage See ch. 8.2 of the metafun

Re: [NTG-context] Passing data back and forth between metapost and lua

2017-03-19 Thread Hans Hagen
g. See the metafun manual for details (search for MPvar). Hans has developed tools making it quite easy to pass data back and forth between MetaPost and lua. This is quite efficient, and it is being used more and more in the development of macro functionality. I finally need to write a macro w

Re: [NTG-context] Passing data back and forth between metapost and lua

2017-03-19 Thread Aditya Mahajan
On Sun, 19 Mar 2017, Aditya Mahajan wrote: On Tue, 20 Dec 2016, Alan Braslau wrote: On Mon, 19 Dec 2016 08:19:25 -0800 Aditya Mahajan <adit...@umich.edu> wrote: The ability to pass parameters to metapost has been around since the beginning. See the metafun manual for details (

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

2017-02-16 Thread Mojca Miklavec
On 16 February 2017 at 21:07, William Adams wrote: > Another option here would be to use a tool which directly accepts SVGs --- > one free/opensource tool for that is PartKAM/MakerCAM. > > My apologies for the late response --- investigating this sort of thing > myself, though I'll likely be using

<    4   5   6   7   8   9   10   11   12   13   >