Re: [NTG-context] upto current
Hi Bill, Am 22.03.2013 um 15:19 schrieb Bill Meahan subscribed_li...@meahan.net: On 03/22/2013 03:31 AM, Keith J. Schultz wrote: Hi All, Maybe, we could setup a collaborative work group to do the documentation. That is a group of us are responsible for certain groups of commands. This way the manuals can become more complete. That way some of the more advance stuff that is hardly documented finally gets documented. What we would need is a specification for: [snip] In 45+ years of programming[1] it has never ceased to amaze me how the wheel has to be reinvented for every new system whether language, macro package or whatever. Why do it again? Why not adopt some documentation system that is already widely-used and for which infrastructure and knowledge of use is already in place? I agree with your statement fully. Specification is a loaded word, too! What I was trying to say that we need convention how things are to be laid out! Setting up, maybe, a module to facilitate a common look. Otherwise the manuals will be a mess of styles and clarity. I have no investment in any particular system. I'm happily generating other types of non-computer-related documents using reStructuredText since I can easily convert that various publication formats as required without separate source files for each format. It seems to me docutils has everything that would be needed to document ConTeXt and is very widely used given the popularity of Python (which makes me cringe). If doxygen or something else would work better, so be it. The point is, **use something that exists instead of expending time and effort reinventing the wheel yet again!** I was thinking of using ConTeXt! [1] I was, am and will be a programmer and not a software developer or software engineer. The term adequately depicts what I did/do while the others are simply too pretentious. Find the old article Real Programmers Don't Use Pascal in an archive somewhere -- I've been a real programmer and I suspect Hans is, too. :) Sorry for the rants but it is so frustrating to have to install so many different language support and documentation systems simply because I use FOSS tools exclusively. No Problem. regards Keith. ___ 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] Hiding text
Hello, thanks HW - both solutions are useful. Lukas On Fri, 22 Mar 2013 18:18:00 +0100, Hans Hagen pra...@wxs.nl wrote: \def\starthidden#1\stophidden{} \usemodule[annotation] \defineannotation[Hidden][alternative=none] \starttext A \Hidden{B} C A \startHidden B\stopHidden C \stoptext -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] command reference (was: upto current)
Hi Peter, All, Sorry for the late reply. As such looks good! I have no preferences, as to the formats, that is something the community or those involved should decide. regards Keith. Am 22.03.2013 um 09:26 schrieb Peter Münster pmli...@free.fr: Hi Keith, What about one lua table per command? See also: - http://meeting.contextgarden.net/2010/talks/2010-09-14-peter-referencelua/ - http://thread.gmane.org/gmane.comp.tex.context.devel/1507 - https://foundry.supelec.fr/scm/viewvc.php/context-commands/?root=contextman ___ 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] command reference (was: upto current)
Hi All, I agree that for the command reference should be fairly output format free, but we have to keep in mind we will need a unified look for: 1) Wiki 2) PDFs Also, we should not forget that we need examples with explanations. regards Keith. Am 22.03.2013 um 17:07 schrieb Sietse Brouwer sbbrou...@gmail.com: Peter wrote: What about one lua table per command? See also: - http://meeting.contextgarden.net/2010/talks/2010-09-14-peter-referencelua/ NB1: I waffled a lot about wiki templates in the previous e-mail, but of course it is also an option to use the Lua tables format and store those files on the wiki. That gives us the visibility and editability of the wiki without binding us to the wiki template format. ___ 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] \startpagefigure[]\stoppagefigure enlarges page by 1 mm
Hello, \startpagefigure[...] ... \stoppagefigure enlarges page by 1 mm in both directions. This is an undesired effect as when the printer has auto-select-page mode on (which is useful when printing a document with mixed A4 and A3 pages) and an A4 page (210 x 297 mm) is enlarged to 211 x 298, the printer doesn't (auto)choose A4 but a nearest BIGGER page (8.5 x 13 in page in my case). Try the code: t.mkiv \starttext \startpagefigure[A4.pdf]\stoppagefigure \stoptext Is that a wanted behavior? How to avoid enlarging the inserted page? TIA. Best regards, Lukas NB: This is LuaTeX, Version beta-0.70.2-201214 (TeX Live 2012/W32TeX) -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 A4.pdf Description: Adobe PDF document t.mkiv Description: Binary data t.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] structure: project, product, structureresetset, ...
Hello, I have a *project* that consists of a book in 3 volumes. Each volume is a *part*. Each volume or part has a (recto-verso) title page. Each volume or part also has front and back matter: table of contents, bibliography, index, ... Each volume or part also has *appendices* Thus, I have 3 *products* corresponding to the three volumes. Each product has *components*: chapters, appendices, ... Now, I would like the second volume to know that it is Part II and the third volume to know that it is Part III. I would also like to continue the chapter numbering in succession in each volume: i.e. 1, 2, 3 in Part I; 4, 5, 6 in Part II; 7, 8, 9 in Part III. Furthermore, I would like the appendices to do likewise: i.e. A, B in Part I; C, D, and E in Part II; F in Part III. Of course, I need to specify in my *environment* \definestructureresetset [default] [0,0] [1] \setuphead [part] [sectionresetset=default,conversion=Romannumerals] But... how do I propagate the numbering from product to product, that is part to part? Everything was just fine when all of the parts were collected into a single product having a unique front and back matter and all of the appendices at the end... It should be simple, but sometimes I fail to see the obvious! :) 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] \startpagefigure[]\stoppagefigure enlarges page by 1 mm
Am 25.03.2013 um 16:25 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, \startpagefigure[...] ... \stoppagefigure enlarges page by 1 mm in both directions. It’s 0.25ex on each side. This is an undesired effect as when the printer has auto-select-page mode on (which is useful when printing a document with mixed A4 and A3 pages) and an A4 page (210 x 297 mm) is enlarged to 211 x 298, the printer doesn't (auto)choose A4 but a nearest BIGGER page (8.5 x 13 in page in my case). The definition of \startpagefigure in page-app.mkiv needs a change because \externalfigureparameter\c!offset uses always the global setting. % \def\page_figures_start[#1][#2]% % {\bgroup %\setupexternalfigure[\v!page:\v!figure][\c!offset=\v!overlay,#2]% %\startTEXpage[\c!offset=\externalfigureparameter\c!offset]% % \externalfigure[#1][\v!page:\v!figure]\ignorespaces} % so we can put some text below the graphic \def\page_figures_start[#1][#2]% {\bgroup \def\currentexternalfigure{\v!page:\v!figure}% \setupcurrentexternalfigure[\c!offset=\v!overlay,#2]% \startTEXpage[\c!offset=\externalfigureparameter\c!offset]% \externalfigure[#1]\ignorespaces} % so we can put some text below the graphic \def\page_figures_start[#1][#2]% {\bgroup \setupexternalfigure[\v!page:\v!figure][\c!offset=\v!overlay,#2]% \startTEXpage[\c!offset=\namedexternalfigureparameter{\v!page:\v!figure}\c!offset]% \externalfigure[#1]\ignorespaces} % so we can put some text below the graphic BTW: You can use \pagefigure[image] instead of \startpagefigure[image]\stoppagefigure. 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] Suggestion for bibtex: command to switch between upper and lower case for title
Dear context folks, I would like to have the possibility to change between upper and lower case in titles for bibliography items, e.g. for English and German items. This is controlled by the bst-files as described in [1]. But changing these files after an update is rather annoying. Is there maybe even such a function that I do not know? Thanks, Xenia [1] http://www.ntg.nl/pipermail/ntg-context/2011/059359.html ___ 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] setups in the latest Context release
Hello Everyone I have been using the following setup (provided by Wolfgang on this list) to format my chapter headings till now. However, it does not work since I upgraded by context installation today. If the entire *\startlinealignment \stoplinealignment* block is copied outside the setups then it works fine. So the change must have been in the interface for *setups*. Please let me know if there has been a change OR I have made some kind of mistake. Thank you, Devendra Ghate - \startsetups[head:margin] \startlinealignment[left] \startframed [width=1cm, height=3cm, frame=on, align={flushleft,nothyphenated,verytolerant,low}] \headtextcontent \stopframed % \inmargin[location=outer,align={right}]{% \framed[% width=3cm, height=3cm, align={bottom,middle}, frame=on]{\headnumbercontent} } \stoplinealignment \stopsetups \defineheadalternative[margin][renderingsetup=head:margin] \definehead[dchapter][chapter] \setuphead[dchapter][alternative=margin] \starttext \dchapter{Inexpensive Monte Carlo} \stoptext -- Cheers, Devendra. ___ 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] structure: project, product, structureresetset, ...
Am 25.03.2013 um 16:29 schrieb Alan BRASLAU alan.bras...@cea.fr: Hello, I have a *project* that consists of a book in 3 volumes. Each volume is a *part*. Each volume or part has a (recto-verso) title page. Each volume or part also has front and back matter: table of contents, bibliography, index, ... Each volume or part also has *appendices* Thus, I have 3 *products* corresponding to the three volumes. Each product has *components*: chapters, appendices, ... Now, I would like the second volume to know that it is Part II and the third volume to know that it is Part III. I would also like to continue the chapter numbering in succession in each volume: i.e. 1, 2, 3 in Part I; 4, 5, 6 in Part II; 7, 8, 9 in Part III. Furthermore, I would like the appendices to do likewise: i.e. A, B in Part I; C, D, and E in Part II; F in Part III. Of course, I need to specify in my *environment* \definestructureresetset [default] [0,0] [1] \setuphead [part] [sectionresetset=default,conversion=Romannumerals] But... how do I propagate the numbering from product to product, that is part to part? Everything was just fine when all of the parts were collected into a single product having a unique front and back matter and all of the appendices at the end... It should be simple, but sometimes I fail to see the obvious! :) \startsectionblockenvironment[bodypart] \setupheadnumber[chapter][6] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupheadnumber[chapter][2] \stopsectionblockenvironment \starttext \startbodymatter \chapter{Chapter} \stopbodymatter \startappendices \chapter{Appendix} \stopappendices \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] setups in the latest Context release
Am 25.03.2013 um 18:33 schrieb Devendra Ghate devendra.gh...@gmail.com: Hello Everyone I have been using the following setup (provided by Wolfgang on this list) to format my chapter headings till now. However, it does not work since I upgraded by context installation today. If the entire *\startlinealignment \stoplinealignment* block is copied outside the setups then it works fine. So the change must have been in the interface for *setups*. Please let me know if there has been a change OR I have made some kind of mistake. It is a bug but I sent a fix for it to the developer list. 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] Suggestion for bibtex: command to switch between upper and lower case for title
On 3/25/2013 6:10 PM, Xenia wrote: Dear context folks, I would like to have the possibility to change between upper and lower case in titles for bibliography items, e.g. for English and German items. This is controlled by the bst-files as described in [1]. But changing these files after an update is rather annoying. Is there maybe even such a function that I do not know? whenever you can set a style, you can do this: style={\setcharactercasing[WORD]} - 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] Suggestion for bibtex: command to switch between upper and lower case for title
On 25.03.2013 21:05, Hans Hagen wrote: On 3/25/2013 6:10 PM, Xenia wrote: Dear context folks, I would like to have the possibility to change between upper and lower case in titles for bibliography items, e.g. for English and German items. This is controlled by the bst-files as described in [1]. But changing these files after an update is rather annoying. Is there maybe even such a function that I do not know? whenever you can set a style, you can do this: style={\setcharactercasing[WORD]} I don't understand what exactly that does and how to use it. Where do I have to add this line? ___ 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] man pages for ConTeXt: looking for volunteers
Sietse wrote: 5. Lastly, I think it would be good to include a standard SEE ALSO block at the end of each man page, to list all the scripts we have man pages for. Hans wrote: sure, we can add stuff How about this? seealsos seealso name=contextCompile a ConTeXt file or recompile ConTeXt./seealso seealso name=mtx-babelConvert LaTeX Babel codes for Greek into UTF-8/seealso seealso name=mtx-baseConTeXt TDS Management Tool (aka luatools)/seealso seealso name=mtx-cacheManage the ConTeXt and MetaTeX cache/seealso seealso name=mtx-charsGenerate MkII character tables/seealso seealso name=mtx-checkCheck ConTeXt file for syntax errors/seealso !-- FIXME what sort of color file? Example invocation (with existing file) would help. -- seealso name=mtx-colorsShow International Color Consortium table for a file/seealso seealso name=mtx-context (See `context`)/seealso seealso name=mtx-epubCreate ePub zip file/seealso seealso name=mtx-fcdConvenience script for fast directory-changing/seealso seealso name=mtx-flacCollect Flac albums in XML file/seealso seealso name=mtx-fontsInspect and manage the ConTeXt font database/seealso seealso name=mtx-grepA simple Lua-based grep/seealso seealso name=mtx-interfaceLists of ConTeXt commands (for text editors)/seealso seealso name=mtx-metapostCompile MetaPost to PDF/seealso !-- FIXME what sort of processes? -- seealso name=mtx-metatexMetaTeX process management/seealso seealso name=mtx-modulesExtract `%D`-style documentation from ConTeXt module source files/seealso seealso name=mtx-packageMerge: replace loadmodule(...) calls with module contents/seealso seealso name=mtx-patternsProduce files for ConTeXt describing hyphenation patters/seealso seealso name=mtx-pdfInspect metadata and font info of PDFs/seealso !-- FIXME needs better description? -- seealso name=mtx-profileLuaTeX profiler/seealso seealso name=mtx-rsyncRsync helper script/seealso seealso name=mtxrunMetaTeX factotum: run scripts and get info/seealso seealso name=mtx-sciteConvert spelling dictionaries to SciTE Lua format/seealso seealso name=mtx-serverSimple webserver/seealso seealso name=mtx-texworksTeXworks startup script/seealso seealso name=mtx-timingProcess timing data after `context --timing` run/seealso seealso name=mtx-toolsTools to glob directories into XML/seealso seealso name=mtx-unzipSimple unzipper/seealso seealso name=mtx-updateUpdating script for ConTeXt minimals, used by first-setup.sh/seealso !-- FIXME check mtx-watch description -- seealso name=mtx-watchWatch a file for changes/seealso /seealsos ___ 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 ___