Re: [NTG-context] Layer failure with LMTX
On 4/8/2019 12:21 AM, Rik Kabel wrote: List, The following example works as expected with MKIV but fails for me with LMTX. \setuppapersize[A7] \setuppagenumbering [location=] \definelayer [pageNumber][ x=\dimexpr\pagewidth-\cutspace\relax, y=\topspace, width=\pagewidth, height=\pageheight, ] \startsetups [setupPage] \setlayer[pageNumber] {\hskip\leftmargindistance \inframed[frame=off,leftframe=on,loffset=1em]{\userpage}} \stopsetups \setupbackgrounds[page] [setups=setupPage, background=pageNumber] \starttext \page[empty] \stoptext use the official interface variables \paperwidth and \paperheight ... \pagewidth and \pageheight were never user variables (so you were lucky till now) 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] additional space with sidebar and narrower
Am 2019-04-07 um 21:32 schrieb Hans Hagen : > On 4/7/2019 8:44 PM, Henning Hraban Ramm wrote: >> Am 2019-03-27 um 00:06 schrieb Henning Hraban Ramm : >>> Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster >>> : >>> Henning Hraban Ramm schrieb am 26.03.19 um 16:04: > Thank you, I found that myself (could have written). > > But the problem is that there’s space introduced if I use both > environments, but not if I use only one. And I didn’t find how I can > avoid that. Change the order of both environment and put sidebar in the narrower block. The reason for the extra line is that \startsidebar begins a new paragraph but \startnarrower end the lest paragraph which results in a single empty line. >>> >>> Thank you, that works in my MWE, but not in my real life book. (I was sure >>> I tested that approach already...) I’ll investigate further. >> I finally found out what’s the problem: >> \starttext >> \input tufte >> \startnarrower >> \startsidebar >> \startparagraph >> \input knuth >> \stopparagraph >> \stopsidebar >> \stopnarrower >> \input tufte >> \stoptext >> As soon as I use \start/stopparagraph within narrower and sidebar, there’s >> additional space introduced. How can I avoid that? > swap 'm > > \startnarrower > \startparagraph > \startsidebar > \input knuth > \stopsidebar > \stopparagraph > \stopnarrower Thank you, but I need the sidebar over several paragraphs. (And I wrapped narrower and sidebar in its own startstop.) Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] Layer failure with LMTX
List, The following example works as expected with MKIV but fails for me with LMTX. \setuppapersize[A7] \setuppagenumbering [location=] \definelayer [pageNumber][ x=\dimexpr\pagewidth-\cutspace\relax, y=\topspace, width=\pagewidth, height=\pageheight, ] \startsetups [setupPage] \setlayer[pageNumber] {\hskip\leftmargindistance \inframed[frame=off,leftframe=on,loffset=1em]{\userpage}} \stopsetups \setupbackgrounds[page] [setups=setupPage, background=pageNumber] \starttext \page[empty] \stoptext -- Rik ___ 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] \hbox dir TRT syntax error with LMTX
On 4/7/2019 11:04 PM, Joseph Canedo wrote: Dear all, Trying to compile this MWE \starttext \hbox dir TRT{TRT box} don't use these low level commands use: \naturalhbox{r2l box} \reversehbox{l2r box} and in running text \righttoleft and \lefttoright and at the document level \setupalign[r2l] etc .. context supports only that (in order to avoid unwanted side effects and interferences) 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] luametatex : command not found
Hi Fabrice, Have you added /home/viserion/data/context/tex/texmf-linux-64/bin to your PATH environment variable? Joseph De : Fabrice Couvreur Envoyé le :dimanche 7 avril 2019 13:13 À : mailing list for ConTeXt users Objet :[NTG-context] luametatex : command not found Hi, My system is unix and my platform is linux-64. I installed ConTeXt LMTX as described, namely in my home and in the directory /data /context/ I then tried to compile but without success a file : [viserion@archlinux ~]$ /home/viserion/data/context/tex/texmf-linux-64/bin/context area.tex mtx-context | run 1: luametatex --fmt="/home/viserion/data/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en" --jobname="area" --lua="/home/viserion/data/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui" --c:currentrun=1 --c:fulljobname="./area.tex" --c:input="./area.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/home/viserion/data/context/tex/texmf-linux-64/bin" "cont-yes.mkiv" sh: luametatex : commande introuvable mtx-context | fatal error: return code: 32512 [viserion@archlinux ~]$ Thanks Fabrice ___ 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] \hbox dir TRT syntax error with LMTX
Dear all, Trying to compile this MWE \starttext \hbox dir TRT{TRT box} \stoptext Fails with context LMTX command with error : tex error > tex error on line 3 in file c:/Users/Jo/Documents/Bible/Bibles/Olivetan/Tests/test_hbox_dir.tex: ! Missing { inserted d d ir l.3 \hbox dir TRT{TRT box} 1 \starttext 2 3 >> \hbox dir TRT{TRT box} 4 5 \stoptext 6 What’s the syntax for setting box direction now please? Thanks Joseph ___ 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] additional space with sidebar and narrower
On 4/7/2019 8:44 PM, Henning Hraban Ramm wrote: Am 2019-03-27 um 00:06 schrieb Henning Hraban Ramm : Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster : Henning Hraban Ramm schrieb am 26.03.19 um 16:04: Thank you, I found that myself (could have written). But the problem is that there’s space introduced if I use both environments, but not if I use only one. And I didn’t find how I can avoid that. Change the order of both environment and put sidebar in the narrower block. The reason for the extra line is that \startsidebar begins a new paragraph but \startnarrower end the lest paragraph which results in a single empty line. Thank you, that works in my MWE, but not in my real life book. (I was sure I tested that approach already...) I’ll investigate further. I finally found out what’s the problem: \starttext \input tufte \startnarrower \startsidebar \startparagraph \input knuth \stopparagraph \stopsidebar \stopnarrower \input tufte \stoptext As soon as I use \start/stopparagraph within narrower and sidebar, there’s additional space introduced. How can I avoid that? swap 'm \startnarrower \startparagraph \startsidebar \input knuth \stopsidebar \stopparagraph \stopnarrower - 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] additional space with sidebar and narrower
Am 2019-03-27 um 00:06 schrieb Henning Hraban Ramm : > Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster > : > >> Henning Hraban Ramm schrieb am 26.03.19 um 16:04: >>> Thank you, I found that myself (could have written). >>> >>> But the problem is that there’s space introduced if I use both >>> environments, but not if I use only one. And I didn’t find how I can avoid >>> that. >> Change the order of both environment and put sidebar in the narrower block. >> >> The reason for the extra line is that \startsidebar begins a new paragraph >> but \startnarrower end the lest paragraph which results in a single empty >> line. > > Thank you, that works in my MWE, but not in my real life book. (I was sure I > tested that approach already...) I’ll investigate further. I finally found out what’s the problem: \starttext \input tufte \startnarrower \startsidebar \startparagraph \input knuth \stopparagraph \stopsidebar \stopnarrower \input tufte \stoptext As soon as I use \start/stopparagraph within narrower and sidebar, there’s additional space introduced. How can I avoid that? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] name of cache used by mkiv and lmtx
On Sun, 7 Apr 2019, Hans Hagen wrote: On 4/6/2019 8:49 PM, Aditya Mahajan wrote: On Sat, 6 Apr 2019, Alan Braslau wrote: On Sat, 6 Apr 2019 13:46:57 -0400 (EDT) Aditya Mahajan wrote: Is there a way to avoid that? I can, of course, set different values of TEXMFCACHE for both distributions, but does it make sense to to use a different hash (5fe67e...) for the two? Why do you set TEXMFCACHE and not simply keep separate texmf-cache directories under your lmtx and mkiv CONTEXTROOT directories? I install both mkiv and lmtx at /opt/... so that the installations can be shared by multiple users. TEXMFCACHE needs to be writable by the user, so the natural choice is to set TEXMFCACHE to $HOME/texmf-cache. We only make an engine distinction (luatex luajittex luametatex) in the format file not in the cache and that is because the formats can differ but in other places the suffix makes the difference doing that in the cache in possible but in the end i don't expect one installation to have both engines because then we might that granularity in more places Ok. we have tma tmc (lua) tmb (jit) ... one option is to use tmd (or so) for luametatex but for that we need to adapt some lua code There is really no need to introduce more complexity into the code. As I said, it is straight forward for me to use different cache directories for mkiv and lmtx. Thanks, Aditya ___ 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] name of cache used by mkiv and lmtx
On 4/6/2019 8:49 PM, Aditya Mahajan wrote: On Sat, 6 Apr 2019, Alan Braslau wrote: On Sat, 6 Apr 2019 13:46:57 -0400 (EDT) Aditya Mahajan wrote: Is there a way to avoid that? I can, of course, set different values of TEXMFCACHE for both distributions, but does it make sense to to use a different hash (5fe67e...) for the two? Why do you set TEXMFCACHE and not simply keep separate texmf-cache directories under your lmtx and mkiv CONTEXTROOT directories? I install both mkiv and lmtx at /opt/... so that the installations can be shared by multiple users. TEXMFCACHE needs to be writable by the user, so the natural choice is to set TEXMFCACHE to $HOME/texmf-cache. We only make an engine distinction (luatex luajittex luametatex) in the format file not in the cache and that is because the formats can differ but in other places the suffix makes the difference doing that in the cache in possible but in the end i don't expect one installation to have both engines because then we might that granularity in more places we have tma tmc (lua) tmb (jit) ... one option is to use tmd (or so) for luametatex but for that we need to adapt some lua code i'll send you something to test with 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 ___
[NTG-context] Can not update Context Standalone
Hi, I have just updated context standalone and I get the following errors : When you want to use context, you need to initialize the tree by typing: . /home/viserion/context/tex/setuptex in your shell or add "/home/viserion/context/tex/texmf-linux-64/bin" to PATH variable if you want to set it permanently. This can usually be done in .bashrc, .bash_profile (or whatever file is used to initialize your shell). [viserion@archlinux context]$ mtxrun --generate bash: /home/viserion/bin/mtxrun: Aucun fichier ou dossier de ce type [viserion@archlinux context]$ context --make /home/viserion/texlive/2018/bin/x86_64-linux/context: ligne 2: /home/viserion/bin/mtxrun: Aucun fichier ou dossier de ce type [viserion@archlinux context]$ Thanks Fabrice ___ 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] luametatex : command not found
Hi, My system is unix and my platform is linux-64. I installed ConTeXt LMTX as described, namely in my home and in the directory /data /context/ I then tried to compile but without success a file : [viserion@archlinux ~]$ /home/viserion/data/context/tex/texmf-linux-64/bin/context area.tex mtx-context | run 1: luametatex --fmt="/home/viserion/data/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en" --jobname="area" --lua="/home/viserion/data/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui" --c:currentrun=1 --c:fulljobname="./area.tex" --c:input="./area.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/home/viserion/data/context/tex/texmf-linux-64/bin" "cont-yes.mkiv" sh: luametatex : commande introuvable mtx-context | fatal error: return code: 32512 [viserion@archlinux ~]$ Thanks Fabrice ___ 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 ___