Re: [NTG-context] notes placed left, right aligned

2012-07-30 Thread Wolfgang Schuster

Am 29.07.2012 um 18:01 schrieb Steffen Wolfrum cont...@st.estfiles.de:

 Hi,
 
 my footnotes don't behave as they did three months ago ...
 
 I wanted the footnote's number left from the footnote's text,
 but these numbers should be right aligned:
 so that the ones (eg. in 1 and 21 and 201) are exactly on top of each 
 other
 
 any idea how to achieve this?
 
 Thanks, Steffen
 
 ---
 
 \starttext
 
 \setupbodyfont[times,6pt]
 
 \setupnotation[footnote][alternative=left,width=12pt,distance=4.80pt]
 
 \dorecurse{111}{test\footnote{\input ward\par}}
 
 \stoptext


The \boxedconstructionhead macro in strc-con.mkvi needs a fix for the head 
align key.

\unprotect

\unexpanded\def\boxedconstructionhead#1%
  {\vtop
 {\hsize\constructionsheadwidth
  \edef\p_strc_constructions_headalign{\constructionparameter\c!headalign}% 
WS
  \ifx\p_strc_constructions_headalign\empty \else
\setupalign[\p_strc_constructions_headalign]% \use...
  \fi
  #1}}

\protect

\starttext

\setupbodyfont[times,6pt]

\setupnotation[footnote][alternative=left,width=3em,distance=4.80pt,headalign=flushright]

\dorecurse{111}{test\footnote{\input ward\par} }

\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] notes placed left, right aligned

2012-07-29 Thread Peter Münster
On Sun, Jul 29 2012, Steffen Wolfrum wrote:

 but these numbers should be right aligned:
 so that the ones (eg. in 1 and 21 and 201) are exactly on top of each 
 other

 any idea how to achieve this?

\def\NumberCommand#1{\rightaligned{#1}} % or:
\def\NumberCommand#1{\hfill#1}

\setupnotation[footnote][alternative=left,width=12pt,distance=4.80pt,
numbercommand=\NumberCommand]

-- 
   Peter
___
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] notes placed left, right aligned

2012-07-29 Thread Steffen Wolfrum

Am 29.07.2012 um 18:27 schrieb Peter Münster:

 On Sun, Jul 29 2012, Steffen Wolfrum wrote:
 
 but these numbers should be right aligned:
 so that the ones (eg. in 1 and 21 and 201) are exactly on top of each 
 other
 
 any idea how to achieve this?
 
 \def\NumberCommand#1{\rightaligned{#1}} % or:
 \def\NumberCommand#1{\hfill#1}
 
 \setupnotation[footnote][alternative=left,width=12pt,distance=4.80pt,
numbercommand=\NumberCommand]


Yes numbercommand, that's it! 

I wanted command=\NumberCommand with \def\NumberCommand#1{\rightaligned{#1}} 
... and that failed.

Thanks a lot!
Steffen
___
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] notes placed left, right aligned

2012-07-29 Thread Wolfgang Schuster

Am 29.07.2012 um 19:11 schrieb Steffen Wolfrum cont...@st.estfiles.de:

 
 Am 29.07.2012 um 18:27 schrieb Peter Münster:
 
 On Sun, Jul 29 2012, Steffen Wolfrum wrote:
 
 but these numbers should be right aligned:
 so that the ones (eg. in 1 and 21 and 201) are exactly on top of each 
 other
 
 any idea how to achieve this?
 
 \def\NumberCommand#1{\rightaligned{#1}} % or:
 \def\NumberCommand#1{\hfill#1}
 
 \setupnotation[footnote][alternative=left,width=12pt,distance=4.80pt,
   numbercommand=\NumberCommand]
 
 
 Yes numbercommand, that's it! 
 
 I wanted command=\NumberCommand with \def\NumberCommand#1{\rightaligned{#1}} 
 ... and that failed.

Beware that this shouldn’t be more than a intermediate solution because 
normally “headalign=flushright” should work but a bug in the code prevents this.

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
___