[NTG-context] Re: Redefined ~ conserves \protected status although \show~ does not say so

2025-08-09 Thread Hans Hagen via ntg-context
I asked if that was considered a stable feature of context. amcodes were introduced as replacement for the special math class (active) when we redid that part of the math engine so it has been there for quite a while now and indeed, unprotected control sequences are not implemented as in etex

[NTG-context] Re: Redefined ~ conserves \protected status although \show~ does not say so

2025-08-08 Thread user691586 via ntg-context
eature of context. > > and indeed, unprotected control sequences are not implemented as in etex > (or luatex or ...) but are real commands, so no magic macro body > prefixing (idem for \tolerant and some combinations) > > from the various documentation you can deduce

[NTG-context] Re: Redefined ~ conserves \protected status although \show~ does not say so

2025-08-08 Thread Hans Hagen via ntg-context
but i assume you checked that already and indeed, unprotected control sequences are not implemented as in etex (or luatex or ...) but are real commands, so no magic macro body prefixing (idem for \tolerant and some combinations) from the various documentation you can deduce that luametatex has a more

[NTG-context] Re: How to make this Metapost diagram adjust to the width of text?

2024-12-09 Thread Gavin via ntg-context
to Gala > > % Banana sub-branches > draw z3 -- (3u, -0.6u) -- z6; % Right angle to Cavendish > draw z3 -- (3u, -0.6u) -- z7; % Right angle to Plantain > > % Final horizontal branches > draw z4 -- z8; % Fuji > draw z5 -- z9; % Gala > draw z6 -- z10; % Cavendish > dr

[NTG-context] How to make this Metapost diagram adjust to the width of text?

2024-12-08 Thread Joel via ntg-context
Right angle to Gala % Banana sub-branches draw z3 -- (3u, -0.6u) -- z6; % Right angle to Cavendish draw z3 -- (3u, -0.6u) -- z7; % Right angle to Plantain % Final horizontal branches draw z4 -- z8; % Fuji draw z5 -- z9; % Gala draw z6 -- z10; % Cavendish draw z7 -- z11; % Plantain % Add label

[NTG-context] Re: Transition from ConTeXt mark II to mark IV

2024-12-06 Thread Michal Kvasnička
s with texexec --pdf --nomprun mic-slide01.tex; I tried context --pdf --nomprun mic-slide01.tex. I included the modules and one slide (not the figures included). Figures: I have my figures in .mp files where I include my style in figuremac.mp and use verbatimtex ... etex. Therefore, I compile it with texe

[NTG-context] no escaping with scite highlighting any more?

