Re: [NTG-context] Is it possible to make xml.load a bit more 'verbose' when it encounters errors?
Gerben,Maybe this is of some use. The Lua code in the file checks the xml and returns info when something is wrong.I am using it for example in my takenotes module as:And this is a sketch of how it is embedded in that module: % Prerun an xml check. \doifinset{\xmlatt{#1}{checkxml}}{yes,on,true}% {\xmlcommand{#1}{.}{xmlcommon:checkxml}} % Execute this code if no error was found. etc. dr. Hans van der Meer \startluacode -- Define our namespace as hvdm hvdm = hvdm or {} -- Function checks the correctness of an XML tree. hvdm.checkXMLtree = function (xml, linesep) local xml = xml and xml or "" local linesep = linesep and linesep or "\n" local badspace = {} -- Empty files do not need processing. if xml == "" then return "" end -- Step one is remove leading characters before first node. local leadingnode = string.find(xml, "<", 1) or 1 if leadingnode ~= 1 then xml = string.sub(xml, leadingnode, -1) end -- Strip all comments but node pairs inside make it complicated. local c1, c2 = string.find(xml, "", c2 + 1, true) if c3 then -- Remove comment. xml = string.sub(xml, 1, c1 - 1) .. string.sub(xml, c4 + 1, -1) -- Search for next comment. c1, c2 = string.find(xml, "
[NTG-context] mtxrun exit code
I am producing a series of files in a shell script with mtxrun --autogenerate --script context input Doing exit mtxrun... shows there is no exit number to test in the shell, or to ste a shell variable to that value. I can set a global macro \ExitStatus to an exit value depending on success or failure, pass that on to mtxrun as exit statusd and test that in the script. For example: \starttext \xmlprocessbuffer{notes}{notes}{} \doif{\ExitStatus}{notok}{"let mtxrun return value 1 as error in UNIX"} \stoptext After that it would be possible in the shell script to delete the pdf produced, what is my intention in this case. Is this an option or is there presently another (standard) procedure to communicate from ConTeXt to the shell. dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] errors in margindata?
I gues there are errors in \margindata. See the minimal example. The contextversion is fresh loaded just before this test.(1) \margindata{test} gives an error. The log message is: tex error > tex error on line 9 in file ./margindata.tex: ! Use of \typo_margins_data_yes doesn't match its definition l.9 \margindata{ text1}% One has to use \margindata[]{test} to avoid the error.(2) \margindata[]{test} has spurious whitespace, \margindata[]{test}% must be used to avoid that.Below the minimal example and the output. met vriendelijke groetdr. Hans van der Meer margindata.tex Description: Binary data margindata.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] problem since previous versions
A problem has arisen up since previous versions, where code without a problem now raises an error. This is the afflicted code: % Assign values to \locationbox. \doif{top}{\placexlocation}% {\def\startlocationbox{\vtop\bgroup\vss}}% \doif{center}{\placexlocation}% {\def\startlocationbox{\vcenter\bgroup}}% \doif{bottom}{\placexlocation}% {\def\startlocationbox{\vbox\bgroup}}% And it is used here: \setbox\placexbox=\startlocationbox \ignorespaces Previously this worked without a hitch, now the error is: tex error > tex error on line 9 in file ./familie-events.tex: ! A was supposed to be here \vcenter \startlocationbox ->\vcenter \bgroup \dostartcontentplacexinline ...ables \par \setbox \placexbox =\startlocationbox \ignorespaces \syst_helpers_single_empty_one_nop \xmlflush \21>:xmlplc:placexcontent ...le=\xmlatt {#1}{alttitle}]}\startcontent \xmlflush {#1}\stopcontent l.9 } I can try to make a minimal example, but not without the afflicted module of some 800 lines. So perhaps the problem will be located by the experts at first sight. It is of course the \vcenter playing havoc, because replacing it by \vtop or \vbox makes the error disappear. Thanks for looking into it, because my work more or less depends on this code working in good order. dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem since previous versions
Wolfgang, I did define the various variants in order to parametrize vtop, vbox and vcenter through parameters top, bottom, center. Happily there proved to be a remedy: place everything inside an \hbox and the error goes away. Without problematic whitespace or other nasty side effects, it seems. But, although the panic is over now :-), I am still curious to know why it worked before and raises an error now. as for the definition of \placexlocation, it comes from: \def\setupplacex{\getparameters[placex]} \setupplacex[% default parameters ... location=center,% ... ]% and I checked that it had the value: center. But if you are interested, I can send you the module code. dr. Hans van der Meer > On 7 Jun 2020, at 12:20, Wolfgang Schuster > wrote: > > Hans van der Meer schrieb am 07.06.2020 um 12:07: >> A problem has arisen up since previous versions, where code without a >> problem now raises an error. >> This is the afflicted code: >> % Assign values to \locationbox. >> \doif{top}{\placexlocation}% >> {\def\startlocationbox{\vtop\bgroup\vss}}% >> \doif{center}{\placexlocation}% >> {\def\startlocationbox{\vcenter\bgroup}}% >> \doif{bottom}{\placexlocation}% >> {\def\startlocationbox{\vbox\bgroup}}% >> And it is used here: >> \setbox\placexbox=\startlocationbox >> \ignorespaces >> Previously this worked without a hitch, now the error is: >> tex error > tex error on line 9 in file ./familie-events.tex: ! A >> was supposed to be here >> >> \vcenter >> \startlocationbox ->\vcenter >> \bgroup >> \dostartcontentplacexinline ...ables \par \setbox \placexbox >> =\startlocationbox >> >> \ignorespaces >> \syst_helpers_single_empty_one_nop >>\xmlflush >> \21>:xmlplc:placexcontent ...le=\xmlatt {#1}{alttitle}]}\startcontent >> \xmlflush >> >> {#1}\stopcontent >> l.9 } >> I can try to make a minimal example, but not without the afflicted module of >> some 800 lines. So perhaps the problem will be located by the experts at >> first sight. It is of course the \vcenter playing havoc, because replacing >> it by \vtop or \vbox makes the error disappear. >> Thanks for looking into it, because my work more or less depends on this >> code working in good order. > > How so you define \placexlocation? > > Wolfgang > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Checking existence of a macro (control sequence) by Lua - problem after updating MkIV
Why can you not simply use one of the doifundefined macro's? Something for example: \doifundefined{ExitStatus}{\gdef\ExitStatus{0}} % default to ok as in UNIX dr. Hans van der Meer > On 18 Jun 2020, at 10:27, Lukas/ConTeXt wrote: > > Hello, > I'm using Hans' macro suggested some time before. > I've just updated Ctx MkIV and my sample code: > > > \starttext > \def\MyMacro{Ahoj} > > \def\MyMacWithPars#1#2{Something} > > \def\Undefined{} > \let\Undefined\undefined > > \def\DoNothing{} > \let\DoNothing\donothing > > \startluacode >if CONTEXTLMTXMODE == 0 then >local d = tokens.defined >local c = tokens.create > >function tokens.defined(s,b) >if b then >return d(s) >else >return c(s).cmd_name == "undefined_cmd" >end >end >end > >-- > >local defined = tokens.defined > >for _, v in ipairs{ "MyMacro", "MyMacWithPars", "Undefined", "DoNothing", > "NonExisting" } do > print(string.format("\letterpercent-12s", v), defined(v), defined(v, > true), defined(v, false)) >end > \stopluacode > > Aaa > \stoptext > > > gives: > " > MyMacro false false false > MyMacWithPars false false false > Undefined false false false > DoNothing false false false > NonExisting false false false > " > > IOW, I'm not able to determine whether a control sequence has not been > defined (or has \undefined value) or not. > > Am I doing a trivial mistake or has anything changed? > > Thank you for patience... > > Lukas___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] loading xml error
Please can someone explain the following error and why the one specific XML input fails? It turns out that a single node is not accepted by the core whereas others are ok. This is the error message in the log, first line from my debug statement: HVDM-VOC> load vocabulary from buffer "german" xml > core > load error in [buffer: german]: invalid xml file - parsed text Minimal code to explain what is done: % Loading from buffer. \def\loadvocabularyfrombuffer#1{% \writestatus{HVDM-VOC}{load vocabulary from buffer "#1"}% \XMLProcessBuffer{#1}% % simply does an \xmlprocessbuffer{}{}{} } The following buffer gives the error: \startbuffer[german] \stopbuffer \loadvocabularyfrombuffer{german} But the others below are ok and load as expected. \startbuffer[german] \stopbuffer and \startbuffer[german] \stopbuffer dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] explain please
How can the crash in the minimal example here be explained? And is there a solution to avoid this and make the crash going away "without having to jump through special hoops"? dr. Hans van der Meer currentdate.pdf Description: Adobe PDF document currentdate.tex Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] explain please
\\currentdate Neat solution, worked without a hitch. Now I have to remember this for future use ... dr. Hans van der Meer > On 24 Jun 2020, at 21:10, Hans Hagen wrote: > > On 6/24/2020 9:00 PM, Hans van der Meer wrote: >> How can the crash in the minimal example here be explained? And is there a >> solution to avoid this and make the crash going away "without having to jump >> through special hoops"? > because \currentdate is a macro thatv does some magic ... it's nor fully > expandable > > so, lua sees \currentdate == \c as first escaped character coming in and > that's invalid (\\currentdate would work) > > just try > > print("\come on") in pure lua > > Hans > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] overfull message
I would very much like to get rid of the overfull hbox messages in the log. They clutter the log and I have not much use for themSetting \hbadness to a large enough value should suppress them below the threshold. But this does not happen. At least not in the minimal example enclosed herby.Is there a remedy making these messages disappear from the log? dr. Hans van der Meer hbadness.tex Description: Binary data hbadness.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] lmtx install fails to run
After doing just now the standard: sh install.sh context will not run. Why, because in the past it worked without a hitch. Now there is no format cont-en. Did all sorts of the ususal things like remove the current cache, context --make en, etc. I guess the error is in the missing file. An overfsight somewhere? Below the last part of the context --make en run. Mark the lang-mis.mkxl is not found line. met vriendelijke groet dr. Hans van der Meer resolvers > lua > loading file '/Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/base/mkiv/node-bck.lua' succeeded close source> level 1, order 83, name 'node-bck.mkiv' open source > level 1, order 84, name 'pack-cut.mkiv' close source> level 1, order 84, name 'pack-cut.mkiv' runtime error : input file 'lang-mis.mkxl' is not found, quitting resolvers | formats | resolvers | formats | binary path : /Users/hansm/TeX/context-lmtx/tex/texmf-osx-64/bin resolvers | formats | format path : /Users/hansm/TeX/context-lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex resolvers | formats | luatex engine: luametatex resolvers | formats | lua startup file : /Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua resolvers | formats | context file : /Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl resolvers | formats | run time : 0.499 seconds resolvers | formats | return value : error resolvers | formats | system | total runtime: 0.500 seconds of 0.604 seconds ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] how to with \margindata
Using the following: \margindata{some macro expansions} I know that \margindata is typeset at a later moment than its place in the code suggests. The problem is that macro expansions inside the {}'s are expanded twice. This interferes badly with the things I want to happen. Tracing what happens, I conclude that the result of the first expansion is lost and is not carried into the actual placement of the marginnote. The question this is: how to solve this problem? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to with \margindata
I didn't miss that argument, of course, my actual code was: \margindata[outer][hoffset=\marginoffset] dr. Hans van der Meer > On 15 Jul 2020, at 22:10, Wolfgang Schuster > wrote: > > Hans van der Meer schrieb am 15.07.2020 um 21:48: >> Using the following: >> \margindata{some macro expansions} > > You're missing the first mandatory argument, e.g. \margindata[inright]{...}. > >> I know that \margindata is typeset at a later moment than its place in the >> code suggests. The problem is that macro expansions inside the {}'s are >> expanded twice. This interferes badly with the things I want to happen. > > No, the content is stored in a box and placed later. > > \definecounter[test] > > \starttext > > \dorecurse{10} > {\inleft{\incrementedcounter[test]}Line \recurselevel\par} > > \stoptext > >> Tracing what happens, I conclude that the result of the first expansion is >> lost and is not carried into the actual placement of the marginnote. >> The question this is: how to solve this problem? > > Provide a working minimal example. > > Wolfgang > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] please explain
This MWE is an example of strange font behaviour according to the log and I do not understand what is causing it.ConTeXt complains "check count_components with mkiv" when the word 'suffi' is present (see log message below).Now comes the most strange: remove 'suffi' or shorten to 'suff' and the message goes away.I have put the full set of files inside the zip. dr. Hans van der Meer \setupbodyfont[termes]\starttext%=ConTeXt versie \contextversion \crlf%=this here: suffi (but suff is ok!)%=\starttypingfonts/mkiv/type-imp-texgyre.mkiv'close source > level 3, order 4, name '/Users/hansm/TeX/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'fonts > !fonts > ! check count_components with mkiv !fonts > !\stoptyping\stoptext<> ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] please explain
> It is because ffi is a multi-part ligature. Indeed, of course. I am getting old, I fear. It kept me awake in bed yesterday until I realised (far too late) it must be the ffi ligature. dr. Hans van der Meer > On 7 Aug 2020, at 09:29, Taco Hoekwater wrote: > > > >> On 6 Aug 2020, at 21:30, Hans van der Meer wrote: >> >> This MWE is an example of strange font behaviour according to the log and I >> do not understand what is causing it. >> ConTeXt complains "check count_components with mkiv" when the word 'suffi' >> is present (see log message below). >> >> Now comes the most strange: remove 'suffi' or shorten to 'suff' and the >> message goes away. >> I have put the full set of files inside the zip. > > Looks like it is a warning from Hans, mostly for himself. It is because ffi > is a multi-part ligature. > As long as the output looks ok, I do not think you have to pay attention. > > Best wishes, > Taco > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] catch % in gsub("%", "\\letterpercent")
In Lua patterns % is a socalled magic character like ^$ etc. These are esacped with a %. Thus %% is what you need in the first string. dr. Hans van der Meer > On 27 Aug 2020, at 17:11, Pablo Rodriguez wrote: > > Dear list, > > I have and \xmlraw command that gives some text with percent signs. > ConTeXt parses them as comments (so no output). > > Using Lua gsub(), I need to replace something like: > > string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") > > How do I need to invoke % to get the character found? > > Many thanks for your help, > > Pablo > -- > http://www.ousia.tk > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Best way to store text for later use
A possibility is saving the data as text in a Lua-table. If you are not afraid to use some Lua, I can send my code for saving files and data for repeated use. dr. Hans van der Meer > On 18 Sep 2020, at 15:36, Denis Maier wrote: > > Hi, > > For typesetting XML I'm wondering how to best store text for later use: > > I've tried using buffers, but this here doesn't work: > > == > \startxmlsetups xml:article-meta > \setupdocument [ > pub-year=\xmlfilter{#1}{/pub-date/year/command(xml:article-meta:pubdate:year)}, > volume=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)}, > doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)}, > elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)}, > title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title-group:article-title)}, > author={\AuthorList}, > ] > \startbuffer[abstract] > \xmlfilter{#1}{/abstract/command(xml:article-meta:abstract)} > \stopbuffer >\xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:article-meta:abstract > \xmlflush{#1} > \stopxmlsetups > === > > This here works: > > == > \startxmlsetups xml:article-meta > \setupdocument [ > pub-year=\xmlfilter{#1}{/pub-date/year/command(xml:article-meta:pubdate:year)}, > volume=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)}, > doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)}, > elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)}, > title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title-group:article-title)}, > author={\AuthorList}, > abstract=\xmlfilter{#1}{/abstract/command(xml:article-meta:abstract)}, > ] >\xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:article-meta:abstract > \xmlflush{#1} > \stopxmlsetups > === > > But has using a variable for the abstract any drawbacks? (The abstract might > contain multiple paragraphs.) > > Best, > Denis > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unwanted whitespace at beginning of document
Of old I have found the wolf fence tactics useful: Put for example an X at the beginning of a suspected section and somewhat further a Y. OIf they bracket the culprit the offending space will be between them. Otherwise narrow the fence. dr. Hans van der Meer > On 29 Sep 2020, at 14:26, Denis Maier wrote: > > Hi, > > I have ended up with unwanted whitespace at the beginning of my document. The > environment definition is already quite complex, so I cannot easily tell > where the whitespace is coming from. Any advice how I could track that down? > Are there some tricks for this? > > Best, > Denis > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest lmtx, \startitemeze and Multipage TABLEs no longer works
Shouldn't it be \startitemize ? Or is there another problem? dr. Hans van der Meer > On 16 Nov 2020, at 14:29, Bertrand Masson wrote: > > Hello > With the latest version of lmtx (ConTeXt ver: 2020.11.04 09:40 LMTX fmt: > 2020.11.14) \ startitemeze [2] no longer works. Bullets (-) no longer appear! > > Multipage TABLEs with \bTABLE[split=repeat,option=stretch] no longer works. > > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] autopdf on MacOS?
When running the command: context --autopdf --run myfile.tex I had hoped the pdfviewer Preview on my MacOS system (version Catalina) would open the pdf for viewing. Allthough a new pdf is created, this is not opened. If the pdf is open in Preview already, it is not updated unless switching to the Preview application. It something wrong here? Is it not functional in MacOS? Am I missing some clue? met vriendelijke groet dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] autopdf on MacOS?
Thanks. At least worked twice 😊 met vriendelijke groet dr. Hans van der Meer > On 15 Apr 2021, at 11:45, Henning Hraban Ramm wrote: > > > >> Am 15.04.2021 um 10:26 schrieb Hans van der Meer : >> >> When running the command: context --autopdf --run myfile.tex I had hoped the >> pdfviewer Preview on my MacOS system (version Catalina) would open the pdf >> for viewing. > > It works with --autopdf=auto > >> Allthough a new pdf is created, this is not opened. If the pdf is open in >> Preview already, it is not updated unless switching to the Preview >> application. >> >> It something wrong here? Is it not functional in MacOS? Am I missing some >> clue? > > Apple’s Preview updates only on activation, and not reliably (for me, it > often crashes). > > That it doesn’t update in the background is more a feature than a bug, > otherwise it would complain about broken/unavailable files during the TeX > runs. > > Hraban > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] nbsp in XML (S01E01)
> Why tilde is displayed? Wouldn't the simple answer not be: because XML is not TeX? dr. Hans van der Meer > On 21 Apr 2021, at 20:17, Jano Kula wrote: > > Dear list, > > first episode of series on nbsp of XML in lmtx. > Unfortunately, not that catchy as Netflix. > > Used XML input has two types of non-breakable space: > unicode character > html entitity (in fact an ugly output of HTML editor) > HTML is preprocessed with ctx preprocessor (great feature!) and substituted > for unicode char nbsp or tilde. > > MWE shows unichar spaces are non-breakable (see end of the first lines), > however they are not stretchable (see second line of the paragraphs). > > Does unicode nbsp have fixed with in ctx? > > When tilde is the replacement in preprocessor (uncomment first replacement in > preprocessor), xmlfush will display tilde (which is, as character, > non-breakable and unstretchable, no surprise). > > Why tilde is displayed? > > Replacing or adding nbsp (tilde) with finalizers have different results, see > next episode after this one is understood. > > Thank you, > Jano > > MWE (rather use attached file not to loose invisible characters): > > \startbuffer[doc] > > > Temperature 20 °C 20 °C 20 °C 20 °C average. > Altitude 6000 m 6000 m 6000 m > 6000 m average. > > \stopbuffer > > \startluacode > function lxml.preprocessor(data) > -- data = string.gsub(data, " ", "~") > -- replacement nbsp invisible in luacode > data = string.gsub(data, " ", " ") > return data > end > \stopluacode > > > \startxmlsetups xml:name > \xmlsetsetup{\xmldocument}{*}{-} > \xmlsetsetup{\xmldocument}{document|p}{xml:name:*} > \stopxmlsetups > \xmlregistersetup{xml:name} > > \startxmlsetups xml:name:document > \xmlflush{#1}\par > \stopxmlsetups > > \startxmlsetups xml:name:p > \parfillskip0pt\xmlflush{#1}\par > \stopxmlsetups > > \startTEXpage[offset=5mm,width=60mm] > \xmlprocessbuffer{xml:name}{doc}{} > \stopTEXpage > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to write readable source files?
>> Is there a best practice for ConTeXt source files, at all? Readable code is not just about formatting. Adding clear and complete comments that document the code can be considered even more important. dr. Hans van der Meer > On 24 Apr 2021, at 13:55, Henning Hraban Ramm wrote: > > >> Am 24.04.2021 um 11:45 schrieb Jan U. Hasecke : >> >> Do you know of any prettifying tool? > > I don’t know one. > >> Is there a best practice for ConTeXt source files, at all? > > I guess many of us adhere to Hans’ style, as shown in the sources. > > i.e. e.g. > \setupsomething > [name] > [key=value, > otherkey=value] > > while I prefer: > > \setupsomething[name][ > key=value, > otherkey=value, > ] > > That looks clearer to me and works a bit better with automatic indenting in > editors. > > But source code formatting is a matter of taste in most cases. > > Hraban > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] font message?
I get the following message in the log (latest beta): fonts > ! fonts > ! check count_components with mkiv ! fonts > ! These are my font settings: \definefontfeature [default] [default] [itlc=yes] \setupbodyfont[schola,10pt] \setupitaliccorrection [text] What does it mean? Is there something I should do? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] setupindentations
This macro \setupindentations is mentioned in my ConText the manual from november 12, 2001. It seems to have disappeared. Is that so? Then why? What replacement? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] no leavevmode
Why is there not implemented in \subsection a \leavevmode at the end of it? Here a minimal example showing that starting with the first word in an \hbox encounters vertical mode. Thus requiring a \leavevmode to put it on line with the following text. Whereas not starting with an \hbox does an implicite switch to horizontal mode. I can imagine that this behaviour could be confusing for users not well versed in the different behaviour of the horizontal and vertical modes. Therefore my question: Wouldn't it be wise to implement that \leavevmode? \startsubsection[title=TEST] \hbox{abc} def\crlf ghi jkl xyz \stopsubsection dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] chapter number sought
With \pagenumber I can call up the current pagenumber and typeset it. But \chapternumber is not defined. How can I typeset the current chapternumber or even the current chapternumber.sectionnumber.subsectionnumber, for example? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] chapter number sought
Thanks. This helps. dr. Hans van der Meer > On 30 May 2021, at 13:40, Adam Reviczky wrote: > > Hi Hans, > > Does this help: > https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names > > <https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names> > ? > > \starttext > \startchapter[title={First chapter}] > \structurenumber\ - \structuretitle > \stopchapter > \stoptext > > Although getmarking is probably what you're really after: > \getmarking[chapternumber] and \getmarking[chapter]. > > \starttext > \startchapter[title={First chapter}] > \getmarking[chapternumber][current]\ - \getmarking[chapter][current] > \stopchapter > \stoptext > > Adam > > On Sun, May 30, 2021 at 11:12 AM Hans van der Meer <mailto:havdm...@ziggo.nl>> wrote: > With \pagenumber I can call up the current pagenumber and typeset it. > But \chapternumber is not defined. > How can I typeset the current chapternumber or even the current > chapternumber.sectionnumber.subsectionnumber, for example? > > dr. Hans van der Meer > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / > http://www.ntg.nl/mailman/listinfo/ntg-context > <http://www.ntg.nl/mailman/listinfo/ntg-context> > webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / > http://context.aanhet.net <http://context.aanhet.net/> > archive : https://bitbucket.org/phg/context-mirror/commits/ > <https://bitbucket.org/phg/context-mirror/commits/> > wiki : http://contextgarden.net <http://contextgarden.net/> > ___ > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] yscale not working
Why is there no effect of the yscale parameter in \externalfigure when the width-parameter is given? In the MWE it is the intention to stretch the height of the figure by a factor of two. But nothing happens. Leaving out the width does stretch the height, but then it becomes too wide.\starttextTest \tex{externalfigure} scaling - \ConTeXt\ \contextversion\blank\type{\externalfigure[test][width=0.50\textwidth]}\crlf\externalfigure[test][width=0.50\textwidth]\blank\type{\externalfigure[test][width=0.50\textwidth,yscale=2000]}\crlf\externalfigure[test][width=0.50\textwidth,yscale=2000]\stoptext scaling.pdf Description: Adobe PDF document dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] setup parameter problem
The code below seems ok in \startsection[title=] but not when I program the parameter collection with \def\setupparameters{\getparameters[prefix]} In that case even [title={enclosed value}] crashes with error message: Use of \doMacro doesn't match its definition. Obviously I am missing something here. What? \def\Macro{\dosingleargument\doMacro} \def\doMacro[#1]#2{#1X#2} The code below shows that it should be possible. \startsection[title=\Macro{arg} no braces needed]\stopsection \startsection[title={\Macro[arg1]{arg2} enclosed in braces}]\stopsection \stoptext dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] frameoffset in textbackground?
In the following MWE for a textbackground the parameter backgroundoffset has the expected effect. But for positive values only. A backgroundoffset=-10pt has no visible effect.But the real problem is the parameter frameoffset. No effect at all, whatever frameoffset= is set to. dr. Hans van der Meer textbackgroundoffset.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] keep text strictly inside box
As can be seen in this screenshot, the text overshoots on the right side the boundary of the fairly narrow \framedtext. My intent is to not hyphenate the names, even if that means a ragged edge on the right side. But at the same time the text must absolutely stay within the confines of the framedtext. I played with \raggedright, \tolerance, \looseness, \emergencystretch but no combination of them seems sufficient fto force all gtext inside. Is there another solution to force the text inside the box or do I have to insert linebreaks manually (a nuisance to be avoided, of course.) dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Bug in Luatex file handling?
This I cannot explain. Opening a file directly from its full name in a string succeeds. But doing the same from a parameter transferred from ConteXt to Lua succeeds if the file is in one directory deeper but fails if the file is two directories deeper. I suspect there is something not ok in LuaTeX. The lines with and >>>> directly come from print statements inserted in the Lua code. dr. Hans van der Meer Open file in directory 1 and 2 levels deep - direct call succeeds ..io.open("events/hga-0372-345-62.xml","r")=>file (0x7fff97415f88) ..io.open("events/transcripten/hga-0372-345-62.xml","r")=>file (0x7fff97416020) Idem but now from parameter filename transferred from ConTeXt into Lua: Open file one level deeper succeeds (printed filename comes from the call): >>>>>>>>>>io.open(filename,"r") filename=events/hga-0372-1764-63.xml=>file >>>>>>>>>>(0x7fff974160b8) Open file two levels deeper fails: >>>>>>>>>>io.open(filename,"r") >>>>>>>>>>filename=events/transcripten/hga-0372-1764-63.xml=>nil Caller: \def\FileExist#1{\cldcontext{hvdm.existfile([===[#1]===])}} Lua code: hvdm.existfile = function (filename) -- The test code was inserted here -- local file = io.open(filename, "r") if file then file:close() end return file ~= nil and "true" or "false" end ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] whiteline before xmldisplayverbatim
I cannot get rid of the whiteline that \xmldisplayverbatim generates before its output. Changing to other \xmldisplay macro's did not change this. How to get rid of the whitespace? MWE: \startxmlsetups hvdm:docs:texcode abc\crlf \xmlstripnolines{#1}{.}% <- with or without: no change \xmldisplayverbatim{#1} \stopxmlsetups result, see the empty lines between abc and the \new.. dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] whiteline before xmldisplayverbatim
Found the problem: should not be preceded by \crlf but by \par. dr. Hans van der Meer > On 5 Jul 2021, at 19:21, Hans van der Meer wrote: > > I cannot get rid of the whiteline that \xmldisplayverbatim generates before > its output. Changing to other \xmldisplay macro's did not change this. How to > get rid of the whitespace? > MWE: > \startxmlsetups hvdm:docs:texcode > abc\crlf > \xmlstripnolines{#1}{.}% <- with or without: no change > \xmldisplayverbatim{#1} > \stopxmlsetups > > result, see the empty lines between abc and the \new.. > > > > dr. Hans van der Meer > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] xmldisplayverbatim
I get the impression that \xmldisplayverbatim changes ' (apostroph) into ' and " (quotation mark) into " etc. How can I get rid of this translation? I would prefer to have typeset ' and " instead of the entity representations. dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] hang error
Why this: normal plain TeX macro \hang giving an Undefined control sequence error in ConTeXt? This MWE shows it: \starttext \hang \stoptext I would not expect basic plain macro's to crash. If it is intended behaviour I do not think that is the road to go, because this invalidates older documents. But maybe it is just an error in the distribution. dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] languages
Here is something I think that should be added to the documentation. In the ConTeXt garden (page Command/mainlanguage) the description is: mainlanguage Set the language of auto-generated language elements, like the title of the table of contents or the appendix. On the Command/language page: Change the hyphenation rules, quotation marks, all that sort of thing, to that of a different language. (The default language is English.) Testing showed that \mainlanguage sets both \currentlanguage and \currentmainlanguage to the same value, while \language sets \currentlanguage only. My suggestion is to add info to this behaviour to the mainlanguage page, reflecting the fact that \mainlanguage does set both \currentlanguage and \currentmainlanguage.Which is not apparent from the current documentation. Another solution would be to separate \language and \mainlanguage completely. An option I would prefer for clarity, because now the order of calling \language and \mainlanguage makes a difference. dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] date formatting
From Wikipedia: In English-language outside North America (mostly in Anglophone Europe and some countries in Australasia), full dates are written as 7 December 1941 (or 7th December 1941) and spoken as "the seventh of December, nineteen forty-one" (exceedingly common usage of "the" and "of"), with the occasional [my emphasis] usage of December 7, 1941 ("December the seventh, nineteen forty-one"). In common with most continental European usage, however, all-numeric dates are invariably ordered dd/mm/. From this I infer that \language[en] or \language[en-gb] should format dates normally in day-month-year order, reserving mont-day-year for \language[us] i.e. language[en-us]. But in ConTeXt both \language[en] and \language[en-gb] produce the us ordering for \currentdate. I would be pleased if ConTeXt could be changed to the above mentioned normal behaviour for english. That is [en] and [en-gb] produce the day-month-year order and that [us] and [en-us] month-day-year. dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] filepath on format generation
I migrated my texlive2007 tree to a new disk and now I encounter permission difficulties on context format generation. Calling the bashrc alias: alias formats='texmfstart texexec --make en; texmfstart texexec --make --alone metafun After the normal (error) messages about ls-R updating I get a permission error: TeXExec | using search method 'kpsewhich' TeXExec | updating file database mktexlsr: Updating /Users/hans/Tex/texmf-private/ls-R... mktexlsr: /usr/local/texlive/2007/texmf: directory not writable. Skipping... mktexlsr: Done. TeXExec | using tex engine pdftex TeXExec | using tex format path ./pdftex TeXExec | unable to make format due to lack of permissions and on calling the following alias: alias texversion='texmfstart texexec.pl --version; rm mpgraph.mp texvers-mpgraph.mp' I get: fmtutil: format directory `/web2c' does not exist. kpathsea: Running mktexfmt context.fmt fmtutil: format directory `/web2c' does not exist. In my .bashrc I have: # TeX variables CONTEXT_RUBY=/usr/local/texlive/texmf-local/scripts/context/ruby TEX_HOME=/usr/local/texlive/2007 TEXMFCACHE=/Users/hans/Temp OSFONTDIR=/Library/Fonts TEXMFCNF=/usr/local/texlive/texmf-local/web2c TEXMF="{/Users/hans/Tex/texmf-private,/usr/local/texlive/texmf- context,/usr/local/texlive/texmf-local,/usr/local/texlive/2007/texmf,/ usr/local/texlive/2007/texmf,/usr/local/texlive/2007/texmf-config,/usr/ local/texlive/2007/texmf-dist,/usr/local/texlive/2007/texmf-doc,/usr/ local/texlive/2007/texmf-var}" TEXFORMATS=/usr/local/texlive/2007/texmf-config/web2c nor did work: TEXFORMATS=/Users/hans/.texlive2007/texmf-var/web2c/pdftex The idea is to have the formats locally under .texlive2007 in my home directory. Can someone enlighten me where the base of respectively ./pdftex and / web2c is supposed to be? I thought I did set my environment variables just as I did previously, when it worked. Why suddenly these apparently incomplete paths? I MUST have some pathvariable WRONG, but which one is it? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] no ctx file found
After starting afresh after an os update and much trouble in getting all those texmf.cnf parameters in order followed by context specialities, I finally managed to get the cont-en.fmt in /usr/local/ texlive/2007/texmf-config/web2c/pdftex/cont-en.fmt. But now (running in TeXShop) typesetting will not occur: TeXExec | processing document 'test.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file test.top TeXExec | using randomseed 1100 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeXk, Version 3.141592-1.40.5 (Web2C 7.5.6) \write18 enabled. %&-line parsing enabled. (/usr/local/texlive/2007/texmf/web2c/natural.tcx) (Fatal format file error; I'm stymied) TeXExec | runtime: 0.601367 In texmf.cnf I have TEXFORMATS = .;$TEXMF/web2c/{$engine,}// (worked in the past) What's wrong here? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] no ctx file found
Thanks, Hans. Apparently that is the trick. After using find to locate all cont*.fmt's and removing them, luatools generated one in its cache directory that proved to be sufficient. Must indeed be a path variable problem (TeX now has so many of them, I never seem to get them sorted out; not to mention the interplay between those in .cnf files and those in my .bashrc that drives me mad). Hans van der Meer On 17 dec 2007, at 22:24, Hans Hagen wrote: > Hans van der Meer wrote: >> After starting afresh after an os update and much trouble in getting >> all those texmf.cnf parameters in order followed by context >> specialities, I finally managed to get the cont-en.fmt in /usr/local/ >> texlive/2007/texmf-config/web2c/pdftex/cont-en.fmt. >> >> But now (running in TeXShop) typesetting will not occur: >> >> TeXExec | processing document 'test.tex' >> TeXExec | no ctx file found >> TeXExec | tex processing method: context >> TeXExec | TeX run 1 >> TeXExec | writing option file test.top >> TeXExec | using randomseed 1100 >> TeXExec | tex engine: pdftex >> TeXExec | tex format: cont-en >> This is pdfTeXk, Version 3.141592-1.40.5 (Web2C 7.5.6) >> \write18 enabled. >> %&-line parsing enabled. >> (/usr/local/texlive/2007/texmf/web2c/natural.tcx) >> (Fatal format file error; I'm stymied) >> TeXExec | runtime: 0.601367 >> >> In texmf.cnf I have TEXFORMATS = .;$TEXMF/web2c/{$engine,}// (worked >> in the past) >> What's wrong here? > > remove *all* cont-en.fmt files on your system, maybe there is a lookup > match lower in the tree; keep in mind that when generating formats, > the > generator has to move the file someplace, while when using the format > the variable kicks in, so there can be a mismatch > > - > 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 > - > ___ > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] luatex not compiling
There appears to be a problem with the compilation of luatex on MacOSX 10.5.x, but I might have found (at least one of) the cause. On my system (MacOSX10.5.1) complation halted with: luatexextra.c:408 error: storage size of 'sigstk' isn't known. Further exploring showed the cause of this: SIGSTKSZ is not defined. As it turns out SIGSTKSZ is defined in signal.h and in luatexextra.c read with #include , assuming signal.h resides in /usr/include/signal.h. That however, is not the case on this version of MacOSX: it sits in / usr/include/sys/signal.h. Probably changing the code into: #include #ifndef _SIGNAL_H_ #include #endif might help, but I have not tested this (some of the pie should be left for Taco c.s. ;-) Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex not compiling
I looked somewhat further and found out the curious fact that on MacOSX 10.5.x both /usr/include/signal.h and /usr/include/sys/signal.h exist! The first one does not include the second one, neither does one of the includes: #ifndef _USER_SIGNAL_H #define _USER_SIGNAL_H #include #include <_types.h> As for changing the discussion to the luatex developer list as suggested by some: my capacity for subscribing list is limited -- capacity in the sense of what I can manage. Putting my observations on the compiler problem with luatex on this list was purely to help others. I hope one will permit me to keep doing so. Hans van der Meer On 21 dec 2007, at 11:50, Martin Schröder wrote: > 2007/12/20, Hans van der Meer <[EMAIL PROTECTED]>: >> Probably changing the code into: >> #include >> #ifndef _SIGNAL_H_ >> #include >> #endif >> might help, but I have not tested this (some of the pie should be >> left >> for Taco c.s. ;-) > > Just curious: What does the man page of signal.h say how to include > it on OSX? On linux it's ... > > Best > Martin > ___ > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Luatex installation
I have read the instructions for installing luatex on MacOSX so clearly spelt out by Thomas Schmitz, but they leave a question open. Thomas advises to set TEXMFCACHE=/tmp with the argument that it then is cleared each time the computer is restarted. What is unclear to me if this means that on each restart some explicit reinitialzation has to be done or are the data in TEXMFCACHE suitable candidates for thrashing at all times? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Permission Policy
I ran into trouble with "luatools --generate" which does not seem to work with "sudo luatools --generate" The seem applies to texmfstart and friends. Why this manco? I want to keep my system as safe as possible especially regarding applications and stuff that takes a lot of time installing (like the texlive system). Therefore I have this in an administrator account (root:wheel). Cannot ConTeXt cope with such a scheme? All it has to do is honor sudo, apparently. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context Minimal Linux installation on MAC Leopard
As far as I could ascertain the compiling problems on MAcOSX 10.5.x (Leopard) go away when in the CFLAGS is included an architecture parameter, e.g. -arch ppc -arch i386 or more specific mcpu=G5 etc. It seems otherwise the correct ANSI_C header files are not found by the gcc compiler. Hans van der Meer On 9 jan 2008, at 11:54, Mojca Miklavec wrote: > On Jan 9, 2008 11:47 AM, Mojca Miklavec wrote: >> >> On Jan 9, 2008 11:24 AM, Giulio Bertellini wrote: >>> I thought I could install the Context Minimal Linux installation >>> also ona >>> Mac with Leopard. I did not succeed. >>> >>> Has anybody tried it. What is the suggested minimal distribution >>> for Context >>> to install on a Mac with Leopard? >>> >>> All suggestions are welcome. >> >> Hmmm that's not a source package, otherwise it would work. >> But which "ConTeXt Minimal Linux Intallation" exactly are you talking >> about? There is one at pragma website >>http://www.pragma-ade.com/download-1.htm >> where you need to download macosxtex.zip and justtex.zip, and >> there's one at >>http://minimals.contextgarden.net/ >> with some not-yet-fully-stable installer which uses rsync to fetch >> and >> update the files. > > I forgot to answer your main question: on pragma, macosxtex includes > powerpc binaries which should work on any mac. On the garden the > binaries are separate for powerpc and intel, perhaps slightly more > recent and slightly less tested. > > I've heard many leopard users complaining, but only about prolems with > compilation. Once compiled on Tiger, the binaries seem to work OK. > > Mojca > ___ > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] {{ double braces }}
On Wed, 6 Feb 2008, Steffen Wolfrum wrote: > Actually I use this to highlight footnotes in my texteditor: colorize > entire footnotes for for easier reading. > > I am quite happy to have (on MacOSX) a text-editor that gives such > "syntax coloring" flexibility: it is Satoshi Matsumoto's Jedit X. And > here RegularExpressions are used for that purpose. > > If someone knows an editor that does "syntax coloring" with lua or > gema, I'd be very interested! BBEdit on MacOSX also recognizes lua files, at least in version 8.7.2 Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] {{ double braces }}
On 6 feb 2008, at 21:01, Steffen Wolfrum wrote: > > Am 06.02.2008 um 20:20 schrieb Hans van der Meer: > >> On Wed, 6 Feb 2008, Steffen Wolfrum wrote: >> >>> Actually I use this to highlight footnotes in my texteditor: >>> colorize >>> entire footnotes for for easier reading. >>> >>> I am quite happy to have (on MacOSX) a text-editor that gives such >>> "syntax coloring" flexibility: it is Satoshi Matsumoto's Jedit X. >>> And >>> here RegularExpressions are used for that purpose. >>> >>> If someone knows an editor that does "syntax coloring" with lua or >>> gema, I'd be very interested! >> >> BBEdit on MacOSX also recognizes lua files, at least in version 8.7.2 > > Sure, but how does that affect syntax coloring?? It recognizes keywords, string constants and comments, each can have a different (user definable) color. The comment start (usually --) and optionally comment end can be chosen via a preference panel. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Adobe Reader, PNG transparency and colors
On 20 feb 2008, at 10:11, Martin Schröder wrote: > 2008/2/20, Michal Kvasnička <[EMAIL PROTECTED]>: >> pdfTeX is 3.141592-1.40.3 (Web2C 7.5.6) > > Update your pdftex. It's a bug we fixed in 1.40.6. > > Best > Martin I compiled 1.40.6 on MacOSX-10.5.2 and found that the pdf it generated was defective. Neither Adobe Reader nor TeXShop could read it. Reverting to a fresh compile of 1.40.5 remedied that. Could it be that the changes in 1.40.6 badly effect MacOSX users only? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Adobe Reader, PNG transparency and colors
Martin, Happy message. The error occurring in pdftex 1.40.6 apparently has vanished in 1.40.7. Now pdf's are produced here on a simple testrun. Hans van der Meer On 20 feb 2008, at 13:03, Martin Schröder wrote: > 2008/2/20, Hans van der Meer <[EMAIL PROTECTED]>: >> I compiled 1.40.6 on MacOSX-10.5.2 and found that the pdf it >> generated >> was defective. Neither Adobe Reader nor TeXShop could read it. > > Try 1.40.7. :-) > >> Reverting to a fresh compile of 1.40.5 remedied that. Could it be >> that >> the changes in 1.40.6 badly effect MacOSX users only? > > Maybe. 1.40.7 works for me on Linux. :-) > > Best > Martin ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] getbuffer now fails
I had this code working (it was in an article I submitted for NTG-MAPS a while ago, july 2007). Now this same code gives an error on getbuffer. What happened to getbuffer? Is it possible a \fi has disappeared in the getbuffer code between now and last july? Is there a quick patch because now I get stuck on work that has to be finished. The error message from TeX: ! Incomplete \ifx; all text was ignored after line 6. \fi \relax \dodoreadfile ...d \relax \fi \dodoreadfileindeed \relax \the \everyafterrea... \mkdobuffer #1->\beginrestorecatcodes #1 \endrestorecatcodes \dodobuffer ...dcsname \else #2\fi }\mkdobuffer #1 \popmacro \currentbuffer \dodogetbuffer ...}\dobuffer {16}{#2}\mkgetbuffer \getvalue {\??bu #1\c!after } ... l.111 \question[number=1][buffer]{\getbuffer} The relevant part of the code, not working is the call to [EMAIL PROTECTED]: ... \doifelse{#2}{\v!buffer}% {\def\filename{buffer}\def\thefile{#3}\let\@@[EMAIL PROTECTED] {.}% \@@exminput\thefile \endgroup} % reading the file better outside the doif [EMAIL PROTECTED] [EMAIL PROTECTED] Help is appreciated. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] proper filereading
What is the proper way in ConTeXt to include a file? Just "\input filename" ignores the \enableregime[] setting and thus mistreats accented characters. \usemodule[] shows the same behaviour. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] typesetting documentation
I kept this answer to my question in 2002 on typesetting the documentation: > these files are now in theregular distribution, so > > texexec --modu --pdf somedoc.tex > > should work > > Hans [Hagen] Trying it today (through texmfstart or directly texexec) I get: No pages of output. Searching for "typeset documentation" in the ConTeXtWiki gives no clues. The texexec documentation there lists --module as the option to use: so I am baffled. How to typeset ConTeXt documentation today? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typesetting documentation
I looked up what Aditya said can be found in the wiki and did: texmfstart texexec --module kpse:mult-ini.tex I get the following output on my console: 108 ~/Temp/tex: texmfstart texexec --module kpse:mult-ini.tex /usr/local/texlive/texmf-context/scripts/context/ruby/ctxtools.rb: 641:in `initialize': Permission denied - /usr/local/texlive/texmf- context/tex/context/base/mult-ini.ted (Errno::EACCES) from /usr/local/texlive/texmf-context/scripts/context/ruby/ ctxtools.rb:641:in `open' from /usr/local/texlive/texmf-context/scripts/context/ruby/ ctxtools.rb:641:in `documentation' from /usr/local/texlive/texmf-context/scripts/context/ruby/ ctxtools.rb:629:in `each' from /usr/local/texlive/texmf-context/scripts/context/ruby/ ctxtools.rb:629:in `documentation' from /usr/local/texlive/texmf-context/scripts/context/ruby/ ctxtools.rb:2778:in `send' from /usr/local/texlive/texmf-context/scripts/context/ruby/ ctxtools.rb:2778 The permissions of the directory involved can be seen from: ls -l /usr/local/texlive/texmf-context/tex/context ==> drwxr-xr-x 767 sysop staff 26078 11 mrt 18:31 base That is, texexec tries to write into a directory for which has no write access. I operate normally as myself and only for the installation of software assume the role of system operator (to hinder rogue programs and protect myself from stupid deletes, for example). Do I understand correctly from this, that unless one has write access to the tex installation directories one cannot typeset the module source? If so, I urge Hans Hagen to change this and let texexec and friends write into tmp directories or in the users current directory. But I might be wrong and having something other amiss. Hans van der Meer On 24 mrt 2008, at 15:42, Aditya Mahajan wrote: On Mon, 24 Mar 2008, Hans van der Meer wrote: I kept this answer to my question in 2002 on typesetting the documentation: these files are now in theregular distribution, so texexec --modu --pdf somedoc.tex should work Hans [Hagen] Trying it today (through texmfstart or directly texexec) I get: No pages of output. Searching for "typeset documentation" in the ConTeXtWiki gives no clues. The texexec documentation there lists --module as the option to use: so I am baffled. How to typeset ConTeXt documentation today? Last I cecked, this method worked. This is also what the wiki says http://wiki.contextgarden.net/Official_ConTeXt_Documentation#ConTeXt_Sources Personally, these days I just download the files from Luigi's website http://www.logosrl.it/context/modules/current/ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] old cont-tmf.zip
I am looking for a few cont-tmf.zip versions dating before july 7, 2007. I tried to find the archive on the contextgarden and the pragma site but was unable to spot their location. Can someone give me the address? Thanks in advance. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] description fails on \if
There is the following problem on code that did work around july 2007, but no longer under the current context version (2008-03-11). Define a description, I did: \definedescription[answerblock][% \c!margin=\v!no,\c!location=\v!left,% \c!headstyle=\@@exmintrostyle,\c!style=\@@exmstyle,% \c!before=,\c!inbetween=,\c!after=,% \c!hang=\@@exmhang,\c!width=\questionblockwidth,% \c!text=\placeanswerstart] Typeset with this description inside the following macro: \def\shortanswer#1\par{% \par % be sure to end paragraph here \answerblock{}% % {} needed here in description call \ifanswers #1\else\dotfill\strut\fi % <<<<<< crashing on this if \par% final \par of description ... \par } The above code crashes with: ! Incomplete \ifx; all text was ignored after ... After some detective work in which Wolfgang Schuster had a large share and has found the most elegant workaround, the addition of a \relax just after the description call prevents the error: \def\shortanswer#1\par{% \par % be sure to end paragraph here \answerblock{}% % {} needed here in description call \relax % <<<<<<<<<<<<<<<<< \relax prevents crash on if \ifanswers #1\else\dotfill\strut\fi \par% final \par of description ... \par } The way \relax stops the error reminds me of the \relax that one places after a number in order to separate that from the code following. I did compare core-des.tex, both the last version and the archived from 2007-04-17. But I must admit, I did not succeed finding a clue among the differences about what could have happened. The code is a bit too intricate to just jump in and pinpoint the culprit -- at least for me. Allthough Wolfgang's workaround saves the day, I feel this problem deserves solving inside ConTeXt, not outside it. Someday somewhere another person will stumble on the same problem -- a situation that can and should be avoided, in my view. Therefore I explain the problem here as fully as possible hoping someone knowledgeable with descriptions <> will find the best remedy. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] description fails on \if
Wolfgang, From your observation I am inclined to guess that the \ifx falls prey to the collection of arguments. The \relax can be replaced by an extra pair {} behind the description: \answerblock{}{}% also typesets without the if-error. I more or less conclude that the lookahead from \dodoublegroupempty does not stop on the \if. If I remember correctly, that behaviour is to be expected from tex and the prospects for solving it generically within the format bleak. If Hans Hagen is listening, can he comment on this? Hans van der Meer On 26 mrt 2008, at 08:32, Wolfgang Schuster wrote: >> >> Allthough Wolfgang's workaround saves the day, I feel this problem >> deserves solving inside ConTeXt, not outside it. Someday somewhere >> another person will stumble on the same problem -- a situation that >> can and should be avoided, in my view. >> Therefore I explain the problem here as fully as possible hoping >> someone knowledgeable with descriptions <> to Taco or Hans>> will find the best remedy. > > I would say the message comes from \dodoublegroupempty in > \@@description. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug in modes
The following works mirabile dictu: \enablemode[b,c] \startallmodes[b,c] \type{\startallmodes[b,c]} done \stopallmodes \startnotallmodes[c] \type{\startallmodes[b,c]} not done \stopallmodes % <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< But the following gives an error: \enablemode[b,c] \startallmodes[b,c] \type{\startallmodes[b,c]} done \stopallmodes \startnotallmodes[c] \type{\startallmodes[b,c]} not done \stopnotallmodes % <<<<<<<<<<<<<<<<<<<<<<<<<<<<< Runaway argument? \type {\startallmodes [b,c]} not done \stopnotallmodes \blank \par \stoptext ! File ended while scanning use of \dostopallmodes. \par <*> testmodes.tex \emergencyend I guess the pairing of \startnotallmodes with \stopnotallmodes is at fault. In core-var.tex 234-235 I see: \long\def\dostartnotallmodes[#1]% {\docheckforallmodes\dostopallmodes\donothing{#1}} should be: \long\def\dostartnotallmodes[#1]% {\docheckforallmodes\dostopnotallmodes\donothing{#1}} I checked this patch: ConTeXt ver: 2008.03.24 23:24 MKII fmt: 2008.3.29 int: english/english Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] first steps
On 9 apr 2008, at 19:59, Hans Hagen wrote: > Taco Hoekwater wrote: >> Hans Hagen wrote:>> Well, that's the thing: it seems to us that >> whenever >> context finds PFB >>>> files for the tex-gyre fonts (qplr.tfm&pfb in this case), it will >>>> use >>>> those, totally ignoring any opentype fonts that are also installed. >>> hm, this puzzles me because i have afm/pfb/otf on my system >> >> tfm too? I only get the problem if the qplr.tfm is found > >> luatools --all *qplr.* > c:/data/develop/tex/texmf/fonts/tfm/public/tex-gyre/t2b-qplr.tfm > c:/data/develop/tex/texmf/fonts/tfm/public/tex-gyre/ts1-qplr.tfm > c:/data/develop/tex/texmf/fonts/afm/public/tex-gyre/qplr.afm That's strange. Here this command gives: 103 ~: luatools --all *qplr.* /usr/local/texlive/2007/bin/powerpc-darwin/luatools:4392: bad argument #1 to 'pairs' (table expected, got nil) allthough: 104 ~: find /usr/local -name *qplr.* /usr/local/texlive/2007/texmf-dist/fonts/afm/public/tex-gyre/qplr.afm /usr/local/texlive/2007/texmf-dist/fonts/tfm/public/tex-gyre/cs-qplr.tfm /usr/local/texlive/2007/texmf-dist/fonts/tfm/public/tex-gyre/ec-qplr.tfm Any idea what can be wrong? Not all can be wrong though, because texmfstart texexec --luatex luatest1.tex typesets a file containing lua code. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] luatools --ini plain
This is something I don't understand. In the mk.pdf manual on luatex on page 21 there is the following example: luatools --ini plain Instead of the expected output 120,808 plain.fmt etc. I get an error: "There is no lua initialization file found. ..." Running "luatools --generate" does not help. There is a hint: "This file can be forced by the --progname directve, or specified with --luaname,..." How can I get a "lua initialization file" in order to not have the error. And how do I interpret the hint, as the text of the error message is too cryptic for me to understand. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatools --ini plain
On 14 apr 2008, at 00:38, Arthur Reutenauer wrote: >> luatools --ini plain >> >> Instead of the expected output 120,808 plain.fmt etc. I get an error: >> "There is no lua initialization file found. ..." > > The ConTeXt tools don't support plain. If you really want a plain > format for LuaTeX you can run luatex -ini instead: > > luatex -ini -jobname=luatex plain \\dump > > But why do you want plain LuaTeX in the first place? If it's only to > test the mk document, you should realize it's not a user manual. Why I am doing this? Just because I want to experiment with luatex and to acquire experience using it. And what better to start with then examples given in the accompanying document. It might not be a user manual, but does that mean its information is not to be used? I am quite aware of the preliminary nature of the document. That is what this newsgroup is for. By the way, Hans Hagen in the mean time corrected the call to "luatools --make plain". Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unable to generate luatex formats
Same thing here. "luatools luat-env.lua" gives an empty line. After "luatools --generate" again the same. And I have TEXMFCNF and TEXMF defined in .bashrc TEXMFCNF="/usr/local/texlive/2007/texmf/web2c" TEXMF="{/Users/hans/TeX/texmf-private,/usr/local/texlive/texmf- context,/usr/local/texlive/texmf-local,/usr/local/texlive/2007/texmf,/ usr/local/texlive/2007/texmf-config,/usr/local/texlive/2007/texmf- dist,/usr/local/texlive/2007/texmf-doc,/usr/local/texlive/2007/texmf- var}" So there must be something else amiis. Hans van der Meer On 15 apr 2008, at 11:56, Hans Hagen wrote: > John Devereux wrote: >> Taco Hoekwater <[EMAIL PROTECTED]> writes: >> >>> John Devereux wrote: >>>> Michael Green <[EMAIL PROTECTED]> writes: >>>> >>>>> I'm getting the following error when running this command: >>>>> luatools -- >>>>> ini --verbose --compile cont-en >>>> Hi, I am getting a similar error on debian unstable. >>> Both of you, can you check that >>> >>> luatools luat-env.lua >> >> I just get a blank line printed. And I get the same if I feed it >> the name >> of a random, non-existent file. Which is not encouraging... >> >>> finds the file? If not, try running luatools --generate >> >> This produces: >> >> LuaTools | skipping /texmf-local/web2c/texmf.cnf >> LuaTools | skipping /texmf/web2c/texmf.cnf >> LuaTools | >> LuaTools | runtime: 0.003 seconds > > aha, so how about setting the env variables TEXMFCNF and TEXMF > > Hans ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unable to generate luatex formats
On 15 apr 2008, at 14:52, John Devereux wrote: > 4) Now you can try some simple document like (thanks to Arthur > Reutenauer) > \starttext some statements deleted > > \startlua > a = 1.5 > b = 1.8 > c = a*b > tex.print(c) > \stoplua > \stoptext > and run it with > texexec --lua filename.tex Not true. This code used to work, it DID WORK. But now it gives an error: system : cont-sys loaded (/Users/hans/TeX/texmf-private/tex/context/user/cont-sys.tex ! Undefined control sequence. l.182 \forceMPTEXgraphictrue ConTeXt ver: 2008.04.11 00:07 MKIV fmt: 2008.4.14 int: english/ english I am not happy to see something so simple now being broken!! Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ctx usage
I am an ignoramus I know, but running context starts with the message: TeXExec | no ctx file found It seems quite normal because the "first document" on the wiki also shows this message. I searched the wiki in vain through "ctx" and ".ctx" for an explanation of its purpose. Can someone point me to that info? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] where luatex cache?
I have a setup with several users, one acting as system administrator, the others as users. What can be said regarding the setup of the luatex cache? The possibilities I see are: (1) central cache in the /usr/local/texlive tree; (2) decentralized cache per user in its local texmf tree (3) decentralized cache per user in some unrelated directory (4) decentralized cache per user in /tmp (cleaned out by the system on restart, i think) Can someone comment on the merits of these alternatives? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] typesetting modules
For typesetting a context module I did the following, first making a .ted file and then typesetting it: texmfstart ctxtools --documentation --type=pdf char-utf.tex texmfstart texexec --silent --pdf --autopdf However I got an unknown format cont-nl.fmt. Why is nl chosen? What I am doing wrong here? I always use cont-en.fmt and have my MacOSX preference language set to english. How can I change the obvious default behaviour from nl to en? 127 ~/TeX/test: texmfstart ctxtools --documentation --type=pdf char- utf.tex CtxTools | input file : char-utf.tex CtxTools | output file : char-utf.ted CtxTools | filetype : pdf CtxTools | documentation sections : 5 CtxTools | definition sections : 6 CtxTools | skipped sections : 0 128 ~/TeX/test: texmfstart texexec --silent --pdf --autopdf char-utf.ted TeXExec | processing document 'char-utf.ted' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file char-utf.top TeXExec | using randomseed 772 TeXExec | tex engine: pdftex TeXExec | tex format: cont-nl This is pdfTeXk, Version 3.141592-1.40.7 (Web2C 7.5.6) \write18 enabled. %&-line parsing enabled. (/usr/local/texlive/texmf-context/web2c/natural.tcx) kpathsea: Running mktexfmt cont-nl.fmt fmtutil: format directory `/usr/local/texlive/2007/texmf/web2c' is not writable. I can't find the format file `cont-nl.fmt'! TeXExec | runtime: 2.008775 Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] where luatex cache?
On 19 apr 2008, at 14:42, Hans Hagen wrote: > Taco Hoekwater wrote: > >> The cache will also contain files downloaded at runtime from the >> internet (if any). Truly paranoid security people would be against >> a central cache for that reason, but otherwise this is best. > > so maybe at some point we need two caches I guess you are right with the two caches. I encountered sometimes files in the cache with restricted permissions like rw-r--r-- which prevented updating for all others than the user who originally wrote the file. Probably one central cache for static/general things and one under the user home directory for local things. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typesetting modules
On 19 apr 2008, at 15:02, Taco Hoekwater wrote: > texexec --interface=en --use=mod-01 char-utf.ted Does the trick. thanks. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] enableregime in mkiv
I am using MacOSX and up till now my files have a Western(Mac OS Roman) encoding, not UTF8. That works fime in ConTeXt-mkii by using \enableregime[mac]. But in ConTeXt-mkiv through luatex I get an error despite that same \enableregime[mac]: For an accented character like é the error is "! Text line contains an invalid utf-8 sequence." How can I solve that other than changing all my files to UTF8 encoding? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] hyphenation problem
In dutch hyphenated accented characters loose there accent when hyphenated: oö becomes o-o instead of o-ö. But the latter happens when I process the code below. It happens both in mkii and mkiv. The number of a's must be chosen so as to generate hyphenation between the two o's. I tried this also with another font than lmodern, but got the same result. What happened to (dutch) hyphenation? ConTeXt ver: 2008.04.18 14:17 MKII fmt: 2008.4.19 int: english/ english \enableregime[mac] \language[nl] \setupbodyfont[lmodern,10pt] \starttext hyphen test: aa coördinaat. \par hyphen test: aa co\"ordinaat. \par \stoptext Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] enableregime in mkiv
On 12 mei 2008, at 10:16, Hans Hagen wrote: > Taco Hoekwater wrote: >> >> Hans van der Meer wrote: >>> I am using MacOSX and up till now my files have a Western(Mac OS >>> Roman) encoding, not UTF8. That works fime in ConTeXt-mkii by using >>> \enableregime[mac]. >>> But in ConTeXt-mkiv through luatex I get an error despite that same >>> \enableregime[mac]: For an accented character like é the error is "! >>> Text line contains an invalid utf-8 sequence." >> >>> How can I solve that >>> other than changing all my files to UTF8 encoding? >> >> Perhaps with a preprocessing (ctx) file that runs iconv, but luatex >> itself wants UTF-8, full stop. > > regimes should work but maybe there is no mac regime; anyway ... > moving > to utf is the best option What is to be preferred: with or without BOM? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hyphenation problem
On 12 mei 2008, at 13:01, Taco Hoekwater wrote: > Hans van der Meer wrote: >> In dutch hyphenated accented characters loose there accent when >> hyphenated: oö becomes o-o instead of o-ö. But the latter happens >> when >> I process the code below. It happens both in mkii and mkiv. The >> number >> of a's must be chosen so as to generate hyphenation between the two >> o's. I tried this also with another font than lmodern, but got the >> same result. What happened to (dutch) hyphenation? > > I do not believe this ever has worked, because it is not supported > by Knuth's hyphenation algorithm, at all. > > > In MkIV, the following (in utf-8!) will work: > > \language[nl] > \setupbodyfont[lmodern,10pt] > \hyphenation{co{-}{o}{ö}r-di-naat} > \starttext > hyphen test: > a > coördinaat > \stoptext > > But not the example with the \" coding (and that likely never will). > > Best wishes, > Taco > In my recollection this worked like a charm in the LaTeX-Babel package! Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hyphenation problem
On 12 mei 2008, at 12:50, Hans Hagen wrote: > Hans van der Meer wrote: >> In dutch hyphenated accented characters loose there accent when >> hyphenated: oö becomes o-o instead of o-ö. But the latter happens >> when >> I process the code below. It happens both in mkii and mkiv. The >> number >> of a's must be chosen so as to generate hyphenation between the two >> o's. I tried this also with another font than lmodern, but got the >> same result. What happened to (dutch) hyphenation? >> >> ConTeXt ver: 2008.04.18 14:17 MKII fmt: 2008.4.19 int: english/ >> english >> >> \enableregime[mac] >> \language[nl] >> \setupbodyfont[lmodern,10pt] >> \starttext >> hyphen test: >> aa >> coördinaat. >> \par >> hyphen test: >> aa >> co\"ordinaat. >> \par >> \stoptext > > in principle we can make patterns that has this info by adding > discretionaries to the patterns ... too much work to do that by hand > I am quite surprised by this, because in dutch there are a lot of words with ö, ë to be hyphenated this way. And isn't there something alike in german with the \SS? Anyway, it would be much appreciated as this sort of hyphenation could find its way in ConTeXt. It wouldn't do if LaTeX would keep in front of ConTeXt in this respect ;-) Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] itemize numbering
The following minimal example goes wrong: \starttext \startitemize[a] \item sub a \startitemize \item sub a1 \item sub a2 \stopitemize \item sub b \stopitemize \stoptext The result is: . sub a - sub a1 - sub a2 a. sub b Whereas: \starttext \startitemize[a] \item sub a \item sub b \stopitemize \stoptext results in the expected output: a. sub a b. sub b Both mkii and mkiv show this behaviour. Versions are: This is pdfTeXk, Version 3.141592-1.40.7 (Web2C 7.5.6) ConTeXt ver: 2008.04.18 14:17 MKII fmt: 2008.4.19 int: english/ english Is this corrected in a later version than I have installed or is it still present? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] frames and columns
When I enclose columns in a frame then the columns are not formed. See the minimal example: \starttext \startframedtext \startcolumns[n=2] COLUMN 1 \column COLUMN 2 \stopcolumns \stopframedtext \stoptext Commenting out the \startframedtext,\stopframedtext typesets two columns; \startsimplecolumns shows the same ill behaviour. ConTeXt ver: 2008.05.13 14:42 MKII fmt: 2008.5.19 int: english/ english Is there a cure? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] frames and columns
Wolfgang, Yes I can see others have found the same problem. But thanks anyway for the link, because it prompted me to experiment with a box. At least for \startsimplecolumns .. \stopsimplecolumns there seems to be hope. See the example below, the last framedtext has two columns inside. For \startcolumns .. \stopcolumns this is not a solution: an error message about \prevdepth appears. \starttext % bare columns \leftaligned{\em simplecolumns:}\blank \startsimplecolumns[n=2] COLUMN 1\crlf COLUMN 1.1\crlf \column COLUMN 2\crlf \stopsimplecolumns \blank % this does not work \leftaligned{\em simplecolumns in framedtext:}\blank \startframedtext \startcolumns[n=2] COLUMN 1\crlf COLUMN 1.1\crlf \column COLUMN 2\crlf \stopcolumns \stopframedtext \blank % this works more or less \leftaligned{\em simplecolumns boxed in framedtext:}\blank \startframedtext \hbox\bgroup \startsimplecolumns[n=2] COLUMN 1\crlf COLUMN 1.1\crlf \column COLUMN 2\crlf \stopsimplecolumns \egroup \stopframedtext \blank \stoptext Hans van der Meer On 20 mei 2008, at 08:16, Wolfgang Schuster wrote: > On Mon, May 19, 2008 at 7:37 PM, Hans van der Meer <[EMAIL PROTECTED] > > wrote: >> When I enclose columns in a frame then the columns are not formed. >> See >> the minimal example: >> \starttext >> \startframedtext >> \startcolumns[n=2] >> COLUMN 1 >> \column >> COLUMN 2 >> \stopcolumns >> \stopframedtext >> \stoptext >> >> Commenting out the \startframedtext,\stopframedtext typesets two >> columns; \startsimplecolumns shows the same ill behaviour. >> ConTeXt ver: 2008.05.13 14:42 MKII fmt: 2008.5.19 int: english/ >> english >> >> Is there a cure? > > http://www.ntg.nl/pipermail/ntg-context/2007/025622.html > > or > > \starttextbackground/\stoptextbackground > >> Hans van der Meer > > 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] typebuffer extra line
Exercising \typebuffer gives an extra blank line afterwards. See the following minimal example. How can I prevent this extra line? Using: ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.5.24 int: english/english Example: \startbuffer[A] Contents of buffer A. \stopbuffer \startbuffer[B] Contents of buffer B. \stopbuffer \starttext \typebuffer[A]\typebuffer[B] \stoptext Output: testtypebuffer.pdf Description: Adobe PDF document Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mtxrun
Following the article "The luafication of TeX and Context" in the recent issue of the NTG-MAPS I tried the example given: mtxrun --script fonts and this should return the options list for this script. However, I get: 101 ~: mtxrun --script fonts cannot open : No such file or directory While otherwise a bare mtxrun returns info and thus was found as a runnable script: 102 ~: mtxrun MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT MtxRun | --script run an mtx script In my .bashrc I had the lua scripts in the path: 103 ~: echo $PATH ..:/usr/local/texlive/texmf-context/scripts/context/lua/:.. And I had called luatools --generate to make the database plus I made certain the script has execute permissions: /usr/local/texlive/texmf-context/scripts/context/lua/mtx-fonts.lua - rwxr-xr-x What is wrong or what I am doing wrong? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mtxrun
On 17 jun 2008, at 21:47, Aditya Mahajan wrote: > On Tue, 17 Jun 2008, Hans van der Meer wrote: > >> Following the article "The luafication of TeX and Context" in the >> recent issue of the NTG-MAPS I tried the example given: >>mtxrun --script fonts >> and this should return the options list for this script. >> However, I get: >>101 ~: mtxrun --script fonts >>cannot open : No such file or directory >> While otherwise a bare mtxrun returns info and thus was found as a >> runnable script: >>102 ~: mtxrun >>MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT >> MtxRun | --script run an mtx script >> In my .bashrc I had the lua scripts in the path: >> 103 ~: echo $PATH >> ..:/usr/local/texlive/texmf-context/scripts/context/lua/:.. >> And I had called luatools --generate to make the database plus I made >> certain the script has execute permissions: >> /usr/local/texlive/texmf-context/scripts/context/lua/mtx-fonts.lua - >> rwxr-xr-x >> >> What is wrong or what I am doing wrong? > > With old (almost 6-8 months ago) mtxrun, I had to set LUAINPUTS to get > mtxrun --script to work. Now it works without the LUAINPUTS > variable. I > don't remember when the change happened. > > Your mtxrun says version 1.0.2, mine says 1.1.0. So, try with the > LUAINPUTS variable, or try mtxrun --selfupdate. That is strange. I have the context distribution from 2008-05-21 and in it mtxrun.lua has the line: banner = "version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT". Is version 1.1.0 in an experimental version? (I keep away from beta versions, fearing something will break at the wrong moment -- surely one of Murphy's law will take over at a time when one cannot afford it ;-) I did 'mtxrun --selfupdate', as Hans Hagen suggested, but no change. Also I have a path variable LUAINPUTS to no avail: 103 ~: echo $LUAINPUTS /usr/local/texlive/texmf-context/scripts/context/lua Running 'luatools --generate' makes no difference. Taco Hoekwater suggested the culprit might be msdos line-endings, but I don't have these. Could it be the directory structure in my setup? /usr/local/texlive/2007/bin/powerpc-darwin/mtxrun (symlink with 'ln -s') /usr/local/texlive/texmf-context/scripts/context/lua/mtx-*.lua So, I am still stuck with "cannot open : No such file or directory." on calling 'mtxrun --script fonts' etc. The most strange of all is that 'mtxrun --script cache' and all the others do give me the list op options on the cache script. (mtx- web.lua being absent in the distribution). So only script fonts seems to have something wrong. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to comment several lines at once ?
In ConTeXt you should be able to say: \starthiding -- this stuff will not be processed -- \stophiding Hans van der Meer On 2 jul 2008, at 15:05, Alan Stone wrote: > Hi, > > Guess this is (Plain) TeX stuff - haven't found the answer... > > How do you comment several lines at once, instead of prefixing each > line with the % sign ? > > Alan > ___ > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] typesetting ruin
A year ago I had my presentation sheets typeset with ConTeXt. Now, USING MY SAME SOURCES, with ConTeXt ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.7.5 the severely clipped picture below results. I did the setup with \usemodule[pre-general] % followed by: \setuppapersize [S6][S6] \setuplayout [backspace=1cm, topspace=1cm, margin=0pt, header=0pt, footer=0pt, bottomdistance=.875cm, bottom=1cm, width=fit, height=fit] \starttext \TitlePage{\vfill\vfill\bf Contents of page} \stoptext \endinput What the could have happened here to cause this apparent clipping? It does not seem to be in the MPgraphic's used for background etc, because commenting these out does not change the odd dimensions. Any idea? minor.pdf Description: Adobe PDF document Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typesetting ruin
Follow up on my previous post. I could narrow the problem to this statement in my code: \setupinteractionscreen [option=max, width=fit, height=fit] What has been changed here in recent versions? or perhaps better: what change could cause this to fail? On 23 sep 2008, at 22:33, Hans van der Meer wrote: > A year ago I had my presentation sheets typeset with ConTeXt. > Now, USING MY SAME SOURCES, with ConTeXt ConTeXt ver: 2008.05.21 > 15:21 MKII fmt: 2008.7.5 the severely clipped picture below > results. I did the setup with > > \usemodule[pre-general] > Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typesetting ruin
Hans, No need to run it yourself. It has to do with the interpretation/ assignements of the 'fit' options in: \setupinteractionscreen [option=max, width=fit, height=fit] Replacing 'fit' by an explicit height seems to repair it. But I have no idea why the behaviour of 'fit' suddenly changed. \setupinteractionscreen [option=max, width=\paperwidth, height=\paperheight] On 24 sep 2008, at 09:29, Hans Hagen wrote: > Hans van der Meer wrote: >> A year ago I had my presentation sheets typeset with ConTeXt. >> Now, USING MY SAME SOURCES, with ConTeXt ConTeXt ver: 2008.05.21 >> 15:21 >> MKII fmt: 2008.7.5 the severely clipped picture below results. I did >> the setup with >> >> >> What the could have happened here to cause this apparent >> clipping? >> It does not seem to be in the MPgraphic's used for background etc, >> because commenting these out does not change the odd dimensions. >> Any idea? > > Hans Hagen wrote: > i have no clue, but then, your file does not run here at all, since > there is no TitltePage command in pre-general > Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib errors
Olivier: What system do you use? I am using MacOSX and in july this year I mailed about the error below: >> mplib : making format: metafun.mp, name: /Users/hans/TeX/ >> luatex-cache/context/60e9a4b67d8fc84c21043806bb9e2fb8/formats/cont- >> en-metafun.mem >> mplib : loading format: metafun.mp, name: /Users/hans/TeX/ >> luatex-cache/context/60e9a4b67d8fc84c21043806bb9e2fb8/formats/cont- >> en-metafun.mem >> report >> mp terminal: (/usr/local/texlive/2007/texmf-context/ >> metapost/context/base/mp-tool.mp >> ! Missing `=' has been inserted. >> >> , >> l.51 vardef mpversioncmp(expr s, >> c) = >> ! Missing `=' has been inserted. >> >> ) >> l.55 vardef mpversionlt (expr s) Sounds familiar? If you are also working on MacOSX(10.5.x) then I should expect the problem to be platform specific. I had some discussions with Taco Hoekwater about this problem, but we never solved it and I have no inkling of its cause. Since I am not well enough acquainted with the code behind mplib and friends, I had to fall back on using MKII and putting MKIV aside. But I guess the solution to this problem is pressing, since we cannot have one platform falling out on ConTeXt. Hans van der Meer On 29 sep 2008, at 17:55, Olivier wrote: > Dear all, > > I'm using ConTeXt MkIV on Debian with the following version: > > ConTeXt ver: 2008.05.21 15:21 MKIV fmt: 2008.8.4 int: english/ > english > > Everything seems to work well (I am able to run lua code, use otf font > facilities, etc...) but the mplib mechanism. Indeed, running through > the following simple file : > > \starttext > \startMPcode > path p ; p := fullcircle scaled 4cm ; > fill p withcolor red ; > fill p shifted(2cm,0cm) withcolor blue ; > \stopMPcode > \stoptext > > provokes the following logging : > > mplib : loading format: metafun.mp, name: > /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/ > formats/cont-en-metafun.mem > mplib : version mismatch: mp_parent_version <> 2008.05.21 > 15:21 > mplib : making format: metafun.mp, name: > /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/ > formats/cont-en-metafun.mem > mplib : loading format: metafun.mp, name: > /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/ > formats/cont-en-metafun.mem > report >> mp terminal: > (/usr/share/texmf/metapost/context/base/mp-tool.mp > ! Missing `=' has been inserted. > > , > l.51 vardef mpversioncmp(expr s, > c) = > etc... > > The format metafun.mp is not good at first, but seems to be > regenerated > dynamically with success ? > > Is this a known issue ? Any hints on what's going on ? > > Olivier > ___ > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mplib errors
Hi Taco, I did "kpsewhich mp-tool.mp" and it came up with "/usr/local/texlive/ 2007/texmf-context/metapost/context/base/mp-tool.mp". That file has in my system creation+modification date "01-04-08 02:14" and was last opened "03-07-08" so this must be it. Came straight from unpacking the context distribution zip. This should have been cont-tmf.zip created "05-08-08 17:13". The other mp-tool.mp in my system is /usr/local/texlive/2007/texmf- dist/metapost/context/base/mp-tool.mp. I also checked this one and found it has creation+modification date "06-02-08 12:52" and was last opened "06-02-08 12:52". So this one was apparently never used by me after installing texlive2007. I think this proves the file in my case is indeed the "01-04-08 02:14" one. Hans van der Meer On 29 sep 2008, at 22:10, Taco Hoekwater wrote: > > > Hi, > > To both of you: > > Hans van der Meer wrote: > >>>> /usr/local/texlive/2007/texmf-context/metapost/context/base/mp- >>>> tool.mp > > Olivier wrote: > >>> /usr/share/texmf/metapost/context/base/mp-tool.mp > > Can you guys check if these are the correct versions of mp-tool.mp ? > The problem could be as basal as mp finding older versions of the > metafun files (from before the mkiv support). > > > Best wishes, > Taco > (who assumes Olivier is on intel/amd, not powerpc) > > ___ > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] presentation styles empty front page
I have a problem with the presentation styles s-pre-xx. Since I used them previously (about 2-3 years ago) now an EXTRA blank page appears up at the front of the series of sheets. I am positive this did not occur in the past, since I did not change my files. Because I tried some different presentation styles and they all show the extra page, my suspicion is that it could originate somewhere in s-pre-00 (pre-general). However, I cannot find something suspicious in that file. What has happened? dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] extra page in presentation styles
Context presentation style problem: I didn't use the (green-)presentation style for quite some time. Now I suddenly get an EXTRA PAGE before the first \TitlePage. See below for a minimal example and the output produced. Does somebody happen to what is wrong or where I am wrong? By the way, the upgrade of 27-10-2005 context did not change this. I do not include the pdf-output, because it makes this posting too big to post without special moderator approval. But in my system it gives a blank first page and then the TitlePage as sheet numbered 2. Thanks. Hans van der Meer % === % %This example shows an extra blank page before the first real one. \usemodule[pre-green] % === % \starttext % === % \TitlePage{\vfill\vfill\bf Titlepage\blank \color[red]{Is SECOND instead of\crlf FIRST page!}\blank \tfxx\tfx This is pdfeTeX, Version 3.141592-1.30.0-2.2 (Web2C 7.5.5) \blank ConTeXt ver: 2005.08.31 fmt: 2005.10.19 \vfill\vfill\vfill\bfxx \color[blue]{\currentdate}\hfill\null} % === % \Subject{First subject} \vfill This is the first subject page. \vfill % === % \stoptext % === % ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] extra page in presentation styles
Both of you thanks for taking the trouble to run the example. Because of your results I became convinced the problem was lurking somewhere in my part of the ConTeXt installation. That enabled me the quickly locate the culprit: a spurious comma introduced (by me of course, stupido) in cont-sys.tex (cont-sys.rme). A pity this comma did not show up in the output; it makes your help the more valuable. I am posting this message to the list, so that everyone who read my previous posting will be aware of the fact that it was no problem of ConTeXt. On Nov 4, 2005, at 0:02, Hans Hagen wrote: Otared Kavian wrote: Hi Hans, On my machine with ConTeXt ver: 2005.09.14 fmt: 2005.10.21 int: english mes: english everything is fine with the sample file you sent. Probably you should update your installation of ConTeXt. no problems here either; maybe some spurious character that has ended up in a file Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mini-survey: What do you do with ConTeXt?
I use ConTeXt for the presentations in my lectures on Cryptography at the University of Amsterdam. I am considering changing my lecture notes (some 300 pages) from LaTeX into ConTeXt, especially because the ease of incorporating MetaFont pictures into the text. Also for small documents as for example cd-covers. Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] font havoc
Suddenly it seems, I am getting bad messages for quite normal math fonts: Warning: pdfetex (file cmsy8): kpathsea: Running mktexpk --mfmode / -- bdpi 72 --mag 1+7/72 --dpi 79 cmmi10 mktexpk: Mismatched mode ljfzzz and resolution 72; ignoring mode. mktexpk: Can't guess mode for 72 dpi devices. mktexpk: Use a config file, or update me. (<<<< Why is this?) Font cmsy8 at 72 not found Warning: pdfetex (file cmmi10): Font cmmi10 at 79 not found {/usr/local/teTeX/share/texmf-dist/fonts/enc/dvips/psnfss/8r.enc}usr/local/te TeX/share/texmf-dist/fonts/type1/urw/helvetic/uhvr8a.pfb>teTeX/shar e/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb>share/texmf- dist/fonts/type1/urw/courier/ucrr8a.pfb> I am not aware having changed to resolution 72 for ljfzzz or doing something different from previous installations of new context versions. The mode for ljfzzz was set with texconfig. I was running the 2005-10-27 context version, but reverting tot 2005-08-31 did not solve the problem. What has happened to my fonts? Has it something to do with the fact that tetex and context seem to use directories .texmf-config and .texmf-var differently? Why does something that ran without a hitch suddenly is broken? Does someone know how to restore things to normal? Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] font problems again
With the last release of context the problem of not getting cm fonts is over. These are now found. However, other font selections bring new difficulties. I tried various combinations but did not succeed. The simple program (using TeXShop): \starttext \setupbodyfont[tim,12pt] hello world \stoptext Fails and aborts with: This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) ConTeXt ver: 2005.11.11 fmt: 2005.11.13 int: english mes: english ! Font \*times12ptrmtf*:=utmr8t at 12.0pt not loadable: Metric (TFM) file not found. Changing into \usetypescript[phv]\setupbodyfont[phv,12pt] ! Font \*postscript12ptrmtf*:=utmr8t at 12.0pt not loadable: Metric (TFM) file not found. No help from enabling in cont-sys.tex of: \usetypescript[adobekb] [\defaultencoding] (updmap.cfg contains URWkb for the LW35 fonts) then it starts asking for (non-existing) maps like: Warning: pdfetex (file ec-urw-helvetica.map): cannot open font map file If I use \setupbodyfont[lbr,12pt] then I get just lm-roman, although I have the YandY lucida fonts installed with their original YandY names (lb--.pfb) Here no help from changing between texnansi and ec default encoding. Any idea whats amiss? I ran this on a teTeX3 install with the context files unzipped into texmf-local. (I must confess I am tempted to give up on ConTeXt altogether, because of these many font troubles.) Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] font problems again
I used to work with the TeX i-Package install. But every once in a while tex has to be updated. Then I was confronted with fairly hefty downloads for my humble isdn-telephone connection (not everyone has adsl). That's the reason I switched over to installing teTeX and ConTeXy directly. Not much of a pain with an installer shell script and a fast machine. But thanks for your interest anyway. On Nov 14, 2005, at 8:51, Gerben Wierda wrote: With the last release of context the problem of not getting cm fonts is over. These are now found. However, other font selections bring new difficulties. I tried various combinations but did not succeed. The simple program (using TeXShop): Since you are using Mac OS X, if you install the TeX i-Package, you get the texmf tree of teTeX 3.0 as well, but with a replacement of old Latin Modern with new. A newer ConTeXt assumes the newer Latin Modern afaik. The ConTeXt updater i-Package will get you the latest ConTeXt in texmf.local. If such an install still does not get you a working ConTeXt, I'd be interested to find out why (and we can help each other) because it is my goal that you have a working ConTeXt after such an install). G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context met vriendelijke groet, Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bold math not mathitalic
I am using the follwing (extracted) typescript lines for math in the lucida fonts:\starttypescript [luc] \definetypeface [luc][mm][math][lucidayy][default][encoding=texnansi] \definetypeface [luc][mm][bfmath][lucidayy][default][encoding=texnansi]\stoptypescript\starttypescript [math] [lucidayy] [default] \definebodyfont [default] [mm] [mr=MathRoman mo 1, mi=MathItalic mo 1, ]\stoptypescript\starttypescript [bfmath] [lucidayy] [default] \definebodyfont [default] [mm] [mrbf=MathRomanBold mo 1, mibf=MathItalicBold mo 1, ]\stoptypescript\starttypescript [math] [lucidayy] [name] \definefontsynonym [MathRoman] [LucidaBright] \definefontsynonym [MathItalic] [LucidaNewMath-AltItalic]\stoptypescript\starttypescript [math] [lucidayy] [texnansi,ec,8r] \definefontsynonym [LucidaBright] [hlhr8y] [encoding=texnansi] \definefontsynonym [LucidaNewMath-AltItalic] [hlcrima]\stoptypescript\starttypescript [bfmath] [lucidayy] [name] \definefontsynonym [MathRomanBold] [LucidaBright-Demi] \definefontsynonym [MathItalicBold] [LucidaNewMath-AltDemiItalic]\stoptypescript\starttypescript [bfmath] [lucidayy] [texnansi,ec,8r] \definefontsynonym [LucidaBright-Demi] [hlhb8y] [encoding=texnansi] \definefontsynonym [LucidaNewMath-AltDemiItalic] [hlcdima]\stoptypescriptTypesetting:\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptext Gives me for the variables neatly LucidaNewMath-AltItalic.But typesetting\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\bfmath\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptextGives me LucidaBright-Demi instead of LucidaNewMath-AltDemiItalic.Everything else however (even the blackletters from ma) are in the correct bold math font.The font must be present, because substituting MathItalicBold for MathItalic in the [math] script proves that.It seems that mibf has not been substituted, but instead used the mr typeface.Could this be a flaw in the (bold)math handling? For example a wrong fam chosen in the font switch?It seems weird that everything behaves neat except for the bold math italic.Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] font problems again
Two more questions: (1) On Nov 14, 2005, at 0:07, Hans Hagen wrote: Hans van der Meer wrote: No help from enabling in cont-sys.tex of: \usetypescript[adobekb] [\defaultencoding] (updmap.cfg contains URWkb for the LW35 fonts) then it starts asking for (non-existing) maps like: Warning: pdfetex (file ec-urw-helvetica.map): cannot open font map file that is when you use texfont generated metrics texfont --encoding=ec --batch type-tfm.dat will generate those metrics (which are the ones i use) Do I now understand correctly that I MUST use texfont first in order to work with fonts in ConTeXt? I did not realize that when going over to the new tetex setup. I guess the typescripts for the lm/cmr fonts are ready-made in the context distribution? Is there somewhere a script to do this (somewhat painless) for the "regular" fonts in the teTeX distribution or should I generate just by hand for whatever font I need? (2) about math typesetting Although computer modern (lm fonts) now appear in text, there is something strange with math. Running the next example coming from the ConTeXt manual (page 103): \starttext {$\sqrt{a^2 + b^2} = c\ \hbox{whatever} + \sin(2x)$} math\crlf {$\bf \sqrt{a^2 + b^2} = c\ \hbox{whatever} + \sin(2x)$} boldmath BUT `sin' ISN'T, sqrt NEVER IS \crlf {$\bf\mf \sqrt{a^2 + b^2} = c\ \hbox{whatever} + \sin(2x)$} boldmath NOW `sin' IS, sqrt NEVER IS \crlf \stoptext The second line doesn't show the "sin" in bold as contrasted with the special remark in the manual. I does show in bold with \mf however. Has the math behaviour changed meanwhile? Or does it point to still another flaw in my setup? The following fonts appear in the pdf (as seen in Adobe Reader): CMMI12, CMSY10, LMRoman12-Bold (and 9), LMRoman12-Regular (and 9). in comparison, the following LaTeX example has the right behaviour: \documentclass{article} \begin{document} {$\sqrt{a^2 + b^2} = c$} math\hfill\break {\boldmath$\sqrt{a^2 + b^2} = c + \sin{}x$} boldmath\par \end{document} Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: bold math not mathitalic
I am trying to define bold math myself, but encounter a problem with the typescripts.Further probing into this matter (previous mail, see below) shows that the typescript delineated by 's is NOT USED AT ALL! (Calling \setupformulas[method=bold] makes no difference). It therefore does not seem a problem in the math family assignments in font-bfm.tex, as I first suspected.Is there some special invocation needed for hooking up a user defined font set into $\bfmath ...$?If have looked into font-bfm.tex and font-ini.tex but could not figure it out.Clearly I am misunderstanding the inner workings here, but I have no clue in which direction to look. I am using the follwing (extracted) typescript lines for math in the lucida fonts:\starttypescript [luc] \definetypeface [luc][mm][math][lucidayy][default][encoding=texnansi] \definetypeface [luc][mm][bfmath][lucidayy][default][encoding=texnansi]\stoptypescript\starttypescript [math] [lucidayy] [default] \definebodyfont [default] [mm] [mr=MathRoman mo 1, mi=MathItalic mo 1, ]\stoptypescript**\starttypescript [bfmath] [lucidayy] [default] \definebodyfont [default] [mm] [mrbf=MathRomanBold mo 1, mibf=MathItalicBold mo 1, ]\stoptypescript**\starttypescript [math] [lucidayy] [name] \definefontsynonym [MathRoman] [LucidaBright] \definefontsynonym [MathItalic] [LucidaNewMath-AltItalic]\stoptypescript\starttypescript [math] [lucidayy] [texnansi,ec,8r] \definefontsynonym [LucidaBright] [hlhr8y] [encoding=texnansi] \definefontsynonym [LucidaNewMath-AltItalic] [hlcrima]\stoptypescript\starttypescript [bfmath] [lucidayy] [name] \definefontsynonym [MathRomanBold] [LucidaBright-Demi] \definefontsynonym [MathItalicBold] [LucidaNewMath-AltDemiItalic]\stoptypescript\starttypescript [bfmath] [lucidayy] [texnansi,ec,8r] \definefontsynonym [LucidaBright-Demi] [hlhb8y] [encoding=texnansi] \definefontsynonym [LucidaNewMath-AltDemiItalic] [hlcdima]\stoptypescriptTypesetting:\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptext Gives me for the variables neatly LucidaNewMath-AltItalic.*** Changing the fonts in the above typescript does work ***But typesetting\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\bfmath\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptextGives me LucidaBright-Demi instead of LucidaNewMath-AltDemiItalic.Everything else however (even the blackletters from ma) are in the correct bold math font.The font must be present, because substituting MathItalicBold for MathItalic in the [math] script proves that.*** But not coming from my typescript I conclude from several experiments ***Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: bold math not mathitalic
On Nov 16, 2005, at 16:15, Hans van der Meer wrote:I am trying to define bold math myself, but encounter a problem with the typescripts.As always, when desperately posting the problem, something suggests itself that brings a solution of some sort.I looked into the definition of \bfmath, traced its execution and found out that afterall my own [bfmath] typescript was indeed used! But in order to get the same behaviour between normal math (variables set in MathItalic) and bold math I had to change the definition of \bfmath:\def\bfmath{\bf\mf\synchronizesymb\mi}That is, the last font switch made to \mi instead of \mf as is done font-ini.tex.Then I see the same behaviour in math and bfmath, that is MathItalic with $etc$ and MathItalicBold with $\bfmath etc$.My question to Hans Hagen: Should this change be followed in font-ini.tex?Personally, I feel confused by having math and bold math behaving differently.Hans van der MeerFurther probing into this matter (previous mail, see below) shows that the typescript delineated by 's is NOT USED AT ALL! (Calling \setupformulas[method=bold] makes no difference). It therefore does not seem a problem in the math family assignments in font-bfm.tex, as I first suspected.Is there some special invocation needed for hooking up a user defined font set into $\bfmath ...$?If have looked into font-bfm.tex and font-ini.tex but could not figure it out.Clearly I am misunderstanding the inner workings here, but I have no clue in which direction to look. I am using the follwing (extracted) typescript lines for math in the lucida fonts:\starttypescript [luc] \definetypeface [luc][mm][math][lucidayy][default][encoding=texnansi] \definetypeface [luc][mm][bfmath][lucidayy][default][encoding=texnansi]\stoptypescript\starttypescript [math] [lucidayy] [default] \definebodyfont [default] [mm] [mr=MathRoman mo 1, mi=MathItalic mo 1, ]\stoptypescript**\starttypescript [bfmath] [lucidayy] [default] \definebodyfont [default] [mm] [mrbf=MathRomanBold mo 1, mibf=MathItalicBold mo 1, ]\stoptypescript**\starttypescript [math] [lucidayy] [name] \definefontsynonym [MathRoman] [LucidaBright] \definefontsynonym [MathItalic] [LucidaNewMath-AltItalic]\stoptypescript\starttypescript [math] [lucidayy] [texnansi,ec,8r] \definefontsynonym [LucidaBright] [hlhr8y] [encoding=texnansi] \definefontsynonym [LucidaNewMath-AltItalic] [hlcrima]\stoptypescript\starttypescript [bfmath] [lucidayy] [name] \definefontsynonym [MathRomanBold] [LucidaBright-Demi] \definefontsynonym [MathItalicBold] [LucidaNewMath-AltDemiItalic]\stoptypescript\starttypescript [bfmath] [lucidayy] [texnansi,ec,8r] \definefontsynonym [LucidaBright-Demi] [hlhb8y] [encoding=texnansi] \definefontsynonym [LucidaNewMath-AltDemiItalic] [hlcdima]\stoptypescriptTypesetting:\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptext Gives me for the variables neatly LucidaNewMath-AltItalic.*** Changing the fonts in the above typescript does work ***But typesetting\starttext\usetypescript[luc][texnansi]\setupbodyfont[luc,10pt]\lucidatrue{$\bfmath\sqrt{a^2 + b^2} = c + \mf\sin{}x\quad {\ma NZRC}$}\crlf\stoptextGives me LucidaBright-Demi instead of LucidaNewMath-AltDemiItalic.Everything else however (even the blackletters from ma) are in the correct bold math font.The font must be present, because substituting MathItalicBold for MathItalic in the [math] script proves that.*** But not coming from my typescript I conclude from several experiments ***Hans van der Meer___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] (no subject)
In the top of file type-pre.tex it can be read: %D This file is obsolete. We now have latin modern and proper %D typescripts. Forget about this file. However, tracing execution of \startformula[bold] shows it is still read then, whereas on \startformula (without the bold) it is not. Isn't this an anomaly? Just curious (I hope curiosity is permitted in this group). Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] type-pre.tex
Addition to my previous message re this subject: In the top of file type-pre.tex it can be read: %D This file is obsolete. We now have latin modern and proper %D typescripts. Forget about this file. However, tracing execution of \startformula[bold] shows it is still read then, whereas on \startformula (without the bold) it is not. Isn't this an anomaly? Just curious (I hope curiosity is permitted in this group). One more observation. The trace shows an underfull hbox inserted at the start of this file \readfilename ->type-pre (/usr/local/teTeX/share/texmf-local/tex/context/base/type-pre.tex Underfull \hbox (badness 1) in paragraph at lines 21--13 \hbox(0.0+0.0)x426.78743 .\glue(\rightskip) 0.0 ) disappearing when a put \endinput right at the start of the file. I hope this hbox doesn't play havoc with formatting? Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] missing fontsynonym?
In file type-enc.tex I came across the fontsynonym \definefontsynonym [ComputerModernSans-Italic] [LMSans- Italic] However there is no further definition for LMSans-Italic. In contrast to for example LMRoman-Italic. Could this be a typo or a missing definition? Fontdefinitions like \definetypeface [mainface] [ss] [sans] [modern] [default] [ec] fail because of this. Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context