ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* typefile behaviour
@ 2010-06-21 13:44 Gery Debongnie
  0 siblings, 0 replies; only message in thread
From: Gery Debongnie @ 2010-06-21 13:44 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-21 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-21 13:44 typefile behaviour Gery Debongnie

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).