[NTG-context] footnote-number-alignment
Hello, after struggling some weeks to get everything to work, i'm now nearly satisfied with typsetting via context. But there is one problem left for that i cant find any solution, even after googling for hours. I am typesetting documents with a large amount of footnotes, and want to have the footnote-number aligned to the correct decimal place. The footnotes appear in an numbered-list style. To explain: page one has footnotes 1 to 8, numbers are left-aligned, everything is good - 1 footnotetext 2 footnotetext 3 footnottext 8 footnotetext page two has footnotes 9 to 12, so I want to have 9 footnotetext 10 footnotetext ... but i only get: 9 footnotetext 10 foootnotextex. I think, there is no easy solution, but maybe someone can give me a push to the direction how i can realize that behaviour (btw same problem is with numbered lists, and to make it really complicated, i do need the behaviour even with multicolumn footnotes) Any hint is welcome, Thanks a lot Achim Jander ___ 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] footnote-number-alignment
Am 15.11.2009 um 11:16 schrieb Achim Jander: Hello, after struggling some weeks to get everything to work, i'm now nearly satisfied with typsetting via context. But there is one problem left for that i cant find any solution, even after googling for hours. I am typesetting documents with a large amount of footnotes, and want to have the footnote-number aligned to the correct decimal place. The footnotes appear in an numbered-list style. To explain: page one has footnotes 1 to 8, numbers are left-aligned, everything is good \setupfootnotedefinition[headalign=flushright,width=2em,distance=1em] This feature is rather new and you need a recent context. 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] footnote-number alignment
On Oct 23, 2009, at 2:09 PM, ac...@jander.de wrote: Hello, after struggling some weeks to get everything to work, i'm now nearly satisfied with typsetting via context. But there is one problem left for that i cant find any solution, even after googling for hours. I am typesetting documents with a large amount of footnotes, and want to have the footnote-number aligned to the correct decimal place. To explain: page one has footnotes 1 to 8, numbers are left-aligned, everything is good - 1 footnotetext 2 footnotetext 3 footnottext 8 footnotetext page two has footnotes 9 to 12, so I want to have 9 footnotetext 10 footnotetext ... but i only get: 9 footnotetext 10 foootnotextex. I think, there is no easy solution, but maybe someone can give me a push to the direction how i can realize that behaviour (btw same problem is with numbered lists) Any hint is welcome, Your ASCII art doesn't really show what you're after, but from your description, you could try something like this (I too have searched for this, and I don't think there is an easier solution; maybe something like this should go into the core): \def\NoteNumber#1{\hbox to 14pt{\hbox to 8pt{\strut\hfill #1}}} \setupnotedefinition[footnote][location=left,hang=0] \setupfootnotes[align={normal,hanging}, numbercommand=\NoteNumber] HTH Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnote-number alignment
ac...@jander.de wrote: Hello, after struggling some weeks to get everything to work, i'm now nearly satisfied with typsetting via context. But there is one problem left for that i cant find any solution, even after googling for hours. I am typesetting documents with a large amount of footnotes, and want to have the footnote-number aligned to the correct decimal place. To explain: page one has footnotes 1 to 8, numbers are left-aligned, everything is good - 1 footnotetext 2 footnotetext 3 footnottext . 8 footnotetext page two has footnotes 9 to 12, so I want to have 9 footnotetext 10 footnotetext but i only get: 9 footnotetext 10 foootnotextex. I think, there is no easy solution, but maybe someone can give me a push to the direction how i can realize that behaviour (btw same problem is with numbered lists) Any hint is welcome, as the relevant info is present deep down in context i can imagine a solution but it's not a 5 minutes job Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] footnote-number alignment
On Oct 25, 2009, at 10:59 AM, Taco Hoekwater wrote: Thomas A. Schmitz wrote: It should be relatively simple for you to tweak Wolfgang's solution to do that. Best wishes, Taco Hmm, should I feel honored that Taco takes my code for Wolfgang's or deplore that all the good replies are attributed to Wolfgang automatically? That's a tough one :-) Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnote-number alignment
Thomas A. Schmitz wrote: On Oct 25, 2009, at 10:59 AM, Taco Hoekwater wrote: Thomas A. Schmitz wrote: It should be relatively simple for you to tweak Wolfgang's solution to do that. Best wishes, Taco Hmm, should I feel honored that Taco takes my code for Wolfgang's or deplore that all the good replies are attributed to Wolfgang automatically? That's a tough one :-) Next meeting, I owe you a beer. Bet wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnote-number alignment
Am 25.10.2009 um 16:00 schrieb Hans Hagen: ac...@jander.de wrote: I am typesetting documents with a large amount of footnotes, and want to have the footnote-number aligned to the correct decimal place. as the relevant info is present deep down in context i can imagine a solution but it's not a 5 minutes job fix the text/title alignment in descriptions and right aligned numbers are possible strc-des.mkiv: @@ -334,6 +334,7 @@ {\dodescriptionhandler {\vtop {\hsize\dimexpr\descriptionsheadwidth- \descriptionsheaddistance\relax + \doifsomething{\descriptionparameter\c!align} {\setupalign[\descriptionparameter\c!align]}% \begstrut\descriptionparameter\c!text\ignorespaces \currentdescriptiontext\endstrut% \doifelse{\descriptionparameter\c!aligntitle}\v!no {\leftdescriptionskip\leftskip\rightdescriptionskip\rightskip} 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] footnote-number alignment
Wolfgang Schuster wrote: Am 25.10.2009 um 16:00 schrieb Hans Hagen: ac...@jander.de mailto:ac...@jander.de wrote: I am typesetting documents with a large amount of footnotes, and want to have the footnote-number aligned to the correct decimal place. as the relevant info is present deep down in context i can imagine a solution but it's not a 5 minutes job fix the text/title alignment in descriptions and right aligned numbers are possible strc-des.mkiv: @@ -334,6 +334,7 @@ {\dodescriptionhandler {\vtop {\hsize\dimexpr\descriptionsheadwidth-\descriptionsheaddistance\relax + \doifsomething{\descriptionparameter\c!align}{\setupalign[\descriptionparameter\c!align]}% \begstrut\descriptionparameter\c!text\ignorespaces\currentdescriptiontext\endstrut% \doifelse{\descriptionparameter\c!aligntitle}\v!no {\leftdescriptionskip\leftskip\rightdescriptionskip\rightskip} hm, but isn't align meant for the main text then? i must look up that one anyhow, i thought that the alignment had to do with: 1 2 10 and 1 2 3 i.e. less width in the case of 10 which can be done using first/last on page numbers Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] footnote-number alignment
Am 25.10.2009 um 21:30 schrieb Hans Hagen: hm, but isn't align meant for the main text then? i must look up that one there are two \setupalign commands in the source and both are written in macros to place the descripton text (but did not work), how about 'headalign' then, it's mentioned in the following example from the source % list and titles are experimental % % \definedescription[test] [location=left,hang=4,headalign= {right},distance=1em,list=test] anyhow, i thought that the alignment had to do with: 1 2 10 and 1 2 3 i.e. less width in the case of 10 which can be done using first/ last on page numbers what do you mean? 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] footnote-number alignment
Wolfgang Schuster wrote: what do you mean? 123| | 1 xx 2 xx 10 xx vs 12| | 1 xx 2 xx so, an adaptive width (same can be said for itemize, kind of auto-broad behaviour) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 ___