[NTG-context] More spurious problems in exports

2018-07-17 Thread Rik Kabel

List,

Another oddity with  elements in XML / xhtml / html export:

With a defined highlight, a break is inserted if the highlight is the 
first item in an environment. If it is not the first item in the 
environment, no break is inserted.


Most of the other odd breaks can be dealt with in css. These are more 
difficult to tame -- for example, in the startlines environment in the 
example below, there is not enough information preserved to know if the 
tagged item is supposed to be a single line or not.


(Tests using 2018-07-17 beta on Win64.)

Has anyone dealt with this before? Is there a way to control the 
insertion of the breaks?


MWE:

   \setupbackend [export=yes]
   \definehighlight  [emIt]
  [style=italic]
   \starttext
   \startparagraph
  {\emIt Taa} aaa aa a aa aaa  aa aa
  aa. Taa  a, a  aa a  a.
   \stopparagraph
   \startparagraph
  Taa {\emIt aaa} aa a aa aaa  aa aa
  aa. Taa  a, a  aa a  a.
   \stopparagraph
   \startlines
  {\emIt Xyz} abcdefg
  Xyz {\emIt abcdefg}
   \stoplines
   \stoptext

XML output snip:

   http://www.w3.org/1998/Math/MathML;>
 
 
 Taa  
   aaa aa a aa aaa  aa aa aa. Taa  
a, a  aa a  a.
 Taa aaa aa a 
aa aaa  aa aa aa. Taa  a, a  aa a  
a.
 
  Xyz   
   abcdefg
  Xyz abcdefg
 
   

Rendered in Firefox:

--
Rik

___
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] Issues with vertical spacing in simple case

2018-07-17 Thread Hans Hagen

On 7/17/2018 11:35 PM, Joseph Canedo wrote:

Dear list,

Trying to build a MWE for a problem with unexpected page break (near a 
\blank[line, samepage]) I could not yet reproduce yet, I came up with 
strange output.


weird indeed (i know where / why it happens so i'll look into it)


With latest beta

mtx-context | current version: 2018.07.17 17:25

MWE :

\starttext

\dorecurse{5}{

\input knuth

\blank[line, samepage]Second.

\input zapf

\blank[line, samepage]Second maybe vertically wrong align?

}

\stoptext

Please see in page 2, the line printing : Second maybe vertically wrong 
align? (topskip related?)


Seems very close to next line for an unknown reason to me.

Thanks

Best regards

Joseph



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




--

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

[NTG-context] Issues with vertical spacing in simple case

2018-07-17 Thread Joseph Canedo
Dear list,

Trying to build a MWE for a problem with unexpected page break (near a 
\blank[line, samepage]) I could not yet reproduce yet, I came up with strange 
output.
With latest beta

mtx-context | current version: 2018.07.17 17:25

MWE :

\starttext
\dorecurse{5}{
\input knuth
\blank[line, samepage]Second.

\input zapf
\blank[line, samepage]Second maybe vertically wrong align?

}
\stoptext

Please see in page 2, the line printing : Second maybe vertically wrong align? 
(topskip related?)
Seems very close to next line for an unknown reason to me.

Thanks
Best regards

Joseph

___
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] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Hans Hagen

On 7/17/2018 11:00 PM, Alan Braslau wrote:

\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


i assume you wiped the cache

--

-
  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/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] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Alan Braslau
\startusableMPgraphic ?

> On 17 Jul 2018, at 14:46, Rik Kabel  wrote:
> 
> On 7/17/2018 16:40, Hans Hagen wrote:
>> On 7/17/2018 10:30 PM, Rik wrote:
>>> On 7/16/2018 10:24, Fabrice Couvreur wrote:
 % 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
>>> 
>>> Using TL18 on Win64 it produces a large chapter number on the right side 
>>> above the chapter name -- I do not know what it should look like, so I 
>>> won't say it works. It clearly fails with the 2018-07-13 beta, producing an 
>>> odd graphic where the MP-generated digit should be:
>>> 
>>> and fails in the same manner with the 2018-07-17 beta.
>> define 'fails' ... a crash? can someone confirm it?
> By failure, I meant that it produces the graphic I posted, a bold outline 
> around a small square in the area in which the enlarged digit is expected. 
> Not a crash.
> 
> -- 
> Rik
> 
> ___
> 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
> ___

___
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] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Rik Kabel

On 7/17/2018 16:40, Hans Hagen wrote:

On 7/17/2018 10:30 PM, Rik wrote:

On 7/16/2018 10:24, Fabrice Couvreur wrote:

% 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


Using TL18 on Win64 it produces a large chapter number on the right 
side above the chapter name -- I do not know what it should look 
like, so I won't say it works. It clearly fails with the 2018-07-13 
beta, producing an odd graphic where the MP-generated digit should be:


and fails in the same manner with the 2018-07-17 beta.

define 'fails' ... a crash? can someone confirm it?
By failure, I meant that it produces the graphic I posted, a bold 
outline around a small square in the area in which the enlarged digit is 
expected. Not a crash.


--
Rik

___
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] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Hans Hagen

On 7/17/2018 10:30 PM, Rik wrote:

On 7/16/2018 10:24, Fabrice Couvreur wrote:

% 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


Using TL18 on Win64 it produces a large chapter number on the right side 
above the chapter name -- I do not know what it should look like, so I 
won't say it works. It clearly fails with the 2018-07-13 beta, producing 
an odd graphic where the MP-generated digit should be:


