[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Pablo Rodriguez via ntg-context
On 9/20/24 04:57, Joel via ntg-context wrote: > [...] > The perhaps "obvious" answer is just make 180  *.tex files, but since > the minimal example above is like 0.01% of the complexity of the real > file, that isn't so easy... Hi Joel, I tried to recreate a document with chapters that contain a

[NTG-context] Re: upload

2024-09-18 Thread Pablo Rodriguez via ntg-context
On 9/17/24 22:12, Henning Hraban Ramm wrote: > [...] > The “discussed things” also involved annotations. Here’s some > documentation: > https://wiki.contextgarden.net/Annotations > Please amend if something’s wrong/missing. Many thanks for your explanation, Hraban. Sorry, but I’m afraid that I ha

[NTG-context] Re: Accessibility

2024-09-18 Thread Pablo Rodriguez via ntg-context
On 9/18/24 08:04, Steffen Wolfrum wrote: > It is a «new» European law: European Accessibility Act (EAA). Until > 28th of June 2025 it has to be transposed by EU-members into > national law. E.g. Germany will have a > «Barrierefreiheitsstärkungsgesetz» (BFSG) in June 2025. Hi Steffen, this is D

[NTG-context] Re: Combining styles (especially bold and italic)

2024-09-03 Thread Pablo Rodriguez via ntg-context
On 9/3/24 18:28, Gerion Entrup wrote: > Hi, > > I have the situation that I want to typeset a special formatted name > within a section heading. > The name contains an italic part while the heading is bold, but both > styles are defined at another place. > Is there a way to tell ConTeXt to combine

[NTG-context] Re: registers in footnotes as page glossaries

2024-08-31 Thread Pablo Rodriguez via ntg-context
On 8/31/24 12:24, M U via ntg-context wrote: > Pablo Rodriguez wrote: >> Hans, >> >> I wonder whether MkXL may have page registers for footnotes. >> > Perhaps a feaseble workaround: > • place a section index after the content of the page > > The cons: > • pagebreaking by sectioning manually the con

[NTG-context] registers in footnotes as page glossaries

2024-08-29 Thread Pablo Rodriguez via ntg-context
Hans, I wonder whether MkXL may have page registers for footnotes. This would be great to have page glossaries, such as in https://geoffreysteadman.com/wp-content/uploads/2017/08/lysiascrito-24aug17w.pdf#page=16 (first apparatus). To be fair, I have asked that a while ago (with MkIV). It would

[NTG-context] Re: Probably a very simple question, but how do I get a page number to be centered, at the bottom and vertically in the middle whilst having my doc margins?

2024-08-19 Thread Pablo Rodriguez via ntg-context
On 8/19/24 17:11, Felix wrote: > Hello mikail, I would send a picture to be more clear with what I > want but it seems to not be possible Hi Felix, attachments to the list should be less than 100kb. If you generate your image as a PNG file, it should fit in that file size. I attach sample image

[NTG-context] slanted fallback and compact fonts

2024-08-19 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: %~ \enableexperiments[fonts.compact] \definefallbackfamily[mainface] [rm][TeX Gyre Pagella] [range={0x0061}, force=yes, it={style:tf, features:{slanted}}] \definefontfamily[mainface] [rm][TeX Gyre Pagella] %[it={style:tf, features:{sla

[NTG-context] Re: Nāgarī for Academics

2024-08-11 Thread Pablo Rodriguez via ntg-context
On 8/11/24 10:40, Jürgen Hanneder via ntg-context wrote: > > Thanks again, in fact both are useful in different situations. > Jürgen Just for the record, the following language short command and start stop are defined for most languages (\it and \fi are already taken by TeX [italics and conditiona

[NTG-context] language not working in transliteration?

2024-08-08 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \mainlanguage[it] \starttext \usetransliteration[serbian] \definetransliteration [MySerbian] [color=red, language=de, vector={serbian to latin}] \definetransliteration [MySerbianX] [MySerbian] [color=blue] \trans

[NTG-context] Re: Nāgarī for Academics

2024-08-08 Thread Pablo Rodriguez via ntg-context
On 8/8/24 13:07, Jürgen Hanneder via ntg-context wrote: > The text below works, thanks for the help! > > But there is one more problem. > > I could not find an elegant method to set the language of the > document to English without disabling Nagari. If one adds > \setupbodyfont[minion] the Nagari p

[NTG-context] Re: Website Pragm ade nl not working

2024-08-05 Thread Pablo Rodriguez via ntg-context
On 8/5/24 12:52, Ursula Hermann wrote: > I just wanted to do the new upload. The Problem is, that the Website > Pragma ade nl is not working, I got an timeout error. Everything seems to work again, Ursula. Just in case it might help, Pablo ___

[NTG-context] Re: Nāgarī for Academics

2024-08-05 Thread Pablo Rodriguez via ntg-context
On 8/5/24 11:31, Jürgen Hanneder via ntg-context wrote: > > I have a few questions concerning the commands for setting up Indic > Fonts, specifically > for the use of Indologists and other academics dealing with Indian Languages. Hi Jürgen, just in case the following might help (no Indian languag

[NTG-context] Re: Metapost logo typesetting

2024-08-03 Thread Pablo Rodriguez via ntg-context
On 8/4/24 06:45, Shiv Shankar Dayal wrote: > Hi, > > I believe that there is a LaTeX package which typesets the METAPOST text > in a certain font, I do not remember which. How can I typeset same > Metapost logo in ConTeXt. It looks like below; These are the right commands for both (according to co

[NTG-context] Re: Alignments of margin notes

2024-08-03 Thread Pablo Rodriguez via ntg-context
On 8/3/24 07:55, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 02.08.2024 um 18:36: >> [...] >> Unless I add the following, inner doesn’t behave as expected (I think it >> is always outer without these lines): >> >>\setuppage

[NTG-context] Re: Alignments of margin notes

2024-08-02 Thread Pablo Rodriguez via ntg-context
On 8/2/24 16:41, Wolfgang Schuster wrote: > [...] > The example below shows which predefined margin blocks rely only on > margindata where > you can change the alignment with \etupmargindata and also the ones > which require \setupmarginframed. > > begin example > \setuppapersize[A4][A3] Sorr

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Pablo Rodriguez via ntg-context
On 8/2/24 01:13, Gerion Entrup wrote: > Ok, I think I understand that in principal. Thanks for the explanation. > Can I somehow know in advance that a margin note makes use of \framed? Hi Gerion, there is an \ifinframed conditional, such as in: \starttext \framed{\ifinframed a\else b\fi} \

[NTG-context] Re: How can I force ConTeXt to display my footnote on the same page as my foot note marker?

2024-07-29 Thread Pablo Rodriguez via ntg-context
On 7/27/24 15:35, ai2472206...@yeah.net wrote: > Hi, > > I have a document that contains a lot of footnotes. > Therefore, I used to separate the footnote number from the footnote text, > which would make the source file look more readable. Hi Muyik, how about two files? The first one with footno

[NTG-context] Re: correcting Wikipedia

2024-07-26 Thread Pablo Rodriguez via ntg-context
On 7/25/24 21:56, Willi Egger wrote: > Hi Pablo, > > thanks for making this correction, a pebble to improve Wikipedia… Hi Willi, I was more interested in not attributing ConTeXt to other person than fixing Wikipedia as first intention. That being said, it surprises me that so (relatively) many L

[NTG-context] correcting Wikipedia

2024-07-25 Thread Pablo Rodriguez via ntg-context
Dear list, just by accident, I discovered that the English Wikipedia had attributed ConTeXt to https://en.wikipedia.org/wiki/Hans_Hagen (a German computer science professor). I corrected this info and also removed the internal links to that article that belong to “our” Hans (Hagen). Just in case

[NTG-context] Re: (any) link with document breaks Reader DC

2024-06-27 Thread Pablo Rodriguez via ntg-context
On 6/27/24 14:04, Hans Hagen via ntg-context wrote: > On 6/27/2024 10:03 AM, Taco Hoekwater wrote: >> [...] >> I also installed a new Reader on my Windows 11 machine, and that >> one worked ok as well. It says “Continuous Release | Version >> 2024.002.20857 | 64 bit”, and it is the Win 11 specific

[NTG-context] Re: (any) link with document breaks Reader DC

2024-06-27 Thread Pablo Rodriguez via ntg-context
On 6/27/24 10:03, Taco Hoekwater wrote: > [...] > On my Mac it did not crash, but that is a Reader from 2021 that I am > not willing to upgrade so I am not sure how useful that information > is. Many thanks for your reply, Taco. I suspect that macOS may not be affected by this issue. > I also ins

[NTG-context] Re: Letter module broken?

2024-06-26 Thread Pablo Rodriguez via ntg-context
On 6/26/24 21:33, Kip Warner wrote: > [...] > Will the modules automatically update when I run ./install.sh, or do I > need to periodically run the following? > >$ mtxrun --script install-modules --install --all Hi Kip, you need the second option. Cheers, Pablo _

[NTG-context] Re: “call for articles” (context meeting 2023)

2024-06-26 Thread Pablo Rodriguez via ntg-context
On 6/24/24 07:25, Henning Hraban Ramm wrote: > [...] > Of course. Try \usemodule[cgj] – the module in the distribution is not > the same as the environment that I use for CGJ anymore, but it should > still work. I should update it, but it’s always in a preliminary state… “Work in progress” is the

[NTG-context] Re: (any) link with document breaks Reader DC

2024-06-26 Thread Pablo Rodriguez via ntg-context
On 6/26/24 08:13, Henning Hraban Ramm wrote: > Am 25.06.24 um 22:24 schrieb Pablo Rodriguez via ntg-context: >> Sorry for asking for this, but would you be so kind to compile (or >> download the attachment) and open it with an updated Acrobat (opening >> Acrobat with the do

[NTG-context] (any) link with document breaks Reader DC

2024-06-25 Thread Pablo Rodriguez via ntg-context
Dear list, investigating the issue of why Acrobat Reader DC doesn’t recognize ConTeXt signatures, I related it to another issue. I use Acrobat Reader DC for Windows at work. DC is regularly updated. Since a year ago or so, if I open a PDF document (opening Acrobat with the document) and double-c

[NTG-context] Re: Inconsistencies with fonts/c2sc feature

2024-06-25 Thread Pablo Rodriguez via ntg-context
On 6/25/24 19:53, Kirill Davidov wrote: > Yeah, I too checked it out of curiosity today, and yeah, the c2sc table > doesn't have the Latin entries. I suppose I will stick to a different > styling or go after the caps manually/with Lua. The "always" and "auto" > values help too, so thanks to you bot

[NTG-context] Re: Inconsistencies with fonts/c2sc feature

2024-06-25 Thread Pablo Rodriguez via ntg-context
On 6/24/24 18:03, Kirill Davidov wrote: > > With STIX Two, c2sc (and smcp) works with any language as long as one > doesn't select a script in the font features, else it only works with > the chosen script. Hi Kirill, \definefontfeature [default] [default] [script=auto] may help there. > With Ne

[NTG-context] Re: “call for articles” (context meeting 2023)

2024-06-23 Thread Pablo Rodriguez via ntg-context
On 6/23/24 21:50, Henning Hraban Ramm wrote: >> [...] >> It would be really helpful for me to have the TeX source of an already >> published article, so I can adapt the template to my article. > [...] > Noting special, besides the header. I just thought about something similar to: \usemodule[ar

[NTG-context] Re: “call for articles” (context meeting 2023)

2024-06-23 Thread Pablo Rodriguez via ntg-context
On 6/22/24 20:29, Henning Hraban Ramm wrote: > Hey, don’t want a journal this year? > > Pretty please… Hraban, well, I think I could write something (so I get a permanent ban on using ConTeXt ever again 😅). It would be really helpful for me to have the TeX source of an already published article,

[NTG-context] Re: (off-topic) hovering over links in Acrobat Reader

2024-06-21 Thread Pablo Rodriguez via ntg-context
On 6/21/24 18:31, Hans Hagen wrote: > [...] > so that you can experiment a bit with it. We might at some point provide > optional descriptions per link but the quesiton is how to cleanly > interface this (easier if you use \define... instead of your own macros > for urls). Many thanks for the new

[NTG-context] Re: weekend update

2024-06-21 Thread Pablo Rodriguez via ntg-context
On 6/21/24 19:00, Hans Hagen via ntg-context wrote: > [...] > The last option can be handy when you don't want to make harvesting your > documents too easy for these ai bots (as in cloud based pdf stuff). It's > the first outcome of the multi-year, multi-stage, very scientific > 'inacessible pdf' p

[NTG-context] Re: (off-topic) hovering over links in Acrobat Reader

2024-06-20 Thread Pablo Rodriguez via ntg-context
On 6/19/24 22:10, Wolfgang Schuster wrote: > [...] > This should be \protected\def > > \protect\def\myhref#1#2% >{...} Sorry for the mess, Wolfang and Hraban. I wasn’t aware of the mistake, since the PDF document was neither deleted not showing the colorful error word. I created the document

[NTG-context] Re: (off-topic) hovering over links in Acrobat Reader

2024-06-20 Thread Pablo Rodriguez via ntg-context
On 6/19/24 21:55, Henning Hraban Ramm wrote: > Am 19.06.24 um 19:16 schrieb Pablo Rodriguez via ntg-context: >> Would you be so kind to test the attached document (and the one you may >> generate from the sample source) hovering over the link frames in >> Acrobat (ideally

[NTG-context] (off-topic) hovering over links in Acrobat Reader

2024-06-19 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following source: \setupbodyfont[dejavu, sans, 24pt] \setupinteraction[state=start, style=, color=, contrastcolor=, display=new] \enabledirectives[references.border=darkgreen] \def\myurl#1% {{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}} \protect\

[NTG-context] Re: digital signing in ConTeXt

2024-06-19 Thread Pablo Rodriguez via ntg-context
On 6/19/24 09:28, Hans Hagen via ntg-context wrote: >> [...] >> I‘m afraid I don’t know what I’m missing. > probably a couple of libraries ... > > local libfiles = os.name == "windows" > and { "libcrypto-3-x64", "libssl-3-x64" } On MSYS2 (Win10), I have both libs even on the bin directory.

[NTG-context] Re: new upload

2024-06-19 Thread Pablo Rodriguez via ntg-context
On 6/18/24 22:15, Hans Hagen wrote: > [...] > - for pablo to test signing Many thanks for this, Hans. It might take a while, since I would like to test this for some time. Pablo ___ If your question is of interest t

[NTG-context] Re: digital signing in ConTeXt

2024-06-18 Thread Pablo Rodriguez via ntg-context
On 6/18/24 19:28, Pablo Rodriguez via ntg-context wrote: > [...] > I have just discovered that verify didn’t work with the binary. > > Figuring out now how to do the testing with the library. For some strange reason, I cannot get --library verification. I only get: sign pdf| ve

[NTG-context] Re: digital signing in ConTeXt

2024-06-18 Thread Pablo Rodriguez via ntg-context
On 6/18/24 18:42, Hans Hagen via ntg-context wrote: > On 6/18/2024 6:26 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> As far as I know, this has to be a reason for digest mismatch (or a huge >> hash collision). > > could be (depends on checker) but it we

[NTG-context] Re: digital signing in ConTeXt

2024-06-18 Thread Pablo Rodriguez via ntg-context
On 6/18/24 10:27, Hans Hagen via ntg-context wrote: > On 6/18/2024 8:44 AM, Pablo Rodriguez via ntg-context wrote: >> [...] >> Generating certificates with OpenSSL is basically free. > > you cannot use a 'web certificate' Self-signed certificates may be used to

[NTG-context] Re: digital signing in ConTeXt

2024-06-17 Thread Pablo Rodriguez via ntg-context
On 6/18/24 00:52, Hans Hagen via ntg-context wrote: > On 6/17/2024 7:51 PM, Pablo Rodriguez via ntg-context wrote: >> [...]>> 2. I cannot get any signature display in Acrobat. Does any PDF >> viewer (I >> have tested this with pdfsig from poppler and MuPDF-GL) display

[NTG-context] Re: Transparency in external PDFs does not work

2024-06-17 Thread Pablo Rodriguez via ntg-context
On 6/17/24 17:07, Gerion Entrup wrote: > [...] > I use Okular/Poppler as PDF viewer. > Can I fix this somehow or is it a bug somewhere deeper? Hi Gerion, I can confirm your issue. It seems to be an issue with LMTX. LuaTeX has no problem with the file. Just in case it helps, Pablo ___

[NTG-context] Re: digital signing in ConTeXt

2024-06-17 Thread Pablo Rodriguez via ntg-context
On 6/17/24 20:21, Henning Hraban Ramm wrote: >> [...] > Can confirm. Many thanks for your testing, Hraban. > Before patching, I checked with … > – Acrobat Reader: doesn’t recognize a signature > – Foxit Reader: "a signature is invalid" The signature is invalid since it leaves an space outside th

[NTG-context] digital signing in ConTeXt

2024-06-17 Thread Pablo Rodriguez via ntg-context
Dear list, the latest version of LMTX can digitally sign PDF documents. It requires OpenSSL installed (since it does the crypto part). I have two issues that I would like to be tested by others. A sample certificate may be found at https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/message/

[NTG-context] Re: expanded doif's

2024-06-17 Thread Pablo Rodriguez via ntg-context
On 6/17/24 16:52, Wolfgang Schuster wrote: > Hans van der Meer schrieb am 17.06.2024 um 09:01: >> I want to show an errormessage when the macro is undefined. It requires >> expansion of \xmlatt{#1}{name}. dr. van der Meer, \xmldoifatt (with ifnot and ifelse variants) should cover that case (https

[NTG-context] \xmlinlineverbatim not inline

2024-06-16 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \startbuffer[demo] text \stopbuffer \startxmlsetups xml:sample \xmlsetsetup{#1}{text}{xml:*} \stopxmlsetups \xmlregistersetup{xml:sample} \startxmlsetups xml:text block: a \xmlverbatim{#1} b\\ inline: a \xmlinlineverbati

[NTG-context] Re: comment on the wiki

2024-06-12 Thread Pablo Rodriguez via ntg-context
On 6/13/24 04:17, Max Chernoff wrote: > Hi Pablo (and others), > > On Wed, 2024-06-12 at 18:42 +0200, Pablo Rodriguez wrote: >> Is there any way in which regular wiki contributions may help in >> removing the accounts or at least all the pages generated with these >> accounts? > > I also don't have

[NTG-context] comment on the wiki

2024-06-12 Thread Pablo Rodriguez via ntg-context
Dear wiki maintainers (Taco at others), I have found in the user creation log: 05:40, 7 June 2024 User account FelicaEnyeart34 was created 22:59, 26 May 2024 User account NonaAlber414387 was created 04:33, 26 May 2024 User account Tony83264596 was created 15:17, 24 May 2024 User account WallyGart

[NTG-context] suggestion: two templates for the wiki

2024-06-10 Thread Pablo Rodriguez via ntg-context
Dear Taco and Hraban, trying to improve the XML page from the wiki, I think it would be extremely useful to have two templates for inline code: {{xml|…}}: inline XML highlighted as for blocks. {{tex|…}}: inline TeX code highlighted as for blocks. As for the second, {{cmd|…}} includes a link (

[NTG-context] Re: [ remove all metadata in pdf ]

2024-06-10 Thread Pablo Rodriguez via ntg-context
On 6/10/24 17:49, vm via ntg-context wrote: > Is there a parameter for context lmtx to strip all metadata from the > generated pdf? > Or is that a better task for exiftool afterwards? \enabledirectives[backend.date=none] But this doesn’t remove all metadata. Title, Producer and XMP data still

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread Pablo Rodriguez via ntg-context
On 6/8/24 17:09, seyal zavira wrote: > Thanks > > sorry for incomplete example > the code below shows the problem better: > \setupinteraction[state=start] As for the color, it is caused by \setupinteraction. You can remove it with: \setupinteraction[state=start, style=, color=, contrastcolor=,

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread Pablo Rodriguez via ntg-context
On 6/8/24 13:16, seyal.zav...@gmail.com wrote: > Hi all, > > There's a problem when I want to define the note so that it's > displayed according to the size and font of the text: Not sure I’m getting your point. But this should show a difference in font size: \definenote[Mynote] \starttext

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Pablo Rodriguez via ntg-context
On 6/8/24 09:49, Wolfgang Schuster wrote: > Denis Maier via ntg-context schrieb am 08.06.2024 um 09:14: >> [...]  >> Hi, >> I've read Thomas Schmitt's My Way as an excellent introduction in XML >> processing with ConteXt, but I can't find it anywhere anymore... Does >> anyone know what happened to

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Pablo Rodriguez via ntg-context
On 6/8/24 10:49, vm via ntg-context wrote: > in the document > https://wiki.contextgarden.net/images/8/8c/xhtml.pdf > > near the end an essential line got truncated: > [...] > how should this line continue ? > {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua{getmeas("\xmla As this comes from https

[NTG-context] Re: ConTeXt source from XML

2024-06-07 Thread Pablo Rodriguez via ntg-context
On 6/6/24 22:53, Christoph Edenhauser wrote: >> [...] >> XPath seems to have as it primary purpose to address the nodes of XML trees. >> [...] >> If you don’t want this to happen, you have to encode them in the TEI XML >> sources. > > In my case, the connection to the original source will be lost. 

[NTG-context] Re: ConTeXt source from XML

2024-06-06 Thread Pablo Rodriguez via ntg-context
On 6/5/24 20:23, Christoph Edenhauser wrote: > Dear Pablo, > > Thank you very much for your very clear, detailed and elaborate > explanations.  - Over the next few days I will meditate on the ConTeXt > way to handle XML and on my workflow and take a look at lpath (never > heard of it). And somehow

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
On 6/4/24 22:09, Hans Hagen wrote: > [...] > There is a xml-mkiv-tricks.tex file in the distribution (no pdf is > seems so I need to add that one.) Hans, sorry, I forgot to reply earlier. I think this is already included in https://www.pragma-ade.com/general/manuals/xml-mkiv.pdf#page=53 (as chap

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
On 6/5/24 12:00, Christoph Edenhauser wrote: > [...] > I realise that it is somehow difficult for me to describe what I would > like to achieve, perhaps what I have in mind is not even possible. Hi Christoph, as far as I know (and as Hraban has already mentioned), this is not possible. Either XS

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Pablo Rodriguez via ntg-context
On 6/4/24 13:51, Christoph Edenhauser wrote: > Dear list, > > I am currently trying to get into Context and XML. I would like to do > the typographical fine-tuning in Context and not in the XML document. My > question is: Is it possible to have ConTeXt output a (preliminary) > ConTeXt file instead

[NTG-context] issue with signing

2024-06-03 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed[background=signature,framecolor=darkred]

[NTG-context] slides from 2023 meeting

2024-05-29 Thread Pablo Rodriguez via ntg-context
Hi there, just out of curiosity, are the slides from the 2023 meeting (https://meeting.contextgarden.net/2023/programme.shtml) planned for public release? Many thanks for your help, Pablo ___ If your question is of i

[NTG-context] Re: regular expression as lua pattern

2024-05-29 Thread Pablo Rodriguez via ntg-context
On 5/29/24 13:00, Henning Hraban Ramm wrote: > [...] > See also Taco’s introduction to LPEG in > https://articles.contextgarden.net/journal/2019/77-98.pdf Many thanks for the reference, Hraban. I need to start digesting that to learn about LPEG. Pablo

[NTG-context] Re: regular expression as lua pattern

2024-05-29 Thread Pablo Rodriguez via ntg-context
On 5/28/24 20:06, Hans Hagen wrote: > On 5/28/2024 6:25 PM, Tomáš Hála wrote: >> Hi Pablo, >> >> unfortunately, that it is not possible: >> >> http://lua-users.org/wiki/PatternsTutorial, section Limitations. > > \starttext > \startTEXpage[pagestate=start, offset=1em] > \startluacode

[NTG-context] Re: regular expression as lua pattern

2024-05-28 Thread Pablo Rodriguez via ntg-context
On 5/28/24 18:25, Tomáš Hála wrote: > Hi Pablo, > > unfortunately, that it is not possible: > > http://lua-users.org/wiki/PatternsTutorial, section Limitations. Many thanks for your reply, Tomáš. It is clear to me now. Pablo ___

[NTG-context] regular expression as lua pattern

2024-05-28 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startTEXpage[pagestate=start, offset=1em] \startluacode local str = "this is that" context(str:match("(this|these)")) \stopluacode \stopTEXpage \stoptext In short,

[NTG-context] Re: wrong font scaling in LMTX?

2024-05-28 Thread Pablo Rodriguez via ntg-context
On 5/26/24 20:50, Wolfgang Schuster wrote: > [...] > I get the same results with the default font mode in MkIV and LMTX but > when I add > > \enableexperiments[fonts.compact] > > the x and xx sizes are wrong. Many thanks for having fixed that in latest, both Hans and Wolfgang. Pablo _

[NTG-context] Re: Number in a circle

2024-05-28 Thread Pablo Rodriguez via ntg-context
On 5/28/24 17:47, Pablo Rodriguez via ntg-context wrote: > On 5/27/24 19:10, Kip Warner wrote: >> [...] >>to say pt, for printer's55points. two letters. >> >> I'm not sure what it is referring to. > > fw is a new dimensio unit only available in LMT

[NTG-context] Re: Number in a circle

2024-05-28 Thread Pablo Rodriguez via ntg-context
On 5/27/24 19:10, Kip Warner wrote: > [...] > Thanks Wolfgang. I gave it a try on https://context-on-web.eu/, but it > failed: > >Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, >bp, dk, or54sp; but yours is a new one! I'll assume that you meant >to say pt, for printer

[NTG-context] Re: wrong font scaling in LMTX?

2024-05-26 Thread Pablo Rodriguez via ntg-context
On 5/26/24 20:50, Wolfgang Schuster wrote: > [...] > I get the same results with the default font mode in MkIV and LMTX but > when I add > > \enableexperiments[fonts.compact] > > the x and xx sizes are wrong. Many thanks for your reply, Wolfgang. I tend to forget that I have always compact fonts

[NTG-context] wrong font scaling in LMTX?

2024-05-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][ss][TeX Gyre Heros] [scale=0.125] \setupbodyfont[mainface] \starttext \startTEXpage[pagestate=start, offset=1em] \r

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-18 Thread Pablo Rodriguez via ntg-context
On 5/17/24 20:46, madiazm.eo...@gmail.com wrote: > [...] > here is the last part of my script (the prior definitions are not > problematic, since they worked when only using "miFuente". It seems to > be something in "miCorm" that produces the protruding Just a comment about typescripts. At least

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-18 Thread Pablo Rodriguez via ntg-context
On 5/17/24 20:22, madiazm.eo...@gmail.com wrote: > thanks Pablo, but this is strange > [...] > The strange thing is that it is only the first section that > protrudes, the other sections are right (as seen in the link). > Therefore it must not be the code definition, since in that case all > sectio

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-17 Thread Pablo Rodriguez via ntg-context
On 5/17/24 11:02, madiazm.eo...@gmail.com wrote: > thanks Wolfgang for your advice and sorry for being so verbose, but > since the margins are "included" in the problem I decided to put my > layout there too. > > I made your suggested changes and unfortunately it doesnt work, but > being a bit surp

[NTG-context] expansion question

2024-05-15 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start] \setupattachments[method=hidden] \protected\def\PDFfile[#1]% {\cldcontext{file.addsuffix("#1", "pdf")}} \starttext \doifelsefile{\PDFfile[xml-mkiv]} {yes}{no} \attachment[file={\PDFfil

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-14 Thread Pablo Rodriguez via ntg-context
On 5/9/24 15:18, Pablo Rodriguez via ntg-context wrote: > [...] > Many thanks for your improvement, Wolfgang. > > It would be great to have it included in standard ConTeXt. Hans, many thanks for having added this to current latest (2024.05.13 19

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-09 Thread Pablo Rodriguez via ntg-context
On 5/9/24 12:57, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 08.05.2024 um 18:05: >> [...] >> Since \type doesn’t collapse hyphens, wouldn’t it be possible to add >> \nohyphencollapsing to \typeinlinebuffer just for the sake of output >> co

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-08 Thread Pablo Rodriguez via ntg-context
On 5/7/24 22:37, Wolfgang Schuster wrote: > [...] > \typebuffer disables automatic \endash and \emdash with the > \nohyphencollapsing command > but the command isn't used for \typeinlinebuffer. Many thanks for your explanation, Wolfgang. Since \type doesn’t collapse hyphens, wouldn’t it be possibl

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-07 Thread Pablo Rodriguez via ntg-context
On 5/6/24 22:45, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 06.05.2024 um 20:06: >> Dear list, >> >> I have the following sample: >> >>\definefontfamily[mainface][tt][TeX Gyre Termes] > > Apply the none featu

[NTG-context] weird \inlinetypebuffer interaction

2024-05-06 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][tt][TeX Gyre Termes] \setupbodyfont[mainface] \starttext \startbuffer context --purgeall \stopbuffer inline \typeinlinebuffer block: \typebuffer \stoptext As long as there is no defined font family for mono,

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

2024-04-29 Thread Pablo Rodriguez via ntg-context
On 4/29/24 19:32, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 18:21: >> Is \protected the same as \unexpanded? > > Yes they are the same (\protected is the primitive and \unexpanded is a > copy) but this wasn't always the case.

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

2024-04-29 Thread Pablo Rodriguez via ntg-context
On 4/29/24 18:04, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 17:22: >> [...] >> Which is the right way to use "interfaces.definecommand" to get a simple >> command as in standard TeX? >> >> I mean, no a non \p

[NTG-context] unprotecting when defining in Lua

2024-04-29 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startluacode function document.test(str) context(str) end interfaces.definecommand { name = "testing", protected = false, macro = document.test, } \stopluacode \meaningfull\testing \def\test#1

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 19:52, Denis Maier via ntg-context wrote: >> Wolfgang Schuster hat am 26.04.2024 19:29 CEST geschrieben: >> The inbetween setting works because ConTeXt checks at the start of >> each line whether it's empty (in this case the value is used) or not. >> >> When you add a \par you just end t

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 19:50, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 19:04: >> I tried this approach (I hope it isn’t wrong): >> >>\starttext >>\expanded\tolerant\def\MyCommand#_#,#_#,#_#,#_{% > > The \expanded mod

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 18:18, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 17:29: >> What is wrong in my definition above? > > There is nothing wrong, this is just a side effect of the scanner used > with the \do...groupempty commands. To have more

[NTG-context] wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \def\MyCommand{\doquadruplegroupempty\doMyCommand} \def\doMyCommand#1#2#3#4{% \iffourthargument #4% \orelse\ifthirdargument #3% \else #2% \fi} \MyCommand{}{second}{third}{fourth},\\ \MyCommand{}{secon

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 15:33, denis.ma...@unibe.ch wrote: > Hi, > > I’m trying to typeset a poem from XML, but I can’t figure out how to > make the inbetween key working here. > > As the source is XML, I cannot just add an empty line to start a new > group of lines inside \startlines…\stoplines. I guess, there

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-24 Thread Pablo Rodriguez via ntg-context
On 4/24/24 02:15, Joel via ntg-context wrote: > [...] Any idea how I can get current footnote value? Hi Joel, current footnote value can be accessed with \rawcountervalue[footnote], such as in: \starttext \dorecurse{25} {\ \footnote{Footnote \recurselevel}: \rawcountervalue[footno

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Pablo Rodriguez via ntg-context
On 4/22/24 15:51, Joel via ntg-context wrote: > A few years back, I tried using endnotes with ConTeXt-SBL, and it failed > to compile. I'm forced to try again (due to some other issue with > footnotes), and instead of compiling to error, it compiles, but the > footnote's message ends up being empty

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-21 Thread Pablo Rodriguez via ntg-context
On 4/22/24 02:45, Joel via ntg-context wrote: > I'm three days out from sending my work to an editor, and found some > serious problem: many footnotes just aren't rendering. Joel, please provide a minimal sample, otherwise it is really hard to help. > I've seen some 2+ year old mailing list post

[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Pablo Rodriguez via ntg-context
On 4/19/24 17:48, Denis Maier via ntg-context wrote: > Hi again, > > just a quick follow up on this one. Can anyone reproduce this? Hi Denis, I can reproduce it. > Would be good to know how this can be fixed. I have this in a real > document, and as I’m typesetting a XML source I cannot just adj

[NTG-context] Re: minwidth not working ?

2024-04-19 Thread Pablo Rodriguez via ntg-context
On 4/19/24 17:51, Denis Maier via ntg-context wrote: > Hi again, > > another follow up. Can anyone confirm this issue? Is there a way to set > the minimal width of graphics? Hi Denis, maximum widht or height work fine, but their minimum counterparts seem not to be working at all: \showframe

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-11 Thread Pablo Rodriguez via ntg-context
On 4/11/24 18:56, Hans Hagen via ntg-context wrote: > [...] >>> \protected\def\PrintTheThing{\ctxlua{document.print_the_thing()}} >> >> Sorry, but why \protected is required or recommended here? > > depends if you want it to be expandable I see now that "still.pdf" has a full chapter (#3, titled “

[NTG-context] Re: unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua

2024-04-11 Thread Pablo Rodriguez via ntg-context
On 4/11/24 18:56, Hans Hagen via ntg-context wrote: > [...] > it searches for mtxrun.lua and context.lua in the same path so you need: > > luametatex.exe > mtxrun.exe (can be link to luametatex.exe) > context.exe (can be link to luametatex.exe) > context.lua > mtxrun.lua > > all in the same (bib) p

[NTG-context] Re: unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua

2024-04-11 Thread Pablo Rodriguez via ntg-context
On 4/11/24 17:39, Denis Maier via ntg-context wrote: > [...] > Ok. It wasn't there. I have now copied it from my Miktex installation, but > it still does not work. (Looks like some path issue. The luatex binary from > the miktex installation seems to take priority over the one now in the > ConTeXt

[NTG-context] Re: unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua

2024-04-11 Thread Pablo Rodriguez via ntg-context
On 4/10/24 22:28, Denis Maier wrote: >> [...] >> context --luatex --generate > > Thanks, Pablo. > I've tried it, but it doesn't seem to work... I get the same result on Win64 when I move the luatex binary from the tex/texmf-win64/bin/ directory. This may sound stupid, but could you check whethe

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-11 Thread Pablo Rodriguez via ntg-context
On 4/10/24 21:48, Hans Hagen via ntg-context wrote: > On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> I wonder whether there is a proper way in the Lua code to avoid >> [[\luaescapestring{}]] in \ctxlua. >> [...] > context(tokens.s

[NTG-context] \luaescapestring in proper Lua

2024-04-10 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startluacode function document.print_the_thing(str) context(str) end \stopluacode \unexpanded\def\PrintTheThing#1{% \ctxlua{document.print_the_thing([[\luaescapestring{#1}]])}} \PrintTheThing{a \em b {c}} \stoptext I w

[NTG-context] Re: unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua

2024-04-10 Thread Pablo Rodriguez via ntg-context
On 4/10/24 13:59, Denis Maier via ntg-context wrote: > Hi, > I wanted to test my earlier example (float placement) also with MKIV, but > context ---luatex … > give me this error message : > unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua > How can I make it work? Hi Denis, as far as I kn

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Pablo Rodriguez via ntg-context
On 4/6/24 11:43, madiazm.eo...@gmail.com wrote: > Hi everyone, Hi Miguel, > […] > Am I missing something on the use of this ligature? I don’t think so. In some cases you may not get the ligature for a good reason: \starttyping program --option=value file.ext \stoptyping It would make no

  1   2   3   4   5   6   >