Re: [NTG-context] Comment after \startseparatedlist[...]
Am Mon, 20 Jan 2014 23:41:55 +0100 schrieb Hans Hagen pra...@wxs.nl: in fact you get: \startTest Eins, zwei, drei \stopTest because of the comment and we ignore all till the end of the first line I still don't understand it. This works: \startTest Eins, zwei, drei \stopTest This doesn't work (context stops with error): \startTest %Test Eins, zwei, drei \stopTest It seems that context fails whenever there is a comment inside the database listing (or database file). I actually would like to read in a database file and skip the first row, but because of this problem it doesn't work. Kind regards, Joshua ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] luatex crashes
current version: 2014.01.21 10:58 or current version: 2014.01.21 16:07 on OSX 10.9 structures end of sectionblock 'backpart' Assertion failed: (type(p)==glue_spec_node), function delete_glue_ref, file ../../../source/texk/web2c/luatexdir/tex/texnodes.w, line 2942. mtx-context | fatal error: no return code, message: luatex: execution interrupted structures end of sectionblock 'backpart' Assertion failed: (type(p)==glue_spec_node), function delete_glue_ref, file ../../../source/texk/web2c/luatexdir/tex/texnodes.w, line 2942. mtx-context | fatal error: no return code, message: luajittex: execution interrupted I didn’t investigate further yet - can you tell me in which direction I should look, or is the error already known? Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comment after \startseparatedlist[...]
On 1/21/2014 3:39 PM, Joshua Krämer wrote: Am Mon, 20 Jan 2014 23:41:55 +0100 schrieb Hans Hagen pra...@wxs.nl: in fact you get: \startTest Eins, zwei, drei \stopTest because of the comment and we ignore all till the end of the first line I still don't understand it. This works: \startTest Eins, zwei, drei \stopTest This doesn't work (context stops with error): \startTest %Test Eins, zwei, drei \stopTest It seems that context fails whenever there is a comment inside the database listing (or database file). I actually would like to read in a database file and skip the first row, but because of this problem it doesn't work. has to do with catcode changes so % is no longer % - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex crashes
Am 2014-01-21 um 21:40 schrieb Henning Hraban Ramm te...@fiee.net: current version: 2014.01.21 10:58 or current version: 2014.01.21 16:07 on OSX 10.9 structures end of sectionblock 'backpart' Assertion failed: (type(p)==glue_spec_node), function delete_glue_ref, file ../../../source/texk/web2c/luatexdir/tex/texnodes.w, line 2942. mtx-context | fatal error: no return code, message: luatex: execution interrupted structures end of sectionblock 'backpart' Assertion failed: (type(p)==glue_spec_node), function delete_glue_ref, file ../../../source/texk/web2c/luatexdir/tex/texnodes.w, line 2942. mtx-context | fatal error: no return code, message: luajittex: execution interrupted ConTeXt ver: 2014.01.21 16:07 MKIV beta fmt: 2014.1.21 int: english/english This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) This is LuajitTeX, Version beta-0.78.2 (TeX Live 2014/dev) The problems seems to be in the index mechanism, specifically in \placeindex. If I use \completeindex[criterium=all], it runs through, then I can replace it with \placeindex (to get rid of the title), and it works, while I don’t change anything. If I remove the „good“ TUC file, I get the crash again, and no TUC file is created. If I put it back, it works again. I didn’t yet manage to create a minimal example, but it’s the same with all of my songbooklets that use registers for an alphabetical ToC. It doesn’t matter if I use LuaTeX or LuaJitTeX. Now I’ll look for a newer binary. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex crashes
On Tue, Jan 21, 2014 at 5:49 PM, Henning Hraban Ramm wrote: Now I’ll look for a newer binary. No need to. Version 0.78.2 just came out (last week). While not impossible, it is highly unlikely that Taco addressed exactly this bug in the last week. What you could theoretically do is a binary search to find out which (old) version/commit broke the functionality. (Or simply continue working on a minimal example to send to Taco.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex crashes
On 1/21/2014 6:02 PM, Mojca Miklavec wrote: On Tue, Jan 21, 2014 at 5:49 PM, Henning Hraban Ramm wrote: Now I’ll look for a newer binary. No need to. Version 0.78.2 just came out (last week). While not impossible, it is highly unlikely that Taco addressed exactly this bug in the last week. What you could theoretically do is a binary search to find out which (old) version/commit broke the functionality. (Or simply continue working on a minimal example to send to Taco.) in fact luigi and i addressed that kind of bug last week; don't blame taco for it -) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex crashes
Am 2014-01-21 um 22:49 schrieb Henning Hraban Ramm te...@fiee.net: ConTeXt ver: 2014.01.21 16:07 MKIV beta fmt: 2014.1.21 int: english/english This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) This is LuajitTeX, Version beta-0.78.2 (TeX Live 2014/dev) The problems seems to be in the index mechanism, specifically in \placeindex. If I use \completeindex[criterium=all], it runs through, then I can replace it with \placeindex (to get rid of the title), and it works, while I don’t change anything. If I remove the „good“ TUC file, I get the crash again, and no TUC file is created. If I put it back, it works again. Rather minimal example: --- \setupregister[index][align=yes] \starttext \dorecurse{20}{% \expanded{\chapter{My chapter \recurselevel}} \expanded{\index{Index entry \recurselevel}} \expanded{\section{My Zapf \recurselevel}} \input zapf \expanded{\section{My Tufte \recurselevel}} \input tufte } \completeindex %\placeindex \stoptext --- Without the setup [align=yes] I get a different error, but no crash of the binary: structuresectioning chapter @ level 2 : 0.21 - \headtext {index} ! Attempt to double-free glue_spec node 5028, ignored. system tex error on line 17 in file /Users/hraban/Documents/projekte/context-tests/indexcrash.tex: Attempt to double-free glue_spec node 5028, ignored ... 7 \expanded{\chapter{My chapter \recurselevel}} 8 \expanded{\index{Index entry \recurselevel}} 9 \expanded{\section{My Zapf \recurselevel}} 10 \input zapf 11 \expanded{\section{My Tufte \recurselevel}} 12 \input tufte 13 } 14 15 \completeindex 16 %\placeindex 17 18 \stoptext \page_shipouts_normal ...box \shipoutscratchbox }} \else \page_shipouts_ignor... \page_boxes_shipout ... {\box \shipoutscratchbox } \fi \setnextrealpageno \th... \page_otr_construct_and_shipout ...cted_page #1#2} \page_otr_flush_pending_co... \page_sides_output_routine_nop ...de_float_output \global \d_page_sides_vsiz... \page_sides_output_routine ..._output_routine_nop \fi \page_otr_triggered_output_routine ...and_routine \fi ... l.17 Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] New header
Hello, Thank you for your reply. I do not understand all of the code, even if I use MetaPost but with Asymptote. I would also fit the dimensions of my papers as I used to do (\usepackage [ a4paper, hmargin = 1.5cm, vmargin =1.5cm] {geometry}) Thank you. attachment.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] enable kerning with discretionary hyphen
On 01/19/2014 11:43 PM, Hans Hagen wrote: On 1/19/2014 6:51 PM, Pablo Rodriguez wrote: [...] Even in the case it could work, I would like to know how I could define commands (\ConTeXt or \TeX) only referred to individual fonts. just use \def\ConTeXt{Con\-TeXt} then or \def\ConTeXt{Con\-text} or whatever you like ... we're not that picky about it. Many thanks for your reply, Hans. Sorry, only one more question on this topic: isn’t it possible to define something such as the following pseudocode? if emphasis (or italics): (\ConTeXt}{definition} elif smallcaps: (\ConTeXt}{definition} else: (\ConTeXt}{definition} Well, I guess Ι‘m that picky about it :-). Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] enable kerning with discretionary hyphen
You can use the \fontalternative command to check for the current alternative (upright, italic, bold etc.) of the font. \def\Test {\processaction [\fontalternative] [ tf=Upright, it=Italic, sl=Slanted, bf=Bold, bi=Bolditalic, bs=Boldslanted, unknown=Unknown fontalternative]} \starttext “\Test” {\it “\Test”} {\bs “\Test”} {\sc “\Test”} \stoptext On 21.01.2014 21:34:17, Pablo Rodriguez oi...@gmx.es wrote: On 01/19/2014 11:43 PM, Hans Hagen wrote: On 1/19/2014 6:51 PM, Pablo Rodriguez wrote: [...] Even in the case it could work, I would like to know how I could define commands (\ConTeXt or \TeX) only referred to individual fonts. just use \def\ConTeXt{Con\-TeXt} then or \def\ConTeXt{Con\-text} or whatever you like ... we're not that picky about it. Many thanks for your reply, Hans. Sorry, only one more question on this topic: isn’t it possible to define something such as the following pseudocode? if emphasis (or italics): (\ConTeXt}{definition} elif smallcaps: (\ConTeXt}{definition} else: (\ConTeXt}{definition} Well, I guess Ι‘m that picky about it :-). Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comment after \startseparatedlist[...]
Am Tue, 21 Jan 2014 17:51:17 +0100 schrieb Hans Hagen pra...@wxs.nl: has to do with catcode changes so % is no longer % Thanks for the hint. I have tried to do it like that (from Mojca Miklavec's My Way): \usemodule[database] \unprotect \startsetups Data:unix \catcode`\%=\@@comment \stopsetups \protect \defineseparatedlist [Data] [ separator=tab, before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD, setups=unix ] \starttext \startData % time LG LG-SD HG HG-SD p 24 0.740.361.190.510.15 48 0.900.651.450.540.21 72 1.230.351.590.590.27 \stopData \stoptext ... but still, context stops with an error. I have also tried to use \# like in the My Way example without success. Is this supposed to work? Kind regards, Joshua Krämer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comment after \startseparatedlist[...]
You can add “commentchar=\letterpercent” to your separatedlist definition which will make % the character for comments, the setups hack isn’t necessary. Wolfgang On 21.01.2014 23:13:25, Joshua Krämer joshua.krae...@gmail.com wrote: Am Tue, 21 Jan 2014 17:51:17 +0100 schrieb Hans Hagen pra...@wxs.nl: has to do with catcode changes so % is no longer % Thanks for the hint. I have tried to do it like that (from Mojca Miklavec's My Way): \usemodule[database] \unprotect \startsetups Data:unix \catcode`\%=\@@comment \stopsetups \protect \defineseparatedlist [Data] [ separator=tab, before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD, setups=unix ] \starttext \startData % time LG LG-SD HG HG-SD p 24 0.74 0.36 1.19 0.51 0.15 48 0.90 0.65 1.45 0.54 0.21 72 1.23 0.35 1.59 0.59 0.27 \stopData \stoptext ... but still, context stops with an error. I have also tried to use \# like in the My Way example without success. Is this supposed to work? Kind regards, Joshua Krämer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] New header
Am Tue, 21 Jan 2014 20:02:19 +0100 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: I would also fit the dimensions of my papers as I used to do (\usepackage [ a4paper, hmargin = 1.5cm, vmargin =1.5cm] {geometry}) Thank you. There is a wiki page about setting up the page layout: http://wiki.contextgarden.net/Layout The following sets the space around the type area to 1.5cm: \setuplayout [ backspace=1.5cm, width=middle, topspace=1.5cm, height=middle, ] \showframe % very useful when setting up the layout \starttext \input{knuth} \stoptext Kind regards, Joshua Krämer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comment after \startseparatedlist[...]
Am Tue, 21 Jan 2014 23:19:43 +0100 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: You can add “commentchar=\letterpercent” to your separatedlist definition which will make % the character for comments, the setups hack isn’t necessary. Thank you, I have added it to the Wiki. Kind regards, Joshua Krämer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Change the default text colour for entire document
Hi, In ConTeXt to change the default text colour for the entire document, there are at least two settings that need to be configured: \setupcolors[textcolor=red] \setupinmargin[line=13,color=red,style=slanted,] The border colour for tables remains black: \setupcolors[textcolor=red] \setupinmargin[color=red] \starttext {\bTABLE \bTR \bTD One \eTD \bTD Two \eTD \eTR \eTABLE} \stoptext How can you override *all* instances of black? (Ideally there would be a single setting that is inherited by all.) That is, it is difficult to know all the various aspects of a ConTeXt document that use the default black colour -- margins, body text, table borders, and possibly more that I don't know about. Thank you! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___