nt to have.
Keep in mind this:
- SVG rendering in metapost started as an experiment and it is still
under development, even if you can already do some very interesting
things with it
- inkscape SVG is different from standard SVG, so the first thing you
can try is saving as plain SVG
On Mon, 16 Mar 2020, Gerben Wierda wrote:
This worked when I was just doing METAPOST. Now, I am using my lua code to
produce the METAPOST code that produces the pictures. And the picture itself is
put in a file for METAPOST as follows:
File test4-mplib-run-001.mp:
% begin graphic: n=0
This worked when I was just doing METAPOST. Now, I am using my lua code to
produce the METAPOST code that produces the pictures. And the picture itself is
put in a file for METAPOST as follows:
File test4-mplib-run-001.mp:
% begin graphic: n=0
; beginfig(1) ; defaultfont:="name:dejavu
Maybe a nice little explanation (educational with good examples) of ‘how to use
pass by reference’ and ‘building and using complex data structures’ would be
useful for people. Say, some ‘patterns’.
G
> On 16 Mar 2020, at 10:38, Hans Hagen wrote:
>
> that said, after muy share of mp
] := 5;
> enddef;
> numeric foo[];
> foo[1] = 6;
> Foo(1,foo);
This was initially complete gobbledegook to me. But I now think that after the
last statement foo[1] equals 5. Very weird/counterintuitive that y[a] := 5
works here without the use of scantokens. The first one i
s, of course.
Main point: Metapost is not an easy language to grasp. If you want to
really understand how it works, you should study the Metafont book by DEK. > As you can clearly see, even experienced users are likely to make
mistakes.
it's the mixture of delayed parsing and expansion and
On 3/16/2020 10:16 AM, Gerben Wierda wrote:
I have an mtxrun on a .tex file that has problems I need to debug.
The .tex file handles well, but whenMETAPOST has a go, it crashes. But
after the run, I cannot inspect what source was fed to METAPOST. Can I
inspect that (outside of what the log
text y) =
scantokens(y&":=5”);
enddef;
Foo("x");
This would work, but that is weird. This also works, and that is why
I had the erroneous memory that it would work always:
vardef Foo(expr a)(text y) =
y[a] := 5;
enddef;
numeric foo[];
foo[1] = 6;
Foo(1,f
I have an mtxrun on a .tex file that has problems I need to debug.
The .tex file handles well, but whenMETAPOST has a go, it crashes. But after
the run, I cannot inspect what source was fed to METAPOST. Can I inspect that
(outside of what the log tells me)?
In this case, I know METAPOST is fed
> On 16 Mar 2020, at 09:53, Gerben Wierda wrote:
>
> Hola! So, the arguments passed to macros are by reference and not by value? I
> could have known of course, they are simple expansions, but I’d like to be
> sure. IfI assign to a variable inside a vardef macro and that variable is not
>
annot access the components of the picture anymore with pathpart.
>>
>> I found metapost vardef returning multiple values on StackExchange but that
>> is about returning multiple values of the same numeric type. Is it possible
>> to have vardef return a set of (picture, p
Move the fills to within the image(), and build it up in
stacking order.
> On 14 Mar 2020, at 16:29, Gerben Wierda wrote:
>
> Code:
>
> vardef Foo(expr w, h, lh) =
>save pth; path pth;
>save pthtwo; path pthtwo;
>save pththree; path pththree;
>save pic; picture pic;
>pth
t.
>
> I found metapost vardef returning multiple values on StackExchange but that
> is about returning multiple values of the same numeric type. Is it possible
> to have vardef return a set of (picture, path) or (picture, picture) in some
> way? If not, I need to make two vard
On 3/15/20 4:54 PM, Gerben Wierda wrote:
> Subject line says it all…
Hi Gerben,
this should work:
\definefontfamily[mainface][rm][Optima]
%~ \definefontfamily[mainface][rm][URW Classico]
\setupbodyfont[mainface]
\starttext
This is Optima.
\stoptext
I need the commented
Subject line says it all…
Thanks in advance,
G
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context digest..."
>
>
> Today's Topics:
>
>1. Source Code with Bolded Keywords (Yves Cloutier)
>2. Re: Source Code with Bolded Keywords (Wolfgang Schuster)
>3. Quizz (Fabrice Couvreur)
>4. Re: Quizz (Henning Hraban Ramm)
>5. METAPOST vardef returni
I would like a vardef macro to return the pair of a picture and a bounding box.
I don't want to use the setbound operator, because as soon as I do that, I
cannot access the components of the picture anymore with pathpart.
I found metapost vardef returning multiple values
<ht
Code:vardef Foo(expr w, h, lh) = save pth; path pth; save pthtwo; path pthtwo; save pththree; path pththree; save pic; picture pic; pth = fullsquare xysized (w, h); pthtwo = fullsquare xysized (2*lh, lh) shifted (-w/2, 2.5*lh); pththree = fullsquare xysized (2*lh, lh) shifted (-w/2,
mment the bold line (first comment) a mtxrun fails. Whatever
> I try, a single save statement, etc., I fail in getting a second local
> variable. The METAPOST manual is no help.
>
> The error shown is:
>
> metapost log> ! Extra tokens will be flushed.
> metapost log
here
);
setbounds pic to pth;
pic
enddef ;
As soon as I uncomment the bold line (first comment) a mtxrun fails. Whatever I
try, a single save statement, etc., I fail in getting a second local variable.
The METAPOST manual is no help.
The error shown is:
metapost log> ! Ex
> On 13 Mar 2020, at 14:59, Hans Hagen wrote:
>
> On 3/13/2020 2:33 PM, Aditya Mahajan wrote:
>> On Fri, 13 Mar 2020, Taco Hoekwater wrote:
>>> Hi,
>>>
>>>
>>>
On 13 Mar 2020, at 12:53, Gerben Wierda wrote:
Suppose I have this code:
Can I reuse that varied
On 3/13/2020 2:33 PM, Aditya Mahajan wrote:
On Fri, 13 Mar 2020, Taco Hoekwater wrote:
Hi,
On 13 Mar 2020, at 12:53, Gerben Wierda wrote:
Suppose I have this code:
Can I reuse that varied across follow-up MPPages?
Sure, put the vardef inside \startMPinclusions:
or
Thank you. And if I want these in a separate file, what is the correct way to
include them?
> On 13 Mar 2020, at 13:24, Taco Hoekwater wrote:
>
> Hi,
>
>
>
>> On 13 Mar 2020, at 12:53, Gerben Wierda wrote:
>>
>> Suppose I have this code:
>>
>>
>> Can I reuse that varied across follow-up
On Fri, 13 Mar 2020, Taco Hoekwater wrote:
Hi,
On 13 Mar 2020, at 12:53, Gerben Wierda wrote:
Suppose I have this code:
Can I reuse that varied across follow-up MPPages?
Sure, put the vardef inside \startMPinclusions:
or \startMPdefinitions ... \stopMPdefinitions (don't remember
Hi,
> On 13 Mar 2020, at 12:53, Gerben Wierda wrote:
>
> Suppose I have this code:
>
>
> Can I reuse that varied across follow-up MPPages?
Sure, put the vardef inside \startMPinclusions:
\startMPinclusions
vardef MyShape(expr w, h) =
...
enddef ;
\stopMPinclusions
\startMPpage
picture
Suppose I have this code:
\startMPpage
vardef MyShape(expr w, h) =
save pth; path pth ;
save pic; picture pic;
pth = fullsquare xysized (w, h);
pic := image (
draw pth;
% all kind of stuff here
);
setbounds pic to pth;
pic
enddef ;
picture s ; s :=
Hi,
No idea ?
Thanks
Fabrice
Le sam. 29 févr. 2020 à 11:01, Fabrice Couvreur
a écrit :
> Hi,
> Sorry to come back with my match problem. In fact, I do not understand
> why a rotation of 90 influences the degraded color of the ends of the
> matches.
> Thank you.
> Fabrice
>
> \starttext
>
he Installer]
# >
# >+ Additional fonts
# >+ ConTeXt etc.
# >+ LuaTeX
# >+ MetaPost and Metafont
#
# probably not as we have mplib buil tin
#
# >+ Recommended Fonts
# >+ TeXWorks
#
# probably not unless you use it
#
# >+ Auxillary programmes for W.
#
# mkiv ... i gu
On Sat, 29 Feb 2020 12:10:13 +0100
Gerben Wierda wrote:
> Hello community,
>
> I have been (unsuccessfully) hunting for up-to-date tutorials/documentation
> on ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in
> 2011. documentation that is from 2013, o
Hello community,
I have been (unsuccessfully) hunting for up-to-date tutorials/documentation on
ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in 2011.
documentation that is from 2013, or on Pragme-ADE a show-man.pdf PDF with an
overview of documentation that doesn’t open
Hi,
Sorry to come back with my match problem. In fact, I do not understand why
a rotation of 90 influences the degraded color of the ends of the matches.
Thank you.
Fabrice
\starttext
\startMPcode
def match (expr alpha, pos) =
numeric l;
l = 4.6cm;
picture pic;
pic = image (
On 2/28/2020 2:52 PM, Christoph Hintermüller wrote:
Second am i right that i have to use also startmode and stopmode to
include svg image instead of metapost image in epub or is there some
other trick to make metapost image in epub. What would be the keywords
to use on wiki search
should be D := instead of D : =
On Tue, Feb 25, 2020 at 2:35 PM Jan-Erik Hägglöf
wrote:
> The following code gives an error, my goal is to draw 4 different arrows
> but only three functions successfully.
>
> The error log shows
>
> metapost> initializing number mod
On 2/25/2020 6:34 PM, Jan-Erik Hägglöf wrote:
The following code gives an error, my goal is to draw 4 different arrows
but only three functions successfully.
The error log shows
metapost > initializing number mode 'scaled'
metapost log >
metapost log > loading metafun,
successfully.
>
> The error log shows
>
> metapost> initializing number mode 'scaled'
> metapost log>
> metapost log> loading metafun, including plain.mp version 1.004 for
> metafun iv and xl
> metapost log >
> metapost log> >&
The following code gives an error, my goal is to draw 4 different arrows but
only three functions successfully.
The error log shows
metapost> initializing number mode 'scaled'
metapost log>
metapost log> loading metafun, including plain.mp version 1.004 for metafun
On 2/20/2020 10:29 AM, Jan U. Hasecke wrote:
Am 18.02.20 um 19:24 schrieb Jan U. Hasecke:
Am 18.02.20 um 19:17 schrieb mf:
Il 18/02/20 19:07, Jan U. Hasecke ha scritto:
Am 18.02.20 um 14:53 schrieb Hans Hagen:
\setupcolors[rgb=no]
\startMPcode
draw lmt_svg [ filename = "sample.svg" ]
Hi Hans
On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote:
> On 2/20/2020 10:15 AM, Christoph Hintermüller wrote:
>
> You can append a palcement suffix, like:
>
>textext.dflt
>
> you can try:
>
>lft rt bot top ulft urt llft lrt d dflt drt origin raw
>
Thanks again.
textext.origin
Hi Hans
On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote:
> On 2/20/2020 10:15 AM, Christoph Hintermüller wrote:
> >
> You can append a palcement suffix, like:
>
>textext.dflt
>
> you can try:
>
>lft rt bot top ulft urt llft lrt d dflt drt origin raw
>
Thank you very much, that
Am 18.02.20 um 19:24 schrieb Jan U. Hasecke:
> Am 18.02.20 um 19:17 schrieb mf:
>> Il 18/02/20 19:07, Jan U. Hasecke ha scritto:
>>> Am 18.02.20 um 14:53 schrieb Hans Hagen:
>>>
\setupcolors[rgb=no]
\startMPcode
draw lmt_svg [ filename = "sample.svg" ] ;
\stopMPcode
>>> I
On 2/20/2020 10:15 AM, Christoph Hintermüller wrote:
Hi
I have the following problem. I convert a eps file using pstoedit into
meta post file. When running this file through mptopdf the resulting
pdf image is as expected. When i include, using the input command, the
file within a startMPcode
Hi
I have the following problem. I convert a eps file using pstoedit into
meta post file. When running this file through mptopdf the resulting
pdf image is as expected. When i include, using the input command, the
file within a startMPcode endMPcode or startMPpage stopMPpage after
replacing
Am 18.02.20 um 19:17 schrieb mf:
> Il 18/02/20 19:07, Jan U. Hasecke ha scritto:
>> Am 18.02.20 um 14:53 schrieb Hans Hagen:
>>
>>> \setupcolors[rgb=no]
>>> \startMPcode
>>> draw lmt_svg [ filename = "sample.svg" ] ;
>>> \stopMPcode
>> I get this error.
>>
>> ! Not implemented: (unknown
Il 18/02/20 19:07, Jan U. Hasecke ha scritto:
Am 18.02.20 um 14:53 schrieb Hans Hagen:
\setupcolors[rgb=no]
\startMPcode
draw lmt_svg [ filename = "sample.svg" ] ;
\stopMPcode
I get this error.
! Not implemented: (unknown numeric)=(string).
]
<*> ... ; p := lmt_svg [ filename =
Am 18.02.20 um 14:53 schrieb Hans Hagen:
>
> \setupcolors[rgb=no]
> \startMPcode
> draw lmt_svg [ filename = "sample.svg" ] ;
> \stopMPcode
I get this error.
! Not implemented: (unknown numeric)=(string).
]
<*> ... ; p := lmt_svg [ filename = "sample.svg" ]
juh
or possible to use with ConTeXt MkIV (on W.).
(The aim is not to install unusable stuff.)
Legend:
%=I guess no +=I guess yes ?=I am not sure
[translated from the Czech version of the Installer]
+ Additional fonts
+ ConTeXt etc.
+ LuaTeX
+ MetaPost and Metafont
probably not as we have mplib buil tin
p ;
draw p shifted ( bbwidth(p) + 5mm, 0) ;
\stopMPcode
\stoptext
\setupcolors[rgb=no]
\startMPcode
draw lmt_svg [ filename = "sample.svg" ] ;
\stopMPcode
but recolor gives an error:
metapost log > >> picture
metapost log > ! Wrong picture color model: redpart of gre
.).
(The aim is not to install unusable stuff.)
Legend:
%=I guess no +=I guess yes ?=I am not sure
[translated from the Czech version of the Installer]
+ Additional fonts
+ ConTeXt etc.
+ LuaTeX
+ MetaPost and Metafont
+ Recommended Fonts
+ TeXWorks
+ Auxillary programmes for W.
% Additional
) + 5mm, 0) ;
\stopMPcode
\stoptext
but recolor gives an error:
metapost log> >> picture
metapost log> ! Wrong picture color model: redpart of grey object.
metapost log> _f_:=(redpart(EXPR0),
metapost log>
greenpart(EXPR0),bluepart(EXPR0));if.bou...
metapost log
t to CMYK with the above cited profile chain?
Mmm, no. Acrobat Pro can do proper profile conversions of graphics. Don’t know
another tool.
> Or shall I tell the designer: These are the values I need as CMYK, just
> do it.
Exactly ;) Unfortunately they can’t really do that with Inkscape.
to CMYK with the above cited profile chain?
Or shall I tell the designer: These are the values I need as CMYK, just
do it.
> Colors that you define in TeX or Metapost are a different problem. I
> *think* they should use the output intent as their profile. But I
> don’t know if the intent option
system that will work
world-wide, even if HKS is still usual in Germany and Toyo in Japan.)
It could also work to use spot colors and have the printshop convert them to
“their” CMYK profile.
Colors that you define in TeX or Metapost are a different problem. I *think*
they should use the output
On 2/15/2020 12:25 PM, Fabrice Couvreur wrote:
Hi Henri,
Why does the blue path not rotate 90 with the draw command but rotate
with the fill command?
compare
draw origin -- (0,0.2cm) -- (4cm,0.2cm) -- (4cm,0) --
(4.1cm,-0.05cm) -- (0.1cm,-0.05cm) -- cycle rotated alpha withcolor red;
On 15-02-2020 12:25, Fabrice Couvreur wrote:
> Hi Henri,
> Why does the blue path not rotate 90 with the draw command but rotate
> with the fill command?
>
Why not draw the match as a picture first, then rotate and shift that
picture?
Also, if you use a local scale unit, it will be easier to
en. 14 févr. 2020 à 16:43, Fabrice L a
> écrit :
>
>> Hi,
>>
>> Le 13 févr. 2020 à 16:45, Fabrice Couvreur
>> a écrit :
>>
>>
>> How to have the color defined by {yellow!60!black} with Metapost
it :
> Hi,
>
> Le 13 févr. 2020 à 16:45, Fabrice Couvreur
> a écrit :
>
>
> How to have the color defined by {yellow!60!black} with Metapost ?
>
>
> color MyColor ; MyColor := .6[yellow,black] ;
>
> See metafun manual, section 1.13.
>
Hi,
> Le 13 févr. 2020 à 16:45, Fabrice Couvreur a
> écrit :
> How to have the color defined by {yellow!60!black} with Metapost ?
color MyColor ; MyColor := .6[yellow,black] ;
See metafun manual, section 1.13.
> Thank you.
> Fabrice
Fabri
i Henri,
Thank you for your answer. The idea is to make the graph as an attachment. I
converted to Metapost but the road is still long!
The code is from percusse on StackExchange. As you can see, there is a
problem with the ellipse. How do I fix this ?
Thank you
Fabrice
\usemodule[tikz
On 2/14/20 10:45 AM, Fabrice Couvreur wrote:
> Hi,
> How to have the color defined by {yellow!60!black} with Metapost ?
\usemodule[tikz]
\starttext
\startMPcode
fill fullsquare scaled 1cm withcolor (.6yellow + black) ;
\stopMPcode
\starttikzpicture
\fill[yellow!60!black] (0,0) rectangl
Hi,
How to have the color defined by {yellow!60!black} with Metapost ?
Thank you.
Fabrice
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http
Hi Mikael,
Thanks.
Fabrice
Le mar. 11 févr. 2020 à 14:01, Mikael P. Sundqvist a
écrit :
> On Tue, Feb 11, 2020 at 1:22 PM Fabrice Couvreur <
> fabrice1.couvr...@gmail.com> wrote:
>
>> Hi Hans,
>> I tried this but without success :
>>
>> \startMPcode
>> suite{1,0};
>> suite{2,1};
>>
On Tue, Feb 11, 2020 at 1:22 PM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:
> Hi Hans,
> I tried this but without success :
>
> \startMPcode
> suite{1,0};
> suite{2,1};
> \stopMPcode
>
> Fabrice
>
> Le mar. 11 févr. 2020 à 13:08, Hans Hagen a écrit :
>
>> On 2/11/2020
Hi Hans,
I tried this but without success :
\startMPcode
suite{1,0};
suite{2,1};
\stopMPcode
Fabrice
Le mar. 11 févr. 2020 à 13:08, Hans Hagen a écrit :
> On 2/11/2020 11:50 AM, Fabrice Couvreur wrote:
> > Hi,
> > I have some problems with the following macro :
> >
> > tex error
On 2/11/2020 11:50 AM, Fabrice Couvreur wrote:
Hi,
I have some problems with the following macro :
tex error > mp error on line 23 in file /home/viserion/macro.tex:
! Missing argument to suite.
{
<*> suite{
1,0}; suite(2,1); ;
That macro has more parameters than you thought.
I'll
Hi,
I have some problems with the following macro :
tex error > mp error on line 23 in file /home/viserion/macro.tex:
! Missing argument to suite.
{
<*> suite{
1,0}; suite(2,1); ;
That macro has more parameters than you thought.
I'll continue by pretending that each missing argument
is
Hans was so kind to help me with a setup for some generated output. I am trying
to understand every line of his example so I can expand on his exmaple to make
it fully functional. In his example there is:
context('draw
What error are you getting?
(perhaps you need "save carre,p,a,b,c,d,N,P,M ;")
A perpendicular line is also the line "rotated 90" (about the intersection
point).
Alan
On Sun, 26 Jan 2020 00:09:38 +0100
Fabrice Couvreur wrote:
> Hi,
> The point M is such that the line (CM) is perpendicular to
Hi,
The point M is such that the line (CM) is perpendicular to the line (NP).
I do not understand the error of this code.
Thank you
Fabrice
\usecolors[xwi]
\starttext
\startMPcode
path carre, p;
carre = unitsquare scaled 138;
pair a, b, c, d, N, P, M;
a = point 0 of carre;
b = point 1
= true,
width= 15,
height = 2.1,
depth= 0,
] ;
lmt_registerglyph [ category = "symbols", unicode = "0x2015", code
= "QuotationDash ;" ] ;
\stopMPcalculation
\definefontfeature[default][default][metapost=symbols]
% \showg
n-example.tex
Here one sees that the function « document.myfunction » is well defined in Lua
and is known in ConTeXt, but I cannot use it in a Metapost code: how can one do
that?
you confuse lua and mp functions
\startluacode
function MP.myfunction(n,x)
return math.sin(n*x)
« document.myfunction » is well defined in Lua
and is known in ConTeXt, but I cannot use it in a Metapost code: how can one do
that?
Thanks in advance for any help.
Best regards: Otared
___
If your question is of i
-list daemon will let through a PDF, but I am
enclosing the current (almost final) version of the table place card
(with my daughter's name).
The figure to the left is an Apollonius Gasket of tangential circles
made with MetaPost signifying all the family connections that each
partner brings
This is a dirty hack to change the color of the crop marks and the page
number at the corner of a page when \setuplayout[marking=on].
Edit the file:
tex/texmf-context/metapost/context/base/mpiv/mp-crop.mpiv
in the distribution, changing two lines:
- (here i'm reproducing only the last
ound for the page.
> I've seen there's something about that in the mailing list history. I'll look
> into that.
>
> BTW, the MP file producing the marks is
>
> metapost/context/base/mpiv/mp-crop.mpiv
Sorry for mixing up marks and markings.
> Am 2019-12-19 um 19:08 schrieb Han
for the page.
I've seen there's something about that in the mailing list history. I'll
look into that.
BTW, the MP file producing the marks is
metapost/context/base/mpiv/mp-crop.mpiv
Massi
___
If your question
ed after mtxrun.
> >
> > "context —make" is running, but no format.
> >
> > I checked folders after the installation.
> > Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules,
> > texmf-project are empty.
> > texmf folder contains {fonts
texmf-cache, texmf-fonts, texmf-local, texmf-modules,
> texmf-project are empty.
> texmf folder contains {fonts,metapost, tex,web2c}
> texmf-context folder contains {colors,context,doc}
> However, I couldn’t find base files, script files, etc.
> Is it normal? Is it rela
run.
>
> "context —make" is running, but no format.
>
> I checked folders after the installation.
> Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, texmf-project
> are empty.
> texmf folder contains {fonts,metapost, tex,web2c}
> texmf-context folder con
stallation.
Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, texmf-project
are empty.
texmf folder contains {fonts,metapost, tex,web2c}
texmf-context folder contains {colors,context,doc}
However, I couldn’t find base files, script files, etc.
Is it normal? Is it related with Catalina?
I ha
exmf-local, texmf-modules, texmf-project
are empty.
texmf folder contains {fonts,metapost, tex,web2c}
texmf-context folder contains {colors,context,doc}
However, I couldn’t find base files, script files, etc.
Is it normal? Is it related with Catalina?
Have a nice weekend.
Best regards,
in the timeline. Using
MetaPost, the date for the timeline is read directly from the
document, then plotted relative to the \overlaywidth. Changing the
date in the Markdown document winds up repositioning the timeline dot
automagically.
https://impacts.to/
The book is going to be released under a CC
Fabrice Couvreur schrieb am 01.12.2019 um 21:56:
Hi Hans,
I updated lmtx, but your code does not compile except that the output
is a pdf file where it is written ERROR.
Can you clear the cache.
Wolfgang
___
If
On 12/1/2019 11:32 AM, Fabrice Couvreur wrote:
Hello
Thank you for your suggestion. However, it works with context and not
with lmtx.
Fabrice
\starttext
\startMPcode
defaultfont := "texgyrepagella-regular*default" ;
defaultscale :=0.8;
color brown;
brown = (0.128,0.00,0.00);
Hello
Thank you for your suggestion. However, it works with context and not with
lmtx.
Fabrice
\starttext
\startMPcode
defaultfont := "texgyrepagella-regular*default" ;
defaultscale :=0.8;
color brown;
brown = (0.128,0.00,0.00);
path twos, threes, sixes;
twos = fullcircle
> \
Dear Fabrice,
I got color and transparency using the following command in LMTX(metafun).
fill p withcolor yellow withtransparency(1, .75);
I hope that it helps.
Best regards,
Dalyoung___
If your question is
Hello,
I have a little trouble with the management of transparency : the colors
are not respected.
Thank you.
Fabrice
\starttext
\startMPcode
defaultfont := "texgyrepagella-regular*default" ;
defaultscale :=0.8;
color brown;
brown = (0.165,0.42,0.42);
path twos, threes;
twos =
[svgtest]
\stopTEXpage
\startTEXpage
\includesvgbuffer[svgtest][offset=2bp]
\stopTEXpage
or in metapost disguise:
\startMPpage
vardef svg expr c = lmt_svg [ code = c ] enddef ;
draw svg "
" ;
\stopMPpage
It is not a replacement for metapost (which is more
d in backend, 0 common vectors, 1 common hashes, load
time 0.321 seconds
mkiv lua stats > metapost: 0.005 seconds, loading: 0.122, execution:
0.004, n: 3, average: 0.043, instances: 1, luacalls: 223, memory: 3.265
M
mkiv lua stats > graphics processing time: 0.005 seconds including tex,
1 p
s, load
time 0.321 seconds
mkiv lua stats > metapost: 0.005 seconds, loading: 0.122, execution:
0.004, n: 3, average: 0.043, instances: 1, luacalls: 223, memory: 3.265
M
mkiv lua stats > graphics processing time: 0.005 seconds including tex,
1 processed images, 1 unique asked, 1 bad names
mkiv
> language 'en' is active
open source > level 2, order 3, name
'D://Lukas/Jobs/_Px/Present/Px-2019/_/t.mkiv'
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern-designsize rm 12pt' is loaded
metapost > initializing i
'context-test', input
'./context-test', result 'context-test'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
system > synctex functionality is enabled, expect 5-10 pct
runtime overhead!
open source > level 2, order 3, name './contex
n modern fonts are not preloaded
languages > language 'en' is active
system > synctex functionality is enabled, expect 5-10 pct runtime
overhead!
open source > level 2, order 3, name './context-test.tex'
fonts > preloading latin modern fonts (second stage)
fo
color[KindergartenEqual] [darkgreen]
\definecolor[KindergartenPlus] [darkred]
\definecolor[KindergartenMinus] [darkred]
\definecolor[KindergartenTimes] [darkblue]
\definecolor[KindergartenDivided][darkblue]
\definefontfeature
[mathextra]
[metapost=kindergarten]
\setupbodyfont[dejavu]
\
gt; > I am trying to get the following with the 1 elevated and 2 above the =
> > character. The square brackets and all in between I would like italic
> > and OPT below both terms.
> >
> > *\startparagraph [.1..] [..,..2=..,..] ..**.\stopparagraph*
> >
> &g
anybody be able to help. Would Metapost be needed here?
When you look at the command definition in setup-en.pdf you can two
lines below the command which refer to the two arguments.
1 2
\startparagraph [...] [..,..=..,..] ... \stopparagraph
OPT
Dear list members,
I am trying to get the following with the 1 elevated and 2 above the =
character. The square brackets and all in between I would like italic and
OPT below both terms.
*\startparagraph [.1..] [..,..2=..,..] ..**.\stopparagraph*
Would anybody be able to help. Would Metapost
Fabrice Couvreur schrieb am 23.09.2019 um 23:31:
Hi Wolfgang,
As I understand it, the following instructions have no effect on the
figures
defaultfont := "texgyrepagella-regular*default" ;
defaultscale :=0.8 ;
You change the font because you typeset your labels in math mode.
Fabrice Couvreur schrieb am 23.09.2019 um 16:12:
Hello,
I can not change the font size of my figures in the table.
\startxcell[foregroundstyle={\switchtobodyfont[...]}]
or
\setupxtable[smallbodyfont][foregroundstyle={\switchtobodyfont[...]}]
\startxcell[smallbodyfont]
Wolfgang
On 9/23/19 4:12 PM, Fabrice Couvreur wrote:
Hello,
I can not change the font size of my figures in the table.
Thank you
Fabrice
Does changing
\usecolors [xwi]
to
\usecolors [ema]
help?
All best
Thomas
___
Hello,
I can not change the font size of my figures in the table.
Thank you
Fabrice
\usecolors[xwi]
\startbuffer[myfigure]
\dontleavehmode
\startMPcode
defaultfont := "texgyrepagella-regular*default" ;
defaultscale :=0.8 ;
801 - 900 of 4557 matches
Mail list logo