Re: [dev-context] Script files for third party modules.
On Wed, 3 Jan 2007, Hans Hagen wrote: Basically need to esacpe the quote inside quote. oh, so actually we should patch texexec to escape the tui stuff? No, I think that texexec is working in an expeted manner. I did not clearly understand how it worked, and that is why the confusion. The module is finally ready. It works well for small snippets (1000 lines). I have uploaded it to http://modules.contextgarden.net/t-vim I made a mistake while naming the module, so all the files are in t-vim.tar.gz directory instead of t-vim. Hopefully, this will not cause any trouble. The documentation is at http://dl.contextgarden.net/modules/t-vim.tar.gz/doc/context/t-vim/t-vim.pdf and a sample matlab and context pretty output at http://dl.contextgarden.net/modules/t-vim.tar.gz/doc/context/t-vim/t-vim-demo.pdf The context output is very similar to what I see on the vim screen :) Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] New context release
On Mi, 16 Apr 2008, Norbert Preining wrote: - for context/luatex: ok with old and new ones - for context/xetex: new ones are necessary Ok, I will think about updating the lmodern fonts, too, but renaming the Hmm, according to Ralf updating the lmodern is a no-go because that would need euenc/fontspec updates, which would need ... devilish. (See bugs.debian.org/469437) I guess we have to live with this for lenny. And for the next we will have TL2008 with new xetex/luatex and can ship new context and fonts. Or do you have another suggestion??? Best wishes Norbert --- Dr. Norbert Preining [EMAIL PROTECTED]Vienna University of Technology Debian Developer [EMAIL PROTECTED] Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- Program aborting: Close all that you have worked on. You ask far too much. --- Windows Error Haiku ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] context program, mtxrun question?
Oliver Buerschaper wrote: Hans and I are extending context in this area right now, so any current answer will likely be outdated before much longer. So, a little bit of extra patience is required still. I see. It's just that literally everything about ConTeXt is changing on a daily basis and almost every current answer about just any topic seems to be outdated within a fortnight. Well, what else do you expect from code that is in active development? Sorry, but this rant does not make a lot of sense. Context MKIV and Luatex are *not* production systems, and we do not claim they are. If you are unhappy with code that is in still moving fast, stick to MKII. MKII has been pretty stable for years now. I wrote that message yesterday to let you know that we are actively working to make the situation better. It quite a cold shower to get flamed for doing exactly that. Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] new context and luatex packages for Debian
Following Taco's release of the new luatex here is now the announcement of new packages for context and luatex. Both have been uploaded to Debian/experimental, but can be obtained directly via: deb http://people.debian.org/~preining/TeX/ context/ deb http://people.debian.org/~preining/TeX/ luatex-sid/ Version: luatex 0.30.3, context 2008.10.31 Any comments are appreciated. I hope to get the MarkIV stuff sorted out sooner or later... Best wishes Norbert --- Dr. Norbert Preining [EMAIL PROTECTED]Vienna University of Technology Debian Developer [EMAIL PROTECTED] Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- DIBBLE (vb.) To try to remove a sticky something from one hand with the other, thus causing it to get stuck to the other hand and eventually to anything else you try to remove it with. --- Douglas Adams, The Meaning of Liff ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] [NTG-context] mkII with minimals
Arthur Reutenauer wrote: I have a feeling that somebody on the list already has such a repository There is the ConTeXt revisions repository at the Supélec foundry (http://foundry.supelec.fr/projects/contextrev/), but I don't have the impression that Taco maintains it any more. Only 'current' releases are there right now, no betas are kept. I do have quite a lot of ConTeXt zips on my laptop, which I've been collecting since approximately one year (probably not all, but definitely a lot). It is big, but not that terrible (1.7GB). The main ConTeXt zip is only 7MB after all. Of course, it is around 30MB uncompressed. A branch with all the beta's you have (perhaps since the last current) would be useful at this stage, I think. If you can upload them to the FRS section of the museum (you should have permission to do so already), I can will them to the SVN Repo afterwards. Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] unicode-math
Philipp A. wrote: hi, context in combination with luatex is quite the way to go for me, but i have one thing that i would love to see inside context: unicode-mathhttp://github.com/wspr/unicode-math! the guys there are making a good job of mapping tons of unicode sequences to latex commands, so we should really profit from this project. is it possible to integrate it into context or to create a package for this purpose? i would love to write $y = x² ± 2µ ⇒ y ≠ √{α ⁄ 5}$, while still being able to write $y = x^2 \pm 2\mu \Rightarrow y \neq \frac{α \over 5}$ or any combination of the two. Most of the tedious work is already there: your test above actually renders something, because the unicode math characters in context mkiv are all (or at least almost all) defined to render themselves as math glyphs. What is missing is the mapping of the special constructs like √{a⁄b} - \frac{a}{b} so if you can extract a list of those from the unicode-math project, it would be pretty straightforward to add support for this kind of input, I think. Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] \newconditional and Lua
Hi Hans, is there a simple way to change the status from commands created with \newconditional id \newif from, e.g. in the following example it’s easy to pass the value of the conditional from TeX to Lua but not in the reverse way. \newconditional\test \starttext \settrue\test TeX: \ifconditional\test TRUE\else FALSE\fi Lua: \startluacode if \luaconditional\test then context(TRUE) else context(FALSE) end \stopluacode TeX: \ifconditional\test TRUE\else FALSE\fi \stoptext When i change \newconditional to \newcount it’s easy but not very elegant. \newcount\test \starttext \settrue\test TeX: \ifconditional\test TRUE\else FALSE\fi Lua: \startluacode if \luaconditional\test then context(TRUE) else context(FALSE) end tex.count['test'] = 1 ; \stopluacode TeX: \ifconditional\test TRUE\else FALSE\fi \stoptext Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] bTABLE in header and document give unexpected behavior
On Mon, Jun 11, 2012 at 11:46 AM, Sietse Brouwer sbbrou...@gmail.com wrote: Sido wrote: I had posted a question on stack-exchange and it was suggested to post a bug report here. I’m not sure if this is a bug, but it was unexpected behavior to me. Wolfgang wrote: BTW: Please use next time the normal mailing list for such problems and not the developer list. That was my mistake: I thought it was a bug, and so I advised him to post to dev-context instead of ntg-context. Just to check: is dev-context@ntg.nl also for bug reports, or is it exclusively for development discussions and should (probable) bugs also go on ntg-cont...@ntg.nl? Lets' say that dev-context@ntg.nl is for developers (features request and bugs) . Features request and bugs from users should be addressed to ntg-cont...@ntg.nl . -- luigi ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] internal mptopdf not found in Context MkIV 2013.04.20
Hi everyone, On So, 30 Jun 2013, Sanjoy Mahajan wrote: I don't know whether it is a Debian-specific problem or shared with upstream, hence I am also sending this to dev-context. I just updated Debian's context to the latest version in TeX Live, and I also get an error (see below) There seems to be a typo in meta-pdf.lua:87: The error is: [MP to PDF] ! LuaTeX error ...norbert/tl/2013/texmf-dist/tex/context/base/meta-pdf.lua:87: attempt to call global 'f_concatm' (a nil value) the line 87 is: mpscode(f_concatm(unpack(m_stack_concat))) when I change it to mpscode(f_concat(unpack(m_stack_concat))) (delete the m) it works suddenly without any problem.. Norbert PS: Mojca, maybe you cheated ;-) PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] patch: \definegraphictypesynonym
Hi, I noticed on recent betas (I'm not sure when this first began) that the command \definegraphictypesynonym no longer works. I corrected it in grph-inc.lua: --- a/tex/texmf-context/tex/context/base/grph-inc.lua +++ b/tex/texmf-context/tex/context/base/grph-inc.lua @@ -429,8 +429,8 @@ end function figures.registersuffix (suffix, target) register('list', target,suffix ) end function figures.registerpattern(pattern,target) register('pattern',target,pattern) end -implement { name = registerfiguresuffix, actions = register, arguments = { 'list', string, string } } -implement { name = registerfigurepattern, actions = register, arguments = { 'pattern', string, string } } +implement { name = registerfiguresuffix, actions = figures.registersuffix, arguments = { string, string } } +implement { name = registerfigurepattern, actions = figures.registerpattern, arguments = { string, string } } I believe I only needed to fix registerfiguresuffix but also patched registerfigurepattern since the code looks like it isn't working, either. This was tested on 20150805. Best regards, Brian ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] No format file with last beta
On 4/10/2016 6:43 PM, Wolfgang Schuster wrote: Hi Hans, I’m unable to generate a format file for MkIV with the last beta, the last line in the log is: open source > 1 > 34 > /Users/wolf/context/beta/tex/texmf-context/tex/context/base/mkiv/node-ini.mkiv loading : ConTeXt Node Support / Initialization Could this be related to the LuaTeX version for the Mac: This is LuaTeX, Version beta-0.90.0 (TeX Live 2016) yes, we're at 0.95 now but i'm somewhat puzzled .. can you try the version i just uploaded to the ftp Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context
[dev-context] Installing old version of context
Hi, My reference installation of context is from 2016-09-18. Suddenly it has stopped working. When I try to rebuild the formats (--make) it cant find context.lua. I have traced system calls, and it does not look in the right directories. If I copy mtx-context.lua to ./context.lua then it works. Other installations do work. According to Murphys Law, it is only the really important one that has stopped working. It must be something that I have done. But what? I have compared directory trees from about the seame time, but not found anything that motivates this failure. The best thing would be to have the original tree from that date, but I don't have a copy. All of the above is just background. Here comes the question: Is there a way that I can install context as it would have been installed on a given date? I mean all of context, not just the binaries. /Lars ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context
[dev-context] Missing indentnext check in buff-ver.mkiv
Dear devs, \typebuffer does not obey the indentnext option from \setuptyping because the corresponding checks are missing in \buff_verbatim_type_buffer and \buff_verbatim_type_buffer_indeed. I have attached a possible patch. Cheers, Henri diff --git a/tex/context/base/mkiv/buff-ver.mkiv b/tex/context/base/mkiv/buff-ver.mkiv index e6c88cdb7..cc704ea2f 100644 --- a/tex/context/base/mkiv/buff-ver.mkiv +++ b/tex/context/base/mkiv/buff-ver.mkiv @@ -895,7 +895,8 @@ \else \buff_verbatim_type_buffer_indeed\currenttyping\empty% [] \fi\fi - \endgroup} + \endgroup + \dorechecknextindentation} \unexpanded\def\buff_verbatim_type_buffer_class#1% {\begingroup @@ -934,7 +935,8 @@ \endofverbatimlines \dostoptagged \stoppacked - \typingparameter\c!after} + \typingparameter\c!after + \useindentnextparameter\typingparameter} \unexpanded\def\typeinlinebuffer {\dontleavehmode ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context
[dev-context] \lastxpos and \lastypos should behave like registers
Dear devs, The two macros \lastxpos and \lastypos should behave like registers, because that is what they are in LuaTeX. The following MWE fails with ! You can't use `the character 0' after \the \starttext \the\lastxpos \the\lastypos \stoptext A simple fix would be to wrap the macro in \numexpr like in the attached patch. Cheers, Henri diff --git a/tex/context/base/mkiv/back-pdf.mkiv b/tex/context/base/mkiv/back-pdf.mkiv index 776581413..220c2ac11 100644 --- a/tex/context/base/mkiv/back-pdf.mkiv +++ b/tex/context/base/mkiv/back-pdf.mkiv @@ -93,8 +93,8 @@ %D Maybe these are used: \unexpanded\def\savepos {\clf_savepos} - \def\lastxpos{\clf_lastxpos} - \def\lastypos{\clf_lastypos} + \def\lastxpos{\numexpr\clf_lastxpos\relax} + \def\lastypos{\numexpr\clf_lastypos\relax} %D We do some interception: ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context
[dev-context] Different Versions of Manuals
The ConTeXt Excursion referenced from the garden and contained in the LMTX distribution say that they are from 2017-Oct-05. The version linked from http://www.pragma-ade.com/overview.htm says it is from 1999-May-27. The ConTeXt reference manual linked from http://www.pragma-ade.com/overview.htm is from 2001-Nov-12. The version referenced in the garden is from 2013-Sep-27. As of now, I did not find a version of the document in the distribution. Neither in ConTeXt LMTX, nor in ConTeXt Standalone. In the following days I will start to use the most recent version of the two documents known to me. In the LMTX distribution: musings.pdf is from 2020-Jan-17, whereas musings.tex and musings-names.tex are from 2020-Feb-18. luametatex.pdf in LMTX is from Feb-18. In Standalone it is from Jan-30. ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context
[dev-context] Add headcommand to floatcaption
Dear Hans, Could you please add the possibility to switch the headcommand to floatcaption? Below you can find a simple patch that implements what I am proposing. Happy holidays, Henri --- diff --git a/tex/context/base/mkiv/strc-flt.mkvi b/tex/context/base/mkiv/strc-flt.mkvi index 584cf915f..5b0c2d9e5 100644 --- a/tex/context/base/mkiv/strc-flt.mkvi +++ b/tex/context/base/mkiv/strc-flt.mkvi @@ -88,6 +88,7 @@ \c!minwidth=\v!fit, % id est: the width of the floatbox in some cases \c!headstyle=\v!bold, \c!headcolor=, + \c!headcommand=\hbox, \c!leftmargin=\zeropoint, \c!rightmargin=\zeropoint, \c!outermargin=\zeropoint, @@ -424,7 +425,8 @@ \emptyfloatcaptiontrue \ifnofloatnumber \else - \hbox{\usefloatcaptionstyleandcolor\c!headstyle\c!headcolor\thecurrentfloatnumber}% + \floatcaptionparameter\c!headcommand + {\usefloatcaptionstyleandcolor\c!headstyle\c!headcolor\thecurrentfloatnumber}% \ifnofloatcaption \else \ifemptyfloatcaption \else \doifelsenothing{\floatcaptionparameter\c!spaceinbetween} {\floatcaptionparameter\c!headseparator\relax ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context
[dev-context] multi-page text background bug
Example: -- \definetextbackground[undeftext][location=text,alternative=1,dash=3,background=,frame=off,voffset=-.5ex] \starttext Hello \starttextbackground[undeftext] world! \page bbb. \page ccc. \stoptextbackground \stoptext -- Proposed patch: -- --- tex/texmf-context/tex/context/base/mkxl/anch-pgr.lmt.bak 2021-05-07 12:19:30.951643997 -0500 +++ tex/texmf-context/tex/context/base/mkxl/anch-pgr.lmt 2021-05-07 12:19:44.716693548 -0500 @@ -123,6 +123,9 @@ local ht= specification.ht local dp= specification.dp -- this is not yet r2l ready +-- myfix +realpage=texgetcount("realpageno") +-- end local w = d.shapes[realpage] local x, y = getpos() if trace_ranges then -- The module-local variable `realpage` is never changed, which is apparently a bug. Best, GOU Lingfeng ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] mtxrun makes x11 stuck
It sounds to me like you have a system problem, and context is just the unlucky recipient where that shows up. Alan > On 12Sep21, at 04:09, Sylvain Hubert wrote: > > Thanks for the hints, Hans. But the problem has been reproduced multiple > times after the last update. > > The bug turns out to be not from within context. I just tried `touch > context-lmtx/tex` (in which there are texmf/, texmf-context/, etc.) and the > very same problem appears. > > This is very weird, as the whole context-lmtx/ has no more than a few > thousand files and <400MB of data, so it's unlikely to be a cache issue > either. > > > > On Sun, 12 Sept 2021 at 11:38, Hans Hagen wrote: > On 9/12/2021 1:15 AM, Sylvain Hubert wrote: > > Dear ConTeXt Devs, > > > > Here's a problem that I reported last year > > (https://mailman.ntg.nl/pipermail/ntg-context/2020/099862.html > > <https://mailman.ntg.nl/pipermail/ntg-context/2020/099862.html>) with a > > wrong description. I thought that it had something to do with Firefox or > > browsers, but it turns out to be a much deeper and weirder problem > > messing up with the X window system. > > > > Environment: Manjaro Linux 21.1.2, Xfce 4.16 > > > > Steps to reproduce: > > 1. `context --version` # it can hardly be any more innocent > > 2.1. keep striking random keys in the terminal or mounsepad or whatever > > 2.2. or open a running-cat.gif in the background > > Expected behavior: the characters should appear as you type, or the cat > > should keep running > > Actual behavior: ~3s after `context --version` finishes, the terminal > > freezes and the character stops appearing for ~1s, or similarly, the cat > > stops running for ~1s > > > > In short, ~3s upon termination of context, the X window stuck for ~1s. > > > > More information: > > 1. The problem only appears 2 days after the fresh installation of > > latest context-lmtx, which was also the case last year. > > 2. `context --version` isn't doing anything, so it shouldn't be a > > resource problem, and I've got no such problem keeping 40+ pages open in > > chrome anyway. > > 3. Below is a more precise timing of the problem. The first output is > > the result of `context --version` along with the start and stop > > timestamps. The second output is a python one-liner printing timestamps > > each time it reads an . Notice how python reads an per > > ~0.05s until 00:33:21.597326, when it is blocked for ~0.7s. > > > > I'm not sure if it's reproducible everywhere, and I'm willing to debug > > it myself, but I would need the source code of the context executable. > i can't be of much help here but keep i nind that after an update a > first run can trigger a format remake or scan for fonts so when that > takes time hitting some 'run again' key can result in many simulatious > runs that can add up an dmaybe stall the system > > 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 > ----- > ___ > dev-context mailing list > dev-context@ntg.nl > https://mailman.ntg.nl/mailman/listinfo/dev-context -- Alan Braslau ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Bug in ruby register code?
Duncan Hothersall wrote: Sorry if I got the wrong end of the stick. we need some extensive test for registers in the test repository (esp since some day we may move sorting code inside tex using lua) Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] An Idea for the garden
On Tue, 17 Oct 2006, Mojca Miklavec wrote: On 10/14/06, Aditya Mahajan wrote: Wasn't there a project somewhere with the compiled pdf of all sources? Do you mean this one? http://wiki.contextgarden.net/User:Luigi.scarso/modules.pdf Yes. I noticed that Luigi also has a file for making the sources. I always wondered what was the purpose of s-mod-2.tex and this document explains it. I will work with this and see if this document can be kept up to date. Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] pdfetex: Not writing to ../../type-enc
Mojca Miklavec wrote: Just out of curiosity: what exactly do the following messages mean? I'm experiencing a strange problem on the garden: some things that work in live fail on the wiki. (/opt/local/texmf/tex/context/cont-sys.texpdfetex: Not writing to .../type-exa (openin_any = p). pdfetex: Not writing to ../../type-exa (openin_any = p). (/opt/context/current/texmf/tex/context/base/type-exa.tex)pdfetex: Not writing to ../type-syn (openin_any = p). pdfetex: Not writing to ../../type-syn (openin_any = p). (/opt/context/current/texmf/tex/context/base/type-syn.tex)pdfetex: Not writing to ../type-enc (openin_any = p). pdfetex: Not writing to ../../type-enc (openin_any = p). (/opt/context/current/texmf/tex/context/base/type-enc.tex)pdfetex: Not writing to ../type-siz (openin_any = p). pdfetex: Not writing to ../../type-siz (openin_any = p). (/opt/context/current/texmf/tex/context/base/type-siz.tex)pdfetex: Not writing to ../type-map (openin_any = p). pdfetex: Not writing to ../../type-map (openin_any = p). (/opt/context/current/texmf/tex/context/base/type-map.tex)pdfetex: Not writing to ../type-spe (openin_any = p). pdfetex: Not writing to ../../type-spe (openin_any = p). paranoid mode is configured in the cnf file; the message is wrong: it means that pdftex is not reading (openin_any) To be more specific, I was testing Hans's example: \definefontsynonym [MathGamma] [prodint] \definefamilysynonym [default] [xop] [mc] \startmathcollection [default] \definemathsymbol [prodi] [op] [xop] [80] \definemathsymbol [Prodi] [op] [xop] [82] \definemathsymbol [PRODI] [op] [xop] [84] \stopmathcollection \loadmapfile[prodint] \starttypescript [math] [modern,computer-modern,latin-modern,ams] [size] \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] [mc=prodint] \stoptypescript \definetypeface [modern] [mm] [math] [modern] [computer-modern][encoding=default] \setupbodyfont[reset,modern,10pt] \enablemathcollection[prodint] $\prodi$ afaik it only means that context fails to find in the two parent paths which should not be a problem here but may be a problem in project setups -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Inconsistent Reference Counting
FWIW: Using \Footnote defined as below in a document with about 70 footnotes seems to correct all the \somewhere problems. \def\Footnote#1% {\global\advance\crossreferencenumber\minusone\relax% \footnote{#1}} Presumably \footnote is indirectly calling \dodowritereference although I haven't traced the full invocation path yet. --Mike Bird ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Fix for Footnote Reference problem
Hi Mike, Mike Bird wrote: Here are a number of repaired functions (and one repaired variable) which together fix the problem of footnote references getting out of step between phases resulting in bogus results from \somewhere. Do you happen to have these changes as a diff file or a patched core-not.tex, by any chance? I want to compare stuff, and either of those formats would be a bit easier on me. Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] feature requests from contextgarden
On Mon, 5 Feb 2007, Taco Hoekwater wrote: \Fixme will be the topic of the `how to write a module' tutorial at Epen Great! I have been planning to write a module that does something like that, but I have never managed to completely figure out the type of output that I want (endnote, footnote, sidenote,) and the features to support: list of fixme's, how critical is the fixme (show in log, give a warning, give a error), etc. Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] New Google Coustom Search
Hello, A tiny addition on the garden: I have changed the google search window on the wiki a bit, so that it now uses Google Custom Search. Feedback/suggestions wellcome (I need to refine the ntg/tug/ctan searches a bit). Also, if anyone would like to contribute to it (modify it, improve it, add and/or refine searches), just drop me an email and you'll get an invitation. Mojca PS for Patrick: articles are down ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] XeTeX and \externalfigure problem
Mojca Miklavec wrote: Hello Hans, what has happend to \externalfigure[a] in XeTeX? With \externalfigure[a] I now get ! Unable to load picture or PDF file './a.png}'. looks like an xetex message to me (see spec-xet) doesn't xetex support png? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] bug in texexec --mptex
Hi Hans, There is a small bug in texexec --mptex: it deletes lines starting with a # character because it believes those are comments. Not true. Example: beginfig(1); numeric #; # = 10; % remove leading space to get error label(btex $x_1$ etex, (#,#)); endfig; end (I found this because it happens in the MP manual macros) Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] last modules frozen acrobat 8
On Sun, May 25, 2008 at 12:51 PM, luigi scarso [EMAIL PROTECTED] wrote: It was reported that last modules freeze acrobat 8 . I have no problem with xpdf 3.02, GNOME evince 2.22.1.1 and gs 8.62 fixed in #1296 (thanks taco,I was not able to test 1293) ASAP I will make a new release of modules. -- luigi ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] MetaFun freelabel macro
Dear Taco, a minute ago I discovered this lovely macro freelabel() and friends … just a minor thing that confuses me a bit: freelabel(a, origin, dir(90)); places the label below the origin rather than above it. I would have expected the direction vector to point from the anchor point towards the label and not the other way round … Apart from that this nifty macro is going to save me a lot of trouble! Oliver ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] feature interiance
Taco Hoekwater wrote: how so? simply adding feature names to the end of the list is an extensible solution, i thought. yeah, but it's just that only [EMAIL PROTECTED] is passed and not all variables; at least not currently in the mkii/mkiv mix Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] trouble with texmfstart and =
Aditya Mahajan wrote: texmfstart does not handle = in --argument propertly. For example texmfstart --verbose --arguments=a=b bin:echo and what does texmfstart --verbose --arguments=a=b bin:echo do? or texmfstart --verbose --arguments='a=b' bin:echo - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] Release 2008.10.31
Hi, Hans did a new release today, and I have just finished its webpage. Unfortunately I have no more time today for announcement nor summary: I have dinner guests that prefer to have me actually at the dinner table, attending. Unless someone (Hans?) beats me to it, I can summarize adn announce tomorrow morning Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] [mp-implementors] MetaPost 1.101 announcement
I built 1.101 in linux using the build.sh script and copied the mpost executable to my path. However, running mpost complains in the following way: Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file! I'd appreciate any thoughts on how to fix this. Thanks, Troy ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] luatex beta 0.36.0
Mojca Miklavec wrote: On Mon, Mar 23, 2009 at 10:53, Taco Hoekwater wrote: Hi, I have just uploaded luatex 0.36.0. Hello Taco, I have some problems with compilation. Did other Mac users manage to compile LuaTeX without problems? -DPREFIX=\/usr/local\ -c ../../../../../src/libs/luafontforge/fontforge/fontforge/cvexport.c -o cvexport.o Your checkout is broken, cvexport.c no longer exists in the repository at all. Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Making a minimals update svn friendly
On Mon, 25 May 2009, Oliver Buerschaper wrote: To what Aditya has answered: --keep option is probably not the solution to what Oliver wants to achieve. I suspect that he indeed wants to delete obsolete files, but preserve .svn. Yep. (Although I'm not quite sure what --keep exactly does here.) Does not add --delete flag to rsync. Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] removing BibTeX auxiliary files with --purgeall
Hello Hans and Taco, may I also add the request that temporary files created by BibTeX are deleted automatically by --purgeall? That is, *.blg *.aux It'll probably be wise to keep the *.bbl file :-) Although it is created automatically by the BibTeX run I need to tweak it manually at times ... Best wishes, Oliver P.S. I cannot test this with MkIV at the moment but MkII doesn't delete those files for sure ... ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Crash with luatex-fonts
Khaled Hosny wrote: %%% error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765: attempt to call field 'register_message' (a nil value) %%% This is the bug (a lua or font problem). %%% luatex: ../../../source/texk/web2c/luatexdir/tex/linebreak.c:1660: ext_do_line_break: Assertion `varmem[((cur_p)+1)].hh.v.RH == 0+4+4+4+4+4+4+2+2+2' failed. Aborted %%% This is just a result of the earlier bug. Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] error: You can't use `\vadjust' in internal vertical mode
there's also a patch needed for \ifinner\else\vadjust{\penalty\minusone}\fi later on With Taco's patch to both \vadjust lines, the bug disappears here. I'll keep running the modified version to see whether it triggers in other cases, but I think it's solved. Thanks much. -Sanjoy `Until lions have their historians, tales of the hunt shall always glorify the hunters.' --African Proverb ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Is this font changing allowed/correct?
Am 14.06.2009 um 10:38 schrieb Taco Hoekwater: Hans Hagen wrote: Some text. { \switchtobodyfont[concrete] More text. } concrete roman? mkiv does not support bitmap fonts out of the box Well, mkiv does indeed define a typescript for concrete in type- otf It doesn't, concrete is not part of type-otf.mkiv, only type-otf.mkii Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Is this font changing allowed/correct?
Wolfgang Schuster wrote: Am 14.06.2009 um 10:38 schrieb Taco Hoekwater: Hans Hagen wrote: Some text. { \switchtobodyfont[concrete] More text. } concrete roman? mkiv does not support bitmap fonts out of the box Well, mkiv does indeed define a typescript for concrete in type-otf It doesn't, concrete is not part of type-otf.mkiv, only type-otf.mkii In current? ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Is this font changing allowed/correct?
Am 14.06.2009 um 10:45 schrieb Taco Hoekwater: Wolfgang Schuster wrote: Am 14.06.2009 um 10:38 schrieb Taco Hoekwater: Well, mkiv does indeed define a typescript for concrete in type- otf It doesn't, concrete is not part of type-otf.mkiv, only type-otf.mkii In current? Beta Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] thecontextbook.com
Hi all, My domain thecontextbook.com is coming up for renewal *very* soon (the 17th). Is there anyone in the community I can transfer it to so that it might get some public usage? I'm fond of the idea of the domain, but life and competing projects have just gotten in the way of pushing that idea forward in my foreseeable future. Hope all is well, adam http://twitter.com/atl http://atl.me ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] appendtoks / csname
Hi, I look for a convient way to use \appendtoks with a token list which is accessed with \csname ... \endcsname, e.g. \appendtoks something \to\csname mytoks\endcsname This works when I enclose the \csname/\endcsname pair in braces \appendtoks something \to{\csname mytoks\endcsname} but this did not look very pleasant to my eyes. I thought something similar to \addvalue would be nice \addtoks{mytoks}{something} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] lpdf.dictionary
Hi Hans, can you implement *ordered* output with 'lpdf.dictionary'? There are two reasons why I ask. - My md5 hashing mechanism depends on the order of the entries. I think its much easier to implement an ordered output than to create a hashing mechanism, that checks for equal content. I also doubt, that there is a faster alternative for this job than md5. - Also debugging is a pain with longer dictionaries (I have to use a check list). Best wishes, Peter ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Mac installation package
Oliver Buerschaper wrote: in the Terminal. (TeXShop support is easy and will be included in the next revision.) then also consider texworks thanks Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] refereces in mkiv
On Tue, 10 Nov 2009, Mojca Miklavec wrote: Hello Hans, what's the status of referencing mechanism in MKIV? (I have some memories that you were implementing some fancy features, but the simple example doesn't work at the moment): \placeformula[test] \startformula a+b=c \stopformula \in[test] Formula referencing has been working fine for a while now. which version are you using? The example works correctly in 2009.11.09 and 2009.11.02. Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] 2 columns itmize in letter module possible
Am 23.02.2010 um 12:59 schrieb Wolfgang Schuster: I am using your letter module, but it seems that I am not able to use a 2 column itemize environment? Fixed. Brilliant. Thanks. So, I have to update to the latest minimals, or download the latest version from contextgarden modules site, right? Jörg ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] How up to date char-def.lua is?
Since Unicode keeps adding new characters and scripts with each release (and some times altering the properties of existing characters), I was wondering how up to date char-def.lua is, in particular on which version of Unicode data was it based and how frequently it is synced with Unicode (if at all). It would be even nice to have an mtx script to update the database when needed. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] [luatex] [Dev-luatex] Luatex 0.60.0 announcement
Khaled Hosny wrote: On Sun, Apr 04, 2010 at 09:16:28AM +0200, Taco Hoekwater wrote: * getluatexsvnversion.sh now correctly detects git-svn and still manages to find a valid SVN revision number (from Patrick Gundlach) I don't have .git/refs/remotes/git-svn here, so the check fails. The attached patch makes it work for me too. Applied. Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] [luatex] Luatex 0.60.0 announcement
Manuel Pégourié-Gonnard wrote: Sorry for nitpicking, but: * There are new functions node.protrusion_skipable() and Should it be skippable, or is it intentional? I'm not claiming any understanding of English vs American or whatever subtleties, so I may be completely mistaken, but Merriam-Webster only know about skippable. No problem, I'll change that and keep the old one around for a while (my spellchecker knows neither word, btw). Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] audit of commands
Khaled Hosny wrote: Maybe, we can have an infobox for the wiki pages, so we can say something like {{ Infobox command | name = setupframed | ... }} It also makes editing the wiki much easier (using also wiki tables instead of HTML tables etc.) This is definitely true, but for the export there is a simple solution: export as xml, feed the output through Tidy, then process with mkiv's native xml support. Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Checksum of original font files stored in the cache?
On Fri, Jun 18, 2010 at 11:34 AM, Hans Hagen pra...@wxs.nl wrote: nowadays i always just drop 'm in texmf*/fonts/data/origin/collection so for example in texmf-fonts/fonts/data/khaled/xits (and i no longer bother about separating type1 file into different paths anyway as data is patr of all path vars) And then run mtxrun --script font reload, I suppose -- luigi ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] cont-en.xml
On Fri, Jun 18, 2010 at 10:58, Hans Hagen wrote: On 17-6-2010 3:11, Mojca Miklavec wrote: Even though the fact that mkii is frozen might be true, most of valid options are still missing in those xml files. well, 'most' is not fair I'm sorry, I probably wanted to say that most of undocumented options are missing in those xml files :) :) :) There is no doubt that the great majority and in particular all the most important commands are present. Mojca ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Luatex 0.61.0 announcement
On Wed, Jul 28, 2010 at 3:41 PM, Taco Hoekwater t...@elvenkind.com wrote: Hi, I have just uploaded the archives for a new luatex release, 0.61.0, the first of the betas toward 0.70.0. New features: * New lua library 'epdf' for introspection of PDF inclusions, see the manual for details. Can I then build a luatex script that mimic pdftoppm pdftops ? -- luigi ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Bug: English versions of manuals mention Dutch command
On Sun, Sep 12 2010, Sietse Brouwer wrote: Ah, thank you. I've made a checkout and searched the project for instances of '\inmarge'; there's only one, and that one would end up in the index. Here's the patch: Oh, I'd supposed, that you would rather check the pdf... ;) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] TLContrib is ready for testing
On 10/06/2010 07:33 AM, Aditya Mahajan wrote: What is the HTTP URL meant for? I tried pointing it to a zip file of my module and it says Sorry, we can only handle zip and tar.gz files at the moment. What was your exact url? It really should end with .zip Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] TLContrib is ready for testing
On 10/07/10 00:22, Aditya Mahajan wrote: fmtutil-sys --no-error-if-no-format --byengine mpost failed (status 1), Metapost 1.502 no longer uses formats, but the package still included the fmtutil lines to generate formats, and that is why you got an error. I have fixed the package, there should be a new revision of 'metapost' available in half an hour. And yes, your logs were from the old version. Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Greek without Latin
Am 13.10.2010 um 01:01 schrieb Aditya Mahajan: I thought that Mojca was asking if we can also specify units in Greek. For example, 1μμ instead of 1mm (Although, I am not sure what are the corresponding units in Greek). \usemodule[translate] \translateinput[μμ][mm] \enableinputtranslation \starttext\tt \scratchdimen=2mm 2mm: \the\scratchdimen\crlf \scratchdimen=1μμ 1μμ: \the\scratchdimen \stoptext Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] Catcodes in bib module
Hi, Try this example: \newcatcodetable\arbitcatcodes \startcatcodetable\arbitcatcodes \catcod...@=0 \stopcatcodetable \setcatcodetable\arbitcatcodes @starttext Hello @stoptext This results in the entire bxml-apa.mkiv being typeset! The file bxml-apa is called by \def\dodoloadbibtexpublicationalternative#1% {\doonlyonce{#1} {\readsysfile{bxml-#1.mkiv} {\showmessage\m!publications{6}{bxml-#1}} {\showmessage\m!publications{1}{bxml-#1 in bibl-bib.mkiv I don't know if this should be considered a bug or not. Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] MetaPost 1.503 (beta version)
Hi, On 10/22/2010 04:04 PM, Taco Hoekwater wrote: We are happy to announce a new beta release of MetaPost: There will not be an immediately following luatex release, because most of the changes to metapost were just obscure bugfixes. Nevertheless, it would be nice if there were binaries in tlcontrib for this release (I have already uploaded a new 'base' package). Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Bug: strc-syn.mkiv
On 20-3-2011 9:04, Wolfgang Schuster wrote: wrong name for \doplacelistofsorts (\do is missing) and missing \unexpanded for \completelistofsorts ok fixed, - 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] MkVI: Delimited Arguments
Am 07.04.2011 um 21:12 schrieb Hans Hagen: it's the \normalexpanded{ } ... i could probably catch that but i wonder if we should go that route Should i then use in this case TeX’s normal numbered arguments. It’s no big deal because i have this odd case only at one place in my annotation module where i grab the content between from a environment. Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] \newconditional and Lua
Am 26.04.2011 um 16:15 schrieb Hans Hagen: On 26-4-2011 4:08, Wolfgang Schuster wrote: Hi Hans, is there a simple way to change the status from commands created with \newconditional id \newif from, e.g. in the following example it’s easy to pass the value of the conditional from TeX to Lua but not in the reverse way. if tex.conditionals.whatever ... Is there also a lua version of \settrue and \setfalse or \…true and \…false (because i saw the “tex.ifs” metatable)? Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] current
On Mon, May 16, 2011 at 12:25, Hans Hagen wrote: Hi, As I expect some incompatible luatex dev soon (lua level) I'd like to make a current. Any known showstoppers? My only request is to keep the current around for at least a while (even if a very short one) before introducing incompatible changes ... to allow for fixing any bugs that might show up and to fix them before TL freeze. Mojca ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] pack-mis.mkiv
Am 07.06.2011 um 13:02 schrieb Wolfgang Schuster: Hi Hans, there’s a typo in pack-mis.mkvi \def\pack_placement_indeed[#settings]% set test can be sped up but non critical {\iffirstargument -\setupcurrentplacement[#settings]% +\setupplacement[\currentplacement][#settings]% Sorry for the noise, i just missed that you also define \setupcurrent... in mult-aux.mkiv Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] strc-ren.mkiv
\def\doplaceheadnumbercomponent#1% {\begingroup \setupheadcomponentfont\c!numberstyle\c!numbercolor \placeheadmargintexts \ifcsname\??nh\currentstructurehead\c!deepnumbercommand\endcsname - \expandafter\let\expandafter\deepstructurenumbercommand\csname\??nh\currentstructurehead\c!deeptextcommand\endcsname + \expandafter\let\expandafter\deepstructurenumbercommand\csname\??nh\currentstructurehead\c!deepnumbercommand\endcsname \fi \ifconditional\structureheadisdisplay % \ifdisplaysectionhead % can be nilled with \setnostrut \structureheadparameter\c!numbercommand{\setstrut\begstrut#1\endstrut}% \else \structureheadparameter\c!numbercommand{#1}% \fi \endgroup} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] --iftouched not working
Hi, mtxrun --iftouched does not work. The reason is that line 147000 of mtxrun.lua has local oldname, newname = string.split(touchname, ,) This sets oldname to be equal to a table and newname to nil. Consequently, the next test if oldname and newname and oldname ~= and newname ~= then fails. An easy fix is to wrap string.split inside a unpack. local oldname, newname = unwrap(string.split(touchname, ,)) but there might be more canonical ways of fixing this. Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] \defineheadplacement
Hi Hans, is it possible to integrate the two parameters for the number and text in the definition of the command? %\def\dodefineheadplacement[#1][#2]% #3#4 % {\setvalue{\??ns:#1}{#2}% % \setvalue{\??ns::#1}} \def\dodefineheadplacement[#1][#2]% {\setvalue{\??ns:#1}{#2}% \setvalue{\??ns::#1}##1##2} As \defineheadplacement is a user command it should be possible to use it in the form \defineheadplacement[test][horizontal]{\inleft{#1 #2}} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] \defineheadplacement
Hi Hans, is it possible to integrate the two parameters for the number and text in the definition of the command? %\def\dodefineheadplacement[#1][#2]% #3#4 % {\setvalue{\??ns:#1}{#2}% % \setvalue{\??ns::#1}} \def\dodefineheadplacement[#1][#2]% {\setvalue{\??ns:#1}{#2}% \setvalue{\??ns::#1}##1##2} As \defineheadplacement is a user command it should be possible to use it in the form \defineheadplacement[test][horizontal]{\inleft{#1 #2}} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] \defineheadplacement
Am 16.06.2011 um 23:27 schrieb Hans Hagen: I grepped all my projects and if you want that we need a more clever patch: […] Can you check that? It works with and without parameters. As the command is at user level it’s better to get rid of the arguments (like \define[2]\Command and \def\Command#1#2). Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] mtxrun problems again
On 06/22/11 20:08, Hans Hagen wrote: On 22-6-2011 7:20, Mojca Miklavec wrote: Hello Taco, I installed the latest TL (whithout your last minute changes today) and saved x.tex into /tmp (I always do that with tests, so that machine deletes them when I get reboot). and with todays patches? Good question, as I think that today's patches are quite relevant for this issue. Best wishes, Taco ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] core-con.mkiv
On 28-6-2011 11:30, Wolfgang Schuster wrote: core-con.mkiv: missing “) -\def\ordinaldaynumber #1{\ctxcommand{ordinal(#1,\currentlanguage}} +\def\ordinaldaynumber #1{\ctxcommand{ordinal(#1,\currentlanguage)}} maybe that one should be unexpandable - 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] strc-ref.mkiv
Missing “do” in the else branch: -\unexpanded\def\directgoto{\ifconditional\uselocationstrut\expandafter\dodirectgoto\else\expandafter\directgotohtdp\fi} -\unexpanded\def\goto {\ifconditional\uselocationstrut\expandafter\dogoto \else\expandafter\gotohtdp \fi} +\unexpanded\def\directgoto{\ifconditional\uselocationstrut\expandafter\dodirectgoto\else\expandafter\dodirectgotohtdp\fi} +\unexpanded\def\goto {\ifconditional\uselocationstrut\expandafter\dogoto \else\expandafter\dogotohtdp \fi} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
On 13-7-2011 7:18, Wolfgang Schuster wrote: Hi Hans, can you make \setupnumbering a synonym for \setupstructurecountering? \let\setupnumbering\setupstructurecountering sure (still not sure about dropping the structurecounter names) - 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
Am 13.07.2011 um 19:56 schrieb Hans Hagen: On 13-7-2011 7:18, Wolfgang Schuster wrote: Hi Hans, can you make \setupnumbering a synonym for \setupstructurecountering? \let\setupnumbering\setupstructurecountering sure (still not sure about dropping the structurecounter names) I’ll document only \definenumber, \setupnumber etc. The structure variants are internal commands and unimportant for the command reference. Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
Am 13.07.2011 um 20:13 schrieb Hans Hagen: Actually I wanted to get rid of it ... but we can make this one \resetnumber (at least it's clear then what gets reset) In this case I’m going to ignore it because there is already a \resetnumber command: \let \resetnumber \resetstructurecounter % [name] ok; the only difference then would be that it can be a list but we can as well get rid of that as none of the number commands accepts a list it shouldn’t matter Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] Changing font and color using \processisolatedwords
Why can't I change the color and style when using processisolatedwords? \defineframed[colored][foregroundcolor=red,foregroundstyle=\bfc,location=low] \starttext \colored{What} \processisolatedwords {\input ward \relax } \colored \stoptext Also \processwords is defined twice, first in syst-aux which is then overwritten by the definition in supp-box. Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] range in \typefile
On 18-10-2011 04:43, Aditya Mahajan wrote: Hi, \typefile[range={1,3}]{...} does not work. My guess is that this is because the variable `range` is never initialized in `filter` function in buff-ver.lua. A local range = settings.range should be added to the `filter` function. indeed - 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] strc-num.mkiv
On 19-10-2011 13:07, Wolfgang Schuster wrote: shouldn’t the inner test be “\ifx\hasstructurecounternumber\v!yes”? makes sense indeed 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] Add toggle method to indent
Hi Hans, Can you add a `toggle` key to `\setupindenting`. This will allow one to easily write poety where alternative stanzas are to be indented. defineindentingmethod [toggle] {\ifdim\parindent=\zeropoint\relax \parindent\ctxparindent\relax \else \parindent\zeropoint\relax \fi} \setuplines [inbetween={\blank[preference,line]\setupindenting[toggle]}, indenting=no] \startlines \stoplines Thanks, Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Additional framed fences
On 19-11-2011 23:11, Aditya Mahajan wrote: and include the attached file as part of meta-imp-fen.mkiv? ok (but I added a namespace to the mp code) - 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] Feature request: criterium=component
On Fri, 25 Nov 2011 03:34:07 -0700, Hans Hagen pra...@wxs.nl wrote: Will be in the next beta. And *you* are going to wikify it! Ok, done :-) http://wiki.contextgarden.net/Table_of_Contents#Tables_of_contents_.28and_other_lists.29_via_project_structures And thanks for implementing this! Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] beta
On Thu, 22 Dec 2011, Wolfgang Schuster wrote: PS. I hope that in 2012 I've redone all the code (consistency, mkiv'd, namespaces, etc). Can we now consider the following prefixes for registers as the suggested method to name them: \newcount: \c_… \newdimen: \d_… \newskip: \s_… \newbox: \b_… \newtoks: \t_… I hope you don't converge to LaTeX3 syntax after all the rewrite is over :) Aditya___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] beta
On 22-12-2011 01:38, Aditya Mahajan wrote: No. I reverted to the new internal syntax last week. Now I am using \modulename@macro_name etc. Personally I try to get rid of the @ as it looks so ugly (:: would look better). 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] \installpagehandler
Hi Hans, can you add a \pagehandler command to access the defined commands \def\pagehandler#1% {\expandcheckedcsname{\??pp:h:}{#1}\v!normal} In the following examples from the past the only method to shipout the saved pages was (the no longer available) \actualshipout and this was never nice but with the above command one could write “\pagehandler\v!normal{…}”. Examples: - http://archive.contextgarden.net/message/20090522.174337.1bc2d583.en.html - http://archive.contextgarden.net/message/20090523.173455.72a58128.en.html Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] \installpagehandler
On 22-12-2011 14:52, Wolfgang Schuster wrote: \let\pagehandler\invokepagehandler % only provided for downward compatibility Not necessary because there was no command for this in the past. ok, removed 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] djvu-file
Hello NTG-members, with MKiv the djview plugin crashed. Have you any idea how to solve that? This works with MKii: \useURL[Something-1-url][/book-library/Something.djvu][][djvu-file] but with MKiv I got the message, that the djview plugin has crashed. ( pdf-file gives no problem, if you want to look to a pdf-file(!)). Who knows how to get a djvu-file readable, Kind regards, Rene' van Hassel ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] font-ini.mkvi: \mapfontsize
Hi Hans, there is \dimexpr missing otherwise \mapfontsize has no effect. %\def\font_basics_set_mapped_fontsize#from% % {\ifcsname\??mappedfontsize#from\endcsname % \csname\??mappedfontsize#from\endcsname\else#from% % \fi} \def\font_basics_set_mapped_fontsize#from% {\ifcsname\??mappedfontsize\the\dimexpr#from\relax\endcsname \csname\??mappedfontsize\the\dimexpr#from\relax\endcsname\else#from% \fi} Example: \mapfontsize[12pt][24pt] \starttext 12pt\par \definedfont[Serif mo 1]12pt \stoptext Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] font-ini.mkvi: \mapfontsize
Hi Hans, there is \dimexpr missing otherwise \mapfontsize has no effect. %\def\font_basics_set_mapped_fontsize#from% % {\ifcsname\??mappedfontsize#from\endcsname % \csname\??mappedfontsize#from\endcsname\else#from% % \fi} \def\font_basics_set_mapped_fontsize#from% {\ifcsname\??mappedfontsize\the\dimexpr#from\relax\endcsname \csname\??mappedfontsize\the\dimexpr#from\relax\endcsname\else#from% \fi} Example: \mapfontsize[12pt][24pt] \starttext 12pt\par \definedfont[Serif mo 1]12pt \stoptext Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] ReadFile introduces a space before reading file
On Sat, 14 Jan 2012, Aditya Mahajan wrote: Hi, In the current version \ReadFile introduces an extra space before reading the file. \starttext A\ReadFile{ward} \stoptext No such space is produced by \input \starttext A\input ward \stoptext Bug? In file-res.mkvi: \def\syst_files_read_file_indeed#true#false% {#true% --- AM: % was missing \relax \normalinput{\readfilename}% \relax} Aditya ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] \c!suffixstopper undefined
On 18-1-2012 12:33, luigi scarso wrote: Perhaps it need to be added to \setupcaptions ? no, unset keys are considered empty so there is no need to initialize them - 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] lists redone
Hi, Just a warning: the next beta (already on ftp) has much of the list rendering macros redone. Hopefully with not too many side effects. 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] showframe is unknown
On 24-1-2012 18:06, luigi scarso wrote: \showframe put [unknown command \showframe] but it doesn'h stop halt the run. \setgvalue = \letgvalue{\??runtimeloaded#2}\empty in file-mod.mkiv - 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] type-ini.mkvi
Hi, \def\tsvar#key#default% undocumented and unofficial {\expandafter\ifx\csname\??ts#key\endcsname\empty \csname\??ts#key\endcsname \else #default% \fi} has to be (#default in the empty branch) \def\tsvar#key#default% undocumented and unofficial {\expandafter\ifx\csname\??ts#key\endcsname\empty #default% \else \csname\??ts#key\endcsname \fi} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] colo-grp.mkiv
Hi Hans, \def\colo_groups_define_entry#1#2#3% name mode specification {\advance\c_colo_groups_n\plusone - \csname\??colorgroupsetter\ifcsname\??colorgroupssetter#2\endcsname#2\else\s!rgb\fi\endcsname[#1:\the\c_colo_groups_n][#3:0:0:0:0]} + \csname\??colorgroupsetter\ifcsname\??colorgroupsetter#2\endcsname#2\else\s!rgb\fi\endcsname[#1:\the\c_colo_groups_n][#3:0:0:0:0]} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] colo-grp.mkiv
Hi Hans, \def\colo_groups_define_entry#1#2#3% name mode specification {\advance\c_colo_groups_n\plusone - \csname\??colorgroupsetter\ifcsname\??colorgroupssetter#2\endcsname#2\else\s!rgb\fi\endcsname[#1:\the\c_colo_groups_n][#3:0:0:0:0]} + \csname\??colorgroupsetter\ifcsname\??colorgroupsetter#2\endcsname#2\else\s!rgb\fi\endcsname[#1:\the\c_colo_groups_n][#3:0:0:0:0]} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
Re: [dev-context] \page_one_place_float_text undefined in ftp
On 3-2-2012 17:34, luigi scarso wrote: \page_one_place_float_text is undefined in latest ftp strc-flt: \def\page_one_place_float_text[#1]% was strc -- - 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] new beta
Hi, I've uploaded a beta to the ftp server. There is some work in progress: - otr (page-* files) - descriptions, enumerations, notes (and their parent: constructions) I'm not yet satisfied but it shows where we're heading. 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 - ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] back-exp.mkiv
\appendtoks %\def\dotagcombination{\taggedctxcommand{settagcombination(\combinationparameter\c!nx,\combinationparameter\c!ny)}}% \unexpanded\def\dotagcombination{\taggedctxcommand{settagcombination(\number\horcombination,\number\totcombination)}}% \to \everyenableelements should be \appendtoks \def\dotagcombination{\taggedctxcommand{settagcombination(\combinationparameter\c!nx,\combinationparameter\c!ny)}}% % \unexpanded\def\dotagcombination{\taggedctxcommand{settagcombination(\number\horcombination,\number\totcombination)}}% \to \everyenableelements -- luigi ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context
[dev-context] spac-ali.mkiv
Hi, \unexpanded\def\usealignparameter#1% faster local variant {\edef\m_spac_align{#1\c!align}% - \ifx\m_spac_align\else + \ifx\m_spac_align\empty\else \expandafter\let\expandafter\raggedcommand\csname\??alignmentnormalcache\m_spac_align\endcsname \ifx\raggedcommand\relax \spac_align_add_to_cache\m_spac_align \else \expandafter\let\expandafter\updateraggedskips\csname\??alignmentraggedcache\m_spac_align\endcsname \fi \raggedcommand \fi} Wolfgang ___ dev-context mailing list dev-context@ntg.nl http://www.ntg.nl/mailman/listinfo/dev-context