Re: [NTG-context] Help with Long Titles
Hi Malte, If you say \setvariables [titlepage] [set=\texsetup{titlepage}, project={Pearson}, title={\startframedtext[width=\textwidth,frame=off] This document title is very long, \crlf so I'd like to break it into two lines \stopframedtext}, author={Tony Mueller}, version={Version 1.0.0}] the title is broken where you put \crlf. Is that what you want? Best regards: OK On 19 oct. 2012, at 02:29, Malte Stien ma...@stien.de wrote: Hello, I am using a the startsetups mechanism that defines a title page in my environment file. That way anyone creating a document in my organisation can create a new document and get a consistent look of the title page. There is one problem with this: On occasions I get very long document titles and then the title extends over the left-hand edge of the page. I would like to incorporate a new line into the document title; I'd even be happy to do that manually, ie. it does not have to be automatic. There are two problems here: 1. I had not had any success with putting a newline into the title; it will need to be not where the titlepage is defined but where it is used (see below). I have tried \par and \\ and none of them work. 2. Assuming I found a way to do this, I would need to also find a way of reducing the \blank[170mm] by the amount that the second line of the title takes up to render the information down the bottom in roughly the same place. If push comes to shove, I could create a second titlepage setup for two-line titles, but I much rather not. Is there a solution to that? Is there maybe a way to position the information down the bottom absolute? Here is minimal example (or something very close to that): % The title page \startsetups titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{project}} \textrule \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}} \blank[170mm] \starttabulate[|plf{\tfa}|prf{\tfa}|] \NC\tfa\copyright\thinspace Pearson Pty Ltd \NC \getvariable{titlepage}{author} \NC\NR \TB[small] \NC \color[darkgray]{Commercial in Confidence} \NC \color[darkgray]{\getvariable{titlepage}{version}} \NC\NR \stoptabulate \tfx Uncontrolled copy if printed. \stopstandardmakeup \stopsetups % ...and this is how it is being used \starttext \setvariables [titlepage] [set=\texsetup{titlepage}, project={Pearson}, title={This document title is very long, so I'd like to \par break it into two lines}, author={Tony Mueller}, version={Version 1.0.0}] \stoptext Thank you very much for all the help I have received so far. Regards, Malte. ___ 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] Table Numbering
Am 19.10.2012 um 02:19 schrieb Malte Stien ma...@stien.de: Thank you, Wolfgang. That works. When you update to the last beta you can drop the prefix setting because it is no enabled by default for floats. 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] Help with Long Titles
Am 19.10.2012 um 02:29 schrieb Malte Stien ma...@stien.de: Hello, I am using a the startsetups mechanism that defines a title page in my environment file. That way anyone creating a document in my organisation can create a new document and get a consistent look of the title page. There is one problem with this: On occasions I get very long document titles and then the title extends over the left-hand edge of the page. I would like to incorporate a new line into the document title; I'd even be happy to do that manually, ie. it does not have to be automatic. There are two problems here: 1. I had not had any success with putting a newline into the title; it will need to be not where the titlepage is defined but where it is used (see below). I have tried \par and \\ and none of them work. 2. Assuming I found a way to do this, I would need to also find a way of reducing the \blank[170mm] by the amount that the second line of the title takes up to render the information down the bottom in roughly the same place. If push comes to shove, I could create a second titlepage setup for two-line titles, but I much rather not. Is there a solution to that? Is there maybe a way to position the information down the bottom absolute? Here is minimal example (or something very close to that): % The title page \startsetups titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{project}} \textrule \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}} Replace the line above with this block: \startframed[frame=off,align=normal,offset=none,foregroundstyle=\tfc,foregroundcolor=darkgray] \getvariable{titlepage}{title} \stopframed Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Question about language
Greetings! I want to contribute to the Spanish translation in the lang-txt.luahttp://gitorious.org/context/context/blobs/origin/tex/context/base/lang-txt.lua file. How do I do that? Thanks! ___ 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] Question about language
On 19-10-2012 06:36, Andres Conrado Montoya wrote: Greetings! I want to contribute to the Spanish translation in the lang-txt.luahttp://gitorious.org/context/context/blobs/origin/tex/context/base/lang-txt.lua file. How do I do that? Thanks! just send me patches (best edit the file and send me that so that I can do a diff as labels are spread over the file) - 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] Current ConTeXt wiki
On Thu, Oct 18, 2012 at 7:42 PM, Sietse Brouwer wrote: Hello Malte, Mojca, Malte wrote: PS: The latest stable seems to still be 2011.05.18; any reason why that does not get updated? This was discussed on the mailing list a while ago; Mojca gave a rather complete answer. http://www.mail-archive.com/ntg-context@ntg.nl/msg65226.html @Mojca: you wrote, about promoting the version in TeX Live 2012 to stable/current, the following: I have no idea how Hans uploads current versions, but I could make a zip, upload it to CTAN and make it available as current in minimals. (If I forget to do that in less than a week, please remind me.) I have uploaded it to CTAN (I didn't get confirmation email yet), Hans has updated the version on Pragma and it already proliferated to the distribution. I completely forgot to remind you. :-) How about sometime this week, would that be attemptable? Then we can also update the wiki's ConTeXt engine. Now, you should blame me. I made a backup of the old context version (for Taco: current-backup) and updated to current (2012.05.30 11:26), but it doesn't work at all. It says pdfcrop failed, but my impression is that not even the temporary folder to store the tex file (and compile the pdf) gets generated. This issue needs Taco's help. (I can easily revert to the old version by renaming the folder, but sooner or later we need to upgrade the version.) I didn't touch wiki sources at all. 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] Current ConTeXt wiki
On 19-10-2012 10:26, Mojca Miklavec wrote: On Thu, Oct 18, 2012 at 7:42 PM, Sietse Brouwer wrote: Hello Malte, Mojca, Malte wrote: PS: The latest stable seems to still be 2011.05.18; any reason why that does not get updated? This was discussed on the mailing list a while ago; Mojca gave a rather complete answer. http://www.mail-archive.com/ntg-context@ntg.nl/msg65226.html @Mojca: you wrote, about promoting the version in TeX Live 2012 to stable/current, the following: I have no idea how Hans uploads current versions, but I could make a zip, upload it to CTAN and make it available as current in minimals. (If I forget to do that in less than a week, please remind me.) I have uploaded it to CTAN (I didn't get confirmation email yet), Hans has updated the version on Pragma and it already proliferated to the distribution. I completely forgot to remind you. :-) How about sometime this week, would that be attemptable? Then we can also update the wiki's ConTeXt engine. Now, you should blame me. I made a backup of the old context version (for Taco: current-backup) and updated to current (2012.05.30 11:26), but it doesn't work at all. It says pdfcrop failed, but my impression is that not even the temporary folder to store the tex file (and compile the pdf) gets generated. This issue needs Taco's help. (I can easily revert to the old version by renaming the folder, but sooner or later we need to upgrade the version.) I didn't touch wiki sources at all. isn't the wiki running the beta then? - 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] Current ConTeXt wiki
On 10/19/2012 10:26 AM, Mojca Miklavec wrote: I completely forgot to remind you. :-) How about sometime this week, would that be attemptable? Then we can also update the wiki's ConTeXt engine. Now, you should blame me. I made a backup of the old context version (for Taco: current-backup) and updated to current (2012.05.30 11:26), but it doesn't work at all. It says pdfcrop failed, Which it did, indeed. For future reference: the problem is that pdfcrop needs $ pdftex file.tex to run (using pdftex.fmt). You also updated pdftex, so the existing format was no longer valid. I've fixed it by creating a new pdftex.fmt. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \startfootnote\stopfootnote bug
Minimal example: \starttext \input tufte \startfootnote \input ward \stopfootnote \stoptext (works OK if one replaces \startfootnote \stopfootnote with \footnote{ }) Alan Runaway argument? \input ward \stopfootnote \stoptext ! File ended while scanning use of \strc_pickup_nop. system tex error on line 4 in file /usr/local/context/beta/tex/texmf-context/tex/context/base/cont-yes.mkiv: File ended while scanning use of \strc_pickup_nop ... 1 %D \module 2 %D [ file=cont-yes, 3 %Dversion=2012.06.01, 4 %D title=\CONTEXT\ Miscellaneous Macros, 5 %D subtitle=Startup Stub, 6 %D author=Hans Hagen, 7 %D date=\currentdate, 8 %D copyright={PRAGMA ADE \ \CONTEXT\ Development Team}] 9 %C 10 %C This module is part of the \CONTEXT\ macro||package and is 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for 12 %C details. 13 14 % At some point I will reconsider the \starttext .. \stoptext inserted text \par l.4 } } context.finishjob() \luat_start_lua_code_indeed ...ua \zerocount {#1}} l.78 \stopluacode Is this a scoop? Will we really eventually do away with \starttext \stoptext? I can't admit the number of times where I mistakenly write \startext \stoptext and of course generate an error! 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Current ConTeXt wiki
Hooray, we have a new stable! 1. Probably we should refresh the wiki's cache of context PNG examples? Some examples contain commands like \contextversionnumber, which are now stuck on 20111008 until their MD5 changes. Also, examples might change (or break) when compiled with the new stable; best to make that happen ourselves. Otherwise, a contributor might make an unrelated change to the example, and the example will unexpectedly change or break, and the contributor will think it's due to what he/she did. Patrick, do you know if forcing recompilation (immediate, or on page load) is doable? Perhaps deleting a PNG wil force it to be regenerated on page load? If it's non-trivial, I suppose we can leave it. 2. Improvement to the PHP script: make the text returned in case of failed compilation contain a category tag like [[Category:Examples with errors]], so that we can have a hidden maintenance category of examples that don't compile. It would need to be added to the return strings in the lines that match /return.*error/; if someone can send me a current copy of wikitex.php I can take care of this. (Also, I'd like to have a current copy so I can update http://wiki.contextgarden.net/ConTeXt_wiki:Context_tag_implementation ) 3. On running the stable and/or the beta Hans wrote: isn't the wiki running the beta then? No, it runs the latest stable. It might be possible to have a beta installation, too -- then users could specify context mode=beta -- but we'd have to look at forcing recompilation once a week (or so) when we update the beta. Depending on Patrick's answer on the feasibility of forcing recompilation, I could have a look at implementing this. Cheers, Sietse ___ 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] Current ConTeXt wiki
On 19-10-2012 14:34, Sietse Brouwer wrote: Hooray, we have a new stable! an old new stable -) 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] \startfootnote\stopfootnote bug
Am 19.10.2012 um 11:30 schrieb Alan BRASLAU alan.bras...@cea.fr: Minimal example: \starttext \input tufte \startfootnote \input ward \stopfootnote \stoptext Replace in strc-not.mkvi for the following block the named arguments with numbered arguments. This doesn’t work \unexpanded\def\strc_notations_start#tag#stoptag% {\begingroup \edef\currentnote{#tag}% \strc_constructions_initialize{#tag}% \strc_notes_synchronize \ifnotesenabled \strc_counters_increment_sub\currentconstructionnumber\currentconstructionlevel \fi \normalexpanded % not that efficient but also not that frequently used {\def\noexpand\strc_pickup_yes[##1]##2\csname\e!stop#stoptag\endcsname{\strc_notations_command_yes[##1]{##2}}% \def\noexpand\strc_pickup_nop ##1\csname\e!stop#stoptag\endcsname{\strc_notations_command_nop {##1}}}% \doifnextoptionalelse\strc_pickup_yes\strc_pickup_nop} but this does \unexpanded\def\strc_notations_start#1#2% {\begingroup \edef\currentnote{#1}% \strc_constructions_initialize{#1}% \strc_notes_synchronize \ifnotesenabled \strc_counters_increment_sub\currentconstructionnumber\currentconstructionlevel \fi \normalexpanded % not that efficient but also not that frequently used {\def\noexpand\strc_pickup_yes[##1]##2\csname\e!stop#2\endcsname{\strc_notations_command_yes[##1]{##2}}% \def\noexpand\strc_pickup_nop ##1\csname\e!stop#2\endcsname{\strc_notations_command_nop {##1}}}% \doifnextoptionalelse\strc_pickup_yes\strc_pickup_nop} 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 ___