Re: [NTG-context] Making metafun pictures fainter (shading, uncolored clash)

2021-10-10 Thread Gavin via ntg-context
Hi List, I made good progress producing fainter pictures in metafun. Here is a uniformly accelerated cow in the style of my book. PastedGraphic-2.pdf Description: Adobe PDF document I abandoned transparency, since I actually don’t want to see through anything. I am using uncolored to get

Re: [NTG-context] ConTeXt's equivalent of raisebox

2021-10-10 Thread Wolfgang Schuster via ntg-context
noib3 via ntg-context schrieb am 11.10.2021 um 00:16: How can I make vertical microadjustments to individual characters in ConTeXt? In LaTeX I would do it with ``` \documentclass{article} \begin{document} \raisebox{-1pt}{f}oo \end{document} ``` however the following doesn't work ```

[NTG-context] ConTeXt's equivalent of raisebox

2021-10-10 Thread noib3 via ntg-context
How can I make vertical microadjustments to individual characters in ConTeXt? In LaTeX I would do it with ``` \documentclass{article} \begin{document} \raisebox{-1pt}{f}oo \end{document} ``` however the following doesn't work ``` \starttext \raisebox{-1pt}{f}oo \stoptext ```

Re: [NTG-context] SyncTeX does not work with Zathura

2021-10-10 Thread Hans Hagen via ntg-context
On 10/10/2021 7:20 PM, Cezary Drożak wrote: > you can play with > > mtxrun --script synctex > > and the synctex file to see if it makes sense I wrote two almost identical files in plain tex and context. When I generated the synctex file and ran `mtxrun --script synctex --list x.synctex` I

Re: [NTG-context] SyncTeX does not work with Zathura

2021-10-10 Thread Cezary Drożak via ntg-context
> you can play with > > mtxrun --script synctex > > and the synctex file to see if it makes sense I wrote two almost identical files in plain tex and context. When I generated the synctex file and ran `mtxrun --script synctex --list x.synctex` I got this: ``` $ mtxrun --script synctex --list

Re: [NTG-context] SyncTeX does not work with Zathura

2021-10-10 Thread Hans Hagen via ntg-context
On 10/10/2021 6:11 PM, Cezary Drożak via ntg-context wrote: Hello, I have been trying to get SyncTeX to work with ConTeXt and Zathura, but nothing seems to work. I created a simple `hello.mklx` file and ran `context --synctex=-1 hello.mklx`. Then I launched Zathura with `zathura -x "nvr -cc

Re: [NTG-context] Acrobat doesn’t read imported metadata

