![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
Hi Hans,
In fact, the file compiles well with the beta version but only from a
terminal by running the
/home/aragorn/context/tex/texmf-linux-64/bin/context Test.tex && evince
Test.pdf command.
On the other hand, if I compile with Emacs, the chapter number does not
appear.
I configured Emacs so that in context mode, the compilation is done with
the beta version. Here is a part of my ~/.emacs file :
;; SERVER Download (MELPA):
(when (> = emacs-major-version 24)
(require 'package)
(Add-to-list
Archive-Package
'("melpa". "http://melpa.org/packages/")
t)
(Package-initialize))
(setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin: $ PATH" t)
(setq ConTeXt-mode-hook
(lambda () (setq TeX-command-extra-options "--purgeall")))
Thank you
Fabrice
2018-07-16 19:42 GMT+02:00 Fabrice Couvreur
The chapter number does not appear. My editor is emacs and I compile with Context Full.
2018-07-16 19:27 GMT+02:00 Hans Hagen
: On 7/16/2018 4:24 PM, Fabrice Couvreur wrote:
Hello, The idea is to make a chapter header as with the "titlesec" package. My code compiles under texlive context 2018 but does not compile with last beta contest standalone.
it processes on my machine so what fails?
Thank you
Fabrice
############################################
% macros=mkvi
\setuppagenumbering[location=footer]
\startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}") (withcolor "lightgray") ysized 50pt ; \stopusableMPgraphic
\unexpanded\def\processMPheadnumber#1% {\useMPgraphic{NumberHead}}
\setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\processMPheadnumber]
\unexpanded\def\HeadTitle#1#2% {\framed [frame=off, bottomframe=on, width=broad, align={broad,nothyphenated,left}] {#1\blank[nowhite]#2}}
\starttext
\dorecurse{6}{\startchapter [title={Fist chapter}] \input knuth \stopchapter}
\stoptext
########################################
____________________________________________________________ _______________________ 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/list info/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ____________________________________________________________ _______________________
--
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ____________________________________________________________ _______________________ 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/list info/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ____________________________________________________________ _______________________