[NTG-context] compiling cont-eni

2009-10-20 Thread Shiv Shankar Dayal
Hi,

I have sources of context cont-eni.pdf. When I try to compile them I
get lots of errors. I am using Mark IV. However, I am successfully
able to compile Metafun manual using texexec. Any clues?

-- 
Best regards,
Shiv Shankar Dayal
___
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] line numbering

2009-10-20 Thread Andreas Harder

Good morning everyone!

I've discovered some strange behavior from line numbering  
(attachment). The size of the line numbers changes after a page break.


test-linenumbering.tex
Description: Binary data



Furthermore some settings for line numbers do not work. I tried some  
of the examples from strc-lnt.mkiv (at the bottom) … I want the  
numbers on the right side and would assume \setuplinenumbering  
[location=right, align=left].


Please have a look. Perhaps I did something wrong.

Greetings
Andreas

___
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] compiling cont-eni

2009-10-20 Thread luigi scarso


 I got another interesting point. Adobe Reader reports that the
 application which generated original cont-eni.pdf is TeX. But for my
 compiled cont-eni.pdf it is ConTeXt - 2009.10.2 13:14. Why it is
 different?

 what about
$ pdfinfo cont-eni.pdf

?
-- 
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] Simplest slides

2009-10-20 Thread R. Bastian
On Mon, 19 Oct 2009 15:31:49 -0400 (EDT)
Aditya Mahajan adit...@umich.edu scribit:

 On Mon, 19 Oct 2009, R. Bastian wrote:
 
  Hello,
 
  I downloaded the files generic*** etc and tried to install (following
  the 'simpleslides.pdf'); it seemed to succeed. But the compilation
  'texexec generic ...tex' failed.
 
  So I tried same tests:
  --
  r...@kubuntu64:~/Context/Slides$ texexec generic-talk-15min-45min.tex
  TeXExec | processing document 'generic-talk-15min-45min.tex'
  TeXExec | no ctx file found
  TeXExec | tex processing method: context
  TeXExec | TeX run 1
  TeXExec | writing option file generic-talk-15min-45min.top
  TeXExec | using randomseed 822
  TeXExec | tex engine: pdftex
  TeXExec | tex format: cont-en
  This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6)
  \write18 enabled.
  (/usr/local/texlive/2007/texmf-context/web2c/natural.tcx)
  kpathsea: Running mktexfmt cont-en.fmt
  tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not 
  found.
  fmtutil: config file `fmtutil.cnf' not found.
  I can't find the format file `cont-en.fmt'!
  TeXExec | runtime: 0.040151
  r...@kubuntu64:~/Context/Slides$ find . -name cont-en.fmt
  r...@kubuntu64:~/Context/Slides$ find /usr/local/texlive/2007/ -name 
  cont-en.fmt
  /usr/local/texlive/2007/texmf-cache/luatex-cache/context/fc4b4b59a4904326c19d982f9a3c28fe/formats/cont-en.fmt
  /usr/local/texlive/2007/texmf-linux-64/web2c/xetex/cont-en.fmt
  r...@kubuntu64:~/Context/Slides$ find /usr/local/texlive/2007/ -name 
  tcfmgr.map
  /usr/local/texlive/2007/texmf/texconfig/tcfmgr.map
  r...@kubuntu64:~/Context/Slides$ find /usr/local/texlive/2007/ -name 
  fmtutil.cnf
  /usr/local/texlive/2007/texmf-var/web2c/fmtutil.cnf
  /usr/local/texlive/2007/texmf/web2c/fmtutil.cnf
  r...@kubuntu64:~/Context/Slides$ sudo mktexlsr
  mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
  mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE...
  mktexlsr: Updating /var/lib/texmf/ls-R...
  mktexlsr: Done.
  -
  Something is wrong ...
 
  Can you help me ?
 
 You need to make the context format. Try
 
 fmtutil-sys cont-en

