ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gery Debongnie <gery.debongnie@gmail.com>
To: ntg-context@ntg.nl
Subject: typefile behaviour
Date: Mon, 21 Jun 2010 14:44:37 +0100	[thread overview]
Message-ID: <AANLkTikNBruMdGfq0UikoX-9_EZHTEN1sbgrIns8ujfz@mail.gmail.com> (raw)

Dear ConTeXt list,
I encountered a weird behaviour while using typefile. Here is a
minimal example, to illustrate what I am saying.  We have two files,
test.txt and test.tex, respectively (between the  ---------).
-----------------
1
2
3

4
5
-------------------
\setuptyping
	[before={\startframedtext},
	 after={\stopframedtext}]
\starttext
\typefile[start=2,stop=4]{test.txt}
\typefile[start=2,stop=5]{test.txt}
\stoptext
-------------------
Now, if you save those lines into test.txt and test.tex, and if you
compile the tex file, you get the exact same boxes.  As far as I
understand it, ConTeXt works as I expect when there is no empty line,
meaning that it typeset the lines between start and stop. However,
when there is an empty line right after the last line, ConTeXt also
includes it.  I don't really understand that behaviour. Perhaps it is
something to do with different paragraphs, I don't know.

However, what I do know is that it is annoying.  It adds an empty line
at an unwanted place, and it looks unprofessional in my text.  So, my
question is the following :
1. Why does it behave like that? Is that a bug?
2. What should I do to solve that problem?

Regards,

Géry D.
___________________________________________________________________________________
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:[~2010-06-21 13:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=AANLkTikNBruMdGfq0UikoX-9_EZHTEN1sbgrIns8ujfz@mail.gmail.com \
    --to=gery.debongnie@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).