[NTG-context] \definemathfence broken in latest
Hi List, The command \definemathfence seems to not be working as it did in other recent LMTX. MWE: \definemathfence[abs][bar][command=yes] \starttext \startformula \abs{v} = \frac{1.32}{1.41} = 0.935 \stopformula \stoptext This causes an error, complaining that \abs is undefined. However, workes fine with ConTeXt ver: 2023.02.07 19:06 LMTX fmt: 2023.3.14 int: english/english Should I be doing this differently? Gavin ___ 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] Spacing problem around decimal point
Hi List, I’m getting strange spaces around some decimal points after a clean LMTX install. MWE: \starttext \startformula v = \frac{1.32}{1.41} = 0.935 \stopformula \stoptext This produces the result attached below. The 1.32 looks fine, but the next two numbers have excess space around the decimal point. Adding the line \showmakeup[mathglue] %\mathspacingmode=1 to the preamble reveals that the second and third decimal points are being treated as binary operators. It’s very strang. Are others getting this? Gavin PastedGraphic-1.pdf Description: Adobe PDF document ___ 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On Sat, Mar 25, 2023 at 11:09:18PM +0100, Hans Hagen via ntg-context wrote: > On 3/25/2023 10:36 PM, Carlos via ntg-context wrote: > > On Sat, Mar 25, 2023 at 09:45:25PM +0100, Hans Hagen via ntg-context wrote: > > > On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: > > > > > > > > > > > ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1030: in > > > > upvalue 'walk_tree' > > > Maybe your OSFONTDIR is pointing to empty. Does > > > > Good call. Thank you for the reminder Hans. But no. That variable was set > > long ago . Even appended it to both the bash initialization file and also > > under /etc/profile (just in case here). Alpine uses ash so shells must be > > changed > > > > > > > >mtxrun --script font --reload > > > > > fonts | names | 3092 afm files checked, okay > > fonts | names | identifying tree font files with suffix 'AFM' > > fonts | names | scanning path > > '/home/ce/.texlive2023/texmf-config' for AFM files > > fonts | names | 0 AFM files checked, okay > > fonts | names | scanning path '/home/ce/texmf' for AFM files > > fonts | names | 0 AFM files checked, okay > > fonts | names | scanning path > > '/usr/local/texlive/2023/texmf-config' for AFM files > > fonts | names | 0 AFM files checked, okay > > fonts | names | scanning path '/usr/local/texlive/2023/texmf-var' > > for AFM files > > fonts | names | 0 AFM files checked, okay > > fonts | names | scanning path > > '/usr/local/texlive/2023/texmf-local' for AFM files > > fonts | names | 24 AFM files checked, okay > > fonts | names | scanning path > > '/usr/local/texlive/2023/texmf-dist' for AFM files > > fonts | names | 3092 AFM files checked, okay > > fonts | names | 6232 tree files identified, 14 skipped, 14 > > duplicates, 6218 hash entries added, runtime 8.458 seconds > > fonts | names | identifying system font files with suffix 'otf' > > fonts | names | variable 'OSFONTDIR' specifies path '/home/ce' > > fonts | names | variable 'OSFONTDIR' specifies path > > '/usr/share/fonts' > > fonts | names | globbing path '/home/ce/**.otf' > > > > lua error : function call: > > /usr/local/texlive/2023/bin/x86_64-linuxmusl/mtxrun.lua:649: cannot open > > /home/ce/cache/headers/imaps:@gmail@imap.gmail.com/[Gmail]/.: > > Permission denied > > hm, but is home/ce/cache a path where there are fonts to be found? something Not to my knownledge. It's just that that particular folder only has root permissions and not for the user. Recursively that is. Like you said. Only not with fonts. > sets that path to be a fully recursive font dir > > can you set OSFONTDIR to '/usr/share/fonts' > it's already set echo $OSFONTDIR /usr/share/fonts > (personally i never use system fonts, i always put copies in > texmf-fonts/fonts/data becasue system fonts can change or disappear) > I'll probably do that. > > Recall that the other folders owned by root had to be moved out of the way > > > > So it seems it wasn't enough, nope. Now it wants access elsewhere > > > > bottom line: it wants root permissions or else fails flat out > > well, it's not entirely clear what generates the permission denied; i can > check for the home/ce being readable but doing that for every regular file > below that would add lots of slow checks and i'm not even sure if it would > fix it; i can try to check nested dirs but that then also obscures possible > issues You would know better than I do here. I somehow postponed this current issue thinking that a fresh TeX Live installation would resolve it once and for all. But no. > > 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 > ___ -- ASHes to ASHes, DOS to DOS. ___ 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
[NTG-context] How to prefix the list of figures with part number?
Hello again, My project has different parts. Each part contains a whole list of figures. At the beginning of the book I would like to place a list of all figures. Hoever they should be prefixed with the part number. I can not figure out how to achieve this. May be someone can hint me… Cheers Willi \setuplist[figures][pageprefixsegments=part:chapter] % Pageprefix? \setuphead[part][placehead=yes] \starttext \startpart[title=part one] \starttitle[title=Contents] \placelist[part,chapter][criterium=all] \startsubject[title=Figures] \placelistoffigures[criterium=all] \stopsubject \stoptitle \startchapter[title=Mychapter] \input knuth \startsubject[title=Subject will be in TOC] \writetolist[chapter]{1}{I am in TOC!} \input ward \startplacefigure [location=middle, title=Cow 1] {\externalfigure[cow][width=7cm]} \stopplacefigure \stopsubject \stopchapter \stoppart \startpart[title=Part two] \startchapter[title=Myotherchapter] \startplacefigure [location=middle, title=Cow 2] {\externalfigure[cow][width=7cm]} \stopplacefigure \stopchapter \stoppart \stoptext ___ 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On 3/25/2023 10:36 PM, Carlos via ntg-context wrote: On Sat, Mar 25, 2023 at 09:45:25PM +0100, Hans Hagen via ntg-context wrote: On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1030: in upvalue 'walk_tree' Maybe your OSFONTDIR is pointing to empty. Does Good call. Thank you for the reminder Hans. But no. That variable was set long ago . Even appended it to both the bash initialization file and also under /etc/profile (just in case here). Alpine uses ash so shells must be changed mtxrun --script font --reload fonts | names | 3092 afm files checked, okay fonts | names | identifying tree font files with suffix 'AFM' fonts | names | scanning path '/home/ce/.texlive2023/texmf-config' for AFM files fonts | names | 0 AFM files checked, okay fonts | names | scanning path '/home/ce/texmf' for AFM files fonts | names | 0 AFM files checked, okay fonts | names | scanning path '/usr/local/texlive/2023/texmf-config' for AFM files fonts | names | 0 AFM files checked, okay fonts | names | scanning path '/usr/local/texlive/2023/texmf-var' for AFM files fonts | names | 0 AFM files checked, okay fonts | names | scanning path '/usr/local/texlive/2023/texmf-local' for AFM files fonts | names | 24 AFM files checked, okay fonts | names | scanning path '/usr/local/texlive/2023/texmf-dist' for AFM files fonts | names | 3092 AFM files checked, okay fonts | names | 6232 tree files identified, 14 skipped, 14 duplicates, 6218 hash entries added, runtime 8.458 seconds fonts | names | identifying system font files with suffix 'otf' fonts | names | variable 'OSFONTDIR' specifies path '/home/ce' fonts | names | variable 'OSFONTDIR' specifies path '/usr/share/fonts' fonts | names | globbing path '/home/ce/**.otf' lua error : function call: /usr/local/texlive/2023/bin/x86_64-linuxmusl/mtxrun.lua:649: cannot open /home/ce/cache/headers/imaps:@gmail@imap.gmail.com/[Gmail]/.: Permission denied hm, but is home/ce/cache a path where there are fonts to be found? something sets that path to be a fully recursive font dir can you set OSFONTDIR to '/usr/share/fonts' (personally i never use system fonts, i always put copies in texmf-fonts/fonts/data becasue system fonts can change or disappear) Recall that the other folders owned by root had to be moved out of the way So it seems it wasn't enough, nope. Now it wants access elsewhere bottom line: it wants root permissions or else fails flat out well, it's not entirely clear what generates the permission denied; i can check for the home/ce being readable but doing that for every regular file below that would add lots of slow checks and i'm not even sure if it would fix it; i can try to check nested dirs but that then also obscures possible issues 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] \writetolist not writing the number to the TOC
Good evening! I have a setup in which I need to send info to the TOC: Consider the following example: \starttext \starttitle[title=Contents] \placelist[chapter][criterium=all] \stoptitle \startchapter[title=Mychapter] \input knuth \startsubject[title=Subject will be in TOC] \writetolist[chapter]{1}{I am in TOC!} \input ward \stopsubject \stopchapter \stoptext According to the Wiki I should get te number (1) in the TOC. Instead the text starts at the height of the chapter-numbering and is not carrying the given number. Am I doing something wrong? Kind regards Willi ___ 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] How to rotate the caption of a table...
Hello Hraban, thank you! indeed the trick is to use \startplacetable[location=90] Cheers Willi > On 25 Mar 2023, at 21:55, Henning Hraban Ramm via ntg-context > wrote: > > Am 25.03.23 um 21:39 schrieb Willi Egger via ntg-context: >> Hello everybody, >> in my project is a table which does not fit the width of the page. Hence I >> need to rotate it. Rotating the table is ok, but the caption is not rotated. >> My question is how can I instruct ConTeXt to rotate the caption and place it >> on the right side? >> My attempt: >> \setupcaption[table][location=right,orientation=90] >> \startplacetable >> [location=middle, >> reference=tab:papierformaten, >> title={Standaardformaten}] >> \rotate[rotation=90]{\externalfigure[Table1][type=buffer]} >> \stopplacetable > > I think \setupcaption[orientation=90] should work. Did you try different > locations? > > But the problem might be your use of \rotation, since \startplacefloat as > well as \setupTABLE have options for rotation. > Try \startplacetable[location=90] > > Hraban > ___ > 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On Sat, Mar 25, 2023 at 09:45:25PM +0100, Hans Hagen via ntg-context wrote: > On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: > > > ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1030: > > in upvalue 'walk_tree' > Maybe your OSFONTDIR is pointing to empty. Does Good call. Thank you for the reminder Hans. But no. That variable was set long ago . Even appended it to both the bash initialization file and also under /etc/profile (just in case here). Alpine uses ash so shells must be changed > > mtxrun --script font --reload > fonts | names | 3092 afm files checked, okay fonts | names | identifying tree font files with suffix 'AFM' fonts | names | scanning path '/home/ce/.texlive2023/texmf-config' for AFM files fonts | names | 0 AFM files checked, okay fonts | names | scanning path '/home/ce/texmf' for AFM files fonts | names | 0 AFM files checked, okay fonts | names | scanning path '/usr/local/texlive/2023/texmf-config' for AFM files fonts | names | 0 AFM files checked, okay fonts | names | scanning path '/usr/local/texlive/2023/texmf-var' for AFM files fonts | names | 0 AFM files checked, okay fonts | names | scanning path '/usr/local/texlive/2023/texmf-local' for AFM files fonts | names | 24 AFM files checked, okay fonts | names | scanning path '/usr/local/texlive/2023/texmf-dist' for AFM files fonts | names | 3092 AFM files checked, okay fonts | names | 6232 tree files identified, 14 skipped, 14 duplicates, 6218 hash entries added, runtime 8.458 seconds fonts | names | identifying system font files with suffix 'otf' fonts | names | variable 'OSFONTDIR' specifies path '/home/ce' fonts | names | variable 'OSFONTDIR' specifies path '/usr/share/fonts' fonts | names | globbing path '/home/ce/**.otf' lua error : function call: /usr/local/texlive/2023/bin/x86_64-linuxmusl/mtxrun.lua:649: cannot open /home/ce/cache/headers/imaps:@gmail@imap.gmail.com/[Gmail]/.: Permission denied Recall that the other folders owned by root had to be moved out of the way So it seems it wasn't enough, nope. Now it wants access elsewhere bottom line: it wants root permissions or else fails flat out Even with sudo privileges the best it can do is: resolvers | formats | executing runner 'run luametatex format': /usr/local/texlive/2023/bin/x86_64-linuxmusl/luametatex --jobname="./atestinlucida-context-55.mkiv" --fmt=/usr/local/texlive/2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/formats/luametatex/cont-en.fmt --lua=/usr/local/texlive/2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/formats/luametatex/cont-en.lui --c:currentrun=1 --c:fulljobname="./atestinlucida-context-55.mkiv" --c:input="./atestinlucida-context-55.mkiv" --c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/usr/local/texlive/2023/bin/x86_64-linuxmusl" system > system > ConTeXt ver: 2023.03.10 12:15 LMTX fmt: 2023.3.25 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name '/usr/local/texlive/2023/texmf-dist/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source> level 1, order 1, name '/usr/local/texlive/2023/texmf-dist/tex/context/base/mkxl/cont-new.mkxl' system > files > jobname './atestinlucida-context-55', input './atestinlucida-context-55.mkiv', result './atestinlucida-context-55' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name './atestinlucida-context-55.mkiv' fonts > preloading latin modern fonts (second stage) mathematics > tweak > 'LatinModernMath-Regular', size 6, math size 3, version 'Version 1.959' found, version 'Version 1.958' expected fonts > 'fallback modern rm 12pt' is loaded open source > level 2, order 3, name '/usr/local/texlive/2023/texmf-dist/tex/context/fonts/mkiv/type-imp-lucida.mkiv' close source> level 2, order 3, name '/usr/local/texlive/2023/texmf-dist/tex/context/fonts/mkiv/type-imp-lucida.mkiv' fonts > defining > forced type 'otf' of 'LucidaBrightOT' not found fonts > defining > unable to define 'LucidaBrightOT.otf' as 'MyLucida-10pt-rm-tf-0--0' open source > level 2, order 4, name 'zapf.tex' close source> level 2, order 4, name 'zapf.tex' open source > level 2, order 5, name 'tufte.tex' close source> level 2, order 5, name 'tufte.tex' backend > xmp > using file '/usr/local/texlive/2023/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 close source> level 1, order 5, name
Re: [NTG-context] \setupTABLE: framecolor
Thanks for this Hraban. I had come to the conclusion that there was no possibility of a 'bottomframecolor' option, and as TABLE is one of the older commands and important for XML, I assume it won't change much (though the option of different colours for frame sides would be good, and may not affect TABLE as such since it is \framed we are talking about really). Bruce's suggestion of a dummy row is a simple one, and it works. But I will also look at your solution too. Am always keen to have more than one arrow in the quiver! Julian On 25/3/23 20:48, Henning Hraban Ramm via ntg-context wrote: Am 25.03.23 um 06:45 schrieb jbf via ntg-context: Hi, I am struggling with the last row of a table which, according to its author, should have a black bottomframe, but gray (I am using a defined 'lightgray') for the sides. The first row has a black frame. All intermediate rows have gray. I have no difficulty achieving the first row, and the black bottomframe for the last row, but I have been unable to get the last row sides to be gray. Here is the current setups that I have: \setupTABLE[frame=off] \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE[row][2][topframe=on] \setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray] \setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21][frame=on, framecolor=lightgray] \setupTABLE[row] [last] [bottomframe=on,style=normal] My first row is fine and all but the topframe of row 2 is 'lightgray'; all following rows are 'lightgray'. The last row (22) has a black bottomframe, but how could I achieve 'lightgray' for rightframe, leftframe? If I add a new setup e.g. \setupTABLE[row][last][rightframe=on,leftframe=on,framecolor=lightgray] then I lose the bottomframe in black. I have tried all kinds of combinations but unsuccessfully. Table cells are based on \framed, and there doesn’t seem to be an option to have different colors of parts of the frame (e.g. bottomframecolor…) You can use a MetaPost graphic as background, like in the “diagonal” example: https://wiki.contextgarden.net/TABLE#Diagonal_rules HTH, Hraban ___ 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] How to rotate the caption of a table...
Am 25.03.23 um 21:39 schrieb Willi Egger via ntg-context: Hello everybody, in my project is a table which does not fit the width of the page. Hence I need to rotate it. Rotating the table is ok, but the caption is not rotated. My question is how can I instruct ConTeXt to rotate the caption and place it on the right side? My attempt: \setupcaption[table][location=right,orientation=90] \startplacetable [location=middle, reference=tab:papierformaten, title={Standaardformaten}] \rotate[rotation=90]{\externalfigure[Table1][type=buffer]} \stopplacetable I think \setupcaption[orientation=90] should work. Did you try different locations? But the problem might be your use of \rotation, since \startplacefloat as well as \setupTABLE have options for rotation. Try \startplacetable[location=90] Hraban ___ 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On Sat, Mar 25, 2023 at 09:26:36PM +0100, Hans Hagen via ntg-context wrote: > On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: > > Hello list: > > > > This is under a fresh TeXLive installation. Sort as to put aside any > > texlive prepackaged issues. > > > > And the followign lines is the output of the error I've been having with > > the call of context on a recent texlive installation by both mtxrun > > --generate and luatools --generate right after. > > there i no need to use luatools (it's something old from the early days) > > what does > > mtxrun --generate --verbose It doesn't. This is under the same folder in question. Recall I moved the other group owned files elsewhere out of the way This is the output system | lua | compiling '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lua' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lud' system | lua | dumping '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lua' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lud' stripped resolvers | caching | 'files' compiled to '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lud' resolvers | resolving | saving tree 'selfautoparent:texmf-dist' resolvers | caches | hashing tree 'selfautoparent:texmf-dist', hash '929f6dbc83f6d3b65dab91f1efa4aacb' resolvers | caching | preparing 'files' for 'selfautoparent:texmf-dist' resolvers | caching | category 'files', cachename 'selfautoparent:texmf-dist' saved in '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lua' system | lua | compiling '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lua' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lud' system | lua | dumping '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lua' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lud' stripped resolvers | caching | 'files' compiled to '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lud' mtxrun | mtxrun | elapsed lua time: 4.327 seconds > > 58 > > 59 \usetypescriptfile[type-lucida] > > 60 \usetypescript[Lucida][texnansi] > > 61 >> \setupbodyfont[MyLucida, 10pt] > > 62 > > 63 \input zapf > > 64 > > 65 \input tufte > > fwiw, lucida type one makes no sense any more because the opentype version > is way better (and in the updated math setup in lmtx we didn't even look at > it) > It goes throught without a problem under Void Linux. pfm and afm files on this one are right there in place. On this one: Alpine. It's a problem. or a given :) depending how one looks at it. > > Is LuaLaTeX behaving the same way? > > > > Answer: no. > > no surprise because it doesn't use the same setup > > what cache path does > > mtxrun --variables > > report mtxrun --variables resolvers | lists | AFMFONTS resolvers | lists | env: unset resolvers | lists | var: AFMFONTS resolvers | lists | exp: .\{home:.texlive2023/texmf-config, home:texmf, !!selfautoparent:texmf-config, !!selfautoparent:texmf-var, !!selfautoparent:texmf-project, !!selfautoparent:texmf-fonts, !!selfautoparent:texmf-local, !!selfautoparent:texmf-dist}/fonts/{data, afm}//\/home/ce\/usr/share/fonts resolvers | lists | res: .\{/home/ce/.texlive2023/texmf-config, /home/ce/texmf, !!/usr/local/texlive/2023/texmf-config, !!/usr/local/texlive/2023/texmf-var, !!/usr/local/texlive/2023/texmf-project, !!/usr/local/texlive/2023/texmf-fonts, !!/usr/local/texlive/2023/texmf-local, !!/usr/local/texlive/2023/texmf-dist}/fonts/{data, afm}//\/home/ce\/usr/share/fonts resolvers | lists | BIBINPUTS resolvers | lists | env: unset resolvers | lists | var: BIBINPUTS resolvers | lists | exp: .\{home:.texlive2023/texmf-config, home:texmf, !!selfautoparent:texmf-config, !!selfautoparent:texmf-var, !!selfautoparent:texmf-project, !!selfautoparent:texmf-fonts, !!selfautoparent:texmf-local, !!selfautoparent:texmf-dist}/bibtex/bib//\{home:.texlive2023/texmf-config, home:texmf, !!selfautoparent:texmf-config, !!selfautoparent:texmf-var,
Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1030: in upvalue 'walk_tree' Maybe your OSFONTDIR is pointing to empty. Does mtxrun --script font --reload work 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] How to rotate the caption of a table...
Hello everybody, in my project is a table which does not fit the width of the page. Hence I need to rotate it. Rotating the table is ok, but the caption is not rotated. My question is how can I instruct ConTeXt to rotate the caption and place it on the right side? My attempt: test.pdf Description: Adobe PDF document \setupcaption[table][location=right,orientation=90] \startplacetable [location=middle, reference=tab:papierformaten, title={Standaardformaten}] \rotate[rotation=90]{\externalfigure[Table1][type=buffer]} \stopplacetable Thank you for your support Willi___ 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] Building fomula
Hello Alexandre, thank you so much, this is precisely what I was looking for! Cheers Willi > On 25 Mar 2023, at 18:28, Alexandre Christe via ntg-context > wrote: > > Hi Willi, > > A dead simple solution would be > > \starttext > \startformula > {\frac{47 \times 62}{44 \times 56}} \times {12} \qquad \rm{or} \qquad > {{\frac{47 \times 62 \times 12}{44 \timess 56}}=14.2 \rm kilo} > \stopformula > > \stoptext > > > Le sam. 25 mars 2023 à 18:09, Willi Egger via ntg-context > a écrit : > Good afternoon everybody, > > I should place two faily simple formulae next to each other, they should be > coupled by ‘or’. What I have now is, that the formulae indeed are next to > each other and separated by ‘or’, but the result of the second formula is > moved und this formula to the next line. > In the setup of book there would be enough place, if I coud decrease the > space left and right of the ‘or’. > > How can I achieve this? > > Cheers > > Willi > > \starttext > \startformulas > \startformula[align=right] > {\frac{47 \times 62}{44 \times 56}} \times {12} > \stopformula > \startformula[align=right,width=0.2\textwidth] > or > \stopformula > \startformula[align=right] > {{\frac{47 \times 62 \times 12}{44 \times 56}}=14.2 \rm kilo} > \stopformula > > \stopformulas > \blank[small] > rounded 14 kilo. > \stoptext > > > ___ > 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 > ___ ___ 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: Hello list: This is under a fresh TeXLive installation. Sort as to put aside any texlive prepackaged issues. And the followign lines is the output of the error I've been having with the call of context on a recent texlive installation by both mtxrun --generate and luatools --generate right after. there i no need to use luatools (it's something old from the early days) what does mtxrun --generate --verbose report (whre does it fail) 57 \starttext 58 59 \usetypescriptfile[type-lucida] 60 \usetypescript[Lucida][texnansi] 61 >> \setupbodyfont[MyLucida, 10pt] 62 63 \input zapf 64 65 \input tufte fwiw, lucida type one makes no sense any more because the opentype version is way better (and in the updated math setup in lmtx we didn't even look at it) Is LuaLaTeX behaving the same way? Answer: no. no surprise because it doesn't use the same setup what cache path does mtxrun --variables report 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
Hello list: This is under a fresh TeXLive installation. Sort as to put aside any texlive prepackaged issues. And the followign lines is the output of the error I've been having with the call of context on a recent texlive installation by both mtxrun --generate and luatools --generate right after. mtxrun --script cache --erase has also been called out to no avail registered function call [1160]: ...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied stack traceback: [C]: in upvalue 'func' ...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: in function 'lfs.dir' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:139: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:163: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:163: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:163: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:163: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:180: in function <.../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:169> (...tail calls...) ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1030: in upvalue 'walk_tree' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1190: in local 'method' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1152: in local 'traverse' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1200: in upvalue 'analyzefiles' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1286: in field 'identify' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1311: in field 'load' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1322: in field 'load' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1588: in field 'getfilename' ...xlive/2023/texmf-dist/tex/context/base/mkxl/font-otl.lmt:835: in function <...xlive/2023/texmf-dist/tex/context/base/mkxl/font-otl.lmt:828> (...tail calls...) ...xlive/2023/texmf-dist/tex/context/base/mkxl/font-def.lmt:378: in function <...xlive/2023/texmf-dist/tex/context/base/mkxl/font-def.lmt:366> (...tail calls...) ...xlive/2023/texmf-dist/tex/context/base/mkxl/font-def.lmt:485: in field 'read' ...xlive/2023/texmf-dist/tex/context/base/mkxl/font-ctx.lmt:1377: in function <...xlive/2023/texmf-dist/tex/context/base/mkxl/font-ctx.lmt:1234> (...tail calls...) 51 ;definetypeface[MyLucida][rm][serif][lucida][default][encoding=texnansi] 52 \definetypeface[MyLucida][ss][sans][lucida][default][encoding=texnansi] 53 \definetypeface[MyLucida][tt][mono][lucida][default][encoding=texnansi] 54 \stoptypescript 55 56 57 \starttext 58 59 \usetypescriptfile[type-lucida] 60 \usetypescript[Lucida][texnansi] 61 >> \setupbodyfont[MyLucida, 10pt] 62 63 \input zapf 64 65 \input tufte 66 67 68 \stoptext 69 mtx-context | fatal error: return code: 1 it doesn't matter either whatever the typescript name goes and whether is type-lucida from texnansi-lucida-map file as it has been previously advised to change the name from . makes no difference. Is LuaLaTeX behaving the same way? Answer: no. The permission denied message happened first with folders whose permeissions were not owned by the user, but the root, so I moved the files out of harm's way to another folder . Anothr folder, NOT a subfolder. Then the problem persisted to read folders and even subfolders (directories, subdirectories) with cache filenames and headers that follow So let's not get to apprehensive, It's understandable that say, not reasonable, but understandable maybe? that mtxrun or lua for that matter will stop right before. So the folders were moved right after. Gone out of the binaries. But what I can't understand is why would it try to access cache folders unrelated with anything TeX or header folders for that matter This is perhaps more serious than I thought at first. And Let's not blame the TeXLive pre-packaged running under Alpine Linux. To put it in laymans' terms and If anything is clear to me, is that Alpine ir not letting Lua running beserk on the system and its folders, owned by whatever/whoever else, and with pesmissions set elsewhere. It's out of the question. Or it rather be. This is all writh a fresh TeX Live Installation. I mentioned the problem that may arise by questioning the Alpine installation because there were some problems with some binaries from the prepackaged TeX Live put out by Alpine devs. But this is not prepackaged. Nope. -- "We are on the verge: Today our
Re: [NTG-context] Building fomula
Hi Willi, A dead simple solution would be \starttext \startformula {\frac{47 \times 62}{44 \times 56}} \times {12} \qquad \rm{or} \qquad {{\frac{47 \times 62 \times 12}{44 \timess 56}}=14.2 \rm kilo} \stopformula \stoptext Le sam. 25 mars 2023 à 18:09, Willi Egger via ntg-context < ntg-context@ntg.nl> a écrit : > Good afternoon everybody, > > I should place two faily simple formulae next to each other, they should > be coupled by ‘or’. What I have now is, that the formulae indeed are next > to each other and separated by ‘or’, but the result of the second formula > is moved und this formula to the next line. > In the setup of book there would be enough place, if I coud decrease the > space left and right of the ‘or’. > > How can I achieve this? > > Cheers > > Willi > > \starttext > \startformulas > \startformula[align=right] > {\frac{47 \times 62}{44 \times 56}} \times {12} > \stopformula > \startformula[align=right,width=0.2\textwidth] > or > \stopformula > \startformula[align=right] > {{\frac{47 \times 62 \times 12}{44 \times 56}}=14.2 \rm kilo} > \stopformula > > \stopformulas > \blank[small] > rounded 14 kilo. > \stoptext > > > > ___ > 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] Building fomula
Good afternoon everybody, I should place two faily simple formulae next to each other, they should be coupled by ‘or’. What I have now is, that the formulae indeed are next to each other and separated by ‘or’, but the result of the second formula is moved und this formula to the next line. In the setup of book there would be enough place, if I coud decrease the space left and right of the ‘or’. How can I achieve this? Cheers Willi \starttext \startformulas \startformula[align=right] {\frac{47 \times 62}{44 \times 56}} \times {12} \stopformula \startformula[align=right,width=0.2\textwidth] or \stopformula \startformula[align=right] {{\frac{47 \times 62 \times 12}{44 \times 56}}=14.2 \rm kilo} \stopformula \stopformulas \blank[small] rounded 14 kilo. \stoptext ___ 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] \setupTABLE: framecolor
> On 25 Mar 2023, at 05:45, jbf via ntg-context wrote: > > Hi, I am struggling with the last row of a table which, according to its > author, should have a black bottomframe, but gray (I am using a defined > 'lightgray') for the sides. The first row has a black frame. All intermediate > rows have gray. > I have no difficulty achieving the first row, and the black bottomframe for > the last row, but I have been unable to get the last row sides to be gray. > Here is the current setups that I have: > \setupTABLE[frame=off] > \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold] > \setupTABLE[row][2][topframe=on] > \setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray] > \setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21][frame=on, > framecolor=lightgray] > \setupTABLE[row] [last] [bottomframe=on,style=normal] > > My first row is fine and all but the topframe of row 2 is 'lightgray'; all > following rows are 'lightgray'. The last row (22) has a black bottomframe, > but how could I achieve 'lightgray' for rightframe, leftframe? If I add a new > setup e.g. > \setupTABLE[row][last][rightframe=on,leftframe=on,framecolor=lightgray] then > I lose the bottomframe in black. I have tried all kinds of combinations but > unsuccessfully. > Julian One way to achieve what you want is to have a dummy last row. \setupTABLE[frame=off] \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE[row][2][topframe=on] \setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray] \setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22][frame=on, framecolor=lightgray] \setupTABLE[row] [last] [topframe=on,framecolor=black, height=0pt] \starttext \bTABLE \dorecurse{22}{ \bTR\bTD Row #1 column 1 \eTD\bTD Row #1 column 2 \eTD\eTR } % Dummy last row \bTR \eTR \eTABLE \stoptext — Bruce Horrocks Hampshire, UK ___ 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] \setupTABLE: framecolor
Am 25.03.23 um 06:45 schrieb jbf via ntg-context: Hi, I am struggling with the last row of a table which, according to its author, should have a black bottomframe, but gray (I am using a defined 'lightgray') for the sides. The first row has a black frame. All intermediate rows have gray. I have no difficulty achieving the first row, and the black bottomframe for the last row, but I have been unable to get the last row sides to be gray. Here is the current setups that I have: \setupTABLE[frame=off] \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE[row][2][topframe=on] \setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray] \setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21][frame=on, framecolor=lightgray] \setupTABLE[row] [last] [bottomframe=on,style=normal] My first row is fine and all but the topframe of row 2 is 'lightgray'; all following rows are 'lightgray'. The last row (22) has a black bottomframe, but how could I achieve 'lightgray' for rightframe, leftframe? If I add a new setup e.g. \setupTABLE[row][last][rightframe=on,leftframe=on,framecolor=lightgray] then I lose the bottomframe in black. I have tried all kinds of combinations but unsuccessfully. Table cells are based on \framed, and there doesn’t seem to be an option to have different colors of parts of the frame (e.g. bottomframecolor…) You can use a MetaPost graphic as background, like in the “diagonal” example: https://wiki.contextgarden.net/TABLE#Diagonal_rules HTH, Hraban ___ 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 ___