[NTG-context] TeXlive 2012 released
http://tug.org/texlive/ -- luigi ___ 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] TeXlive 2012 released
Am 08.07.2012 10:59, schrieb luigi scarso: http://tug.org/texlive/ but it will take some time until it is available on all mirrors. Herbert ___ 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] strc-ref.mkvi
Hi, \from still uses the old color and style handler. Patch appended. Regards Philipp --- /home/laokoon/base/strc-ref.mkvi2012-07-08 16:50:29.892181182 +0200 +++ strc-ref.mkvi 2012-07-08 16:50:26.748864879 +0200 @@ -1498,8 +1498,7 @@ {#content} \def\dofromurlliteral#content% called at the lua end - {\dousestyleparameter\@@urstyle - \dousecolorparameter\@@urcolor + {\useurlstyleandcolor\c!style\c!color \hyphenatedurl{#content}} \let\dofromfiledescription\dofromurldescription pgphc4q1LwUr5.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pack-rul.mkiv
There also appears to be something wrong with \framed. Patch proposal attached. Philipp --- /home/laokoon/base/pack-rul.mkiv2012-07-08 17:02:11.528380091 +0200 +++ pack-rul.mkiv 2012-07-08 17:02:07.381735890 +0200 @@ -2620,12 +2620,12 @@ \advance\c_framed_temp\plusone \expandafter\def\csname\??framed#1\the\c_framed_temp:\s!parent\endcsname{\??framed#1}% \inheritlocalframed \bgroup - \edef\currentframed{#1\the\c_pack_framed_temp}% + \edef\currentframed{#1\the\c_framed_temp}% \pack_framed_initialize \dosingleempty\pack_framed_defined_process_indeed} \def\pack_framed_defined_process_indeed[#1]% - {\ifsingleargument % faster + {\iffirstargument % faster \setupcurrentframed[#1]% here ! \fi \pack_framed_process_indeed} pgpkswI8O1WeG.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug in \typo_paragraphs_setup_three.
Hello! I wanted to write a letter… Then it appeared that there is something wrong in \typo_paragraphs_setup_three. The problem is present in todays beta (as was in the previous version). Please try the attached minimal example. Thank you and kind regards Willi test-paragraphs.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \stretched
Hi Luigi, thanks for the explanation, now (finally) I understand the mechanism… Willi On Jul 5, 2012, at 5:49 PM, luigi scarso wrote: On Thu, Jul 5, 2012 at 5:23 PM, Willi Egger cont...@boede.nl wrote: Hello! I just downloaded yesterday night's version of Context and tried the example provided. - What is wrong with the first line with the \hbox? This stretched text is as long as the second line and uses the whole text width. The third line has a width of 10cm as it seems. \ruledhbox to 5cm{\stretched{to the limit}} means that the box has 5cm, but \stretched must use some horizontal size (i.e \hsize) to stretch the text. The twos are different lengths: it doesn't make much sense to strecth the text to the limit to its natural width (yes, it makes sense --- stretched is nil) try \ruledhbox to 5cm{\stretched{to the limit}} \ruledhbox to 5cm{\hsize=5cm\stretched{to the limit}} \ruledhbox to 5cm{\hsize=0cm\stretched{to the limit}} \ruledhbox{\stretched{to the limit}} \ruledhbox{\stretched[width=10cm]{to the limit}} -- luigi ___ 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 ___
[NTG-context] modes + arranging
Hi all, sorry for the slightly silly example, but it's something I can't figure out, and it has worked before. For processing my documents, I have defined a mode which will arrange pages. Here's the silly example test.tex: \startmode[arranged] \setuppapersize[A6][A4] \setuparranging[2*4] \stopmode \setuppagenumbering[state=stop] \starttext \dorecurse{8}{\null\vfill\centerline\recurselevel\vfill\null\page} \stoptext When I process this with context --mode=arranged test I get the expected output. When I process it with context --mode=arranged --arrange test the pages are NOT arranged. I need the --arrange switch for my data, and I don't understand what's going wrong here. Behavior is the same with current beta and a slightly older version (06.30). Thanks Thomas ___ 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] Bug in \typo_paragraphs_setup_three.
Am 08.07.2012 um 19:27 schrieb Willi Egger: Hello! I wanted to write a letter… Then it appeared that there is something wrong in \typo_paragraphs_setup_three. The problem is present in todays beta (as was in the previous version). Please try the attached minimal example. tabl-mis.mkiv \def\typo_paragraphs_setup[#1][#2][#3]% we are downward compatible with [each] and [1,3] {\ifthirdargument -\def\typo_paragraphs_setup_three[#1][#2][#3]% - {\doifelse{#2}\v!each - {\typo_paragraphs_setup_saved[#1][#3]} - {\def\typo_paragraphs_setup_step##1{\typo_paragraphs_setup_saved[#1:##1][#3]}% - \processcommalist[#2]\typo_paragraphs_setup_step}} +\doifelse{#2}\v!each + {\dorecurse{\namedparagraphsparameter{#1}\c!n}{\typo_paragraphs_setup_saved[#1:\recurselevel][#3]}} + {\def\typo_paragraphs_setup_step##1{\typo_paragraphs_setup_saved[#1:##1][#3]}% + \processcommalist[#2]\typo_paragraphs_setup_step}% \else\ifsecondargument \typo_paragraphs_setup_saved[#1][#2]% \else\iffirstargument \typo_paragraphs_setup_saved[#1]% \fi\fi\fi} \appendtoks \letvalue {\e!next \currentparagraphs}\nextparagraphs \setuevalue{\e!start\currentparagraphs}{\startparagraphs[\currentparagraphs]}% \letvalue {\e!stop \currentparagraphs}\stopparagraphs %setuevalue{\e!setup\currentparagraph\e!endsetup}{\typo_paragraphs_setup_saved[\currentparagraphs]}% - \dorecurse{\paragraphsparameter\c!n} - {\normalexpanded{\typo_paragraphs_setup_saved[\currentparagraphs:\recurselevel][\c!width=,\s!parent=\??paragraphs\currentparagraphs]}}% - \typo_paragraphs_setup_saved[\currentparagraphs][\c!distance=\zeropoint]% + \dorecurse{\paragraphsparameter\c!n} + {\normalexpanded{\typo_paragraphs_setup_saved[\currentparagraphs:\recurselevel][\c!width=,\c!distance=\zeropoint,\s!parent=\??paragraphs\currentparagraphs]}}% \to \everydefineparagraphs BTW 1: Change the \Attachment command to \nextAttachment. BTW 2: For something like your example tabulate would be simpler because you don’t have to define anything- \starttext \starttabulate \NC Bijlage \EQ Een foto. \NC\NR \stoptabulate \stoptext BTW 3: Hans added a few new commands to paragraphs to make a more table (natural table and xtable) like. %D \defineparagraphs[sample][n=2,rule=on] %D %D \startsample %D first \nextsample %D second \nextsample %D third %D \stopsample %D %D \startsample %D \input tufte \nextsample %D \input ward \nextsample %D \input davis \nextsample %D \input zapf %D \stopsample %D %D \startparagraphs[sample] %D first \nextsample %D second \nextsample %D third %D \stopparagraphs %D %D \startparagraphs[sample] %D \startparagraphscell %D first %D \stopparagraphscell %D \startparagraphscell %D second %D \stopparagraphscell %D \startparagraphscell %D third %D \stopparagraphscell %D \stopparagraphs Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug in \typo_paragraphs_setup_three.
On 8-7-2012 19:27, Willi Egger wrote: Hello! I wanted to write a letter… Then it appeared that there is something wrong in \typo_paragraphs_setup_three. The problem is present in todays beta (as was in the previous version). Please try the attached minimal example. fixed - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Bug in \typo_paragraphs_setup_three.
On 8-7-2012 20:15, Wolfgang Schuster wrote: \appendtoks \letvalue {\e!next \currentparagraphs}\nextparagraphs \setuevalue{\e!start\currentparagraphs}{\startparagraphs[\currentparagraphs]}% \letvalue {\e!stop \currentparagraphs}\stopparagraphs %setuevalue{\e!setup\currentparagraph\e!endsetup}{\typo_paragraphs_setup_saved[\currentparagraphs]}% - \dorecurse{\paragraphsparameter\c!n} - {\normalexpanded{\typo_paragraphs_setup_saved[\currentparagraphs:\recurselevel][\c!width=,\s!parent=\??paragraphs\currentparagraphs]}}% - \typo_paragraphs_setup_saved[\currentparagraphs][\c!distance=\zeropoint]% + \dorecurse{\paragraphsparameter\c!n} + {\normalexpanded{\typo_paragraphs_setup_saved[\currentparagraphs:\recurselevel][\c!width=,\c!distance=\zeropoint,\s!parent=\??paragraphs\currentparagraphs]}}% \to \everydefineparagraphs actually the lack of a parent chain one was a side effect of defining \s!parent more efficiently (=) which interferes with assignments so I reverted that (I'll make a dedicated chain command.) - 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 ___
[NTG-context] setupbars
This gives an error: \starttext \setupbars[rulethickness=4pt] \stoptext ! LuaTeX error main ctx instance:1: malformed number near '4pt'. ConTeXt ver: 2012.07.04 23:48 MKIV fmt: 2012.7.6 int: english/english Elsewhere this is ok, as for example in: \framed[rulethickness=4pt]{} Strangely in node-rul.mkiv I see: \c!rulethickness=2.5 whereas in pack-rul.mkiv: \c!rulethickness=\linewidth I am inclined to spot an error here, or at least an inconsistency in the API. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupbars
Am 08.07.2012 um 22:24 schrieb Meer, H. van der: This gives an error: \starttext \setupbars[rulethickness=4pt] \stoptext ! LuaTeX error main ctx instance:1: malformed number near '4pt'. ConTeXt ver: 2012.07.04 23:48 MKIV fmt: 2012.7.6 int: english/english Elsewhere this is ok, as for example in: \framed[rulethickness=4pt]{} Strangely in node-rul.mkiv I see: \c!rulethickness=2.5 whereas in pack-rul.mkiv: \c!rulethickness=\linewidth I am inclined to spot an error here, or at least an inconsistency in the API. \setupbars[rulethickness=0.5] \starttext \setupbars[unit=ex]\underbar{ex} \setupbars[unit=em]\underbar{em} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXlive 2012 released
On Sun, 8 Jul 2012 10:59:42 +0200 luigi scarso luigi.sca...@gmail.com wrote: http://tug.org/texlive/ Seems to have made it to several US mirrors. I installed it on both my laptop and my desktop a short while ago. Each used a different mirror for the installation. -- Bill Meahan, Westland, Michigan USA “Writing is a combination of intangible creative fantasy and appallingly hard work.” —Anthony Powell This message is digitally signed with an X.509 certificate to prove it is from me and has not been altered since it was sent. ___ 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] setupbars
Thansk, I see. \setupbars doesn't give a hit on ConTeXt-wiki, so I couldn't find this. Still I dare say, it is a pity that [rulethickness=] gets a different meaning here than elsewhere. I would like to ask to reconsider, because I strongly believe in consistency in the API (though I am ready to admit that it is not easy to maintain and confess guilty myself at more than one occasion). That is either change all rulethickness's everywhere to this scheme or otherwise. Or did this already happened and did I miss that? And of course, the easiest solution would be if the code itself could sort out the difference between having been given a fraction or a length. Hans van der Meer On 8 jul. 2012, at 22:44, Wolfgang Schuster wrote: Am 08.07.2012 um 22:24 schrieb Meer, H. van der: This gives an error: \starttext \setupbars[rulethickness=4pt] \stoptext ! LuaTeX error main ctx instance:1: malformed number near '4pt'. ConTeXt ver: 2012.07.04 23:48 MKIV fmt: 2012.7.6 int: english/english Elsewhere this is ok, as for example in: \framed[rulethickness=4pt]{} Strangely in node-rul.mkiv I see: \c!rulethickness=2.5 whereas in pack-rul.mkiv: \c!rulethickness=\linewidth I am inclined to spot an error here, or at least an inconsistency in the API. \setupbars[rulethickness=0.5] \starttext \setupbars[unit=ex]\underbar{ex} \setupbars[unit=em]\underbar{em} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] modes + arranging
On 8-7-2012 20:06, Thomas A. Schmitz wrote: Hi all, sorry for the slightly silly example, but it's something I can't figure out, and it has worked before. For processing my documents, I have defined a mode which will arrange pages. Here's the silly example test.tex: Can you test with c_flags.noarrange = nil in line 671 in mtx-context.lua (some time ago the 'opt' file has been replaced by passing commandline arguments and this slipped through). 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 ___
[NTG-context] Page Backgrounds
Hey list, On the cover page of my book I'd like just an image displayed and another image used as the background for every other page in the book. So I put this in my environment, % Cover image... \definelayer [CoverImage] [x=0mm, y=0mm, \paperwidth, \paperheight] \setupbackgrounds[page][background=CoverImage] \setlayer [CoverImage]% name of the layer {\externalfigure [Makeup/Images/Cover.jpg] [align=center, \paperwidth, \paperheight]} % the actual contents of the layer % Regular background image... \definelayer [BackgroundImage] [x=0mm, y=0mm, \paperwidth, \paperheight, repeat=yes] \setlayer [BackgroundImage] % name of the layer {\externalfigure [Makeup/Images/Background.png] [align=center, \paperwidth, \paperheight]} % the actual contents of the layer , the following in the book's first page, \setupbackgrounds[page][background=CoverImage] , and the following on second page, \setupbackgrounds[page][background=BackgroundImage] . But this does not work properly. What ends up happening is the cover image is displayed correctly, but every page after that just has a blank white background. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] modes + arranging
On 07/09/2012 12:17 AM, Hans Hagen wrote: Can you test with c_flags.noarrange = nil in line 671 in mtx-context.lua (some time ago the 'opt' file has been replaced by passing commandline arguments and this slipped through). Hans Hi Hans, yes, when I change this line, arranging works again! Thanks for the quick fix! Thomas ___ 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 ___