Re: [NTG-context] Question on enabling/disabling modes
Hi Mikael, I do not know this way yet. Can you attach a complete example ? Regards, Fabrice Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm a écrit : > Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist : > > > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist > wrote: > > > > > > Hi! > > > > > > I am writing notes for my teaching and would like to do the following > with modes: > > > > > > * If the file is compiled with context file.tex then everything (i.e. > the content in all modes) is typeset. > > > * If the file is compiled with context --mode=test1 file.tex then only > mode test1 is typeset. > > > > > > I do not see how to do this easily. > > > > > > This is what I would do if the list of modes is small: > > > > \doifnotmode{test1}{\enablemode[test1,test2]} > > > > (and don’t use the \definemode lines) > > > > But if you need many of them, that could get problematic with > > many nested \doifmodeelse statements. > > > > In that case, I would use a separate ‘all’ mode, and call the > > context script with that as argument in the generic case. > > > > > > %%% file.tex > > \starttext > > \startmode[test1,all] > > We are in mode test1. > > \stopmode > > \startmode[test2,all] > > We are in mode test2. > > \stopmode > > \stoptext > > %%% > > > > > ___ > > > > Thank you, Taco! > > > > I have around 25 of them, and your solution with "all" works indeed well > for me. > > > There’s also > > \startnotmode[some] > This is not typeset in "some" mode. > \stopnotmode > > > 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 > > ___ ___ 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] Question on enabling/disabling modes
On Tue, Aug 28, 2018 at 11:59 AM Fabrice Couvreur < fabrice1.couvr...@gmail.com> wrote: > Hi Mikael, > I suppose the files test1 and test2 have a special structure ? > > %%% file.tex > \doifnotmode{test1}{\enablemode[test1,test2]} > \starttext > \startmode[test1,all] > We are in mode test1. > \stopmode > \startmode[test2,all] > We are in mode test2. > \stopmode > \stoptext > %%% > > %%% test1.tex > > %%% > > %%% test2.tex > ??? > %%% > > Fabrice > > Le mar. 28 août 2018 à 11:05, Mikael P. Sundqvist a > écrit : > >> On Tue, Aug 28, 2018 at 10:54 AM Fabrice Couvreur < >> fabrice1.couvr...@gmail.com> wrote: >> >>> Hi Mikael, >>> I do not know this way yet. Can you attach a complete example ? >>> Regards, >>> Fabrice >>> >>> Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm a >>> écrit : >>> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist : > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist wrote: > > > > Hi! > > > > I am writing notes for my teaching and would like to do the following with modes: > > > > * If the file is compiled with context file.tex then everything (i.e. the content in all modes) is typeset. > > * If the file is compiled with context --mode=test1 file.tex then only mode test1 is typeset. > > > > I do not see how to do this easily. > > > This is what I would do if the list of modes is small: > > \doifnotmode{test1}{\enablemode[test1,test2]} > > (and don’t use the \definemode lines) > > But if you need many of them, that could get problematic with > many nested \doifmodeelse statements. > > In that case, I would use a separate ‘all’ mode, and call the > context script with that as argument in the generic case. > > > %%% file.tex > \starttext > \startmode[test1,all] > We are in mode test1. > \stopmode > \startmode[test2,all] > We are in mode test2. > \stopmode > \stoptext > %%% > > ___ > > Thank you, Taco! > > I have around 25 of them, and your solution with "all" works indeed well for me. There’s also \startnotmode[some] This is not typeset in "some" mode. \stopnotmode 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 ___ >>> >>> >>> ___ >>> 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 >>> >>> ___ >> >> >> Fabrice, >> >> Taco's example is complete. Try >> >> context file.tex >> context --mode=test1 file.tex >> context --mode=all file.tex >> >> and you will get, in turn, nothing, the content in mode test1, everything. >> >> /Mikael >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> >> ___ > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ Fabrice, there is some misunderstanding. The code from
Re: [NTG-context] Question on enabling/disabling modes
Hi Mikael, I suppose the files test1 and test2 have a special structure ? %%% file.tex \doifnotmode{test1}{\enablemode[test1,test2]} \starttext \startmode[test1,all] We are in mode test1. \stopmode \startmode[test2,all] We are in mode test2. \stopmode \stoptext %%% %%% test1.tex %%% %%% test2.tex ??? %%% Fabrice Le mar. 28 août 2018 à 11:05, Mikael P. Sundqvist a écrit : > On Tue, Aug 28, 2018 at 10:54 AM Fabrice Couvreur < > fabrice1.couvr...@gmail.com> wrote: > >> Hi Mikael, >> I do not know this way yet. Can you attach a complete example ? >> Regards, >> Fabrice >> >> Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm a >> écrit : >> >>> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist : >>> >>> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist >>> wrote: >>> > > >>> > > Hi! >>> > > >>> > > I am writing notes for my teaching and would like to do the >>> following with modes: >>> > > >>> > > * If the file is compiled with context file.tex then everything >>> (i.e. the content in all modes) is typeset. >>> > > * If the file is compiled with context --mode=test1 file.tex then >>> only mode test1 is typeset. >>> > > >>> > > I do not see how to do this easily. >>> > >>> > >>> > This is what I would do if the list of modes is small: >>> > >>> > \doifnotmode{test1}{\enablemode[test1,test2]} >>> > >>> > (and don’t use the \definemode lines) >>> > >>> > But if you need many of them, that could get problematic with >>> > many nested \doifmodeelse statements. >>> > >>> > In that case, I would use a separate ‘all’ mode, and call the >>> > context script with that as argument in the generic case. >>> > >>> > >>> > %%% file.tex >>> > \starttext >>> > \startmode[test1,all] >>> > We are in mode test1. >>> > \stopmode >>> > \startmode[test2,all] >>> > We are in mode test2. >>> > \stopmode >>> > \stoptext >>> > %%% >>> > >>> > >>> ___ >>> > >>> > Thank you, Taco! >>> > >>> > I have around 25 of them, and your solution with "all" works indeed >>> well for me. >>> >>> >>> There’s also >>> >>> \startnotmode[some] >>> This is not typeset in "some" mode. >>> \stopnotmode >>> >>> >>> 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 >>> >>> ___ >> >> >> ___ >> 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 >> >> ___ > > > Fabrice, > > Taco's example is complete. Try > > context file.tex > context --mode=test1 file.tex > context --mode=all file.tex > > and you will get, in turn, nothing, the content in mode test1, everything. > > /Mikael > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question on enabling/disabling modes
On Tue, Aug 28, 2018 at 10:54 AM Fabrice Couvreur < fabrice1.couvr...@gmail.com> wrote: > Hi Mikael, > I do not know this way yet. Can you attach a complete example ? > Regards, > Fabrice > > Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm a > écrit : > >> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist : >> >> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist >> wrote: >> > > >> > > Hi! >> > > >> > > I am writing notes for my teaching and would like to do the following >> with modes: >> > > >> > > * If the file is compiled with context file.tex then everything (i.e. >> the content in all modes) is typeset. >> > > * If the file is compiled with context --mode=test1 file.tex then >> only mode test1 is typeset. >> > > >> > > I do not see how to do this easily. >> > >> > >> > This is what I would do if the list of modes is small: >> > >> > \doifnotmode{test1}{\enablemode[test1,test2]} >> > >> > (and don’t use the \definemode lines) >> > >> > But if you need many of them, that could get problematic with >> > many nested \doifmodeelse statements. >> > >> > In that case, I would use a separate ‘all’ mode, and call the >> > context script with that as argument in the generic case. >> > >> > >> > %%% file.tex >> > \starttext >> > \startmode[test1,all] >> > We are in mode test1. >> > \stopmode >> > \startmode[test2,all] >> > We are in mode test2. >> > \stopmode >> > \stoptext >> > %%% >> > >> > >> ___ >> > >> > Thank you, Taco! >> > >> > I have around 25 of them, and your solution with "all" works indeed >> well for me. >> >> >> There’s also >> >> \startnotmode[some] >> This is not typeset in "some" mode. >> \stopnotmode >> >> >> 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 >> >> ___ > > > ___ > 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 > > ___ Fabrice, Taco's example is complete. Try context file.tex context --mode=test1 file.tex context --mode=all file.tex and you will get, in turn, nothing, the content in mode test1, everything. /Mikael ___ 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] Emacs + latest beta
Hi Vladimir, I do not use Arch Linux repositories to install texlive 2018 packages but I installed texlive 2018 "scheme-full" with tlmgr -gui in /home/aragorn /texlive/2018. I then make regular updates in the same way. No texlive traces in the \usr\share\ directory or elsewhere. Standalone Context is also installed in my home directory. However, Emacs is installed from the Arch Linux repositories and is located in /usr/share/emacs. So I have to add the path of texlive 2018 ? Maybe you do not need to add the Context Standalone path ? My ~/.profile file would be this : source /home/aragorn/context/tex/setuptex export PATH = $ PATH: /home/aragorn/texlive/2018/bin/x86_64-linux export PATH = $ PATH: /home/aragorn /bin Regards, Fabrice Le mar. 28 août 2018 à 07:57, Vladimir Lomov a écrit : > Hello, > ** Fabrice Couvreur [2018-08-27 15:47:41 +0200]: > > > Le lun. 27 août 2018 à 11:51, Fabrice Couvreur < > fabrice1.couvr...@gmail.com> > > a écrit : > > > >> Hi Vladimir, > >> I just made a new standalone context install and added this to my > >> ~/.profile : source /home/aragorn/context/tex/setuptex > >> It finally seems to work ! > > I'm glad it works for you though > > >> export PATH=$PATH:/home/aragorn/context/tex/texmf-linux-64/bin > >> source /home/aragorn/context/tex/setuptex > >> export PATH=$PATH:/home/aragorn/texlive/2018/bin/x86_64-linux > >> export PATH=$PATH:/home/aragorn/bin > > don't understand how these lines help you. As you said you were able to > typeset a sample document in terminal, so all settings in terminal (bash > I presume) were fine, especially taking into account that 'setuptex' > exports only PATH variable with correct path for Standalone ConTeXt. > They might change environment from which Emacs is launched but again, > you use full path to run context so they must be irrelevant here. > > In one of previous messages > (https://www.mail-archive.com/ntg-context@ntg.nl/msg88742.html) you told > that you use Archlinux, did you install texlive-* packages? Did you > update your system? I use Archlinux and have not only ConTeXt > standalone/suite and TeX Live (TUG) installed but also I have installed > texlive-* packages from distribution repository and don't have any > problem with the example either in terminal or Emacs(+AUCTeX), I suspect > that your Emacs configuration might be the cause of the problem. > > > Hi Vladimir, > > I just realized that does not work anymore > > ! > > > > (setq ConTeXt-mode-hook > > (lambda () (setq TeX-command-extra-options "--purgeall"))) > > Why you insist on using hooks when you specify in full the custom > target? Just add this option to the custom target: > > (eval-after-load "context" > '(setq TeX-command-list >(cons '("ConTeXt" > "PATH=/usr/local/opt/context/tex/texmf-linux-64/bin:$PATH context > --purgeall %s" > TeX-run-command nil t :help "Run context (MarkIV)") > TeX-command-list)) > ) > > > Thanks > > Fabrice > > [...] > > --- > WBR, Vladimir Lomov > > -- > It is necessary for the welfare of society that genius should be privileged > to utter sedition, to blaspheme, to outrage good taste, to corrupt the > youthful mind, and generally to scandalize one's uncles. > -- George Bernard Shaw > > ___ > 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 > > ___ .emacs Description: Binary data ___ 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] closesymbol on same line as displayed formula
Dear Aditya, Thank you for the reply. >> \startproof >> \startitemize[n] >> \item first line. >> \item second line > > Add: \placeclosesymbol here > >> \stopitemize >> \stopproof >> >> \stoptext > It works in many cases that item content ends with words. But it is not working if the item contents end with \stopformula. If I put \placeclosesymbol before \stopformula, then it is shown just after the last word. Anyway, it works in most cases. Thank you again. Best regards, Dalyoung % \defineenumeration[proof][text=Proof.] \setupenumeration[proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] \starttext \startproof This is a simple proof. \startformula 1+1=2. \stopformula \placeclosesymbol \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=2. \placeclosesymbol \stopformula \stopproof \startproof \startitemize[n] \item first line. \item Here is an example. \startformula \cosh x + \sinh x = e^x,~~\cosh x - \sinh x = e^{-x} \stopformula The next formula is following: \startformula\startalign \NC\sinh (x + y) \NC= \frac{e^{x+y} - e^{-(x+y)}}{2} \NR \NC \NC = \frac{e^x e^y - e^{-x}e^{-y}}{2} \NR%$ \NC \NC = \frac{(\cosh x + \sinh x)(\cosh y + \sinh y) - (\cosh x - \sinh x)(\cosh y - \sinh y)}{2} \NR \NC \NC = \sinh x \cosh y + \cosh x \sinh y \NR \stopalign \stopformula \placeclosesymbol \stopitemize \stopproof \stoptext %%%___ 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] question about German hyphenation
On 08/26/2018 09:36 PM, Ulrike Fischer wrote: > Am Sun, 26 Aug 2018 17:26:45 +0200 schrieb Pablo Rodriguez: >> [...] >> I’m not a native speaker, but I think that "Rindfleisch-etikettierung" >> is right in German. (And I think that "Rindflei-schetikettierung" is wrong.) >> > Yes it is wrong. Correct hyphenation points are > > Rind-fleisch-e-ti-ket-tie-rung Many thanks for your reply, Ulrike. >> Are the hyphenation patterns wrong in the cases above, or am I missing >> something? > > That's difficult to do right with patterns, in latex it is isn't > correct either. The problem is that two words have been combined. > (Rindfleisch and Etikettierung). I understand that this is an extreme example, so I’m going to add a new hyphenation pattern to my presentation and forget about it. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] luatex
Hi, We're in the process of pushing a new luatex binary to the garden. It might be that context and luatex are out of sync (version checking stuff) but all will be well in a while. 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] parent of xml-node
With \xmltag{#1} one can find the identity of the current node. But how can I find the tag of the parent node? dr. Hans van der Meer ___ 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] definefallbackfamily stopped working for text fonts
Hans Hagen schrieb am 28.08.18 um 10:14: On 8/28/2018 3:49 AM, Henri Menke wrote: Dear list, In the latest beta the font fallback using a text font in math mode does not work anymore. The log contains messages like char 푐 (U+1D450) in font 'MinionPro-It' with id 8: missing char 푎 (U+1D44E) in font 'MinionPro-It' with id 8: missing char 푏 (U+1D44F) in font 'MinionPro-It' with id 8: missing which is not surprising because a text font does not have math italics. How can I get this to work again? MWE below. Isn't it \definefallbackfamily [mainface] [math] [Minion Pro] [range=lowercaseitalic,force=yes] \definefallbackfamily [mainface] [math] [Minion Pro] [range=digitsnormal,force=yes] or so? It's Wolfgangs speciality ... \definefallbackfamily [mainface] [math] [Minion Pro] [preset=math:lowercaseitalic,force=yes] \definefallbackfamily [mainface] [math] [Minion Pro] [preset=math:digitsnormal,force=yes] but there is a bug in the fallback mechanism when you try to replace characters which are in different positions, e.g. mathitalic lowercase a (0x1D44E) with upright lowercase a (0x61). Attached is a test file where I tried to replace the uppercase and lowercase mathitalic b with a letter from a text font but it doesn’t work. Wolfgang math_typescript_fallback.tex Description: TeX document ___ 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] parent of xml-node
> With \xmltag{#1} one can find the identity of the current node. But > how can I find the tag of the parent node? > > dr. Hans van der Meer > \xmltext{#1}{../tag()} ___ 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] parent of xml-node
Thanks. Just what I needed to suppress expansion of a node below a certain node level. > On 28 Aug 2018, at 22:17, mf wrote: > > >> With \xmltag{#1} one can find the identity of the current node. But >> how can I find the tag of the parent node? >> >> dr. Hans van der Meer >> > \xmltext{#1}{../tag()} > > ___ > 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 > ___ dr. Hans van der Meer ___ 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] \startuserdata syntax questions
Wolfgang, Hans, et al, The new \startuserdata macro looks very promising, and can simplify some work I have in progress. The first question: the wiki example and the source use \userparameter{optionkey} \userparameter{anotherkey} to retrieve the value of optionkey and anotherkey. Is there a way to provide the key/value pairs in a manner that they can be retrieved with the getparameters mechanism, as: \getrawparameters [XX] [optionkey=,anotherkey=,#1] This has the added advantage of allowing the setting of a default value, as \getrawparameters [XX] [optionkey=2em,anotherkey=,#1] Or is there a reason not to use getparameters in this setting? The second question: Is there the possibility to enhance the syntax so that one can write \startMyStuff [optionalkey=value, anotherkey=value] stuff \stopMyStuff instead of \startuserdata [MyStuff] [optionalkey=value, anotherkey=value] stuff \stopuserdata Such syntactic sugar makes sweeter reading of the text, and makes clearer what is being done when nesting the macro. -- Rik Kabel ___ 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] split long formula in two pages
Dear all, Sometime ago, I asked about the splitting the long formula. Since it is seldom to have a long formula, I manually break the formula using \startformula\startalign … formula \stopalign\stopformula \startformula\startalign … formula \stopalign\stopformula at the final stage of editing. It is more economical than to make some functions for this purpose, I think. Thank you for reading. Best regards, Dalyoung ___ 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] Emacs + latest beta
Hello, ** Fabrice Couvreur [2018-08-28 11:18:58 +0200]: > Hi Vladimir, > I do not use Arch Linux repositories to install texlive 2018 packages Some texlive-* packages could be installed as dependencies of other packages. You may check if your system has any texlive package: $ pacman -Qs texlive > but I installed texlive 2018 "scheme-full" with tlmgr -gui in > /home/aragorn /texlive/2018. I then make regular updates in the same > way. No texlive traces in the \usr\share\ directory or elsewhere. I prefer to rely on package manager. > Standalone Context is also installed in my home directory. However, > Emacs is installed from the Arch Linux repositories and is located in > /usr/share/emacs. $ pacman -Qs emacs > So I have to add the path of texlive 2018 ? > Maybe you do not need to add the Context Standalone path ? > My ~/.profile file would be this : > > source /home/aragorn/context/tex/setuptex > export PATH = $ PATH: /home/aragorn/texlive/2018/bin/x86_64-linux > export PATH = $ PATH: /home/aragorn /bin This part is a bit strange: - in message https://mailman.ntg.nl/pipermail/ntg-context/2018/092418.html you mentioned that commands run in terminal worked fine, but you invoked them by full path; - in the same message you set PATH in emacs as (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t) (I have to admit that I didn't know it is possible to use '$PATH' in setenv), so it prepends path to context binary to PATH list. The above lines do opposite: they append path to context binary to the end of PATH list. The first line, 'source ...', helps here because 'setuptex' in turns prepend path to context binary to PATH. When you invoke 'context' in terminal (I assume it is bash shell) the shell searches program in current directory (depends on configuration) and then in PATH, the first wins. So to use context from ConTeXt standalone you may simply do $ export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH either in terminal or in ~/.profile. You may always check if this is true by runnig $ command -v context (for bash shell) or $ which context Returning to your problem. I looked closely again in messages with output from context and I don't understand what may cause the error. Seems that Emacs uses correct context (according to loading files). Could you show in full your ~/.emacs file? Do you use AUCTeX or bare Emacs? > Regards, > Fabrice > [...] --- WBR, Vladimir Lomov -- Uncontrolled power will turn even saints into savages. And we can all be counted on to live down to our lowest impulses. -- Parmen, "Plato's Stepchildren", stardate 5784.3 signature.asc Description: PGP signature ___ 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] definefallbackfamily stopped working for text fonts
On 8/28/2018 3:49 AM, Henri Menke wrote: Dear list, In the latest beta the font fallback using a text font in math mode does not work anymore. The log contains messages like char 푐 (U+1D450) in font 'MinionPro-It' with id 8: missing char 푎 (U+1D44E) in font 'MinionPro-It' with id 8: missing char 푏 (U+1D44F) in font 'MinionPro-It' with id 8: missing which is not surprising because a text font does not have math italics. How can I get this to work again? MWE below. Isn't it \definefallbackfamily [mainface] [math] [Minion Pro] [range=lowercaseitalic,force=yes] \definefallbackfamily [mainface] [math] [Minion Pro] [range=digitsnormal,force=yes] or so? It's Wolfgangs speciality ... Cheers, Henri --- \definefontfamily [mainface] [rm] [Minion Pro] \definefallbackfamily [mainface] [math] [Minion Pro] [math:lowercaseitalic] [force=yes] \definefallbackfamily [mainface] [math] [Minion Pro] [math:digitsnormal] [force=yes] \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \input ward \startformula c^2 = a^2 + b^2 \stopformula \stoptext ___ 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 ___ -- - 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 ___