ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bugs in linenumbering ?
@ 2014-04-02 13:17 Stéphane Goujet
  2014-04-03 14:19 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Stéphane Goujet @ 2014-04-02 13:17 UTC (permalink / raw)
  To: ntg-context

Hello,


  Here is an example that highlights a few problems I have with
linenumbering.

  When the line numbers are located in the margin, everything is fine.

  But when the number is located in the text:
1) Text overflows in the right margin.
2) Paragraph indenting does not work. We can even see a kind of right
indentation appear.

1+2 => First line of the paragraph is too short, netx ones are too long.

3) linenumbering does not work within footnotes (neither with line
numbers in margin nor in text).


  Perhaps (3) is not implemented, but I suppose (1) and (2) are not
the expected behaviour.


==============================

\setuppapersize[A4]
\setupindenting[yes,first,medium]

\definelinenumbering[lnbasic]
\definelinenumbering[lntext]
\definelinenumbering[lntextandnullwidth]
\definelinenumbering[lntextandwidth]

\setuplinenumbering[lnbasic][]
\setuplinenumbering[lntext][location=text]
\setuplinenumbering[lntextandnullwidth][location=text,width=0pt]
\setuplinenumbering[lntextandwidth][location=text,width=.75em]

\starttext

{\bf A normal paragraph for reference}. \input tufte

\startlinenumbering[lnbasic]
{\bf Numbers in margin : correct right margin, paragraph indentation.}
\input tufte \stoplinenumbering

\startlinenumbering[lntext]
{\bf Numbers in text, default width : overflow, no indentation of the
first line but some kind of right indentation!} \input tufte
\stoplinenumbering

\startlinenumbering[lntextandnullwidth]
{\bf Numbers in text, 0 width : no overflow but overtype on numbers,
same problem with indentation.} \input tufte
\stoplinenumbering

\startlinenumbering[lntextandwidth]
{\bf Numbers in text, average width : average overflow, same problem
with indentation.} \input tufte
\stoplinenumbering

It also affects the previous lines when {em line numbering} starts from
the middle of the line and not on a new paragraph.
\startlinenumbering[lntext]
{\bf Numbers in text, default width : overflow, no indentation of the
first line but some kind of right indentation!} \input tufte
\stoplinenumbering

Line numbering does not work in footnotes\footnote{
\startlinenumbering[lnbasic]
{\bf Numbers in margins.} \input tufte
\stoplinenumbering
}
\footnote{
\startlinenumbering[lntext]
{\bf Numbers in text.} \input tufte
\stoplinenumbering
}.

\stoptext

==============================


Goodbye,
  Stéphane.
___________________________________________________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2014-04-05 14:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-02 13:17 Bugs in linenumbering ? Stéphane Goujet
2014-04-03 14:19 ` Hans Hagen
2014-04-03 15:08   ` Pablo Rodriguez
2014-04-03 17:16   ` Stéphane Goujet
2014-04-03 17:01     ` Rik Kabel
2014-04-03 22:15       ` Stéphane Goujet
2014-04-04  0:15       ` Stéphane Goujet
2014-04-04  3:02         ` Rik Kabel
2014-04-05 14:05           ` Stéphane Goujet

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