ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Tomas Hala <tomas.hala@mendelu.cz>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: line numbering within frame
Date: Thu, 23 Jan 2020 12:45:22 +0100	[thread overview]
Message-ID: <20200123114522.GA13455@akela.mendelu.cz> (raw)
In-Reply-To: <F5F28F10-33FD-4008-B886-2327629799C3@uni-bonn.de>

Hi Thomas,

move definitions and setups for Three and Four before the use of \framed.
(With TL2019 works.)

Wishes,

Tomáš




Thu, Jan 23, 2020 ve 11:54:49AM +0100 Thomas A. Schmitz napsal(a):
# Hi all,
# 
# I want line numbering within a framed environment, and I need two (at least) independent numbering systems. I hit a similar problem in 2016, and Wolfgang provided a solution (defining different numbering environment). However, this does not work within a frame. The example shows the problem:
# 
# \starttext
# 
# % This works:
# \definelinenumbering[One]
#    \setuplinenumbering[One]
#    [style=\ss,
#       distance=-2ex,
#       step=2,
#       location=inleft,
#       start=20,
#       color=darkblue]
# 	 \startlinenumbering[One]
# 	 \input knuth 
# 	 \stoplinenumbering
#   
#  \blank [line]
# 
#    \definelinenumbering[Two]
#    \setuplinenumbering[Two]
#    [style=\bf,
#       distance=-2ex,
#       step=3,
#       location=inleft,
#       start=4,
#       color=darkred]
# 	 \startlinenumbering[Two]
# 	 \input klein
# 	 \stoplinenumbering
# 
# % This fails:
# \framed 
#    [background=color,
#       backgroundcolor=gray,
#       align={normal,hanging,stretch,tolerant},
#       frame=off,
#       loffset=6ex,
#       width=\textwidth,
#       foregroundstyle=\ss]
# {\definelinenumbering[Three]
#    \setuplinenumbering[Three]
#    [style=\ss,
#       distance=-2ex,
#       step=2,
#       location=inleft,
#       start=20,
#       color=darkblue]
# 	 \startlinenumbering[Three]
# 	 \input knuth 
# 	 \stoplinenumbering
#    \blank [line]
# 
#    \definelinenumbering[Four]
#    \setuplinenumbering[Four]
#    [style=\bf,
#       distance=-2ex,
#       step=3,
#       location=inleft,
#       start=4,
#       color=darkred]
# 	 \startlinenumbering[Four]
# 	 \input klein
# 	 \stoplinenumbering}
# 
# \stoptext
# 
# The framed environment fails with the error message "Missing number, treated as zero.” Does anyone know how this can be fixed?
# 
# All best
# 
# Thomas
# ___________________________________________________________________________________
# 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://context.aanhet.net
# archive  : https://bitbucket.org/phg/context-mirror/commits/
# wiki     : http://contextgarden.net
# ___________________________________________________________________________________

                                         Tomáš Hála
--------------------------------------------------------------------
Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28
--------------------------------------------------------------------
http://akela.mendelu.cz/~thala
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2020-01-23 11:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-23 10:54 Thomas A. Schmitz
2020-01-23 11:45 ` Tomas Hala [this message]
2020-01-23 21:32   ` Wolfgang Schuster
2020-01-23 21:53     ` Thomas A. Schmitz
2020-01-25 18:17       ` Wolfgang Schuster
2020-01-26 12:49         ` Thomas A. Schmitz
2020-01-24 17:45   ` Thomas A. Schmitz
2020-01-24 17:57     ` Tomas Hala
2020-01-24 19:06       ` Wolfgang Schuster

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=20200123114522.GA13455@akela.mendelu.cz \
    --to=tomas.hala@mendelu.cz \
    --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).