ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* notes placed left, right aligned
@ 2012-07-29 16:01 Steffen Wolfrum
  2012-07-29 16:27 ` Peter Münster
  2012-07-30 20:47 ` Wolfgang Schuster
  0 siblings, 2 replies; 5+ messages in thread
From: Steffen Wolfrum @ 2012-07-29 16:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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



___________________________________________________________________________________
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] 5+ messages in thread

* Re: notes placed left, right aligned
  2012-07-29 16:01 notes placed left, right aligned Steffen Wolfrum
@ 2012-07-29 16:27 ` Peter Münster
  2012-07-29 17:11   ` Steffen Wolfrum
  2012-07-30 20:47 ` Wolfgang Schuster
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Münster @ 2012-07-29 16:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: notes placed left, right aligned
  2012-07-29 16:27 ` Peter Münster
@ 2012-07-29 17:11   ` Steffen Wolfrum
  2012-07-29 17:44     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Steffen Wolfrum @ 2012-07-29 17:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: notes placed left, right aligned
  2012-07-29 17:11   ` Steffen Wolfrum
@ 2012-07-29 17:44     ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2012-07-29 17:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 29.07.2012 um 19:11 schrieb Steffen Wolfrum <context@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: notes placed left, right aligned
  2012-07-29 16:01 notes placed left, right aligned Steffen Wolfrum
  2012-07-29 16:27 ` Peter Münster
@ 2012-07-30 20:47 ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2012-07-30 20:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 29.07.2012 um 18:01 schrieb Steffen Wolfrum <context@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-30 20:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-29 16:01 notes placed left, right aligned Steffen Wolfrum
2012-07-29 16:27 ` Peter Münster
2012-07-29 17:11   ` Steffen Wolfrum
2012-07-29 17:44     ` Wolfgang Schuster
2012-07-30 20:47 ` Wolfgang Schuster

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).