Re: [NTG-context] Error: Missing number, treated as zero?
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 %%%%% 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. 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. Thank you :) Huseyin
Am 17.01.2013 um 11:36 schrieb H. Özoguz
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
participants (3)
-
"H. Özoguz"
-
Marco Patzer
-
Wolfgang Schuster