ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Talal <talazem@fastmail.fm>
To: ntg-context@ntg.nl
Subject: Re: Critical editions with ConTeXt
Date: Wed, 22 Jul 2015 19:26:29 +0000 (UTC)	[thread overview]
Message-ID: <loom.20150722T210228-179@post.gmane.org> (raw)
In-Reply-To: <50098B18.4000407@wxs.nl>

Hans Hagen <pragma <at> wxs.nl> writes:

> >  Actually ranges have always been supported ... 
> > Maybe I should add those commands.
> > Hans 

Picking up on an old thread, again. 

The document below lays out the three basic parts of a critical
apparatus of a critical edition of a text: (1) the body text; (2) the
lemma (which is the part of the body text being commented upon); and
(3) the comment on the lemma.

I would like to be able to automate (through macros) the making of a
critical apparatus' note. This is for two reasons. First, the body text
and the lemma in the note below should be identical: as such, they
ideally not have to be typed twice, as it introduces the possibility of
error. Furthermore, if one manually writes out \linenote{Lemma ]
Comment} in the body of the text, you forego the separation of content
and style, since the separator ] has been hardcoded in.

This is my attempt so far:

- - -

\setuplinenumbering[% 	style=\tfxx, 	referencing=on, 	step=1,
	location=outer, 	method=page, 	align=left, 	distance=1em,
	width=0.4em, 	]

\definelinenote[linenote][% 	paragraph=yes, 	frame=on,framecolor=red,
	]% \setupnotation[linenote][% 	alternative=serried, 	width=broad,
	distance=.5em, 	display=yes, 	]%

\def\variant#1#2{{#1}\linenote{{#1}] {#2}}}

\def\lemma{This is the LEMMA.} \def\comment{This is my COMMENT on the
lemma.} \def\bodytext{This is the BODY TEXT. It should be identical to
the lemma in the note: their being identical should be automated so as
to minimise errors and reduce the amount of typing.}

%% DOCUMENT

\starttext

\startlinenumbering

% EX1 \section{EX1} \variant{Lemma lemma lemma lemma lemma lemma lemma
lemma lemma lemma lemma lemma lemma} {Comment comment comment.}.\blank

% EX2 \section{EX2} \section{With start and stop} \startlinenote[one]
{\lemma ] \comment} \bodytext \stoplinenote[one]

\stoplinenumbering

\stoptext

- - -

In the above, I have been able to successfully do "automate" this using
the macro command "variant". With this approach, however, the line
number is only that of the last word in the lemma.

To get line numbers that span more than one line, Hans instructed us to
use \startlinenote[x]...\stoplinenote[x]. However, I have not been able
to figure out how to "automate" the making of the lemma and comment
like was done in EX1 in such a stopstart block. I assume that the
solution lies in using \startsetups…\stopsetups + \definestartstop.
However, despite many attempts, I haven't been able to concoct the
right set of macros within that to get it working.

I'd be grateful for any help that could be offered.

Many thanks, Talal

p.s. Hans: When using \startlinenote…\stoplinenote, the addition of
some unique name (e.g. \startlinenote[one]) is obviously necessary. Is
there any way to automate this as well, as part of some sets of
macros/commands?
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2015-07-22 19:26 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18  8:10 MANUEL GONZALEZ SUAREZ
2012-07-18 10:09 ` Thomas A. Schmitz
2012-07-18 18:35   ` Pablo Rodríguez
2012-07-19 10:57     ` MANUEL GONZALEZ SUAREZ
2012-07-20 15:41       ` Thomas A. Schmitz
2012-07-20 16:45         ` Hans Hagen
2012-07-20 17:03           ` Thomas A. Schmitz
2012-07-20 17:33           ` Sietse Brouwer
2012-07-20 18:01             ` Wolfgang Schuster
2012-07-20 18:21               ` Thomas A. Schmitz
2012-07-20 20:41                 ` Hans Hagen
2012-07-22 15:54                   ` Pablo Rodríguez
2012-07-22 18:07                 ` Pablo Rodríguez
2012-07-23 13:42                   ` Thomas A. Schmitz
2015-07-22 19:26           ` Talal [this message]
2015-07-22 20:19             ` Pablo Rodriguez
2015-07-22 21:33               ` talazem
2015-07-23 18:09                 ` Pablo Rodriguez
2015-07-24 10:10                 ` Hans Hagen
2012-07-20 18:10         ` Pablo Rodríguez

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=loom.20150722T210228-179@post.gmane.org \
    --to=talazem@fastmail.fm \
    --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).