ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \note does not preserve formatting -- example
@ 2012-01-24  4:44 Peter Park Nelson
  2012-01-24  8:18 ` Wolfgang Schuster
  2012-01-24  8:23 ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Park Nelson @ 2012-01-24  4:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

After updating to the current beta, I discovered that the \note macro
does not format the note marker correctly.

In the minimal example below, I define an item group for a
paragraph-formatted list of article authors, and an "affiliation" note
for a paragraph-formatted list of affiliations below them. (This is
fairly common in academic journals; I have left out most of the text
formatting.)

The note marks for the third and fourth authors (Jones and Mandrell),
which are created using the \note macro to reference previous
affiliations, are too small and not bold.

I would guess this is related to changes around line 122 of
strc-not.mkiv, dealing with the handling of note attributes (see:
\def\usenotestyleandcolor).
\setuppapersize[letter][letter]

\defineitemgroup[Authorlist]
\setupitemgroup[Authorlist]
               [each]
               [text]
               [symbol=0,
                margin=no,
                align=normal,
                width=-10pt,
                distance=0pt,
                leftmargin=no,
                location=top,
                textdistance=big]

\definenote[affiliation]
  [numbercommand=\ss,
   textstyle=\tfx\bf,
   paragraph=yes]

\setupnotedefinition[affiliation]
   [location=serried,
    distance=.4em,
    display=no]

\starttext

\startlocalnotes[affiliation]

\startAuthorlist

% Convenience macros for setting up some affiliations separately:
\def\useaffiliation#1{\note[#1]}
\def\makeaffiliation[#1]#2{\setnotetext[affiliation][#1]{#2}}
\makeaffiliation[opry]{The Grand Ole Opry}


% The list of authors:
\item Doris Doe\affiliation[misk]{Miskatonic University}
\item Robert Roe\affiliation[love]{Lovecraft Institute}
\item Cleopatra~Jones\note[misk]
\item Barbara Mandrell\useaffiliation{opry}

\stopAuthorlist

\placelocalnotes[affiliation]
\stoplocalnotes

\stoptext
-- 
Peter Park Nelson
peter.park.nelson@gmail.com
___________________________________________________________________________________
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] 3+ messages in thread

* Re: \note does not preserve formatting -- example
  2012-01-24  4:44 \note does not preserve formatting -- example Peter Park Nelson
@ 2012-01-24  8:18 ` Wolfgang Schuster
  2012-01-24  8:23 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2012-01-24  8:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 24.01.2012 um 05:44 schrieb Peter Park Nelson:

> After updating to the current beta, I discovered that the \note macro
> does not format the note marker correctly.
> 
> In the minimal example below, I define an item group for a
> paragraph-formatted list of article authors, and an "affiliation" note
> for a paragraph-formatted list of affiliations below them. (This is
> fairly common in academic journals; I have left out most of the text
> formatting.)
> 
> The note marks for the third and fourth authors (Jones and Mandrell),
> which are created using the \note macro to reference previous
> affiliations, are too small and not bold.
> 
> I would guess this is related to changes around line 122 of
> strc-not.mkiv, dealing with the handling of note attributes (see:
> \def\usenotestyleandcolor).

No, \usenotestyleandcolor is a internal command which pass the values
of the style and color keys to the responsible mechanism.

The problem is the way how you use the \note command. The \note command
has two arguments, the first argument is for the note type (in your case affiliation)
and the second for the reference. You can omit the first argument only when
you try to print the number of the “footnote” note type but for all other types
you need it.

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

* Re: \note does not preserve formatting -- example
  2012-01-24  4:44 \note does not preserve formatting -- example Peter Park Nelson
  2012-01-24  8:18 ` Wolfgang Schuster
@ 2012-01-24  8:23 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2012-01-24  8:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 24.01.2012 um 05:44 schrieb Peter Park Nelson:

> After updating to the current beta, I discovered that the \note macro
> does not format the note marker correctly.
> 
> In the minimal example below, I define an item group for a
> paragraph-formatted list of article authors, and an "affiliation" note
> for a paragraph-formatted list of affiliations below them. (This is
> fairly common in academic journals; I have left out most of the text
> formatting.)
> 
> The note marks for the third and fourth authors (Jones and Mandrell),
> which are created using the \note macro to reference previous
> affiliations, are too small and not bold.
> 
> I would guess this is related to changes around line 122 of
> strc-not.mkiv, dealing with the handling of note attributes (see:
> \def\usenotestyleandcolor).
> \setuppapersize[letter][letter]
> 
> \defineitemgroup[Authorlist]
> \setupitemgroup[Authorlist]
>               [each]
>               [text]
>               [symbol=0,

Better use “symbol=none”.

>                margin=no,
>                align=normal,
>                width=-10pt,

???

>                distance=0pt,
>                leftmargin=no,
>                location=top,
>                textdistance=big]
> 
> \definenote[affiliation]
>  [numbercommand=\ss,

Don’t misuse the number command key for style settings, use the numberstyle key.

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

end of thread, other threads:[~2012-01-24  8:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-24  4:44 \note does not preserve formatting -- example Peter Park Nelson
2012-01-24  8:18 ` Wolfgang Schuster
2012-01-24  8:23 ` 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).