[NTG-context] ConTeXt to EPUB/XHTML, problem

2012-01-17 Thread Martin Bruchanov
Hi guys,

I'm getting this output:

errorinvalid xml file - parsed text/error

My test.tex file is following:

\setupbackend[export=yes,xhtml=yes]

\definehighlight[strong][style=bold]
\definehighlight[emph] [style=italic]

\starttext
Hello world!
text \strong{text} text \emph{text} text
\stoptext


I'm using:
context test.texor
mtxrun --script epub --make test

I had the problem with 2011.12.19 version, the epub xhtml was
empty (zero sized file), so I've upgraded to latest: 2012.01.16
18:33 and the output is invalid xml file - parsed text.

Any suggestions?


-- 
Martin Bruchanov

mobil :  +420 725 759 978
Skype :  bruxytronics
WWW   :  http://bruxy.regnet.cz/
GPG-Key   :  http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53)
Linked-In :  http://www.linkedin.com/in/bruxy
Google+   :  http://gplus.to/BruXy


pgphfxZoxNSUL.pgp
Description: PGP 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] new beta

2012-01-17 Thread Mari Voipio
On Mon, Jan 16, 2012 at 19:47, Hans Hagen pra...@wxs.nl wrote:
 I uploaded a new beta. This time a couple of fixes + some reorganization of
 font related code. More to follow.

There's something fishy somewhere in the fonts or the simplefonts
module, because a file that worked last week now gets

.
c:/windows/fonts/arial.ttfc:/windows/fonts/ariali.ttfC:/context/tex/texmf/fonts/opentype/public/lm/lmmath-regular.otf
!LuaTeX error (file
C:/context/tex/texmf/fonts/opentype/public/lm/lmmath-regular.otf):
Parsing CFF DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!




It's a complicated history with layers and stuff and I couldn't
straight out isolate the cause of the problem, but I've never seen
this CFF DICT complaint before. :-)



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


[NTG-context] \showmathcharacters or \showmathfontcharacters

2012-01-17 Thread Otared Kavian
Hi Hans,

The following used to show all the commands for various math characters. It 
still works in mkii, but I wonder what would be the analogous for mkiv: is 
there still a way to see math characters in mkiv?

%%% begin showmath.tex
%\doifmode{mkiv}{\usemodule[fnt-25]}
\doifmode{mkiv}{\usemodule[s-mat-10]} % the file fnt-25.tex is replaced with 
s-mat-10.mkiv

\starttext
\doifmodeelse{mkiv}{\showmathfontcharacters}{\showmathcharacters}
\stoptext
%%% end showmath.tex

Thanks in advance end best regards: OK
___
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
___


Re: [NTG-context] new beta

2012-01-17 Thread Hans Hagen

On 17-1-2012 09:08, Mari Voipio wrote:

On Mon, Jan 16, 2012 at 19:47, Hans Hagenpra...@wxs.nl  wrote:

I uploaded a new beta. This time a couple of fixes + some reorganization of
font related code. More to follow.


There's something fishy somewhere in the fonts or the simplefonts
module, because a file that worked last week now gets

..
c:/windows/fonts/arial.ttfc:/windows/fonts/ariali.ttfC:/context/tex/texmf/fonts/opentype/public/lm/lmmath-regular.otf
!LuaTeX error (file
C:/context/tex/texmf/fonts/opentype/public/lm/lmmath-regular.otf):
Parsing CFF DICT failed. (error=-1)
  ==  Fatal error occurred, no output PDF file produced!
.


Does the same happen in a test file not using simplefonts?  It's a 
luatex message.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \showmathcharacters or \showmathfontcharacters

2012-01-17 Thread Hans Hagen

On 17-1-2012 09:14, Otared Kavian wrote:

Hi Hans,

The following used to show all the commands for various math characters. It 
still works in mkii, but I wonder what would be the analogous for mkiv: is 
there still a way to see math characters in mkiv?


s-mat-*


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt to EPUB/XHTML, problem

2012-01-17 Thread Hans Hagen

On 17-1-2012 09:01, Martin Bruchanov wrote:

\setupbackend[export=yes,xhtml=yes]

\definehighlight[strong][style=bold]
\definehighlight[emph] [style=italic]

\starttext
Hello world!
text \strong{text} text \emph{text} text
\stoptext


a conflict in some macro names ... will be sorted out


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread Steffen Wolfrum

Am 16.01.2012 um 17:18 schrieb Hans Hagen:

 On 16-1-2012 15:39, Steffen Wolfrum wrote:
 Send a example where we can see how the list entries are formatted.
 
 Wolfgang
 
 
 
 Sorry, no example now: I am just about to leave the desk.



Back again ...
Here is the corresponding minimal example:


\definelistplacement[MyListItemIT][none]#1#2#3%
   
