ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hannes Riebl <hriebl@sub.uni-goettingen.de>
To: <ntg-context@ntg.nl>
Subject: Re: Placing margin notes on the left using Lua
Date: Wed, 20 May 2015 17:14:54 +0200	[thread overview]
Message-ID: <555CA4EE.5070200@sub.uni-goettingen.de> (raw)
In-Reply-To: <554C9A9C.4050302@sub.uni-goettingen.de>

On 05/08/2015 01:14 PM, Hannes Riebl wrote:
> That's good! Is there an option to use spaces instead of new lines
> between the notes? And how about dropping irrelevant notes? Just to
> provide some more information: We use margin notes to mark text
> omissions. However, these notes should only appear for omissions that
> span multiple lines. Any ideas how to cope with this requirement?
>
> Best regards
> Hannes Riebl

I have finally been able to solve this problem with the following 
workflow: (1) Compile the document using Lua to genenate two text files: 
one that contains the lines and line breaks and another one that 
contains the corresponding margin notes. (2) Use Perl to add \margindata 
in the right places of the ConTeXt source code. (3) Compile the document 
again. It's hacky but it works. Anyways, guess it's been a very unusual 
requirement...

Best regards
Hannes Riebl



--
Hannes Riebl
Abteilung Forschung & Entwicklung

Georg-August-Universität Göttingen
Niedersächsische Staats- und Universitätsbibliothek Göttingen
D-37070 Göttingen

Papendiek 14 (Historisches Gebäude, Raum 2.409)

hriebl@sub.uni-goettingen.de
http://www.sub.uni-goettingen.de
http://www.rdd.sub.uni-goettingen.de
http://dhd-blog.org
___________________________________________________________________________________
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:[~2015-05-20 15:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08  9:35 Hannes Riebl
2015-05-08 10:17 ` Wolfgang Schuster
2015-05-08 10:36   ` Hannes Riebl
2015-05-08 10:41     ` Wolfgang Schuster
2015-05-08 11:14       ` Hannes Riebl
2015-05-20 15:14         ` Hannes Riebl [this message]
2015-05-20 15:21           ` luigi scarso
2015-05-20 16:44             ` Hannes Riebl

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=555CA4EE.5070200@sub.uni-goettingen.de \
    --to=hriebl@sub.uni-goettingen.de \
    --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).