Re: [NTG-context] mtxrun
> Hi Luca, > > > 1) always writing the full path of the correct executable, > > I don't know which operating system you're using. On linux instead of > writing > the full path I'm using the command "alias" in my ".bashrc" file. So, > Adityas > proposal on mtxrun (Date: Wed, 12 Feb 2020 00:24:21 -0500 (EST)) becomes: > > alias context='~/context-lmtx/tex/texmf-linux-64/bin/mtxrun --autogenerate > --script > context' > with 'context-lmtx' being the directory, where I installed context. > With this you invoke your context file with "context your-file.tex" > I cancelled all context stuff in my PATH variable. Don't forget to 'source > ~/.bashrc' > afterwards. > > Hi Rudolf, thank you for your suggestion. I'm on linux but I'd prefer not to use this method, because I use context both from the command line and from my editor (emacs with auctex) and I have scripts that change my environment to be able to switch between different context versions (lmtx, texlive, ...). In any case, I'll think about this solution and it could be useful to other people, too. LD ___ 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] mtxrun
Thank you Aditya, > My question is then how > > do you usually run mtxrun: > > 1) always writing the full path of the correct executable, > > 2) avoid putting [lmtx path]/bin in PATH, > > 3) putting [lmtx path]/bin _after_ [lmtx path]/tex/texmf-linux-64/bin in > > the PATH > > > > I always follow 2. I don't think that [lmtx path]/bin should ever be in > the PATH except when updating the installation. > > Then I will go with option 2), and report back if I encounter any problem. If this works well, then it could be useful to change the message shown at the end of the installation process, as Rudolf already suggested in this thread. By the way, you seem to imply that [lmtx path]/bin should be in the PATH during updates. I didn't know that and I'm sure I've updated several times without it: I have different environments to be able to switch between different versions of context (lmtx, the old one, that from texlive...), I never check which one I'm in before updating lmtx and the installer does not complain. LD ___ 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] mtxrun
> > So I run explicitly the second one: > > ~/context-lmtx/bin/mtxrun --generate > > but I got the same error. > > This is the wrong binary. As Hans said (and also what I wrote in my > message) is that you have to run the one in > ~/context-lmtx/tex/texmf-linux-64/bin/ > > > This shows that the wrong binary is being used. You are using the binary > in /home/sam/context-lmtx/bin when you should use > /home/sam/context-lmtx/tex/texmf-linux-64/bin. > > I ran into a similar problem in the past because the installation script install.sh says the following, among other things: "If you want to run ConTeXt everywhere, you need to adapt the path, like: [lmtx path]/bin:[lmtx path]/tex/texmf-linux-64/bin:[the rest of my path]" Doing as suggested, when mtxrun is launched the first binary is used because [lmtx path]/bin comes first in the PATH. My question is then how do you usually run mtxrun: 1) always writing the full path of the correct executable, 2) avoid putting [lmtx path]/bin in PATH, 3) putting [lmtx path]/bin _after_ [lmtx path]/tex/texmf-linux-64/bin in the PATH I'm asking here because option 1 is correct but not very handy, while 2) and 3) are different from what the installer says and they seemed to give other problems when I tried them. Thank you in advance, LD ___ 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] grid+formulas: bug or expected behavior?
Thank you Wolfgang. LD On Fri, Jul 26, 2019 at 1:08 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Luca Donetti schrieb am 31.05.2019 um 20:46: > > Dear all, > > I'm typesetting a document with grid layout and some formulas, like in > > the minimal example below: > > > > > > \setuplayout[grid=yes] > \setupformulas[option=depth] > > \showgrid > > > > \starttext > > \input knuth > > %\blank > > \startformula > > a = b + c > > \stopformula > > \input knuth > > \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 ___
Re: [NTG-context] grid+formulas: bug or expected behavior?
> > I don't have any specific need for the alignment of the formula with > > respect to the grid, but I expect the text below the formula to be on the > > grid. However, I've not been able to achieve that with any of the layout > > options described in the latest "details.pdf" manual: in all cases I've > > tried the text below the formula doesn't "sit" on the grid. > > Looking through my unread ML mails, I saw nobody answered to you. > > Did you try enclosing your formulae in \startlinecorrection ... > \stoplinecorrection ? > AFAIK that should do the job. > > Greetlings, Hraban > > Thank you Hraban, Indeed what you suggest works. If I write: \startlinecorrection \startformula a = b + c \stopformula \stoplinecorrection the text below the formula is correctly aligned to the grid. However, what puzzles me is that the version _without_ \startlinecorrection ... \stoplinecorrection works with an old version of context (from texlive 2017). Moreover, i guess this is not something due to my setup, because I observe the same (or at least very similar) behavior in the chapter of the details.pdf manual about grid and math. In the attached screenshot I show the first page of such chapter in the version shipped with a recent beta (on the left) and with texlive 2017 (on the right). While in the old version the text after the formulas is aligned to the grid, in the new version of the manual this is not the case: the text is not aligned. Is this a known (documented?) change or an unnoticed regression? Thank you in advance, LD ___ 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] grid+formulas: bug or expected behavior?
Dear all, I'm typesetting a document with grid layout and some formulas, like in the minimal example below: \setuplayout[grid=yes] \showgrid \starttext \input knuth %\blank \startformula a = b + c \stopformula \input knuth \stoptext I don't have any specific need for the alignment of the formula with respect to the grid, but I expect the text below the formula to be on the grid. However, I've not been able to achieve that with any of the layout options described in the latest "details.pdf" manual: in all cases I've tried the text below the formula doesn't "sit" on the grid. While I do not understand this behavior, I've thought that it could be the intended one, because this is what happens in chapter 4 of the "details" manual. Then, I noticed that in older versions of the same manual (for example the one included in texlive 2017) the behavior shown in chapter 4 is the one I expect: the text after formulas is aligned to the grid. So I'm a bit puzzled: should the text after formulas be aligned to the grid or not? Is this a (known?) bug or intended behavior? If this is the expected behavior, I can live with that because by trial and error I found a workaround. If I employ a \blank command before the formula (as in the commented line in the above example), the text after the formula is "correctly" aligned. Thank you in advance. LD ___ 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] Lua error using module pgfplots and shader=interp
On Thu, May 30, 2019 at 11:00 AM Hans Hagen wrote: > On 5/29/2019 10:36 PM, Luca Donetti wrote: > > Dear all, > > > > The following example using module pgfplots does not work in an updated > > context standalone nor with the texlive 2019 version. > fixed in next beta > Thank you. ___ 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] Lua error using module pgfplots and shader=interp
Dear all, The following example using module pgfplots does not work in an updated context standalone nor with the texlive 2019 version. %% Workaround for using tikz version in texlive 2019. %% See https://github.com/pgf-tikz/pgf/issues/675 %\unprotect %\def\XC@tgt@mod#1{#1} %\def\XC@sdef#1#2{\edef#1{#2}} %\protect \setupcolors[state=start] \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot3 [ surf, shader=interp, % works with shader=flat samples=10, domain=0:1, ] {x^2*y}; \stopaxis \stoptikzpicture \stoptext The error is the following (where line 19 contains "\stopaxis") lua error > lua error on line 19 in file [...]: ...781ce0dde776fb1556f32e/formats/luatex/lpdf-ini-macro.lua:887: pdf.obj(): object "type" missing I'm attaching the test file, with the .the log and ...-error.log files. Please note that to reproduce the error with the context version of texlive 2019 the first lines must be uncommented due to a bug in the newer version of tikz. I suspect that the problem is with context because same file works with context from texlive 2018 (which has the same pgfplots version) and an equivalent latex version works with lualatex. Could you suggest any workaround? If not I'll file a bug with pgfplots. Thank you in advance, LD open source > level 1, order 1, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' job > passes > version mismatch: 1.3 <> 1.31 system > system > ConTeXt ver: 2019.05.25 10:45 MKIV beta fmt: 2019.5.27 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source> level 2, order 2, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'minimal_shading', input './minimal_shading', result 'minimal_shading' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/home/luca/Nextcloud/personal/tmpcontext/minimal_shading.tex' colors > 'rgb' color space is supported colors > 'cmyk' color space is supported modules > 'pgfplots' is loaded open source > level 3, order 4, name '/home/luca/software/context/tex/texmf-modules/tex/context/third/pgfplots/t-pgfplots.tex' loading > ConTeXt User Module / Pgfplots open source > level 4, order 5, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgfplots/pgfplots.revision.tex' close source> level 4, order 5, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgfplots/pgfplots.revision.tex' modules > 'tikz' is loaded open source > level 4, order 6, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex' loading > ConTeXt User Module / tikz open source > level 5, order 7, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex' loading > ConTeXt User Module / pgf open source > level 6, order 8, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex' loading > ConTeXt User Module / pgfcor open source > level 7, order 9, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex' loading > ConTeXt User Module / pgfsys open source > level 8, order 10, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex' loading > ConTeXt User Module / pgfrcs open source > level 9, order 11, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex' loading > ConTeXt User Module / pgfmodules close source> level 9, order 11, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex' open source > level 9, order 12, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex' open source > level 10, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex' close source> level 10, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex' close source> level 9, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex' open source > level 9, order 14, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def' close source> level 9, order 14, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def' open source > level 9, order 15, name '/home/luca/software/context/tex/texm
Re: [NTG-context] Problem with grid alignment and paragraph
On Mon, Jan 7, 2019 at 9:35 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Luca Donetti schrieb am 07.01.19 um 21:21: > > On Sun, Jan 6, 2019 at 2:53 PM Wolfgang Schuster > > > <mailto:wolfgang.schuster.li...@gmail.com>> wrote: > > > > Luca Donetti schrieb am 14.12.18 um 22:14: > > > Dear list, > > > > > > I am facing a problem with grid alignment when using paragraphs. I > > > think it could be a bug because the MWE below produces lines > > which are > > > correctly aligned to the grid with the context version included in > > > texlive 2017, but it does not seem to work with the context in > > texlive > > > 2018 and the current beta (ConTeXt ver: 2018.12.07 19:37 MKIV beta > > > fmt: 2018.12.14). > > > This is the MWE: > > > > > > \setuplayout[grid=yes] > > > \defineparagraphs[twocols][n=2] > > > \showgrid > > > > > > \starttext > > > \starttwocols > > > \input knuth > > > \nexttwocols > > > \input knuth > > > \stoptwocols > > > \stoptext > > > > > > Am I doing anything wrong? If not, I'll appreciate any > > suggestion or > > > workaround. > > > > > https://tex.stackexchange.com/questions/468711/context-defineparagraphs-aligned-to-grid/ > > > > Wolfgang > > > > Dear Wolfgang, > > > > thank you for your help. Unfortunately, if I follow the suggestion in > > your link (using [location=depth]), the alignment improves but it is > > still not good: some lines are on grid while some others are not. If I > > understand correctly your answer, inside the \framed there is a table > > and, in this case, it seems to me that the spacing between lines is > > not always equal to the grid spacing. > > > > Is there a way to force the interline spacing inside the \framed > > block? I'm sorry if this is a simple question, but I'm quite new to > > context. > > The interlinespace is correct but the paragraphs environment is too high, > location=bottom puts the text on the baseline but it adds an extra blank > line at the begin of the environment. > > A simple fix to get rid of the extra line is to set the width of the frame > border to 0pt which doesn’t matter when the rules are disabled. > > \setuplayout[grid=yes] > > \defineparagraphs [twocols] [n=2] > > \setupparagraphs >[twocols] >[location=bottom, > rulethickness=0pt] > > \showgrid > > \starttext > > \starttwocols >\input knuth >\nexttwocols >\input knuth > \stoptwocols > > \stoptext > > Wolfgang > Dear Wolfgang, thank you very much for your reply (and sorry for my late reply). Your suggestion do solve my minimal example but, unfortunately, not my real world example. I will try to find another minimal example which still shows the problem. In the meantime I'll try to play with different options of location=. LD ___ 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] Problem with grid alignment and paragraph
On Sun, Jan 6, 2019 at 2:53 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Luca Donetti schrieb am 14.12.18 um 22:14: > > Dear list, > > > > I am facing a problem with grid alignment when using paragraphs. I > > think it could be a bug because the MWE below produces lines which are > > correctly aligned to the grid with the context version included in > > texlive 2017, but it does not seem to work with the context in texlive > > 2018 and the current beta (ConTeXt ver: 2018.12.07 19:37 MKIV beta > > fmt: 2018.12.14). > > This is the MWE: > > > > \setuplayout[grid=yes] > > \defineparagraphs[twocols][n=2] > > \showgrid > > > > \starttext > > \starttwocols > > \input knuth > > \nexttwocols > > \input knuth > > \stoptwocols > > \stoptext > > > > Am I doing anything wrong? If not, I'll appreciate any suggestion or > > workaround. > > > https://tex.stackexchange.com/questions/468711/context-defineparagraphs-aligned-to-grid/ > > Wolfgang > Dear Wolfgang, thank you for your help. Unfortunately, if I follow the suggestion in your link (using [location=depth]), the alignment improves but it is still not good: some lines are on grid while some others are not. If I understand correctly your answer, inside the \framed there is a table and, in this case, it seems to me that the spacing between lines is not always equal to the grid spacing. Is there a way to force the interline spacing inside the \framed block? I'm sorry if this is a simple question, but I'm quite new to context. This is the new example: \setuplayout[grid=yes] \defineparagraphs[twocols][n=2] \setupparagraphs[twocols][location=depth] \showgrid \starttext \starttwocols \input knuth \nexttwocols \input knuth \stoptwocols \stoptext Thank you, Luca ___ 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] Problem with grid alignment and paragraph
Dear list, I am facing a problem with grid alignment when using paragraphs. I think it could be a bug because the MWE below produces lines which are correctly aligned to the grid with the context version included in texlive 2017, but it does not seem to work with the context in texlive 2018 and the current beta (ConTeXt ver: 2018.12.07 19:37 MKIV beta fmt: 2018.12.14). This is the MWE: \setuplayout[grid=yes] \defineparagraphs[twocols][n=2] \showgrid \starttext \starttwocols \input knuth \nexttwocols \input knuth \stoptwocols \stoptext Am I doing anything wrong? If not, I'll appreciate any suggestion or workaround. Thank you in advance for your help. LD ___ 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 ___