ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Placing margin notes on the left using Lua
Date: Wed, 20 May 2015 17:21:21 +0200	[thread overview]
Message-ID: <CAG5iGsDmgkCE0=ahqZ5YX=sH-8cHKz2ORYVtxVZ8t8NYc_mkKg@mail.gmail.com> (raw)
In-Reply-To: <555CA4EE.5070200@sub.uni-goettingen.de>


[-- Attachment #1.1: Type: text/plain, Size: 1069 bytes --]

On Wed, May 20, 2015 at 5:14 PM, Hannes Riebl <hriebl@sub.uni-goettingen.de>
wrote:

> 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
>
> Is it possible to have and see  an example ?


-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1678 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:21 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
2015-05-20 15:21           ` luigi scarso [this message]
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='CAG5iGsDmgkCE0=ahqZ5YX=sH-8cHKz2ORYVtxVZ8t8NYc_mkKg@mail.gmail.com' \
    --to=luigi.scarso@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).