and fails in the same manner with the 2018-07-17 beta.

define 'fails' ... a crash? can someone confirm it?

Hans

-
  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/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] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Fabrice Couvreur
Hi Pablo,
I do not have win64, sorry !
I installed texlive 2018 and the file compiles without problem but in a
console other than that of Emacs. I also get the expected result with the
latest version of context standalone but still in a console other than that
of Emacs. Should we conclude that the problem comes from Emacs ?
Fabrice

2018-07-17 21:03 GMT+02:00 Pablo Rodriguez :

> On 07/17/2018 12:36 PM, Fabrice Couvreur wrote:
> > 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.
>
> Hi Fabrice,
>
> I’m on linux-64 and I don’t get the number in any way.
>
> I tried a clean install and I didn’t get the number.
>
> Have you tried with the latest beta for win64?
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> 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
> 
> ___
>
___
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] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Rik

On 7/16/2018 10:24, Fabrice Couvreur wrote:

% 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


Using TL18 on Win64 it produces a large chapter number on the right side 
above the chapter name -- I do not know what it should look like, so I 
won't say it works. It clearly fails with the 2018-07-13 beta, producing 
an odd graphic where the MP-generated digit should be:


and fails in the same manner with the 2018-07-17 beta.

--
Rik

___
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] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Pablo Rodriguez
On 07/17/2018 12:36 PM, Fabrice Couvreur wrote:
> 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.

Hi Fabrice,

I’m on linux-64 and I don’t get the number in any way.

I tried a clean install and I didn’t get the number.

Have you tried with the latest beta for win64?

Pablo
-- 
http://www.ousia.tk
___
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] Storing Lua values between Ctx "*first* and next runs

2018-07-17 Thread Hans Hagen

On 7/14/2018 1:24 PM, Procházka Lukáš Ing. wrote:

Hello,

is there a Lua variable/namespace which is stored automatically between 
Ctx "*first" and following runs?


I thought 'userdata' is intended for this, but it seems it's not; I'd 
like to achieve something like:



\startluacode
   if tex.modes["*first"] then
     userdata.LPr = "Something"
     -- Is there a variable which is shared between Ctx runs?
   else
     assert(userdata.LPr == "Something")
   end
\stopluacode


Of course, I can store the table via serialization functions to an extra 
file, but I thought there is already a variable/mechanism for this (e.g. 
using .tua/.tuc file) ... is it?


search for datasets in the test suite

-
  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/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] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Hans Hagen

On 7/17/2018 12:36 PM, Fabrice Couvreur wrote:

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")))

I have no clue ... maybe a linux user knows or can confirm it.

Hans

-
  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/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] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Hans Hagen

On 7/17/2018 3:40 PM, Procházka Lukáš Ing. wrote:

Hello,

I encountered a weird thing - words of 1 letter inside btex ... etex 
within MP are not shown - check:



\setuplayout[page]

\startluacode
   context.setMPtext("Pare", "1")
   context.setMPtext("Pare2", "22")
   context.setMPtext("Pare3", "333")
\stopluacode

%

\startuseMPgraphic{Pare}
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold TTT etex, (0, 150))
     withcolor red
     ;
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold U etex, (0, 100))
     withcolor magenta
     ;
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare} 
etex, (0, 50))

     withcolor green
     ;
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare2} 
etex, (0, 0))

     withcolor blue
     ;
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare3} 
etex, (0, -50))

     withcolor yellow
     ;

\stopuseMPgraphic

% Overlays

\defineoverlay[Pare][\useMPgraphic{Pare}]

\setupbackgrounds[page][background={foreground,Pare}]

\starttext
   \startTEXpage[width=210mm,height=297mm]
     Aaa
   \stopTEXpage
\stoptext


Here, texts "1" and "U" are not rendered; if you change them to e.g. 
"11" and "UU", all works fine.


Am I missing something? Bug?

{\switchtobodyfont[20mm]\sans\bold \MPtext{Pare}}


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

[NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Procházka Lukáš Ing .

Hello,

I encountered a weird thing - words of 1 letter inside btex ... etex within MP 
are not shown - check:


\setuplayout[page]

\startluacode
  context.setMPtext("Pare", "1")
  context.setMPtext("Pare2", "22")
  context.setMPtext("Pare3", "333")
\stopluacode

%

\startuseMPgraphic{Pare}
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold TTT etex, (0, 150))
withcolor red
;
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold U etex, (0, 100))
withcolor magenta
;
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare} etex, (0, 
50))
withcolor green
;
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare2} etex, (0, 
0))
withcolor blue
;
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare3} etex, (0, 
-50))
withcolor yellow
;

\stopuseMPgraphic

% Overlays

\defineoverlay[Pare][\useMPgraphic{Pare}]

\setupbackgrounds[page][background={foreground,Pare}]

\starttext
  \startTEXpage[width=210mm,height=297mm]
Aaa
  \stopTEXpage
\stoptext


Here, texts "1" and "U" are not rendered; if you change them to e.g. "11" and 
"UU", all works fine.

Am I missing something? Bug?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

Pare.log
Description: Binary data


Pare.mkiv
Description: Binary data


Pare.pdf
Description: Adobe PDF document
___
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] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Fabrice Couvreur
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
>> 
>> ___
>
>
>
___
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
___