Hi again,
you could remove the \localcontrolled around the advance
>
I thought I tried that, but the counter incremented to 6, instead of 4.
Using higher-level primitives seems more like the ConTeXt way.
> why twice ? you only have to typeset the text once, right?
> >
>
On 8/12/2023 7:19 PM, Thangalin wrote:
Thanks Hans.
The \newinteger approach would always increment the value, regardless of
conditionals within the MetaPost code (i.e., it was like legend :=
"\ConcurrentTextGet" would always invoke the macro just be referencing the
MPgraphic and nothing would
Thanks Hans.
The \newinteger approach would always increment the value, regardless of
conditionals within the MetaPost code (i.e., it was like legend :=
"\ConcurrentTextGet" would always invoke the macro just be referencing the
MPgraphic and nothing would prevent its execution). This meant that
variables is that currently we cannot bind a "current"
value so I need to think a bit about it. Maybe the solution here, a bit
more robust is one. One can actually pass variables with a graphic but
again, these are then overwritten by a later one.
In lmtx we have a few bett
Hi list,
I'm attempting to make a stylized border around paragraphs that can span
pages. The border runs along the side and the top. (Ideally the top border
wouldn't repeat, but that's a minor issue.) The issue I'm having is that
the title for the text doesn't always appear. Instead, there's a
Thanks a lot for this hint, Hans!
On 15.10.20 09:15, Hans Hagen wrote:
> \starttext
>
> \setupbodyfont[plex,10pt]
> \setupalign[tolerant,stretch]
> \useMPlibrary[dum]
>
> \startpagecolumns[n=2]
> \dorecurse {10} {
> \startplacefigure[location={left,none}]
>
Am 15.10.20 um 09:15 schrieb Hans Hagen:
experimental (already there for a while but i need top pickup on it):
\starttext
\setupbodyfont[plex,10pt]
\setupalign[tolerant,stretch]
\useMPlibrary[dum]
\startpagecolumns[n=2]
\dorecurse {10} {
\startplacefigure[location={left,none}]
Thanks Hraban!
On 14.10.20 19:36, Henning Hraban Ramm wrote:
>> how can I get a graphic that floats left or right from the text in
>> columns or columnsets?
>
> You can’t, sorry.
I feared that. I changed my layout a bit and us
On 10/14/2020 6:58 PM, Jan U. Hasecke wrote:
Hi,
how can I get a graphic that floats left or right from the text in
columns or columnsets?
\starttext
\startcolumns[2]
\placefigure[left, high, none]{}
{\externalfigure[dummy][width=3em]}
\input ward
\input ward
\stopcolumns
Hi,
how can I get a graphic that floats left or right from the text in
columns or columnsets?
\starttext
\startcolumns[2]
\placefigure[left, high, none]{}
{\externalfigure[dummy][width=3em]}
\input ward
\input ward
\stopcolumns
\blank
\placefigure[left, high, none
> Am 14.10.2020 um 18:58 schrieb Jan U. Hasecke :
>
> how can I get a graphic that floats left or right from the text in
> columns or columnsets?
You can’t, sorry.
Hraban
___
If your question is
Thanks Taco!
I have been playing about with an example from this site
https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html
which was originally for a square and I obviously didn't get my angles
right. Thanks for spotting it. I'm beginning to appreciate where the Fun
in MetaFun
Hi Keith,
It took me a while before I saw it, but I think you wanted to type in
z0 = (60,60);
z1 = z0 rotated 120;
z2 = z0 rotated 240;
instead of
z0 = (60,60);
z1 = z0 rotated 120;
z2 = z1 rotated 240;
because the latter puts z2 at z0, resulting in a path that is a straight
Dear List
I have come across a problem which I don't think is due to ConTeXt but
I'm hopping the great and the good of this list may be able to explain
what is going on.
The code below produces an MPpage with a shaded background and two
graphics along with a line of outlined text. When I
Thanks a lot Wolfgang and Marco. :-)
juh
Am 08.02.19 um 12:57 schrieb Wolfgang Schuster:
>
>
> Jan U. Hasecke schrieb am 08.02.19 um 12:36:
>> Hi all,
>>
>> I make my first steps with Metapost.
>>
>> I would like to set the background of all page
Jan U. Hasecke schrieb am 08.02.19 um 12:36:
Hi all,
I make my first steps with Metapost.
I would like to set the background of all pages to a Metapost graphic.
But only the first page has the defined background.
I also tried with
\startuseMPgraphic
with no success
--- mwe
On Fri, 8 Feb 2019 12:36:16 +0100
"Jan U. Hasecke" wrote:
> \definelayer[kreisbackground][width=70mm,height=70mm]
\definelayer[kreisbackground][width=70mm,height=70mm, state=repeat]
start: layer appears only on the current page
stop : layer doesn't show up
repeat : layer prints on
Hi all,
I make my first steps with Metapost.
I would like to set the background of all pages to a Metapost graphic.
But only the first page has the defined background.
I also tried with
\startuseMPgraphic
with no success
--- mwe ---
\startreusableMPgraphic{kreis}
draw fullcircle scaled
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 a
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
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,
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
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
. On looking
at the Metapost manual I see you can using the following commands
save a graphic as an svg file.
forget about producing svg this way ... (1) it would not work with
fonts, and (2) mplib in luatex has svg and png output disabled.
% file: mpsvg.tex
\startMPpage
draw textext("
can using the following commands save a
graphic as an svg file.
forget about producing svg this way ... (1) it would not work with
fonts, and (2) mplib in luatex has svg and png output disabled.
% file: mpsvg.tex
\startMPpage
draw textext("Does it work?") ;
draw b
a
graphic as an svg file.
/outputformat := "svg"; /
/outputtemplate := "test.svg";/
//
I have tried adding this to some MPcode in a ConteXt document but these
lines seem to be ignored since no svg file is produced apart from the
usual ConTeXt files. Is this expected behavio
You're right Pablo.
Fabrice
___
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 :
Hi Pablo,
Thank you for your cooperation. That's what I want except the frame.
Fabrice
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
On 01/09/2015 02:23 PM, Fabrice Couvreur wrote:
Hi,
Is it possible to center horizontally and vertically the table with the
graphics?
Hi Fabrice,
adding an xtable might do what you want (but unless you have narrower
left and right margins, there is no room to fit both tables [I guess]).
On 01/09/2015 11:36 PM, Fabrice wrote:
\startxcell[frame=off]
\startxtable[frame=off] seems to me a better option to remove the table
frames.
Pablo
--
http://www.ousia.tk
___
If your question is of interest to
\startxcell[frame=off]
___
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 :
Hi,
Is it possible to center horizontally and vertically the table with the
graphics ?
Best regards,
Fabrice
\defineparagraphs[TwoColumns][n=2]
\setupparagraphs[TwoColumns][1][width=0.45\textwidth]
\startsetups[table:initialize]
On 10/07/2013 10:48 PM, Hans Hagen wrote:
On 10/7/2013 10:04 PM, Pablo Rodríguez wrote:
[...]
I need to insist on this sample, because the layer doesn’t behave as such:
\definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
\setuplayer[wrongpositioned]{\startMPcode draw
On 10/07/2013 11:01 PM, luigi scarso wrote:
On Mon, Oct 7, 2013 at 10:04 PM, Pablo Rodríguez wrote:
I need to insist on this sample, because the layer doesn’t behave as
such:
\definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
={wrongpositioned}]
\starttext
\input knuth
\stoptext
No matter what x, y, hoffset, voffset, location or corner, the MP
graphic is located where the page margins start.
Sorry for the so basic question, but what is wrong there?
Besides that, I don’t understand how positioning in layers work. I
)--(14mm,38mm) ; \stopMPcode}
\setupbackgrounds[page][background={wrongpositioned}]
\starttext
\input knuth
\stoptext
No matter what x, y, hoffset, voffset, location or corner, the MP
graphic is located where the page margins start.
Sorry for the so basic question, but what
On 10/07/2013 07:16 PM, luigi scarso wrote:
On Mon, Oct 7, 2013 at 5:56 PM, Pablo Rodríguez wrote:
Dear list,
I have the following sample:
[...]
Many thanks for your reply, Luigi.
I need to insist on this sample, because the layer doesn’t behave as such:
On 10/7/2013 10:04 PM, Pablo Rodríguez wrote:
On 10/07/2013 07:16 PM, luigi scarso wrote:
On Mon, Oct 7, 2013 at 5:56 PM, Pablo Rodríguez wrote:
Dear list,
I have the following sample:
[...]
Many thanks for your reply, Luigi.
I need to insist on this sample, because the layer doesn’t
On Mon, Oct 7, 2013 at 10:04 PM, Pablo Rodríguez oi...@gmx.es wrote:
On 10/07/2013 07:16 PM, luigi scarso wrote:
On Mon, Oct 7, 2013 at 5:56 PM, Pablo Rodríguez wrote:
Dear list,
I have the following sample:
[...]
Many thanks for your reply, Luigi.
I need to insist on this
Hi all,
We have the small self-contained example below, in which text flows
around a graphic.
The graphic is aligned with the upper-left corner of the text paragraph
(despite \setuphanging[location=right]). We would very much like to have
the graphic align with the lower right corner
Le 8 mai 13 à 06:56, Wolfgang Schuster a écrit :
Am 07.05.2013 um 22:28 schrieb Roland Thiers
roland.thi...@gmail.com:
Thank you very much for this precision, Wolfgang. I tried with two
variables and it works with this
syntax :
\startuniqueMPgraphic{polygoneregulier}
numeric u ;
Hi,
I did this code to get a regular polygon with metafun, it works but I
would like to have an user command like \define or \def
to be able to choose the number of sides, n. I don't know how to do
that ...
\startbuffer[largeurdeslignes]
drawoptions (withpen pencircle scaled 2pt);
On 2013–05–07 Roland Thiers wrote:
Hi,
I did this code to get a regular polygon with metafun, it works but
I would like to have an user command like \define or \def
to be able to choose the number of sides, n. I don't know how to do
that ...
Here's one way to do it:
Le 7 mai 13 à 09:51, Marco Patzer a écrit :
\startuniqueMPgraphic{polygoneregulier}{sides}
drawoptions (withpen pencircle scaled 2pt);
numeric u ; u:=1*cm ;
numeric n ; n:=\MPvar{sides};
pair a[];
a[0]:=(0,3u);
path polygone[] ;
for i=1 upto n :
a[i]:=a[0] rotatedaround(origin,i*360/n)
Am 07.05.2013 um 09:51 schrieb Marco Patzer home...@lavabit.com:
On 2013–05–07 Roland Thiers wrote:
Hi,
I did this code to get a regular polygon with metafun, it works but
I would like to have an user command like \define or \def
to be able to choose the number of sides, n. I don't know
≥
Le 7 mai 13 à 13:05, Wolfgang Schuster a écrit :
Am 07.05.2013 um 09:51 schrieb Marco Patzer home...@lavabit.com:
On 2013–05–07 Roland Thiers wrote:
Hi,
I did this code to get a regular polygon with metafun, it works but
I would like to have an user command like \define or \def
to be
Am 07.05.2013 um 22:28 schrieb Roland Thiers roland.thi...@gmail.com:
Thank you very much for this precision, Wolfgang. I tried with two variables
and it works with this
syntax :
\startuniqueMPgraphic{polygoneregulier}
numeric u ; u:=\MPvar{unite}*cm ;
numeric n ; n:=\MPvar{sides};
Hi all,
it sound stupid but I can not figure out, why ConTeXt is not able to find the
cow-picture.
\useexternalfigure
[Logo]
[cow.pdf]
[width=3cm]
\starttext
\externalfigure[Logo]
\stoptext
Kind regards
Willi
Wolfgang!
Thank you so much.
Willi
On May 6, 2013, at 7:02 PM, Wolfgang Schuster wrote:
Am 06.05.2013 um 18:47 schrieb Willi Egger cont...@boede.nl:
Hi all,
it sound stupid but I can not figure out, why ConTeXt is not able to find
the cow-picture.
\useexternalfigure
[Logo]
Hi All,
Am 08.03.2013 um 09:02 schrieb Marco Patzer home...@lavabit.com:
On 2013–03–08 hwit...@gmail.com wrote:
I am just learning ConTeXt, so please bare with me. In all of the
documentation that I've read so far, it shows the names of
imported photographs, graphs, blocks, etc as a
On 2013–03–08 hwit...@gmail.com wrote:
I am just learning ConTeXt, so please bare with me. In all of the
documentation that I've read so far, it shows the names of
imported photographs, graphs, blocks, etc as a simple filename
without any filename extensions or pathnames.
Avoid hard coded
Marko, thanks for the clear and very useful information.
Marco Patzer home...@lavabit.com wrote:
Avoid hard coded path names in your files, it makes them less
portable. ConTeXt adds the file name extension automatically,
there's usually no need to specify it manually.
.
Have a look
I am just learning ConTeXt, so please bare with me. In all of the
documentation that I've read so far, it shows the names of imported
photographs, graphs, blocks, etc as a simple filename without any filename
extensions or pathnames.
Having a bunch of photographs anc charts files in the
, rotate, shft and
randomize to create a texture. Loop+shift would make a nice
alternating background, randomized with loop and 90degree rotation
steps would make a denser texture.
The problem: I don't know how to input the logo graphic into Metapost
code. This did not work, even though the pdf
2012-10-29 Mari Voipio:
The problem: I don't know how to input the logo graphic into Metapost
code. This did not work, even though the pdf is in the same directory:
externalfigure vaaka-logo.pdf scaled 1cm;
This works here:
\startbuffer [image]
\useMPlibrary [dum]
\startTEXpage
Am 29.10.2012 um 12:07 schrieb Marco Patzer home...@lavabit.com:
2012-10-29 Mari Voipio:
The problem: I don't know how to input the logo graphic into Metapost
code. This did not work, even though the pdf is in the same directory:
externalfigure vaaka-logo.pdf scaled 1cm;
This works
On 4-7-2011 9:26, Christian wrote:
\def\dotagfigure{\iftrialtypesetting\else\ctxcommand{...)}\fi}
fixed
I just discovered that it was not fixed for my Windows-Minimals (ConTeXt ver:
2011.06.18 14:13 MKIV).
Adding the above line makes it work. This is fixed with my Ubuntu-Minimals.
\def\dotagfigure{\iftrialtypesetting\else\ctxcommand{...)}\fi}
fixed
I just discovered that it was not fixed for my Windows-Minimals (ConTeXt ver:
2011.06.18 14:13 MKIV).
Adding the above line makes it work. This is fixed with my Ubuntu-Minimals. I'm
confused. Did I miss something
On Mon, 20 Jun 2011, Reviczky, Adam wrote:
Further, if the url has a % symbol then the name property stops at that, see:
---
\setupbackend[export=test.xml]
\enabledirectives[schemes.cleanmethod=md5]
\def\googlechart
{\begingroup
\setcatcodetable\vrbcatcodes
\dodoubleempty\dogooglechart}
You could try (untested)
\def\googlechart[#1][#2]%
{\externalfigure[#1][...]%
\endgroup}
Thanks, but it has the same result.
\def\dogooglechart[#1][#2]%
{\useexternalfigure[googlechart][#1]%
\endgroup
\externalfigure[googlechart][...]}
That screws up the url in the
Hans,
I'm getting this error if I put an image within a table using the export
backend:
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument
#3 to 'format' (string expected, got boolean).
Minimal example:
---
\setupbackend[export=yes]
\starttext
%
Am 19.06.2011 um 12:46 schrieb Reviczky, Adam:
Hans,
I'm getting this error if I put an image within a table using the export
backend:
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad
argument #3 to 'format' (string expected, got boolean).
You have to wait till
On 19-6-2011 1:13, Wolfgang Schuster wrote:
Am 19.06.2011 um 12:46 schrieb Reviczky, Adam:
Hans,
I'm getting this error if I put an image within a table using the export
backend:
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument
#3 to 'format' (string
Hi
The following example results in a broken xml as well:
--
\setupbackend[export=test.xml]
\starttext
\externalfigure[https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello\letterbar
World][method=png,scale=4000]
\stoptext
---
XML Parsing Error: not well-formed
Location:
HI All Contexters out there!
I'm a Guy from sweden who will appreciate a possible solution to
following problem.
I'm interested in to do a personalized itemlist with a symbol created in
metapost.
Here is an example:
\startuniqueMPgraphic{square}
draw roundedsquare(20,20,2) withrgbcolor
On 12/11/2010 02:27 PM, Jan-Erik Hägglöf wrote:
HI All Contexters out there!
I'm a Guy from sweden who will appreciate a possible solution to
following problem.
I'm interested in to do a personalized itemlist with a symbol created in
metapost.
Here is an example:
There are two small
On 2010-12-11 14:42, Taco Hoekwater wrote:
On 12/11/2010 02:27 PM, Jan-Erik Hägglöf wrote:
HI All Contexters out there!
I'm a Guy from sweden who will appreciate a possible solution to
following problem.
I'm interested in to do a personalized itemlist with a symbol created in
metapost.
Here
Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf:
Thanks that worked but how to manage more vertical whitespace?
Before and after the list you can set the vertical space with
\setupitemize
[before={\blank[dimension or keyword]},
after={\blank[dimension or keyword]}]
and between the
On 2010-12-11 16:23, Wolfgang Schuster wrote:
Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf:
Thanks that worked but how to manage more vertical whitespace?
Before and after the list you can set the vertical space with
\setupitemize
[before={\blank[dimension orkeyword]},
On 2010-12-11 17:14, Jan-Erik Hägglöf wrote:
On 2010-12-11 16:23, Wolfgang Schuster wrote:
Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf:
Thanks that worked but how to manage more vertical whitespace?
Before and after the list you can set the vertical space with
\setupitemize
Am 11.12.2010 um 17:14 schrieb Jan-Erik Hägglöf:
None of the above setting worked for me. Even tried
\startitemize[columns,2*broad][inbetween={\blank[1cm]}]
With the „columns“ keyword you get also packed items, to unset this
setting add „unpacked“ to your setup:
On 2010-12-11 18:24, Wolfgang Schuster wrote:
Am 11.12.2010 um 17:14 schrieb Jan-Erik Hägglöf:
None of the above setting worked for me. Even tried
\startitemize[columns,2*broad][inbetween={\blank[1cm]}]
With the „columns“ keyword you get also packed items, to unset this
setting add
On Sun, Nov 21, 2010 at 7:21 AM, Cecil Westerhof cldwester...@gmail.com wrote:
I am making flowcharts with ConTeXt. Because the flowcharts have to be
included in other documents, I would like to make graphic files (jpeg,
png, ...). Also not bigger as needed to represent the flowchart.
Can
2010/11/21 luigi scarso luigi.sca...@gmail.com:
I am making flowcharts with ConTeXt. Because the flowcharts have to be
included in other documents, I would like to make graphic files (jpeg,
png, ...). Also not bigger as needed to represent the flowchart.
Can this be done.
Just convert the pdf
On Sun, Nov 21, 2010 at 10:07 AM, Cecil Westerhof
cldwester...@gmail.com wrote:
2010/11/21 luigi scarso luigi.sca...@gmail.com:
I am making flowcharts with ConTeXt. Because the flowcharts have to be
included in other documents, I would like to make graphic files (jpeg,
png, ...). Also
2010/11/21 luigi scarso luigi.sca...@gmail.com:
I am making flowcharts with ConTeXt. Because the flowcharts have to be
included in other documents, I would like to make graphic files (jpeg,
png, ...). Also not bigger as needed to represent the flowchart.
Can this be done.
Just convert the pdf
On Sun, Nov 21, 2010 at 10:38 AM, Cecil Westerhof
cldwester...@gmail.com wrote:
2010/11/21 luigi scarso luigi.sca...@gmail.com:
I am making flowcharts with ConTeXt. Because the flowcharts have to be
included in other documents, I would like to make graphic files (jpeg,
png, ...). Also
I am making flowcharts with ConTeXt. Because the flowcharts have to be
included in other documents, I would like to make graphic files (jpeg,
png, ...). Also not bigger as needed to represent the flowchart.
Can this be done.
--
Cecil Westerhof
to make graphic files (jpeg,
png, ...). Also not bigger as needed to represent the flowchart.
Can this be done.
--
Cecil Westerhof
___
If your question is of interest to others as well, please add an entry to the
Wiki
Am 07.09.2010 20:09, schrieb Yury G. Kudryashov:
Peter Rolf wrote:
Hi,
this is the first time I use tikz and maybe something is missing in my
example. I tried the second graphic from page 206 of the tikz manual.
Sadly I only get a opaque blue square. Example and log file attached
Hi,
this is the first time I use tikz and maybe something is missing in my
example. I tried the second graphic from page 206 of the tikz manual.
Sadly I only get a opaque blue square. Example and log file attached.
I get the same error for both marks:
[..]
(./tikz206.tuo)
systems : begin
Peter Rolf wrote:
Hi,
this is the first time I use tikz and maybe something is missing in my
example. I tried the second graphic from page 206 of the tikz manual.
Sadly I only get a opaque blue square. Example and log file attached.
Package tikz: Error! You need to say \usetikzlibrary
Vianney le Clément wrote:
Hello,
I'm having some trouble with a macro using \processaction inside a
metapost graphic. Here is a minimal example.
\def\Shape#1%
{\processaction[#1]
[square=unitsquare,
circle=unitcircle]}
\starttext
\startuseMPgraphic{test}
fill \Shape{square} scaled
On Thu, May 13, 2010 at 09:30, Taco Hoekwater t...@elvenkind.com wrote:
Like many of the more complex commands, \processaction does not
expand totally. If you are using mkiv, you could define \Shape
like this:
\def\Shape#1%
{\directlua{
local known = {square = 'unitsquare', circle =
2010/5/13 Vianney le Clément vleclem...@gmail.com:
On Thu, May 13, 2010 at 09:30, Taco Hoekwater t...@elvenkind.com wrote:
Like many of the more complex commands, \processaction does not
expand totally. If you are using mkiv, you could define \Shape
like this:
\def\Shape#1%
{\directlua{
On 13-5-2010 11:13, luigi scarso wrote:
\setevalue{square}{unitsquare}
\setevalue{circle}{unitcircle}
\starttext
\startuseMPgraphic{test}
fill \getvalue{square} scaled 1cm;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
or
\setevalue{mynamespace:square}{unitsquare}
\getparameters[Shape][square={unitsquare },
circle={unitcircle }]
\starttext
\startuseMPgraphic{test}
fill \Shapesquare scaled 1cm;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
This one's very nice. Thanks.
Vianney
2010/5/13 Vianney le Clément vleclem...@gmail.com:
\getparameters[Shape][square={unitsquare },
circle={unitcircle }]
\starttext
\startuseMPgraphic{test}
fill \Shapesquare scaled 1cm;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
This one's very nice. Thanks.
becareful at the spaces at the end, ie
\getparameters[Shape][square={unitsquare},
circle={unitcircle}]
doesn't work.
That's logical, because \Shapesquare eats the spaces following it. In
my case, I define my macros like
\getparameters[Shape:]
[square=unitsquare,
Hello,
I'm having some trouble with a macro using \processaction inside a
metapost graphic. Here is a minimal example.
\def\Shape#1%
{\processaction[#1]
[square=unitsquare,
circle=unitcircle]}
\starttext
\startuseMPgraphic{test}
fill \Shape{square} scaled 1cm;
\stopuseMPgraphic
Another question arises. The following produces grids in a column (i.e.
with line breaks). How to place MP graphics like words, in a row?
\starttext
\startuseMPgraphic{cg}
drawoptions(withpen pencircle scaled 0.1pt withcolor black) ;
draw hlingrid(0, 6, 1, 0.8cm, 1cm) ;
draw vlingrid(0, 4, 1,
Vyatcheslav Yatskovsky wrote:
Another question arises. The following produces grids in a column (i.e.
with line breaks). How to place MP graphics like words, in a row?
\starttext
\startuseMPgraphic{cg}
drawoptions(withpen pencircle scaled 0.1pt withcolor black) ;
draw hlingrid(0, 6, 1, 0.8cm,
Aditya Mahajan wrote:
Notice the first line of \ascii, and compare that with the definition of
\doifelse. The command \!!stringa inside the definition of \doifelse gets
expanded too soon. Is there any way to get this work, other than doing the
comparison outside the MP code.
Not with
Taco Hoekwater wrote:
Aditya Mahajan wrote:
Notice the first line of \ascii, and compare that with the definition of
\doifelse. The command \!!stringa inside the definition of \doifelse gets
expanded too soon. Is there any way to get this work, other than doing the
comparison outside the MP
On Tue, 18 Nov 2008, Hans Hagen wrote:
Taco Hoekwater wrote:
Aditya Mahajan wrote:
Notice the first line of \ascii, and compare that with the definition of
\doifelse. The command \!!stringa inside the definition of \doifelse gets
expanded too soon. Is there any way to get this work, other
Hi,
\doifelse does not work inside any MP environment. Something really
strange happens if you try to use it. \loggingall tells me what exactly is
happening, but I do not know enough low-level TeX to understand why this
is happening.
Conside this test file
%--
there are some of the most competent people I
know on the topic.
I will start a course on graphic communication. The students are
ground-zero programmers, all on mac, so I would like to use Nodebox
(http://nodebox.net/).
(Unluckily no time/space to introduce ConTeXt).
I will focus on data visualization
:07 -0700, Andrea Valle [EMAIL PROTECTED] wrote:
Hi to all and sorry for the OT,
but here on the list there are some of the most competent people I
know on the topic.
I will start a course on graphic communication. The students are
ground-zero programmers, all on mac, so I would like to use
On Thu, Feb 21, 2008 at 5:00 AM, Andrea Valle [EMAIL PROTECTED] wrote:
Hi to all and sorry for the OT,
but here on the list there are some of the most competent people I know on
the topic.
I will start a course on graphic communication. The students are ground-zero
programmers, all on mac
You mean this, I guess:
http://bloggingbits.com/54-typography-resources-every-designer-should-
bookmark/
Thanks!
-a-
On 21 Feb 2008, at 17:22, Jeff Smith wrote:
Great links and tips there, but last week I also found this. It's
called 54 Typography Resources Every Designer Should Bookmark.
1 - 100 of 122 matches
Mail list logo