Re: [NTG-context] Compiling context files in command line
You cannot use the result command line option for that. Instead, switch to the target directory and run context from there. Denis Von: ntg-context im Auftrag von Jaroslav Hajtmar via ntg-context Gesendet: Samstag, 4. Juni 2022 07:21:04 An: mailing list for ConTeXt users Cc: Jaroslav Hajtmar Betreff: [NTG-context] Compiling context files in command line Hello ConTeXist. After a long time, I turn to the conference for help. I use command line to batch process of many ConTeXt files. Is it possible at the end off compile proces to move the created PDF to another directory (subdirectory of current directory) using the command line commands? Somehow I can't do it or maybe I'm making a mistake somewhere. Renaming works but moving into subdirectory I can't do it for some reason. What could be the problem? Is it even possible do it? I work with OS X in bash. Simple example of my use: context —mode=mymode --result=subdir/mypdffilename.pdf processedfile.tex My nontrivial using (content of my bash file) context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_identifikacni_udaje,k=1,pk=1,ppk=1,t=,s=14" —result="pdfresult/svp_identifikacni_udaje.pdf" _identifikacni_udaje context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_charakteristika_skoly,k=2,pk=1,ppk=1,t=,s=15" --result="pdfresult/svp_charakteristika_skoly.pdf" _charakteristika_skoly context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_charakteristika_svp,k=3,pk=1,ppk=1,t=,s=19" --result="pdfresult/svp_charakteristika_svp.pdf" _charakteristika_svp context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_zacleneni_prurezovych_temat,k=3,pk=1,ppk=1,t=,s=30" --result="pdfresult/svp_zacleneni_prurezovych_temat.pdf" _zacleneni_prurezovych_temat context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_ucebni_plan,k=4,pk=1,ppk=1,t=,s=36" --result="pdfresult/svp_ucebni_plan.pdf" _ucebni_plan In fact, it is used to create separate PDF files from one large complex document, where individual chapters are cut out of the overall document in pdf form. This creates a large number of PDF files that I do not want to be placed in the current directory. Parameters are used to pass chapter numbers and page numbers to ConTeXt, to correct numbering in pdf files. Can you please advise? Thanx Jaroslav ___ 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] Compiling context files in command line
Hello ConTeXist. After a long time, I turn to the conference for help. I use command line to batch process of many ConTeXt files. Is it possible at the end off compile proces to move the created PDF to another directory (subdirectory of current directory) using the command line commands? Somehow I can't do it or maybe I'm making a mistake somewhere. Renaming works but moving into subdirectory I can't do it for some reason. What could be the problem? Is it even possible do it? I work with OS X in bash. Simple example of my use: context —mode=mymode --result=subdir/mypdffilename.pdf processedfile.tex My nontrivial using (content of my bash file) context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_identifikacni_udaje,k=1,pk=1,ppk=1,t=,s=14" —result="pdfresult/svp_identifikacni_udaje.pdf" _identifikacni_udaje context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_charakteristika_skoly,k=2,pk=1,ppk=1,t=,s=15" --result="pdfresult/svp_charakteristika_skoly.pdf" _charakteristika_skoly context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_charakteristika_svp,k=3,pk=1,ppk=1,t=,s=19" --result="pdfresult/svp_charakteristika_svp.pdf" _charakteristika_svp context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_zacleneni_prurezovych_temat,k=3,pk=1,ppk=1,t=,s=30" --result="pdfresult/svp_zacleneni_prurezovych_temat.pdf" _zacleneni_prurezovych_temat context --purgeall --mode=THISSECTIONONLYHARD --arguments="o=_ucebni_plan,k=4,pk=1,ppk=1,t=,s=36" --result="pdfresult/svp_ucebni_plan.pdf" _ucebni_plan In fact, it is used to create separate PDF files from one large complex document, where individual chapters are cut out of the overall document in pdf form. This creates a large number of PDF files that I do not want to be placed in the current directory. Parameters are used to pass chapter numbers and page numbers to ConTeXt, to correct numbering in pdf files. Can you please advise? Thanx Jaroslav ___ 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] ugly bug
On 6/3/2022 5:05 PM, Steffen Wolfrum via ntg-context wrote: Am 02.06.2022 um 20:13 schrieb Wolfgang Schuster : Steffen Wolfrum schrieb am 01.06.2022 um 14:03: Hi, several times I got problems with my publishing house when they noticed that the headerlines jump up and down on pages that end/begin with qoutes (i.e. smaller interlineskip), see example below: on page 1 the blackrule is about 1mm higher than on page 2. In the past I then used really laborious workarounds to get these single pages in the correct way (without jumping)… manual pagebreak, re-define layout etc. But as the pages are hard to find it would be better that the layout would be reliable consistent. How can this be solved? \defineinterlinespace[steffen][line=4.2ex] \starttext \dorecurse{2}{\samplefile{lorem}\par} \start %\setuplocalinterlinespace[line=4.2ex]% wrong header alignment \setuplocalinterlinespace[steffen]% correct header alignment \dorecurse{4}{\samplefile{lorem}\par} \stop \dorecurse{2}{\samplefile{lorem}\par} \stoptext the next upload tries to revert to the global setting in the pagebody Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] ugly bug
> Am 02.06.2022 um 20:13 schrieb Wolfgang Schuster > : > > Steffen Wolfrum schrieb am 01.06.2022 um 14:03: >> Hi, >> >> several times I got problems with my publishing house when they noticed that >> the headerlines jump up and down on pages that end/begin with qoutes (i.e. >> smaller interlineskip), see example below: on page 1 the blackrule is about >> 1mm higher than on page 2. >> >> In the past I then used really laborious workarounds to get these single >> pages in the correct way (without jumping)… manual pagebreak, re-define >> layout etc. >> >> But as the pages are hard to find it would be better that the layout would >> be reliable consistent. >> >> How can this be solved? > > \defineinterlinespace[steffen][line=4.2ex] > > \starttext > > \dorecurse{2}{\samplefile{lorem}\par} > > \start > %\setuplocalinterlinespace[line=4.2ex]% wrong header alignment > \setuplocalinterlinespace[steffen]% correct header alignment > \dorecurse{4}{\samplefile{lorem}\par} > \stop > > \dorecurse{2}{\samplefile{lorem}\par} > > \stoptext ok, this minimal example works. but for other reasons (lots of heading with various vertical spaces)!) I also need \setuplayout[grid=tolerant] \setuplayout[grid=tolerant]% this kills the smaller interlinespace \defineinterlinespace[steffen][line=4.2ex] \starttext \dorecurse{2}{\samplefile{lorem}\par} \start %\setuplocalinterlinespace[line=4.2ex]% wrong header alignment \setuplocalinterlinespace[steffen]% correct header alignment \dorecurse{4}{\samplefile{lorem}\par} \stop \dorecurse{2}{\samplefile{lorem}\par} \stoptext Any idea how to preserve the smaller interlinespace? Steffen ___ 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] How do I turn off indentation inside a \framed with align=?
Gerben Wierda via ntg-context schrieb am 03.06.2022 um 00:57: On 19 May 2022, at 18:22, Wolfgang Schuster via ntg-context mailto:ntg-context@ntg.nl>> wrote: You have to provide a minimal example, in the following the example the text within the frame isn't indented. I cannot always provide a minimal example (how much I would like to) as my TeX is produced in a pipeline from 5600 lines of lua and METAPOST code. But luckily, in this case I can, the one using \phrasetext is indented, the other one is not.: \setuplanguage[en][patterns={en}]\mainlanguage[en] \definelabelclass[phrase] \setupphrasetext[en][metamodelexplanation= {...}] The space in your text comes from the space between the = and { when you set the text for metamodelexplanation. 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 ___