* footnote-number alignment
@ 2009-10-23 12:09 achim
2009-10-25 9:54 ` Thomas A. Schmitz
2009-10-25 15:00 ` Hans Hagen
0 siblings, 2 replies; 10+ messages in thread
From: achim @ 2009-10-23 12:09 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: footnote-number alignment
2009-10-23 12:09 footnote-number alignment achim
@ 2009-10-25 9:54 ` Thomas A. Schmitz
2009-10-25 9:59 ` Taco Hoekwater
2009-10-25 15:00 ` Hans Hagen
1 sibling, 1 reply; 10+ messages in thread
From: Thomas A. Schmitz @ 2009-10-25 9:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: footnote-number alignment
2009-10-25 9:54 ` Thomas A. Schmitz
@ 2009-10-25 9:59 ` Taco Hoekwater
2009-10-25 17:58 ` Thomas A. Schmitz
0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2009-10-25 9:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: footnote-number alignment
2009-10-23 12:09 footnote-number alignment achim
2009-10-25 9:54 ` Thomas A. Schmitz
@ 2009-10-25 15:00 ` Hans Hagen
2009-10-25 19:48 ` Wolfgang Schuster
1 sibling, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2009-10-25 15:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: footnote-number alignment
2009-10-25 15:00 ` Hans Hagen
@ 2009-10-25 19:48 ` Wolfgang Schuster
2009-10-25 20:30 ` Hans Hagen
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2009-10-25 19:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 950 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1732 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: footnote-number alignment
2009-10-25 19:48 ` Wolfgang Schuster
@ 2009-10-25 20:30 ` Hans Hagen
2009-10-25 20:40 ` Wolfgang Schuster
0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2009-10-25 20:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: footnote-number alignment
2009-10-25 20:30 ` Hans Hagen
@ 2009-10-25 20:40 ` Wolfgang Schuster
2009-10-25 20:54 ` Hans Hagen
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2009-10-25 20:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-10-25 20:54 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-23 12:09 footnote-number alignment achim
2009-10-25 9:54 ` Thomas A. Schmitz
2009-10-25 9:59 ` Taco Hoekwater
2009-10-25 17:58 ` Thomas A. Schmitz
2009-10-25 18:00 ` Taco Hoekwater
2009-10-25 15:00 ` Hans Hagen
2009-10-25 19:48 ` Wolfgang Schuster
2009-10-25 20:30 ` Hans Hagen
2009-10-25 20:40 ` Wolfgang Schuster
2009-10-25 20:54 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).