2021-10-10 Thread Hans Hagen via ntg-context
On 10/10/2021 5:46 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \starttext \startluacode function document.transfer_metadata(name) local main_doc = lpdf.epdf.load(name) lpdf.addtoinfo("Title", lpdf.unicode(main_doc.Info.Title),

[NTG-context] undefined command in current latest

2021-10-10 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupheadertexts[{\getmarking[chapter]}] \starttext \chapter{Chapter} \stoptext It compiles perfectly fine with MkIV from 2021.10.08 20:18, but its LMTX version triggers the following error message: Undefined control sequence \??markingfilter

[NTG-context] SyncTeX does not work with Zathura

2021-10-10 Thread Cezary Drożak via ntg-context
Hello, I have been trying to get SyncTeX to work with ConTeXt and Zathura, but nothing seems to work. I created a simple `hello.mklx` file and ran `context --synctex=-1 hello.mklx`. Then I launched Zathura with `zathura -x "nvr -cc \"call vimtex#view#reverse_goto(%{line}, '%{input}')\"

[NTG-context] Making metafun pictures fainter

2021-10-10 Thread Gavin via ntg-context
Hi list, I’m trying to produce figures like this, showing motion as a series of snap-shots, with the earlier moments more faint. PastedGraphic-1.pdf Description: Adobe PDF document Here are three examples of metafun code using transparency and “decorated". \startMPinclusions picture ball;

[NTG-context] Acrobat doesn’t read imported metadata

2021-10-10 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startluacode function document.transfer_metadata(name) local main_doc = lpdf.epdf.load(name) lpdf.addtoinfo("Title", lpdf.unicode(main_doc.Info.Title), lpdf.string(main_doc.Info.Title)) lpdf.addtoinfo("CreationDate",

Re: [NTG-context] Default values for key-value macros

2021-10-10 Thread Hans Hagen via ntg-context
On 10/10/2021 2:01 PM, noib3 via ntg-context wrote: The way I've been defining key-value macros is to first pass them to Lua, handle the parsing there thanks to `utilities.parsers.settings_to_hash` and then assign the resulting Lua table to ConTeXt variables. This worked fine up to now, but

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-10 Thread Jason Ross via ntg-context
On 10/10/21 3:23 AM, Hans Hagen wrote: what do you mean with 'quite different' Hans Hi Hans, My current stumbling block is dealing with the `align` environment. I replace `\begin{align}/\end{align}` with `\startmathalignment/\stopmathalignment`, and replace all `&` characters with `\NC` and

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-10 Thread Joey McCollum via ntg-context
Thanks for these replies! Adding \unexpanded or \protected before \def didn't fix the problem, and surrounding the definition with \unprotect ... \protect didn't work either. But surrounding it with \pushcatcodetable \setcatcodetable\ctxcatcodes ... \popcatcodetable worked. I've never seen these

[NTG-context] Default values for key-value macros

2021-10-10 Thread noib3 via ntg-context
The way I've been defining key-value macros is to first pass them to Lua, handle the parsing there thanks to `utilities.parsers.settings_to_hash` and then assign the resulting Lua table to ConTeXt variables. This worked fine up to now, but I'm having problems with the following MWE: ```

Re: [NTG-context] SciTE configuration Mac

2021-10-10 Thread Hans Hagen via ntg-context
On 10/8/2021 6:39 PM, MANUEL GONZALEZ SUAREZ via ntg-context wrote: Hi everyone: Could someone send me a minimal configuration for the SciTE editor of the files needed to work with ConTeXt? I work with MaC OS Big Sur. There are some scite related files in the distribution that you can look at

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-10 Thread Wolfgang Schuster via ntg-context
Joey McCollum via ntg-context schrieb am 10.10.2021 um 05:42: The test using \removepunctuation that you provided does what it should be doing (it produces 6 instances of "test-test" with the intervening punctuation mark in each case removed), but it doesn't do what I'm trying to do in the MWE

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-10 Thread Hans Hagen via ntg-context
On 10/10/2021 5:42 AM, Joey McCollum wrote: The test using \removepunctuation that you provided does what it should be doing (it produces 6 instances of "test-test" with the intervening punctuation mark in each case removed), but it doesn't do what I'm trying to do in the MWE above. I'm trying

Re: [NTG-context] Undefined control sequence \??markingfilter, with MWE to recreate

2021-10-10 Thread Hans Hagen via ntg-context
On 10/9/2021 9:53 PM, Rik Kabel via ntg-context wrote: Error with 20211008 ConTeXt: %\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails \setupheadertexts [][][{\getmarking[chapter]}][] % fails %\setupheadertexts [][][\getmarking[chapter]][]   % succeeds

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-10 Thread Hans Hagen via ntg-context
On 10/10/2021 5:45 AM, Jason Ross via ntg-context wrote: Hello, I'm trying to provide more support for LaTeX math for an Org Mode exporter for ConTeXt. LaTeX is the de facto standard for mathematics in Org Mode. However, the syntax is quite different between LaTeX and ConTeXt. I have a few

Re: [NTG-context] Does the ConTeXt distro come with a PDFViewer?

2021-10-10 Thread Ramkumar KB via ntg-context
All, Thanks for the tips. SumatraPDF worked well as it updates as the underlying PDF is refreshed by ConTeXt - which makes the dev-preview cycle really quick. I will compile all the tips in this thread into the Wiki. best regards, Ramkumar On Sun, Oct 10, 2021 at 12:53 AM Henri Menke via