2024-08-11 Thread Henning Hraban Ramm
Hi, this used to work: """ \usemodule[scite] % the setup doesn’t change the behavior, I think it used to. \setuptyping[TEX][ option=tex, % scite sets "cld" ] \starttext \startTEX[escape=yes] \definemeasure[PageWidth][165mm] /BTEX\hfill{\ss Dimensions}/ETEX \define

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Pablo Rodriguez via ntg-context
> > Original TeX didn't provide a mechanism to create protected commands > and creators of macro packages had to create their own mechanism for > this, the ConTeXt solution was \unexpanded. With the etex extensions > the \protected primitive was added and \unexpanded uses the n

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Wolfgang Schuster
and \unexpanded is a copy) but this wasn't always the case. Original TeX didn't provide a mechanism to create protected commands and creators of macro packages had to create their own mechanism for this, the ConTeXt solution was \unexpanded. With the etex extensions the \protected primi

[NTG-context] Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Keith McKay
mples that can apply gradient colors to metapost paths. how i can apply this cool feature to a piece of text? i tried the code below but it does not produce any result. \definecolor[Gleft] [h=9f9393] \definecolor[Gright] [h=ff1aa4] \startMPpage picture Mytext; Mytext := btex hello etex; draw

[NTG-context] how to apply gradient color to a piece of text?

2024-04-07 Thread seyal . zavira
=ff1aa4] \startMPpage picture Mytext; Mytext := btex hello etex; draw lmt_shade [ picture="Mytext", direction = "right", domain= { 0, 2 }, colors= { "headerGleft", "headerGright" }, ] ; \stopMPpage

[NTG-context] Re: typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
}} \setuptyping[TEX][   option=tex,% scite sets cld   escape=yes, ] \starttext \startTEX \starttext/BTEX\SAY{Text starts here}/ETEX \input tufte \stoptext/BTEX\SAY{Text ends here}/ETEX \stopTEX \stoptext I tried to load the module only in the section where I need it, that lead to strange errors in

[NTG-context] typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
=yes, ] \starttext \startTEX \starttext/BTEX\SAY{Text starts here}/ETEX \input tufte \stoptext/BTEX\SAY{Text ends here}/ETEX \stopTEX \stoptext ___ If your question is of interest to others as well, please add an

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Hans Hagen
ing is abit special in te xdue to the fact thet some numbers en dup in registers and others as token list (string). I have considered changing that but it would also break some 'testing for tex version' so for now we have to accept this mix of

[NTG-context] Re: Strange behavior with anglestriped()

2023-11-21 Thread Fabrice Couvreur
label.llft("A", p) ; >>label.lrt("D", p) ; >>label.ulft("B", p) ; >>label.urt("C", p) ; >>label.lft("M", z[2]) ; >>label.ulft("N", z[1]) ; >>

[NTG-context] Re: Strange behavior with anglestriped()

2023-11-20 Thread Fabrice L
>>>draw p ; >>> >>>label.llft("A", p) ; >>>label.lrt("D", p) ; >>>label.ulft("B", p) ; >>>label.urt("C", p) ; >>>

[NTG-context] Re: Strange behavior with anglestriped()

2023-11-20 Thread Fabrice Couvreur
;, p) ; >label.urt("C", p) ; >label.lft("M", z[2]) ; >label.ulft("N", z[1]) ; >label.bot("P", z[0]) ; >label.top("J", ulcorner r) ; >label.rt("I", lrcorner

[NTG-context] Re: Strange behavior with anglestriped()

2023-11-19 Thread Otared Kavian
     label.lrt("D", p) ;           label.ulft("B", p) ;           label.urt("C", p) ;           label.lft("M", z[2]) ;           label.ulft("N", z[1]) ;           label.bot("P", z[0]) ;           label.top("J", ulcorner r) ;           label.rt(&qu

[NTG-context] Strange behavior with anglestriped()

2023-11-19 Thread Fabrice Couvreur
lft("M", z[2]) ; label.ulft("N", z[1]) ; label.bot("P", z[0]) ; label.top("J", ulcorner r) ; label.rt("I", lrcorner r) ; label.bot(btex $x$ etex,(llcorner p+z[

Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-18 Thread Hans Hagen via ntg-context
support behind it. I'm not going to delve into what exactly caused its demise or if it was simply the after effect of other projects that contributed to it. It's irrelevant. Hm, its time span was not that short ... I first heard of omega at the eurotex meeting in arnhem where also etex

Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex

2023-04-11 Thread Carlos via ntg-context
a only holds > > > > return { > >content = { > > variables = { > > }, > > }, > > } > > > > which is useless > > and harmless (somethign old texlive) > > > so, no bueno. Not when the aim is to install a fully fu

Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex

2023-04-11 Thread Hans Hagen via ntg-context
text standalone Now let's take a peek instide and see the binaries afm2tfm etex kpsereadlink mfmtxrun.lua texluac bibtex extractbb kpsestat mf-nowin pdfetex tlmgr context fmtutil kpsewhichmft pdflatextlshell cont

Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex

2023-04-11 Thread Carlos via ntg-context
ease-texlive.txt texmf.cnf that texmfcnf.lua only holds return { content = { variables = { }, }, } which is useless so, no bueno. Not when the aim is to install a fully functional context standalone Now let's take a peek instide and see the binaries afm2tfm etex

Re: [NTG-context] LMTX incompatibility in \meaning breaks TikZ, other minor issues

2022-09-22 Thread Hans Hagen via ntg-context
s LMTX doesn't care about this macro, this should be easy to adjust. i'll add the period; btw afaikt testing for an etex version is useless because all used engines have it and there is basically only one version and there will be no follow ups Hans -

Re: [NTG-context] upload

2021-10-21 Thread Mikael Sundqvist via ntg-context
; \par > \stopTEXpage > } > > \stoptext > > it's an addendum to the widowpenalties and clubpenalties introduced by > etex but this time it's horizontal; the orphan penalties will be > inserted before spaces (aka spaceskip, xspaceskip and zerospaceski

[NTG-context] upload

2021-10-21 Thread Hans Hagen via ntg-context
3000 2000 1000\relax \updateparagraphpenalties \samplefile{tufte} \par \stopTEXpage } \stoptext it's an addendum to the widowpenalties and clubpenalties introduced by etex but this time it's horizontal; the orphan penalties will be inserted before s

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-15 Thread Hans Hagen
probably a missing file (I'll make it return a different message but still one needs to be aware of the fact that fiel reading in mp is kind of weird so it really expects a file). That said, there are some issues that you need to sort out: no btex/etex and no TEX command but textext instead

Re: [NTG-context] LMTX problem with doifmode in \setuplayout

2021-06-08 Thread Wolfgang Schuster
e are implemented and the way TeX (the engine) works when it reads arguments. and, also in mkiv \dofmode is unexpandable so cannot act as keyword (it might not crash but also doesn't work) Here is a short example which demonstrates the differences between LuaTeX (eTeX, pdfTeX etc.) and

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
all; this is currently equivalent to % TEX_HUSH = checksum:lostchar:readable:special % To suppress nothing, use TEX_HUSH = none or do not set the variable at all. TEX_HUSH = none % Allow TeX and MF to parse the first line of an input file for % the %&format construct. parse_first_line = t %

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Hans Hagen
On 4/26/2021 12:23 PM, Floris van Manen wrote: \starttext \starttyping[escape=@]  1   137  26  25 >    1  69  32  2   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32  3   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32  4   137  26  25 >    1  69  32

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
Aparently all spaces after @etex get reduced to one only. I'd expect that to happen inside @btex and @etex \starttext \starttyping[escape=@] 1 137 26 25 >1 69 32 2 @btex@bgroup@red@bf 137 @egroup@etex 26 25 >1 69 32 3 @btex@bgroup@red@bf 137 @egroup@etex

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
On 26/04/2021 10:59, Hans Hagen wrote: \starttext \starttyping[escape=/] one two three four /btex/bgroup/red five /egroup/etex six seven eight nine \stoptyping \stoptext That works indeed! Thanks. Are there restriction on what context commands can be given inside the bgroup? e.g. I tried

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Hans Hagen
rttyping[escape=/] one two three four /btex/bgroup/red five /egroup/etex six seven eight nine \stoptyping \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt |

[NTG-context] Luatex 1.13.1 announcement.

2021-04-02 Thread luigi scarso
== LuaTeX 1.13.1 2021-04-02 == Fixed an unwanted space in btex etex in metapost, introduced after a patch for troff. -- luigi

Re: [NTG-context] composing commands

2021-02-05 Thread Hans Hagen
and nilled some prefixes that we never used in context anyway), some etex enhancements brought new primitives (some make no sense in the luametex universe but one can always fake something), some auxiliary pdftex primitives never were available in lua(meta)tex because we have lua, and from omeg

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-05 Thread Hans Hagen
it old. In the meantime we got etex extensions, which adds a few more, and then pdftex ades some, as well as omega and after that of course luatex. In luametatex we dropped some, and added others, so there we currently have 770 primitives. The increase of number is partly due to the 166 extra ma

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-21 Thread Rik Kabel
\expandafter{\TeX} \blank \tex{TeX} = \detokenize{\TeX} \stoptext To make it easier to keep the command eTeX added a new command \protected which can be used before \def to achieve this (ConTeXt provides the same thing under the name \unexpanded). The following example shows how you can use

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-21 Thread Wolfgang Schuster
{\TeX} \stoptext To make it easier to keep the command eTeX added a new command \protected which can be used before \def to achieve this (ConTeXt provides the same thing under the name \unexpanded). The following example shows how you can use \protected\def to keep always the current meaning

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-19 Thread Rik Kabel
sions and one can be pretty sure that we then don't have a proper csname. This is why in luatex we have a catch for running wild csname checking. The original \ifcsname test was inherited from etex. The \protected feature also comes from etex. But \csname is a tex natural. In pdftex (and

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-19 Thread Hans Hagen
then don't have a proper csname. This is why in luatex we have a catch for running wild csname checking. The original \ifcsname test was inherited from etex. The \protected feature also comes from etex. But \csname is a tex natural. In pdftex (and luatex) a protected macro inside an \(if)c

Re: [NTG-context] \fontdimen in LuaMetaTeX

2020-08-04 Thread Hans Hagen
On 8/3/2020 7:57 PM, Marcel Fabian Krüger wrote: Hi, recent LuaMetaTeX versions no longer automatically resize the fontdimen arrays on assignments. indeed, using font dimens for other purposes than fonts is pre-etex hackery that (c|sh)ould have been abandoned decades ago Is there a way to

Re: [NTG-context] What alternative for scantokens( "btex " & texcommands & " etex")?

2020-03-30 Thread Alan Braslau
On 29/03/20 07:06, Gerben Wierda wrote: I’m trying in METAPOST to build a command to pass on to ConTeXt using btex/etex. picture p; p := scantokens( "btex " & texcommands & " etex”); btex/etex is better replaced by textext(). Nevertheless, this does not change anyth

[NTG-context] Luatex 1.12.0 announcement.

2020-03-30 Thread luigi scarso
\eTeXglue[stretch|shrink]order for querying order the etex way. Extra features runtoks tex.getmodenames() (as these can differ per engine/version) Permit nested runtoks in more complex situations of nesting (HH) More accurate and correct test for tex.[set|get]math Minor clean-up and bugs fixed

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
We should move this to the thread What alternative for scantokens( "btex " & texcommands & " etex”)? I’ve put my vardef there. The calls to this vardef are created by lua code. I need to fix two things: use a string variable to build a btex-etex construct and be a

[NTG-context] What alternative for scantokens( "btex " & texcommands & " etex")?

2020-03-29 Thread Gerben Wierda
I’m trying in METAPOST to build a command to pass on to ConTeXt using btex/etex. picture p; p := scantokens( "btex " & texcommands & " etex”); with texcommands a variable that holds a string of TeX commands doesn’t work. The METAPOST parser complains about not finding e

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
ore Bar and not “ which is the problem. Yes, I am aware that that is my problem. It is just that I do not have the luxury to decide myself what will be put in the string. It must work for any string. So, I will have to be putting that string to \type and make sure that is used as the label.

Re: [NTG-context] ntg-context Digest, Vol 189, Issue 28

2020-03-15 Thread Wolfgang Schuster
Yves Cloutier schrieb am 15.03.2020 um 16:09: Hello Wolfgang, after a few attempts that didn't work I copy-pasted the example from the wiki: \definetyping[C][option=commands] \startC #include int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC This did not work. Ho

Re: [NTG-context] ntg-context Digest, Vol 189, Issue 28

2020-03-15 Thread Yves Cloutier
Hello Wolfgang, after a few attempts that didn't work I copy-pasted the example from the wiki: \definetyping[C][option=commands]\startC #include int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX}\stopC This did not work. However following the example you provided this

Re: [NTG-context] Source Code with Bolded Keywords

2020-03-14 Thread Wolfgang Schuster
doing. \starttext \starttyping[escape=yes] This is /BTEX\bf formatted/ETEX text. \stoptyping \starttyping[escape={<<,>>}] This is <<\bf formatted>> text. \stoptyping \starttyping[escape={}] This is text. \st

Re: [NTG-context] Install Tikz in LMTX tree

2020-03-11 Thread Jorge Manuel
l people trying to run TikZ on plain TeX with the Knuth >> engine: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920368 > > hm, so you can't actually use etex goodies unless you emulate them > >>> \newcount\eTeXversion \eTeXversion = 2000 >>> \newcount\e

Re: [NTG-context] Install Tikz in LMTX tree

2020-03-10 Thread Hans Hagen
On 3/10/2020 11:32 AM, Henri Menke wrote: There are still people trying to run TikZ on plain TeX with the Knuth engine: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920368 hm, so you can't actually use etex goodies unless you emulate them \newcount\eTeXversion \eTeXversion =

Re: [NTG-context] Install Tikz in LMTX tree

2020-03-10 Thread Henri Menke
On 10/03/20, 10:01, Hans Hagen wrote: > On 3/9/2020 10:59 PM, Jorge Manuel wrote: > > > \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 > > Error: #2} > > l.11   \pgfutil@packageerror{PGF}{PGF req

Re: [NTG-context] Install Tikz in LMTX tree

2020-03-10 Thread Hans Hagen
On 3/9/2020 10:59 PM, Jorge Manuel wrote: \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2} l.11   \pgfutil@packageerror{PGF}{PGF requires etex in extended mode}{}                                                                      % This error message

[NTG-context] Install Tikz in LMTX tree

2020-03-09 Thread Jorge Manuel
close source> level 9, order 11, name 'pgfutil-common-lists.tex' close source> level 8, order 11, name 'pgfutil-common.tex' open source > level 8, order 12, name 'pgfutil-context

[NTG-context] Luatex 1.11.1 announcement

2019-10-28 Thread luigi scarso
eTeX. A new callback lua.getcodepage() for diagnostic purposes. *** DROPPED the "page_objnum_provider" callback, replaced with "page_order_index". *** See ChangeLog and the manual. -- luigi ___

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Wolfgang Schuster
label.llft(btex \m{O} etex,origin) ; Wolfgang ___ 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 webpa

[NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Fabrice Couvreur
(90+alpha)} withcolor \MPcolor{darkred} ; drawdot origin withpen pencircle scaled 2pt ; drawdot 0.7cm*dir 0 withpen pencircle scaled 2pt ; label.llft(btex \m{O} etex,origin) ; label.rt(btex \m{A} etex,0

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Alan Braslau
On Sun, 11 Aug 2019 11:12:55 -0700 Henri Menke wrote: > Thank you for the quick repsonse. This looks good to me. However, > could you tell me a way to get the correct baseline with textext? When > I use > > \startMPpage > draw btex dummy etex shifted (0,0); >

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
On 8/11/19 10:51 AM, Hans Hagen wrote: > I'll do this (lmtx): > > metapost> use 'textext(.)' instead of 'btex . etex' > metapost> rewrapping btex ... etex at the outer level [[dummy]] > metapost> rewrapping btex

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Hans Hagen
on https://tex.stackexchange.com/questions/503773/strange-behaviour-of-the-btex-etex-construct Cheers, Henri --- \starttext \startMPpage def drawtest(expr i) = %i is not used here draw btex dummy etex shifted (0,0); draw btex foo etex shifted (1.5cm,0); draw btex bar

[NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
/questions/503773/strange-behaviour-of-the-btex-etex-construct Cheers, Henri --- \starttext \startMPpage def drawtest(expr i) = %i is not used here draw btex dummy etex shifted (0,0); draw btex foo etex shifted (1.5cm,0); draw btex bar etex shifted (3cm,0); enddef; drawtest(5

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Henri Menke
;-mpgraph.mpo" job_name->jobname {("test")&("-mpgraph.mpo")} {let} {fi} draw->addto.currentpicture.if.picture(EXPR0):also(EXPR0)else:doublepath(E XPR0)withpen.currentpen.fi._op_ textext@#(EXPR3)->begingroup.save._s_;string._s_;interim.labeloffset:=textextof fse

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-03 Thread Taco Hoekwater
aled (7cm,3cm) shifted(2cm,2cm) ; > b := z[2]--z[1]--ulcorner r--urcorner p--lrcorner r--z[1]--z[0]--llcorner > p--cycle ; > draw p ; > draw b numberstriped (.25,15,5) withcolor magenta ; > label.llft("A", p) ; > label.lrt("D", p) ; > label.ulft("

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-03 Thread Fabrice Couvreur
abel.urt("B", p) ; label.lft("M", z[2]) ; label.ulft("N", z[1]) ; label.bot("P", z[0]) ; label.top("J", ulcorner r) ; label.rt("I", lrcorner r) ; label.bot(btex $x$ etex,(llcorner p+z[0])/2); label.lft(btex $x$ etex,(llcorner p+z[2])/2);

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-02 Thread Henri Menke
el.lrt("D", p) ; > label.ulft("C", p) ; > label.urt("B", p) ; > label.lft("M", z[2]) ; > label.ulft("N", z[1]) ; > label.bot("P", z[0]) ; > label.top("J",

[NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-02 Thread Fabrice Couvreur
A", p) ; label.lrt("D", p) ; label.ulft("C", p) ; label.urt("B", p) ; label.lft("M", z[2]) ; label.ulft("N", z[1]) ; label.bot("P", z[0]) ; label.top("J", ulcorner r) ; label.rt("I", lrcorner r) ; l

Re: [NTG-context] Metafun scaling problem

2018-10-01 Thread luigi scarso
ve 2019/dev) > > The LuaTeX team is Hans Hagen, Hartmut Henkel, Taco Hoekwater, Luigi > Scarso. > > LuaTeX merges and builds upon (parts of) the code from these projects: > > tex : Donald Knuth > etex : Peter Breitenlohner, Phil Taylor and friends > omega : John Plaice and

Re: [NTG-context] Metafun scaling problem

2018-10-01 Thread Lutz Haseloff
and builds upon (parts of) the code from these projects: tex : Donald Knuth etex : Peter Breitenlohner, Phil Taylor and friends omega : John Plaice and Yannis Haralambous aleph : Giuseppe Bilotta pdftex: Han The Thanh and friends kpathsea : Karl Berry, Olaf Weber and

Re: [NTG-context] labeling in meta post

2018-09-07 Thread Jeong Dal
Dear Henri Menke, I always use “btex etex” for labeling math. But “…..” is simpler and it works fine. Thank you. Best regards, Dalyoung >> >> \startbuffer[delta] >> label.bot(btex ${\delta}$ etex, (1cm,0));% >> %label.bot(btex $\delta$ etex, (3cm,0)); > &g

Re: [NTG-context] labeling in meta post

2018-09-07 Thread Alan Braslau
> On 7 Sep 2018, at 01:02, Henri Menke wrote: > >> label.bot(btex ${\delta}$ etex, (1cm,0));% >> %label.bot(btex $\delta$ etex, (3cm,0)); > > Why not just > > label.bot("$\delta$", (3cm,0)); Sometimes, one might want to use btex ... etex t

Re: [NTG-context] labeling in meta post

2018-09-06 Thread Henri Menke
On 07/09/18 10:55, Jeong Dal wrote: > Hi, > > What is the difference between {\delta} and \delta? > Former is OK, but the second is not compiled. > > Here is a MWE. > > > \startbuffer[delta] > label.bot(btex ${\delta}$ etex, (1cm,0)); % > %label.bot(btex

[NTG-context] labeling in meta post

2018-09-06 Thread Jeong Dal
Hi, What is the difference between {\delta} and \delta? Former is OK, but the second is not compiled. Here is a MWE. \startbuffer[delta] label.bot(btex ${\delta}$ etex, (1cm,0)); % %label.bot(btex $\delta$ etex, (3cm,0)); label.bot(btex $\frac{2-\delta}{2}$ etex, (5cm,0

Re: [NTG-context] Bug in newest ConTeXt with anglebetween?

2018-09-01 Thread Hans Hagen
out, the file compiles. use textext("$\alpha$") %%% \starttext \startuseMPgraphic{testfig} u:=1cm; z0=origin; z1=(4u,3u); z2=(4u,0); draw z0--z1--z2--cycle; draw anglebetween(z0--z2,z0--z1,btex $\alpha$ etex); \stopuseMPgraphic \startplacefigure \useMPgraphic{testfig} \stopplacef

[NTG-context] Bug in newest ConTeXt with anglebetween?

2018-09-01 Thread Mikael P. Sundqvist
aphic{testfig} u:=1cm; z0=origin; z1=(4u,3u); z2=(4u,0); draw z0--z1--z2--cycle; draw anglebetween(z0--z2,z0--z1,btex $\alpha$ etex); \stopuseMPgraphic \startplacefigure \useMPgraphic{testfig} \stopplacefigure \stoptext %%% The error is something like: tex error > tex error on line 7

Re: [NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Hans Hagen
On 7/17/2018 3:40 PM, Procházka Lukáš Ing. wrote: Hello, I encountered a weird thing - words of 1 letter inside btex ... etex within MP are not shown - check: \setuplayout[page] \startluacode   context.setMPtext("Pare", "1")   context.setMPtext("Pare2&quo

[NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Procházka Lukáš Ing .
Hello, I encountered a weird thing - words of 1 letter inside btex ... etex within MP are not shown - check: \setuplayout[page] \startluacode context.setMPtext("Pare", "1") context.setMPtext("Pare2", "22") context.setMPtext("Pare3"

Re: [NTG-context] Problem with luatex experimental on linux armhf

2018-06-27 Thread Lutz Haseloff
lor blue; >>> \stopMPpage >>> >>> Is there anything I can do or is it a problem of the source? >> >> >> checking now >> >> -- >> luigi >> > >The example is ok on my Raspberry Pi 3 Model B Rev 1.2 >I assume luatex experiment

Re: [NTG-context] Problem with luatex experimental on linux armhf

2018-06-27 Thread luigi scarso
n my Raspberry Pi 3 Model B Rev 1.2 I assume luatex experimental, because luatex trunk is still with poppler . # luatex --credits This is LuaTeX, Version 1.09.0 (TeX Live 2018) The LuaTeX team is Hans Hagen, Hartmut Henkel, Taco Hoekwater, Luigi Scarso. LuaTeX merges and builds upon (parts of)

Re: [NTG-context] beta

2018-06-23 Thread Lutz Haseloff
luatex --credits gives: This is LuaTeX, Version 1.09.0 (TeX Live 2018) The LuaTeX team is Hans Hagen, Hartmut Henkel, Taco Hoekwater, Luigi Scarso. LuaTeX merges and builds upon (parts of) the code from these projects: tex : Donald Knuth etex : Peter Breitenlohner, Phil Taylor and

Re: [NTG-context] Circled text in metapost

2018-03-30 Thread Alan Braslau
value) for subsequent calls to MP. What should be understood is that calls to MP returns a bounding box to TeX, and space is reserved for this bounding box. Likewise, calls within MP to TeX, for example textext() or label(), or btex ... etex returns a bounding box to MP, and this (picture) object

Re: [NTG-context] source code and result side by side

2017-07-30 Thread Pablo Rodriguez
ample#1{% > \startTEX > #1 > \stopTEX > #1 > } > > Stops with the error: Without or without definitions, there should be no expansion inside \starttyping...\stoptyping. Even with some expansion, I get an infinite loop: \starttext \setuptyping[TEX][escape=yes] \def\CodeEx

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-17 Thread Henri Menke
nvironment around the code? Background is no problem, escape in code is not implemented in t-vim.  I filed a feature request for /BTEX ... /ETEX escaping as in regular typing on Aditya's GitHub:  https://github.com/adityam/filter/ issues/23 \definetextbackground   [verbatim]   [location=

[NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
); draw thelabel(btex\setupbodyfont[sans,35mm] Test etex, (80mm, 50mm)) withcolor %col transparent(1, .4, col) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage

Re: [NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-12 Thread Hans Hagen
On 1/11/2017 11:08 PM, Sergey Slyusarev wrote: Hi, i found the following bug (likely) some time ago: When \textext (or any other text generating thing like btex etex etc.) is present inside \*MPinclusions and \*MPinclusions are followed by \*MPcode ConTeXt returns error: Equation cannot be

[NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-11 Thread Sergey Slyusarev
Hi, i found the following bug (likely) some time ago: When \textext (or any other text generating thing like btex etex etc.) is present inside \*MPinclusions and \*MPinclusions are followed by \*MPcode ConTeXt returns error: Equation cannot be performed (color=vacuous). Minimal example would be

[NTG-context] columnsetspan extra line

2016-12-29 Thread Mikael P. Sundqvist
lines? %%% Start of example \usemodule[newcolumnsets] \setuplayout[ grid=yes, ] \showgrid \definecolumnset[example][n=2] \definecolumnsetspan[intro][n=2,after=,before=,] \define[1]\mychapnum{% \startuseMPgraphic{chapnum} label(btex {\bf #1} etex scaled 12, (0.5*OverlayWidth,0.5*OverlayHeight)) with

Re: [NTG-context] first-setup.bat weirdness II: xetex etc.

2016-07-20 Thread Hans Hagen
t | running command: xetex --ini --etex --8bit cont-en.mkii \dump makes vista complain: = xetex.exe - Unable to Locate Component This application has failed to start because xetex.dll was not found. = Pressing OK, xetex crashes and things continue until

[NTG-context] first-setup.bat weirdness II: xetex etc.

2016-07-19 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear syndicate, As mentioned in my other message, "first-setup.bat weirdness I: cloned system" I've now switched to the first-setup.bat way of updating. Two pieces of weirdness on the main machine: 1. mtx-context | running command: xetex --ini --etex --8bit cont-en.mki

[NTG-context] first-setup.bat weirdness I: cloned system

2016-07-19 Thread Idris Samawi Hamid ادريس سماوي حامد
up.bat again on the windows7 machine, got the following errors: = mtx-context | running command: pdftex --ini --etex --8bit cont-en.mkii \dump warning: c:/ConTeXt/tex/texmf/web2c/texmf.cnf:49: (kpathsea) No cnf value on lin e: OSFONTDIR =. This is pdfTeX, Version 3.141592

Re: [NTG-context] Questions about Scite lexers

2016-04-13 Thread Wolfgang Schuster
Nicola <mailto:nvitacolo...@gmail.com> 13. April 2016 um 19:25 Thanks for your answers. I'd like to go with \definetyping then, because I need /BTEX../ETEX. I have found an old document of mine, which uses a (slightly customized) pret-c.lua, located inside the project's folder.

Re: [NTG-context] Questions about Scite lexers

2016-04-13 Thread Nicola
) ... the pret files are more or less working in the same way (they date from before scite got that kind of lexers) Thanks for your answers. I'd like to go with \definetyping then, because I need /BTEX../ETEX. I have found an old document of mine, which uses a (slightly customized) pret-c.lua, lo

Re: [NTG-context] Questions about Scite lexers

2016-04-13 Thread Hans Hagen
n \startscite..\stopscite environments, like /BTEX../ETEX in built-in typing? hm, i suppose one can add the parsing of /BTEX .. /ETEX to the lexer and then intercept it but it's not built in (formatted comment might make sense) 4) Are scite lexers documented somewhere besides the source code

[NTG-context] Questions about Scite lexers

2016-04-13 Thread Nicola
in the distribution. It there a way to have it in my project's folder instead? 2) How do I customize colors? 3) Is it possible to embed TeX commands in \startscite..\stopscite environments, like /BTEX../ETEX in built-in typing? 4) Are scite lexers documented somewhere besides the sourc

[NTG-context] MetaPost and externalfigure() REQUEST FOR COMMENTS

2016-01-10 Thread Alan BRASLAU
ot;\input knuth") ; \stopMPcode that can be substituted for the traditional MP \startMPcode label("Some text to be typeset", origin) ; \stopMPcode or its alternate form: \startMPcode label(btex $5\times10^4$ etex, origin) ; \stopMPcode In MetaFun, these all go through the texte

Re: [NTG-context] m-graph read data and plot

2015-08-09 Thread Alan BRASLAU
lft(btex \vbox{\hbox{Quadrillions}\hbox{of BTU}} etex, OUT); path p[]; numeric t; gdata("energy.d", $, t:=0; augment.p1($1,0); for j=2 upto 5: t:=t+scantokens $[j]; augment.p[j]($1,t); endfor) picture lab[]; lab2=btex coal etex; lab3=btex crude oil etex; lab4

[NTG-context] Calculating a value in metapost, and using it in ConTeXt

2015-05-26 Thread Kate F
Hello, Is it possible to calculate the position of something in Metapost, and to export that value to TeX such that I can use it in setups and things? I thought perhaps I could \def inside btex..etex. Here's a minimal example trying to illustrate the idea: \startuniqueMPgraphic{canon}

Re: [NTG-context] Problem in using vlingrid() and hlingrid() macros (Metafun)

2015-03-15 Thread Fabrice
quot;x", "7*x-11", -1, 3, 0.01) xyscaled (u,v) withcolor green ; label.bot(btex $x$ etex,(2.97u,-0.1v)) ; label.rt(btex $y$ etex,(0.01u,3.9v)) ; label.llft("0",(0,0)) ; label.urt("A",(0,v)) ; dotlabel("",(u,-4v)) ; label.rt("C

[NTG-context] Problem in using vlingrid() and hlingrid() macros (Metafun)

2015-03-14 Thread Fabrice Couvreur
)--(0,4v) ; draw curvedfunction ("x", "3*x*x-5*x+1", -1, 3, 0.01) xyscaled (u,v) withcolor red ; draw curvedfunction ("x", "-5*x+1", -1, 3, 0.01) xyscaled (u,v) withcolor blue ; draw curvedfunction ("x", "7*x-11", -1, 3, 0.01) x

Re: [NTG-context] Bug with macro tightfunction (Metafun)

2015-02-16 Thread Hans Hagen
imal(i)&"$"),(0,i*v)); endfor; label.top("Nombre de lots",(90u,50v)); label.lrt(btex $f(x)$ (en euros) etex,(0,7800v)); \stopMPcode \stop \stoptext what is:

Re: [NTG-context] Bug with macro tightfunction (Metafun)

2015-02-16 Thread Pablo Rodriguez
label.lft(TEX("$"&decimal(i)&"$"),(0,i*v)); > endfor; >label.top("Nombre de lots",(90u,50v)); >label.lrt(btex $f(x)$ (en euros) etex,(0,7800v)); > \stopMPcode > \stop > \stoptext -- http://www.ousia.tk ___

  1   2   3   4   5   6   7   8   9   10   >