Re: [NTG-context] \setuplist with numbercommand renders wrongly

2017-12-11 Thread Henri
If you want to format the TOC line you have to use command=... together with 
alternative=command.



\define[3]\ChapterNumber{\line{Chapter #1: #2\hfill#3}}

\setuplist
  [section]
  [alternative=command,
   command=\ChapterNumber]

\starttext

\completecontent

\startsection[title={blabla}]
  blabla
\stopsection

\startsection[title={blabla}]
  blabla
\stopsection

\startsection[title={blabla}]
  blabla
\stopsection

\stoptext



If you want to use numbercommand anyway, then make sure that you use it 
correctly.  It only takes
one argument and you have increase the width of number field.



\define[1]\ChapterNumber{Chapter #1:}

\setuplist
  [section]
  [width=2.5cm,
   numbercommand=\ChapterNumber]

\starttext

\completecontent

\startsection[title={blabla}]
  blabla
\stopsection

\startsection[title={blabla}]
  blabla
\stopsection

\startsection[title={blabla}]
  blabla
\stopsection

\stoptext

On Mon, 2017-12-11 at 10:06 +0800, SteamedFish wrote:
> 
> I don’t know if I use it wrongly, or it’s a bug in ConTeXt, but use 
> \setuplist with numbercommand
> renders wrongly 
> 
> 
> 
> % this is not working, ``chapter’’ and chapter name overlapped
> \define[2]\ChapterNumber{chapter #1: #2}
> % have to add extra spaces here to avoid overlapping
> % \define[2]\ChapterNumber{chapter #1:\space\space\space\space\space\space #2}
> \setuplist[section][numbercommand=\ChapterNumber]
> \starttext
> \completecontent
> \section{blabla}
> blabla
> \section{blabla}
> blabla
> \section{blabla}
> blabla
> \stoptext
> 
> 
> 
> 
> 
> 
> 
> 
> I use ConTeXt standalone with Mac OS X
> 
> mtx-context     | ConTeXt Process Management 1.02
> mtx-context     |
> mtx-context     | main context file: /Volumes/DATA/ConTeXt/tex/texmf-
> context/tex/context/base/mkiv/context.mkiv
> mtx-context     | current version: 2017.12.04 16:37
> ___
> 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] issue with css selector in lpath

2017-12-11 Thread mf
I think it's the "#header" without the name of an element before.
Try specifying an element you find in your document (i.e. "{{header,
tag#header}}"), just to see if it compiles.

If it compiles, it's likely you found a bug.

Best wishes,
Massi

Il giorno lun, 11/12/2017 alle 21.51 +0100, Pablo Rodriguez ha scritto:
> Dear list,
> 
> I have the following code:
> 
> \xmlsetsetup{\xmldocument}
> {{header, #header}}
> {xml:titlepage}
> 
> I guess this is right, but I get the following compilation error:
> 
> tex error   > tex error on line 303 in file pandoc-xhtml.tex: !
> Illegal parameter number in definition of \14>:xml:pandoc
> 
> 
> h
>  ...en:h1}\xmlsetsetup {\xmldocument }{{header, ##h
> 
> eader}}{xml:titlepage}\xml...
> \syst_setups_start_xml_indeed ...1\expandafter {#3
>   }
> l.303 \stopxmlsetups
> 
> If I replace the code above with the following one, everything
> compiles
> fine:
> 
> \xmlsetsetup{\xmldocument}
> {{header, [id="header"]}}
> {xml:titlepage}
> 
> Am I missing something, or what am I doing wrong here?
> 
> Many thanks for your help,
> 
> Pablo
___
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] issue with css selector in lpath

2017-12-11 Thread Pablo Rodriguez
Dear list,

I have the following code:

\xmlsetsetup{\xmldocument}
{{header, #header}}
{xml:titlepage}

I guess this is right, but I get the following compilation error:

tex error   > tex error on line 303 in file pandoc-xhtml.tex: !
Illegal parameter number in definition of \14>:xml:pandoc


h
 ...en:h1}\xmlsetsetup {\xmldocument }{{header, ##h

eader}}{xml:titlepage}\xml...
\syst_setups_start_xml_indeed ...1\expandafter {#3
  }
l.303 \stopxmlsetups

If I replace the code above with the following one, everything compiles
fine:

\xmlsetsetup{\xmldocument}
{{header, [id="header"]}}
{xml:titlepage}

Am I missing something, or what am I doing wrong here?

Many thanks for your help,

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] TikZ modules are missing \startmodule

2017-12-11 Thread Christoph Reller
Hi Christian,

Thank you for your support. I think you should insert a line

\startmodule[]

after \unprotect in the following files

\tex\texmf-modules\tex\context\pgf\basiclayer\t-pgf.tex
\tex\texmf-modules\tex\context\pgf\basiclayer\t-pgfbim.tex
\tex\texmf-modules\tex\context\pgf\basiclayer\t-pgfcor.tex
\tex\texmf-modules\tex\context\pgf\frontendlayer\t-tikz.tex
\tex\texmf-modules\tex\context\pgf\math\t-pgfmat.tex
\tex\texmf-modules\tex\context\pgf\systemlayer\t-pgfsys.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgfcal.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgffor.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgfkey.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgfmod.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgfrcs.tex

The  should be the file-name without the leading "t-" and
without the extension ".tex".
E.g: \startmodule[pgf]

Please anybody correct me if I am wrong or missing something.

Kind regards,
Christoph

On Fri, Dec 8, 2017 at 4:44 PM, Christian Feuersaenger
 wrote:
> Hi,
>
> thanks for making me aware of problems with ConTeXt and TikZ.
>
> I will look into it, probably after christmas. I would appreciate it if you
> could make a detailed report, especially containing the missing statements
> or the suggested modifications. The report can be a mail; ticket is also
> fine with me.
>
> Kind regards
>
> Christian
___
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
___