ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Saša Janiška" <gour@atmarama.com>
To: ntg-context@ntg.nl
Subject: ’Undefined control sequence’ with basic example
Date: Fri, 29 Apr 2016 11:05:11 +0200	[thread overview]
Message-ID: <87wpngu6ns.fsf@atmarama.com> (raw)

Hello,

I had to prepare some text for my mother by extracting some portions
from her book (done in LyX/LaTeX) and now wanted to use it as example to
see the quality of job done by LuaTeX…

However, converting LyX —> LaTeX —> Pandoc –> ConTeXt failed and I tried
with the simple example
(http://wiki.contextgarden.net/Command/startsection):

% mode=mkiv
\setuppapersize[A5]
\starttext

\startsection[
    reference=sec:One,
    title={Section One},
]

For a subsection, see \in{subsection}[sec:Two:Sec].

\stopsection

\startsection[
    reference=sec:Two,
    title={Section Two},
]
[a_variable={some value}]

a_variable=\quote{\structureuservariable{a_variable}}.

\startsubsection[
    reference=sec:Two:Sec,
    title={Here’s a subsection},
]

In this subsection there’s some text\ldots

\stopsubsection
\stopsection
\stoptext

but running it under Debian (Sid) gives:

[gour@atmarama ~/prj/knjiga]$ luatex t.tex
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238) 
 restricted \write18 enabled.
(./t.tex
! Undefined control sequence.
l.2 \setuppapersize
                 [A5]
? l
Type <return> to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.
? x
No pages of output.
Transcript written on t.log.
[gour@atmarama ~/prj/knjiga]$ less t.tex
[gour@atmarama ~/prj/knjiga]$ luatex t.tex
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238) 
 restricted \write18 enabled.
(./t.tex
! Undefined control sequence.
l.2 \setuppapersize
                 [A5]
? 


What is wrong?


Sincerely,
Gour

-- 
A person who has given up all desires for sense gratification,
who lives free from desires, who has given up all sense of
proprietorship and is devoid of false ego — he alone can
attain real peace.

___________________________________________________________________________________
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:[~2016-04-29  9:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29  9:05 Saša Janiška [this message]
2016-04-29  9:10 ` Wolfgang Schuster
2016-04-29  9:21   ` Saša Janiška

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=87wpngu6ns.fsf@atmarama.com \
    --to=gour@atmarama.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).