Re: [NTG-context] Getting started with Japanese

2022-07-09 Thread Gerben Wierda via ntg-context
mean using quite different characters (katakana?) Am I missing something? G > > Thanks, > > Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) > R Enterprise Architecture <https://ea.rna.nl/> (main site) > Book: Chess and the Art of Enterprise Arch

[NTG-context] Getting started with Japanese

2022-07-09 Thread Gerben Wierda via ntg-context
I’d like to experiment a bit with typesetting Japanese in ConTeXt (LMTX), to see if it is doable. I tried looking for Japanese on ConTeXtgarden, but did not find anything. Can someone point me to instructions to get started with Japanese in LMTX (on macOS). Thanks, Gerben Wierda (LinkedIn

Re: [NTG-context] What is going wrong with this use of --mode for switching language?

2022-07-08 Thread Gerben Wierda via ntg-context
> On 8 Jul 2022, at 11:57, Taco Hoekwater wrote: > > > >> On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context >> wrote: >> >> I have this minimal example: >> >> \startmode[EL] >> \setuplanguage[el][patterns={el}]\mainlangua

[NTG-context] What is going wrong with this use of --mode for switching language?

2022-07-08 Thread Gerben Wierda via ntg-context
or something is wrong. Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Enterprise Architecture <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> Book: Mastering ArchiMate <https://ea.rna.nl

[NTG-context] Cyrillic UTF8 works, greek does not?

2022-06-22 Thread Gerben Wierda via ntg-context
, it=style:Italic, bi=style:SemiBold Italic] \setupbodyfont[archimate] \starttext This is English text Στοιχείο στο επιχειρησιακό επίπεδο που This is English text. Элемент бизнес-уровня; агрегат сервисов This is English text. \stoptext Gerben Wierda (LinkedIn <https://www.linkedin.

[NTG-context] Can I simplify this to some sort of logic so it scales better?

2022-06-06 Thread Gerben Wierda via ntg-context
this becomes more and more complex. I was wondering what would be a good approach to simplify it. I want to make sure that one and only one of these modes is active and that if no mode is entered on the command line the mode is EN. Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda&

[NTG-context] Typesetting modern Greek (UTF8) with ConTeXt

2022-06-05 Thread Gerben Wierda via ntg-context
] [ss] [Optima] \setupbodyfont[archimate] I can’t find out from ConTeXtgarden what code I must use for modern Greek (‘el’?) and what range I must use for Greek characters (I guess ‘greekandcoptic’ which I’ve seen mentioned somewhere). Correct? Gerben Wierda (LinkedIn <https://www.linkedin.

Re: [NTG-context] How do I turn off indentation inside a \framed with align=?

2022-06-02 Thread Gerben Wierda via ntg-context
> On 19 May 2022, at 18:22, Wolfgang Schuster via ntg-context > wrote: > > You have to provide a minimal example, in the following the example the text > within the frame isn't indented. I cannot always provide a minimal example (how much I would like to) as my TeX is produced in a pipeline

[NTG-context] How do I turn off indentation inside a \framed with align=?

2022-05-19 Thread Gerben Wierda via ntg-context
indenting off in all frameds with align=flushleft or otherwise *everywhere*? Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R IT Strategy <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> Book: M

Re: [NTG-context] Does \startnotallmodes work?

2022-05-11 Thread Gerben Wierda via ntg-context
> On 11 May 2022, at 02:37, Rik Kabel via ntg-context > wrote: > > On 2022-05-10 17:39, Gerben Wierda via ntg-context wrote: >> Example. Call with >> >> context —mode=FR >> >> - Uncomment the first commented lines. Compilation fails because mode F

Re: [NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-11 Thread Gerben Wierda via ntg-context
> On 11 May 2022, at 08:59, Taco Hoekwater wrote: > > > >> On 10 May 2022, at 23:40, Gerben Wierda via ntg-context >> wrote: >> >> Fix > >>> I was wondering if this can be simplified, e.g. by setting language on the >>> comman

Re: [NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-10 Thread Gerben Wierda via ntg-context
Fix > On 10 May 2022, at 22:41, Gerben Wierda via ntg-context > wrote: > > I currently have: > > \startnotallmodes[FR,RU]% english is the default > \enablemode[EN] > \stopnotallmodes > \startmode[EN] > \setuplanguage[en][patterns={en}] > \setupexternalfigure

[NTG-context] Does \startnotallmodes work?

2022-05-10 Thread Gerben Wierda via ntg-context
={en,fr}] \setupexternalfigure[directory=../LMTX-Output/without-ids/fr/ArchiMate 3.1 Metamodel ESv4] \stopmode \startmode[RU] \setuplanguage[ru][patterns={en,ru}] \setupexternalfigure[directory=../LMTX-Output/without-ids/ru/ArchiMate 3.1 Metamodel ESv4] \stopmode Gerben Wierda (LinkedIn <ht

[NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-10 Thread Gerben Wierda via ntg-context
, e.g. by setting language on the command line instead, enable a mode derived from a language set on the command line, and if I would have a single command \setupexternalfigure[directory= that reacts to the language by using the name of the language as part of the directory? Gerben Wierda

Re: [NTG-context] Simple question

2022-05-10 Thread Gerben Wierda via ntg-context
given) the result is file-ru.pdf G > On 10 May 2022, at 17:21, Wolfgang Schuster > wrote: > > Gerben Wierda via ntg-context schrieb am 10.05.2022 um 00:15: >> What is the easiest way to have a ‘database’ of translations for strings and >> maybe links? >&

[NTG-context] Simple question

2022-05-09 Thread Gerben Wierda via ntg-context
Doable? Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R IT Strategy <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> Book: Mastering ArchiMate <https://ea.rna.nl

[NTG-context] Solved: Book setup with LHS-side quotes before chapters/parts, header/footer issues, TOC, etc.

2021-10-26 Thread Gerben Wierda via ntg-context
knuth} \stopchapter \stopfrontmatter \startbodymatter \dorecurse{3}{ \SectionPrequote{The world is not \rationals, it is \reals\crlf {\tf Gerben Wierda}} \part{Title title title} \PartAbstract{This is a part abstract.} \dorecurse{2}{ \SectionPrequote{If you think good architecture

[NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Gerben Wierda via ntg-context
. Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Enterprise Architecture <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
On 24 Oct 2021, at 16:38, Wolfgang Schuster wrote: > > Gerben Wierda via ntg-context schrieb am 24.10.2021 um 15:42: >> My double-sided layout starts each chapter on a right page with a quote on >> the opposing left page. I’d like to move the page number of that right page

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
I attempted this: \page[right] \setupheadertexts[] \setupfootertexts[pagenumber] \setupfooter[text][after={\setupfootertexts[]\setupheadertexts[pagenumber]}] but that does not work. This definitely moves the page numbers to the footer. Gerben Wierda (LinkedIn <ht

[NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
Foote and Joseph Yoder} \stopbuffer \chapter[h:one]{One} \ChapterAbstract{This is chapter abstract 1.} \dorecurse{5}{\input tufte \par \input knuth} \chapter[h:two]{Two} \ChapterAbstract{This is chapter abstract 2.} \dorecurse{5}{\input tufte \par \input knuth} \stoptext Gerben Wierda (LinkedIn

Re: [NTG-context] The certificate of the mailman site has expired

2021-10-24 Thread Gerben Wierda via ntg-context
ays R3 (looks like an intermediate cert in the certificate > chain) has expired. > > See attached screenshot. > > Thank you, > > Best Regards, > Ramkumar > >> On Fri, Oct 22, 2021 at 4:11 PM Gerben Wierda via ntg-context >> wrote: >> I got a warn

Re: [NTG-context] A book with sections

2021-10-23 Thread Gerben Wierda via ntg-context
> On 23 Oct 2021, at 15:34, Wolfgang Schuster > wrote: > >  Gerben Wierda via ntg-context schrieb am 23.10.2021 um 15:20: >> I’d like a book with chapters to have sections/parts, e.g. something that >> groups a few \chapter elements together. Is there support f

Re: [NTG-context] How to enable the use of the blackboard font in modern ConTeXt

2021-10-23 Thread Gerben Wierda via ntg-context
On 23 Oct 2021, at 15:15, Pablo Rodriguez via ntg-context wrote: > > On 10/23/21 3:00 PM, Gerben Wierda via ntg-context wrote: >> By the way, neither does \blackboard{Q} work. But \rationals works in >> the case of the letter Q. > > Hi Gerben, > > it

[NTG-context] A book with sections

2021-10-23 Thread Gerben Wierda via ntg-context
I’d like a book with chapters to have sections/parts, e.g. something that groups a few \chapter elements together. Is there support for this in LMTX? I.e. in such a way that it also shows up in the table of contents? Thanks, Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwie

Re: [NTG-context] How to enable the use of the blackboard font in modern ConTeXt

2021-10-23 Thread Gerben Wierda via ntg-context
By the way, neither does \blackboard{Q} work. But \rationals works in the case of the letter Q. Gerben > On 23 Oct 2021, at 14:42, Gerben Wierda via ntg-context > wrote: > > I’m back to an attempt to migrate my old mkii project to lmtx > > One thing I haven’t been able

[NTG-context] How to enable the use of the blackboard font in modern ConTeXt

2021-10-23 Thread Gerben Wierda via ntg-context
I’m back to an attempt to migrate my old mkii project to lmtx One thing I haven’t been able to find yet is how to use the blackboard font. {\blackboard Q} Doesn’t do anything. It also doesn’t give an error. Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Ente

Re: [NTG-context] The certificate of the mailman site has expired

2021-10-22 Thread Gerben Wierda via ntg-context
I got a warning about the certification elast night when I clicked the link in the mail footer. At that moment it was expired. It is OK now, but will expire Oct 30. Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Enterprise Architecture <https://ea.rna.nl/>

[NTG-context] The certificate of the mailman site has expired

2021-10-21 Thread Gerben Wierda via ntg-context
Just to let you know: The certificate of the mailman site has expired (This email is also a test for me, as I had some troubles locally where mail was blocked so I want to see that it still arrives. Please ignore). Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Ente

Re: [NTG-context] Use of lettrine module in LMTX

2021-07-23 Thread Gerben Wierda
Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Enterprise Architecture <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-ii

[NTG-context] LMTX: some alignment issues

2021-07-23 Thread Gerben Wierda
read this without understanding any of the technical references. Just skip over them, their specifics are not important to the story. They are real enough, though. You can trust me on that, or ask your engineers.} \stoptext %%% Gerben Wierda (LinkedIn &

Re: [NTG-context] TrueType font styles suddenly not found anymore

2021-07-23 Thread Gerben Wierda
That fixed it. Thanks. G On 23 Jul 2021, at 13:22, Wolfgang Schuster wrote: > > Gerben Wierda schrieb am 23.07.2021 um 12:35: >> My font setup is like this: >> [...] >> Now, both worked earlier today. But I’ve lost the old Optima font somehow. >> I

[NTG-context] TrueType font styles suddenly not found anymore

2021-07-23 Thread Gerben Wierda
ind the instructions. Can someone enlighten me? Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Enterprise Architecture <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> Book: Mastering ArchiMate <ht

[NTG-context] Solution: LMTX initial (drop cap) in combination with indenting

2021-07-22 Thread Gerben Wierda
> On 21 Jul 2021, at 22:38, Nicola wrote: > > On 2021-07-21, Gerben Wierda <mailto:gerben.wie...@rna.nl>> wrote: >>> On 19 Jul 2021, at 09:56, Nicola wrote: >>> >>> On 2021-07-18, Gerben Wierda wrote: >>>> PS. switching \kap an

[NTG-context] Use of lettrine module in LMTX

2021-07-21 Thread Gerben Wierda
> On 19 Jul 2021, at 09:56, Nicola wrote: > > On 2021-07-18, Gerben Wierda wrote: >> PS. switching \kap and \bf has an interesting result, the first >> character of the words is not in bold. This did not happen with >> lettrine in mkii > > I do not have an answ

[NTG-context] drop cap (initial) and indentation

2021-07-18 Thread Gerben Wierda
knuth \stoptext both the initial and the bold stuff after it is indented. With hoffset I can move the initial, but not what comes after. I have been experimenting but haven’t found a way to solve this. Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Enterprise Archit

[NTG-context] LMTX and lettrine

2021-07-18 Thread Gerben Wierda
em, 30Slope=0em, 31Ante=, 32FontHook=, 33TextFont=\sc, 34Image=no] to lmtx. (Basically, ConTeXtgarden gives my mike info for lettrine) Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)

Re: [NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-16 Thread Gerben Wierda
> On 15 Jul 2021, at 16:00, Henning Hraban Ramm wrote: > >> >> Am 15.07.2021 um 12:19 schrieb Gerben Wierda : >> >>> On 12 Jul 2021, at 12:15, Henning Hraban Ramm wrote: >>> >>> >>> >>>> Am 12.07.2021 um

Re: [NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-15 Thread Gerben Wierda
> On 12 Jul 2021, at 12:15, Henning Hraban Ramm wrote: > > > >> Am 12.07.2021 um 10:25 schrieb Gerben Wierda : >> >> Years ago I wrote a book (Chess and the Art of Enterprise Architecture) >> using ConTeXt. >> >> The setup was (I think T

[NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-12 Thread Gerben Wierda
: /Library/TeX/texbin:/usr/local/context-osx-64/tex/texmf-osx-64/bin: Thanks, Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Enterprise Architecture <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/&g

Re: [NTG-context] Using Gill Sans on macOS

2021-02-22 Thread Gerben Wierda
> On 22 Feb 2021, at 17:59, Henning Hraban Ramm wrote: > > > >> Am 22.02.2021 um 16:14 schrieb Gerben Wierda : >> >> I’m normall using Optima Nova on my system, e.g. by defining a font like >> this: >> >> >> \definefontfamily

[NTG-context] Using Gill Sans on macOS

2021-02-22 Thread Gerben Wierda
to experiment with Gill Sans, but that fails with fonts > defining > unable to define 'GillSans.ttc' as 'archimate-14pt-ss-tf-0--0' It is here: /System/Library/Fonts/Supplemental/GillSans.ttc What should I do to be able to use that font? Gerben Wierda (LinkedIn <https://www.lin

Re: [NTG-context] Question about parsing XML and attributes (normally var.at.attrib) with a name with ':' in it

2021-02-14 Thread Gerben Wierda
foo.at[“attribute:B”] I looked at the code and guessed this. Still haven’t found really good documentation for lua, lua in ConTeXt, and especially theXML stuff (it’s all written as \xmlsomething TeX commands. No idea if this is ConTeXt, lua or whatever but it works. Gerben Wierda (LinkedIn

[NTG-context] Question about parsing XML and attributes (normally var.at.attrib) with a name with ':' in it

2021-02-14 Thread Gerben Wierda
If I have an XML element like this: and it has been read in a lua variable foo, I can get at attribute x with foo.at.x But how do I get at attribute:B? Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>) R Enterprise Architecture <https://ea.rna.nl/> (main site)

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-11 Thread Gerben Wierda
> On 9 Jul 2020, at 08:37, Aditya Mahajan wrote: > > On Wed, 8 Jul 2020, Gerben Wierda wrote: > >> I found out this in the PDF spec: >> >> The minimum page size should be 3 by 3 units in default user space; the >> maximum should be 14,400 by 14,400 uni

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-09 Thread Gerben Wierda
0 9:08 AM, Taco Hoekwater wrote: >>> On 9 Jul 2020, at 08:32, Hans Hagen wrote: >>> >>> On 7/8/2020 8:14 PM, Gerben Wierda wrote: >>>> I found out this in the PDF spec: >>>> The minimum page size should be 3 by 3 units in default user space;

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-08 Thread Gerben Wierda
nux) open the PDF output without warnings nor issues. > > Jairo :) > > El mar., 7 de jul. de 2020 a la(s) 17:50, Gerben Wierda (gerben.wie...@rna.nl > <mailto:gerben.wie...@rna.nl>) escribió: > The following code: > > \startMPpage[instance=doublefun] > draw (0,

[NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-07 Thread Gerben Wierda
The following code: \startMPpage[instance=doublefun] draw (0,0)--(100,0) dashed withdots; \stopMPpage When run through LuaMetaTeX produces a PDF about which Acrobat complains: The dimensions of this page are out-of-range. Page content might be truncated. and Adobe InDesign cannot

[NTG-context] Which lua XML library is embedded in LMTX?

2020-06-25 Thread Gerben Wierda
According to the XML manual: << 2.1 >> TEX versus LUA It will not come as a surprise that we can access xml files from TEX as well as from Lua. In fact there are two methods to deal with xml in Lua. First there are the low level xml functions in the xml namespace. On top of those functions

[NTG-context] METAPOST's uniformdeviate is not truly random (seed)

2020-06-23 Thread Gerben Wierda
I’m trying to get a real random number in METAPOST MWE: \startMPpage[instance=doublefun] show uniformdeviate 60; \stopMPpage Every time I run this, it shows the same result. I tried playing around with the randomseed, but for instance when I do two runs shortly after each other they still are

[NTG-context] How could I find the 'depth' of an element found with xml.first()?

2020-06-18 Thread Gerben Wierda
Given the following XML snippet OmaFoo

[NTG-context] accessing xml element attributes in lua, how, if you do not want to use the .at scheme?

2020-06-09 Thread Gerben Wierda
I’ve been trying to find out how I can access XML node properties/attributes in lua other than via the .at syntactic scheme but using the property/attribute name as a string. E.g., currently I do: someVar = someNode.at.someProperty but I would like to do something like someVar =

[NTG-context] LMTX lua xml interface: xml.tag()?

2020-06-02 Thread Gerben Wierda
According to the mkiv manual, there is a \xmltag which I think should translate to xml.tag() in lua. But while xml.name() works, xml.tag() fails: attempt to call a nil value (field 'tag') Should xml.tag() work?

Re: [NTG-context] Dangerous bend metafont/post code?

2020-05-28 Thread Gerben Wierda
I’ve used:\startMPpage[instance=doublefun]% Inspired by and largely copied from Donald Knuth's METAFONT dangerous bend glyphh=11;u=h/15;w=h*8.5/4.6;heavyline=2;y1=25/27h;x4=0;x1+x1=x1a+x1b=x4b+x2a=x4+x2=x4a+x2b=x3b+x3a=x3+x3=w;x4a=x4b=x4+u;

[NTG-context] 'debug' version of METAPOST draw?

2020-05-28 Thread Gerben Wierda
I would like to be able (during development) to draw paths where the points of the path (and maybe thing slike directions) are visualised. E.g. a path where each pair in teh path is also drawn as a dot and maybe teh directions drawn as small arrows. Does someone have such a beast lying around?

[NTG-context] Dangerous bend metafont/post code?

2020-05-27 Thread Gerben Wierda
To honour Donald Knuth, I’ve use his ‘dangerous bend’ (with attribution of course) in one of my publications. But I only had a low res image. Is the code of this symbol available somewhere so I can do it proper justice in a next edition? G

Re: [NTG-context] Change of Optima to Optima Nova: how to get Optima Nova working?

2020-05-24 Thread Gerben Wierda
, force=yes] \definefontfamily [archimate] [ss] [Optima nova LT Pro] [tf=style:Demi, bf=style:Heavy, it=style:Medium Italic, bi=style:Heavy Italic] \setupbodyfont[archimate] G > On 24 May 2020, at 13:50, Gerben Wierda wrote: > > > >> On 24

[NTG-context] Change of Optima to Optima Nova: fallback for cyrillc stops working

2020-05-24 Thread Gerben Wierda
I’ve decided to buy the Optima Nova font. But now that I use it, I run into the problem that suddenly my fallback for Cyrillic has stopped working. \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style:regular,

Re: [NTG-context] Change of Optima to Optima Nova: how to get Optima Nova working?

2020-05-24 Thread Gerben Wierda
> On 24 May 2020, at 12:40, Gerben Wierda wrote: > > > >> On 24 May 2020, at 12:26, Gerben Wierda > <mailto:gerben.wie...@rna.nl>> wrote: >> >> >> >>> On 24 May 2020, at 12:16, Gerben Wierda >> <mailto:gerben.wie...

Re: [NTG-context] Change of Optima to Optima Nova: how to get Optima Nova working?

2020-05-24 Thread Gerben Wierda
> On 24 May 2020, at 12:26, Gerben Wierda wrote: > > > >> On 24 May 2020, at 12:16, Gerben Wierda > <mailto:gerben.wie...@rna.nl>> wrote: >> >> I’ve decided to buy the Optima Nova font. But now that I use it, I run into >> the problem th

Re: [NTG-context] Change of Optima to Optima Nova: how to get Optima Nova working?

2020-05-24 Thread Gerben Wierda
> On 24 May 2020, at 12:16, Gerben Wierda wrote: > > I’ve decided to buy the Optima Nova font. But now that I use it, I run into > the problem that suddenly my fallback for Cyrillic has stopped working. > > \definefallbackfamily > [archimate] > [ss] >

Re: [NTG-context] How to define a font with an effect as a font with \definefont

2020-05-23 Thread Gerben Wierda
> On 23 May 2020, at 20:06, Wolfgang Schuster > wrote: > > Pablo Rodriguez schrieb am 23.05.2020 um 20:02: >> On 5/23/20 11:52 AM, Gerben Wierda wrote: >>> [] >>> Actually, my setup is Optima with Helvetica used for Cyrillic: >>> >>

[NTG-context] How to define a font with an effect as a font with \definefont

2020-05-23 Thread Gerben Wierda
Wityh this working example: \starttext The quick brown fox jumped over the lazy dog \definefontfeature [effect-widen] [effect={width=.2,delta=0.3}] \definedfont[Sans*widen,effect-widen] The quick brown fox jumped over the lazy dog \stoptext I am puzzling to turn my working \definedfont into

Re: [NTG-context] output file name query

2020-05-23 Thread Gerben Wierda
> On 23 May 2020, at 14:46, Wolfgang Schuster > wrote: > > Henning Hraban Ramm schrieb am 22.05.2020 um 17:39: Am 22.05.2020 um 15:09 schrieb Wolfgang Schuster : >>> >>> Alan Bowen schrieb am 22.05.2020 um 14:33: In my project, I process a single product file by enabling

Re: [NTG-context] Getting width of text to be typeset

2020-05-23 Thread Gerben Wierda
> On 23 May 2020, at 01:49, Rik Kabel wrote: > > If the OP simply wants the width of a string, one can use \setwidthof#1\to#2. > > \define\String{pqrs} > \setwidthof{\String}\to\Wdth > \String\ is \Wdth\ wide. > > \setwidthof{{\tfb\em\String}}\to\Wdth > {\tfb\em\String} is \Wdth\ wide. > >

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Gerben Wierda
> On 19 May 2020, at 15:22, Garulfo wrote: > > Hi, > > I hope you're all doing well. > > Please, you will find a proposal to update the Manuals page on the wiki: > https://wiki.contextgarden.net/ManualsGallery > > 2 objectives: > 1/ to make something more visual, to help the user identify

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda
> On 19 May 2020, at 20:11, Hans Hagen wrote: > > On 5/19/2020 5:37 PM, Wolfgang Schuster wrote: >> Gerben Wierda schrieb am 19.05.2020 um 13:42: >>> OK. I just noticed in lmtx documentation that \paperheight and \paperwidth >>> primitives have been removed,

[NTG-context] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda
Why doesn't \starttext \externalfigure[foo.pdf][width=\pagewidth] \stoptext work? Without [width=\pagewidth] it works. ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda
the page width and page height dimens for use in my macros. G > On 19 May 2020, at 11:58, Gerben Wierda wrote: > > Why doesn't > > \starttext > \externalfigure[foo.pdf][width=\pagewidth] > \stoptext > > work? Without

[NTG-context] Can someone explain the \startuseMPgraphic interface to me?

2020-05-19 Thread Gerben Wierda
In details.pdf, I encounter \startuseMPgraphic{mpos:par:columnset:shade} numeric h ; for i=1 upto nofmultipars : h := bbheight(p) ; if multikind[i] = "single" : fill multipars[i] topenlarged -.5h When I encounter that, I wonder: - where do nofmultipars, p,

[NTG-context] Looking for a way to use lua to output console/debug messages from MetaPost instead of 'show'

2020-05-18 Thread Gerben Wierda
I often need some debugging info to find out what is going on in my METAPOST code (as I often do not have exact knowledge of what some things do). MetaPost’s ‘show’ command has limited formatting functionality (e.g. I would like to add a number as a string to a show message instead of putting

[NTG-context] What is required to make \setuplayout work?

2020-05-17 Thread Gerben Wierda
I’ve been trying to define a layout that just has a 5mm no-printing edge around the paper and has all the rest for \textwidth and \textheight. No header, footer, pagenumber, etc. Just as much space as I can get out of a standard A4. But the following (following the manual and ConTeXtgarden):

[NTG-context] Building a page based on exact location of graphical elements (PDF)

2020-05-17 Thread Gerben Wierda
What is the simplest way to build a page based on positioning of external images? Some of these images are page-sized (so take up an entire page, though I might want to overlay some other text boxes and MP graphics). I’ve been trying to find a good explanation/introduction into layers (which I

[NTG-context] \goto not working from within \textext()

2020-05-16 Thread Gerben Wierda
This does give me ythe look of a link, but not a working link. Outside of textext() it works. Is there a way to get a working link in a MetaFun picture? Thx, G \setupinteraction [state=start, color=blue, style=bold] \starttext

Re: [NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Gerben Wierda
Thank you. That works. > On 14 May 2020, at 17:13, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 14.05.2020 um 11:47: >> Is it possible to get a transparent background in a textext()? The following >> minimal example doesn’t work. >> \starttext >>

[NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Gerben Wierda
Is it possible to get a transparent background in a textext()? The following minimal example doesn’t work. \starttext \setupMPpage [background=color, backgroundcolor=gray] \startMPpage draw

[NTG-context] Is it possible to make xml.load a bit more 'verbose' when it encounters errors?

2020-05-13 Thread Gerben Wierda
I am loading an xml.file. I sometimes make mistakes editing that file and then xml.load creates a string that contains invalid xml file - parsed text At that point I check my file and sometimes (like now) I cannot find the error. Is there a way to make xml.load somewhat more verbose about

[NTG-context] \goto works but links don't when passed via textext() in METAPOST

2020-05-10 Thread Gerben Wierda
I am trying to get an URL link in a textext() via METAPOST. I’ve got this before \starttext (or after, tried both): \setupinteraction [state=start, color=blue, style=bold] The intended link shows up in blue and bold, but it is not clickable. I’ve turned ConTeXt tracing on and see

[NTG-context] Would it be possible in LMTX to do something like variable font/lineheight to fit a fixed frame?

2020-05-10 Thread Gerben Wierda
Suppose I have a fixed sized frame, say 3 y 4 cm. And I have a variable-length text. Would it be possible to write a macro that scaled the font and line height such that the text will fit in the frame? What I have now is very basic: Fixed width Typeset (METAPOST textext())

Re: [NTG-context] METAPOST subpath rounding issue

2020-05-10 Thread Gerben Wierda
> On 10 May 2020, at 00:01, Bruce Horrocks wrote: > >> You can save extracting the xparts and yparts by using direct subtraction of >> pairs and comparing with (0,0) like this: > > Aaaargh, no, ignore that, it's nonsense. It's amazing how you can stare at > something for minutes but only see

Re: [NTG-context] METAPOST subpath rounding issue

2020-05-08 Thread Gerben Wierda
> On 8 May 2020, at 00:46, n...@scorecrow.com wrote: > > > >> On 7 May 2020, at 20:28, Gerben Wierda wrote: >> >> I have a METAPOST algorithm that splits a path at a certain time in two, >> does something with both ends (not the ends where they w

[NTG-context] METAPOST subpath rounding issue

2020-05-07 Thread Gerben Wierda
I have a METAPOST algorithm that splits a path at a certain time in two, does something with both ends (not the ends where they were split) and then rejoins them. In very rare cases this crashes, because the subpath doesn’t work as expected. firstPart := subpath (0,halfWayTime) of

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-04 Thread Gerben Wierda
On 4 May 2020, at 12:13, Pablo Rodriguez wrote: > > On 5/4/20 12:36 AM, Gerben Wierda wrote: >> [...] >> It could help if I would understand ConTeXt better. The link gives me a >> grammar for a command, but doesn’t tell me what to put in. >> >> I tried many,

Re: [NTG-context] lmt_followtext crashes while standard followtext itself works

2020-05-04 Thread Gerben Wierda
> we can patch this > >if ad <> origin : rotated(angle(ad)) fi > > in mp-blob.mpiv but I expect you to test if all still works then Applied and tested, it works fine. And it also provided me with an insight about if:else:fi that was slow in coming but now that I see it, I

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-03 Thread Gerben Wierda
On 3 May 2020, at 15:55, Pablo Rodriguez wrote: > > On 5/3/20 2:56 PM, Gerben Wierda wrote: >> ConTeXtgarden had theanswer when I searched again: >> >> \setupbodyfont[dejavu] >> \mainlanguage[russian] > > Hi Gerben, > > I’m afraid they may be differ

[NTG-context] lmt_followtext crashes while standard followtext itself works

2020-05-03 Thread Gerben Wierda
The following example has been extracted from my automatically generated MP code. \starttext \startMPpage string texstring; texstring := "{\colored [r=0.00, g=0.00, b=0.00]{\definebodyfont [9.0pt][rm][default=Regular at 9.0pt]\switchtobodyfont [9.0pt]\setupinterlinespace [9.9pt]\tf E.g.

Re: [NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path (suggestion works)

2020-05-03 Thread Gerben Wierda
> On 3 May 2020, at 15:01, Gerben Wierda wrote: > >>>>> Am 01.05.2020 um 10:26 schrieb Gerben Wierda >>>> <mailto:gerben.wie...@rna.nl>>: >>>>> >>>>> I have been looking at lmt_followtext and followtext to get typesett

Re: [NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path

2020-05-03 Thread Gerben Wierda
>>>> Am 01.05.2020 um 10:26 schrieb Gerben Wierda : >>>> >>>> I have been looking at lmt_followtext and followtext to get typesetting >>>> done along a path. That works fine, except that in my case, I need the >>>> text to not be

[NTG-context] How do I add cyrillic to my typescript/document?

2020-05-03 Thread Gerben Wierda
I am looking for a way to amend a typescript for the additional use of cyrillic characters. I currently use: \starttypescript [sans] [optima] \setups[font:fallback:sans] \definefontsynonym [Sans] [file:Optima.ttc(Optima Regular)] [features=default] \definefontsynonym

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-03 Thread Gerben Wierda
ConTeXtgarden had theanswer when I searched again: \setupbodyfont[dejavu] \mainlanguage[russian] G > On 3 May 2020, at 13:34, Gerben Wierda wrote: > > I am looking for a way to amend a typescript for the additional use of > cyrillic characters. > > I currently use: >

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
> use pagella math with optima, not modern > Zo? \definetypeface [optima] [mm] [math] [pagella] [default] Ik gok, want documentatie die dat helder maakt heb ik niet. Er is geen uitleg in de manuals die bij de standalone context komen en op ContextGarden vond ik vooral mkii zaken die niet meer

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
On 1 May 2020, at 16:02, Wolfgang Schuster wrote: > > Gerben Wierda schrieb am 01.05.2020 um 13:58: >> \definetypeface [optima] [ss] [sans] [optima] [default] >> \definetypeface [optima] [rm] [serif] [optima] [default] >> \definetypeface [optima] [tt]

Re: [NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 17:10, Henning Hraban Ramm wrote: > > > >> Am 01.05.2020 um 10:26 schrieb Gerben Wierda : >> >> I have been looking at lmt_followtext and followtext to get typesetting done >> along a path. That works fine, except that in my case, I

Re: [NTG-context] Reverse traversing of xml.collected()?

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 13:30, Hans Hagen wrote: > > On 5/1/2020 11:31 AM, Gerben Wierda wrote: >> I’d like to travese the contents of an xml.collected() in a reverse order. I >> have >> for connectionFromXML in xml.collected(viewFromXML,"/connection&

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 13:22, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 01.05.2020 um 13:15: >> The following code: >> \enabletrackers[context.trace] >> %\usemodule[article-basic] >> \starttypescript [sans] [optima] >>\setups[font:fal

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 13:28, Hans Hagen wrote: > > On 5/1/2020 10:21 AM, Gerben Wierda wrote: >> code it back to a \ ? E.g. something like >>{ ‘\U{XXX}', '\' }, > \utfchar{100} > \Uchar 100 Yes, but the question was: how do I code this in the XML and get it t

[NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
The following code: \enabletrackers[context.trace] %\usemodule[article-basic] \starttypescript [sans] [optima] \setups[font:fallback:sans] \definefontsynonym [Sans] [file:Optima.ttc(Optima Regular)] [features=default] \definefontsynonym [SansBold]

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 09:38, Hans Hagen wrote: > > On 5/1/2020 1:44 AM, Gerben Wierda wrote: >>{ ‘\n', ‘\\strut' }, > often a \zwj or \zwno also works ok (has zero dimensions, contraty to strut; > you could also try \crlf I tried \crlf{} and that worked too (

[NTG-context] Reverse traversing of xml.collected()?

2020-05-01 Thread Gerben Wierda
I’d like to travese the contents of an xml.collected() in a reverse order. I have for connectionFromXML in xml.collected(viewFromXML,"/connection") do parseXMLConnection( rootFromXML, connectionFromXML, viewFromXML, rootFromOverrideXML) end I tried: local relationTable =

[NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path

2020-05-01 Thread Gerben Wierda
I have been looking at lmt_followtext and followtext to get typesetting done along a path. That works fine, except that in my case, I need the text to not be exactly on that path, I need it to hover slightly above tor below he path. Given that the path may have an unpredictable form, that means

  1   2   3   4   5   6   >