From: Andreas Harder <aharder@uni-koblenz.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: line numbering
Date: Tue, 20 Oct 2009 08:32:58 +0200 [thread overview]
Message-ID: <49DF48E9-904E-4243-B4CB-9B675A6E509F@uni-koblenz.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 155 bytes --]
Good morning everyone!
I've discovered some strange behavior from line numbering
(attachment). The size of the line numbers changes after a page break.
[-- Attachment #2: test-linenumbering.tex --]
[-- Type: application/octet-stream, Size: 957 bytes --]
\setuplayout[height=fit,header=0pt,footer=0pt,topspace=0pt,bottom=0pt]
\setuplinenumbering
[location=right, % inright
align=left,
% width=-\textwidth, % numbers on the right side (with align=right)
% command=\WatchThis, % do not work
distance=1pt,
style=\ssx]
\def\WatchThis#1%
{\ifodd\linenumber
\definecolor[linecolor][red]%
\else
\definecolor[linecolor][green]%
\fi
\inframed
[offset=1pt,frame=off,background=color,backgroundcolor=linecolor]
{#1}}
\setupdelimitedtext
[blockquote]
[before=\startlinenumbering,
after=\stoplinenumbering,
style=\tfx\setupinterlinespace]
\starttext \showframe
\dorecurse{4}{\input tufte \par}
\startlinenumbering
\dorecurse{4}{\input tufte \par}
\stoplinenumbering
\dorecurse{4}{\input tufte \par}
\startblockquote
\dorecurse{3}{\input tufte \par}
\stopblockquote
\stoptext
%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:
[-- Attachment #3: Type: text/plain, Size: 319 bytes --]
Furthermore some settings for line numbers do not work. I tried some
of the examples from strc-lnt.mkiv (at the bottom) … I want the
numbers on the right side and would assume \setuplinenumbering
[location=right, align=left].
Please have a look. Perhaps I did something wrong.
Greetings
Andreas
[-- Attachment #4: Type: text/plain, Size: 486 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
___________________________________________________________________________________
next reply other threads:[~2009-10-20 6:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 6:32 Andreas Harder [this message]
2009-10-25 16:32 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2006-09-02 4:43 Line numbering CV Radhakrishnan
2001-06-27 21:48 David Antos
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=49DF48E9-904E-4243-B4CB-9B675A6E509F@uni-koblenz.de \
--to=aharder@uni-koblenz.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).