Re: [NTG-context] Referring to items
Am 06.03.2012 um 05:34 schrieb Kip Warner: Hey list, I am following the instructions here but they do not seem to be working: http://wiki.contextgarden.net/Enumerations#Referring_to_items I have an item block typeset with the following: \startitemize[R,2*broad][start=11] \setupitemize[left=(, right=)] \item[first_item] another item \item another item \item[last_item] another item \stopitemize I attempt to reference the first item with the following: \in{item}[first_item] But all I see in the final PDF are two ?? characters where I expected the reference. Works here, the only thing to complain is that the number conversion is missing. \starttext \startitemize[R,3*broad][start=11,left=(,right=),stopper=] \item[item:first] another item \item another item \item[item:last] another item \stopitemize I attempt to reference the first item with the following: \in{item}[item:first] \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] ruby module
Am 04.03.2012 um 14:26 schrieb S Barmeier: Is it possible to place the ruby text in a margin? No. This would allow me to keep line spacing decently tight and also prevent the reader from only reading the annotation. This can be added but then you need a symbol (or something else) to see to which word the annotation refers. I'm just thinking of annotating one or two words per line, which in an appropriately small font size could just be stacked at the end of the line in order of occurrence. Problems would only arise if one line contained 3 or more words to be annotated, and the next line also contained one... Would this be possible to implement? Would this just be a \defineinright? \define[2]\Note {#1\inright[stack=yes,style=\txx]{#2}} \starttext text \Note{TEXT}{MARGIN} text \Note{TEXT}{MARGIN} text \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] ruby module
On 03/09/2012 04:30 PM, ntg-context-requ...@ntg.nl wrote: Is it possible to place the ruby text in a margin? No. This would allow me to keep line spacing decently tight and also prevent the reader from only reading the annotation. This can be added but then you need a symbol (or something else) to see to which word the annotation refers. I'm just thinking of annotating one or two words per line, which in an appropriately small font size could just be stacked at the end of the line in order of occurrence. Problems would only arise if one line contained 3 or more words to be annotated, and the next line also contained one... Would this be possible to implement? Would this just be a \defineinright? \define[2]\Note {#1\inright[stack=yes,style=\txx]{#2}} \starttext text \Note{TEXT}{MARGIN} text \Note{TEXT}{MARGIN} text \stoptext Wolfgang Thank you, always. At the moment, the baseline of the first line of the margin note aligns with the baseline of the main text line. Even in the general case, I think it would look better to have the top aligned. In the margin ruby, this presents a slight problem as a second ruby will now look as though it belongs to the next line. Is there a way to align the top of the lines, or is there a hack that just shifts a margin note by a few pts? (There is a low flag, but no high flag, I think...) Thank you. Severin ___ 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 Turn off the Table of Contents Title
On Thu, Mar 8, 2012 at 3:41 PM, Marco net...@lavabit.com wrote: On 2012-03-08 Emmanuel Asante emmanuela.asa...@gmail.com wrote: How do I turn off the title on the top of the table of contents ie the text Content that appears on top of the table? Use \placecontent instead of \completecontent Marco Thanks Marco for the solution. ___ 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] Getting a Header Line to Start from Left Margin
Hi All, I have a chapter heading text starting in the left margin and a hairline below my header texts spanning the full width of the header. Since the chapter begins in the left margin, there is no line on top of the chapter heading text in the margin. How can I get the line to also start in the margin where the chapter heading text begins? Thanks Emmanuel ___ 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] \notin not working
Dear list, with one of the last versions (I'm currently using ConTeXt standalone 2012003005 19:49 MkIV) \notin is not working anymore. See \starttext $a \notin b \not\in c$ \stoptext It seems that \notin refers to \not. Is this intended behavior or a bug? Best regards, Stefan -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a ___ 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] Getting a Header Line to Start from Left Margin
On 2012-03-09 Emmanuel Asante emmanuela.asa...@gmail.com wrote: I have a chapter heading text starting in the left margin and a hairline below my header texts spanning the full width of the header. Since the chapter begins in the left margin, there is no line on top of the chapter heading text in the margin. How can I get the line to also start in the margin where the chapter heading text begins? Honestly, I had to read your post three times to understand what you want to achieve. \setuplayout [leftmargindistance=0pt] \setupbackgrounds [header] [leftmargin,text] [bottomframe=on] I'd like to know, if there's a simple solution (I would write a MetaPost three-liner for this) without touching the leftmargindis- tance. Regards Marco ___ 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] enumeration numbering in the margin, title in body text
Am 08.03.2012 um 11:49 schrieb Tobias Columbus: Hi all, I am new to ConTeXt and asked myself if it is possible to have only the number of an enumeration in the margin and the title in `serried` position. Here is an example of what I think: margin | text --- | blah blah | blah blah 1.1| Definition (something): blah | 1.2| Lemma: blah After digging a while in the documentation and code, I came to the conclusion that this is currently not possible. Then I tried some fiddling in the context code and this directly leads to my second question: I modified the file strc-des.mkiv. However, the changes seem to be ignored by my context binary. What did I do wrong? I also tried context --generate, but that also did not i make context aware of my changes. You can use the annotation module: \usemodule[annotation] \define[2]\EnumerationCommand {\inleft[scope=local,style=normal]{\placeannotationnumber}% \placeannotationtext\doifsomething{\placeannotationtitle}{\space(\placeannotationtitle)}:\space \placeannotationcontent} \defineannotation[definition][text=Definition,alternative=command,command=\EnumerationCommand,prefixstopper=.] \defineannotation[lemma][definition][text=Lemma,counter=definition] \starttext \chapter{Test} blah blah blah blah \definition[title=something]{blah} \lemma{blah} \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] \notin not working
On Fri, 9 Mar 2012, Stefan Müller wrote: Dear list, with one of the last versions (I'm currently using ConTeXt standalone 2012003005 19:49 MkIV) \notin is not working anymore. See \starttext $a \notin b \not\in c$ \stoptext It seems that \notin refers to \not. Is this intended behavior or a bug? Missing glyph in the LM virtual math font. (@Hans, can now use composed glyphs as fallbacks in virtual fonts). The above example works fine if you use cambria or xits fonts, but fails with LM virtual fonts and in a worse way with LM opentype. 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] \notin not working
On Fri, 9 Mar 2012 13:46:56 -0500 (EST), Aditya Mahajan wrote: On Fri, 9 Mar 2012, Stefan Müller wrote: Dear list, with one of the last versions (I'm currently using ConTeXt standalone 2012003005 19:49 MkIV) \notin is not working anymore. See \starttext $a \notin b \not\in c$ \stoptext It seems that \notin refers to \not. Is this intended behavior or a bug? Missing glyph in the LM virtual math font. (@Hans, can now use composed glyphs as fallbacks in virtual fonts). The above example works fine if you use cambria or xits fonts, but fails with LM virtual fonts and in a worse way with LM opentype. Aditya Thanks for looking into this. I guessed it was something like that. Stefan -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a ___ 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] \notin not working
On Fri, Mar 09, 2012 at 01:46:56PM -0500, Aditya Mahajan wrote: On Fri, 9 Mar 2012, Stefan Müller wrote: Dear list, with one of the last versions (I'm currently using ConTeXt standalone 2012003005 19:49 MkIV) \notin is not working anymore. See \starttext $a \notin b \not\in c$ \stoptext It seems that \notin refers to \not. Is this intended behavior or a bug? @Hans, can now use composed glyphs as fallbacks in virtual fonts. Or even better (if possible of course), fallback to using combining slash (aka \not) whenever the font lacks the pre-composed negated form (and similarly \not\in should use \notin if the font have it). In, hopefully not so distant, future LuaTeX will gain support for overlay accents so basenegation mark will combine nicely (where negation mark can be a combining slash or vertical line). Regards, Khaled ___ 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] Getting a Header Line to Start from Left Margin
On Fri, Mar 9, 2012 at 10:32 AM, Marco net...@lavabit.com wrote: On 2012-03-09 Emmanuel Asante emmanuela.asa...@gmail.com wrote: I have a chapter heading text starting in the left margin and a hairline below my header texts spanning the full width of the header. Since the chapter begins in the left margin, there is no line on top of the chapter heading text in the margin. How can I get the line to also start in the margin where the chapter heading text begins? Honestly, I had to read your post three times to understand what you want to achieve. \setuplayout [leftmargindistance=0pt] \setupbackgrounds [header] [leftmargin,text] [bottomframe=on] I'd like to know, if there's a simple solution (I would write a MetaPost three-liner for this) without touching the leftmargindis- tance. Regards Marco Thanks. I had to do some trial and error before I got what I wanted, but it pointed me in the right direction. ___ 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] CJK hyphenation/line breaking
Korean has spaces, so I guess I am only asking for CJ, but I was wondering if it is possible to enable line breaking, i.e. cheap hyphenation for CJ(K). I can only speak with certainty for Japanese, but at least here the rules are quite simple. There is no kerning for Japanese characters, so when the line is full it spaces all characters evenly (preferably as close together as the font allows) and dumps everything else to the next line, no matter if it is in the middle of a word (a concept not quite as well defined as in languages with spaces anyway). I can do this by hand if absolutely necessary, by inserting fake spaces \ \!, but this gets quite tedious, and it seems line breaking for CJ(K) would be nice to have. I remember it working about a year and a half ago(?)... Severin ___ 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] CJK hyphenation/line breaking
Am 09.03.2012 um 20:23 schrieb S Barmeier: Korean has spaces, so I guess I am only asking for CJ, but I was wondering if it is possible to enable line breaking, i.e. cheap hyphenation for CJ(K). I can only speak with certainty for Japanese, but at least here the rules are quite simple. There is no kerning for Japanese characters, so when the line is full it spaces all characters evenly (preferably as close together as the font allows) and dumps everything else to the next line, no matter if it is in the middle of a word (a concept not quite as well defined as in languages with spaces anyway). I can do this by hand if absolutely necessary, by inserting fake spaces \ \!, but this gets quite tedious, and it seems line breaking for CJ(K) would be nice to have. I remember it working about a year and a half ago(?)… \setscript[hanzi] \starttext … \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] Getting a Header Line to Start from Left Margin
On 9 Mar 2012, at 18:32, Marco wrote: On 2012-03-09 Emmanuel Asante emmanuela.asa...@gmail.com wrote: I have a chapter heading text starting in the left margin and a hairline below my header texts spanning the full width of the header. Since the chapter begins in the left margin, there is no line on top of the chapter heading text in the margin. How can I get the line to also start in the margin where the chapter heading text begins? Honestly, I had to read your post three times to understand what you want to achieve. \setuplayout [leftmargindistance=0pt] \setupbackgrounds [header] [leftmargin,text] [bottomframe=on] I'd like to know, if there's a simple solution (I would write a MetaPost three-liner for this) without touching the leftmargindis- tance. You could consider setting up a layer, filling the layer with the line (your three-liner in Metapost) and flush it in the headertext setup Willi Regards Marco ___ 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] Referring to items
On Fri, 2012-03-09 at 09:28 +0100, Wolfgang Schuster wrote: Works here, the only thing to complain is that the number conversion is missing. \starttext \startitemize[R,3*broad][start=11,left=(,right=),stopper=] \item[item:first] another item \item another item \item[item:last] another item \stopitemize I attempt to reference the first item with the following: \in{item}[item:first] \stoptext I'm not sure why it doesn't work for me then. When I take what should work and put it in a minimal, it works. When I leave it within the whole book, it doesn't. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] stacking margin notes
I was expecting this to work: \setuplayout[ width=10cm, backspace=10cm, leftmargin=8cm ] \starttext \inleft[stack=yes]{ \input tufte } \input tufte \inleft[stack=yes]{ \input tufte } \stoptext but it doesn't stack. Also, is it correct that stack=yes belongs into \setupmargindata? Thank you, Severin ___ 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] Nested floats
Hi, I need to create some small tables that are (possibly) next to each other. Though I could make text flow around tables and appear to the left or to the right of the table, I could not manage something like this: +--+ | | | | Table 1 content | Table 2 content | | | | | Table 1 TITLE| Table 2 TITLE | | | | +--|---+ So I tried to use nested floats to achieve this (floats because I want each to have its own number and title). Below my mail, I have pasted the code I used to accomplish this. I don't understand why, but it starts numbering with 7 onwards. Is there a way I can fix the numbering? Best regards, Prash \setupheads[chapter][page=no] \starttext \chapter{first} \section{1st section} hello \section{2nd section} hello again \placetable[here,none][]{}{ \bTABLE[frame=off] \bTR \bTD \placetable[force][tab:first]{derivation for sentence}{ \bTABLE[frame=off,align=center] \bTR \bTD abc \eTD \bTD def \eTD \eTR \bTR \bTD ghi \eTD \bTD jkl \eTD \eTR \eTABLE } \eTD \bTD \placetable[force][tab:second]{derivation for sentence}{ \bTABLE[frame=off,align=center] \bTR \bTD abc \eTD \bTD def \eTD \eTR \bTR \bTD ghi \eTD \bTD jkl \eTD \eTR \eTABLE } \eTD \eTR \eTABLE } \chapter{Second} \placetable[here,none][]{}{ \bTABLE[frame=off] \bTR \bTD \placetable[force][tab:third]{derivation for sentence}{ \bTABLE[frame=off,align=center] \bTR \bTD abc \eTD \bTD def \eTD \eTR \bTR \bTD ghi \eTD \bTD jkl \eTD \eTR \eTABLE } \eTD \bTD \placetable[force][tab:fourth]{derivation for sentence}{ \bTABLE[frame=off,align=center] \bTR \bTD abc \eTD \bTD def \eTD \eTR \bTR \bTD ghi \eTD \bTD jkl \eTD \eTR \eTABLE } \eTD \eTR \eTABLE } \placetable[here,none][]{}{ \bTABLE[frame=off] \bTR \bTD \placetable[force][tab:fifth]{derivation for sentence}{ \bTABLE[frame=off,align=center] \bTR \bTD abc \eTD \bTD def \eTD \eTR \bTR \bTD ghi \eTD \bTD jkl \eTD \eTR \eTABLE } \eTD \bTD \placetable[force][tab:sixth]{derivation for sentence}{ \bTABLE[frame=off,align=center] \bTR \bTD abc \eTD \bTD def \eTD \eTR \bTR \bTD ghi \eTD \bTD jkl \eTD \eTR \eTABLE } \eTD \eTR \eTABLE } \stoptext ___ 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] More CJK fall-back fonts
At the moment I have \setcjkmainfont to a Japanese font. How do I specify more fall-back fonts, e.g. for Korean script. Also I may need to use a different font for IPA (phonetic characters). Is there a way of specifying a fall-back font for a particular range of Unicode characters? Thank you. Severin ___ 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 ___