Re: [NTG-context] Left-justifying the date in the letter module
Am 31.07.2013 um 03:32 schrieb Michael Ash m...@econs.umass.edu: I am still having a problem with left-justifying the date in letters. The date is towards the left but is aligned several mm to the right of the other text. This is fixed, there module produced a unwanted space at the begin of the reference line which is now gone. BTW are the values for the alternative key (example, e, c, etc.) documented somewhere? You can look at the predefined arguments in the old manual which is available online: https://bitbucket.org/wolfs/correspondence/downloads. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math accents set too close to capital
On 7/31/2013 12:04 AM, Michael Murphy wrote: Hello all, I'm trying to typeset 'H' with a circumflex (or hat) in math mode, but the result is rather ugly when not using latin-modern. I've tried to redefine the \hat macro to move the accent up a bit using \topaccent: is this the best approach? Having to nest '$' does not seem right at all. (Also, for some reason although I find \mathhat in enco-ini.mkiv, when I try to use it I get undefined control sequence.) Thanks, Michael \starttypescript [mathfont] \definetypeface [mathfont] [mm] [math] [palatino] [default] [rscale=1.0] \stoptypescript \usetypescript[mathfont] \setupbodyfont[mathfont] \starttext $\hat{H}$ \def\hat#1{\topaccent{3pt}{0}{90}{\textcircumflex}{$#1$}} $\hat{H}$ \stoptext $\widehat{H}$ - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math accents set too close to capital
Hi Hans, Thanks for the response. This is sort of what I wanted, except the \widehat is, well, quite wide. So I hacked it around a bit to put the \widehat from a capital 'I' on top of a capital 'H'. In case it happens to be helpful, the final macro was \def\hhat{H\kern-0.61em\widehat{\phantom{I}}\kern0.178em} If I really cared, I wouldn't hard-code those numbers, but since they are in em I'm not really too worried. -- Michael Murphy murphy...@gmail.com On Wednesday, 31 July 2013 at 08:48, Hans Hagen wrote: On 7/31/2013 12:04 AM, Michael Murphy wrote: Hello all, I'm trying to typeset 'H' with a circumflex (or hat) in math mode, but the result is rather ugly when not using latin-modern. I've tried to redefine the \hat macro to move the accent up a bit using \topaccent: is this the best approach? Having to nest '$' does not seem right at all. (Also, for some reason although I find \mathhat in enco-ini.mkiv, when I try to use it I get undefined control sequence.) Thanks, Michael \starttypescript [mathfont] \definetypeface [mathfont] [mm] [math] [palatino] [default] [rscale=1.0] \stoptypescript \usetypescript[mathfont] \setupbodyfont[mathfont] \starttext $\hat{H}$ \def\hat#1{\topaccent{3pt}{0}{90}{\textcircumflex}{$#1$}} $\hat{H}$ \stoptext $\widehat{H}$ - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com (http://www.pragma-ade.com) | www.pragma-pod.nl (http://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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math fallback
Am 30.07.2013 um 18:55 schrieb Aditya Mahajan adit...@umich.edu: Is it possible to use the fallback mechanism for math fonts? For example, I am using Neo Euler for math which has a few missing glyphs. Can I use Cambria (or Xits) as a fallback font for missing glyphs. I am using the simplefonts module, but I am happy to write a typescript file if that makes things easier. I do not really want to define a new virtual font. The simplefonts module is written on top of the typescript mechanism and there is nothing available at this level which can be used by the module. When you use the \setmathfont command simplefonts loads only one of the predefined typescripts. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Updating modules with a ppa:reviczky/context-daily installation
I have a question about how to update context modules. In earlier correspondence Question: I am still having a problem with...[the letter module] Answer: This is now fixed... I use a context installation managed by ubuntu/apt-get from the Personal Package Archive *ppa:reviczky/context-daily* ( https://launchpad.net/~reviczky/+archive/context-daily). The current version is: ConTeXt ver: 2013.07.24 14:11 MKIV beta fmt: 2013.7.31 int: english/english How is it possible to (1) tell which version of a module is installed? (2) update a module to the latest version? Because I use the PPA version, I have not used first-setup.sh. I have only a limited understanding of where the context supporting material is maintained. Thank you very much for your guidance. Best, Michael PS Thank you very much for the guidance on the correspondence documentation and the reference line alternatives in the letter module BTW are the values for the alternative key (example, e, c, etc.) documented somewhere? You can look at the predefined arguments in the old manual which is available online: https://bitbucket.org/wolfs/correspondence/downloads. ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Inserting verbatim text in a figure and framed.
On Tue, 30 Jul 2013 23:03:32 +0200 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr: On Tue, Jul 30 2013, john Culleton wrote: Here is my code so far. I want to show a file in verbatim form. It compiles but here is no frame around the text and there is no caption. Hi, this works here: --8---cut here---start-8--- \starttext \startbuffer[ex1] \typefile[]{test.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\framed{\externalfigure[ex1.buffer][width=.75\textwidth]}} \stoptext --8---cut here---end---8--- Why do you use a buffer? \starttext \startplacefigure[reference=fig:ex1,title=Example 1] \framed[align=flushleft,width=.75\textwidth]{\typefile{test.tex}} \stopplacefigure \stoptext Wolfgang Possibly Peter used it because I used it. I used it because the example I followed in The Manual used a buffer. As it happens his example works better. My example1.tex is knuth.tex with two minor modifications. His version with the buffer reduces the size of the Knuth text to fit the frame. Your version wraps the text instead on each line. For my purposes the facsimile representation is better. However thanks to both for adding to my education. Unfortunately I forget things as fast as I learn them these days. It is not Alzheimer's disease but just plain oldtimers disease. John Culleton ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] matching font sizes with fallback fonts
Dear list, I’m trying to match the fallback font size with the lowercase size of the main font, as shown in this sample: \usemodule[simplefonts][size=90pt] \setmainfontfallback[GFS Neohellenic] [range={greekandcoptic,greekextended}, force=yes, rscale=auto] \setmainfont[TeX Gyre Pagella] \starttext aα γg AΑ ΒB \stoptext But rscale=auto doesn’t seem to work (if this is the right option). What am I doing wrong here? 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math fallback
On Jul 31, 2013, at 12:15 PM, ntg-context-requ...@ntg.nl wrote: Am 30.07.2013 um 18:55 schrieb Aditya Mahajan adit...@umich.edu: Is it possible to use the fallback mechanism for math fonts? For example, I am using Neo Euler for math which has a few missing glyphs. Can I use Cambria (or Xits) as a fallback font for missing glyphs. I am using the simplefonts module, but I am happy to write a typescript file if that makes things easier. I do not really want to define a new virtual font. The simplefonts module is written on top of the typescript mechanism and there is nothing available at this level which can be used by the module. When you use the \setmathfont command simplefonts loads only one of the predefined typescripts. Wolfgang I too would like to use Neo Euler for math but need some of the missing glyphs/symbols, like \angle and \triangle. What would the typescript look like to provide fallback to font for the symbols? John___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] wrong \setupinteraction[focus=standard]?
Dear list, I’m trying to get internal links to footnotes without having the focus changed. I try this minimal sample: \setupinteraction[state=start,focus=standard] \starttext Body text\footnote{Footnote.}. \stoptext But I cannot get it working (it should work, according to the wiki). Is this a bug? 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math accents set too close to capital
Tangential to your issue, but nota bene: instead of $...$ for inline math, ConTeXt lets you use \math{...} or \m{...}. Which is a bit more explicit, and can be easier to debug. You might prefer it. For display math, you really should use \startformula...\stopformula if you aren’t using it already, because $$...$$ doesn't space correctly. (Says the wiki. I don’t know it’s still true.) Cheers, Sietse On 31 July 2013 12:26, Michael Murphy murphy...@gmail.com wrote: Hi Hans, Thanks for the response. This is sort of what I wanted, except the \widehat is, well, quite wide. So I hacked it around a bit to put the \widehat from a capital 'I' on top of a capital 'H'. In case it happens to be helpful, the final macro was \def\hhat{H\kern-0.61em\widehat{\phantom{I}}\kern0.178em} If I really cared, I wouldn't hard-code those numbers, but since they are in em I'm not really too worried. -- Michael Murphy murphy...@gmail.com On Wednesday, 31 July 2013 at 08:48, Hans Hagen wrote: On 7/31/2013 12:04 AM, Michael Murphy wrote: Hello all, I'm trying to typeset 'H' with a circumflex (or hat) in math mode, but the result is rather ugly when not using latin-modern. I've tried to redefine the \hat macro to move the accent up a bit using \topaccent: is this the best approach? Having to nest '$' does not seem right at all. (Also, for some reason although I find \mathhat in enco-ini.mkiv, when I try to use it I get undefined control sequence.) Thanks, Michael \starttypescript [mathfont] \definetypeface [mathfont] [mm] [math] [palatino] [default] [rscale=1.0] \stoptypescript \usetypescript[mathfont] \setupbodyfont[mathfont] \starttext $\hat{H}$ \def\hat#1{\topaccent{3pt}{0}{90}{\textcircumflex}{$#1$}} $\hat{H}$ \stoptext $\widehat{H}$ - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wrong \setupinteraction[focus=standard]?
On 2013–07–31 Pablo Rodríguez wrote: I’m trying to get internal links to footnotes without having the focus changed. […] Is this a bug? Yes, it's a known issue since quite a while. Hans confirmed it on 2013-03-28: This is a long term one ... I'm not going to mess with footnotes etc now. Technically it boils down to setting some attributes at the right spot. Marco signature.asc Description: Digital 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math fallback
On 7/31/2013 6:53 PM, John Kitzmiller wrote: On Jul 31, 2013, at 12:15 PM, ntg-context-requ...@ntg.nl mailto:ntg-context-requ...@ntg.nl wrote: Am 30.07.2013 um 18:55 schrieb Aditya Mahajan adit...@umich.edu mailto:adit...@umich.edu: Is it possible to use the fallback mechanism for math fonts? For example, I am using Neo Euler for math which has a few missing glyphs. Can I use Cambria (or Xits) as a fallback font for missing glyphs. I am using the simplefonts module, but I am happy to write a typescript file if that makes things easier. I do not really want to define a new virtual font. The simplefonts module is written on top of the typescript mechanism and there is nothing available at this level which can be used by the module. When you use the \setmathfont command simplefonts loads only one of the predefined typescripts. Wolfgang I too would like to use Neo Euler for math but need some of the missing glyphs/symbols, like \angle and \triangle. What would the typescript look like to provide fallback to font for the symbols? complex as original euler already misses many shapes and neo euler is work in progress Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] matching font sizes with fallback fonts
Am 31.07.2013 um 18:16 schrieb Pablo Rodríguez oi...@web.de: Dear list, I’m trying to match the fallback font size with the lowercase size of the main font, as shown in this sample: \usemodule[simplefonts][size=90pt] \setmainfontfallback[GFS Neohellenic] [range={greekandcoptic,greekextended}, force=yes, rscale=auto] \setmainfont[TeX Gyre Pagella] \starttext aα γg AΑ ΒB \stoptext But rscale=auto doesn’t seem to work (if this is the right option). What am I doing wrong here? 1. The simplefonts module uses “scale” as key and not “rscale”. 2. You can also use a number as argument for the scale key, keywords like auto are not possible. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xmlfilter in lua
Gentlemen and noble ladies, may I rerun this question? It was posted on Sunday and may have escaped those of you who celebrated this day in some manner. Thanks for your attention! T On 07/28/2013 02:07 PM, Thomas A. Schmitz wrote: Hi, hope this is comprehensible without a full example: I want to do some operations on my xml, and that's easier to do in Lua. However, I cannot find how to filter my results and pass them on to a command. In TeX, I would do this: \startxmlsetups xml:a \xmlfilter{#1}{/b/command(xml:command:b)} \stopxmlsetups \startxmlsetups xml:command:b \xmlconcat{#1}{/}\par \stopxmlsetups How would I do the same thing in Lua? Here's what I tried: function xml.functions.a(t) local b = lxml.filter(lxml.id(t), /b) process(b) end function process(t) xml.cprint(t) end but that doesn't work yet, I get no results printed. So my question: what would be the right syntax in Lua? (And bonus points for: what is the equivalent of \xmlconcat ?) All best Thomas -- Prof. Dr. Thomas A. Schmitz Abteilung für Griechische und Lateinische Philologie Universität Bonn Am Hof 1e 53113 Bonn http://www.philologie.uni-bonn.de/personal/schmitz ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Path problems w/ MkIV on Arch Linux
Hello, Folks-- Once again I'm returning to ConTeXt after a long absence [maybe if I just kept using it I wouldn't have these problems?]. I'm trying to get started with MkIV; I don't feel a strong need to have the very latest code, so unless there are serious bugs, I want to use the version included with TexLive. At any rate, that's what I currently have and am trying to use. But I am running into issues with files not being found, e.g.: $ context --make mtxrun | unknown script 'context.lua' or 'mtx-context.lua' Yes, I ran mtxrun --generate first, though I am a bit confused as to whether I need to run that *and* luatools --generate, or just one or the other. Anyway, mtxrun --generate appears to work: $ mtxrun --generate resolvers | resolving | found configuration file '/usr/share/texmf-dist/web2c/texmfcnf.lua' system | lua | compiling '/var/cache/texmf/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/trees/5044cbe2799fe389b078f26ff6b9ee8e.lua' into '/var/cache/texmf/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/trees/5044cbe2799fe389b078f26ff6b9ee8e.luc' system | lua | dumping '/var/cache/texmf/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/trees/5044cbe2799fe389b078f26ff6b9ee8e.lua' into '/var/cache/texmf/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/trees/5044cbe2799fe389b078f26ff6b9ee8e.luc' stripped resolvers | caching | 'files' compiled to '/var/cache/texmf/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/trees/5044cbe2799fe389b078f26ff6b9ee8e.luc' This shows that mtxrun finds the correct configuration file--as far as I know, /usr/share/texmf-dist/web2c/texmfcnf.lua is the only instance of texmfcnf.lua on my system. And then it uses the value I have set in texmfcnf.lua to cache its output: TEXMFCACHE = /var/cache/texmf, -- not used by context at all TEXMFSYSVAR = $TEXMFCACHE, TEXMFVAR= $TEXMFCACHE, So that's good. Yet the 'context' and 'luatools' commands can't find the lua scripts. Well, I hypothesized that $LUAINPUTS might be wrong, so I tried this: LUAINPUTS=/usr/share/texmf-dist/scripts/context/lua luatools --generate And it seems to work. However: LUAINPUTS=/usr/share/texmf-dist/scripts/context/lua context --make resolvers | resolving | using given filetype 'tex' resolvers | resolving | remembering file 'cont-en.mkiv' resolvers | resolving | using given filetype 'tex' resolvers | resolving | remembering file 'cont-en.tex' resolvers | formats | no tex source file with name 'cont-en' (mkiv or tex) resolvers | formats | using format path '/var/cache/texmf/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex' resolvers | resolving | using given filetype 'tex' resolvers | resolving | remembering file 'cont-nl.mkiv' resolvers | resolving | using given filetype 'tex' resolvers | resolving | remembering file 'cont-nl.tex' resolvers | formats | no tex source file with name 'cont-nl' (mkiv or tex) system | total runtime: 0.239 So now the lua scripts are found, but the context macro files are not. At this point let me describe how my system is set up. As I said above, I'm attempting to use the ConTeXt that comes with TexLive. I've just upgraded TeXLive to the 2013 release, but that does not seem to affect these issues. Anyway, the executables are in /usr/bin; /usr/bin/mtxrun is the complete Lua script (i.e. not a symlink or any sort of stub), which appears to be identical to $TEXMF/scripts/context/stubs/unix/mtxrun. /usr/bin/luatools and /usr/bin/context also appear to be copies of their counterparts in the aforementioned stubs directory. The TeXLive packages for Arch provide the following trees: /usr/share/texmf /usr/share/texmf-dist /usr/share/texmf-config Almost everything important is now in /usr/share/texmf-dist, and there are no ConTeXt-related files in /usr/share/texmf. Accordingly, texmf.cnf contains the following definitions: TEXMFDIST = $TEXMFROOT/texmf-dist TEXMFMAIN = $TEXMFDIST TEXMFLOCAL = /usr/local/share/texmf;/usr/share/texmf So I have updated texmfcnf.lua to contain the following: TEXMFDIST = selfautoparent:texmf-dist, TEXMFMAIN = $TEXMFDIST, TEXMFLOCAL = /usr{/local}/share/texmf, I'm not sure if that syntax is correct, but the definition of TEXMFLOCAL does not appear to affect the issues I'm concerned with here. Also, I should mention that my main reason for defining TEXMFLOCAL as I did (as well as TEXMFCACHE = /var/cache/texmf), is that I feel rather strongly (in keeping with what I understand to be 'Linux best practices') that files which are not managed by the Linux package manager should not be under /usr. But if by chance that is causing problems I don't absolutely have to do it that way. Anyway, somehow important files are not being found. Any suggestions? -- Matt Gushee
[NTG-context] new beta luatex error
\starttext foo \stoptext ! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' (a nil value) stack traceback: [string \directlua ]:1: in main chunk. Marco signature.asc Description: Digital 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Inserting verbatim text in a figure and framed.
Am 31.07.2013 um 16:42 schrieb john Culleton j...@wexfordpress.com: Possibly Peter used it because I used it. I used it because the example I followed in The Manual used a buffer. As it happens his example works better. My example1.tex is knuth.tex with two minor modifications. His version with the buffer reduces the size of the Knuth text to fit the frame. Your version wraps the text instead on each line. For my purposes the facsimile representation is better. My solution reduces the available space for the text but when you load the buffer with \externalfigure context scales the content to the given width. You can get the same effect with the \scale command, another way is to change the font size for the verbatim block with \typefile[bodyfont=small]{filename} or \typefile[bodyfont=8pt]{filename}. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math accents set too close to capital
On 2013–07–31 Sietse Brouwer wrote: Tangential to your issue, but nota bene: instead of $...$ for inline math, ConTeXt lets you use \math{...} or \m{...}. Indeed. And when you use \asciimode, you have no other choice (and that's a good thing): \asciimode \starttext My #1 is $5 \math{a^2 + b^2} \stoptext Marco signature.asc Description: Digital 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Something weird with white color
Hello, The following code does not work, the second white ConTeXt is black !!! \setupbackgrounds[page][background=color,backgroundcolor=blue] \starttext {\rotate[rotation=90]{\definedfont[SansBold at 24pt]\white \ConTeXt}} {\definedfont[SansBold at 16pt] \white ConTeXt} \stoptext No problem if we replace white with red (or other color) in \definedfont[SansBold at 16pt] \red ConTeXt and no problem if we write \white\rotate[rotation=90]{\definedfont[SansBold at 24pt]\ConTeXt} I compile with TeXlive2013. Why is the white color different ? Thanks, Bertrand ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math fallback
On Wed, 31 Jul 2013, Hans Hagen wrote: I too would like to use Neo Euler for math but need some of the missing glyphs/symbols, like \angle and \triangle. What would the typescript look like to provide fallback to font for the symbols? complex as original euler already misses many shapes and neo euler is work in progress That is the reason for my question if the font fallback mechanism can work for math fonts also (as it does for, e.g., using different fonts for arabic and english). That will be much easier than building a virtual font. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta luatex error
On 7/31/2013 10:56 PM, Marco Patzer wrote: \starttext foo \stoptext ! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' (a nil value) stack traceback: [string \directlua ]:1: in main chunk. not here ... maybe spac-ver.lua has not been updated at your end? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math fallback
On 7/31/2013 11:02 PM, Aditya Mahajan wrote: On Wed, 31 Jul 2013, Hans Hagen wrote: I too would like to use Neo Euler for math but need some of the missing glyphs/symbols, like \angle and \triangle. What would the typescript look like to provide fallback to font for the symbols? complex as original euler already misses many shapes and neo euler is work in progress That is the reason for my question if the font fallback mechanism can work for math fonts also (as it does for, e.g., using different fonts for arabic and english). That will be much easier than building a virtual font. it's not that trivial as there are more dependencies and things like extensible characters and accents and (in fact, a virtual font has to be built, so it's then a wrapper around a similar vf builder as we already have; one option is to extend the current one with ranges) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Path problems w/ MkIV on Arch Linux
On 7/31/2013 10:51 PM, Matt Gushee wrote: Once again I'm returning to ConTeXt after a long absence [maybe if I just kept using it I wouldn't have these problems?]. I'm trying to get started with MkIV; I don't feel a strong need to have the very latest code, so unless there are serious bugs, I want to use the version included with TexLive. At any rate, that's what I currently have and am trying to use. But I am running into issues with files not being found, e.g.: as a start you could try the distribution from the garden; at least it's a good way to figure out if there is something fishy with your system there are fundamental differences between tl 2012 and tl 2013 .. did tl 2012 work ok? Yes, I ran mtxrun --generate first, though I am a bit confused as to whether I need to run that *and* luatools --generate, or just one or the other. Anyway, mtxrun --generate appears to work: luatools is not needed; mtxrun --generate does the job (and once you have context installed normally this is done automatically as is format generation) in the reported 'tree' files in the cache you can check if files like context.mkiv are present This shows that mtxrun finds the correct configuration file--as far as I know, /usr/share/texmf-dist/web2c/texmfcnf.lua is the only instance of texmfcnf.lua on my system. And then it uses the value I have set in texmfcnf.lua to cache its output: depending on the version of texlive texmf or texmf-dist is used for files you can run mtxrun --variables mtxrun --expansions to see if there are weird settings (maybe from env vars) TEXMFCACHE = /var/cache/texmf, -- not used by context at all TEXMFSYSVAR = $TEXMFCACHE, TEXMFVAR= $TEXMFCACHE, So that's good. Yet the 'context' and 'luatools' commands can't find the lua scripts. Well, I hypothesized that $LUAINPUTS might be wrong, so I tried this: messing with LUAINPUTS should not be needed LUAINPUTS=/usr/share/texmf-dist/scripts/context/lua luatools --generate And it seems to work. However: LUAINPUTS=/usr/share/texmf-dist/scripts/context/lua context --make . resolvers | resolving | using given filetype 'tex' resolvers | resolving | remembering file 'cont-en.mkiv' resolvers | resolving | using given filetype 'tex' resolvers | resolving | remembering file 'cont-en.tex' resolvers | formats | no tex source file with name 'cont-en' (mkiv or tex) resolvers | formats | using format path '/var/cache/texmf/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex' resolvers | resolving | using given filetype 'tex' resolvers | resolving | remembering file 'cont-nl.mkiv' resolvers | resolving | using given filetype 'tex' resolvers | resolving | remembering file 'cont-nl.tex' resolvers | formats | no tex source file with name 'cont-nl' (mkiv or tex) system | total runtime: 0.239 so no file database is present or the database has not all files So now the lua scripts are found, but the context macro files are not. At this point let me describe how my system is set up. As I said above, I'm attempting to use the ConTeXt that comes with TexLive. I've just upgraded TeXLive to the 2013 release, but that does not seem to affect these issues. Anyway, the executables are in /usr/bin; /usr/bin/mtxrun is the complete Lua script (i.e. not a symlink or any sort of stub), which appears to be identical to $TEXMF/scripts/context/stubs/unix/mtxrun. /usr/bin/luatools and /usr/bin/context also appear to be copies of their counterparts in the aforementioned stubs directory. upgrading texlive means wiping out the old one .. maybe there are traces of older texlives? maybe in some local texmf tree in home? The TeXLive packages for Arch provide the following trees: /usr/share/texmf /usr/share/texmf-dist /usr/share/texmf-config Almost everything important is now in /usr/share/texmf-dist, and there are no ConTeXt-related files in /usr/share/texmf. Accordingly, texmf.cnf contains the following definitions: TEXMFDIST = $TEXMFROOT/texmf-dist TEXMFMAIN = $TEXMFDIST TEXMFLOCAL = /usr/local/share/texmf;/usr/share/texmf So I have updated texmfcnf.lua to contain the following: TEXMFDIST = selfautoparent:texmf-dist, TEXMFMAIN = $TEXMFDIST, TEXMFLOCAL = /usr{/local}/share/texmf, texmflocal is normally not used (afaik) it could relate to the texmf/texmf-dist changes (although we made sure that we adapted the scripts etc to support that rather fundamental change in texlive 2013) I'm not sure if that syntax is correct, but the definition of TEXMFLOCAL does not appear to affect the issues I'm concerned with here. Also, I should mention that my main reason for defining indeed (in the garden distribution we also have trees like texmf-context for context, texmf-fonts for user fonts, texmf-project for project specific files, while texmf-local is
Re: [NTG-context] Path problems w/ MkIV on Arch Linux
On 2013–07–31 Matt Gushee wrote: Once again I'm returning to ConTeXt after a long absence [maybe if I just kept using it I wouldn't have these problems?]. I'm trying to get started with MkIV; I don't feel a strong need to have the very latest code, so unless there are serious bugs, I want to use the version included with TexLive. At any rate, that's what I currently have and am trying to use. But I am running into issues with files not being found, e.g.: ConTeXt works out-of-the-box with TeXLive 2013. You can try a clean install from http://tug.org/texlive (into a separate directory) and check if that works. Marco signature.asc Description: Digital 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta luatex error
On 2013–07–31 Hans Hagen wrote: On 7/31/2013 10:56 PM, Marco Patzer wrote: \starttext foo \stoptext ! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' (a nil value) stack traceback: [string \directlua ]:1: in main chunk. not here ... maybe spac-ver.lua has not been updated at your end? No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not defined in spac-ver.lua. The file has not been updated in your zip (so I assume it's not just me). Marco signature.asc Description: Digital 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta luatex error
On 31 juil. 2013, at 23:43, Marco Patzer home...@lavabit.com wrote: On 2013–07–31 Hans Hagen wrote: On 7/31/2013 10:56 PM, Marco Patzer wrote: \starttext foo \stoptext ! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' (a nil value) stack traceback: [string \directlua ]:1: in main chunk. not here ... maybe spac-ver.lua has not been updated at your end? No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not defined in spac-ver.lua. The file has not been updated in your zip (so I assume it's not just me). Marco I can confirm this: I get the same error message after updating to the new beta (ConTeXt ver: 2013.07.31 20:23 MKIV beta fmt: 2013.7.31 int: english/english). Best regards: OK ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] new beta luatex error
On 7/31/2013 11:43 PM, Marco Patzer wrote: On 2013–07–31 Hans Hagen wrote: On 7/31/2013 10:56 PM, Marco Patzer wrote: \starttext foo \stoptext ! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' (a nil value) stack traceback: [string \directlua ]:1: in main chunk. not here ... maybe spac-ver.lua has not been updated at your end? No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not defined in spac-ver.lua. The file has not been updated in your zip (so I assume it's not just me). Ah. I patched only the 'experimental' files on my system (these cannot yet be included in the distribution as a newer luatex is needed). I uploaded a new zip. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Something weird with white color
On 7/31/2013 11:09 PM, Bertrand Masson wrote: Hello, The following code does not work, the second white ConTeXt is black !!! \setupbackgrounds[page][background=color,backgroundcolor=blue] \starttext {\rotate[rotation=90]{\definedfont[SansBold at 24pt]\white \ConTeXt}} {\definedfont[SansBold at 16pt] \white ConTeXt} \stoptext No problem if we replace white with red (or other color) in \definedfont[SansBold at 16pt] \red ConTeXt and no problem if we write \white\rotate[rotation=90]{\definedfont[SansBold at 24pt]\ConTeXt} I compile with TeXlive2013. Why is the white color different ? tricky nesting at the pdf level .. seems like i need to use bit more magic there ... fixed in beta Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xmlfilter in lua
On 7/31/2013 10:52 PM, Thomas A. Schmitz wrote: Gentlemen and noble ladies, may I rerun this question? It was posted on Sunday and may have escaped those of you who celebrated this day in some manner. Thanks for your attention! T On 07/28/2013 02:07 PM, Thomas A. Schmitz wrote: Hi, hope this is comprehensible without a full example: I want to do some operations on my xml, and that's easier to do in Lua. However, I cannot find how to filter my results and pass them on to a command. In TeX, I would do this: \startxmlsetups xml:a \xmlfilter{#1}{/b/command(xml:command:b)} \stopxmlsetups \startxmlsetups xml:command:b \xmlconcat{#1}{/}\par \stopxmlsetups How would I do the same thing in Lua? Here's what I tried: function xml.functions.a(t) local b = lxml.filter(lxml.id(t), /b) process(b) end function process(t) xml.cprint(t) end but that doesn't work yet, I get no results printed. So my question: what would be the right syntax in Lua? (And bonus points for: what is the equivalent of \xmlconcat ?) - real test file needed - you use process before you define it another approach is: for c in xml.collected(lxml.id(t),/b) do ... end (see x-mathml, x-cals for examples) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math fallback
On Wed, 31 Jul 2013, Hans Hagen wrote: On 7/31/2013 11:02 PM, Aditya Mahajan wrote: On Wed, 31 Jul 2013, Hans Hagen wrote: I too would like to use Neo Euler for math but need some of the missing glyphs/symbols, like \angle and \triangle. What would the typescript look like to provide fallback to font for the symbols? complex as original euler already misses many shapes and neo euler is work in progress That is the reason for my question if the font fallback mechanism can work for math fonts also (as it does for, e.g., using different fonts for arabic and english). That will be much easier than building a virtual font. it's not that trivial as there are more dependencies and things like extensible characters and accents and Yes, but those are not necessarily needed. (in fact, a virtual font has to be built, so it's then a wrapper around a similar vf builder as we already have; one option is to extend the current one with ranges) Just having a basic fallback mechanism will be better than having no fallback. For example Euler has no blackboard black, is missing some arrows (not extensible ones, just regular arrows) and common symbols. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Path problems w/ MkIV on Arch Linux
Thanks, Hans ... On Wed, Jul 31, 2013 at 3:32 PM, Hans Hagen pra...@wxs.nl wrote: On 7/31/2013 10:51 PM, Matt Gushee wrote: code, so unless there are serious bugs, I want to use the version included with TexLive. At any rate, that's what I currently have and am trying to use. But I am running into issues with files not being found, e.g.: as a start you could try the distribution from the garden; at least it's a good way to figure out if there is something fishy with your system Okay, I've installed that, and it works fine ... though I had a small glitch along the way that gives me an idea about what the problem may be with the TeXLive version. More about that below. in the reported 'tree' files in the cache you can check if files like context.mkiv are present They weren't. mtxrun --variables mtxrun --expansions Actually, I had already tried that, but I didn't fully understand the output. Here's an example: resolvers | lists | LUAINPUTS resolvers | lists | env: unset resolvers | lists | var: .;$TEXINPUTS;$TEXMF/scripts/context/lua// resolvers | lists | exp: .;.;{home:texmf,!!selfautoparent:texmf-project,!!selfautoparent:texmf-fonts,!!/usr{/local}/share/texmf,!!selfautoparent:texmf-context,!!selfautoparent:texmf-linux,!!selfautoparent:texmf-dist,!!selfautoparent:texmf-dist}/tex/{context,plain/base,generic}//;{home:texmf,!!selfautoparent:texmf-project,!!selfautoparent:texmf-fonts,!!/usr{/local}/share/texmf,!!selfautoparent:texmf-context,!!selfautoparent:texmf-linux,!!selfautoparent:texmf-dist,!!selfautoparent:texmf-dist}/scripts/context/lua// resolvers | lists | res: .;.;{/home/matt/texmf,!!./texmf-project,!!./texmf-fonts,!!/usr{/local}/share/texmf,!!./texmf-context,!!./texmf-linux,!!./texmf-dist,!!./texmf-dist}/tex/{context,plain/base,generic}//;{/home/matt/texmf,!!./texmf-project,!!./texmf-fonts,!!/usr{/local}/share/texmf,!!./texmf-context,!!./texmf-linux,!!./texmf-dist,!!./texmf-dist}/scripts/context/lua/ Are the 'selfautoparent' references supposed to be resolved to specific paths? If so, it certainly appears something was wrong here. so no file database is present or the database has not all files It was the latter, I suspect due to incorrect path settings in the config file. does arch-linux use stock texlive or do they adapt it There are a few, seemingly minor tweaks. There are three patches, all for luatex: poppler-0.20.patch fix-fontforge-encoding.patch luatex-r4449-radical-rule-thickness.patch However, these all seem to deal with small graphics/fonts issues and have no apparent relationship to finding files. There is also a customized texmf.cnf, but NOT a customized texmfcnf.lua. I think that's significant. I said above that I ran into a minor problem when I installed the Contextgarden package. What happened was that I saw two ../bin directories: /opt/context/bin and /opt/context/tex/texmf-linux/bin . At first I thought /opt/context/bin was meant to be used, so I added both directories to my PATH [/opt/context/bin was first]. But that produced errors. Then I removed /opt/context/bin from PATH, and everything was fine. So I think I see what's going on: since many of the path settings in texmfcnf.lua use 'selfauto*' variables, and correct resolution of those depends on where the executables are located. So I suspect that the default config file that comes with ConTeXt in TeXLive assumes that the executables are ... I'm not sure where, but somewhere other than /usr/bin . I could probably fix that, but it would take me a while to figure out the correct values. Anyway, at this point I'm seriously thinking about just forgetting TeXLive and using the standalone ConTeXt package. I doubt I'll be using any other TeX packages in the near future, and I'd rather spend time creating documents than tinkering with config files. Is there anything in TeXLive that's particularly useful with ConTeXt, that is not included in the ConTeXt package? Anyway, many thanks for your prompt attention! -- Matt Gushee ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Path problems w/ MkIV on Arch Linux
On Wed, 31 Jul 2013, Matt Gushee wrote: Anyway, at this point I'm seriously thinking about just forgetting TeXLive and using the standalone ConTeXt package. You can also try the context-minimals-git package from AUR. It installs context minimals at /opt/context-minimal/, works in parallel with TL, and has the advantage that it can be removed using the package manager. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___