ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Error: Missing number, treated as zero?
Date: Thu, 17 Jan 2013 12:33:33 +0100	[thread overview]
Message-ID: <A82A2171-2C6E-4DEF-8FBC-6750C2EC339D@gmail.com> (raw)
In-Reply-To: <50F7D421.5090401@mmnetz.de>


Am 17.01.2013 um 11:36 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:

> Am 17.01.2013 02:36, schrieb ntg-context-request@ntg.nl:
>> You should provide a working minimal example.
>> 
>> The errors message tells me there is a problem with \setupindenting (or the ?indenting? setting) of your bigquote environment.
>> 
>> Wolfgang
> And here it is:
> 
> %%%%% ConTeXt LuaTeX
> 
> \usemodule[annotation]
> 
> \define[2]\AnnotationCommand
> {\startblockquote
> \noindent #2%
> \stopblockquote}
> 
> \defineannotation[bigquote]
> 
> \setupannotation[bigquote]
> [alternative=command,
> command=\AnnotationCommand]
> 
> \starttext
> 
> He said:
> 
> \startbigquote
> This is interesting!
> \stopbigquote
> 
> \stoptext

There is no error message when I run this example.

> %%%%% ConTeXt LuaTeX
> 
> With a different error, but this is the one causing the first error. Interesting: If I write:
> 
> \starttext
> 
> He said:
> 
> \startbigquote
> This is interesting!
> \stopbigquote
> 
> \stoptext
> 
> then there is no error at all.

I can’t believe there is no error when you run this example because
you use the \startbiquote command which isn’t defined anywhere.

> Whatever the matter is, for me the not understanable part is: This code was unchanged for weeks, and yesterday after updating the error occured, why, there must be a reason in the newest version for this, even if my code may be wrong in theory.

Even when there is a problem it’s difficult to tell where the problem lies without a example.

What you can try is to put this block in your document sand tell if it solves the problem:

\unprotect
\unexpanded\def\forgetparindent
  {\settrue\c_spac_indentation_indent_first % recently added
   \d_spac_indentation_par\zeropoint
   \parindent\zeropoint
   \let\v_spac_indentation_current\empty}
\protect

Wolfgang
___________________________________________________________________________________
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:[~2013-01-17 11:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.387.1358386616.2489.ntg-context@ntg.nl>
2013-01-17 10:36 ` "H. Özoguz"
2013-01-17 11:33   ` Wolfgang Schuster [this message]
2013-01-17 11:40   ` Marco Patzer
2013-01-16 16:24 "H. Özoguz"
2013-01-17  1:36 ` 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=A82A2171-2C6E-4DEF-8FBC-6750C2EC339D@gmail.com \
    --to=wolfgang.schuster@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).