[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip context/latest/cont-tmf.zip context/latest/cont-tst.7z context/latest/cont-tst.tar.xz context/latest/cont-tst.zip sent 101,261 bytes received 20,940,567 bytes 4,675,961.78 bytes/sec total size is 449,976,484 speedup is 21.38 Running archiver: New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-05-28.00 121782153 /var/www/aanhet.net/context//htdocs/archives/context-2023-05-28.00/latest 126745317 /var/www/aanhet.net/context//htdocs/archives/context-2023-05-28.00/current 248531566 /var/www/aanhet.net/context//htdocs/archives/context-2023-05-28.00 248531566 total ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \doifelseoddpage not working as expected
On 5/27/2023 6:00 AM, Berend de Boer via ntg-context wrote: Dear all, I need something like \doifelseoddpage, but this does not work as expected. See below example. You will notice that on page two you still get the ODD text, with page number 1. What's going on? Is there a proper way to detect what page I'm on? Example: \starttext \dorecurse{70}{\doifelseoddpage{ODD \currentpage\par}{EVEN \currentpage\par}} \stoptext My system: context --version mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /home/berend/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2023.05.08 17:39 mtx-context | main context file: /home/berend/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2023.05.08 17:39 You never know when tex will break a page unless you are explicit so you typeset the status too soon. \setuppagenumbering[alternative=doublesided] % \setuppagenumbering[alternative={singlesided,doublesided}] \starttext \dorecurse{200}{ \dontleavehmode\signalrightpage \doifelserightpage{RIGHT}{LEFT} \doifelseoddpage {ODD }{EVEN} \par } \stoptext The rightpage check combined with putting a signal at the spot where you test will work ok. The odd/even test works as expected when you're in the page builder (wrapping up the page). 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] [ cleaning up ]
As I use luametatex for compiling context docs to pdf, I wonder what files/folders could safely removed from the context base folder? e.g. is there a script to purge unused features? .Floris ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip context/latest/cont-tmf.zip context/latest/cont-tst.7z context/latest/cont-tst.tar.xz context/latest/cont-tst.zip general/manuals/ general/manuals/lowlevel-accuracy.pdf general/manuals/lowlevel-paragraphs.pdf general/qrcs/ general/qrcs/setup-de.pdf general/qrcs/setup-en.pdf general/qrcs/setup-fr.pdf general/qrcs/setup-it.pdf general/qrcs/setup-mapping-de.pdf general/qrcs/setup-mapping-en.pdf general/qrcs/setup-mapping-fr.pdf general/qrcs/setup-mapping-it.pdf general/qrcs/setup-mapping-nl.pdf general/qrcs/setup-nl.pdf sent 145,312 bytes received 35,559,396 bytes 3,400,448.38 bytes/sec total size is 449,973,159 speedup is 12.60 Running archiver: New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-05-27.13 121778886 /var/www/aanhet.net/context//htdocs/archives/context-2023-05-27.13/latest 126745317 /var/www/aanhet.net/context//htdocs/archives/context-2023-05-27.13/current 248528299 /var/www/aanhet.net/context//htdocs/archives/context-2023-05-27.13 248528299 total ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] upload
Hi, I uploaded a new lmtx. Apart from the modules installer (that Hraban has to check) and subtle improvements in math (we're now in tweaking penalties mode) there are a few changes: - The endstrut in framed got lost but is back again; there is now alao a location=inline option. - Single character math as in "text $x$ text" will from now on behave kind of like "text~x$ text" but that ~ always felt kind of weird anyway. Tests on large documents with plenty math and single char cases shows that it works quite ok and in most cases the paragraph will have the same number of lines (single char moves have little impact). - The \lastlinefit (etec) feature is now controlled by the "fit" option in \setupalign etc; i'm still pondering how to control the orphan penalty feature that has been around for a while now but never really configured) and if we should have a decent default for that (like \orphanpenalties 2 150 100 ). - Math formula number placement (as well as alignment sinside narrower) has been made a bit more robust and we added some placement options that will be discussed in the (by now 1739 page thick) upcoming math manual. You really don't want to know how many combinations we had to check. In an upcoming release there might also be some new text related tweaking features as side effect of the math tweaks which leads to some experiments with the par builder (so again we got sidetracked). 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Can ConTeXt write its pdf to a different directory?
On 5/27/2023 11:51 AM, Denis Maier via ntg-context wrote: I usually use a makefile for this. There I have build rule that first cds into the target directory, then calls context from there. That is indeed the solution (also because the --path option will then fetch from the source). The more lua hackery the more danger of interference. The problem here is that a rename won't work in all scenarios (different drives on windows for instance, or from local disk to network drive). Anyway, one can also give --runpath=sometargetpath which i actually use to run for instance manuals, but there it is driven in the file itself: % language=us runpath=texruns:manuals/musings in combination with TEXRUNS=c:\data\temporary\texruns so that I don't overwrite a stable manual in the source path. Over the decades that context evolved there have been plenty such tricks added. I could probably add a move option to the job ticket mechanism but that has not changed in ages so ... workflows demands are too different. 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Can ConTeXt write its pdf to a different directory?
I usually use a makefile for this. There I have build rule that first cds into the target directory, then calls context from there. Best Denis Von: ntg-context im Auftrag von peter.hopcroft--- via ntg-context Gesendet: Samstag, 27. Mai 2023 03:52:42 An: ntg-context@ntg.nl Cc: peter.hopcr...@icloud.com Betreff: [NTG-context] Can ConTeXt write its pdf to a different directory? My .tex file is in a directory within my working directory. I would like ConTeXt to write its output in the same directory as my .tex file. But it writes to the working directory. This was asked 10 years ago: `tex.stackexchange.com/questions/67928/how-to-set-output-directory-in-context-command` The answer given then was to use: `context filename --result=output-directory/filename` But this doesn't work now. When I compile my .tex file, I get a message: `results are to be on the running path, not on 'output-directory', ignoring --result` I've looked in the wiki: `https://wiki.contextgarden.net/Context` Thank you, Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Can ConTeXt write its pdf to a different directory?
Max, that answer seems like magic to me, in the sense of an advanced technology. Thank you. It's not quite working for me yet. I'll explore more tomorrow and learn about lua. Peter > On 27/05/2023, at 3:53 PM, Max Chernoff via ntg-context > wrote: > > Hi Peter, > >> My .tex file is in a directory within my working directory. I would like >> ConTeXt to write its output in the same directory as my .tex file. But it >> writes to the working directory. >> >> This was asked 10 years ago: >> `tex.stackexchange.com/questions/67928/how-to-set-output-directory-in-context-command` >> >> The answer given then was to use: >> `context filename --result=output-directory/filename` >> >> But this doesn't work now. When I compile my .tex file, I get a message: >> `results are to be on the running path, not on 'output-directory', ignoring >> --result` > > This seems to work, although I'm not sure that I would call it a "good" > solution: > > \startluacode > local function absolute(path) > return file.collapsepath(dir.expandname(path)) > end > > local texfile = absolute(environment.filename) > local pdffile = file.addsuffix( > absolute(environment.inputfilebarename), > "pdf" > ) > > luatex.wrapup(function() > os.rename(pdffile, file.replacesuffix(texfile, "pdf")) > end) > \stopluacode > > \starttext > Hello! > \stoptext > > -- Max > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Luatex 1.17.0 announcement.
(Sorry for the delay, I wanted to be sure that building phase was over) == LuaTeX 1.17.0 2023-04-29 == - A breaking backward compatibility change: by default the socket library is not enabled . The new option --socket enable the socket library as before, as also --shell-escape (without --shell-restricted); --nosocket, --no-socket , --safer disabled the library, and they have the priority in case of conflicting options. The mime library is always available; socket.sleep and socket.gettime are duplicated as os.socketsleep and os.socketgettime, both always available. The new os.kpsepopen replace io.popopen in kpse mode (i.e. when kpse_init is not zero) as it was before but the permission now cannot be changed anymore with kpse.check_permission . The function os.kpsepopen follows the same restrictions as io.popen . Thanks to Max Chernoff for debugging. --luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___