{\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay]{\bf\midaligned{#2}}\hfill\tf#3}

\setuplist[chapter] 
   [alternative=MyListItemIT]

\definecombinedlist[TOCtoc]
[chapter]

\setupcombinedlist[TOCtoc]
[aligntitle=yes,criterium=text,interaction=all]


\starttext

\placeTOCtoc[criterium=text,interaction=all]

\startchapter[
   title={Das Krankenhaus als Leistungserbringer in der GKV},
 marking={Das Krankenhaus als Leistungserbringer in der GKV},
list={Das Krankenhaus\\als Leistungserbringer in der GKV},
bookmark={Das Krankenhaus als Leistungserbringer in der GKV}]

\stopchapter

\stoptext



Best, Steffen
___
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
___


Re: [NTG-context] standardmakeup...

2012-01-17 Thread Willi Egger
Hi Wolfgang,

thanks for enlighten me! - This works.

Willi
On 16 Jan 2012, at 23:04, Wolfgang Schuster wrote:

 
 Am 16.01.2012 um 22:44 schrieb Willi Egger:
 
 Dear all,
 
 I tried to recompile a booklet. Then I realized that whatever I give for 
 arguments the standardmakeup environment gives me an empty page although it 
 should give only after the first standarmakeup an empty page but not after 
 the second standardmakeup. - This behavior is encountered in all versions of 
 Context I have on my machine based on luatex 0.70, including todays beta.
 
 May be I miss something?
 
 Change
 
   \setupmakeup[standard][bottom=,top=]
 
 to
 
   \setupmakeup[standard][bottom=,top=,page=yes]
 
 BTW: The makeup environment has a align key (you can use this to get rid of 
 all the \centerline and \leftaligned settings) and the font command (\bf, \bs 
 etc.) don’t take argument and you can remove the braces.
 
 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
 ___

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


Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread luigi scarso
On Tue, Jan 17, 2012 at 11:37 AM, Steffen Wolfrum cont...@st.estfiles.dewrote:


 Am 16.01.2012 um 17:18 schrieb Hans Hagen:

  On 16-1-2012 15:39, Steffen Wolfrum wrote:
  Send a example where we can see how the list entries are formatted.
 
  Wolfgang
 
 
 
  Sorry, no example now: I am just about to leave the desk.



 Back again ...
 Here is the corresponding minimal example:


 \definelistplacement[MyListItemIT][none]#1#2#3%

 {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay]{\bf\midaligned{#2}}\hfill\tf#3}


Probably a bug, but this is ok
\definelistplacement[MyListItemIT][none]#1#2#3%
{\hfill\kern-1em\it#1%
\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}%
\framedtext[frame=off,offset=overlay,align=middle,style=bold]%
{#2}%
\hfill\tf#3
}

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

[NTG-context] Using non-math fonts for letters and numerals in formulas

2012-01-17 Thread Nikita Volchenkov
Hello.

I want to use in formulas for letters and numerals my usual text font (Linux
Libertine for example) and math font for all other symbols (saying Cambria Math
or Computer Modern). It is possible? If so, I would like to see example
typescript for MkIV.
___
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
___


[NTG-context] layout space between paper and text

2012-01-17 Thread Pavel Dohnal
Hello,
I want to have 10mm space between rim of the paper and beginig of the text.
This is my layout:

\definelayout[normal][
bottompace=0mm,
 footerheight=6mm,
footerdistance=0mm,
bottomdistance=0mm,
 bottomspace=0mm,
topdistance=0mm,
topspace=0mm,
 headerheight=60mm,
headerdistance=0mm,
leftedgewidth=0mm,
 leftmargin=10mm,
leftedgedistance=0mm,
leftmargindistance=0mm,
 backspace=10mm,
rightedge=0mm,
rightmargin=10mm,
 cutspace=0mm,
rightmargindistance=0mm,
rightedgedistance=0mm,
 width=277mm,
height=210mm
 ]
\setuplayout[normal]
After printing is space in left 10mm, but space between top rim of the
paper and top text is 14mm. Why is that? How to setup my layout to have
exactly 10 mm both in top and in left?
___
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
___

Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread Steffen Wolfrum

Am 17.01.2012 um 12:19 schrieb luigi scarso:

 Probably a bug, but this is ok
 \definelistplacement[MyListItemIT][none]#1#2#3%
 {\hfill\kern-1em\it#1%
 \hfill\strut\crlf\strut\hfill\hphantom{\tf#3}%
 \framedtext[frame=off,offset=overlay,align=middle,style=bold]%
 {#2}%
 \hfill\tf#3
 }


Not really ok. That's a pitfall with minimal examples ... the devil is in the 
details ;o)
For getting it minimal I wrote \bf, but in the original file it is used as a 
bold style with a certain size and a certain interlineskip: \TOCstyleBF

And this interlineskip is ignored in your solution, test the following please:


\def\TOCstyleBF{\switchtobodyfont[9pt]\bf\setupinterlinespace[line={40pt}]}

\definelistplacement[MyListItemIT][none]#1#2#3%
   
{\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay,align=middle,style=TOCstyleBF]{#2}\hfill\tf#3}
 % here the interlinespace is ignored
%   
{\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay]{\TOCstyleBF\midaligned{#2}}\hfill\tf#3}
 % here the interlinespace worked
 
\setuplist[chapter] 
   [alternative=MyListItemIT]

\definecombinedlist[TOCtoc]
[chapter]

\setupcombinedlist[TOCtoc]
[aligntitle=yes,criterium=text,interaction=all]


\starttext

\placeTOCtoc[criterium=text,interaction=all]

\startchapter[
   title={Das Krankenhaus als Leistungserbringer in der GKV},
 marking={Das Krankenhaus als Leistungserbringer in der GKV},
list={Das Krankenhaus\\als Leistungserbringer in der GKV},
bookmark={Das Krankenhaus als Leistungserbringer in der GKV}]

\stopchapter

\stoptext


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


Re: [NTG-context] Type 1 font loading with new beta

2012-01-17 Thread Willi Egger
Hi Wolfgang,

thanks for this. Indeed it works ok! (Stupid me had edited the trypescriptfile 
of the wrong tree before writing yesterdays mail).

Willi
On 16 Jan 2012, at 23:11, Wolfgang Schuster wrote:

 
 Am 16.01.2012 um 23:00 schrieb Willi Egger:
 
 Hi font gurus,
 
 With context from begin of the year it worked to load a type 1 font with a 
 typescript based on the following syntax:
 
 \starttypescript [serif] [LTpalatino] [name]
  \usetypescript[serif][fallback]
  \definefontsynonym [Serif] [file:pr]
  \definefontsynonym [SerifItalic][file:poios]
  \definefontsynonym [SerifBold][file:pb]
  \definefontsynonym [SerifCaps][file:posc]
  \definefontsynonym [SerifBoldOsF][file:pobos]
 \definefontvariant [Serif][osf][OsF]
 \stoptypescript
 
 \starttypescript[LT-Palatino]
  \definetypeface [LT-Palatino][rm][serif][LTpalatino][default][]
 \stoptypescript 
 
 Error:
 
 \23228 ...oldOsF][file:pobos] \definefontvariant 
 [Serif][osf][OsF] \stoptyp...
 inserted text \23228 
   \23229 
 \font_typescript_process_typescript_file_and_store ...
 
 \font_typescripts_load_file ...ipt_file_and_store 
 \else \font_typescript_pro...
 \next2 #1,-\font_typescripts_load_file {#1}
   \syst_helpers_do_process_comma_i...
 ...
 l.18 \setupbodyfont
  [LT-Palatino,rm,10pt]
 
 Is due to the overhauling the approach now different?
 
 The \definefontvariant command is no longer available in MkIV because for 
 truetype/opentype fonts it isn’t necessary.
 
 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
 ___

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


Re: [NTG-context] Using non-math fonts for letters and numerals in formulas

2012-01-17 Thread Hans Hagen

On 17-1-2012 12:23, Nikita Volchenkov wrote:

Hello.

I want to use in formulas for letters and numerals my usual text font (Linux
Libertine for example) and math font for all other symbols (saying Cambria Math
or Computer Modern). It is possible? If so, I would like to see example
typescript for MkIV.


you can make a virtual font ... see palatino-math.lfg etc for an example 
definition


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] layout space between paper and text

2012-01-17 Thread Vladimir Lomov
Hello,
** Pavel Dohnal [2012-01-17 12:38:11 +0100]:

 Hello,
 I want to have 10mm space between rim of the paper and beginig of the text.
 This is my layout:

 \definelayout[normal][
 bottompace=0mm,
  footerheight=6mm,
 footerdistance=0mm,
 bottomdistance=0mm,
  bottomspace=0mm,
 topdistance=0mm,
 topspace=0mm,
  headerheight=60mm,
 headerdistance=0mm,
 leftedgewidth=0mm,
  leftmargin=10mm,
 leftedgedistance=0mm,
 leftmargindistance=0mm,
  backspace=10mm,
 rightedge=0mm,
 rightmargin=10mm,
  cutspace=0mm,
 rightmargindistance=0mm,
 rightedgedistance=0mm,
  width=277mm,
 height=210mm
  ]
 \setuplayout[normal]
 After printing is space in left 10mm, but space between top rim of the
 paper and top text is 14mm. Why is that? How to setup my layout to have
 exactly 10 mm both in top and in left?
I'm not sure what precisely you want to achive but take a look on this
example
example file=ex.tex
\setuplayout
  [backspace=2.1cm,
   cutspace=2.1cm,
   width=middle,
   topspace=2.97cm,
   bottomspace=2.97cm,
   height=middle]

\showframe

\starttext

\input tufte

\showlayout

\stoptext

/example
(I don't remember from where I took it) and read wiki:
http://wiki.contextgarden.net/Layout

---
WBR, Vladimir Lomov

-- 
At the source of every error which is blamed on the computer you will find
at least two human errors, including the error of blaming it on the computer.
___
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
___


[NTG-context] Counters again

2012-01-17 Thread Felix Ingram
Hello all,

I'm now trying to use counters that will tally some values. The value
of these could be zero, which the wiki states will be the default
value. The following shows that nothing is displayed when the counter
is 0.

\definenumber[examplecounter]
\setnumber[examplecounter]{1}
\starttext
This is the default value: \getnumber[examplecounter]
\incrementnumber[examplecounter]
This is the new value: \getnumber[examplecounter]
\resetnumber[examplecounter]
This is the reset value: \getnumber[examplecounter]
\setnumber[examplecounter]{0}
This is the set value: \getnumber[examplecounter]
\stoptext

I can include some conditionals to check this but thought I'd report
it in case I'm doing it wrong/the wiki needs updating.

Many thanks,

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


[NTG-context] Tikz module causes errors

2012-01-17 Thread Felix Ingram
I've just updated to the latest beta and the following will cause an error:

\usemodule[tikz]
\starttext
Hello World
\stoptext


The error is:

system   tex  error on line 129 in file example.tex:
Undefined control sequence ...

l.129   \catcode`\;=\active

Obviously there is no line 129. A quick greg shows that the likely suspect is:
tex\texmf-modules\tex\generic\pgf\utilities\pgffor.code.tex:129

Is this the best place to report this, or should I drop a mail to the
Tikz/PGF list?

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


Re: [NTG-context] Tikz module causes errors

2012-01-17 Thread Hans Hagen

On 17-1-2012 16:00, Felix Ingram wrote:

I've just updated to the latest beta and the following will cause an error:

\usemodule[tikz]
\starttext
Hello World
\stoptext


The error is:

system  tex  error on line 129 in file example.tex:
Undefined control sequence ...

l.129   \catcode`\;=\active

Obviously there is no line 129. A quick greg shows that the likely suspect is:
tex\texmf-modules\tex\generic\pgf\utilities\pgffor.code.tex:129

Is this the best place to report this, or should I drop a mail to the
Tikz/PGF list?


You can add this to cont-new.mkiv .. I'll keep it there for a while till 
the context tikz loader is fixed.


(actually \catcode`\;=13 would be quite ok too)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tikz module causes errors

2012-01-17 Thread Mojca Miklavec
On Tue, Jan 17, 2012 at 16:00, Felix Ingram wrote:
 I've just updated to the latest beta and the following will cause an error:

 \usemodule[tikz]
 \starttext
 Hello World
 \stoptext


 The error is:

 system           tex  error on line 129 in file example.tex:
 Undefined control sequence ...

 l.129   \catcode`\;=\active

 Obviously there is no line 129. A quick greg shows that the likely suspect is:
 tex\texmf-modules\tex\generic\pgf\utilities\pgffor.code.tex:129

 Is this the best place to report this, or should I drop a mail to the
 Tikz/PGF list?

It's complicated because I'm not aware of any major TikZ developer
using ConTeXt.

The main question is: is this a recent problem in TikZ or in ConTeXt?
Usually people on this list might know how to fix problems, but then
you need to convince pgf team to accept patches. (And then Aditya
started contributing and collecting some patches independently.)

I didn't follow development of ConTeXt too closely, but I'm lead to
believe that \active has disappeared from ConTeXt MKIV. Others will
have to correct me if I'm wrong - I didn't check ConTeXt sources. And
others will have to make suggestion about what to do about this.
Patching might as easy as adding \def\active{13} somewhere on top of
TikZ sources, but it might help to understand why Hans decided to
remove the \active command if that is true.

On the other hand (completely unrelated), I just realized that the
following commit (unofficial and unreliable temporary repository):
https://github.com/mojca/pgf/commit/418b278dcf6a2193d0d564d9d85194bdce1e505e
only fixes LaTeX and plain TeX and doesn't fix ConTeXt. I don't know
what the patch is about, but I'm lead to believe that the same patch
might be needed in ConTeXt as well if it is needed for the other two.

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

Re: [NTG-context] Tikz module causes errors

2012-01-17 Thread Hans Hagen

On 17-1-2012 16:28, Mojca Miklavec wrote:


I didn't follow development of ConTeXt too closely, but I'm lead to
believe that \active has disappeared from ConTeXt MKIV. Others will
have to correct me if I'm wrong - I didn't check ConTeXt sources. And
others will have to make suggestion about what to do about this.
Patching might as easy as adding \def\active{13} somewhere on top of
TikZ sources, but it might help to understand why Hans decided to
remove the \active command if that is true.


It's one of those traditional plain tex commands, but it's also one of 
those commands that is sensitive for being redefined by a user; another 
one is \letter (a command one could imagine to be used in the letter 
module).  Maybe some more will go in the process of cleaning up.


The longer internal names already are around for a while.

I'll add an \active definition to cont-new.tex for a while

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Counters again

2012-01-17 Thread Wolfgang Schuster

Am 17.01.2012 um 15:55 schrieb Felix Ingram:

 Hello all,
 
 I'm now trying to use counters that will tally some values. The value
 of these could be zero, which the wiki states will be the default
 value. The following shows that nothing is displayed when the counter
 is 0.
 
 \definenumber[examplecounter]
 \setnumber[examplecounter]{1}
 \starttext
 This is the default value: \getnumber[examplecounter]
 \incrementnumber[examplecounter]
 This is the new value: \getnumber[examplecounter]
 \resetnumber[examplecounter]
 This is the reset value: \getnumber[examplecounter]
 \setnumber[examplecounter]{0}
 This is the set value: \getnumber[examplecounter]
 \stoptext
 
 I can include some conditionals to check this but thought I'd report
 it in case I'm doing it wrong/the wiki needs updating.

The wiki explains often the behavior for MkII but MkIV does sometimes things 
different
but when you need only the value of the counter without chapter or section 
prefixes
you can use \rawnumber which shows also the start value.

BTW: In the next beta the syntax for \setnumber will change, now both arguments 
are
written in brackets, e.g. \setnumber[mycount][4]

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
___


Re: [NTG-context] layout space between paper and text

2012-01-17 Thread Wolfgang Schuster

Am 17.01.2012 um 12:38 schrieb Pavel Dohnal:

 Hello, 
 I want to have 10mm space between rim of the paper and beginig of the text. 
 This is my layout:
 
 \definelayout[normal][
   bottompace=0mm,
   footerheight=6mm,
   footerdistance=0mm,
   bottomdistance=0mm,
   bottomspace=0mm,
   topdistance=0mm,
   topspace=0mm, 
   headerheight=60mm,
   headerdistance=0mm,
   leftedgewidth=0mm,
   leftmargin=10mm,
   leftedgedistance=0mm,
   leftmargindistance=0mm,
   backspace=10mm,
   rightedge=0mm,
   rightmargin=10mm,
   cutspace=0mm,
   rightmargindistance=0mm,
   rightedgedistance=0mm,
   width=277mm,
   height=210mm
  ]
 \setuplayout[normal]
 After printing is space in left 10mm, but space between top rim of the paper 
 and top text is 14mm. Why is that? How to setup my layout to have exactly 10 
 mm both in top and in left?

When you want to set all values to zero and only a few to certain value you 
first clone the “page” layout (where everything is zero) and set then the rest 
to desired value.


The horizontal dimensions are determined by the three values

- backspace (distance from the left/inner margin)
- cutspace (distance from the right/outer margin)
- width (width of the textblock)

Normally you need only two values because when you set backspace + width the 
cutspace is calculated and when you set backspace + cutspace you can write 
width=middle and the width of the text block will be calculated.


The vertical dimensions are calculated also three values

- topspace (distance from the top margin)
- bottomspace (distance from the bottom margin)
- height (height of the textblock)

You need here also only two value, topspace + height which all calculate the 
bottomspace or topspace + bottomspace in combination with height=middle.


I haven’t mentioned the header and footer above because they are part of the 
textblock and will take space from this area.


When you use the information above for a layout you need

\definelayout
  [middle]
  [page]
  [backspace=10mm,
   topspace=10mm,
   height=210mm,
   height=277mm]

\setuplayout[middle]

\showframe[text][text]

\starttext
\dorecurse{10}{\input knuth\par}
\stoptext

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
___


[NTG-context] \placenamedformula \placelist MKIV \endgraf

2012-01-17 Thread Mathieu Dupont

Hi everyone,
With MKIV, the names of formulas don't get written in the List Of Formulas 
anymore.The following example works fine for me in MKII, but not in MKIV.The 
only bug is that the names of formulas don't appear in the LOF.Anyone knows a 
way around ?
Thank you very much !
Oh, and also, what is the use/necessity of \endgraf ?

\starttext
\subsubject{List of Formulas}\placelist[formula][criterium=text,alternative=c] 
\subsubject{Formulas}\placenamedformula[one]{First listed Formula}\startformula 
a = 1 \stopformula \endgraf
\placeformula\startformula a = 2 \stopformula \endgraf
\placenamedformula{Second listed Formula}{b}\startformula a = 3 \stopformula 
\endgraf
\stoptext

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

Re: [NTG-context] layout space between paper and text

2012-01-17 Thread Hans Hagen

On 17-1-2012 19:39, Wolfgang Schuster wrote:


When you want to set all values to zero and only a few to certain value you 
first clone the “page” layout (where everything is zero) and set then the rest 
to desired value.


The horizontal dimensions are determined by the three values

- backspace (distance from the left/inner margin)
- cutspace (distance from the right/outer margin)
- width (width of the textblock)

Normally you need only two values because when you set backspace + width the 
cutspace is calculated and when you set backspace + cutspace you can write 
width=middle and the width of the text block will be calculated.


The vertical dimensions are calculated also three values

- topspace (distance from the top margin)
- bottomspace (distance from the bottom margin)
- height (height of the textblock)

You need here also only two value, topspace + height which all calculate the 
bottomspace or topspace + bottomspace in combination with height=middle.


I haven’t mentioned the header and footer above because they are part of the 
textblock and will take space from this area.


When you use the information above for a layout you need

\definelayout
   [middle]
   [page]
   [backspace=10mm,
topspace=10mm,
height=210mm,
height=277mm]

\setuplayout[middle]

\showframe[text][text]

\starttext
\dorecurse{10}{\input knuth\par}
\stoptext


nice tip ... up to Pavel to wikify this ...

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread Wolfgang Schuster

Am 17.01.2012 um 13:14 schrieb Steffen Wolfrum:

 
 Am 17.01.2012 um 12:19 schrieb luigi scarso:
 
 Probably a bug, but this is ok
 \definelistplacement[MyListItemIT][none]#1#2#3%
 {\hfill\kern-1em\it#1%
 \hfill\strut\crlf\strut\hfill\hphantom{\tf#3}%
 \framedtext[frame=off,offset=overlay,align=middle,style=bold]%
 {#2}%
 \hfill\tf#3
 }
 
 
 Not really ok. That's a pitfall with minimal examples ... the devil is in 
 the details ;o)
 For getting it minimal I wrote \bf, but in the original file it is used as a 
 bold style with a certain size and a certain interlineskip: \TOCstyleBF
 
 And this interlineskip is ignored in your solution, test the following please:
 
 
 \def\TOCstyleBF{\switchtobodyfont[9pt]\bf\setupinterlinespace[line={40pt}]}
 
 \definelistplacement[MyListItemIT][none]#1#2#3%
   
 {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay,align=middle,style=TOCstyleBF]{#2}\hfill\tf#3}
  % here the interlinespace is ignored
 %   
 {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay]{\TOCstyleBF\midaligned{#2}}\hfill\tf#3}
  % here the interlinespace worked


You should try to make your code more readable.

\definelistplacement[MyListItemIT][none]#1#2#3%
   {\maxaligned\bgroup
  \rlap{\it#1}%
  
\framed[frame=off,align=middle,location=bottom,width=broad,foregroundstyle=\TOCstyleBF]{#2}%
  \llap{\tf#3}%
\egroup}

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
___


Re: [NTG-context] Questions on \definition

2012-01-17 Thread Kip Warner
On Tue, 2012-01-17 at 13:38 +0900, Vladimir Lomov wrote:

Hey Vlad.

 (not an expert, just read command reference)
  (1) What is the difference between \definedescription and
  \setupdescriptions?
 the first should define new description, the second change style of
 already defined description.

Ah, so \setupdescriptions inherits the default values of
\definedescription?

  (2) What is the difference between \definition and \description?
 This example
 example
 \starttext
 
 \definition{Hi}
 
 \stoptext
 /example
 gives error: Undefined control sequence  Where this command is
 defined?

In section 10.2 of the ConTeXt User Manual (p222 of the pdf). Maybe it
is a type:

...
An example of the definition is:
\definedescription[definition][location=top,headstyle=bold]
search
\definition{icon}
...

Or maybe you mean \description which is on the same page.

  (3) How do I change the colour of the definition header? I tried the
  following, but it did not work:
 
  \setuphead
[definition]
[color=colour_head]
 
 If I were you I would do that:
 example
 \starttext
 
 \definedescription[definition][headcolor=colour_head]
 
 \definition{Hi}. This is definition.
 \setupdescriptions[definition][headcolor=colour_head2]
 
 \definition{Hi2}. This is second definition.
 
 \stoptext
 /example

Thank you. That makes sense now. But why does \setuphead[definition]
method not work?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

[NTG-context] Referencing a \startdefinition

2012-01-17 Thread Kip Warner
Hey list,

When I wish to reference some section, I can inline typeset with
\in{section}[Some Reference]. In the case of a definition defined with a
\startdefinition{Some Definition}, how can I reference it inline?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Questions on \definition

2012-01-17 Thread Vladimir Lomov
Hello,
** Kip Warner [2012-01-17 17:47:21 -0800]:

 On Tue, 2012-01-17 at 13:38 +0900, Vladimir Lomov wrote:

 Hey Vlad.

Actually Vladimir, Vlad is usually used as short for Vladislav.

 (not an expert, just read command reference)
 (1) What is the difference between \definedescription and
 \setupdescriptions?
 the first should define new description, the second change style of
 already defined description.

 Ah, so \setupdescriptions inherits the default values of
 \definedescription?

I suppose no, '\define...', eh-m, defines a command while '\setup...', eh-m,
sets up its 'style'. When one defines a command one could set its
custom 'style' instead of default.

Consider the following example:
example file=ex1.tex
\starttext

\definedescription[definition]

\definition{Hi} This is first definition.

\setupdescriptions[definition][headstyle=italic,color=blue]

\definition{Hi2} This is second definition.

\stoptext
/example

The first 'definition' would be:
[bold] TEXT
after '\setup...' it would be
[italic] BLUE COLORTEXT/BLUE COLOR

 (2) What is the difference between \definition and \description?
 This example
 example
 \starttext

 \definition{Hi}

 \stoptext
 /example
 gives error: Undefined control sequence  Where this command is
 defined?

 In section 10.2 of the ConTeXt User Manual (p222 of the pdf). Maybe it
 is a type:

 ...
 An example of the definition is:
 \definedescription[definition][location=top,headstyle=bold]
 search
 \definition{icon}
 ...

 Or maybe you mean \description which is on the same page.

May be because this is an example? I would say that ConTeX User Manual
shows different commands from context itself and how one could define
custom commands. The '\definition' is one them.

 (3) How do I change the colour of the definition header? I tried the
 following, but it did not work:

 \setuphead
   [definition]
   [color=colour_head]

 If I were you I would do that:
 example
 \starttext

 \definedescription[definition][headcolor=colour_head]

 \definition{Hi}. This is definition.
 \setupdescriptions[definition][headcolor=colour_head2]

 \definition{Hi2}. This is second definition.

 \stoptext
 /example

 Thank you. That makes sense now. But why does \setuphead[definition]
 method not work?

I don't know but reading manuals (context and latex ones), wiki and etc
somehow convince me that 'head' relates with section heading (styling),
for the rest there are '\setup...' commands and 'headstyle' key (not
always, of course), may be that's why I always consult reference on wiki
and sometimes source code.

---
WBR, Vladimir Lomov

-- 
The only way to learn a new programming language is by writing programs in it.
- Brian Kernighan
___
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
___


Re: [NTG-context] Referencing a \startdefinition

2012-01-17 Thread Vladimir Lomov
Hello,
** Kip Warner [2012-01-17 18:07:18 -0800]:

 Hey list,

 When I wish to reference some section, I can inline typeset with
 \in{section}[Some Reference]. In the case of a definition defined with a
 \startdefinition{Some Definition}, how can I reference it inline?
I could be wrong but from 'strc-des.mkiv'

%D TODO: commandhandler
%D TODO: \startxxx[reference=...]

So, answer could not yet implemented.

---
WBR, Vladimir Lomov

-- 
I distrust a man who says when.  If he's got to be careful not to drink
too much, it's because he's not to be trusted when he does.
-- Sidney Greenstreet, The Maltese Falcon
___
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
___


Re: [NTG-context] two problems with natural tables

2012-01-17 Thread Brian Landy
Hi, sorry to dredge up such an old thread, but I recently updated from a Feb 
2010 vintage minimals to current (first to 1/12/2012, then to today 1/17).  I 
ran into problems splitting a table within a splitfloat.  I search the list 
archives and came up with this example, which is failing for me.

\starttext
\placetable[split]{Test}
{\bTABLE[split=yes]
\dorecurse{60}{
\bTR \bTD hello \eTD \eTR
}
\eTABLE}
\stoptext

I get this error:

! Undefined control sequence.

system   tex  error on line 7 in file test.tex: Undefined control 
sequence ...

1 \starttext
2 \placetable[split]{Test}
3 {\bTABLE[split=yes]
4 \dorecurse{60}{
5 \bTR \bTD hello \eTD \eTR
6 }
7   \eTABLE}
8 \stoptext
9 

argument \c!suffixstopper 

\floatcaptionparameter ...\currentfloatcaption :#1
  \endcsname \??floatcaption...
argument ...mber )}\thecurrentfloatnumbersuffix 
  \dostoptagged \dostarttagg...
\flushbothlabelclass #1#2#3-#1#3
 #2
\namedtaggedlabeltexts ...\dostarttagged {#1}{#2}}
  \dostoptagged \endgroup 
\thecurrentfloatnumber ...rrentfloatnumbersuffix }
  \fi \fi \fi 
...
l.7 \eTABLE
   }


Any ideas?

Thanks,
Brian

On Apr 20, 2011, at 3:30 AM, Florian Wobbe wrote:

 
 On Apr 18, 2011, at 21:14 , Hans Hagen wrote:
 
 On 18-4-2011 7:16, Wolfgang Schuster wrote:
 \def\floatcaptionattribute
  {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else 
 \ifinsidesplitfloat \else
 attr \destinationattribute \currentfloatattribute
   \fi \fi \fi \fi}
 
 ok, patched
 
 Wolfgang, Hans, as usual thanks for the support and the quick fix!
 Florian
 
 ___
 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
 ___
 

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


Re: [NTG-context] Wrong placement parameter (Was: two problems with natural tables)

2012-01-17 Thread Vladimir Lomov
Hello,
** Brian Landy [2012-01-17 23:19:41 -0500]:

 Hi, sorry to dredge up such an old thread, but I recently updated from
 a Feb 2010 vintage minimals to current (first to 1/12/2012, then to
 today 1/17).  I ran into problems splitting a table within a
 splitfloat.  I search the list archives and came up with this example,
 which is failing for me.
Don't hi-jack old thread with unrelated question, always start new topic
on new problem.

 \starttext
 \placetable[split]{Test}
 {\bTABLE[split=yes]
 \dorecurse{60}{
 \bTR \bTD hello \eTD \eTR
 }
 \eTABLE}
 \stoptext

 I get this error:

 ! Undefined control sequence.

 system   tex  error on line 7 in file test.tex: Undefined control 
 sequence ...

 1 \starttext
 2 \placetable[split]{Test}
 3 {\bTABLE[split=yes]
 4 \dorecurse{60}{
 5 \bTR \bTD hello \eTD \eTR
 6 }
 7   \eTABLE}
 8 \stoptext
 9 

 argument \c!suffixstopper 

 \floatcaptionparameter ...\currentfloatcaption :#1
   \endcsname 
 \??floatcaption...
 argument ...mber )}\thecurrentfloatnumbersuffix 
   \dostoptagged 
 \dostarttagg...
 \flushbothlabelclass #1#2#3-#1#3
  #2
 \namedtaggedlabeltexts ...\dostarttagged {#1}{#2}}
   \dostoptagged \endgroup 
 \thecurrentfloatnumber ...rrentfloatnumbersuffix }
   \fi \fi \fi 
 ...
 l.7 \eTABLE
}


 Any ideas?

According to Command reference on wiki, placetable doesn't have 'split'
parameter, see http://wiki.contextgarden.net/Reference/en/placefloat

Just remove 'split' and your example will be compiled.


---
WBR, Vladimir Lomov

-- 
Quality control, n.:
Assuring that the quality of a product does not get out of hand
and add to the cost of its manufacture or design.
___
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
___


Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread Steffen Wolfrum

Am 17.01.2012 um 23:41 schrieb Wolfgang Schuster:

 You should try to make your code more readable.
 
 \definelistplacement[MyListItemIT][none]#1#2#3%
   {\maxaligned\bgroup
  \rlap{\it#1}%
  
 \framed[frame=off,align=middle,location=bottom,width=broad,foregroundstyle=\TOCstyleBF]{#2}%
  \llap{\tf#3}%
\egroup}



I did not know \maxaligned


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


Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread luigi scarso
On Wed, Jan 18, 2012 at 7:25 AM, Steffen Wolfrum cont...@st.estfiles.dewrote:


 Am 17.01.2012 um 23:41 schrieb Wolfgang Schuster:



  You should try to make your code more readable.
 
  \definelistplacement[MyListItemIT][none]#1#2#3%
{\maxaligned\bgroup
   \rlap{\it#1}%
 
  
 \framed[frame=off,align=middle,location=bottom,width=broad,foregroundstyle=\TOCstyleBF]{#2}%
   \llap{\tf#3}%
 \egroup}


 I did not know \maxaligned

 even me --- it's normal, it's hard to be in sync with all the changes of
the source. I suspect that it's an internal macro, can even change.
Wolfgang often uses internal macro, gaining speed but loosing compatibility.
As general rule (another...) in my stylesheets I try to use TeX macros and
ConTeXt switches (i.e. key=val) especially if they are related to long term
projects.


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

Re: [NTG-context] Referencing a \startdefinition

2012-01-17 Thread Wolfgang Schuster

Am 18.01.2012 um 03:07 schrieb Kip Warner:

 Hey list,
 
 When I wish to reference some section, I can inline typeset with
 \in{section}[Some Reference]. In the case of a definition defined with a
 \startdefinition{Some Definition}, how can I reference it inline?

\startdefinition[des:some]{Some Definition}
…
\stopdefinition

\in{Definition}[des:some]

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
___


Re: [NTG-context] Referencing a \startdefinition

2012-01-17 Thread Wolfgang Schuster

Am 18.01.2012 um 04:06 schrieb Vladimir Lomov:

 Hello,
 ** Kip Warner [2012-01-17 18:07:18 -0800]:
 
 Hey list,
 
 When I wish to reference some section, I can inline typeset with
 \in{section}[Some Reference]. In the case of a definition defined with a
 \startdefinition{Some Definition}, how can I reference it inline?
 I could be wrong but from 'strc-des.mkiv'
 
 %D TODO: commandhandler
 %D TODO: \startxxx[reference=...]
 
 So, answer could not yet implemented.

No, this is only a note to swith from

   \startxxx[reference]{title}

to

   \startxxx[reference=…,title=…]

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
___


Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread luigi scarso
On Wed, Jan 18, 2012 at 8:30 AM, luigi scarso luigi.sca...@gmail.comwrote:


 Wolfgang often uses internal macro, gaining speed but loosing
 compatibility.

 Uh uh it sounds offensive (there is the fog here outside, but maybe
something is still in my head).
Just to be clear: I read *all* the Wolfgang answers because they help me to
be in sync with the source
--- in an automatic workflow speed is a concern.

Sorry for the noise.

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

Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread Wolfgang Schuster

Am 18.01.2012 um 08:30 schrieb luigi scarso:

 
 
 On Wed, Jan 18, 2012 at 7:25 AM, Steffen Wolfrum cont...@st.estfiles.de 
 wrote:
 
 Am 17.01.2012 um 23:41 schrieb Wolfgang Schuster:
 
 
  You should try to make your code more readable.
 
  \definelistplacement[MyListItemIT][none]#1#2#3%
{\maxaligned\bgroup
   \rlap{\it#1}%
   
  \framed[frame=off,align=middle,location=bottom,width=broad,foregroundstyle=\TOCstyleBF]{#2}%
   \llap{\tf#3}%
 \egroup}
 
 
 I did not know \maxaligned
 
 even me --- it's normal, it's hard to be in sync with all the changes of the 
 source. I suspect that it's an internal macro, can even change. 

\maxaligned is the ConTeXt version of \hbox to \hsize or plain TeX’s \line 
command.

 Wolfgang often uses internal macro, gaining speed but loosing compatibility.

That’s not true, since a while I use only high level commands and sometimes 
less known or undocumented macros.

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
___