Re: [NTG-context] the --path option
Hi all, to answer the question myself is: yes --path is the right option. I wrote a build script that calls context inside a deep nested directory like this: context --path="${environmentdir}" --result=${project}.pdf ${project}.tex The variable ${environmentdir} is created by the script. Everything works fine. But now I would like to use a second path variable in a style file instead of this long relative path: \setupexternalfigures[directory={../../../hs.pub.bilder},local] Any idea how to achieve this? TIA Jan Ulrich Hasecke -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: . http://www.sudelbuch.de Privater Blog: http://www.hasecke.eu Netzliteratur-Projekt: http://www.generationenprojekt.de signature.asc Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] the --path option
Hi all, in my document I have to set a long path to my environment files: \environment ../../../hs.pub.context/env-fonts I wonder if I can use the option --path to set hs.pub.context as input folder to look for environment files. But I have no idea how to pass a "list" to this option as --help tells, and if it is the right option to achieve what I want. TIA Jan Ulrich Hasecke -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: . http://www.sudelbuch.de Privater Blog: http://www.hasecke.eu Netzliteratur-Projekt: http://www.generationenprojekt.de signature.asc Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] typescripts and variants
Hi In my current project I need to use different variants if the Noto Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.) Is my understanding of typescripts correct that I cannot have bold and extrabold in the same typescript? And that I need a typescript for regular and one for the semicondensed variants? Denis ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setup output name from within ConTeXt document
Pascal Pascali schrieb am 22.06.2021 um 13:55: Dear ConTeXt community, Is it possible to set the file name of the output from within the document? I can do it on the command line by adding --result="CustomName.pdf", but I'd need to do it according to certain variables in the content of the file itself... You can set a different name at the first line of your document, e.g. % result="newfilename" but this is only a alternative to the result-argument on the command line. Setupinteraction[title="CustomName.pdf"] will just set the internal pdf name, not the file system name. With \setupinteraction you can set/change metadata values but not the file name. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question about "streams" module
On 6/22/21 5:43 PM, MANUEL GONZALEZ SUAREZ wrote: Hello everybody: My question is this: Is the "streams" module obsolete? If not, where can I find documentation on its use? Thanks M. González. Hans is working on a new mechanism and has recently been thinking about integrating (some of) the functionality of this module. As far as I remember, it was mkii. (And I was the one who pushed Hans to do work on it, but could never really come up with a reasonable interface and specifications.) So I would say yes, it is more or less obsolete; I wouldn't start a project with it. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Concatenate buffers without newline
Pascal Pascali schrieb am 22.06.2021 um 20:21: Hello! Is there a way to concatenate predefined blocks or buffers without ConTeXt printing newlines between them? I'd like to have something like: \startBitOfData [name1] Some part of paragraph here. \stopBitOfData \startBitOfData [name2] Some more going on here. \stopBitOfData And then: \getBitOfData [name1] \getBitOfData [name2] Outputting: Some part of paragraph here. Some more going on here. Not outputting: Some part of paragraph here. Some more going on here. Thank you for any tip! Please send a *working* minimal example next time. \starttext \startbuffer[first] First paragraph. \stopbuffer \startbuffer[second] Second paragraph. \stopbuffer \start \setupbuffer[before=,after=] \getbuffer[first]% \getbuffer[second] \stop \blank \getbuffer[first,second] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Concatenate buffers without newline
Hello! Is there a way to concatenate predefined blocks or buffers without ConTeXt printing newlines between them? I'd like to have something like: \startBitOfData [name1] Some part of paragraph here. \stopBitOfData \startBitOfData [name2] Some more going on here. \stopBitOfData And then: \getBitOfData [name1] \getBitOfData [name2] Outputting: Some part of paragraph here. Some more going on here. Not outputting: Some part of paragraph here. Some more going on here. Thank you for any tip! Best regards, Pascal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] simplifying repeated macro calls in metafun
Otared Kavian schrieb am 22.06.2021 um 15:49: Dear Dalyoung, dear Mikael Thank you both for your explanations: indeed this « whatever » command in MetaPost is magic and very useful (I am not sure whether it is a command only in MetaFun, or it exists also in the original MetaPost). You have to go further back, whatever already existed in MetaFont. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Question about "streams" module
Hello everybody: My question is this: Is the "streams" module obsolete? If not, where can I find documentation on its use? Thanks M. González. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] simplifying repeated macro calls in metafun
Dear Dalyoung, dear Mikael Thank you both for your explanations: indeed this « whatever » command in MetaPost is magic and very useful (I am not sure whether it is a command only in MetaFun, or it exists also in the original MetaPost). Regarding the way Aditya uses \startuseMPgraphic, it is also very instructive. Dalyoung, can you also share the animation example for the foldings ? I am sure we are a few on the list to learn something… Best regards: Otared > On 21 Jun 2021, at 23:50, Jeong Dal wrote: > > > Dear Otared, > > I received list mail in condensed form, I didn’t see your mail before I sent > one. > > As Mikael explained, “whatever” is very nice to find the intersection point > of two lines. > You can see nice examples which use “whatever” in MetaFun manual. > > In my code, the next point is the intersection point of the edge and the > folding line which bisect the angle of the former folding line [M,N]. > > H := whatever[N, N + dir(.5*angle(M-N))*u] = whatever[A,B]; > > Enjoy the use of “whatever”! > > I made an animation of the folding process using animation module and > \processMPbuffer. > But Woldgang’s code showed a way to make it using \startuseMPgraphic. > > > Best regards, > > Dalyoung > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Setup output name from within ConTeXt document
Dear ConTeXt community, Is it possible to set the file name of the output from within the document? I can do it on the command line by adding --result="CustomName.pdf", but I'd need to do it according to certain variables in the content of the file itself... Setupinteraction[title="CustomName.pdf"] will just set the internal pdf name, not the file system name. Thank you for your help! Best regards, Pascal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___