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, Thanks a lot Achim Jander
On Oct 23, 2009, at 2:09 PM, achim@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
Thomas A. Schmitz wrote:
On Oct 23, 2009, at 2:09 PM, achim@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)
I do not think you can get this: 1 footnotetext 2 footnotetext and then ~9 footnotetext 10 footnotetext The best you can have (afaik) is: ~1 footnotetext ~2 footnotetext and then ~9 footnotetext 10 footnotetext It should be relatively simple for you to tweak Wolfgang's solution to do that. Best wishes, Taco
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
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
achim@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 -----------------------------------------------------------------
Am 25.10.2009 um 16:00 schrieb Hans Hagen:
achim@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
Wolfgang Schuster wrote:
Am 25.10.2009 um 16:00 schrieb Hans Hagen:
achim@jander.de mailto:achim@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 -----------------------------------------------------------------
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
Wolfgang Schuster wrote:
what do you mean?
123| | 1 xxxxxx 2 xxxxxx 10 xxxxxx vs 12| | 1 xxxxxx 2 xxxxxx 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 -----------------------------------------------------------------
participants (5)
-
achim@jander.de
-
Hans Hagen
-
Taco Hoekwater
-
Thomas A. Schmitz
-
Wolfgang Schuster