r...@kubuntu64:~/Context$ fmtutil-sys cont-fr
fmtutil: fmtutil: unknown option `cont-fr'. Try fmtutil --help for help.

 
 Or, since you already have the xetex and the luatex formats, you can use
 
 context generic-talk*.tex
 
 or
 
 texexec --xetex generic-talk*.tex

r...@kubuntu64:~/Context$ texexec --xetex generic-talk*.tex
TeXExec | processing document 'generic-talk*.tex'
TeXExec | no ctx file found
TeXExec | nothing to process
TeXExec | runtime: 0.008959

I use mkII mnimals (from 2007, but installed 2009.05). I will
reinstall soon.

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


-- 
René Bastian
www.pythoneon.org
www.musiques-rb.org


___
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] compiling cont-eni

2009-10-20 Thread Shiv Shankar Dayal
 I got another interesting point. Adobe Reader reports that the
 application which generated original cont-eni.pdf is TeX. But for my
 compiled cont-eni.pdf it is ConTeXt - 2009.10.2 13:14. Why it is
 different?

 what about
 $ pdfinfo cont-eni.pdf
 ?

For the original file it says ConTeXt/www.pragma-ade.com/cont-en.tex
as creator. I wonder how is that possible. :)

Best regards,
Shiv Shankar Dayal
___
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] compiling cont-eni

2009-10-20 Thread luigi scarso
On Tue, Oct 20, 2009 at 10:04 AM, Shiv Shankar Dayal 
shivshankar.da...@gmail.com wrote:

  I got another interesting point. Adobe Reader reports that the
  application which generated original cont-eni.pdf is TeX. But for my
  compiled cont-eni.pdf it is ConTeXt - 2009.10.2 13:14. Why it is
  different?
 
  what about
  $ pdfinfo cont-eni.pdf
  ?

 For the original file it says ConTeXt/www.pragma-ade.com/cont-en.tex
 as creator. I wonder how is that possible. :)


# pdfinfo cont-eni.pdf
Title:
Subject:
Author: PRAGMA ADE: Hans Hagen/Ton Otten
Creator:ConTeXt/www.pragma-ade.com/cont-en.tex
Producer:   pdfTeX-0.14h
CreationDate:   Mon Nov 12 09:49:00 2001
Tagged: no
Pages:  369
Encrypted:  no
Page size:  907 x 680 pts
File size:  3441697 bytes
Optimized:  no
PDF version:1.3

Where is the problem ?

-- 
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] compiling cont-eni

2009-10-20 Thread Shiv Shankar Dayal
Hi,

Thanks for being so patient and helping me. But we should not get
diverted from the original problem. What do you think is the reason
for that error? Also, I am getting tex size exceeded[parameter stack
size=6000] with MarkIV. In mailing list there is a thread which
mentions about tex.ch but I cant find it. I have installed using
rsync.

-- 
Best regards,
Shiv Shankar Dayal
___
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] compiling cont-eni

2009-10-20 Thread luigi scarso
On Tue, Oct 20, 2009 at 10:16 AM, Shiv Shankar Dayal 
shivshankar.da...@gmail.com wrote:

 Hi,

 Thanks for being so patient and helping me. But we should not get
 diverted from the original problem. What do you think is the reason
 for that error? Also, I am getting tex size exceeded[parameter stack
 size=6000] with MarkIV. In mailing list there is a thread which
 mentions about tex.ch but I cant find it. I have installed using
 rsync.

 I don't know, sorry.
I never tried to compile manuals, because I consider them a property of
pragma .
For me, having  cont-en(i).pdf and sources is enough.
But, true, can be a bug in markii .
Or a misconfiguration that I don't understand now.

-- 
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] compiling cont-eni

2009-10-20 Thread Aditya Mahajan

On Mon, 19 Oct 2009, Shiv Shankar Dayal wrote:


Hi,

I have sources of context cont-eni.pdf. When I try to compile them I
get lots of errors. I am using Mark IV. However, I am successfully
able to compile Metafun manual using texexec. Any clues?


cont-eni was written in 2001. It will not compile with MKIV. There has 
been many changes in the internals since 2001, so it is not surprising 
that it does not compile even with MKII. Usually, such errors can be 
corrected with a few changes. Where did you get the source files that you 
are testing on?


Aditya
___
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] latest beta doesn't process my xml files

2009-10-20 Thread Hans Hagen

Thomas A. Schmitz wrote:

Hi Hans,

more serious: today's beta doesn't process my xml files. Too late today 
for a minimal example; maybe the error can give a clue:


systems : end file vorlesung-mkiv at line 1
systems : begin file historiker at line 1
! LuaTeX error no string to print
stack traceback:
[C]: in function 'texsprint'
...text/tex/texmf-context/tex/context/base/lxml-ent.lua:47: in 
function ...text/tex/texmf-context/tex/context/base/lxml-ent.lua:37

[C]: in function 'match'
...text/tex/texmf-context/tex/context/base/lxml-tex.lua:498: in 
function '@tx@'
...text/tex/texmf-context/tex/context/base/lxml-tab.lua:751: in 
function '@dc@'
...text/tex/texmf-context/tex/context/base/lxml-tab.lua:774: in 
function 'xmlserialize'
...text/tex/texmf-context/tex/context/base/lxml-tex.lua:545: in 
function 'xmlsprint'
...text/tex/texmf-context/tex/context/base/lxml-tex.lua:1207: in 
function 'flush'

main ctx instance:1: in main chunk.
\xmlflush #1-\ctxlua {lxml.flush(#1)}

\dostructurecomponent ...uctureparameter \c!title
  }\xdef 
\currentstructurebo...

\doregisterstructurehead ... \c!command =, #2][#3]
  \reportcurrentstructure
\dohandlestructurehead ...ructurehead {#1}{#2}{#3}
  \let 
\getstructureheadsync...

l.8 }

\xmlflush #1-\ctxlua {lxml.flush(#1)}


l.2 \xmlprocess{\xmldocument}{./historiker.xml}{}

? ^\/Users/tas/context/tex/texmf-osx-intel/bin/context: line 2:  3064

Same file with same environment processed without problems by version: 
2009.10.02 13:14


Thank goodness I still have an older version around...


in lxml-ent.lua ...

function xml.resolved_entity(str)
local e = xml.entities[str]
if e then
local te = type(e)
if te == function then
e(str)
elseif e then
texsprint(ctxcatcodes,e)
end
else
texsprint(ctxcatcodes,\\xmle{,str,}{,utfupper(str),}) -- 
we need to use our own upper

end
end

there has been quite some changes in the xml machinery; what exactly do 
you do with entities?


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] compiling cont-eni

2009-10-20 Thread Shiv Shankar Dayal
I do not remember exactly when I got the source but I remember it was
through some link of wiki.contextgarden.net. If you recall Aditya we
had a discussion regarding vim syntax highlighting. It is of that
time.

Also, I have a fresh setup of context and I found that you t-vim.tex
has a line source kpse:2context.vim which I had to modify to source
kpsewhich:2context.vim.

 Hi,

 I have sources of context cont-eni.pdf. When I try to compile them I
 get lots of errors. I am using Mark IV. However, I am successfully
 able to compile Metafun manual using texexec. Any clues?

 cont-eni was written in 2001. It will not compile with MKIV. There has been
 many changes in the internals since 2001, so it is not surprising that it
 does not compile even with MKII. Usually, such errors can be corrected with
 a few changes. Where did you get the source files that you are testing on?

 Aditya
 ___

Best regards,
Shiv Shankar Dayal
___
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] context user meeting 2010

2009-10-20 Thread luigi scarso
I don't remember where /when of the next meeting.

It was in July, in Czech Republic ... and then ?

Tia
-- 
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] latest beta doesn't process my xml files

2009-10-20 Thread Thomas A. Schmitz


On Oct 20, 2009, at 3:52 PM, Hans Hagen wrote:


in lxml-ent.lua ...

function xml.resolved_entity(str)
   local e = xml.entities[str]
   if e then
   local te = type(e)
   if te == function then
   e(str)
   elseif e then
   texsprint(ctxcatcodes,e)
   end
   else
   texsprint(ctxcatcodes,\\xmle{,str,}{,utfupper(str),})  
-- we need to use our own upper

   end
end



Thank you Hans, but that's not yet the solution. I still get the same  
error. I thought it might be related to the fact that I had the entity  
hfill; in my titles, but even after removing it, I still get the error.




there has been quite some changes in the xml machinery; what exactly  
do you do with entities?




Well, I just map a few special characters and commands to entities. In  
my environment, I have


\setupxml[entities=mkii]

and then stuff like this:

\defineXMLentity[smallspace]{\,}
\defineXMLentity[percent]{\percent}
\defineXMLentity[onequarter]{\onequarter}
\defineXMLentity[threequarter]{\threequarter}
\defineXMLentity[onehalf]{\onehalf}
\defineXMLentity[textellipsis]{\textellipsis}
\defineXMLentity[nbsp]{~}
\defineXMLentity[hfill]{\hfill}

Is there a different way for doing this now?

All best

Thomas
___
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] compiling cont-eni

2009-10-20 Thread Aditya Mahajan

On Tue, 20 Oct 2009, Shiv Shankar Dayal wrote:


I do not remember exactly when I got the source but I remember it was
through some link of wiki.contextgarden.net.


The reason I was asking for the source is because I do not get the errors 
that you mention with the latest svn version of the manual. Specifically,


svn checkout svn://ctx.pragma-ade.nl/manuals
cd manuals/context

texexec cont-en

gives me a working pdf file. There are two errors: the first

! Font \**test**:=texnansi-lbr at 60.0pt not loadable: Metric (TFM) file 
not found.


because I do not have lucida fonts, and the second

! Undefined control sequence.
l.3 ...espace \let\ShowTokenFont\relax \ShowTokens
 Serif\end}  {}

which I did not investigate. In any case, pressing enter a couple of times 
lets me continue. The resulting pdf is not exactly same as the one on 
pragma's website, but you can compile the manual.



If you recall Aditya we
had a discussion regarding vim syntax highlighting. It is of that
time.

Also, I have a fresh setup of context and I found that you t-vim.tex
has a line source kpse:2context.vim which I had to modify to source
kpsewhich:2context.vim.


kpse:2context.vim used to work. I will check that again, and perhaps 
replace the kpse searching with a luatex function (Hans showed how to do 
that a while back).


Aditya
___
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] Simplest slides

2009-10-20 Thread Aditya Mahajan

On Tue, 20 Oct 2009, R. Bastian wrote:


On Mon, 19 Oct 2009 15:31:49 -0400 (EDT)
Aditya Mahajan adit...@umich.edu scribit:


Something is wrong ...

Can you help me ?


You need to make the context format. Try

fmtutil-sys cont-en


r...@kubuntu64:~/Context$ fmtutil-sys cont-fr
fmtutil: fmtutil: unknown option `cont-fr'. Try fmtutil --help for help.


fmtutil-sys cont-en (not cont-fr). I don't know what is the right way to 
make the cont-fr format in TL. If that fails you can also try


texexec --make --all


Or, since you already have the xetex and the luatex formats, you can use

context generic-talk*.tex

or

texexec --xetex generic-talk*.tex


r...@kubuntu64:~/Context$ texexec --xetex generic-talk*.tex
TeXExec | processing document 'generic-talk*.tex'
TeXExec | no ctx file found
TeXExec | nothing to process
TeXExec | runtime: 0.008959


Sorry, I was being lazy and assumed that your shell will expand the *. 
Aparantly it did not. What I meant was


texexec --xetex  generic-talk-15min-45min.tex

Aditya
___
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] Simplest slides

2009-10-20 Thread Hans Hagen

Aditya Mahajan wrote:

fmtutil-sys cont-en (not cont-fr). I don't know what is the right way to 
make the cont-fr format in TL. If that fails you can also try


texexec --make --all


texexec --make fr
context --make fr

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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
___