Re: [NTG-context] Line break in a cell of a table
On Wed, 17 Apr 2013, H. Özoguz wrote: Good morning together, I want this: \starttext \starttable[|l|l|] \HL \NC First Entry \\ (Explanation) \VL Second Entry \AR (Unrelated, but you are using a wrong syntax. Each row should be: \NC \NC ... \NC \AR) \HL \stoptable \stoptext That is, line break after First Entry, but without leaving the first cell (first row, first column). The code does not work, how to? Use p column instead of l column \starttable[|p|l|] ... \stoptable BTW, I think that it is better to use Natural Table or tabulate instead of table environment. For example, you can write: \startTABLE \NC First Entry \\ (Explanation) \NC Second Entry \NC \NR \stopTABLE 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [***SPAM***] Re: Line break in a cell of a table
BTW, I think that it is better to use Natural Table or tabulate instead of table environment. For example, you can write: \startTABLE \NC First Entry \\ (Explanation) \NC Second Entry \NC \NR \stopTABLE Thanks Aditya. Can you give me a short reference to understand the difference, what is Natural Table? Is it the same as \placetable[][]{}{\starttable[]\stoptable} ? Huseyin ___ 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] [***SPAM***] Finetuning distances in cells
In this example \starttext \starttable[|l|c|l|] \HL \NC \THREE\JustCenter \it Natürliche Methoden \NC \AR \HL \stoptable \stoptext (which, by the way, gives an syntax-error with \startTABLE) the entry Natürliche Methoden is not perfectly vertically centered. The distance above to the horizontal line is (very) little smaller than the distance at the bottom. How to correct that? Perfectly it would be exactly reversed, the distance above should be smaller, than at the bottom. Huseyin ___ 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] [***SPAM***] Re: Line break in a cell of a table
On Wed, 17 Apr 2013, H. Özoguz wrote: BTW, I think that it is better to use Natural Table or tabulate instead of table environment. For example, you can write: \startTABLE \NC First Entry \\ (Explanation) \NC Second Entry \NC \NR \stopTABLE Thanks Aditya. Can you give me a short reference to understand the difference, what is Natural Table? See http://wiki.contextgarden.net/TABLE and http://tex.stackexchange.com/search?q=user%3A323+[tables] for examples. Is it the same as \placetable[][]{}{\starttable[]\stoptable} ? No. \placetable is a float mechanism, which can float any \hbox. For example, you can use: \placetable[..][..]{...}{\hbox{Hello world}} table, tables, tabulate, linetable, TABLE, xtable, are different wrappers around \halign for creating tables. See http://wiki.contextgarden.net/Tables_Overview for a partial comparison. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [***SPAM***] Finetuning distances in cells
On Wed, 17 Apr 2013, H. Özoguz wrote: In this example \starttext \starttable[|l|c|l|] \HL \NC \THREE\JustCenter \it Natürliche Methoden \NC \AR \HL \stoptable \stoptext (which, by the way, gives an syntax-error with \startTABLE) the entry Natürliche Methoden is not perfectly vertically centered. The distance above to the horizontal line is (very) little smaller than the distance at the bottom. How to correct that? Perfectly it would be exactly reversed, the distance above should be smaller, than at the bottom. It is much easier to fine-tune details with Natural Tables. Each cell of a natural table is a frame, so you can use settings for frames to change the style. \startsetups table:setups \setupTABLE[align={lohi}, toffset=1pt, bottset=3pt, align=flushleft] \stopsetups \bTABLE[setup=table:setups] \bTR \bTD[nc=3, align=middle, style=italic] Natürliche Methoden \eTD \eTR \bTR \bTD One\eTD \bTD Two\eTD \bTD Three \eTD \eTR \eTABLE 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [***SPAM***] Re: Finetuning distances in cells
It is much easier to fine-tune details with Natural Tables. Each cell of a natural table is a frame, so you can use settings for frames to change the style. \startsetups table:setups \setupTABLE[align={lohi}, toffset=1pt, bottset=3pt, align=flushleft] \stopsetups \bTABLE[setup=table:setups] \bTR \bTD[nc=3, align=middle, style=italic] Natürliche Methoden \eTD \eTR \bTR \bTD One\eTD \bTD Two\eTD \bTD Three \eTD \eTR \eTABLE Aditya If it works, I will try to change my big table to a Natural Table. I do not understand what the pt-Values do in your example, if I change them, nothing happens. Huseyin ___ 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] [***SPAM***] Re: Finetuning distances in cells
On Wed, 17 Apr 2013, H. Özoguz wrote: It is much easier to fine-tune details with Natural Tables. Each cell of a natural table is a frame, so you can use settings for frames to change the style. \startsetups table:setups \setupTABLE[align={lohi}, toffset=1pt, bottset=3pt, align=flushleft] \stopsetups \bTABLE[setup=table:setups] \bTR \bTD[nc=3, align=middle, style=italic] Natürliche Methoden \eTD \eTR \bTR \bTD One\eTD \bTD Two\eTD \bTD Three \eTD \eTR \eTABLE Aditya If it works, I will try to change my big table to a Natural Table. I do not understand what the pt-Values do in your example, if I change them, nothing happens. (Sorry, there were typos in the code). The offset between the top and bottom rule in each cell. Change them to something drastic like 1cm to see the affect. \startsetups table:setups \setupTABLE[align={lohi}, loffset=1pt, boffset=3cm, align=flushleft] \stopsetups \starttext \bTABLE[setups=table:setups] \bTR \bTD[nc=3, align=middle, style=italic] Natürliche Methoden \eTD \eTR \bTR \bTD One\eTD \bTD Two\eTD \bTD Three \eTD \eTR \eTABLE \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finetuning distances in cells
(Sorry, there were typos in the code). The offset between the top and bottom rule in each cell. Change them to something drastic like 1cm to see the affect. \startsetups table:setups \setupTABLE[align={lohi}, loffset=1pt, boffset=3cm, align=flushleft] \stopsetups \starttext \bTABLE[setups=table:setups] \bTR \bTD[nc=3, align=middle, style=italic] Natürliche Methoden \eTD \eTR \bTR \bTD One\eTD \bTD Two\eTD \bTD Three \eTD \eTR \eTABLE \stoptext Aditya Thanks, exactly what I wanted! Is it possible with this table-environment to create a table, where not all four horizontal and vertical lines are set? For example like: \starttext \starttable[|l|c|l|] \NC Blub1 \VL Blub2 \VL Blub3 \AR \HL \NC Lalala \VL Brumm \VL Boff \AR \HL \stoptable \stoptext Huseyin ___ 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] Mismatched font size when switching fonts in the chapter title
Mismatched font size when switching fonts in the chapter title \setupbodyfont[12pt] \definefontsynonym[PalatinoRoman][name:palatinolinotyperoman][features=default] \definefont[AnotherFont][PalatinoRoman sa 1] \starttext \chapter{On \AnotherFont Fonts} General readers \stoptextIt seems that if switching to another font in the chapter title, the size of these two typefaces is mismatched. This will produce the mismatched font size(On and Font), how to deal with this problem? Tim Li ___ 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] Finetuning distances in cells
On Wed, 17 Apr 2013, H. Özoguz wrote: (Sorry, there were typos in the code). The offset between the top and bottom rule in each cell. Change them to something drastic like 1cm to see the affect. \startsetups table:setups \setupTABLE[align={lohi}, loffset=1pt, boffset=3cm, align=flushleft] \stopsetups \starttext \bTABLE[setups=table:setups] \bTR \bTD[nc=3, align=middle, style=italic] Natürliche Methoden \eTD \eTR \bTR \bTD One\eTD \bTD Two\eTD \bTD Three \eTD \eTR \eTABLE \stoptext Aditya Thanks, exactly what I wanted! Is it possible with this table-environment to create a table, where not all four horizontal and vertical lines are set? For example like: \starttext \starttable[|l|c|l|] \NC Blub1 \VL Blub2 \VL Blub3 \AR \HL \NC Lalala \VL Brumm \VL Boff \AR \HL \stoptable \stoptext \setupTABLE[row][1][frame=off,leftframe=on,rightframe=on] \setupTABLE[column][first,last][frame=off,topframe=on,bottomframe=on] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Non-breaking spaces
For typographical fine-tuning one needs often non-breaking spaces. But not only full spaces, but half spaces, or even less. I have this example: and\hskip1pt/or But \hskip1pt is not non-breaking, like \, (half space) is. How to make it non-breaking? Or are there predfined ones, analog to \, ? Huseyin ___ 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] Mismatched font size when switching fonts in the chapter title
Hi Tim, [PalatinoRoman sa 1] This means PalatinoRoman scaled at 1 x bodyfontsize. The document's body font size is 12 pt, but chapter headers usually are ... like, about 2.4 * body font size? Hence the size mismatch. [PalatinoRoman sa *] This means AnotherFont is PalatinoRoman scaled to 1 x the font size at time of calling. Compare these two MWE's (I've changed the font name to texgyrepagellaregular so that the example will work for any ConTeXt user.) \setupbodyfont[12pt] \definefontsynonym[PalatinoRoman][texgyrepagellaregular][features=default] \definefont[AnotherFontSaOne][PalatinoRoman sa 1] \definefont[AnotherFontSaStar][PalatinoRoman sa *] \starttext \chapter{Fonts and \AnotherFontSaOne Fonts} Generalized \AnotherFontSaOne Generals. (Constant size) \chapter{Fonts and \AnotherFontSaStar Fonts} Generalized \AnotherFontSaStar Generals. (Adapt to current size) \stoptext I got this information from page 5 of the Fonts chapter of the long-coming manual. (Not the same as the document detailing what you can do with OTF and Lua, although I think that one, too, is called a fonts manual.) http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf 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] [***SPAM***] No line break in figure-captions
On 2013–04–16 H. Özoguz wrote: How to prevent line break in figure captions? \setupcaption [figure] [width=\textwidth, align=middle] Marco signature.asc Description: Digital 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] Mismatched font size when switching fonts in the chapter title
Sietse, Thanks for your detailed explanation. With your help, I have known the reason. Also, I am reading the new chapter on fonts. Best regards,Tim From: sbbrou...@gmail.com Date: Wed, 17 Apr 2013 10:11:19 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] Mismatched font size when switching fonts in the chapter title Hi Tim, [PalatinoRoman sa 1] This means PalatinoRoman scaled at 1 x bodyfontsize. The document's body font size is 12 pt, but chapter headers usually are ... like, about 2.4 * body font size? Hence the size mismatch. [PalatinoRoman sa *] This means AnotherFont is PalatinoRoman scaled to 1 x the font size at time of calling. Compare these two MWE's (I've changed the font name to texgyrepagellaregular so that the example will work for any ConTeXt user.) \setupbodyfont[12pt] \definefontsynonym[PalatinoRoman][texgyrepagellaregular][features=default] \definefont[AnotherFontSaOne][PalatinoRoman sa 1] \definefont[AnotherFontSaStar][PalatinoRoman sa *] \starttext \chapter{Fonts and \AnotherFontSaOne Fonts} Generalized \AnotherFontSaOne Generals. (Constant size) \chapter{Fonts and \AnotherFontSaStar Fonts} Generalized \AnotherFontSaStar Generals. (Adapt to current size) \stoptext I got this information from page 5 of the Fonts chapter of the long-coming manual. (Not the same as the document detailing what you can do with OTF and Lua, although I think that one, too, is called a fonts manual.) http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf 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 ___ ___ 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] [***SPAM***] Updating Context or Never change a running System?
Hello, I did my last Context-Project 15 months ago - a small book. Now I want to write the next book. Do you suggest to update my Context-installation? I have installed ConTeXt Standalone (Minimal?) My versions are: Contextversion: 2011.11.04 14:15 Contextversion -Number: 20004 14:15 MKIV Textengine LuaTeX Textengine-Number: 0.70.1 Which are the new versions? Are there important changes in the new versions? Where can I find an actual changelog? Regards Janis ___ 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] Detecting reference-errors
With \at[ref] one can get the pagenumber of a reference. If this reference is not there (maybe in another file, not included at that moment) there is no error given, but two question marks ??. That is of course useful, but what if I WANT an error? Because that is the only fast way to detect typing errors in references. Else I will have ?? at the end in the book, not very nice :) Huseyin ___ 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] Detecting reference-errors
With \at[ref] one can get the pagenumber of a reference. If this reference is not there (maybe in another file, not included at that moment) there is no error given, but two question marks ??. That is of course useful, but what if I WANT an error? Because that is the only fast way to detect typing errors in references. Else I will have ?? at the end in the book, not very nice Huseyin P.S.: Sorry for the other Mail with the wrong sender-adress. ___ 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] [***SPAM***] Updating Context or Never change a running System?
On Wed, Apr 17, 2013 at 12:30 PM, Jan Heinen jahei...@gmx.de wrote: Hello, I did my last Context-Project 15 months ago - a small book. Now I want to write the next book. Do you suggest to update my Context-installation? no, just make another standalone into a different folder and then try to port the project into the new one. I have installed ConTeXt Standalone (Minimal?) My versions are: Contextversion: 2011.11.04 14:15 Contextversion -Number: 20004 14:15 MKIV Textengine LuaTeX Textengine-Number: 0.70.1 old -- 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] Detecting reference-errors
On 2013–04–17 H. Özoguz wrote: With \at[ref] one can get the pagenumber of a reference. If this reference is not there (maybe in another file, not included at that moment) there is no error given, but two question marks ??. That is of course useful, but what if I WANT an error? Because that is the only fast way to detect typing errors in references. ConTeXt requires multiple passes to get the references right, which means the first run would always fail if missing references trigger an error and should be delayed to the second run. Seems possible, though. I use the following command to detect wrong references. It's not pretty, but it does it's job reasonably well. pdftotext file.pdf - | grep -E '\?\?|!!' Marco signature.asc Description: Digital 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] [***SPAM***] Footnotes indented, but with same distance between text and number
I indent footnotes with: \setupnotation[footnote][ alternative=left, width=1em, numbercommand=\high] But that causes the following ugliness: The distance between the footnote-number and the footnote-entry is not always the same, it depends now on the length of the footnote-number – see the difference of footnotenumber 9 and 10. By default, that is not the case. How to get the default results with indentation? It is not only an ugliness, it causes problems, when you have really much footnotes, than (with more than 99 or even more than 999 footnotes) the footnotenumber, and the footnote-entry overlap.) Testing by: \setupnotation[footnote][ alternative=left, width=1em, numbercommand=\high] \starttext \dorecurse{100}{\footnote{Fußnote \recurselevel}} \stoptext Huseyin ___ 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] [***SPAM***] Footnotes indented, but with same distance between text and number
On 2013–04–17 H. Özoguz wrote: How to get the default results with indentation? headalign=left Marco signature.asc Description: Digital 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] Footnotes indented, but with same distance between text and number
headalign=left Marco Does not work. For two digits, its ok, but beginning with 100 it fails. Try (see footnote 100): \setupnotation[footnote][ headalign=left, width=1em, numbercommand=\high] \starttext \dorecurse{100}{\footnote{Fußnote \recurselevel}} \stoptext Huseyin ___ 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] Detecting reference-errors
On 4/17/2013 12:55 PM, Marco Patzer wrote: On 2013–04–17 H. Özoguz wrote: With \at[ref] one can get the pagenumber of a reference. If this reference is not there (maybe in another file, not included at that moment) there is no error given, but two question marks ??. That is of course useful, but what if I WANT an error? Because that is the only fast way to detect typing errors in references. ConTeXt requires multiple passes to get the references right, which means the first run would always fail if missing references trigger an error and should be delayed to the second run. Seems possible, though. I use the following command to detect wrong references. It's not pretty, but it does it's job reasonably well. pdftotext file.pdf - | grep -E '\?\?|!!' If you run \starttext test \in{someplace}[somewhere] \stoptext there are messages in the log like: references unknown reference '[][somewhere]' as well as a summary: references start problematic references references unknown 1: [][somewhere] references stop problematic references - 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] Footnotes indented, but with same distance between text and number
Does not work. For two digits, its ok, but beginning with 100 it fails. Try (see footnote 100): Ok, I have seen the problem, I have simply to increase the width. 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 ___
Re: [NTG-context] Non-breaking spaces
On 4/17/2013 9:08 AM, H. Özoguz wrote: For typographical fine-tuning one needs often non-breaking spaces. But not only full spaces, but half spaces, or even less. I have this example: and\hskip1pt/or But \hskip1pt is not non-breaking, like \, (half space) is. How to make it non-breaking? Or are there predfined ones, analog to \, ? \nobreakspace \ideographicspace \ideographichalffillspace \twoperemspace \threeperemspace \fourperemspace \sixperemspace \figurespace \punctuationspace \breakablethinspace \hairspace \zerowidthspace \zwnj \zwj \narrownobreakspace or just their utf representation - 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] [***SPAM***] Updating Context or \Never change a running System\?
I have installed ConTeXt Standalone (Minimal?) My versions are: Contextversion: 2011.11.04 14:15 Contextversion -Number: 20004 14:15 MKIV Textengine LuaTeX Textengine-Number: 0.70.1 old The release notes here seem to be old: http://wiki.contextgarden.net/Release_Notes What nice new things can I find in the new version? Or is anywhere an actual changelog/release_note? Regards Janis ___ 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] How to find the source code/documentation for a specific command
On 4/16/2013 10:34 PM, cont...@thomas-corbiere.name wrote: Hi Hans, I searched for the files you reffered to and found them in the path “context\tex\texmf-context\tex\context”. Can I assume most (all?) commands are defined here? indeed, all the core commands are defined in: tex/context/base From what you said, do you mean that the code for a single command may be split into multiple files? normally it's done in one file, unless we're dealing with a combination of functionality I found the test files. What a great collection of examples! This sure will help. 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] [***SPAM***] Updating Context or Never change a running System?
On 4/17/2013 12:30 PM, Jan Heinen wrote: Hello, I did my last Context-Project 15 months ago - a small book. Now I want to write the next book. Do you suggest to update my Context-installation? I have installed ConTeXt Standalone (Minimal?) My versions are: Contextversion: 2011.11.04 14:15 Contextversion -Number: 20004 14:15 MKIV Textengine LuaTeX Textengine-Number: 0.70.1 Which are the new versions? Are there important changes in the new versions? Where can I find an actual changelog? depends on how advanced your docs are ... for a typical 'uses 10 ,ost popular commands' document an older version is probably quite ok but, if you update luatex, you also need to update context (and vise versa) 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] [***SPAM***] Updating Context or \Never change a running System\?
On 4/17/2013 3:18 PM, Jan Heinen wrote: I have installed ConTeXt Standalone (Minimal?) My versions are: Contextversion: 2011.11.04 14:15 Contextversion -Number: 20004 14:15 MKIV Textengine LuaTeX Textengine-Number: 0.70.1 old The release notes here seem to be old: http://wiki.contextgarden.net/Release_Notes What nice new things can I find in the new version? Or is anywhere an actual changelog/release_note? Taco normally made those when a new current showed up but it's a tedious job and he's quite busy now. (the current current is a pre-current that will get frozen when tl 2013 freezes) 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] Non-breaking spaces
Hi Hans, These commands are good to know! On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen pra...@wxs.nl wrote: \narrownobreakspace If a font does not have U+202F defined, what's the best way to redefine this to, say, one half of the current font's regular space U+0020 (with no shrinking or stretching of course). Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 error in \showboxes
Hi, the following example results in a LuaTeX error: \showboxes \starttext \dorecurse{30}{\footnote{foo}} \stoptext ! LuaTeX error ...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:524: You can't assign a glue_spec node to a prev field stack traceback: [C]: in function '__newindex' ...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:524: in function 'ruledbox' ...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:810: in function 'visualize' Marco signature.asc Description: Digital 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] Non-breaking spaces
On 4/17/2013 3:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Hans, These commands are good to know! On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen pra...@wxs.nl wrote: \narrownobreakspace If a font does not have U+202F defined, what's the best way to redefine this to, say, one half of the current font's regular space U+0020 (with no shrinking or stretching of course). it has nothing to do with fonts ... they are not characters bound to glyphs .. independent so to say ... dealt with at another level 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] Non-breaking spaces
On Wed, 17 Apr 2013 07:56:41 -0600, Hans Hagen pra...@wxs.nl wrote: On 4/17/2013 3:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Hans, These commands are good to know! On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen pra...@wxs.nl wrote: \narrownobreakspace If a font does not have U+202F defined, what's the best way to redefine this to, say, one half of the current font's regular space U+0020 (with no shrinking or stretching of course). it has nothing to do with fonts ... they are not characters bound to glyphs .. independent so to say ... dealt with at another level In spac-chr.mkiv there is Line 73: \edef\narrownobreakspace {\normalUchar202F} So in the preamble we have to do something like (spac-hor.mkiv, line 905) \edef\narrownobreakspace{\penalty\plustenthousand\kern .7ex} Then I can say, e.g. \defineactivecharater + {\narrownobreakspace} و+الباب (untested, but on my list) But per the current definition I should be able to define U+202F as, e.g., .7ex in the font and get the same effect, right? Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] Non-breaking spaces
Hi, On Wed, 17 Apr 2013 01:08:30 -0600, H. Özoguz h.oezo...@mmnetz.de wrote: How to make it non-breaking? See also my reply to Hans, basically you need a \penalty1 (See TeXBook, page 353, 110) Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 error in \showboxes
On 4/17/2013 3:39 PM, Marco Patzer wrote: Hi, the following example results in a LuaTeX error: \showboxes \starttext \dorecurse{30}{\footnote{foo}} \stoptext ! LuaTeX error ...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:524: You can't assign a glue_spec node to a prev field weird error ... a gluespec in a running list (i can intercept it but still) - 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] Non-breaking spaces
On 4/17/2013 4:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Wed, 17 Apr 2013 07:56:41 -0600, Hans Hagen pra...@wxs.nl wrote: On 4/17/2013 3:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Hans, These commands are good to know! On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen pra...@wxs.nl wrote: \narrownobreakspace If a font does not have U+202F defined, what's the best way to redefine this to, say, one half of the current font's regular space U+0020 (with no shrinking or stretching of course). it has nothing to do with fonts ... they are not characters bound to glyphs .. independent so to say ... dealt with at another level In spac-chr.mkiv there is Line 73: \edef\narrownobreakspace {\normalUchar202F} So in the preamble we have to do something like (spac-hor.mkiv, line 905) \edef\narrownobreakspace{\penalty\plustenthousand\kern .7ex} why redefine it? just keep it as is ... such an utf char automagically in mkiv becomes a combination of kern / skip / penalty ... if you start redefining yourself it also gets out of control when it's passed around don't worry about how that happens (just assume the abstraction is taken care of) Then I can say, e.g. \defineactivecharater + {\narrownobreakspace} و+الباب (untested, but on my list) But per the current definition I should be able to define U+202F as, e.g., .7ex in the font and get the same effect, right? why make a character active and let it expand to itself as letter? normally the font handler never sees that character as there is no character - glyph issue involved just insert the utf character as-is 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] [***SPAM***] Updating Context or \Never change a running System\?
Hello Janis, The closest you will get to a changelog, at the moment, is the git mirror of the source: http://repo.or.cz/w/context.git That is not so useful if you want to know what new features have arrived in the past year, but I thought I should mention it anyway. I think one could also find a reasonable subset of feature announcements by looking at e-mails to this list with the following properties * from:pra...@wxs.nl (that's Hans) * new in OR next beta OR new beta * after:2011-11-04 * (possibly: first in thread) Unluckily, I can't convince my Gmail to search for that --- it ignores the quotation marks, so I get buried in false positives. 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] Non-breaking spaces
On Wed, 17 Apr 2013 08:51:37 -0600, Hans Hagen pra...@wxs.nl wrote: \defineactivecharater + {\narrownobreakspace} و+الباب (untested, but on my list) But per the current definition I should be able to define U+202F as, e.g., .7ex in the font and get the same effect, right? why make a character active and let it expand to itself as letter? normally the font handler never sees that character as there is no character - glyph issue involved just insert the utf character as-is Sure, but two motivations: 1) In fine Arabic typesetting this can occur literally dozens of times a page, so I need something visible/convenient analogous to tilda/~ (which -- I am ashamed to say -- I still use in mkiv) 2) I can't currently see 202F in my editor (notepad++) and the current syntax-highlighting features don't display it automatically. (Eventually I have to port the ConTeXt support package for Npp to a lexer/plugin where I can define these things explicitly, but first I need someone who knows that lexer stuff to help...) Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] Non-breaking spaces
On 4/17/2013 5:28 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: (Eventually I have to port the ConTeXt support package for Npp to a lexer/plugin where I can define these things explicitly, but first I need someone who knows that lexer stuff to help...) it would be nice if there was a (say special dejavu mono) that has visual appearances for such characters anyway .. my scite lexer visualizes the spacers - 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 error in \showboxes
On 2013–04–17 Hans Hagen wrote: ! LuaTeX error ...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:524: You can't assign a glue_spec node to a prev field weird error ... a gluespec in a running list (i can intercept it but still) You broke LuajitTeX: context --jit b7r.tex mtx-context | redirect texlua - luajittex: luajittex --luaonly /home/marco/usr/local/share/context-beta/tex/texmf-linux-64/bin/mtxrun --script context --jit b7r.tex --redirected...r/local/share/context-beta/tex/texmf-linux-64/bin/mtxrun:177: attempt to index field 'searchers' (a nil value) Marco signature.asc Description: Digital 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] Vanishing chapter title from Contents
Hi, maybe, codes is our language :-) % define a new head\definehead[backmatterchapter][chapter] \starttext \startfrontmatter \title{Preface} \completecontent \stopfrontmatter \startbodymatter \chapter{First Chapter} \stopbodymatter \startbackmatter \backmatterchapter{Backmatter} \stopbackmatter \stoptext The chapter title Backmatter in the backmatter won't appear in the Contents. Why? How can I make it appear in the Contents? Best regards,Tim ___ 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] Vanishing chapter title from Contents
Am 17.04.2013 um 17:59 schrieb Tim Li timli2...@outlook.com: Hi, maybe, codes is our language :-) % define a new head \definehead[backmatterchapter][chapter] […] The chapter title Backmatter in the backmatter won't appear in the Contents. Why? How can I make it appear in the Contents? You have to redefine the \completecontent command to include “backmatterchapter” in the list of headings. \definecombinedlist[content][part,chapter,backmatterchapter,section,subsection,subsubsection,subsubsubsection] 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] LuaTeX error in \showboxes
On 4/17/2013 5:54 PM, Marco Patzer wrote: On 2013–04–17 Hans Hagen wrote: ! LuaTeX error ...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:524: You can't assign a glue_spec node to a prev field weird error ... a gluespec in a running list (i can intercept it but still) You broke LuajitTeX: context --jit b7r.tex mtx-context | redirect texlua - luajittex: luajittex --luaonly /home/marco/usr/local/share/context-beta/tex/texmf-linux-64/bin/mtxrun --script context --jit b7r.tex --redirected...r/local/share/context-beta/tex/texmf-linux-64/bin/mtxrun:177: attempt to index field 'searchers' (a nil value) hm, side effect of separating some code (and adding a bit more tracing to lib loading) ... new upload 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] bodyfont size in margin?
I would like to have the same font and especially the same size for inmargin texts. Why is the following program not honouring the size setting? % Font in margin text \def\MarkMaster{\inmargin[location=left]{{\switchtobodyfont[sans,8pt]\red MASTER SECTION}}} \starttext \startchapter[title=\MarkMaster test title] \input tufte \MarkMaster \input tufte \blank contextversion=\contextversion \stopchapter \stoptext Hans van der Meer marginfont.pdf Description: marginfont.pdf ___ 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] footnoterule
Is there a reason why the first does switches off the rule above the footnote \setupfootnotes[rule=off] but this doesn't? \setupnotation[footnote][rule=off]] Just try with \setupnotation[footnote][rule=off] % either this or the next one %\setupfootnotes[rule=off] \starttext Some footnote\footnote{The foonote}.\crlf \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] endnotemarkers
With the following setup my endnotes show up in the list with [number], as I would like to have it. But in the text they do not appear as [number] but just as plain numbers. Why does textcommand has not this effect, whereas numbercommand does? The manual strongly suggest this to me. \def\fnmarker#1{[#1]} \setupnotation[endnote][numbercommand=\fnmarker,textcommand=\fnmarker] 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] endnotemarkers
Am 17.04.2013 um 20:23 schrieb Meer, H. van der h.vanderm...@uva.nl: With the following setup my endnotes show up in the list with [number], as I would like to have it. But in the text they do not appear as [number] but just as plain numbers. Why does textcommand has not this effect, whereas numbercommand does? The manual strongly suggest this to me. \def\fnmarker#1{[#1]} \setupnotation[endnote][numbercommand=\fnmarker,textcommand=\fnmarker] \setupnote[endnote][textcommand=\groupedcommand{[}{]}] \setupnotation[endnote][numbercommand=\groupedcommand{[}{]}] 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] footnoterule
I find this setup stuff bewildering. My last posting is concerning the typesetting of the endnote numbering in both the text and the list at the en dof the chapter. In the Reference Manual both textcommand and numbercommand are treated in the same setup macro: \setupfootnotes on page 94. But (with the help of your reply) I find now there are different macros needed to set them up: Needed for the text = \setupnotes[endnote][textcommand=\hifnmarker] Needed for the list = \setupnotation[endnote][numbercommand=\fnmarker] \def\fnmarker#1{[#1]}\def\hifnmarker#1{\high{[#1]}} Wolfgang Schuster just comes up with a similar solution: \setupnote[endnote][textcommand=\groupedcommand{[}{]}] \setupnotation[endnote][numbercommand=\groupedcommand{[}{]}] Allthough the difference between \setupnote and \setupnotes alludes me. The \setupnotes does not handle the numbercommand, the \setupnotation does not handle the textcommand. I find this split in behaviour difficult to understand. May I plead for a unification here? Hans van der Meer On 17 Apr 2013, at 8:14 PM, Marco Patzer home...@lavabit.commailto:home...@lavabit.com wrote: On 2013–04–17 Meer, H. van der wrote: Is there a reason why the first does switches off the rule above the footnote \setupfootnotes[rule=off] but this doesn't? \setupnotation[footnote][rule=off]] It's \setupnotes, not \setupnotation that controls the rule. \setupnotes [footnote] [rule=off] \starttext Some footnote\footnote{The foonote}.\crlf \stoptext Marco ___ 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] typesetting TOC
It took me quite a while to find the solution for this problem. By posting it here, I hope this will be useful to others. \completecontent set the list composed of the chapters with a previous call to: \setupcombinedlist[content][list=chapter] and the list of chapters and included sections with: \setupcombinedlist[list={chapter,section}] etcetera. Hans van der Meer On 16 Apr 2013, at 10:17 PM, Meer, H. van der h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote: I am very sorry, but I still cannot understand how to get the TOC as I would like it. The following does typeset the Content header but is empty otherwise. \startfrontmatter \completelist[content][criterium=chapter] \stopfrontmatter I tried various possibilities from the reference manual, like \placelist[section][criterium=chapter]. But either this doesn't work (anymore?) or I am doing something very stupid. But these call do nothing. It seems so simple: use the \complete.. mechanism (because this wraps the TOC nicely) to typeset a selection from the TOC using the criterium-mechanism. Which seems to me just made for this sort of action. But nothing comes out of 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnoterule
Am 17.04.2013 um 20:46 schrieb Meer, H. van der h.vanderm...@uva.nl: I find this setup stuff bewildering. My last posting is concerning the typesetting of the endnote numbering in both the text and the list at the en dof the chapter. In the Reference Manual both textcommand and numbercommand are treated in the same setup macro: \setupfootnotes on page 94. But (with the help of your reply) I find now there are different macros needed to set them up: Needed for the text = \setupnotes[endnote][textcommand=\hifnmarker] Needed for the list = \setupnotation[endnote][numbercommand=\fnmarker] \def\fnmarker#1{[#1]}\def\hifnmarker#1{\high{[#1]}} Wolfgang Schuster just comes up with a similar solution: \setupnote[endnote][textcommand=\groupedcommand{[}{]}] \setupnotation[endnote][numbercommand=\groupedcommand{[}{]}] Allthough the difference between \setupnote and \setupnotes alludes me. The \setupnotes does not handle the numbercommand, the \setupnotation does not handle the textcommand. I find this split in behaviour difficult to understand. May I plead for a unification here? Footnotes, endnotes etc. are processed in a two step mechanism. When context reaches \footnote{…} in the document it stores the content and puts a number in the text, the style etc. of this number can be changed with the \setupnote command. After the page is finished the collected notes for the current page are inserted at the bottom of the page, at first this is only one big block which contains all notes. The rule, font size etc, for this block can be also changed with the \setupnote command. In this block the individual note texts are placed, the style etc. of each note text can be changed with the \setupnotation command. Another point of notes are the counter and it’s format which is also changed with the \setupnotation command. 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] endnotemarkers
On 4/17/2013 8:27 PM, Wolfgang Schuster wrote: Am 17.04.2013 um 20:23 schrieb Meer, H. van der h.vanderm...@uva.nl: With the following setup my endnotes show up in the list with [number], as I would like to have it. But in the text they do not appear as [number] but just as plain numbers. Why does textcommand has not this effect, whereas numbercommand does? The manual strongly suggest this to me. \def\fnmarker#1{[#1]} \setupnotation[endnote][numbercommand=\fnmarker,textcommand=\fnmarker] \setupnote[endnote][textcommand=\groupedcommand{[}{]}] \setupnotation[endnote][numbercommand=\groupedcommand{[}{]}] neat 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] endnotemarkers
A minor point perhaps on this textcommand= \groupedcommand for the marking of the notes in the text. I tried this but now the marking is not typeset as a superscript. Hans van der Meer On 17 Apr 2013, at 9:28 PM, Hans Hagen pra...@wxs.nl wrote: On 4/17/2013 8:27 PM, Wolfgang Schuster wrote: Am 17.04.2013 um 20:23 schrieb Meer, H. van der h.vanderm...@uva.nl: With the following setup my endnotes show up in the list with [number], as I would like to have it. But in the text they do not appear as [number] but just as plain numbers. Why does textcommand has not this effect, whereas numbercommand does? The manual strongly suggest this to me. \def\fnmarker#1{[#1]} \setupnotation[endnote][numbercommand=\fnmarker,textcommand=\fnmarker] \setupnote[endnote][textcommand=\groupedcommand{[}{]}] \setupnotation[endnote][numbercommand=\groupedcommand{[}{]}] neat 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 ___ ___ 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] Non-breaking spaces
[no cc] On Wed, 17 Apr 2013 09:35:43 -0600, Hans Hagen pra...@wxs.nl wrote: On 4/17/2013 5:28 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: (Eventually I have to port the ConTeXt support package for Npp to a lexer/plugin where I can define these things explicitly, but first I need someone who knows that lexer stuff to help...) it would be nice if there was a (say special dejavu mono) that has visual appearances for such characters anyway .. my scite lexer visualizes the spacers My Npp is from a year ago. I just checked and http://www.notepad-plus-plus.org/news/notepad-6.2-release-udl2.html http://udl20.weebly.com/operators.html So I'll update after the work week is over and see if this new framework can accommodate the spacers etc. Then I'll prepare a new ConTeXt support package for npp. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] mptopdf in minimals
Is there something extra needed to use mptopdf with only context minimal? Experimenting with having just context standalone on mac osx: Compiling with just mpost or using a context \startMPcode wrapper works, e.g.: beginfig(1); draw origin--(100,100); endfig; end works with command line mpost % This is MetaPost, version 1.801 (kpathsea version 6.1.1dev) (mpost.mp (/users/johnkitzmiller/context/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004) ) (./mwe.mp [1] ) 1 output file written: mwe.1 Transcript written on mwe.log. and... \starttext \startMPcode draw origin--(100,100); \stopMPcode \stoptext works with command context % But using mptopdf on the first snippet complains: MPtoPDF 1.4.1 : running 'mpost --mem=mpost mwe.mp' This is MetaPost, version 1.801 (kpathsea version 6.1.1dev) (mpost.mp (/users/johnkitzmiller/context/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004) ) (./mwe.mp [1] ) 1 output file written: mwe.1 Transcript written on mwe.log. This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) \write18 enabled. kpathsea: Running mktexfmt mptopdf.fmt /usr/texbin/mktexfmt: line 395: /users/johnkitzmiller/context/tex/texmf/texconfig/tcfmgr: is a directory fmtutil: config file `fmtutil.cnf' not found. I can't find the format file `mptopdf.fmt'! MPtoPDF 1.4.1 : error while processing tex file (Note: I do not have TeX Live 2013 installed. The message from line 7 gave me some hints and I created the directory and put mptopdf.fmt from a pdftex --ini mptopdf command … no luck) Turning $PATH off from ~/context/tex/texmf-osx-64/bin mptopdf % gives: MPtoPDF 1.4.1 : running 'mpost --mem=mpost mwe.mp' This is MetaPost, version 1.504 (kpathsea version 6.1.0) (mpost.mp (/usr/local/texlive/2012/texmf-dist/metapost/base/plain.mp Preloading the plain mem file, version 1.004)) (./mwe.mp [1] ) 1 output file written: mwe.1 Transcript written on mwe.log. This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012) restricted \write18 enabled. [MP to PDF] (./mwe.1) [1] Output written on mwe.pdf (1 page, 1305 bytes). Transcript written on mwe.log. MPtoPDF 1.4.1 : mwe is converted to mwe-1.pdf as I have been using. How to get mptopdf working from command line with just minimals? ___ 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] mptopdf in minimals
On 4/17/2013 10:51 PM, John Kitzmiller wrote: Is there something extra needed to use mptopdf with only context minimal? Experimenting with having just context standalone on mac osx: ! Compiling with just mpost or using a context \startMPcode wrapper works, e.g.: beginfig(1); draw origin--(100,100); endfig; end if you have context installed you can try mtxrun --script metapost - 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] mptopdf in minimals
On Apr 17, 2013, at 5:00 PM, Hans Hagen wrote: On 4/17/2013 10:51 PM, John Kitzmiller wrote: Is there something extra needed to use mptopdf with only context minimal? Experimenting with having just context standalone on mac osx: Compiling with just mpost or using a context \startMPcode wrapper works, e.g.: beginfig(1); draw origin--(100,100); endfig; end if you have context installed you can try mtxrun --script metapost …. Thank you Hans. It works (no surprise) but now I will have to script it to save typing! John ___ 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] Vanishing chapter title from Contents
Thanks Wolfgang, it works well. TimFrom: schuster.wolfg...@gmail.com Date: Wed, 17 Apr 2013 18:15:13 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] Vanishing chapter title from Contents Am 17.04.2013 um 17:59 schrieb Tim Li timli2...@outlook.com:Hi, maybe, codes is our language :-) % define a new head \definehead[backmatterchapter][chapter] […] The chapter title Backmatter in the backmatter won't appear in the Contents. Why? How can I make it appear in the Contents? You have to redefine the \completecontent command to include “backmatterchapter” in the list of headings. \definecombinedlist[content][part,chapter,backmatterchapter,section,subsection,subsubsection,subsubsubsection] 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 ___ ___ 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] endnotemarkers
Am 17.04.2013 um 21:35 schrieb Meer, H. van der h.vanderm...@uva.nl: A minor point perhaps on this textcommand= \groupedcommand for the marking of the notes in the text. I tried this but now the marking is not typeset as a superscript. \defineprocessor[footnote][left={[},right={]}] \defineconversionset[footnote][][footnote-n] \setupnotation[footnote][numberconversionset=footnote] \starttext Text\footnote{Footnote} \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 ___
[NTG-context] ConTeXt mkiv with SciTE on MacOSX
Hi all, I recently purchased Scite-Mac OSX to use with ConTeXt, but I don't find an issue for the integration of the *.properties and lexers files which are located in the ConTeXt minimal distribution. Did anyone encounter the same problem and who could help me? Thank you for your kind attention! Pierre Bovet Switzerland___ 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 ___