[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-16 Thread Florent Michel
Thanks again Bruce! I had not thought about the possibility of parsing comments in the tex file from an external tool, but that sounds like a very good option. I like the fact that it would allow the tex file to contain all the information needed to keep track of what is represented without having

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-16 Thread Bruce Horrocks
estion was indeed consistency, e.g. ensuring figure >>> captions stay up to date with what the figures show when changing >>> parameters. Thinking more about it, the second solution you mention seems >>> to be a better option, though - I can simply define the parameters in an

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-16 Thread Henning Hraban Ramm
. Thinking more about it, the second solution you mention seems to be a better option, though - I can simply define the parameters in an external file and read it from both the PDF solver and ConTeXt to ensure consistency. Thanks for mentioning it! Thank you also for mentioning \executesystemcommand

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-16 Thread Bruce Horrocks
about it, the second solution you mention seems to be a better > option, though - I can simply define the parameters in an external file and > read it from both the PDF solver and ConTeXt to ensure consistency. Thanks > for mentioning it! > > Thank you also for mentioning \e

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-15 Thread Florent Michel
simply define the parameters in an external file and read it from both the PDF solver and ConTeXt to ensure consistency. Thanks for mentioning it! Thank you also for mentioning \executesystemcommand, which I was not aware of! Best regards, Florent Le dim. 15 sept. 2024 à 21:31, Bruce Horrocks a écrit

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-15 Thread Bruce Horrocks
> On 14 Sep 2024, at 21:46, Florent Michel wrote: > > TL;DR: Could building LuaMetaTeX with the `-fPIC` flag for the Lua library > have negative consequences? Is there a better way to be able to call external > C functions from ConTeXt? This seems a bit drastic. Why can’t y

[NTG-context] Calling C code from ConTeXt LMTX

2024-09-14 Thread Florent Michel
Hello, TL;DR: Could building LuaMetaTeX with the `-fPIC` flag for the Lua library have negative consequences? Is there a better way to be able to call external C functions from ConTeXt? I am working on a small project where it would be convenient to call functions written in C (possibly pre

[NTG-context] Re: Defining mathsymbols from unicode char

2024-08-29 Thread Wolfgang Schuster
Jethro Djan schrieb am 29.08.2024 um 21:27: Dear all, 1. I am trying to define the "pitchfork" unicode character(https://unicodeplus.com/U+22D4) to use in ConTeXt as stated on page 387 of new math manual authored by Hans and Mikael: \definemathsymbol[pitchfork][relation]["22D4] It works with

[NTG-context] Defining mathsymbols from unicode char

2024-08-29 Thread Jethro Djan
Dear all, 1. I am trying to define the "pitchfork" unicode character( https://unicodeplus.com/U+22D4) to use in ConTeXt as stated on page 387 of new math manual authored by Hans and Mikael: \definemathsymbol[pitchfork][relation]["22D4] It works with some unicode characters and not others (like th

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-21 Thread Hans Hagen
On 6/21/2024 2:13 AM, Kip Warner wrote: On Tue, 2024-06-18 at 18:28 -0700, Kip Warner wrote: On Tue, 2024-06-18 at 18:48 +0200, Hans Hagen wrote: then use \alwayscite Hey Hans. I note that command is not documented (yet) so thank you for providing that. Thank you Hans for documenting:

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-20 Thread Kip Warner
On Tue, 2024-06-18 at 18:28 -0700, Kip Warner wrote: > On Tue, 2024-06-18 at 18:48 +0200, Hans Hagen wrote: > > then use \alwayscite > > Hey Hans. I note that command is not documented (yet) so thank you > for providing that. Thank you Hans for documenting: https://wiki.contextgarden.net/Comm

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-19 Thread Kip Warner
On Wed, 2024-06-19 at 09:24 +0200, Hans Hagen wrote: > so best update then ... a while ago we had some addition for > references and that involved an extra argument someplace which is > what you see ... seems to be solved in the meantime, if not i'll look > at it > > (i assume you use the installe

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-19 Thread Hans Hagen
On 6/19/2024 3:28 AM, Kip Warner wrote: But on my machine which has ConTeXt 2023.05.05, I see the following: so best update then ... a while ago we had some addition for references and that involved an extra argument someplace which is what you see ... seems to be solved in the meantime, if

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-18 Thread Kip Warner
On Tue, 2024-06-18 at 18:48 +0200, Hans Hagen wrote: > then use \alwayscite Hey Hans. I note that command is not documented (yet) so thank you for providing that. That works in getting the reference typeset without having to list all of them. That at least gets the reference to typeset, but back

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-18 Thread Hans Hagen
On 6/18/2024 6:38 PM, Kip Warner wrote: On Tue, 2024-06-18 at 18:16 +0200, Hans Hagen wrote: you need to place a list in order to get some ref Is there no way to use references without having to list the entire bibliography? then use \alwayscite % hidden : mark for list, don't show in text

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-17 Thread Kip Warner
On Tue, 2024-06-18 at 00:54 +0200, Hans Hagen wrote: > complete example needed > > - tex file > - bib file Hello Hans, While trying to prepare a minimal for you I noticed that now all of my footnotes disappear. Here is a minimal using the buffer method so there is only one file: \startbuffer

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-17 Thread Hans Hagen via ntg-context
On 6/17/2024 7:57 PM, Kip Warner wrote: Hello list, I recently upgraded my distro release to Ubuntu Noble on one of my machines. The ConTeXt packages that were previously for 2021.03.05.20230120 were upgraded to 2023.05.05.20230730. Since the upgrade I've noticed my BibTeX footnotes that previo

[NTG-context] Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-17 Thread Kip Warner
Hello list, I recently upgraded my distro release to Ubuntu Noble on one of my machines. The ConTeXt packages that were previously for 2021.03.05.20230120 were upgraded to 2023.05.05.20230730. Since the upgrade I've noticed my BibTeX footnotes that previously looked like this:    https://imgur.c

[NTG-context] Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-15 Thread Kip Warner
Hello list, I recently upgraded my distro release to Ubuntu Noble on one of my machines. The ConTeXt packages that were previously for 2021.03.05.20230120 were upgraded to 2023.05.05.20230730. Since the upgrade I've noticed my BibTeX footnotes that previously looked like this: https://imgur.c

[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("

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Thomas A. Schmitz
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: \startxmlsetups xml:img \placefigure[here] [\xmlatt{#1}{src}] {\xmlatt{#1}{alt}} {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua{getmeas

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread vm via ntg-context
in the document https://wiki.contextgarden.net/images/8/8c/xhtml.pdf near the end an essential line got truncated: \startxmlsetups xml:img \placefigure[here] [\xmlatt{#1}{src}] {\xmlatt{#1}{alt}} {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua{getmeas("\xmla \stopxmlsetups how should this l

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Wolfgang Schuster
our task (the one reserved to final users) to compose a proper introduction on how to typeset XML sources with ConTeXt. Borrowing the title from other work, “XML in Proper ConTeXt” (actually taken from https://www.berenddeboer.net/tex/LaTeX2ConTeXt.pdf). Hi, I've read Thomas Schmitt's My

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Denis Maier via ntg-context
at way.   It is part of our task (the one reserved to final users) to compose a proper introduction on how to typeset XML sources with ConTeXt.   Borrowing the title from other work, “XML in Proper ConTeXt” (actually taken from

[NTG-context] Re: ConTeXt source from XML

2024-06-07 Thread Henning Hraban Ramm
Am 07.06.24 um 21:41 schrieb Pablo Rodriguez via ntg-context: It is part of our task (the one reserved to final users) to compose a proper introduction on how to typeset XML sources with ConTeXt. Have a look at the XMl related articles in https://articles.contextgarden.net/journal/2019.html

[NTG-context] Re: ConTeXt source from XML

2024-06-07 Thread Pablo Rodriguez via ntg-context
leaning strongly towards TEI, also because I could try > to remove the annotations via XSLT once the work is complete, diff the > result with the original source and improve it). And besides, > XML+ConTeXt looks quite elegant from the distance of my ignorance. If you are familiar with

[NTG-context] ConTeXt source from XML

2024-06-06 Thread Christoph Edenhauser
try to backport corrections, the connection will be lost at the very moment when we will annotate the source text. From this point of view, an independent source is created here anyway, so I have the freedom to choose between TEI or TeX. At the moment I'm leaning strongly towards TEI,

[NTG-context] Re: ConTeXt source from XML

2024-06-06 Thread Hans Hagen via ntg-context
the TEI XML sources. One last suggestion about proofreading. This is something I learnt from personal experience. The first reading is much better to catch errors in the text than the subsequent ones. Having the text properly formatted and printed on paper helps a lot to spot errors. Reading

[NTG-context] Re: ConTeXt source from XML

2024-06-06 Thread Pablo Rodriguez via ntg-context
last suggestion about proofreading. This is something I learnt from personal experience. The first reading is much better to catch errors in the text than the subsequent ones. Having the text properly formatted and printed on paper helps a lot to spot errors. Reading source code is cheaper (no doubt),

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Christoph Edenhauser
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 I have the impression that the next few days will l

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
ge=53 (as chapter 5 from xml-mkiv.pdf). The file from the distribution is the same as the one online (same SHA512, just in case). Many thanks for your help, Pablo ___ If your question is of interest to others as well, p

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Hans Hagen
On 6/5/2024 2:16 PM, Henning Hraban Ramm wrote: Am 05.06.24 um 12:00 schrieb Christoph Edenhauser: My Question is, is it possible to generate a second context file2.tex with the help of this first xml-mapping file1.tex, where all the xml-nodes from the xml file are mapped to contex commands

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
ate a second context file2.tex > with the help of this first xml-mapping file1.tex, where all the > xml-nodes from the xml file are mapped to contex commands which then > looks something like this: I‘m afraid this is not possible (it works in a different way) > I would then like to

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Christoph Edenhauser
Dear Hraban, dear List Thank you for your suggestions. I suppose, it would have been too nice if I could have left the XSLT path. Thank you very much for your patience and help, Christoph ___ If your question is of

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Henning Hraban Ramm
Am 05.06.24 um 12:00 schrieb Christoph Edenhauser: My Question is, is it possible to generate a second context file2.tex with the help of this first xml-mapping file1.tex, where all the xml-nodes from the xml file are mapped to contex commands Hi, I don’t find it hard to understand, but I

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Christoph Edenhauser
: My Question is, is it possible to generate a second context file2.tex with the help of this first xml-mapping file1.tex, where all the xml-nodes from the xml file are mapped to contex commands which then looks something like this: \starttext \startchapter[title=St. Martin]\stopchapter \start

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Hans Hagen
On 6/4/2024 9:21 PM, Christoph Edenhauser wrote: Dear Pablo, dear list That's great, thank you very much for your suggestion. That seems to me to be a very elegant solution to the next two problems that were actually still ahead of me. And now to my initial question, which I didn't specify pr

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Christoph Edenhauser
Dear Pablo, dear list That's great, thank you very much for your suggestion. That seems to me to be a very elegant solution to the next two problems that were actually still ahead of me. And now to my initial question, which I didn't specify precisely enough. I have the following workflow in

[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] ConTeXt source from XML

2024-06-04 Thread Christoph Edenhauser
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 of typesetting a PDF file, for further editing? Ch

[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

[NTG-context] Re: MyWay from dl.contextgarden.net

2024-05-19 Thread garulfo
Thanks Wolfgang, links are up-to-date https://wiki.contextgarden.net/This_Way_-_My_Way#MyWay ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / htt

[NTG-context] Re: MyWay from dl.contextgarden.net

2024-05-17 Thread Hans Hagen
On 5/17/2024 10:49 PM, garu...@azules.eu wrote: Several documents previously stored on dl.contextgarden.net are no longer accessible. https://wiki.contextgarden.net/This_Way_-_My_Way#MyWay Are they available on another server ? or is there a copy somewhere else ? Thanks for your help everyth

[NTG-context] MyWay from dl.contextgarden.net

2024-05-17 Thread garulfo
Several documents previously stored on dl.contextgarden.net are no longer accessible. https://wiki.contextgarden.net/This_Way_-_My_Way#MyWay Are they available on another server ? or is there a copy somewhere else ? Thanks for your help Garulfo __

[NTG-context] How to place text, but make it completely hidden from viewers?

2024-05-09 Thread Joel via ntg-context
I have found a few situations is confusing/breaking ConTeXt: - Footnotes inside tables, figures, frames, margins (won't render the cited item). - Custom index items inside those items (displays "entry not flushed"). My workaround has been to define a size 0 font \tfz, then put it in a block like

[NTG-context] Re: How to stop ConTeXt from thinking period is at the end of a sentence?

2024-05-05 Thread Denis Maier via ntg-context
https://wiki.contextgarden.net/French_spacing Joel via ntg-context hat am 05.05.2024 00:30 CEST geschrieben:     I noticed that some code is being rendered wrong, most especially apparent in a column environment where someti

[NTG-context] How to stop ConTeXt from thinking period is at the end of a sentence?

2024-05-04 Thread Joel via ntg-context
I noticed that some code is being rendered wrong, most especially apparent in a column environment where sometimes the text can get stretched a bit more to fit the column width nicer. If a sentence says "They appeared between c. 1200 BCE and c. 1500 CE." it appears ConTeXt thinks that the perio

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-28 Thread ai2472206007
Thanks for the detailed answer, my problem was solved very well through the code you provided -- Muyik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-cont

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-27 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 25.04.2024 um 10:24: hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option of [setup

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread ai2472206007
Thanks for your reply. The kanji part requires a specific font and typescript file, which I defined on my own computer but forgot to add to this example. This is something I didn't take into account. It's true, I need to think about what exactly my command needs, not build an all-powerful comm

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread Bruce Horrocks
> On 25 Apr 2024, at 09:24, ai2472206...@yeah.net wrote: > > But what I don't know is how to get it to inherit the options of other > commands and perform these features correctly. Your example didn't work for me - none of the Chinese|Japanese[1] characters showed. AFAIK there is no way to "

[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option of [setupcounter]. I've defined the following sidenote command b

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-20 Thread Bruce Horrocks
> On 18 Apr 2024, at 01:09, Joel via ntg-context wrote: ... > Or maybe to use > to send the errors to another file for careful study? > (using Linux if that matters) You can run the job from the command line and redirect to a file: $ context file.tex > output.log 2&

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-19 Thread Hans Hagen
ded for something to be printed on the PDF, but it isn't showing there. Since a document of this size will have a lot of messages, is there a way to adjust the settings, from "show everything" to "show some" to "show only serious errors"? Or maybe to use &g

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-17 Thread Henning Hraban Ramm
t it isn't showing there. Since a document of this size will have a lot of messages, is there a way to adjust the settings, from "show everything" to "show some" to "show only serious errors"? Or maybe to use > to send the errors to another file for ca

[NTG-context] How to isolate serious errors from warnings?

2024-04-17 Thread Joel via ntg-context
will have a lot of messages, is there a way to adjust the settings, from "show everything" to "show some" to "show only serious errors"? Or maybe to use > to send the errors to another file for careful study? (using Linux if that matters) --Joel __

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-14 Thread mf
Thank you Wolfgang, but my problem is getting back the page of the document starting from a "realpage" value picked from structures.registers.collected in the .tuc file. Anyway, looking at the .tuc file produced by your example, I found that structures.pages.collected h

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-12 Thread mf
Il 12/01/24 10:39, Henning Hraban Ramm ha scritto: Am 12.01.24 um 10:18 schrieb mf: Hello list, how do I convert the realpage number to a page number? Suppose you have a document with a frontmatter of 20 pages in roman numerals, followed by the main text starting from page 1 in arabic

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-12 Thread Wolfgang Schuster
mf schrieb am 12.01.2024 um 10:18: Hello list, how do I convert the realpage number to a page number? Suppose you have a document with a frontmatter of 20 pages in roman numerals, followed by the main text starting from page 1 in arabic numerals. So the twelfth page is 'XII',

[NTG-context] conversion from realpage to pagenumber

2024-01-12 Thread mf
Hello list, how do I convert the realpage number to a page number? Suppose you have a document with a frontmatter of 20 pages in roman numerals, followed by the main text starting from page 1 in arabic numerals. So the twelfth page is 'XII', while the twenty-second is '2'

[NTG-context] Re: multipage metapost output from ConTeXt

2024-01-06 Thread Emanuel Han via ntg-context
Hi Mikael, with the solution provided by you, I could work on my graphic which grows from page to page. So far I have already 28 pages. Now I would like to go back to the summed graphic of p1 to p21 and add the coming p29, p30 etc. to only that (that means contents of p22 to p28 should not be

[NTG-context] Re: How to input first n lines from file?

2023-12-16 Thread Henning Hraban Ramm
Am 16.12.23 um 22:30 schrieb Joel via ntg-context: With the command `\input file`, I can input the entire contents of `file.tex`. Is there a way to limit it to the first n lines, for instance, something like `\input[10]` file would only input the first 10 lines from `file.tex` and ignore the

[NTG-context] How to input first n lines from file?

2023-12-16 Thread Joel via ntg-context
With the command `\input file`, I can input the entire contents of `file.tex`. Is there a way to limit it to the first n lines, for instance, something like `\input[10]` file would only input the first 10 lines from `file.tex` and ignore the rest of the lines. --Joel

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
Dear Emanuel, > Le 2 déc. 2023 à 12:08, Emanuel Han via ntg-context a > écrit : > > Hi Mikael, > > here's a very simple mwe for the label(textext()) issue. On page 1, the text > "Word 1" should be drawn in position z1. On page 2, the same text in the same > position should be visible, and th

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
Thank you Mikael, this works! Emanuel On Dez. 2 2023, at 7:46 pm, Mikael Sundqvist wrote: > Hi, > > I don't know if \startMPinclusions \stopMPinclusions shall work with > \startMPpage and \stopMPpage. In this case, one can use a separate > graphics: > > \startuseMPgraphic{base} > picture p[]; > p

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
Hi, I don't know if \startMPinclusions \stopMPinclusions shall work with \startMPpage and \stopMPpage. In this case, one can use a separate graphics: \startuseMPgraphic{base} picture p[]; path TheFrame ; TheFrame := fullsquare scaled 5in ; z1 = (60,40); z2 = (40,90); z3 = (10,70); p1:=image( la

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
Hi Mikael, here's a very simple mwe for the label(textext()) issue. On page 1, the text "Word 1" should be drawn in position z1. On page 2, the same text in the same position should be visible, and the text "Mot 2" in position p2 should be added. And so on. \startMPinclusions picture p[]; path

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
Hi Emanuel, I am not sure I understand your question, and since you use fonts that i do not have, I cannot test your example as is. But, maybe, if you want to redraw a picture, you can do addto currentpicture also p1; where you want it. /Mikael PS For the text thing, I did not get it. Could on

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
You didn't specify the color of path A in p2 and p4. So it's drawn in black. The other issue, I can't help. Emanuel Han via ntg-context 於 2023年12月2日 週六 下午7:23寫道: > So is there a way to circumvent these issues? Or an explanation for this > behavior, so that I can try to find a solution by myself?

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
So is there a way to circumvent these issues? Or an explanation for this behavior, so that I can try to find a solution by myself? Thanks Emanuel On Nov. 29 2023, at 12:25 pm, Emanuel Han via ntg-context wrote: > Dear Aditya and Fabrice, > thanks for your responses. > > I included some of Fabr

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
Dear Aditya and Fabrice, thanks for your responses. I included some of Fabrice's code into mine for testing purpose, and indeed the multipage works now. What is bizarre is that issues appear now that didn't appear before: Path A is drawn with color red on page 1, and in color black on all followi

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Aditya Mahajan
On Mon, 27 Nov 2023, Fabrice L wrote: > Hi, > > It is fun fact very easy to do. You just use \startMPpage (…) \stopMPpage > multiple times. Here is an example which build an animation of a particle > moving according to a Brownian motion. A very similar option is to pass a variable to a metap

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
> How can I achieve multipage metapost output from ConTeXt? The result should > be a multipage pdf. It contains just a metapost graphic per page. The graphic > has always the same bounding box and evolves from page to page: Some elements > to be drawn are added, and some others would

[NTG-context] multipage metapost output from ConTeXt

2023-11-27 Thread Emanuel Han via ntg-context
How can I achieve multipage metapost output from ConTeXt? The result should be a multipage pdf. It contains just a metapost graphic per page. The graphic has always the same bounding box and evolves from page to page: Some elements to be drawn are added, and some others would ideally also be

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Henning Hraban Ramm
Am 08.11.23 um 09:53 schrieb Marco Patzer: On Sun, 5 Nov 2023 18:11:45 + Bruce Horrocks wrote: When I go to the page layout page on the Contextgarden wiki the "typesetting areas" diagram is missing its text labels. Fixed. Any suggestion

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Marco Patzer
On Sun, 5 Nov 2023 18:11:45 + Bruce Horrocks wrote: > When I go to the page layout page on the Contextgarden wiki > > > > the "typesetting areas" diagram is missing its text labels. Fixed. > Any suggestions as to what needs to be changed to g

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-07 Thread Andres Conrado Montoya
consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Taco Hoekwater
> On 6 Nov 2023, at 00:35, Bruce Horrocks wrote: > > > [1] Now there's an irony: the Wiki software creates different-sized previews > of a vector image so that it can show the image at different sizes on > different clients. I bet it started doing this back 'in the day’ to support Internet

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Bruce Horrocks
> On 5 Nov 2023, at 20:24, peter.hopcroft--- via ntg-context > wrote: > > I see this problem on my iPad: Safari and Orion browsers. > > I do not see this problem on my mac: Safari and Orion browsers. > Thank-you both for checking. Looking more closely it seems that the web page is actual

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread peter.hopcroft--- via ntg-context
I see this problem on my iPad: Safari and Orion browsers. I do not see this problem on my mac: Safari and Orion browsers. Peter > On 6/11/2023, at 8:19 AM, Henning Hraban Ramm wrote: > > Am 05.11.23 um 19:11 schrieb Bruce Horrocks: >> When I go to the page layout page on the Contextgarden wi

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Henning Hraban Ramm
Am 05.11.23 um 19:11 schrieb Bruce Horrocks: When I go to the page layout page on the Contextgarden wiki the "typesetting areas" diagram is missing its text labels. If I click on the diagram the Wiki takes me to the underlying layout.svg file and

[NTG-context] Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Bruce Horrocks
When I go to the page layout page on the Contextgarden wiki the "typesetting areas" diagram is missing its text labels. If I click on the diagram the Wiki takes me to the underlying layout.svg file and then I /do/ see the labels. This happens in b

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-27 Thread Pablo Rodriguez
and with the ouput from the second sample from my previous message [https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/message/IEEGSAL636X32C3WWMO2KWKXMTIARRGZ/]), Xpdf/Evince/Okular solve remote links fine. MuPDF-GL cannot solve the file (even when full path is provided) and PDF.js doesn’t

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-26 Thread Pablo Rodriguez
erence (save it as main.tex): \starttext \dorecurse{15} {\chapter[chap\recurselevel]{Chapter}} \stoptext You have the file that reads the references from main.tuc and generates the inter-document links: \setupinteraction[state=start] \starttext Links to each chapter using

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-25 Thread Pablo Rodriguez
On 7/24/23 18:04, Gerion Entrup wrote: > […] > I'm do not know the structure of PDFs exactly, therefore some of my > terms might be wrong. […] Hi Gerion, now I realize that my explanation was unnecesarily technical or not focused on your needs. My point was that if PDF as such doesn’t offer the

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-24 Thread Aditya Mahajan
. > I'll try to rephrase. Maybe it gets more clear then. I think, named > destinations could be a important part in the solution. > > I'm do not know the structure of PDFs exactly, therefore some of my > terms might be wrong. I'll name the two things from now on the followin

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-24 Thread Gerion Entrup
inations could be a important part in the solution. I'm do not know the structure of PDFs exactly, therefore some of my terms might be wrong. I'll name the two things from now on the following way: - a destination: This is a defined position within a PDF document; so some position that a PDF

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
On 7/20/23 16:25, Gerion Entrup wrote: > [...] > Can I somehow access the references of inner.tex from outer.tex? > For me, it is not that relevant, that the correct number is set, but the > interaction within the outer PDF should work, so clicking on the > reference should scroll

[NTG-context] Link from a PDF to a reference of an embedded PDF

2023-07-20 Thread Gerion Entrup
n[item:bla], \in[item:blub]. \stoptext ``` Can I somehow access the references of inner.tex from outer.tex? For me, it is not that relevant, that the correct number is set, but the interaction within the outer PDF should work, so clicking on the reference should scroll to the correct content. Backgr

[NTG-context] Problems with building texlive/context from its sources

2023-04-03 Thread Jakob Jakobson via ntg-context
Dear developers, I am/become one of the texlive mantainers on flathub a more or less recent and new approach for establishing a linux packaging format. The flatpak packages are usually build from source and so is the texlive package. You can find it under https://github.com/flathub

Re: [NTG-context] building from source

2023-03-21 Thread Rainer J.H. Brandt via ntg-context
Hans Hagen via ntg-context writes: > On 3/21/2023 12:14 PM, Rainer J.H. Brandt via ntg-context wrote: > > Dear Context developers, > > > > I want to build Context MkXL from source and use that. I went to the [...] > First define 'build from source'. The lmtx (mk

Re: [NTG-context] building from source

2023-03-21 Thread Hans Hagen via ntg-context
On 3/21/2023 12:14 PM, Rainer J.H. Brandt via ntg-context wrote: Dear Context developers, I want to build Context MkXL from source and use that. I went to the download page http://www.pragma-ade.com/download-1.htm and downloaded the 2023-03-20 version: http://www.pragma-ade.com/context/latest

[NTG-context] building from source

2023-03-21 Thread Rainer J.H. Brandt via ntg-context
Dear Context developers, I want to build Context MkXL from source and use that. I went to the download page http://www.pragma-ade.com/download-1.htm and downloaded the 2023-03-20 version: http://www.pragma-ade.com/context/latest/cont-tmf.zip This contains README.adoc which tells me that

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Joel via ntg-context
Fantastic! Exactly what I needed. My publisher was gong to ask for the information of this index soon, so its great that already works! --Joel On Sunday, February 26, 2023 at 11:45:48 AM MST, Alan Braslau wrote: Hans needs to confirm, "In the next update..." Test files (MWEs): % ind

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Alan Braslau via ntg-context
Hans needs to confirm, "In the next update..." Test files (MWEs): % index-1.tex \setupinteraction[state=start] \starttext test \index{entryWB.1} \page empty \page test \index{another WB.1} \page empty \page test \index{onemore WB.1} \page empty \page test \index{whatever W

Re: [NTG-context] How to add data from another PDF in index?

2023-02-24 Thread Alan Braslau via ntg-context
We are currently working on fixing cross-references as well as shared register information between products in a ConTeXt project structure. Much is possible, but not all is fully worked out. My current use is a multi-volume book, sharing Tables of Contents between the two volumes. As a teaser,

[NTG-context] How to add data from another PDF in index?

2023-02-23 Thread Joel via ntg-context
I am making a textbook and workbook set. I have this custom index using this code, in both the textbook and workbook: % \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \defineregister[learnedlong][comp

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-21 Thread Pablo Rodriguez via ntg-context
On 2/20/23 18:14, Sylvain Hubert via ntg-context wrote: > On Mon, 20 Feb 2023 at 23:22, Pablo Rodriguez via ntg-context > wrote: > > Hi Sylvain, > > one main documentation source is the wiki. > > Sorry, but I‘m afraid it is hard for me to understand how adding another > informat

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Jean-Pierre Delange via ntg-context
For \setuphead command, Taco's reference to Google Context shows this : https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg#gsc.tab=0&gsc.q=setuphead&gsc.sort= For Japanese/Chinese CJK issues, see here : https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg#gsc.tab=0&g

  1   2   3   4   5   6   7   8   9   10   >