ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Park Nelson <peter.park.nelson@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \note does not preserve formatting -- example
Date: Mon, 23 Jan 2012 22:44:32 -0600	[thread overview]
Message-ID: <CAGfkPGnpD0--K+PXFmwptTrrTXQwBDBViKoLftCgtY__YNmi1Q@mail.gmail.com> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2012-01-24  4:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24  4:44 Peter Park Nelson [this message]
2012-01-24  8:18 ` Wolfgang Schuster
2012-01-24  8:23 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGfkPGnpD0--K+PXFmwptTrrTXQwBDBViKoLftCgtY__YNmi1Q@mail.gmail.com \
    --to=peter.park.nelson@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).