Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Saša Janiška
On Fri, 15 Feb 2019 13:59:46 +0100
Wolfgang Schuster  wrote:

> You need (note the “start”)
> 
>  \startsection[title={...}]
> 
> when you use \stopsection.

Ahh, I managed to try just those combination which do not work...feeling really
embarrassed. :-(

Thank you for being kind and exposing my stupidity. ;)


Sincerely,
Gour

-- 
A person is said to be established in self-realization and is called a
yogī [or mystic] when he is fully satisfied by virtue of acquired
knowledge and realization. Such a person is situated in transcendence
and is self-controlled. He sees everything — whether it be pebbles,
stones or gold — as the same.


pgpqq1hhraHuS.pgp
Description: OpenPGP digital signature
___
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
___


Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Gour
On Fri, 15 Feb 2019 13:59:20 +0100
Henning Hraban Ramm  wrote:

> You mixed up the syntax,
> it’s either \section{Testing} or \startsection[title=Testing]

Ahh, what a shame. :-(


Sincerely,
Gour

-- 
For him who has conquered the mind, the mind is the best of
friends; but for one who has failed to do so, his mind will
remain the greatest enemy.


___
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
___


Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Wolfgang Schuster

Gour schrieb am 15.02.19 um 13:54:

Hello,

another attempt with ConTeXt and I'm getting this:

$  context t.tex
mtx-context | run 1: luatex 
--fmt="/home/gour/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en" 
--jobname="t" 
--lua="/home/gour/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui" 
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./t.tex" --c:input="./t.tex" --c:kindofrun=1 --c:maxnofruns=9 
"cont-yes.mkiv"

This is LuaTeX, Version 1.07.0 (TeX Live 2018/Arch Linux)
  system commands enabled.
open source > level 1, order 1, name 
'/usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt: 2019.2.14  
int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name 
'/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 't', input './t', result 't'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/gour/tmp/t.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
structure   > sectioning > section @ level 3 : 0.0.1 -> Testing ConTeXt

tex error   > tex error on line 4 in file /home/gour/tmp/t.tex: ! Missing 
number, treated as zero


\23>>currentnamedsection
\popmacro ...m_syst_helpers_push_macro \endcsname
   \global \advance \lastname...
l.4 \stopsection
   


1 \starttext
2 \section[title={Testing ConTeXt}]


You need (note the “start”)

\startsection[title={...}]

when you use \stopsection.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Henning Hraban Ramm
Am 2019-02-15 um 13:54 schrieb Gour :

> Hello,
> 
> another attempt with ConTeXt and I'm getting this:
> 
> \starttext
> \section[title={Testing ConTeXt}]
> This is my document using Croatian chars: šŠ đĐ čČ ćĆ žŽ.
> \stopsection
> \stoptext

You mixed up the syntax,
it’s either \section{Testing} or \startsection[title=Testing]


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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
___


Re: [NTG-context] Missing number, treated as zero error when using \definefont with \define'd dimension

2013-03-21 Thread Wolfgang Schuster

Am 21.03.2013 um 20:58 schrieb Lars Huttar lars_hut...@sil.org:

 Hello,
 
 I reported a Missing Number error back in December (thread at
 http://www.ntg.nl/pipermail/ntg-context/2012/070471.html) but got
 sidetracked on another issue before finding a resolution.
 Now I'm back to the Missing Number error, and I have a short example
 that reproduces it:
 
  \define\largefontsize{13pt}
 
  % Works fine: \definefont[SerifL][Arial at 13pt]
  % Leads to error:
  \definefont[SerifL][Arial at \largefontsize]
 
  % Missing number, treated as zero error thrown on the following line:
  \starttext \SerifL{Hello} \stoptext
 
 Note that the SerifL font definition works fine (no error) if I
 hard-code in 13pt instead of using an intervening \largefontsize
 definition. But if I hard-code the point size, it would hamper the
 modularity of our font configuration and the use of modes in which
 different size fonts are used.
 
 Maybe \define is just the wrong command to use when creating an
 identifier for a specified dimension?
 I tried changing it to \def and the error went away!
 
 I looked up the documentation of \define
 (http://wiki.contextgarden.net/Command/define) and \def, and couldn't
 find any obvious difference, except that \def is TeX and \define is
 ConTeXt. The wiki page I just linked to mentions differences between
 MkII and MkIV, but this error occurs in both (in XeTeX and LuaTeX).
 
 Can someone help me understand why I should not use \define for this
 case? (Or in general, when I should not use \define?) Or does the
 problem lie somewhere else?

Commands created with \define aren’t expandable, i.e. when the content
of \definefont is passed to Lua \largefontsize remains a TeX macro and isn’t
converted to the dimension. To get a expandable macro use \defineexpandable
to create \largefontsize (untested).

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
___