Re: [NTG-context] Sanskrit Devanagari characters

2011-06-27 Thread Mojca Miklavec
On Tue, Jun 28, 2011 at 03:39, Kip Warner wrote:
 On Mon, 2011-06-27 at 09:35 +0200, Mojca Miklavec wrote:
 On Mon, Jun 27, 2011 at 04:10, Kip Warner wrote:
 
  The problem is it looks like XeTeX may not fully support
  some of the features I need like mathematical characters and such yet.

 What mathematical characters do you miss?

 I actually haven't tried yet, but just read that it is lacking full
 support for that.

Em. This used to be the case in early days of XeTeX.

At the moment it is true that ConTeXt has no OpenType Math implemented
for XeTeX, but this means that math should work equally well as in
pdfTeX. XeTeX also has bugs in OpenType Math, but for the reason just
told, this should not affect you.

On the other hand if you need other MKIV features that might indeed be
a problem.

 I am wary to use XeTeX because every new small task
 with ConTeXt always ends up taking hours and hours to get working from
 putting a simple picture on a page to changing a colour of something.

Did you ever try to change a colour of title and background in LaTeX? :) :) :)

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] Bibliography is not working

2011-06-23 Thread yoraxe
Am 22.06.2011 23:49, schrieb Jaroslav Hajtmar:
 Hello Yoraxe,
 what about this:
 
 \setupbibtex[database=bib]
 
 \starttext
 Citation: \cite[booklet]
 
 \placepublications[criterium=all]
 
 \stoptext

Just Citation: [[error 2]]

(attached)


 Dne 22.6.2011 23:10, yoraxe napsal(a):
 Hey,

 Typing

 \setupbibtex[database=bib]

 \starttext
 \completepublications
 \stoptext

 with bib.bib:

 @BOOKLET{booklet,
title = {Something here},
year = {2005},
publisher = {Something here},
 }

 creates the attached pdf-file without any references. I also attache the
 log-file.

 Thanks,

 Yoraxe

(bibtest.tex

ConTeXt  ver: 2011.06.19 14:17 MKIV  fmt: 2011.6.22  int: english/english

system   cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   bibtest.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   bibtest,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=bibtest]
system   options  \setupsystem[\c!n=2,\c!m=2]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(bibtest.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/home/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file bibtest at line 3
publications loading database from bibtest.bbl
(bibtest.bbl)
publications placing all entries, use 'text' to be more selective
backend  xmp  using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file bibtest at line 8
 )/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats   used config file  - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1)
mkiv lua stats   used cache path   - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2)
mkiv lua stats   used cache path   - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606'
mkiv lua stats   input load time   - 0.006 seconds
mkiv lua stats   stored bytecode data  - 289 modules, 61 tables, 350 chunks
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats   node memory usage - 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list
mkiv lua stats   node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2365 calls
mkiv lua stats   used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   callbacks - 2502 direct, 2974 indirect, 5476 total
mkiv lua stats   randomizer- resumed with value 0.14122827217971
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats   result saved in file  - bibtest.pdf
mkiv lua stats   loaded fonts  - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm

Re: [NTG-context] Text Background

2011-06-23 Thread H. Hodges
luigi scarso luigi.scarso at gmail.com writes:

 can you post the log ?
 

 Can be: if
 $context
 works than you have a mkiv. 

The context command doesn't work at the command line. Here is the log; I'm not
sure how much of it is useful.

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=cont-en
2011.6.20)  23 JUN 2011 16:49
entering extended mode
 %-line parsing enabled.
 (/usr/share/texmf/web2c/natural.tcx)
**untitled-5.tex \emergencyend
(./untitled-5.tex

ConTeXt  ver: 2010.07.30 11:35 MKII  fmt: 2011.6.20  int: english/english

system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkii))
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/etc/texmf/tex/context/user/cont-sys.rme
(/usr/share/texmf/tex/context/base/type-def.mkii)
(/usr/share/texmf/tex/context/base/type-siz.mkii)
(/usr/share/texmf/tex/context/base/type-one.mkii))
system  : untitled-5.top loaded
(./untitled-5.top)
bodyfont: 12pt rm is loaded
language: patterns nl-texnansi:texnansi-1-2:2 nl-ec:ec-2-2:2 us-
ec:ec-3-2:3 de-texnansi:texnansi-4-3:3 de-ec:ec-5-3:3 da-ec:ec-6-2:2
 sv-ec:ec-7-2:2 gb-ec:ec-8-2:2 fr-texnansi:texnansi-9-2:2 fr-ec:ec-1
0-2:2 es-ec:ec-11-2:2 ca-ec:ec-12-2:2 it-texnansi:texnansi-13-2:2 it-
ec:ec-14-2:2 la-ec:ec-15-2:2 pt-texnansi:texnansi-16-2:2 pt-ec:ec-17
-2:2 ro-ec:ec-18-2:2 pl-pl0:pl0-19-2:2 pl-ec:ec-20-2:2 pl-qx:qx-21-
2:2 cs-il2:il2-22-2:2 cs-ec:ec-23-2:2 sk-il2:il2-24-2:2 sk-ec:ec-25
-2:2 hr-ec:ec-26-2:2 sl-ec:ec-27-2:2 tr-ec:ec-28-2:2 tk-ec:ec-29-1
:2 lt-l7x:l7x-30-2:2 agr-agr:agr-32-2:2 fi-ec:ec-33-2:2 hu-ec:ec-34-
2:2 ru-t2a:t2a-36-2:2 uk-t2a:t2a-37-3:3 loaded
specials: dvips loaded
\openout3 = `untitled-5.tui'.

\openout0 = `untitled-5-mpgraph.mp'.

\openout0 = `mpgraph.mp'.

systems : system commands are disabled
language: language en is active
specials: loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.mkii
specials: loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.mkii))
color   : mpcmyk color space is supported
color   : mpspot color space is supported
color   : system rgb is global activated
(./untitled-5.tuo) (./untitled-5.tuo) (./untitled-5.tuo) (./untitled-5.tuo)
(./untitled-5.tuo) (./untitled-5.tuo) (./untitled-5.tuo) (./untitled-5.tuo)
(./untitled-5.tuo) (./untitled-5.tuo) (./untitled-5.tuo)
publications: file untitled-5.bbl not found, waiting for bibtex
(./untitled-5.tuo)
systems : begin file untitled-5 at line 5
(/usr/share/texmf/tex/context/sample/knuth.tex))
systems : invalid \starttext...\stoptext structure
fonts   : resetting map file list
{/usr/share/texmf/fonts/map/pdftex/context/original-empty.map}
fonts   : using map file: original-base
{/usr/share/texmf/fonts/map/pdftex/context/original-base.map}
fonts   : using map file: original-ams-base
{/usr/share/texmf/fonts/map/pdftex/context/original-ams-base.map}
fonts   : using map file: original-public-lm
{/usr/share/texmf/fonts/map/pdftex/context/original-public-lm.map}
fonts   : using map file: lm-ec
{/usr/share/texmf/fonts/map/dvips/lm/lm-ec.map}
fonts   : using map file: lm-math
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}
fonts   : using map file: lm-rm
{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   : using map file: original-ams-euler
{/usr/share/texmf/fonts/map/pdftex/context/original-ams-euler.map}
\openout7 = `untitled-5-mpgraph.mp'.

\openout6 = `untitled-5-mpgraph.mpb'.

runsystem(mpost  -progname=metafun -mem=metafun untitled-5-mpgraph)...disabled.


[MP untitled-5-mpgraph.1] (/usr/share/texmf/tex/context/base/sort-def.mkii)
(/usr/share/texmf/tex/context/base/sort-lan.mkii) [1.1]
systems : end file untitled-5 at line 0
system  : cont-err loaded
(/usr/share/texmf/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) 
Here is how much of TeX's memory you used:
 1049 strings out of 456094
 16422 string characters out of 533216
 4851572 words of memory out of 7259343
 41927 multiletter control sequences out of 15000+5
 82418 words of font info for 37 fonts, out of 300 for 9000
 396 hyphenation exceptions out of 8191
 50i,26n,65p,244b,604s stack positions out of 5000i,500n,1p,20b,5s
{/usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc}/usr/share/texmf/fonts/type1/p
ublic/lm/lmr12.pfb

pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet!
utput written on untitled-5.pdf (1 page, 28554 bytes).
PDF statistics:
 13 PDF objects out of 1000 (max. 8388607)
 9 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 50)
 1 words

Re: [NTG-context] t-filter: how to use math-mode

2011-06-23 Thread yoraxe
Am 23.06.2011 18:30, schrieb Aditya Mahajan:
 On Thu, 23 Jun 2011, yoraxe wrote:
 
 How can I use math-mode in such a table? Using $a_b$ it just prints
 $a_b$ instead of identifying this as a math-input.

 I'm using pandoc 1.8.1.1 and context 2011.06.19.
 
 Can you give a complete minimal example?

Find all files attached.
I see, it is the line

\NC \$a\letterunderscore{}b\$

that is not correctly translated. What do I have to type instead of _?
(tabletest.tex

ConTeXt  ver: 2011.06.19 14:17 MKIV  fmt: 2011.6.22  int: english/english

system   cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   tabletest.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   tabletest,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=tabletest]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(tabletest.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'filter'
(/home/context/tex/texmf-context/tex/context/third/filter/t-filter.tex
loading  ConTeXt User Module / Filter
resolversmodules  loaded: 'module-catcodes'
(/home/context/tex/texmf-context/tex/context/third/filter/t-module-catcodes.tex
loading  ConTeXt User Module / Module Catcodes
)){/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/home/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file tabletest at line 4
t-filter command : pandoc -f rst -t context -o tabletest-temp-rest.tex tabletest-temp-rest.tmp
(tabletest-temp-rest.tex
floatblocks  1 placed
)
backend  xmp  using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file tabletest at line 13
 )/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats   used config file  - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1)
mkiv lua stats   used cache path   - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2)
mkiv lua stats   used cache path   - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606'
mkiv lua stats   input load time   - 0.006 seconds
mkiv lua stats   stored bytecode data  - 289 modules, 61 tables, 350 chunks
mkiv lua stats   loaded tex modules- 2 requested, 2 found (*-filter *-module-catcodes), 0 missing
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats   node memory usage - 2 glue, 2 penalty, 9 attribute, 27 glue_spec, 3 attribute_list
mkiv lua stats   node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2466 calls
mkiv lua stats   used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   callbacks - 2655 direct, 3477 indirect, 6132 total
mkiv lua stats   randomizer- resumed with value 0.72040259452555
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats   result saved in file  - tabletest.pdf
mkiv lua stats   loaded fonts  - 44 files: stmary10.afm lmmath.otf lmmono12

[NTG-context] Bibliography is not working

2011-06-22 Thread yoraxe
Hey,

Typing

\setupbibtex[database=bib]

\starttext
\completepublications
\stoptext

with bib.bib:

@BOOKLET{booklet,
  title = {Something here},
  year = {2005},
  publisher = {Something here},
}

creates the attached pdf-file without any references. I also attache the
log-file.

Thanks,

Yoraxe
(bibtest.tex

ConTeXt  ver: 2011.06.11 16:45 MKIV  fmt: 2011.6.13  int: english/english

system   cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   bibtest.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   bibtest,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=bibtest]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(bibtest.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
publications wrote a new auxiliary file \jobname.aux
{/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/home/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file bibtest at line 3
structuresectioning  chapter @ level 2 : 0.1 - \headtext {pubs}
publications loading database from bibtest.bbl
(bibtest.bbl)
backend  xmp  using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file bibtest at line 5
 )/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats   used config file  - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1)
mkiv lua stats   used cache path   - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2)
mkiv lua stats   used cache path   - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606'
mkiv lua stats   input load time   - 0.006 seconds
mkiv lua stats   stored bytecode data  - 287 modules, 61 tables, 348 chunks
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats   node memory usage - 2 glue, 2 penalty, 12 attribute, 27 glue_spec, 3 attribute_list
mkiv lua stats   node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2378 calls
mkiv lua stats   used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   callbacks - 2519 direct, 2972 indirect, 5491 total
mkiv lua stats   randomizer- resumed with value 0.14122827217971
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats   result saved in file  - bibtest.pdf
mkiv lua stats   loaded fonts  - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats   fonts load time   - 0.252 seconds 
mkiv lua stats   luatex banner - this is luatex, version beta-0.70.1-2011051918

[NTG-context] export: graphic within table (error)

2011-06-19 Thread Reviczky, Adam
Hans,

I'm getting this error if I put an image within a table using the export 
backend:
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument 
#3 to 'format' (string expected, got boolean).

Minimal example:
---
\setupbackend[export=yes]
\starttext
% \externalfigure[mill] % -- fine
\bTABLE
% \bTR \bTD test \eTD \eTR % -- fine
\bTR \bTD \externalfigure[mill] \eTD \eTR % -- error
\eTABLE
\stoptext
---

Log attached.

Adam
(test.tex

ConTeXt  ver: 2011.06.18 14:13 MKIV  fmt: 2011.6.19  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
backend  export  enabling export to xml
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file test.tex at line 4
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
 /usr/share/texmf/tex/context/sample/mill.png
pagesflushing realpage 1, userpage 1, subpage 1
system   end file test.tex at line 10
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
backend  export  saving xml data in 'test.export
backend  export  saving css image definitions in 'test-images.css
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument #3 to 'format' (string expected, got boolean).

system   tex  error on line 0 in file : LuaTeX error  ...

empty file

* ./test.tex
  
? 

___
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] Letter module: signature with externalfigure fails

2011-06-18 Thread Christian
In search of what is going wrong, I discovered that even this simple 
code fails with context:


\starttext
\externalfigure[cow]
\stoptext

Did I miss something or is this broken?
Btw: Context Minimals on Ubuntu 11.04 32bit.
Log-file attached.

As always: thanks in advance!
(bla.mkiv

ConTeXt  ver: 2011.06.18 14:13 MKIV  fmt: 2011.6.18  int: english/english

system   cont-new.mkiv loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   bla.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   bla.mkiv,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=bla.mkiv]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(bla.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/local/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file bla.mkiv at line 1
! Undefined control sequence.

system   tex  error on line 3 in file bla.mkiv: Undefined control sequence ...

1 \starttext
2 \externalfigure[cow]
3   \stoptext
4 


\dodoplaceexternalfigure ...][#4][#5]\dotagfigure 
  \naturalvbox attr \imageat...
\doexternalfigure ...value {\??ef \??ef #1}[#3]}}}
  \globallet \currentresourc...
\dotripleemptytwospaced #1#2-#1[{#2}][][]
   
to be read again 
   \stoptext 
l.3 \stoptext
 
? X
mkiv lua stats   used config file  - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - /usr/local/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats   input load time   - 0.006 seconds
mkiv lua stats   stored bytecode data  - 289 modules, 61 tables, 350 chunks
mkiv lua stats   cleaned up reserved nodes - 30 nodes, 10 lists of 423
mkiv lua stats   node memory usage - 1 hlist, 2 attribute, 21 glue_spec, 1 attribute_list, 1 dir
mkiv lua stats   node list callback tasks  - 6 unique task lists, 2 instances (re)created, 2323 calls
mkiv lua stats   used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   callbacks - 2405 direct, 2965 indirect, 5370 total
mkiv lua stats   randomizer- resumed with value 0.54706615700716
mkiv lua stats   result saved in file  - bla.pdf
mkiv lua stats   loaded fonts  - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats   fonts load time   - 0.210 seconds 
mkiv lua stats   graphics processing time  - 0.003 seconds including tex, 1 processed images
mkiv lua stats   luatex banner - this is luatex, version beta-0.70.1-2011051923 (rev 4277)
mkiv lua stats   control sequences - 30575 of 165536
mkiv lua stats   current memory usage  - 27 MB (ctx: 28 MB)
mkiv lua

Re: [NTG-context] LuaTeX + microtype: Small Caps vs. Letter Spacing

2011-06-15 Thread Hans Hagen

On 15-6-2011 10:59, Ulrike Fischer wrote:


With ConTeXt  ver: 2011.06.13 23:08 MKIV  fmt: 2011.6.15  (from the
minimals) the following fails:


I have to admit that I never used \letterspacefont (luatex offers it as 
a pdftex compatibility feature and as such it's strongly related to 
traditional font handling). The command makes a copy of an internal 
(tfm) + adapted metrics.



\starttext

\font\test=file:fxlr.otf
\test abc \letterspacefont\lspfont=\font 500 \lspfont blub


base mode i.e. traditional, so it works


%breaks: letterspaced font is not small small caps:
\font\test=file:fxlr.otf:mode=node;+smcp
\test abc \letterspacefont\lspfont=\font 500 \lspfont blub


a font defined to use node mode, but the copy is a basemode one so it 
has regular shapes and no smallcaps (as there are changed on the fly)



%letterspacefont works:
\font\test=file:fxlr.otf:mode=base;+smcp
\test abc \letterspacefont\lspfont=\font 500 \lspfont blub


base mode i.e. traditional, so it works


\stoptext


So, when someone wants that feature he/she'd better force basemode which 
is no big deal as letterspacing is selectively applied to often known / 
specially defined fonts.


Anyhow, context users will not use that command / method but instead use 
\kerncharacters[fraction], as in:


{test {\kerncharacters[.5] test \bf test} test}

or

\setuphead
  [section]
  [style=\sca,
   textstyle={\kerncharacters[.5]}]

etc. Support using \letterspacefont is very unlikely to end up in the 
core font code.


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] LuaTeX + microtype: Small Caps vs. Letter Spacing

2011-06-15 Thread Ulrike Fischer
Am Wed, 15 Jun 2011 11:48:10 +0200 schrieb Hans Hagen:

 On 15-6-2011 10:59, Ulrike Fischer wrote:
 
 With ConTeXt  ver: 2011.06.13 23:08 MKIV  fmt: 2011.6.15  (from the
 minimals) the following fails:
 
 I have to admit that I never used \letterspacefont (luatex offers it as 
 a pdftex compatibility feature and as such it's strongly related to 
 traditional font handling). The command makes a copy of an internal 
 (tfm) + adapted metrics.
 
 \starttext

 \font\test=file:fxlr.otf
 \test abc \letterspacefont\lspfont=\font 500 \lspfont blub
 
 base mode i.e. traditional, so it works


 So, when someone wants that feature he/she'd better force basemode which 
 is no big deal as letterspacing is selectively applied to often known / 
 specially defined fonts.

Ah. Ok that explains it. This means that in latex/fontspec it works
with \setmainfont[Renderer=basic]{...}.

 Anyhow, context users will not use that command / method but instead use 
 \kerncharacters[fraction], as in:
 
 {test {\kerncharacters[.5] test \bf test} test}

\kerncharacters is define in typo-krn. As far as I can see from
luatex-fonts.lua the generic code doesn't load typo-krn. Does that
mean that letterspacing in node-mode with latex would need some new
code?

-- 
Ulrike Fischer 

___
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] dejavu math fallback?

2011-06-15 Thread Reviczky, Adam
Hi

Using math with dejavu as the bodyfont produces:
! Math error: parameter \Umathquad\displaystyle is not set.

minimal example:
---
\setupbodyfont[dejavu]
\starttext
$e = mc^2$
\stoptext
---

Installing the xits-math (https://github.com/khaledhosny/xits-math/) solves the 
problem.
Shouldn't there be a fallback to lmmath or similar?

Log using context without xits-math attached.

Adam
context export-example.tex

mtx-context | run 1: luatex --fmt=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en --lua=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui --backend=pdf ./export-example.tex
This is LuaTeX, Version beta-0.71.0-2011061600 (rev 4301) 
 \write18 enabled.
(export-example.tex

ConTeXt  ver: 2011.06.16 00:34 MKIV  fmt: 2011.6.16  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   export-example.top loaded
(export-example.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
backend  export  enabling export to xml
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontsdefining  forced type otf of xits-math not found
fontsdefining  font with asked name 'xits-math' is not found using lookup 'file'
fontsdefining  unknown font xits-math, loading aborted
fontsdefining  unable to define xits-math.otf as \*dejavu7ptmmmr33*
fontsdefining  forced type otf of xits-math not found
fontsdefining  font with asked name 'xits-math' is not found using lookup 'file'
fontsdefining  unknown font xits-math, loading aborted
fontsdefining  unable to define xits-math.otf as \*dejavu9ptmmmr22*
fontsdefining  forced type otf of xits-math not found
fontsdefining  font with asked name 'xits-math' is not found using lookup 'file'
fontsdefining  unknown font xits-math, loading aborted
fontsdefining  unable to define xits-math.otf as \*dejavu12ptmmmr11*
system   begin file export-example.tex at line 16
structuresectioning  chapter @ level 2 : 0.1 - Example
verbatimsfile export.tex does not exist
(/usr/share/texmf/tex/context/sample/zapf.tex)
floatblocks  1 placed
(/usr/share/texmf/tex/context/sample/zapf.tex) (/usr/share/texmf/tex/context/sample/tufte.tex)
Overfull \hbox (1.0876pt too wide) in paragraph at lines 1--34
\*dejavu12ptrmtf* every­day ca­pac­ity to se­lect, edit, sin­gle out, struc­ture, high­light, group,

Overfull \hbox (2.30989pt too wide) in paragraph at lines 1--34
\*dejavu12ptrmtf* hole, pick over, sort, in­te­grate, blend, in­spect, fil­ter, lump, skip, smooth,

Overfull \hbox (0.86143pt too wide) in paragraph at lines 1--34
\*dejavu12ptrmtf* item­ize, re­view, dip into, flip through, browse, glance into, leaf through,
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
 /usr/share/texmf/tex/context/sample/hacker.jpg
pagesflushing realpage 1, userpage 1, subpage 1
floatblocks  2 placed
(/usr/share/texmf/tex/context/sample/tufte.tex)
Overfull \hbox (1.0876pt too wide) in paragraph at lines 1--40
\*dejavu12ptrmtf* every­day ca­pac­ity to se­lect, edit, sin­gle out, struc­ture, high­light, group,

Overfull \hbox (2.30989pt too wide) in paragraph at lines 1--40
\*dejavu12ptrmtf* hole, pick over, sort, in­te­grate, blend, in­spect, fil­ter, lump, skip, smooth,

Overfull \hbox (0.86143pt too wide) in paragraph at lines 1--40
\*dejavu12ptrmtf* item­ize, re­view, dip into, flip through, browse, glance into, leaf through,
(/usr/share/texmf/tex/context/sample/zapf.tex) /usr/share/texmf/tex/context/sample/cow.pdf
pagesflushing realpage 2, userpage 2
(/usr/share/texmf/tex/context/sample/ward.tex) (/usr/share/texmf/tex/context/sample/tufte.tex)
Overfull \hbox (2.0251pt too wide) in paragraph at lines 56--56
 \*dejavu12ptrmtf* av­er­age, ap­prox­i­mate, clus­ter, ag­gre­gate, out­line, sum­

Overfull \hbox (9.8708pt too wide) in paragraph at lines 56--56
 \*dejavu12ptrmtf* glance into, leaf through, skim, re­fine, enu­mer­ate, glean,
(/usr/share/texmf/tex/context/sample/knuth.tex
pagesflushing realpage 3, userpage 3
)
! Math error: parameter \Umathquad\displaystyle is not set.

system   tex  error on line 62 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

52 \startparagraph \input zapf (Zapf) \stopparagraph
53 
54 \startdescription {Ward} \input ward \stopdescription
55 
56 \startdescription

Re: [NTG-context] ∫ is not displayed correctly compared to $\int$.

2011-06-12 Thread Mojca Miklavec
On Sun, Jun 12, 2011 at 15:06, Paul Menzel wrote:
 Dear ConTeXt folks,

 using

 ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.27  int: english/english

 the following example produces different integral signs.

 --- minimal example ---
 \starttext
 Using the NEO keyboard layout several math symbols can be inserted directly 
 like $∫$ or $∩$.

 But $\int$ and $∫$ look differently.
 \stoptext
 --- minimal example ---

However the character ∫ looks the same as \intop and ∫\nolimits looks
the same as \int.

As to why \intop looks so weird, I have no idea. If you add
\usetypescript[modern-base] \setupbodyfont[modern]
it will work ok. Cambria Math also results in two different heights of
the operator depending on whether limits are there or not. It might be
a bug somewhere in virtual font setup of LM. In pdfTeX \int and \intop
operators are positioned equally.

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] compresslevel and png graphics (mkiv)

2011-05-27 Thread Hartmut Henkel
  @luigi: an ICC profile definitely breaks the png copy rules
  
  The only chunks left are
  
  IHDRPNG image header: 5900x4094, 8bits/sample, truecolor,
 noninterlaced
  IDATPNG image data
  ..
  IDATPNG image data
  IENDend-of-image marker
  
  Mh, where is the show stopper? The compression method?
 
 Looks like some of ConTeXt PDF/X-related settings is causing this. If I
 reduce the code to the pure picture, the '(PNG copy)' is triggered.
 Probably the active color management (default color space) is breaking
 the copy process here.

must be some \pdfimageapplygamma  0, only this and the \pdfimagehicolor
primitive can influence this low level stuff.

Btw, just \pdfimageapplygamma  0 (without setting \pdfgamma and 
\pdfimagegamma) already changes the PNG image, since the luatex (and pdftex) 
internal defaults are not gamma-neutral. No idea if (and then
to which value) this should be fixed.

Regards, Hartmut
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
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] compresslevel and png graphics (mkiv)

2011-05-27 Thread Peter Rolf
Am 27.05.2011 15:09, schrieb Hartmut Henkel:
 @luigi: an ICC profile definitely breaks the png copy rules

 The only chunks left are

 IHDRPNG image header: 5900x4094, 8bits/sample, truecolor,
 noninterlaced
 IDATPNG image data
 ..
 IDATPNG image data
 IENDend-of-image marker

 Mh, where is the show stopper? The compression method?

 Looks like some of ConTeXt PDF/X-related settings is causing this. If I
 reduce the code to the pure picture, the '(PNG copy)' is triggered.
 Probably the active color management (default color space) is breaking
 the copy process here.
 
Sorry Hartmut, my last statement is complete BS. I made a 'blind' run in
my lunch break, not inspecting the pdf. And sadly I had forgotten, that
I changed the test file yesterday to use a small png test graphic
instead of my big png. *brain vs. full stomach: 0:1*

So the PDF/X settings have no influence on this. The big png is not
'copied'.
Anyhow, this is not a serious problem and honestly I don't have that
much time now. When I have some more time I will use gdb to find the
failing condition in writepng.w. Will be interesting, the last time I
used gdb is more than 10 years ago.

Thanks for all answers so far.

Regards, Peter

 must be some \pdfimageapplygamma  0, only this and the \pdfimagehicolor
 primitive can influence this low level stuff.
 
 Btw, just \pdfimageapplygamma  0 (without setting \pdfgamma and 
 \pdfimagegamma) already changes the PNG image, since the luatex (and pdftex) 
 internal defaults are not gamma-neutral. No idea if (and then
 to which value) this should be fixed.
 
 Regards, Hartmut

___
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] checking mainlanguage setup

2011-05-27 Thread Jeong Dalyoung
, if the file simultaneously satisfies quite
 a few conditions, which are about: non-interlaced, no palette, no
 transparency, no gamma coming with it, no gamma modification requested,
 no white adjustment in the PNG, and a few more rare others. Else it's
 de-compressed and then re-compressed to the \pdfcompresslevel, and
 additional streams and dicts are added. You see in the log if it finally
 was PNG Copy or not.
 
 [..]
 
 These are about the factors affecting the PNG to PDF size. For your big
 PNG graphic you may find a preprocessing (e. g., pngtopnm | pnmtopng
 will definitely remove all fat) that makes it compliant with the PNG
 copy.
 
 I will give that a try. But I doubt that there is much 'fat' on that
 graphic. Anyhow, you never know before you have tried it. :-)
 
 
 No luck. I used imagemagick to convert to pnm and back.
 Transparency was removed before by adding a white background, also all
 not critical chunks (ICC profile, backgroundcolor, resolution, creation
 and modify date, comment) were removed. The graphic is a valid PNG
 (TweakPNG) and aside from the size, there is nothing special with this
 graphic. Still no '(PNG copy)'.
 
 @luigi: an ICC profile definitely breaks the png copy rules
 
 The only chunks left are
 
 IHDRPNG image header: 5900x4094, 8bits/sample, truecolor, noninterlaced
 IDATPNG image data
 ..
 IDATPNG image data
 IENDend-of-image marker
 
 Mh, where is the show stopper? The compression method?
 
 Looks like some of ConTeXt PDF/X-related settings is causing this. If I
 reduce the code to the pure picture, the '(PNG copy)' is triggered.
 Probably the active color management (default color space) is breaking
 the copy process here.
 
 Sorry for any inconvenience. I should have tested this case before...
 
 Best wishes, Peter
 
 
 Regards, Peter
 ___
 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
 ___
 
 
 
 
 --
 
 Message: 6
 Date: Fri, 27 May 2011 15:07:33 +0200
 From: Hans Hagen pra...@wxs.nl
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Cc: Peter M?nster pmli...@free.fr
 Subject: Re: [NTG-context] \asciimode and cld
 Message-ID: 4ddfa215.3060...@wxs.nl
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
 On 27-5-2011 11:00, Peter M?nster wrote:
 Hello,
 
 How can one use \asciimode in cld syntax?
 
 This does not seem to work:
 
 context.starttext()
 context.asciimode()
 contextbla % bla
 context.stoptext()
 
 \starttext
 
 \startluacode
 context.startTEXpage()
 context.starttext()
 context.pushcatcodes(txtcatcodes)
 context(bla % bla)
 context.popcatcodes()
 context.stoptext()
 context.stopTEXpage()
 \stopluacode
 
 \stoptext
 
 
 -
   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
 -
 
 
 --
 
 Message: 7
 Date: Fri, 27 May 2011 15:09:14 +0200
 From: Hartmut Henkel hartmut_hen...@gmx.de
 To: mailing list for ConTeXt users ntg-context@ntg.nl,
   ntg-context@ntg.nl
 Subject: Re: [NTG-context] compresslevel and png graphics (mkiv)
 Message-ID: 20110527130914.171...@gmx.net
 Content-Type: text/plain; charset=utf-8
 
 @luigi: an ICC profile definitely breaks the png copy rules
 
 The only chunks left are
 
 IHDRPNG image header: 5900x4094, 8bits/sample, truecolor,
 noninterlaced
 IDATPNG image data
 ..
 IDATPNG image data
 IENDend-of-image marker
 
 Mh, where is the show stopper? The compression method?
 
 Looks like some of ConTeXt PDF/X-related settings is causing this. If I
 reduce the code to the pure picture, the '(PNG copy)' is triggered.
 Probably the active color management (default color space) is breaking
 the copy process here.
 
 must be some \pdfimageapplygamma  0, only this and the \pdfimagehicolor
 primitive can influence this low level stuff.
 
 Btw, just \pdfimageapplygamma  0 (without setting \pdfgamma and 
 \pdfimagegamma) already changes the PNG image, since the luatex (and pdftex) 
 internal defaults are not gamma-neutral. No idea if (and then
 to which value) this should be fixed.
 
 Regards, Hartmut
 -- 
 Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
 belohnen Sie mit bis

Re: [NTG-context] compresslevel and png graphics (mkiv)

2011-05-26 Thread Peter Rolf
Am 25.05.2011 21:54, schrieb Hartmut Henkel:
 On Wed, 25 May 2011, Hans Hagen wrote:
 On 25-5-2011 2:43, Peter Rolf wrote:

 I just made a one pager (TEXpage) out of a big png graphic
 (5900x4094). The compressed size of the graphics is normally around
 1.37MB on the highest png compress level (9) and 1.32MB after using
 optipng (only around 3% reduction this time). To my surprise the
 size of the final PDF was about 2.3MB. After adding
 '\pdfcompresslevel9' the size went down to 1.48MB. Still not what I
 wanted...

 So I was wondering: is there an option to embed the png graphic as
 it is (no re-compression)?
 
 no. There is a PNG Copy function for literal embedding of the PNG
 file, but that triggers only, if the file simultaneously satisfies quite
 a few conditions, which are about: non-interlaced, no palette, no
 transparency, no gamma coming with it, no gamma modification requested,
 no white adjustment in the PNG, and a few more rare others. Else it's
 de-compressed and then re-compressed to the \pdfcompresslevel, and
 additional streams and dicts are added. You see in the log if it finally
 was PNG Copy or not.

Sigh, most of my graphics use (and need) transparency.
So the only advantage I get from optipng is the smaller file size on my
disk. Sad, but good to know. ;-)

 Preprocessing the PNG, e. g., by convert, sometimes changes it that it
 gets copyable. Obviously flattening transparency also helps.
 
 Anyway direct embedding or not can have positive or negative influence
 on the PDF file size. E. g. if a PNG is copied verbatim, and it contains
 lots of meta-data info, the PDF file will probably get larger, since
 normal PNG embedding removes all these info chunks.

And what about icc profiles?

 Another factor influencing the size is if it's PDF-1.4 or PDF-1.5: If
 you have a 16 bit PNG, for PDF-1.4 it will be automatically reduced to 8
 bit by luatex and pdftex, so suddenly the PDF file gets smaller, but
 actually also the image quality (silently) went down.
 
 These are about the factors affecting the PNG to PDF size. For your big
 PNG graphic you may find a preprocessing (e. g., pngtopnm | pnmtopng
 will definitely remove all fat) that makes it compliant with the PNG
 copy.

I will give that a try. But I doubt that there is much 'fat' on that
graphic. Anyhow, you never know before you have tried it. :-)

Thanks Hartmut for the very detailed and interesting answer.

Regards, Peter

 Otherwise the time consuming usage of optipng would be a complete
 waste of time. Believe it or not, but size matters :-)
 
 yes :-)
 
 This one is for Hartmut to answer. Keep in mind that pdf does support
 pgn and jpg compression, which is not the same as 'inclusion as-is'.
 
 fwiw, jpg is always embedded literally (no re-compression).
 
 The compresslevel concerns copyright free zip compression of streams
 (that can happen to gave image data).
 
 Regards, Hartmut
 ___
 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] compresslevel and png graphics (mkiv)

2011-05-26 Thread luigi scarso
On Thu, May 26, 2011 at 12:52 PM, Peter Rolf indi...@gmx.net wrote:
 Am 25.05.2011 21:54, schrieb Hartmut Henkel:
 On Wed, 25 May 2011, Hans Hagen wrote:
 On 25-5-2011 2:43, Peter Rolf wrote:

 I just made a one pager (TEXpage) out of a big png graphic
 (5900x4094). The compressed size of the graphics is normally around
 1.37MB on the highest png compress level (9) and 1.32MB after using
 optipng (only around 3% reduction this time). To my surprise the
 size of the final PDF was about 2.3MB. After adding
 '\pdfcompresslevel9' the size went down to 1.48MB. Still not what I
 wanted...

 So I was wondering: is there an option to embed the png graphic as
 it is (no re-compression)?

 no. There is a PNG Copy function for literal embedding of the PNG
 file, but that triggers only, if the file simultaneously satisfies quite
 a few conditions, which are about: non-interlaced, no palette, no
 transparency, no gamma coming with it, no gamma modification requested,
 no white adjustment in the PNG, and a few more rare others. Else it's
 de-compressed and then re-compressed to the \pdfcompresslevel, and
 additional streams and dicts are added. You see in the log if it finally
 was PNG Copy or not.

 Sigh, most of my graphics use (and need) transparency.
 So the only advantage I get from optipng is the smaller file size on my
 disk. Sad, but good to know. ;-)

 Preprocessing the PNG, e. g., by convert, sometimes changes it that it
 gets copyable. Obviously flattening transparency also helps.

 Anyway direct embedding or not can have positive or negative influence
 on the PDF file size. E. g. if a PNG is copied verbatim, and it contains
 lots of meta-data info, the PDF file will probably get larger, since
 normal PNG embedding removes all these info chunks.

 And what about icc profiles?
removed, I suppose.
Not really a big problem, and doable in mkiv
(see
Hacked image color space.
in
texmf-dist/doc/pdftex/manual/samplepdf
of a recent texlive)



-- 
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] compresslevel and png graphics (mkiv)

2011-05-25 Thread Hartmut Henkel
On Wed, 25 May 2011, Hans Hagen wrote:
 On 25-5-2011 2:43, Peter Rolf wrote:
 
  I just made a one pager (TEXpage) out of a big png graphic
  (5900x4094). The compressed size of the graphics is normally around
  1.37MB on the highest png compress level (9) and 1.32MB after using
  optipng (only around 3% reduction this time). To my surprise the
  size of the final PDF was about 2.3MB. After adding
  '\pdfcompresslevel9' the size went down to 1.48MB. Still not what I
  wanted...
 
  So I was wondering: is there an option to embed the png graphic as
  it is (no re-compression)?

no. There is a PNG Copy function for literal embedding of the PNG
file, but that triggers only, if the file simultaneously satisfies quite
a few conditions, which are about: non-interlaced, no palette, no
transparency, no gamma coming with it, no gamma modification requested,
no white adjustment in the PNG, and a few more rare others. Else it's
de-compressed and then re-compressed to the \pdfcompresslevel, and
additional streams and dicts are added. You see in the log if it finally
was PNG Copy or not.

Preprocessing the PNG, e. g., by convert, sometimes changes it that it
gets copyable. Obviously flattening transparency also helps.

Anyway direct embedding or not can have positive or negative influence
on the PDF file size. E. g. if a PNG is copied verbatim, and it contains
lots of meta-data info, the PDF file will probably get larger, since
normal PNG embedding removes all these info chunks.

Another factor influencing the size is if it's PDF-1.4 or PDF-1.5: If
you have a 16 bit PNG, for PDF-1.4 it will be automatically reduced to 8
bit by luatex and pdftex, so suddenly the PDF file gets smaller, but
actually also the image quality (silently) went down.

These are about the factors affecting the PNG to PDF size. For your big
PNG graphic you may find a preprocessing (e. g., pngtopnm | pnmtopng
will definitely remove all fat) that makes it compliant with the PNG
copy.

 Otherwise the time consuming usage of optipng would be a complete
 waste of time. Believe it or not, but size matters :-)

yes :-)

 This one is for Hartmut to answer. Keep in mind that pdf does support
 pgn and jpg compression, which is not the same as 'inclusion as-is'.

fwiw, jpg is always embedded literally (no re-compression).

 The compresslevel concerns copyright free zip compression of streams
 (that can happen to gave image data).

Regards, Hartmut
___
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] Hyphenating compound words in MKIV microtypographyy

2011-05-23 Thread Hans Hagen

On 23-5-2011 5:54, Otso Helenius wrote:

it produces larger files, take more runtime and in most cases does
not look better at all; for instance one can argue that protrusion
gives more width but at the same time it introduces the boundary
condition that some characters have to hang; or take hz (expansion)
... when applied so much that it gets visible, it will also lead to
similar shapes in successive lines to look different

so, just enabling these features assuming that the output looks
better is debatable (sometimes adding or removing a word is more
effective)


I agree, in many cases automatic layout of content can look horrific because 
the algorithms
aren't able to solve each possible case in a near optimal way (while we as 
humans are).
And also, there is no question about it, *every* setting should be possible to 
turn on and off
depending on the situation.

Just as with WYSIWYG tools such as InDesign, manual adjustment of layout is 
needed to achieve
optimal results. But my actual complaint is this: the example I pasted was a 
very trivial
and simple typesetting task. Even the current versions MS Office can 
automatically achieve
acceptable paragraph look with the given input. In such case there should not 
be any need
to manually adjust spacing and expansion of words nor forcing the column into a 
ragged one.

The output of this MKIV source:

\mainlanguage[fi]
\language[fi]
\definefontfeature[default][default][protrusion=quality, expansion=quality]
\setupalign[hz, hanging, spacing]
\starttext
\startcolumns[n=2]
\dorecurse{10}{kolmivaihekilowattituntimittari ympäristöliiketoiminta 
epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään hääyöaie 
kolmivaihekilowattituntimittari ympäristöliiketoiminta 
epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään hääyöaie}
\stopcolumns
\stoptext

can be downloaded here: https://pi-xi.net/share/context_hyphen.pdf

I also wrote a close as possible equivalent of the code above in LaTeX and
compiled it with pdfTeX (TL 2011):

\documentclass[12pt, twocolumn, a4paper, finnish]{article}
\usepackage[utf8]{inputenc}
\usepackage[finnish]{babel}
\usepackage{ae}
\usepackage[auto=true, spacing=true, kerning=true, tracking=true, 
protrusion=true, expansion=true]{microtype}
\usepackage{pgffor}
\setlength{\parindent}{0mm}
\newcommand{\Repeat}[2]{\foreach \n in {1,...,#1}{#2}}
\begin{document}
\foreach \n in {1,...,10}{kolmivaihekilowattituntimittari 
ympäristöliiketoiminta epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään hääyöaie 
kolmivaihekilowattituntimittari ympäristöliiketoiminta 
epäjärjestelmällisyydellistyttymättömyydellänsäkään 
järjestelmällisentelentelemättömyydellänsäkään hääyöaie}
\end{document}

The LaTeX example can be downloaded here: 
https://pi-xi.net/share/latex_hyphen.pdf

As can be seen, the neither versions have any specific adjustments done by 
hand: both
only have the microtypographic features turned on. There is no comparison, the 
pdfTeX
version looks superior: there are no rivers, all lines are justified to equal 
length,
and the expansion and spacing are both acceptable.


(1) The 'spacing' options does not work and even gives an error in mkiv) 
so remove that one. What version of context are you running? I've 
already fotgotten about it but I think it was an experimental pdftesx 
feature with side effects. In pdftex hz and protrusion is also somewhat 
tricky as it can bleed from one font instance to another (due to 
traditional tex's internal font sharing), although context takes some 
precautions.


(2) But, more important: add \setuplayout[width=middle] to give context 
a more similar opportunity to produce something acceptable. You're now 
giving context a disadvantage of narrower columns.


(3) You can remove the \language as you already set \mainlanguage.

(4) In context protrusion and expansion is a font property and applying 
it globally to all fonts (with some flag) will not happen. Actually, in 
some situations you need to turn it on explicitly (imaging hanging 
happening when you're doing a table).


I don't know what latex's default layout setup is but if you want to do 
an experiment, you need to make sure that you use the same widths of 
columns.


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

Re: [NTG-context] Parsing CFF DICT failed

2011-05-15 Thread Reviczky, Adam
 Any chance of a (smallish) test file?

I've attached the test file, log and broken pdf/synctex files.

Do you need anything else?

Adam
\enabledirectives[system.synctex]
\setupbibtex[database={sample},sort=author]
\starttext
\chapter{Bibliography}
\completepublications[criterium=text]
\stoptext
@STRING{hh = {Hans Hagen}}

@ELECTRONIC{hh2010,
  author = hh,
  year = {2010},
  title = {Metafun. \CONTEXT\ mkiv},
  url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
}

@ARTICLE{hh2010a,
  author = hh,
  title = {The Font Name Mess},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {2-8},
  keywords = {context},
}

@ARTICLE{hh2010b,
  author = hh,
  title = {Grouping in Hybrid Environments},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {67-71},
  keywords = {context},
}

@BOOK{Eijkhout1991,
  title = {\TeX\ by Topic. A \TeX nician's Reference},
  publisher = {Addison-Wesley},
  year = {1991},
  author = {Victor Eijkhout},
  address = {London},
  keywords = {general},
}
(test.tex

ConTeXt  ver: 2011.05.14 16:34 MKIV  fmt: 2011.5.14  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
system   synctex functionality is enabled!
publications wrote a new auxiliary file \jobname.aux
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file test.tex at line 3
structuresectioning  chapter @ level 2 : 0.1 - Bibliography
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
structuresectioning  chapter @ level 2 : 0.2 - \headtext {pubs}
publications loading database from test.bbl
(test.bbl)
pagesflushing realpage 2, userpage 2
system   end file test.tex at line 6
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
!LuaTeX error (file /usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!


test.pdf
Description: test.pdf


test.synctex.gz(b.txt
Description: test.synctex.gz(b.txt
___
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] Parsing CFF DICT failed

2011-05-14 Thread Reviczky, Adam
Hi

Not sure where the problem is but using the latest beta (2011.05.14) I get this 
error:

!LuaTeX error (file 
/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-bold.otf): 
Parsing CFF DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!

This used to work a couple of days ago ...
Log attached.

Adam
(/home/reviczky/Downloads/thesis/src/prd_finalreport.tex

ConTeXt  ver: 2011.05.14 16:34 MKIV  fmt: 2011.5.14  int: english/english

(/usr/share/texmf/tex/context/base/cont-new.mkiv) (prd_finalreport.top
){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} (project_6ccs3prj.tex (env_6ccs3prj.tex (/usr/share/texmf/tex/context/base/colo-imp-x11.mkiv) (/usr/share/texmf/tex/context/base/m-database.mkiv+ /usr/share/texmf/tex/context/base/m-database.lua) (/usr/share/texmf/tex/context/base/page-run.mkiv))) (c_titlepage.tex) (c_legal.tex) (c_abstract.tex) (c_acknowledgements.tex) (c_tableofcontents.tex) (c_introduction.tex) (c_background.tex) (c_body.tex) (c_evaluation.tex) (c_conclusions.tex
Overfull \hbox (9.75206pt too wide) in paragraph at lines 26--26
[][]\*TeX Gyre11ptrmtf* (-15) Second\*TeX Gyre11ptrmtf* (-20) ly, \*TeX Gyre11ptrmtf* (-15) an ana\*TeX Gyre11ptrmtf* (-20) ­l\*TeX Gyre11ptrmtf* (-15) og\*TeX Gyre11ptrmtf* (-20) y \*TeX Gyre11ptrmtf* (-15) can be d\*TeX Gyre11ptrmtf* (-20) r\*TeX Gyre11ptrmtf* (-15) awn w\*TeX Gyre11ptrmtf* (-20) it\*TeX Gyre11ptrmtf* (-15) h \*TeX Gyre11ptrmtf* (-20) t\*TeX Gyre11ptrmtf* (-15) he wa\*TeX Gyre11ptrmtf* (-20) y L[]T[]X \*TeX Gyre11ptrmtf* (-15) enhanced \*TeX Gyre11ptrmtf* (-20) T[]X \*TeX Gyre11ptrmtf* (-15) o\*TeX Gyre11ptrmtf* (-20) r X\*TeX Gyre11ptrmtf* (-15) H\*TeX Gyre11ptrmtf* (-20) T\*TeX Gyre11ptrmtf* (-15) M\*TeX Gyre11ptrmtf* (-20) L+\*TeX Gyre11ptrmtf* (-15) CSS

\hbox(7.887+2.6675)x426.78743, glue set - 1.0, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\*TeX Gyre11ptrmtf* (-15) S
.\*TeX Gyre11ptrmtf* (-15) e
.\*TeX Gyre11ptrmtf* (-15) c
.etc.

) (c_bibliography.tex (prd_finalreport.bbl)) (c_appendix.tex /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/0e9b8cc57c0432d5c772dda2b9cd6dfe.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/20423a750695b2b662ba0d45cffb47d7.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5e275d1076b71ab932ea5ebd4ebf214.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/d4119ab8da3dcb23984cfb71ad63d7fd.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/38eb45f44eddb6c6d26bb5dd5aeb81f8.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/77bb547e2ae6cfc8f18ed6ac3fcc4cb0.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5ef87eb4b66f38fd4ed47540edace38 /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/cab33a4eaf4616b446d5e19baa4af9d7) (c_userguide.tex /home/reviczky/Downloads/thesis/src/graphics/goldbach_main.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_about.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_credits.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_licence.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_open.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_filters.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_progress.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_clear.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_recognition.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_relational.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_ellipses.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_operator.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_arrow.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_logical.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_sets.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_misc.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_greeklo.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_greekup.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_typeset.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_mkiv.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_save.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_export.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_modified.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_de.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_fr.png /home/reviczky

Re: [NTG-context] Parsing CFF DICT failed

2011-05-14 Thread Reviczky, Adam
It seems to be syntex/luatex related.

Here's a minimal example using the sample.bib from the wiki 
(http://wiki.contextgarden.net/sample_bib):
%%%
\enabledirectives[system.synctex]
\setupbibtex[database={sample},sort=author]
\starttext
\chapter{Bibliography}
\completepublications[criterium=text]
\stoptext
%%%

error:
!LuaTeX error (file 
/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF 
DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!

note: * criterium=all works, obviously I have cite's in my document, but that 
shouldn't matter
 * commenting out the synctex line also makes it work again
 * somehow the problem is in combination with a title element (part, 
chapter, etc.), because without it it works again as well

More verbose log attached.

Adam
(test.tex

ConTeXt  ver: 2011.05.14 16:34 MKIV  fmt: 2011.5.14  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
system   synctex functionality is enabled!
publications wrote a new auxiliary file \jobname.aux
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file test.tex at line 4
structuresectioning  chapter @ level 2 : 0.1 - Bibliography
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
structuresectioning  chapter @ level 2 : 0.2 - \headtext {pubs}
publications loading database from test.bbl
(test.bbl)
pagesflushing realpage 2, userpage 2
system   end file test.tex at line 7
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
!LuaTeX error (file /usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!
___
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] Error with export=yes

2011-05-09 Thread Reviczky, Adam
 Anyhow,
 
 \setupbackend[export=yes]
 
 \definefontsynonym [Dingbats] [name:dingbats] [features=dingbats]
 
 \starttext
 
 Hello world!
 (\getnamedglyphdirect{Dingbats}{a79})
 (\getnamedglyphdirect{Dingbats*dingbats}{a79})
 (\getglyphdirect{Dingbats*dingbats}{\number2756})
 ({\definedfont[Dingbats]\char2756})
 
 \stoptext
 
 (1) will export 'v'
 (2) ok in next beta
 (3) ok
 (4) ok

This is strange, attached my export and log.
PDF is still fine.

Do I miss something from context?

Adam


test.export
Description: test.export
(test.tex

ConTeXt  ver: 2011.05.09 10:14 MKIV  fmt: 2011.5.9  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test.tex]
system   options  \setupsystem[\c!n=2,\c!m=3]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
backend  export  enabling export to xml
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file test.tex at line 5
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file test.tex at line 13
 )/usr/share/texmf-texlive/fonts/type1/urw/zapfding/uzdr.pfb/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
backend  export  finalizing
backend  export  saving xml data in 'test.export
backend  export  saving css template in 'test.template
mkiv lua stats   used config file  - /usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d
mkiv lua stats   input load time   - 0.131 seconds
mkiv lua stats   stored bytecode data  - 285 modules, 58 tables, 343 chunks
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats   node memory usage - 20 glue_spec
mkiv lua stats   node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2354 calls
mkiv lua stats   used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   callbacks - 2491 direct, 2974 indirect, 5465 total
mkiv lua stats   randomizer- resumed with value 0.98525745094999
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats   structure elements- 1 element chains identified
mkiv lua stats   result saved in file  - test.pdf
mkiv lua stats   loaded fonts  - 34 files: stmary10.afm uzdr.afm eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats   fonts load time   - 0.526 seconds 
mkiv lua stats   xml exporting time- 0.003 seconds
mkiv lua stats   luatex banner - this is luatex, version beta-0.71.0-2011050806

Re: [NTG-context] Error with export=yes

2011-05-08 Thread Reviczky, Adam
 fixed in next beta
 
 (you can replace gmatch by string.gmatch as a fast fix)

Thanks, that fixed the problem for one, but still it fails on my thesis with:

! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:868: attempt to 
index field '?' (a nil value).

empty file

I hope it is not because of my tex file.
Log attached.

Adam
(/home/reviczky/Downloads/ctx/test/thesis/src/prd_finalreport.tex

ConTeXt  ver: 2011.05.08 23:02 MKIV  fmt: 2011.5.9  int: english/english

(/usr/share/texmf/tex/context/base/cont-new.mkiv) (prd_finalreport.top
){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} (project_6ccs3prj.tex (env_6ccs3prj.tex (/usr/share/texmf/tex/context/base/colo-imp-x11.mkiv) (/usr/share/texmf/tex/context/base/m-database.mkiv+ /usr/share/texmf/tex/context/base/m-database.lua) (/usr/share/texmf/tex/context/base/page-run.mkiv))) (c_titlepage.tex) (c_legal.tex) (c_abstract.tex) (c_acknowledgements.tex) (c_tableofcontents.tex) (c_introduction.tex) (c_background.tex) (c_body.tex) (c_evaluation.tex) (c_conclusions.tex
Overfull \hbox (11.07205pt too wide) in paragraph at lines 26--26
[][]\*TeX Gyre11ptrmtf* (-15) Second\*TeX Gyre11ptrmtf* (-20) ly, \*TeX Gyre11ptrmtf* (-15) an ana\*TeX Gyre11ptrmtf* (-20) ­l\*TeX Gyre11ptrmtf* (-15) og\*TeX Gyre11ptrmtf* (-20) y \*TeX Gyre11ptrmtf* (-15) can be d\*TeX Gyre11ptrmtf* (-20) r\*TeX Gyre11ptrmtf* (-15) awn w\*TeX Gyre11ptrmtf* (-20) it\*TeX Gyre11ptrmtf* (-15) h \*TeX Gyre11ptrmtf* (-20) t\*TeX Gyre11ptrmtf* (-15) he wa\*TeX Gyre11ptrmtf* (-20) y L[]T[]X \*TeX Gyre11ptrmtf* (-15) enhanced \*TeX Gyre11ptrmtf* (-20) T[]X \*TeX Gyre11ptrmtf* (-15) o\*TeX Gyre11ptrmtf* (-20) r X\*TeX Gyre11ptrmtf* (-15) H\*TeX Gyre11ptrmtf* (-20) T\*TeX Gyre11ptrmtf* (-15) M\*TeX Gyre11ptrmtf* (-20) L+\*TeX Gyre11ptrmtf* (-15) CSS

\hbox(7.887+2.6675)x426.78743, glue set - 1.0, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\*TeX Gyre11ptrmtf* (-15) S
.\*TeX Gyre11ptrmtf* (-15) e
.\*TeX Gyre11ptrmtf* (-15) c
.etc.

) (c_bibliography.tex (prd_finalreport.bbl)) (c_appendix.tex /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/0e9b8cc57c0432d5c772dda2b9cd6dfe.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/20423a750695b2b662ba0d45cffb47d7.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5e275d1076b71ab932ea5ebd4ebf214.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/d4119ab8da3dcb23984cfb71ad63d7fd.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/38eb45f44eddb6c6d26bb5dd5aeb81f8.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/77bb547e2ae6cfc8f18ed6ac3fcc4cb0.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5ef87eb4b66f38fd4ed47540edace38 /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/cab33a4eaf4616b446d5e19baa4af9d7) (c_userguide.tex /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_main.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_about.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_credits.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_licence.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_open.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_filters.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_progress.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_clear.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_recognition.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_relational.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_ellipses.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_operator.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_arrow.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_logical.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_sets.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_misc.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_greeklo.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_greekup.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_typeset.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_mkiv.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_save.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics

Re: [NTG-context] Error with export=yes

2011-05-06 Thread Reviczky, Adam
 \setupbackend
[export=cld-mkiv-export.xml,
 xhtml=cld-mkiv-export.xhtml,
 css={cld-mkiv-export.css,mathml.css}]
 
 There's an article in the eurotex proceedings about these issues. I 
 don't know if Mojca has put the presentation somewhere online.

Since this worked nicely on a simple hello world example, I thought I'm 
trying it out on a few documents I have.

The logs are attached, do I need to make a minimal out of it?

Adam
(/home/reviczky/Downloads/ctx/presentation/src/presentation_6ccs3prj.tex

ConTeXt  ver: 2011.05.06 16:52 MKIV  fmt: 2011.5.7  int: english/english

(/usr/share/texmf/tex/context/base/cont-new.mkiv) (presentation_6ccs3prj.top
) (/home/reviczky/Downloads/ctx/presentation/src/env_6ccs3prj.tex (/usr/share/texmf/tex/context/third/simpleslides/t-simpleslides.tex (/usr/share/texmf/tex/context/third/simpleslides/simpleslides-f-default.tex (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/pdftex/context/mkiv-tx.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}) (/usr/share/texmf/tex/context/third/simpleslides/simpleslides-s-default.tex) (/usr/share/texmf/tex/context/third/simpleslides/simpleslides-s-Split.tex)) (/usr/share/texmf/tex/context/base/m-chart.mkiv) (/usr/share/texmf/tex/context/base/symb-mvs.mkiv)
fontssymbols  loaded: library 'mvs') (/home/reviczky/Downloads/ctx/presentation/src/s_titlepage.tex)
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:1237: attempt to call global 'gmatch' (a nil value)
stack traceback:
	/usr/share/texmf/tex/context/base/back-exp.lua:1237: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	...
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults'
	/usr/share/texmf/tex/context/base/back-exp.lua:1354: in function 'nodes_handlers_export'
	local nodes_references_handler = nodes.references.ha...:14: in function local nodes_references_handler = nodes.references.ha...:8
	(tail call): ?
	(tail call): ?
	main ctx instance:1: in main chunk.

 1 \input env_6ccs3prj
 2 
 3 \starttext
 4 % Ignite style
 5 \input s_titlepage
 6   \input s_outline
 7 \input s_timeline
 8 \input s_motivation
 9 \input s_requirements
10 \input s_literature
11 \input s_design
12 \input s_dependencies
13 \input s_rosetta
14 \input s_testing
15 \input s_statistics
16 \input s_loc


\finalizeshipoutbox ...alize(tex.box[\number #1])}
  
\actualshipout ...zeshipoutbox \shipoutscratchbox 
  \setbox \scratchbox \hbox ...
\myshipout ...\@@ppmethod }\gobbleoneargument {#1}
  \setnextrealpageno \afters...
\dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}}
  \the \everyaftershipout \a...
\finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2
  \resetselectiepagina \doin...
\sidefloatoutput ...e \else \finalsidefloatoutput 
  \global \sidefloatvsize \n...
...
l.6 \input
   s_outline
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.

(/home/reviczky/Downloads/ctx/presentation/src/s_outline.tex) (/home/reviczky/Downloads/ctx/presentation/src/s_timeline.tex /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/71a0e8c53d009161a7785acb26954f7f.png) (/home/reviczky/Downloads/ctx/presentation/src/s_motivation.tex /home/reviczky/Downloads/ctx/presentation/src/graphics/thumbnail_timeline.png (PNG copy)
Overfull \hbox (1.67787pt too wide) in paragraph

Re: [NTG-context] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Wolfgang Schuster

Am 04.05.2011 um 12:10 schrieb Alasdair McAndrew:

  It looks like it should work, but when I try it I get a very squashed table, 
 with lines between all rows and columns...  FWIW, I'm using MKII: 

To separate the content and style of a table Hans added a “setups” key to 
\bTABLE/\startTABLE in MkIV but as you use MkII this setting has no effect. You 
can apply the style to the table with the \setups command:

% engine=pdftex

\startsetups table:multiplication
  \setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em]
  \setupTABLE[row][first][bottomframe=on]
  \setupTABLE[column][first][rightframe=on]
\stopsetups

\starttext

\start\setups[table:multiplication]
\startTABLE
\NC $\times$ \NC 0 \NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC 6 \NC\NR
\NC0 \NC 0 \NC 0 \NC 0 \NC 0 \NC 0 \NC 0 \NC 0 \NC\NR
\NC1 \NC 0 \NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC 6 \NC\NR
\NC2 \NC 0 \NC 2 \NC 4 \NC 6 \NC 1 \NC 3 \NC 5 \NC\NR
\NC3 \NC 0 \NC 3 \NC 6 \NC 2 \NC 5 \NC 1 \NC 4 \NC\NR
\NC4 \NC 0 \NC 4 \NC 1 \NC 5 \NC 2 \NC 6 \NC 3 \NC\NR
\NC5 \NC 0 \NC 5 \NC 3 \NC 1 \NC 6 \NC 4 \NC 2 \NC\NR
\NC6 \NC 0 \NC 6 \NC 5 \NC 4 \NC 3 \NC 2 \NC 1 \NC\NR
\stopTABLE
\stop

\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] Problem compiling document

2011-04-30 Thread Isaac Mulolani
Hi,

I am a latex user trying to extend my knowledge to include ConTeXt. I have 
installed TeXLive2010 along with some latex editors including TeXWorks. The 
file attached when run using the Texworks menu item(ConTeXt) or command line 
texexec option produce the following:

MTXrun | kpse fallback with progname 'context' initialized in 0.524 seconds
TeXExec | processing document 'sample-letter-test.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file sample-letter-test.top
TeXExec | using randomseed 510
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
initexmf: Unknown format name/engine: cont-en/pdfTeX
I can't find the default format file!
TeXExec | runtime: 0.276


Is there something I'm missing? What exactly is the format file mentioned here? 
The actual document I am trying to typeset is attached. Thanks.

Isaac Mulolani | Online Learning Consultant
CENTRE FOR EXTENDED LEARNING
UNIVERSITY OF WATERLOO
Waterloo, Ontario, Canada N2L 3G1
519.888.4567 x34932
extendedlearning.uwaterloo.camailto:extendedlearning.uwaterloo.ca
imulo...@uwaterloo.camailto:%20imulo...@uwaterloo.ca

[Wordmark_Web_or_Email_uWaterloo]

The information contained in this message, including any attachments, is 
privileged and may contain confidential information intended only for the 
person(s) named above. Any further distribution, copying or disclosure which is 
not necessary and proper in the discharge of the University's functions is 
strictly prohibited. If you are not the intended recipient or have received 
this message in error, please notify us immediately by reply email and 
permanently delete the original transmission from us, including any 
attachments. Please consider the environment before printing. Thank you!

inline: image001.gif

sample-letter-test.tex
Description: sample-letter-test.tex
___
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] t-filter: no table created when Unicode characters are included

2011-04-30 Thread Paul Menzel
Am Freitag, den 29.04.2011, 18:13 -0400 schrieb Aditya Mahajan:
 On Fri, 29 Apr 2011, Paul Menzel wrote:

  the filter module installed using
 
  $ ./first-setup.sh --extras=t-filter
 
  does not work with the following example, which is also attached.
 
 \usemodule[filter]
 \defineexternalfilter[rest][filtercommand={pandoc -f rst -t context 
  -o \externalfilteroutputfile\space \externalfilterinputfile}]
 \starttext
 There should be a table here.
 \startrest
 ==
   testtable
 ==
 α b
 c d
  
 \stoprest
 \stoptext
 
  The output file `minimal-temp-rest.tex` is just empty.
 
  Replacing »α« by »a« solves the problem.
 
 Weird.
 
  Running `filtercommand` in a terminal produces the *correct* output
  though and no empty file.
 
  Is that a known problem?
 
 No. The content of the file should not affect whether the filter is run or 
 not. Can you add \traceexternalfilters on the top and check the output 
 (look for lines starting with t-filter).

You already added it in your commit of the test file.

[…]
resolversmodules  loaded: 'filter'
(t-filter.tex
loading  ConTeXt User Module / Filter
resolversmodules  loaded: 'module-catcodes'
(t-module-catcodes.tex
loading  ConTeXt User Module / Module Catcodes
)) (/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-tx.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontsvirtual math  the mapping is incomplete for 'txmath' 
at 7pt
system   begin file tests/rest at line 11
t-filter current filter : rest
t-filter base file : rest-temp-rest
t-filter input file : rest-temp-rest.tmp
t-filter output file : rest-temp-rest.tex
t-filter command : pandoc -f rst -t context -o 
rest-temp-rest.tex rest-temp-rest.tmp
(rest-temp-rest.tex)
backend  xmp  using file 
'/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file tests/rest at line 21
 
)/opt/context/tex/texmf/fonts/opentype/public/tex-gyre/texgyretermes-regular.otf
[…]
$ more rest-temp-rest.t*
::
rest-temp-rest.tex
::
::
rest-temp-rest.tmp
::
=   =
  testtable
=   =
α b
c d


Please find `rest.log` attached.

  I also include a patch adding this example into `tests/` in [1].
 
 Thanks. I added it to the test suite.

You can save the mbox file and use `git am path/to/mbox` next time.

 The file works correctly on my machine.

That is weired.

 Which version of pandoc are you using?

$ pandoc --version
pandoc 1.5.1.1
Compiled with syntax highlighting support for:
Ada, Alert, Asp, Awk, Bash, Bibtex, C, Cmake, Coldfusion, Commonlisp, 
Cpp, Css,
D, Djangotemplate, Doxygen, Dtd, Eiffel, Erlang, Fortran, Haskell, 
Html, Java,
Javadoc, Javascript, Json, Latex, Lex, LiterateHaskell, Lua, Makefile, 
Matlab,
Mediawiki, Modula3, Nasm, Objectivec, Ocaml, Octave, Pascal, Perl, Php,
Postscript, Prolog, Python, Relaxngcompact, Rhtml, Ruby, Scala, Scheme, 
Sgml,
Sql, SqlMysql, SqlPostgresql, Tcl, Texinfo, Xml, Xslt, Yacc
Copyright (C) 2006-2010 John MacFarlane
Web:  http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions.  There is 
no
warranty, not even for merchantability or fitness for a particular 
purpose.

As already written in my last mail. Executing the command directly works
fine.

$ pandoc -f rst -t context -o rest-temp-rest.tex rest-temp-rest.tmp
$ more rest-temp-rest.t*::
rest-temp-rest.tex
::
\placetable[here]{none}
\starttable[|l|l|]
\HL
\NC test
\NC table
\NC\AR
\HL
\NC α
\NC b
\NC\AR
\NC c
\NC d
\NC\AR
\HL
\stoptable
::
rest-temp-rest.tmp
::
=   =
  testtable
=   =
α b
c

Re: [NTG-context] Problem compiling document

2011-04-30 Thread taco


Hi,

Isaac Mulolani wrote:
 

I am a latex user trying to extend my knowledge to include ConTeXt. I 
have installed TeXLive2010 along with some latex editors including 
TeXWorks. The file attached when run using the Texworks menu 
item(ConTeXt) or command line texexec option produce the following:


Your system appears to be confused. You mention texlive 2010,
but this message:



TeXExec | using randomseed 510

TeXExec | tex engine: pdftex

TeXExec | tex format: cont-en

This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)


comes from a miktex-supplied binary, not a texlive one.

Best wishes,
Taco
___
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] problems installing module »filter« using `./first-setup.sh --external=t-filter`

2011-04-29 Thread Paul Menzel
Dear ConTeXt folks,


I am trying to install the module »filter« [1] but using the following
does not work. Please remember that I am using a 64-bit Linux kernel but
I run a 32-bit system.

$ ./first-setup.sh --external=t-filter
receiving incremental file list

sent 31 bytes  received 126 bytes  104.67 bytes/sec
total size is 5179376  speedup is 32989.66

resolvers   | resolving | creating instance
resolvers   | resolving | variable 'SELFAUTOLOC' set to 
'/opt/context/bin'
resolvers   | resolving | variable 'SELFAUTODIR' set to 
'/opt/context'
resolvers   | resolving | variable 'SELFAUTOPARENT' set to '/opt'
resolvers   | resolving | variable 'TEXMFCNF' set to ''
resolvers   | resolving | variable 'TEXMF' set to ''
resolvers   | resolving | variable 'TEXOS' set to 'context'
resolvers   | resolving |
resolvers   | resolving | unknown configuration file 
'/opt/texmf-local/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/texmf-local/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/texmf/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/texmf/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/texmfcnf.lua'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
mtxrun  | forcing cache reload
resolvers   | resolving | unknown configuration file 
'/opt/texmf-local/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/texmf-local/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/texmf/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/texmf/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/texmfcnf.lua'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
mtxrun  | using script: ./bin/mtx-update.lua

mtx-update  | state, loaded
mtx-update  |
mtx-update  | update, start
mtx-update  | run, rsync -rpztlv --delete  
contextgarden.net::'minimals/current/base/tex/ minimals/current/base/metapost/ 
minimals/current/fonts/common/ minimals/current/fonts/other/ 
minimals/current/misc/web2c minimals/current/base/xetex/ 
minimals/current/fonts/new/ minimals/current/fonts/new/ 
minimals/current/fonts/old/' '/opt/context/tex/texmf'receiving incremental file 
list

sent 140 bytes  received 64394 bytes  43022.67 bytes/sec
total size is 91350927  speedup is 1415.55

mtx-update  | run, rsync -rpztlv --delete  
contextgarden.net::'minimals/current/context/beta/ 
minimals/current/context/img/' '/opt/context/tex/texmf-context'receiving 
incremental file list

sent 154 bytes  received 44839 bytes  29995.33 bytes/sec
total size is 34663659  speedup is 770.42

mtx-update  | run, rsync -rpztlv   
contextgarden.net::'minimals/current/misc/setuptex/' 
'/opt/context/tex/.'receiving incremental file list

sent 30 bytes  received 99 bytes  86.00 bytes/sec
total size is 8292  speedup is 64.28

mtx-update  | run, rsync -rpztlv   
contextgarden.net::'minimals/current/bin/common/linux/ 
minimals/current/bin/context/linux/ minimals/current/bin/metapost/linux/ 
minimals/current/bin/man/ minimals/current/bin/luatex/linux/ 
minimals/current/bin/xetex/linux/ minimals/current/bin/luatex/linux/ 
minimals/current/bin/luatex/linux/ minimals/current/bin/pdftex/linux/' 
'/opt/context/tex/texmf-linux'receiving incremental file list
bin/
bin/mtxrun

sent 4071 bytes  received 1473 bytes  3696.00 bytes/sec
total size is 31287653  speedup is 5643.52

mtx-update  | updating mtxrun for linux: rsync -tgo --chmod=a+x 
/opt/context/tex/texmf-context/scripts/context/lua/mtxrun.lua 
/opt/context/tex/texmf-linux/bin/mtxrun
mtx-update  | run, rsync -tgo --chmod=a+x 
/opt/context/tex/texmf-context/scripts/context/lua/mtxrun.lua 
/opt/context/tex/texmf-linux/bin/mtxrun
resolvers   | tds | no 'texmf-linux-64' under tree /opt/context/tex
When you want to use context, you need to initialize the tree by typing:

  . /opt/context/tex/setuptex

in your shell or add
  /opt

[NTG-context] Context and metapost: using \frac

2011-04-26 Thread mat

Hi

I am using context to run a metapost graph. I am however unable to 
insert a label with \frac, since this is not pure Tex but Latex. This 
seems to be a known problem for metapost:
-Seems for metapost only,  one should add %latex 
(http://ryanmlayer.wordpress.com/tag/metapost/).
-I saw also one post where it was mentione done should add 
//\setupMPpage[offset=1pt] 
//(http://www.tug.org/pipermail/pdftex/2001-March/000429.html). I tried, 
but did not work however...


Any idea how I should do? Find below minimal example, that does not work 
on my computer when compiling with context...


Thanks!!

Matthieu

\starttext

\setupMPpage[offset=1pt]

\switchtobodyfont[10pt]

% Beginning MetaPost graphic
\startMPpage

label.top(btex 1.4 etex scaled   1.00, (10, 10));

label.top(btex $\sigma_t$ etex scaled   1.00, (0, 10));

label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled   1.00, 
(1, 1));


\stopMPpage

\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/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] Ideas for restructuring the ConTeXt garden?

2011-04-26 Thread Ian Lawrence
Well, I am a beginner. I have just lost 2 hours trying to do something
which ought to be simple. Perhaps now I have spent 10's of hours
working at my understanding, yet still I have to look up the simplest
essentials, often. And I think knowing what kind of things it is, and
where one might look are necessary lubricants for this process.

I think you probably cannot have too many (documented) examples.
Things which are very obvious to some , are not so obvious to others.

And if too much has to be done by trial and error then everything is
very slow... Very very slow.

For me, there is too much that is cryptic in the Wiki. Often I read
the entry and am no wiser. Each word is well formed, but there is no
mental model emerging. Maybe a wiki is good place for archiving,
curating and exchanging tips, but just not so good for learning from
scratch.

The 'Starting with Context' pdf I find very good, but for later work
all kinds of things are 'bad style', 'deprecated' etc. So maybe a way
in to thinking about what to do is to consider how the newer user
might get a handle on what Context is really for, and why one might
prefer it to manually typesetting documents...

Kind regards

Ian


2011/3/16 Vedran Miletić riva...@gmail.com:
 2011/3/14 Carlos Breton Besnier breton.car...@gmail.com


 2011/3/12 Florian Wobbe florian.wo...@awi.de

 Maybe we should start a discussion in a new thread to find out:

 5) how to better promote context to new/latex users?


 I think is needed a installation guide for non-technical. A guide not only
 for programmers but a simple guide for dummies. Like me, I am no-developer,
 I write law books. Latex installation and update is very simple for
 beginners. On Windows with MiKTeX, everyone can write very soon his first
 document. Not so with ConTeXt, except old stand-alone installation. It's
 cause of frustration and after several attempts they give up. Then they
 return to LaTeX (like me too).

 Well, with TeX Live 2010 it's very simple to use MkII with both pdfTeX and
 XeTeX. Hopefully, some future version of TeX Live (2011?) will offer the
 same for MkIV. Script is already there, it's just not integrated with
 TeXworks in TeX Live yet.

 Regards,

 Vedran Miletić

 ___
 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] Pi, Theta symbols are not rendered

2011-04-25 Thread Mojca Miklavec
On Mon, Apr 25, 2011 at 07:59, Anand Raj wrote:
 Hi,

 The symbols like Pi, Theta are not rendered properly.

What font are you using and just to make sure: do you use pdftex
(texexec) or luatex (context)? Please provide a minimal example. In LM
these symbols are displayed fine in math expressions like $\Pi\Theta$.

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
___


[NTG-context] label bug with latest beta (2011.04.22)

2011-04-23 Thread Reviczky, Adam
Hi

With the latest beta (2011.04.22) I cannot compile my thesis any more.
I think I've narrowed it down to this minimal example:

%%%
\starttext
\startpart[title={Table of Contents}]
\completecontent[criterium=all]
\stoptext
%%%

! LuaTeX error /usr/share/texmf/tex/context/base/strc-lst.lua:496: no string to 
print
stack traceback:
[C]: in function 'texsprint'
/usr/share/texmf/tex/context/base/strc-lst.lua:496: in function 'label'
main ctx instance:1: in main chunk.

Shouldn't be the label function something like this:
function lists.label(n)
local l = lists.result[n]
local t = l.titledata
if t then
texsprint(t.label or 0) -- 0 if no label?
end
end

Can someone confirm this?
It works with the 2011.04.20 beta, logs attached.

Adam
(toc.tex

ConTeXt  ver: 2011.04.22 18:17 MKIV  fmt: 2011.4.23  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   toc.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   toc.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=toc.tex]
system   options  \setupsystem[\c!n=2,\c!m=2]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(toc.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file toc.tex at line 1
structuresectioning  part @ level 1 : 1 - Table of Contents
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
structuresectioning  title @ level 2 : 1.0 - \headtext {content}
! LuaTeX error /usr/share/texmf/tex/context/base/strc-lst.lua:496: no string to print
stack traceback:
	[C]: in function 'texsprint'
	/usr/share/texmf/tex/context/base/strc-lst.lua:496: in function 'label'
	main ctx instance:1: in main chunk.

system   tex  error on line 11 in file toc.tex: LuaTeX error  ...

1 \starttext
2 \startpart[title={Table of Contents}]
3 \completecontent[criterium=all]
4 \stoptext
5 


\listsymbol@default label(\currentlistindex )}
  }\leftlabeltext \currentli...
argument ...!numbercommand {\currentlistsymbol }
  }\hfill 
\domakelistelement ...ndgroup }{#3{#4}}\else #3{#4
  }\fi 
argument ...mmand {\currentlistsymbol }}\hfill }
  }
\firstoftwoarguments #1#2-#1
 
argument ...thc \zeropoint \setbox 2\emptyhbox }
  \setbox 4\hbox {\doif {\li...
...
l.3 \completecontent[criterium=all]
   
? q
OK, entering \batchmode...

pagesflushing realpage 2, userpage 2
system   end file toc.tex at line 4
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats   used config file  - /usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d
mkiv lua stats   input load time   - 0.121 seconds
mkiv lua stats   stored bytecode data  - 284 modules, 58 tables, 342 chunks
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats   node memory usage - 19 glue_spec
mkiv lua stats   node

Re: [NTG-context] Displaying text on a page in several steps

2011-04-19 Thread Cecil Westerhof
Now with the files attached. :-{

2011/4/19 Cecil Westerhof cldwester...@gmail.com:
 Something went wrong and I posted the rest to Hans Hagen instead of to the 
 list.

 I have the attached tex-file which should be correct I think. But it
 goes wrong: see the attached log-file. Anybody an idea what is
 happening?

 --
 Cecil Westerhof




-- 
Cecil Westerhof


test2.tex
Description: TeX document
(test2.tex

ConTeXt  ver: 2011.04.03 22:32 MKIV  fmt: 2011.4.5  int: english/english

system   cont-new.mkiv loaded
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test2.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test2,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test2]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test2.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'pre-61'
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/s-pre-61.tex
resolversmodules  loaded: 'pre-60'
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/s-pre-60.mkiv
fontsbeware: no fonts are loaded yet, using 'lm mono' in box
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/java-imp-stp.mkiv)
interactions javascripts  loaded: library 'stp'
metapost loaded: library 'nav' (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/meta-imp-nav.mkiv)) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-hgz.mkiv (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-ghz.mkiv))
fontspreloading latin modern fonts (math)
{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontsfallback modern mm 18pt is loaded
fontspreloading latin modern fonts (mono)
fontsfallback modern tt 18pt is loaded
fontsdefining  font with asked name 'lt55483' is not found using lookup 'file'
fontsdefining  unknown font lt55483, loading aborted
fontsdefining  unable to define lt55483 as \*mainface18ptsstfss*
fontsvirtual math  unable to resolve name mapsfromchar
fontsdefining  font with asked name 'lt55483' is not found using lookup 'file'
fontsdefining  unknown font lt55483, loading aborted
fontsdefining  unable to define lt55483 as \*mainface18ptsstf*
){/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-px.map}
fontsvirtual math  the mapping is incomplete for 'pxmath' at 9pt
system   begin file test2 at line 5
! Missing number, treated as zero.

system   tex  error on line 17 in file test2.tex: Missing number, treated as zero ...

 7 \StartSteps
 8 
 9 \starttabulate
10 \NC test \FlushStep \NC test \FlushStep \NC \NR
11 \NC test \FlushStep \NC test \FlushStep \NC \NR
12 \NC test \FlushStep \NC test \FlushStep \NC \NR
13 \stoptabulate
14 
15 \StopSteps
16 
17   \stoptext
18 

to be read again 
   o
\@@ambottomoffset -o
 verlay
\scrn_menu_set_used ...uparameter \c!bottomoffset 
  \scrn_menu_asked_width \in...
\scrn_menu_packager -\scrn_menu_set_used 
  \vskip \scrn_menu_next_distance \s...
\scrn_menu_action ...\v!start \scrn_menu_packager 
  \else \ifx \currentinterac...
\@@am:menu:horizontal ...dinteractionmenulocation

Re: [NTG-context] Difference between texexec and context when using indent

2011-04-18 Thread Cecil Westerhof
2011/4/17 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 With the following code:
 \setupindenting[yes,medium,next]

 \starttext

 \input knuth

 \blank

 \input knuth

 \stoptext

 When using texexec (MKII) the paragraph after the \blank is not
 indented. When using context (MKIV) it is. Why this difference?


 And you think it’s better to let \blank behave different dependent
 on the indenting settings?

 % engine=pdftex

 \starttext

 \setupindenting[yes,medium,first]

 \input knuth

 \blank

 \input knuth

 \page

 \setupindenting[yes,medium,next]

 \input knuth

 \blank

 \input knuth

 \stoptext

 To control whether the next paragraph is indented or not should
 better be controlled with by \setupblank and not from \setupindenting.

I did not know that it could be done with \setupblank. I was told that
I needed to define a \myblank for it.

But still I think it would be good that after a blank there is no indentation.
Firstly: that is the way it works in mkii. Why does mkiv do it differently?
Secondly: You use -in my opinion- next, because the first paragraph is
clear that it is a new paragraph. After a bank (or a flowchart) it is
clear that there starts a new paragraph. So it does not need to be
indented in my opinion.

-- 
Cecil Westerhof
___
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] Difference between texexec and context when using indent

2011-04-17 Thread Wolfgang Schuster

Am 15.04.2011 um 14:11 schrieb Cecil Westerhof:

 With the following code:
 \setupindenting[yes,medium,next]
 
 \starttext
 
 \input knuth
 
 \blank
 
 \input knuth
 
 \stoptext
 
 When using texexec (MKII) the paragraph after the \blank is not
 indented. When using context (MKIV) it is. Why this difference?


And you think it’s better to let \blank behave different dependent
on the indenting settings?

% engine=pdftex

\starttext

\setupindenting[yes,medium,first]

\input knuth

\blank

\input knuth

\page

\setupindenting[yes,medium,next]

\input knuth

\blank

\input knuth

\stoptext

To control whether the next paragraph is indented or not should
better be controlled with by \setupblank and not from \setupindenting.

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] bug with \cite in latest beta (2011.04.13)

2011-04-16 Thread Reviczky, Adam
Sadly that didn't help at all (neither on my thesis file nor on the minimal 
example).

I'm attaching the minimal example with the logs.

Adam

PS: I've changed the line 191 and regenerated the formats.


From: Hans Hagen [pra...@wxs.nl]
Sent: 16 April 2011 22:29
To: mailing list for ConTeXt users
Cc: Reviczky, Adam
Subject: Re: [NTG-context] bug with \cite in latest beta (2011.04.13)

On 16-4-2011 8:53, Reviczky, Adam wrote:
 So does anybody have a working example with 2011.04.13 for the cite?

 Using this example gives me a luatex error, and it used to work with earlier 
 beta's:

 % sample.bib: http://wiki.contextgarden.net/sample_bib
 %%%
 \setupbibtex[database={sample},sort=author]
 % apa works, but I don't want apa
 % \setuppublications[alternative=apa]
 % neither num or default doesn't work
 \setuppublications[alternative=num]

 \starttext
 % \cite[][Eijkhout1991] works, but produces not a numbered output
 \cite[Eijkhout1991]
 \placepublications[criterium=all]
 \stoptext
 %%%

 The error I get is:
 ! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to 
 compare number with string
 stack traceback:
   /usr/share/texmf/tex/context/base/bibl-tra.lua:192: in function 
 'resolve'
   main ctx instance:1: in main chunk.

Does changing the line before it helps?

191:if first and last then -- also test on last

must be some weird border case.

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
-
@STRING{hh = {Hans Hagen}}

@ELECTRONIC{hh2010,
  author = hh,
  year = {2010},
  title = {Metafun. \CONTEXT\ mkiv},
  url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
}

@ARTICLE{hh2010a,
  author = hh,
  title = {The Font Name Mess},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {2-8},
  keywords = {context},
}

@ARTICLE{hh2010b,
  author = hh,
  title = {Grouping in Hybrid Environments},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {67-71},
  keywords = {context},
}

@BOOK{Eijkhout1991,
  title = {\TeX\ by Topic. A \TeX nician's Reference},
  publisher = {Addison-Wesley},
  year = {1991},
  author = {Victor Eijkhout},
  address = {London},
  keywords = {general},
}
\setupbibtex[database={sample},sort=author]
% \setuppublications[alternative=num]

\starttext
\cite[Eijkhout1991]
\placepublications[criterium=all]
\stoptext
(test.tex

ConTeXt  ver: 2011.04.13 09:23 MKIV  fmt: 2011.4.16  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
publications wrote a new auxiliary file \jobname.aux
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file test.tex at line 4
! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string
stack

Re: [NTG-context] Using forms and saving values

2011-04-05 Thread Peter Rolf
Am 05.04.2011 03:19, schrieb Cecil Westerhof:
 2011/4/4 Wolfgang Schuster schuster.wolfg...@googlemail.com
 mailto:schuster.wolfg...@googlemail.com
 
 http://www.pragma-ade.com/show-man-22.htm
 
 
 I tried the first example from fill-in fields:
 \starttext
 
 A few years back, \TEX\ could only produce
 \fillinfield [dvi]{\DVI} output,
 but nowadays, thanks to \fillinfield {Han The Thanh}, we can also
 directly produce \fillinfield [pdf] {\PDF}!
 Nice eh? Actually, while the first field module was prototyped
 in \ACROBAT, the current implementation was debugged in
 \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
 [ConTeXt] {\CONTEXT} is rather advanced and complete and all
 kind of fields are supported. One can hook in appearances, and
 validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
 can be cloned and copied, where the latter saves some space. By
 using \fillinfield {objects} when suited, this module saves
 space anyway.
 
 \stoptext
 
 But I get:
 mtx-context | run 1: luatex
 --fmt=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
 --lua=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
 --backend=pdf ./test
 This is LuaTeX, Version beta-0.65.0-2010121316
  \write18 enabled.
 (test.tex
 
 ConTeXt  ver: 2011.03.27 14:48 MKIV  fmt: 2011.3.27  int: english/english
 
 system   cont-new.mkiv loaded
 (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
 system   beware: some patches loaded from cont-new.mkiv
 )
 system   test.top loaded
 (test.top)
 fontslatin modern fonts are not preloaded
 languageslanguage en is active
 {/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
 fontspreloading latin modern fonts (second stage)
 (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)
 (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
 fontsvirtual math  unable to resolve name mapsfromchar
 fontsfallback modern rm 12pt is loaded
 system   begin file test at line 1
 ! Undefined control sequence.
 
 system   tex  error on line 4 in file test.tex: Undefined
 control sequence ...


\def\DVI{DVI}
\def\PDF{PDF}
\def\ACROBAT{Acrobat}
\def\JAVASCRIPT{Javascript}


  1 \starttext
  2
  3 A few years back, \TEX\ could only produce
  4   \fillinfield [dvi]{\DVI} output,
  5 but nowadays, thanks to \fillinfield {Han The Thanh}, we can also
 directly produce \fillinfield [pdf] {\PDF}!
  6 Nice eh? Actually, while the first field module was prototyped
  7 in \ACROBAT, the current implementation was debugged in
  8 \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
  9 [ConTeXt] {\CONTEXT} is rather advanced and complete and all
 10 kind of fields are supported. One can hook in appearances, and
 11 validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
 12 can be cloned and copied, where the latter saves some space. By
 13 using \fillinfield {objects} when suited, this module saves
 14 space anyway.
 
 l.4 \fillinfield
  [dvi]{\DVI} output,
 
 What is happening here?
 
I guess Hans has removed some obsolete definitions :-)

Best wishes,  Peter

 -- 
 Cecil Westerhof
 
 
 
 ___
 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 forms and saving values

2011-04-05 Thread Cecil Westerhof
2011/4/5 Peter Rolf indi...@gmx.net

  \starttext
 
  A few years back, \TEX\ could only produce
  \fillinfield [dvi]{\DVI} output,
  but nowadays, thanks to \fillinfield {Han The Thanh}, we can also
  directly produce \fillinfield [pdf] {\PDF}!
  Nice eh? Actually, while the first field module was prototyped
  in \ACROBAT, the current implementation was debugged in
  \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
  [ConTeXt] {\CONTEXT} is rather advanced and complete and all
  kind of fields are supported. One can hook in appearances, and
  validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
  can be cloned and copied, where the latter saves some space. By
  using \fillinfield {objects} when suited, this module saves
  space anyway.
 
  \stoptext
 
  But I get:
  mtx-context | run 1: luatex
 
 --fmt=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
 
 --lua=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
  --backend=pdf ./test
  This is LuaTeX, Version beta-0.65.0-2010121316
   \write18 enabled.
  (test.tex
 
  ConTeXt  ver: 2011.03.27 14:48 MKIV  fmt: 2011.3.27  int: english/english
 
  system   cont-new.mkiv loaded
  (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
  system   beware: some patches loaded from cont-new.mkiv
  )
  system   test.top loaded
  (test.top)
  fontslatin modern fonts are not preloaded
  languageslanguage en is active
 
 {/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
  fontspreloading latin modern fonts (second stage)
  (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)
 
 (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
  fontsvirtual math  unable to resolve name mapsfromchar
  fontsfallback modern rm 12pt is loaded
  system   begin file test at line 1
  ! Undefined control sequence.
 
  system   tex  error on line 4 in file test.tex: Undefined
  control sequence ...
 

  I tried the first example from fill-in fields:
 \def\DVI{DVI}
 \def\PDF{PDF}
 \def\ACROBAT{Acrobat}
 \def\JAVASCRIPT{Javascript}


   1 \starttext
   2
   3 A few years back, \TEX\ could only produce
   4   \fillinfield [dvi]{\DVI} output,
   5 but nowadays, thanks to \fillinfield {Han The Thanh}, we can also
  directly produce \fillinfield [pdf] {\PDF}!
   6 Nice eh? Actually, while the first field module was prototyped
   7 in \ACROBAT, the current implementation was debugged in
   8 \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
   9 [ConTeXt] {\CONTEXT} is rather advanced and complete and all
  10 kind of fields are supported. One can hook in appearances, and
  11 validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
  12 can be cloned and copied, where the latter saves some space. By
  13 using \fillinfield {objects} when suited, this module saves
  14 space anyway.
 
  l.4 \fillinfield
   [dvi]{\DVI} output,
 
  What is happening here?
 
 I guess Hans has removed some obsolete definitions :-)


Does not make a difference. I have the same problem.

-- 
Cecil Westerhof
___
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 forms and saving values

2011-04-05 Thread Peter Rolf
Am 05.04.2011 12:31, schrieb Cecil Westerhof:
 2011/4/5 Peter Rolf indi...@gmx.net mailto:indi...@gmx.net
 
  \starttext
 
  A few years back, \TEX\ could only produce
  \fillinfield [dvi]{\DVI} output,
  but nowadays, thanks to \fillinfield {Han The Thanh}, we can also
  directly produce \fillinfield [pdf] {\PDF}!
  Nice eh? Actually, while the first field module was prototyped
  in \ACROBAT, the current implementation was debugged in
  \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
  [ConTeXt] {\CONTEXT} is rather advanced and complete and all
  kind of fields are supported. One can hook in appearances, and
  validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
  can be cloned and copied, where the latter saves some space. By
  using \fillinfield {objects} when suited, this module saves
  space anyway.
 
  \stoptext
 
  But I get:
  mtx-context | run 1: luatex
 
 
 --fmt=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
 
 
 --lua=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
  --backend=pdf ./test
  This is LuaTeX, Version beta-0.65.0-2010121316
   \write18 enabled.
  (test.tex
 
  ConTeXt  ver: 2011.03.27 14:48 MKIV  fmt: 2011.3.27  int:
 english/english
 
  system   cont-new.mkiv loaded
  (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
  system   beware: some patches loaded from cont-new.mkiv
  )
  system   test.top loaded
  (test.top)
  fontslatin modern fonts are not preloaded
  languageslanguage en is active
 
 
 {/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
  fontspreloading latin modern fonts (second stage)
  (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)
 
 
 (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
  fontsvirtual math  unable to resolve name mapsfromchar
  fontsfallback modern rm 12pt is loaded
  system   begin file test at line 1
  ! Undefined control sequence.
 
  system   tex  error on line 4 in file test.tex: Undefined
  control sequence ...
 
 
  I tried the first example from fill-in fields:
 \def\DVI{DVI}
 \def\PDF{PDF}
 \def\ACROBAT{Acrobat}
 \def\JAVASCRIPT{Javascript}
 
 
   1 \starttext
   2
   3 A few years back, \TEX\ could only produce
   4   \fillinfield [dvi]{\DVI} output,
   5 but nowadays, thanks to \fillinfield {Han The Thanh}, we
 can also
  directly produce \fillinfield [pdf] {\PDF}!
   6 Nice eh? Actually, while the first field module was prototyped
   7 in \ACROBAT, the current implementation was debugged in
   8 \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
   9 [ConTeXt] {\CONTEXT} is rather advanced and complete and all
  10 kind of fields are supported. One can hook in appearances, and
  11 validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
  12 can be cloned and copied, where the latter saves some space. By
  13 using \fillinfield {objects} when suited, this module saves
  14 space anyway.
 
  l.4 \fillinfield
   [dvi]{\DVI} output,
 
  What is happening here?
 
 I guess Hans has removed some obsolete definitions :-)
 
 
 Does not make a difference. I have the same problem.

strange. the error here is caused by the undefined '\DVI' macro
(outdated context from 26.01.2011). loading the right module (preferred)
or using a separate definition should solve this.

is your fault caused by an undefined '\fillinfield' then?
you can test it by replacing the '\DVI' macro with the text 'DVI'.


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

Re: [NTG-context] Using forms and saving values

2011-04-04 Thread Cecil Westerhof
2011/4/4 Wolfgang Schuster schuster.wolfg...@googlemail.com

 http://www.pragma-ade.com/show-man-22.htm


I tried the first example from fill-in fields:
\starttext

A few years back, \TEX\ could only produce
\fillinfield [dvi]{\DVI} output,
but nowadays, thanks to \fillinfield {Han The Thanh}, we can also directly
produce \fillinfield [pdf] {\PDF}!
Nice eh? Actually, while the first field module was prototyped
in \ACROBAT, the current implementation was debugged in
\fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
[ConTeXt] {\CONTEXT} is rather advanced and complete and all
kind of fields are supported. One can hook in appearances, and
validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
can be cloned and copied, where the latter saves some space. By
using \fillinfield {objects} when suited, this module saves
space anyway.

\stoptext

But I get:
mtx-context | run 1: luatex
--fmt=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
--lua=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
--backend=pdf ./test
This is LuaTeX, Version beta-0.65.0-2010121316
 \write18 enabled.
(test.tex

ConTeXt  ver: 2011.03.27 14:48 MKIV  fmt: 2011.3.27  int: english/english

system   cont-new.mkiv loaded
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file test at line 1
! Undefined control sequence.

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

 1 \starttext
 2
 3 A few years back, \TEX\ could only produce
 4   \fillinfield [dvi]{\DVI} output,
 5 but nowadays, thanks to \fillinfield {Han The Thanh}, we can also
directly produce \fillinfield [pdf] {\PDF}!
 6 Nice eh? Actually, while the first field module was prototyped
 7 in \ACROBAT, the current implementation was debugged in
 8 \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
 9 [ConTeXt] {\CONTEXT} is rather advanced and complete and all
10 kind of fields are supported. One can hook in appearances, and
11 validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
12 can be cloned and copied, where the latter saves some space. By
13 using \fillinfield {objects} when suited, this module saves
14 space anyway.

l.4 \fillinfield
 [dvi]{\DVI} output,

What is happening here?

-- 
Cecil Westerhof
___
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] beta (broken?)

2011-03-25 Thread Reviczky, Adam
I'm getting this since today morning:

mtx-context | run 1: luatex 
--fmt=/home/08/reviczky/local32/texlive/experimental/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
 
--lua=/home/08/reviczky/local32/texlive/experimental/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
 --backend=pdf ./test.tex
This is LuaTeX, Version beta-0.65.0-2010121316 
 \write18 enabled.
(test.tex

ConTeXt  ver: 2011.03.25 18:03 MKIV  fmt: 2011.3.25  int: english/english

system   cont-new.mkiv loaded
(/home/08/reviczky/local32/texlive/experimental/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/home/08/reviczky/local32/texlive/experimental/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/home/08/reviczky/local32/texlive/experimental/tex/texmf-context/tex/context/base/type-siz.mkiv)
 
(/home/08/reviczky/local32/texlive/experimental/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/08/reviczky/local32/texlive/experimental/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/08/reviczky/local32/texlive/experimental/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsotf loading  loading: 
/home/08/reviczky/local32/texlive/experimental/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
 (hash: lmroman12-regular)
fontsotf loading  font loaded okay
fontsotf loading  file size: 110400
fontsencoding  loading (extended) adobe glyph list
fatal error: this module is not for context
system  | total runtime: 0.878
___
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] Feature request: setuppapersize

2011-03-21 Thread Otared Kavian
Hi Aditya,Testing your minimal example:\setuppapersize[A5]\showframe\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextit seems that I do get an A5 papersize (ConTeXt version2011.02.25 22:03, andLuaTeX, Version beta-0.65.0-2010121316). I attach the PDF file for your information (since I don't know how to get pdfinfo…).Best regards: OK

test-A5.pdf
Description: Adobe PDF document
On 19 mars 2011, at 18:59, Aditya Mahajan wrote:[…]I don't know if something changed, but this has stoopped working.\setuppapersize[A5]\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextWith MkII I get$pdfinfo page-test.pdfTitle: page-testSubject:Keywords:Author:Creator: ConTeXt - 2011.02.25 22:03Producer: pdfTeX-1.40.11CreationDate: Sat Mar 19 13:50:49 2011ModDate: ConTeXt - 2011.02.25 22:03Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 33436 bytesOptimized: noPDF version: 1.5With MkIV:$pdfinfo page-test.pdf Title: page-testCreator: ConTeXt - 2011.02.25 22:03Producer: LuaTeX-0.65.0CreationDate: Sat Mar 19 13:53:29 2011ModDate: Sat Mar 19 13:53:29 2011Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 16057 bytesOptimized: noPDF version: 1.6Notice that the page size is still A4! Any idea why this is happening?(I get the right paper size with letter, A0, A1, A2, A3, but wrong paper sizes with anything smaller than A4).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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : 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] Feature request: setuppapersize

2011-03-20 Thread C.
Did you try \setuppapersize[A5][A5] ?
According to http://wiki.contextgarden.net/Reference/en/setuppapersize
second argument (the print paper size) is A4 by default.


 -Ursprüngliche Nachricht-
 Von: Aditya Mahajan [mailto:adit...@umich.edu]
 Gesendet: Samstag, 19. März 2011 18:59
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Feature request: setuppapersize
 
 On Mon, 10 Jan 2011, Aditya Mahajan wrote:
 
  On Mon, 10 Jan 2011, Hans Hagen wrote:
 
  more elegant and downward compatible is this:
 
  \definepapersize
   [samesized]
   [ \c!width=\paperwidth,
\c!height=\paperheight]
 
  \setuppapersize
   [A4][samesized]
 
  in page-lay.mkiv
 
  Indeed. This will also work fine.
 
 I don't know if something changed, but this has stoopped working.
 
 \setuppapersize[A5]
 \starttext
 \dorecurse{10}{\input knuth \endgraf}
 \stoptext
 
 With MkII I get
 
 $pdfinfo page-test.pdf
 Title:  page-test
 Subject:
 Keywords:
 Author:
 Creator:ConTeXt - 2011.02.25 22:03
 Producer:   pdfTeX-1.40.11
 CreationDate:   Sat Mar 19 13:50:49 2011
 ModDate:ConTeXt - 2011.02.25 22:03
 Tagged: no
 Pages:  5
 Encrypted:  no
 Page size:  595.276 x 841.89 pts (A4)
 File size:  33436 bytes
 Optimized:  no
 PDF version:1.5
 
 With MkIV:
 
 $pdfinfo page-test.pdf
 Title:  page-test
 Creator:ConTeXt - 2011.02.25 22:03
 Producer:   LuaTeX-0.65.0
 CreationDate:   Sat Mar 19 13:53:29 2011
 ModDate:Sat Mar 19 13:53:29 2011
 Tagged: no
 Pages:  5
 Encrypted:  no
 Page size:  595.276 x 841.89 pts (A4)
 File size:  16057 bytes
 Optimized:  no
 PDF version:1.6
 
 Notice that the page size is still A4! Any idea why this is happening?
 (I get the right paper size with letter, A0, A1, A2, A3, but wrong paper
sizes
 with anything smaller than A4).
 
 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] Feature request: setuppapersize

2011-03-19 Thread Aditya Mahajan

On Mon, 10 Jan 2011, Aditya Mahajan wrote:


On Mon, 10 Jan 2011, Hans Hagen wrote:


more elegant and downward compatible is this:

\definepapersize
 [samesized]
 [ \c!width=\paperwidth,
  \c!height=\paperheight]

\setuppapersize
 [A4][samesized]

in page-lay.mkiv


Indeed. This will also work fine.


I don't know if something changed, but this has stoopped working.

\setuppapersize[A5]
\starttext
\dorecurse{10}{\input knuth \endgraf}
\stoptext

With MkII I get

$pdfinfo page-test.pdf
Title:  page-test
Subject:
Keywords:
Author:
Creator:ConTeXt - 2011.02.25 22:03
Producer:   pdfTeX-1.40.11
CreationDate:   Sat Mar 19 13:50:49 2011
ModDate:ConTeXt - 2011.02.25 22:03
Tagged: no
Pages:  5
Encrypted:  no
Page size:  595.276 x 841.89 pts (A4)
File size:  33436 bytes
Optimized:  no
PDF version:1.5

With MkIV:

$pdfinfo page-test.pdf 
Title:  page-test

Creator:ConTeXt - 2011.02.25 22:03
Producer:   LuaTeX-0.65.0
CreationDate:   Sat Mar 19 13:53:29 2011
ModDate:Sat Mar 19 13:53:29 2011
Tagged: no
Pages:  5
Encrypted:  no
Page size:  595.276 x 841.89 pts (A4)
File size:  16057 bytes
Optimized:  no
PDF version:1.6

Notice that the page size is still A4! Any idea why this is happening?
(I get the right paper size with letter, A0, A1, A2, A3, but wrong paper 
sizes with anything smaller than A4).


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] 620 pages limit?

2011-03-18 Thread Hans Hagen

On 17-3-2011 7:28, Vnpenguin wrote:

On Wed, Mar 16, 2011 at 17:54, Hans Hagenpra...@wxs.nl  wrote:

On 14-3-2011 10:35, Wolfgang Schuster wrote:


Am 14.03.2011 um 18:02 schrieb luigi scarso:


\starttext
\dorecurse{5000} {\input knuth \page }
\stoptext


A little bit faster but with the same error message:

\count0=0
\loop\ifnum\count05000
   \advance\count0 by 1
   \shipout\vbox{}
\repeat
\end


\starttext
   \dorecurse{1} {test: \recurselevel\page}
\stoptext

pdftex + mkii : 35 sec
xetex  + mkii : 35 sec
luatex + mkiv : 40 sec

no crashes.



No sense when you say no crashes without show us the version of your
luatex (I don't care pdftex/xetex).


0.66 rev 4073

(already out for a while)

-
  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] 620 pages limit?

2011-03-17 Thread Vnpenguin
On Wed, Mar 16, 2011 at 17:54, Hans Hagen pra...@wxs.nl wrote:
 On 14-3-2011 10:35, Wolfgang Schuster wrote:

 Am 14.03.2011 um 18:02 schrieb luigi scarso:

 \starttext
 \dorecurse{5000} {\input knuth \page }
 \stoptext

 A little bit faster but with the same error message:

 \count0=0
 \loop\ifnum\count05000
   \advance\count0 by 1
   \shipout\vbox{}
 \repeat
 \end

 \starttext
   \dorecurse{1} {test: \recurselevel\page}
 \stoptext

 pdftex + mkii : 35 sec
 xetex  + mkii : 35 sec
 luatex + mkiv : 40 sec

 no crashes.


No sense when you say no crashes without show us the version of your
luatex (I don't care pdftex/xetex).
___
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] Ideas for restructuring the ConTeXt garden?

2011-03-16 Thread Vedran Miletić
2011/3/14 Carlos Breton Besnier breton.car...@gmail.com



 2011/3/12 Florian Wobbe florian.wo...@awi.de

  Maybe we should start a discussion in a new thread to find out:

 5) how to better promote context to new/latex users?


 I think is needed a installation guide for non-technical. A guide not only
 for programmers but a simple guide for dummies. Like me, I am no-developer,
 I write law books. Latex installation and update is very simple for
 beginners. On Windows with MiKTeX, everyone can write very soon his first
 document. Not so with ConTeXt, except old stand-alone installation. It's
 cause of frustration and after several attempts they give up. Then they
 return to LaTeX (like me too).


Well, with TeX Live 2010 it's very simple to use MkII with both pdfTeX and
XeTeX. Hopefully, some future version of TeX Live (2011?) will offer the
same for MkIV. Script is already there, it's just not integrated with
TeXworks in TeX Live yet.

Regards,

Vedran Miletić
___
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] (RSFS) font installation

2011-03-16 Thread Stefan Müller

Hi,

like others before, I tried to get the script alphabet from Ralph 
Smith's Formal Font to work in MkIV (minimals) and failed. There seems 
to be only outdated or unclear and unspecific information about where to 
start with fonts available. Or: there is information everywhere but I 
can't put it together.


I downloaded a rsfs.zip from [1] containing .mf, .pfb, .afm, .pfm files 
and a .map file. It seems to be a type1 font.


The manual [2] states, that a script texfont.pl can do install the font. 
Mojca said [3] on the mailing list that texfont is not the way to go, so 
I didn't try to go further in that direction.


Do I need .tfm files? If so, how to get them?

I put the rsfs directory with its subdirs from the .zip to the folder
c:\context\tex\texmf-fonts\fonts\data\ as Wolfgang suggested [4] and ran 
context --generate. I seems as if this did not install the font, but I 
have no idea. How can I check this?


\definefont[rsfs][file:rsfs*default]
\starttext
\rsfs ABCDEFGHIJKLMNOPQRSTUVWXYZ
\stoptext

just gave me the alphabet in default font. Is there a way to ask ConTeXt 
which fonts (or does ConTeXt know typescripts?) it knows?


In addition, I tried the example from Hans and Otared at [5] which 
crashes on my installation (error log appended at the end).


I don't know how to proceed here. Hopefully someone from this list can 
assist me. Thanks in advance.


Kind regards,
Stefan


[1] http://www.ctan.org/tex-archive/fonts/rsfs/
[2] http://pmrb.free.fr/contextref.pdf
[3] 
http://archive.contextgarden.net/message/20101213.120015.795450f2.en.html
[4] 
http://archive.contextgarden.net/message/20101214.102347.a6a2216f.en.html
[5] 
http://archive.contextgarden.net/message/20100414.122529.bc3ba584.en.html




mtx-context | warning: syntex is enabled
mtx-context | run 1: luatex --synctex=1 
--fmt=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en 
--lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui 
--backend=pdf ./rsfs_test.tex

This is LuaTeX, Version beta-0.66.0-2011021923 (rev 4086)
 \write18 enabled.
(rsfs_test.tex

ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.3.16  int: english/english

system   cont-new.mkiv loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   rsfs_test.top loaded
(rsfs_test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
(C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv){C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}

system   begin file rsfs_test.tex at line 41
backend  xmp  using file 
'C:/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'

pagesflushing realpage 1, userpage 1, subpage 1
system   end file rsfs_test.tex at line 57

){C:/context/tex/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}{C:/context/tex/texmf/fonts/enc/dvips/lm/lm-mathit.enc}C:/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otfC:/context/tex/texmf-fonts/fonts/data/rsfs/type1/rsfs10.pfbType1: 
Could not understand Type1 font: 
C:/context/tex/texmf-fonts/fonts/data/rsfs/type1/rsfs10.pfb

mtx-context | fatal error: return code: 1
___
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] 620 pages limit?

2011-03-16 Thread Hans Hagen

On 14-3-2011 10:35, Wolfgang Schuster wrote:


Am 14.03.2011 um 18:02 schrieb luigi scarso:


\starttext
\dorecurse{5000} {\input knuth \page }
\stoptext


A little bit faster but with the same error message:

\count0=0
\loop\ifnum\count05000
   \advance\count0 by 1
   \shipout\vbox{}
\repeat
\end


\starttext
   \dorecurse{1} {test: \recurselevel\page}
\stoptext

pdftex + mkii : 35 sec
xetex  + mkii : 35 sec
luatex + mkiv : 40 sec

no crashes.

-
  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] Difference between MKII, XeTeX and MKIV

2011-03-14 Thread Marco
On 2011-03-14 Cecil Westerhof cldwester...@gmail.com wrote:

 When installing minimals you have MKII, XeTeX and MKIV. I understand that
 you should normally use MKIV, but when are the other two used?

MKII can be used either with pdftex or xetex (as you wish, compare
advantages/disadvantages). MKIV can only be used with luatex.

You have to differ between ConTeXt »versions« (mkii, mkiv) and TeX backends
(pdftex, xetex, luatex).


Marco


___
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] Difference between MKII, XeTeX and MKIV

2011-03-14 Thread Cecil Westerhof
2011/3/14 Marco net...@lavabit.com

 On 2011-03-14 Cecil Westerhof cldwester...@gmail.com wrote:

  When installing minimals you have MKII, XeTeX and MKIV. I understand that
  you should normally use MKIV, but when are the other two used?

 MKII can be used either with pdftex or xetex (as you wish, compare
 advantages/disadvantages). MKIV can only be used with luatex.

 You have to differ between ConTeXt »versions« (mkii, mkiv) and TeX backends
 (pdftex, xetex, luatex).


And where do I find the advantages/disadvantages? Or can I just always use
MKIV?

-- 
Cecil Westerhof
___
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] Difference between MKII, XeTeX and MKIV

2011-03-14 Thread Marco
On 2011-03-14 Cecil Westerhof cldwester...@gmail.com wrote:

 2011/3/14 Marco net...@lavabit.com
 
  On 2011-03-14 Cecil Westerhof cldwester...@gmail.com wrote:
 
   When installing minimals you have MKII, XeTeX and MKIV. I understand
   that you should normally use MKIV, but when are the other two used?
 
  MKII can be used either with pdftex or xetex (as you wish, compare
  advantages/disadvantages). MKIV can only be used with luatex.
 
  You have to differ between ConTeXt »versions« (mkii, mkiv) and TeX
  backends (pdftex, xetex, luatex).
 
 
 And where do I find the advantages/disadvantages?

Wikipedia, google, information source of your slightest distrust.
Short and incomplete:

pdftex:
+ protrusion, font expansion
- fonts are a nightmare

xetex:
+ system fonts are easily accessible
- no protrusion, no font expansion

luatex:
+ protrusion, font expansion, easy access of system fonts, scripting language
  included, fast with mplib
- in general much slower


 Or can I just always use MKIV?

Yes, you can.


Marco


___
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] Difference between MKII, XeTeX and MKIV

2011-03-14 Thread Hans Hagen

On 14-3-2011 7:26, Cecil Westerhof wrote:

2011/3/14 Marconet...@lavabit.com


On 2011-03-14 Cecil Westerhofcldwester...@gmail.com  wrote:


When installing minimals you have MKII, XeTeX and MKIV. I understand that
you should normally use MKIV, but when are the other two used?


MKII can be used either with pdftex or xetex (as you wish, compare
advantages/disadvantages). MKIV can only be used with luatex.

You have to differ between ConTeXt »versions« (mkii, mkiv) and TeX backends
(pdftex, xetex, luatex).



And where do I find the advantages/disadvantages? Or can I just always use
MKIV?


As already mentioned speed depends on the kind of document. In general 
context runs slower with xetex and luatex if only because these are 
unicode engines while pdftex is 8 bit.


Occasionally i do speed tests and it also depends on the operating 
system, file caching etc. For luatex the size of the cpu cache also 
matters. Although pdftex/mkiv is always faster unless on eused metapoist 
in which case mkiv is a clear winner (the metafun manual runs in tens of 
seconds in mkiv but takes many minutes in mkii.  Comparing xetex/mkii 
and luatex/mkiv is difficult as xetex also pipes its output to a dvi 
backend. On some tests mkiv is faster, on some others mkii but I must 
admit that i only tested simple document.


On a raw simple document, pdftex can be twice as fast as xetex or 
luatex. The more lua driven features are used, the slower mkiv becomes 
but in general it does a better job then.


Anyhow .. only luatex/mkiv will evolve so best stick to that.

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] Difference between MKII, XeTeX and MKIV

2011-03-14 Thread Mojca Miklavec
On Mon, Mar 14, 2011 at 19:44, Marco wrote:
 On 2011-03-14 Cecil Westerhof wrote:
 2011/3/14 Marco wrote:
  On 2011-03-14 Cecil Westerhof wrote:
 
   When installing minimals you have MKII, XeTeX and MKIV. I understand
   that you should normally use MKIV, but when are the other two used?

They are mostly relicts of the past which still happen to be
supported. (But if ConTeXt was written from scratch, there would
probably be no support for them.)


I often write mathematical-oriented papers that need zero tweaking
with OpenType fonts, complex layouts or that could benefit from lua
scripting. I compile those randomly with MKII and MKIV, if nothing
else to check for differences, or if there is a problem in MKIV, I can
always use MKII is a fallback. MKII hardly ever changes, so it is
slightly more reliable in some cases, but it is very limited in
comparison to MKIV.

I use XeTeX mostly when I need OpenType fonts and something in MKIV
breaks. XeTeX has some advantages in out-of-the-box support for exotic
scripts (which I don't use), but many of its features are not
supported in ConTeXt at the high-level user interface. In general,
XeTeX is the least supported engine in ConTeXt community. In contrary,
for LaTeX users XeTeX is becoming the mainstream engine to use (best
supported by active developers).

  MKII can be used either with pdftex or xetex (as you wish, compare
  advantages/disadvantages). MKIV can only be used with luatex.
 
  You have to differ between ConTeXt »versions« (mkii, mkiv) and TeX
  backends (pdftex, xetex, luatex).
 

 And where do I find the advantages/disadvantages?

 Wikipedia, google, information source of your slightest distrust.
 Short and incomplete:

 pdftex:
 + protrusion, font expansion
 - fonts are a nightmare
(you should have put three minuses there :)
+ stability

 xetex:
 + system fonts are easily accessible
 - no protrusion, no font expansion

I never tried to use them, but I thought that Han The Thanh [please
add the accents] added that to XeTeX semi-recently
(http://scripts.sil.org/svn-view/xetex/TRUNK/, the last comment 8
months ago: merged microtype branch to trunk).

 luatex:
 + protrusion, font expansion, easy access of system fonts, scripting language
  included, fast with mplib
 - in general much slower

... depending on whether in general includes metapost or not. A
speed factor of ten (faster) is nothing unusual for luatex when many
metapost graphics come into play.

++ better support

 Or can I just always use MKIV?

 Yes, you can.

Definitely. You don't need to bother, just stick to MKIV as long as it
works fine for you.

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
___


[NTG-context] Simplefonts

2011-03-11 Thread Charles Doherty
Dear Wolfgang,

I sent an e-mail about problems with my simplefonts. I got no reply since my 
example had fonts that were probably not available to you. But the problem does 
not relate to the Gaelic fonts that I had been using. I am sending this file 
instead. The fonts below can be swapped about. The main font is always typeset 
as requested but the others are not. Am I doing something really silly? The 
readout from the console is below. I am using Context Minimals MarkIV on a Mac. 
Help would be appreciated.

Thanks,
Charlie 

  \usemodule[simplefonts] % load the module
  \setmainfont[TeX Gyre Adventor]


\starttext

Hello World

\blank[big]

\simplefont[TeX Gyre Heros]


\blank[big]

\simplefont[Zapfino]
Hello World


\stoptext

The argument /Users/charlesdoherty/Documents/TestFolder/Untitled.tex is not a 
valid TEXROOT path.
(There is no file 
/Users/charlesdoherty/Documents/TestFolder/Untitled.tex/texmf/tex/plain/base/plain.tex)

mtx-context | run 1: luatex 
--fmt=/Users/charlesdoherty/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
 
--lua=/Users/charlesdoherty/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
 --backend=pdf ./Untitled.tex
This is LuaTeX, Version beta-0.65.0-2010121316 
 \write18 enabled.
(Untitled.tex

ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.3.8  int: english/english

system   cont-new.mkiv loaded
(/Users/charlesdoherty/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   Untitled.top loaded
(Untitled.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'simplefonts'
(/Users/charlesdoherty/context/tex/texmf-context/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+ 
/Users/charlesdoherty/context/tex/texmf-context/tex/context/third/simplefonts/t-simplefonts.lua)
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
fontsnames  font database has matching configuration and file 
hashes
(/Users/charlesdoherty/context/tex/texmf-context/tex/context/base/type-siz.mkiv)
 
(/Users/charlesdoherty/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/Users/charlesdoherty/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/charlesdoherty/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Users/charlesdoherty/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
system   begin file Untitled.tex at line 5
backend  xmp  using file 
'/Users/charlesdoherty/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file Untitled.tex

Re: [NTG-context] font name has a space.

2011-03-07 Thread Jeong Dalyoung
Dear Wolfgang,

Yes, as you said, it is working.

The current result of mtxrun is as following:

Math-iMac:~ graph$ mtxrun --script font --list --all --pattern=georgia*

georgia georgia /Library/Fonts/Georgia.ttf
georgiabold georgiabold /Library/Fonts/Georgia Bold.ttf
georgiabolditalic   georgiabolditalic   /Library/Fonts/Georgia Bold Italic.ttf
georgiaitalic   georgiaitalic   /Library/Fonts/Georgia Italic.ttf
georgianormal   georgiaitalic   /Library/Fonts/Georgia Italic.ttf

I tested another english fonts whose name containing space by removing the 
space in the name when I call it.
English fonts are working well.

But the same file with the korean font is not working.
As in the following log file, it loaded the fonts, but issue an error message.

###
ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.3.1  int: english/english

system   cont-new.mkiv loaded
(/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   testmp.top loaded
(testmp.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
fontsbeware: no fonts are loaded yet, using 'lm mono' in box
(/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/page-run.mkiv
loading  ConTeXt Page Macros / Runtime Macros
){/Users/graph/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/Users/graph/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/graph/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
system   begin file testmp.tex at line 29
fontsotf loading  loading: /Users/graph/Library/Fonts/smHeadT 
Medium.otf (hash: smheadt-medium)
fontsotf loading  font loaded okay
fontsotf loading  loading method: table
fontsotf loading  file size: 1968816
fontsotf loading  start enhancing: 
/Users/graph/Library/Fonts/smHeadT Medium.otf
fontsotf loading  warning: non unicode map '', only using glyph 
unicode data
fontsencoding  loading (extended) adobe glyph list
fontsotf loading  stop enhancing
fontsotf loading  saving in cache: 
/Users/graph/Library/Fonts/smHeadT Medium.otf
system   logs  lua: compiling 
/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/smheadt-medium.tma
 into 
/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/smheadt-medium.tmc
fontsotf loading  preprocessing and caching took 0.578 seconds
structuresectioning  chapter @ level 2 : 0.1 - X
structuresectioning  section @ level 3 : 0.1.1 - One
backend  xmp  using file 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
pagesflushing realpage 2, userpage 2
system   end file testmp.tex at line 36
 )/Users/graph/Library/Fonts/smHeadT Medium.otf
!LuaTeX error (file /Users/graph/Library/Fonts/smHeadT Medium.otf): Invalid 
character.
 == Fatal error occurred, no output PDF file produced!
###

I think that it is the only problem in Korean fonts whose name contaings a 
space.

Thank you for your concern.

Best regards,

Dalyoung
___
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] special character in filename

2011-03-05 Thread Reviczky, Adam
Hi

Context fails to run with an input (filename or directoryname) that includes 
special characters.

example files:
%%%
reviczky@arlequin ~/minimal % la
total 0
drwxrwxr-x 1 reviczky reviczky   60 2011-03-05 19:58 ./
drwxr-xr-x 1 reviczky reviczky 2148 2011-03-05 20:00 ../
drwxrwxr-x 1 reviczky reviczky   40 2011-03-05 19:59 dir~1/
drwxrwxr-x 1 reviczky reviczky   40 2011-03-05 19:59 dir+2/
-rw-rw-r-- 1 reviczky reviczky   34 2011-03-05 19:58 test~1.tex
-rw-rw-r-- 1 reviczky reviczky   34 2011-03-05 19:58 test+2.tex
%%%

fails to run for test~1.tex, output:
%%%
context test\~1.tex

mtx-context | run 1: luatex 
--fmt=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf ./test~1.tex
This is LuaTeX, Version beta-0.66.0-2011030112 (rev 4090) 
 \write18 enabled.
! I can't find file `./test'.
to be read again 
   \penalty 
\CCC:9:126 -\penalty 
  \plustenthousand \normalspaceprimitive 
* ./test~
   1.tex
Please type another input file name: 
%%%

but giving the filename again it runs:
%%%
...
Please type another input file name: test~1.tex
(test~1.tex

ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.3.1  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test~1.top loaded
(test~1.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) 
(/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
system   begin file test~1.tex at line 1
backend  xmp  using file 
'/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file test~1.tex at line 3
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats   used config file  - 
/usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - 
/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d
mkiv lua stats   input load time   - 0.130 seconds
mkiv lua stats   stored bytecode data  - 275 modules, 56 tables, 331 chunks
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 411
mkiv lua stats   node memory usage - 19 glue_spec
mkiv lua stats   node list callback tasks  - 6 unique task lists, 5 instances 
(re)created, 2304 calls
mkiv lua stats   used backend  - pdf (backend for directly 
generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   language load time- 0.057 seconds , nofpatterns: 1
mkiv lua stats   callbacks - 2440 direct, 2929 indirect, 5369 
total
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 11 lpath 
calls, 0 cached calls
mkiv lua stats   result saved in file  - test~1.pdf
mkiv lua stats   loaded fonts  - 33 files: stmary10.afm eufb10.tfm 
eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm 
lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf 
lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf 
lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf 
lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm 
lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats   fonts load time   - 0.506 seconds 
mkiv lua stats   luatex banner - this is luatex, version 
beta-0.66.0-2011030112 (rev 4090)
mkiv lua stats   control sequences - 29651 of 165536
mkiv lua stats   current memory usage  - 32 MB (ctx: 33 MB)
mkiv lua stats   runtime   - 54.133 seconds, 1 processed 
pages, 1 shipped pages, 0.018 pages/second
%%%

It works with the + character though.
The same problem goes for the directory names; directories with ~ in the name 
drops and error, even if the filename has no special characters in it.

Can this be fixed?

Adam
___
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] special character in filename

2011-03-05 Thread Aditya Mahajan

On Sat, 5 Mar 2011, Reviczky, Adam wrote:


only Hans can decide if this can/should be changed

I won't argue for any changes, just thought to ask about it.

I'll think about a workaround outside context.


The error is with the backend.

luatex (and pdftex and even tex) do not like filenames with a ~ in it.

luatex test\~1.tex

tries to compile a file called test.tex! If you want to compile 
test~1.tex, you need


luatex test\string~1.tex

In ConteXt, a wrapper script mtx-context calls luatex with appropriate 
settings of format, etc. So, with


context test\~1.tex

mtx-context will call

luatex --fmt=... --lua=.. test~1.tex

which, as mentioned above, tries to compile test.tex. But you can use the 
same workaround


context test\\string~1.tex

and the file test~1.tex is correctly compiled.


A simple yes, can be done or no, its a really bad idea is perfectly enough 
for me.


I don't understand why tex (the engine) ignores ~. I will call it a bug.

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] Disable tex ligatures in MkII

2011-03-04 Thread Wolfgang Schuster

Am 04.03.2011 um 18:59 schrieb Aditya Mahajan:

 How do I disable TeX ligatures in MkII. The following does not work:
 
 \starttext
  \tttf\normalnoligatures\font
  -- ---
 \stoptext

% engine=pdftex
\usetypescript[modern][texnansi]
\setupbodyfont[modern]
\starttext
{\tt -- ---}
\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
___


Re: [NTG-context] Disable tex ligatures in MkII

2011-03-04 Thread Aditya Mahajan

On Fri, 4 Mar 2011, Wolfgang Schuster wrote:



Am 04.03.2011 um 18:59 schrieb Aditya Mahajan:


How do I disable TeX ligatures in MkII. The following does not work:

\starttext
 \tttf\normalnoligatures\font
 -- ---
\stoptext


% engine=pdftex
\usetypescript[modern][texnansi]
\setupbodyfont[modern]


Thanks. That works. But I am confused why it does not work with the 
default font setup? Different encoding?


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] Screen document design

2011-03-01 Thread luigi scarso
On Tue, Mar 1, 2011 at 9:29 AM, Ian Lawrence physics.roo...@gmail.com wrote:
 So many things I am only vaguely aware of!
 But I think that pixels are
 a) undocumented
 b) work
 And I'm pretty sure i'll put both (ignorant) feet in it in trying to add
 something to the Wiki...
 Greetings from the grey England..
 Ian
It's a pdftex feature.
-- 
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] No widows and orphans

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 19:06 schrieb Cecil Westerhof:

 2011/3/1 Wolfgang Schuster schuster.wolfg...@googlemail.com
 If you add before starttext \interlinepenalty=1 it works. But alas, not 
 in my case.
 
 This will change the settings for all paragraphs while \keeplinestogether
 only applies for a given number of line for the next paragraph.
 
 That is exactly what I want: keeping all my paragraphs together. But when I 
 use it in my file, I get a few lines pro page. 


% engine=pdftex

\setupparagraphintro[each][\keeplinestogether{10}]

\starttext
\dorecurse{5}{\input tufte\par}
\stoptext

The \setupparagraphintro command doesn’t work currently in mkiv.

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] MathML broken in mkiv?

2011-02-27 Thread Reviczky, Adam
Hi

I'm trying to use MathML with mkiv (latest beta), but I'm getting errors.
I'm attaching the minimal example (borrowed from the wiki) and the log file.

Adam
\usemodule[mathml]
\starttext
test
\xmlprocessdata{}{
math xmlns='http://www.w3.org/1998/Math/MathML'
 mrow
  msup mix/mimn2/mn /msup
  mo+/mo
  mrow
mn4/mnmix/mi
  /mrow
  mo+/mo
  mn4/mn
 /mrow
/math
}{}
\stoptext
(mathml.tex

ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.2.26  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   mathml.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   mathml.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=mathml.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(mathml.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'mathml'
(/usr/share/texmf/tex/context/base/x-mathml.mkiv
loading  ConTeXt XML Macros / MathML Renderer
- /usr/share/texmf/tex/context/base/x-mathml.lua
resolversmodules  loaded: 'calcmath'
(/usr/share/texmf/tex/context/base/x-calcmath.mkiv+ /usr/share/texmf/tex/context/base/x-calcmath.lua)){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
system   begin file mathml.tex at line 2
xml  lpath  unknown function 'remapopenmath'
xml  lpath  unknown function 'remapmmlbind'
xml  lpath  unknown function 'remapmmlcsymbol'
! LuaTeX error main ctx instance:1: attempt to index field 'mathml' (a nil value)
stack traceback:
	main ctx instance:1: in main chunk.

system   tex  error on line 7 in file mathml.tex: LuaTeX error  ...

 1 \usemodule[mathml]
 2 \starttext
 3 test
 4 \xmlprocessdata{}{
 5 math xmlns='http://www.w3.org/1998/Math/MathML'
 6  mrow
 7 msup mix/mimn2/mn /msup
 8   mo+/mo
 9   mrow
10 mn4/mnmix/mi
11   /mrow
12   mo+/mo
13   mn4/mn
14  /mrow
15 /math
16 }{}
17 \stoptext


\ctxmodulemathml ...rocount {moduledata.mathml.#1}
  
\@@su:mml:mo ...miter }\ctxmodulemathml {mo(#1)}
  \setfalse \mmlignoredelimi...
l.7 }
 
\ctxlxml #1-\directlua \zerocount {lxml.#1}

\checkdelimiters ...\right \rightfakedelimiter $#1
  \expandafter $\expandafter...
argument ...kdelimiters {\xmlall {::3}{/mml:mo}}
  \fakeleftdelimiter \xmlflu...
...
l.16 }{}

? q
OK, entering \batchmode...
! LuaTeX error main ctx instance:1: attempt to index field 'mathml' (a nil value)
stack traceback:
	main ctx instance:1: in main chunk.


system   tex  error on line 14 in file mathml.tex: LuaTeX error  ...

 4 \xmlprocessdata{}{
 5 math xmlns='http://www.w3.org/1998/Math/MathML'
 6  mrow
 7   msup mix/mimn2/mn /msup
 8   mo+/mo
 9   mrow
10 mn4/mnmix/mi
11   /mrow
12   mo+/mo
13   mn4/mn
14/mrow
15 /math
16 }{}
17 \stoptext
18 


\ctxmodulemathml ...rocount {moduledata.mathml.#1}
  
\@@su:mml:mo ...miter }\ctxmodulemathml {mo(#1)}
  \setfalse \mmlignoredelimi...
l.14 }
  
\ctxlxml #1-\directlua \zerocount {lxml.#1}

\checkdelimiters ...\right

[NTG-context] lilypond module error with mkiv beta

2011-02-24 Thread Lutz Haseloff
Hi all,
with newest ConTeXt MKIV beta from Minimals
following file (from the doc) failes to compile:

\usemodule[lilypond]
\starttext
\subject{Telemann, TWV 40:11}
\startlilypond
\relative c' {
\set Staff.instrumentName = flute
\key fis \minor
\time 3/4
\partial 4
r8 fis'8 | fis4. cis8 a cis | fis, a cis fis a fis |
b, d fis b d b | eis,, gis cis eis gis b, |
a fis' gis, fis' cis eis | fis,4 r8
a' gis fis | e gis, a e' fis cis |
d fis, gis b e d | cis4 \trill r8
cis b a | b dis e gis cis, b |
a e' dis fis b, a | gis4 \trill r8
}
\stoplilypond
\stoptext

The errormessage is:


fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'lilypond'
(C:/contextminimal/texmf-local/tex/context/third/lilypond/t-lilypond.tex
loading  LilyPond module
){C:/contextminimal/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(C:/contextminimal/texmf-context/tex/context/base/type-siz.mkiv)
(C:/contextminimal/texmf-context/tex/context/base/type-otf.mkiv){C:/contextminimal/texmf/fonts/map/dvips/lm/lm-math.map}{C:/contextminimal/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
system   begin file lily.tex at line 3
structuresectioning  subject @ level 3 : 0.0.0 - Telemann, TWV 40:11
! Undefined control sequence.
\dodostartlilypond ...ily!filename {\bufferprefix
  lilypond-\lily!figures }\e...
l.19 \stoplilypond

Is this a bug in the lilypond module?

Greetings Lutz
___
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] Guttenberg's dissertation typeset in ConTeXt

2011-02-22 Thread Steffen Wolfrum

Am 21.02.2011 um 18:52 schrieb Johannes Kuester:

 The Google Docs version --
 https://docs.google.com/viewer?a=vpid=explorerchrome=truesrcid=0BxWgi9nKtBIUNGNmYWM3ZDgtMjUwYy00YjZkLWExZWQtNDY1MDZmMTQ3MGI3hl=en
 -- does not look like ConTeXt. But I think this is not the typeset and
 published version.


The published book is typeset in pdfTeX with ConTeXt MkII, with hz machinery 
used, resulting in quite nicely balanced lines.

Those Google Docs are scanned (watch OCR mistakes!) and use horrible font 
substitution.


Best example: Preface (=Vorwort), page 6, third paragraph, line 7: den icaipöq 
(Kairos)

This icaipöq was once greek: καιρός :o)


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
___


[NTG-context] Latest betas break tikz matrix

2011-02-22 Thread Mathieu Boespflug
Hi all,

This code used to compile in versions of context prior to January,
though I can't quite pin down the versions.

\usemodule[t-tikz]
\usetikzlibrary{matrix}

\starttext
\tikzstyle{description}=[fill=white,inner sep=2pt]
\starttikzpicture
\matrix(m)[matrix of math nodes,
  row sep=3em, column sep=3em,
  text height=1.5ex, text depth=0.25ex]
   {xy\\
 zu\\};
\path[-]
  (m-1-1) edge node[description] {$*$} (m-1-2)
  edge node[description] {$*$} (m-2-1)
  (m-1-2) edge[dashed] node[description] {$*$} (m-2-2)
  (m-2-1) edge[dashed] node[description] {$*$} (m-2-2);
\stoptikzpicture
\stoptext

(compilation error at the bottom of this email)

I thought at first that this was a luatex problem, but I've ruled that
out with the following plain tex file, which compiles just fine in
plain luatex and in plain pdftex:

\input tikz.tex
\usetikzlibrary{matrix}

\tikzstyle{description}=[fill=white,inner sep=2pt]
\tikzpicture
\matrix(m)[matrix of math nodes,
  row sep=3em, column sep=3em,
  text height=1.5ex, text depth=0.25ex]
   {xy\\
 zu\\};
\path[-]
  (m-1-1) edge node[description] {$*$} (m-1-2)
  edge node[description] {$*$} (m-2-1)
  (m-1-2) edge[dashed] node[description] {$*$} (m-2-2)
  (m-2-1) edge[dashed] node[description] {$*$} (m-2-2);
\endtikzpicture
\end


I have no idea what the error is telling me and what could be causing
it. Any ideas?

Many thanks,

Mathieu

Compile log:

! Only one # is allowed per tab.

system   tex  error on line 10 in file testcontext.tex: Only one # is
 allowed per tab ...

 1 \usemodule[t-tikz]
 2 \usetikzlibrary{matrix}
 3
 4 \starttext
 5 \tikzstyle{description}=[fill=white,inner sep=2pt]
 6 \starttikzpicture
 7 \matrix(m)[matrix of math nodes,
 8   row sep=3em, column sep=3em,
 9   text height=1.5ex, text depth=0.25ex]
10  {xy\\
11  zu\\};
12 \path[-]
13   (m-1-1) edge node[description] {$*$} (m-1-2)
14   edge node[description] {$*$} (m-2-1)
15   (m-1-2) edge[dashed] node[description] {$*$} (m-2-2)
16   (m-2-1) edge[dashed] node[description] {$*$} (m-2-2);
17 \stoptikzpicture
18 \stoptext
19


\pgf@matrix@cont ...ell ##\pgf@matrix@endcell }##
  \pgf@matrix@padding \pgf...
l.10{
 xy\\
?
___
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] textcommand=\uppercase in setuphead is propagated to lower level settings

2011-02-21 Thread Hans Hagen

On 21-2-2011 12:04, Dinh Tran wrote:

Hello.

I apply textcommand=\uppercase to a section heading but it is propagated to
subheadings.  Is there a good reason for this.


all subsection inherit from their parent


Some other notes in this test design:
1) textcommand=\uppercase does not work with luatex engine


sure, it's a low level tex command and never to be used in unpredictable 
situations (think of an \framed[frame=on]{...} being uppercased when you 
actually want ... to be)


also, it's unreliable for daily use which is why we have \WORD etc


2) textcommand=\WORD works in the luatex engine, but the propagation of
uppercase to subheadings is also encountered.


indeed, inheritance


3) numbercolor=red only works with luatex.


mkii (for pdftex/xetex) will not be patched so mkiv is the (future) 
reference in this



I submit the pdf's also.


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] Using fonts from multiple families

2011-02-13 Thread Wolfgang Schuster

Am 13.02.2011 um 04:38 schrieb Tom:

 
 
 \usetypescriptfile[type-one]
 \usetypescriptfile[type-gyr]
 TexLive 2010 MKII on a PC
 
 I'm completely flummoxed as how to use fonts from different families.
 Follows is an attempt to use Pallatino (rm) for the text of a book,
 Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page
 headers (intended but not implemented), and Chancery (cg) for the
 dedication. The only font that appears to come out right are the chapter
 titles and I can't change their size without changing the size of the text
 font. I apparently haven't found the right manual yet or am too stupid to
 understand what must be a relatively simple concept.

You can define multiple typefaces.

% engine=pdftex

% fonts

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

% headings

\definehead [intro] [chapter]
\definehead [dedication][chapter]

\setuphead[chapter][style=\ss\bfa,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering[style={\switchtobodyfont[pagenumber]}]

\starttext
\dedication{Dedication}
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\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
___


Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Tom
Thank you very much, Wolfgang. The time zone difference is helpful
sometimes. I went to bed last night very frustrated and woke up this morning
to find your solution in my inbox. It is also good to see that your
assistance to me has also helped someone else. I do have a couple of
questions:

1. Why aren't the \usetypescriptfile commands necessary?
2. It never occurred to me to consider the dedication as a separate chapter.
Logically, it is but is the inverse of other chapters, sort of, in that the
chapter title isn't normally displayed and the body of the chapter is
printed in a different font than are the other chapters.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, February 13, 2011 4:59 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Using fonts from multiple families


Am 13.02.2011 um 04:38 schrieb Tom:

 
 
 \usetypescriptfile[type-one]
 \usetypescriptfile[type-gyr]
 TexLive 2010 MKII on a PC
 
 I'm completely flummoxed as how to use fonts from different families.
 Follows is an attempt to use Pallatino (rm) for the text of a book,
 Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page
 headers (intended but not implemented), and Chancery (cg) for the
 dedication. The only font that appears to come out right are the chapter
 titles and I can't change their size without changing the size of the text
 font. I apparently haven't found the right manual yet or am too stupid to
 understand what must be a relatively simple concept.

You can define multiple typefaces.

% engine=pdftex

% fonts

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

% headings

\definehead [intro] [chapter]
\definehead [dedication][chapter]

\setuphead[chapter][style=\ss\bfa,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering[style={\switchtobodyfont[pagenumber]}]

\starttext
\dedication{Dedication}
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\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

___

___
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] Getting paragraphs to indent

2011-02-13 Thread Tom
My intention is to indent all paragraphs that do not follow whitespace.
However, my code isn't making that happen. What am I doing wrong?

(TexLive 2010 MKII on PC)

\setupcolors[state=start]
\definecolor [gray] [s=0.75]

%\usetypescriptfile[type-one]
%\usetypescriptfile[type-gyr]

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

% headings

\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]}]
\definehead [intro] [chapter]
\definehead [dedication][chapter]

\setuphead[chapter][style=\ss\bfd,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][incrementnumber=no]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering
[state=start,alternative=doublesided,conversion=numbers,location=]
\setupheadertexts
 [chapter][pagenumber][pagenumber][My Book Title]
\setupheader[style={\switchtobodyfont[pagenumber,20pt]\sl},color=gray]

%turn on indentation 
\setupindenting[medium]
\indenting[next]

\starttext
\dedication{}
\startdedication
To someone who inspired or supported me. Let's see how this works for
dedications that span multiple lines.
\stopdedication
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, February 13, 2011 4:59 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Using fonts from multiple families


Am 13.02.2011 um 04:38 schrieb Tom:

 
 
 \usetypescriptfile[type-one]
 \usetypescriptfile[type-gyr]
 TexLive 2010 MKII on a PC
 
 I'm completely flummoxed as how to use fonts from different families.
 Follows is an attempt to use Pallatino (rm) for the text of a book,
 Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page
 headers (intended but not implemented), and Chancery (cg) for the
 dedication. The only font that appears to come out right are the chapter
 titles and I can't change their size without changing the size of the text
 font. I apparently haven't found the right manual yet or am too stupid to
 understand what must be a relatively simple concept.

You can define multiple typefaces.

% engine=pdftex

% fonts

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

% headings

\definehead [intro] [chapter]
\definehead [dedication][chapter]

\setuphead[chapter][style=\ss\bfa,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering[style={\switchtobodyfont[pagenumber]}]

\starttext
\dedication{Dedication}
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\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

___

___
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 virtual fonts defined with lua-code

2011-02-10 Thread Hans Hagen

On 10-2-2011 11:03, Ulrike Fischer wrote:


Where is this interface? Does some documentation exists about how it
works and how it can be used?


Some of it has been reported in articles (and mk.pdf) and I will 
document it in more detail when I've cleaned it up and feel satisfied 
about it. Also, it's context speficic (I guess) and it is not on my 
agenda to make every context feature portable (the concepts between 
context and plain/latex/.. simply differ too much).



Well it is certainly easier if there are less encodings. But the
small encodings had one advantage: if you used a e.g. T1-encoded
font you not only knew which characters are encoded and their
position but also that the characters are actually present. You


that's not 100% true ... in the past I've ran into situations where 
fonts missed glyphs; also, having a bad replacement glyph is also no 
option (funny ogoneks are an example)



could safely switch from one font to another. With unicode fonts
this is no longer the case. If you switch fonts there is always the
danger that a char or an accent suddenly disappears.


One always need to check each font and the problem with e.g. otf is not 
so much the coverage but more the fact that things like features are 
somewhat unpredictable (defaults, correct implemenation, etc) and 
successive versions can differ. So, patching them then also boils down 
to keeping track of all kind of changes in releases. Nu fun.


Anyway, in context mkiv there are several extension mechanisms (aka font 
goodies) and some of them also depend on support in the core (context) 
machinery. I expect more of them and virtual trickery fits into that 
picture. What ends up there is also user driven.



The lm and gyre fonts are fine. But they cover only a small part of
the glyphs used in the world. Many of the discussions I see are
started by people trying to use non-western/non-latin scripts.


Sure. Anyhow, I'm not going to spend time following discussions on the 
pdftex and xetex list as I don't use these engines and context support 
for them is frozen. If context users have demands in this area I'm quite 
willing to fulfill them in mkiv using appropriate mechanisms and 
interfaces. Support for advanced arabic (using additional features and 
dedicated optimizers) is an example.



Fixing a font needs either the rights to do it oneself or the will
of the author(s) to do it. Both is often not the case. And fixing a
font may remove a dependency to a virtual font but it will add a
dependency to the fixed font version - which can get quite difficult
if more than one fixed version exists.


True, but as I mentioned, there are many fonts out there and one can try 
to avoid the crappy ones.


(btw, context mkiv has some features for adding missing glyphs, which 
might be why users don't complain too much here)


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] Using virtual fonts defined with lua-code

2011-02-09 Thread Hans Hagen

On 9-2-2011 5:09, Ulrike Fischer wrote:


While I certainly in the end want to use the (virtual) fonts also
with LaTeX I don't want to define them in a LaTeX-specific way. A
standard virtual font (tfm + vf) can be used with latex, plain and
context with an identical syntax so why should this be different for
this new type of virtual font only because they are based on
lua-code?


The you can put them under tex/fonts/generic i suppose; but even then, 
there is no reason to assume that context or latex provides additional 
lua code in the engine that is used in such a font.



Also if a font is defective (e.g. wrong kerning, missing glyphs,
faulty glyph names, missing open type features ...) a virtual font
which improves this font should be useful for all formats which can
use it, so I don't think that a format specific location is
sensible.


We have a different machinery for things like that and support is 
integrated into context (and targets at context). Also, there is an 
experimental vf creation interface that will be extended.



(I must say I'm wondering a bit why problems with fonts are so
seldom discussed in the context list. In the last weeks I have seen
in the xetex list a discussion how to add missing glyphs to a font,
a discussion about kerning flaws, discussions about bad accent
placement, in another group someone missed the m with dot in a
font, in the luatex.user list you can find a message about a problem
with fea-files and kerning, and so one ... Why do context user seems
to have no problems with defective fonts? Do they use a smaller set
of fonts?)


I don't know. Personally I just reject a font if it's flawed esp because 
there are enough fonts out there that are ok. And I definitely (as 
context user) don't want to go along the route of using all kind of 
patches to fonts, because we then end up with the same mess as we have 
with special encodings in traditional tex. Also, in the past I've found 
out that one cannot rely to much on provided metrics (also because latex 
assume special values, as is the case in some tfm metrics) and this is 
why in mkii (pdftex variant) we always generated metrics a directly from 
afm files.


The lm and gyre font projects are in fact triggered by people within the 
context community as a solution to all these incomplete fonts that have 
been used for ages. Fortunately these projects soon became generic and 
were adopted and supported by latex as well. (In context we switched 
immediately to them.)


I'm glad that we got rid of the font mess and would like to keep it that 
way. If a font is bugged ... preferably fix the font. (We currently 
impose a few runtime fixes to e.g. cambria but I'd expect that to be a 
temporary thing.) Don't get me wrong, context users can do a lot of 
tweaking if they want, which can be seen from questions on the list with 
respect to layout, but maybe they don't want to create a dependency on 
tweaks in fonts.


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] structuring Context code using \input statements.

2011-02-08 Thread John Culleton
On Monday 07 February 2011 18:07:29 Hans Hagen wrote:
 On 7-2-2011 10:39, John Culleton wrote:
  In all forms of TeX it is my custom to start with a brief main
  file and call the various components of the document into the
  input stream with \input statements. The termination of the
  document is in the main file with a \stoptext statement.
 
  This works well with pdftex documents and also with
  MKII documents. But it fails with MKIV documents. The Context
  program will read and use an inserted program but will not return
  to the main text stream in the file that did the inputting. It
  just displays an * and hangs. Are there new rules in MKIV about
  breaking up a document into separate files and inserting these in
  sequence via \input statements?

 maybe you have an extra \starttext somewhere

 Hans


That was it. Now it works. 
-- 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/p/books/4055.html
Typesetting and indexing http://wexfordpress.com
book sales http://wexfordpress.net
Free  barcode: http://www.tux.org/~milgram/bookland/

___
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] structuring Context code using \input statements.

2011-02-07 Thread John Culleton
In all forms of TeX it is my custom to start with a brief main file and 
call the various components of the document into the input stream with 
\input statements. The termination of the document is in the main file 
with a \stoptext statement. 

This works well with pdftex documents and also with 
MKII documents. But it fails with MKIV documents. The Context program 
will read and use an inserted program but will not return to the main 
text stream in the file that did the inputting. It just displays an * 
and hangs. Are there new rules in MKIV about breaking up a document 
into separate files and inserting these in sequence via \input 
statements?
-- 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/p/books/4055.html
Typesetting and indexing http://wexfordpress.com
book sales http://wexfordpress.net
Free  barcode: http://www.tux.org/~milgram/bookland/

___
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] structuring Context code using \input statements.

2011-02-07 Thread Aditya Mahajan

On Mon, 7 Feb 2011, John Culleton wrote:


In all forms of TeX it is my custom to start with a brief main file and
call the various components of the document into the input stream with
\input statements. The termination of the document is in the main file
with a \stoptext statement.

This works well with pdftex documents and also with
MKII documents. But it fails with MKIV documents.


Con you provide a minimal example? This works fine:

\starttext
\input knuth
\stoptext

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] structuring Context code using \input statements.

2011-02-07 Thread Hans Hagen

On 7-2-2011 10:39, John Culleton wrote:

In all forms of TeX it is my custom to start with a brief main file and
call the various components of the document into the input stream with
\input statements. The termination of the document is in the main file
with a \stoptext statement.

This works well with pdftex documents and also with
MKII documents. But it fails with MKIV documents. The Context program
will read and use an inserted program but will not return to the main
text stream in the file that did the inputting. It just displays an *
and hangs. Are there new rules in MKIV about breaking up a document
into separate files and inserting these in sequence via \input
statements?


maybe you have an extra \starttext somewhere

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] error updating beta WAS: beta

2011-02-02 Thread Peter Münster
Hans Hagen pra...@wxs.nl writes:

 no, i'm still trying to get mkii and mkiv working at the same time with a
 fundamental different setup strategy .. getting there

Or perhaps 2 completely different distributions?
mkii: frozen, only some fixes from time to time
mkiv: no more mkii files, no more pdftex, just pure mkiv

-- 
   Peter
___
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] error updating beta WAS: beta

2011-02-02 Thread Hans Hagen

On 2-2-2011 1:41, Peter Münster wrote:

Hans Hagenpra...@wxs.nl  writes:


no, i'm still trying to get mkii and mkiv working at the same time with a
fundamental different setup strategy .. getting there


Or perhaps 2 completely different distributions?
mkii: frozen, only some fixes from time to time
mkiv: no more mkii files, no more pdftex, just pure mkiv


this can already be done (just install with the --engine=luatex flag)

the main issue is that mtxrun also replaces the ruby texmfstart script 
and texexec is launched via mtxrun; so mtxrun needs to be able to deal 
with mkii situations where kpse is used for lookups later on; as the 
installer uses the --tree option, and as mkiv has an abstract notion of 
the texroot, some hoops have to be jumped through to get it working for 
both machineries



-
  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] error updating beta WAS: beta

2011-02-02 Thread Vedran Miletić
2011/2/2 Hans Hagen pra...@wxs.nl

 On 2-2-2011 1:41, Peter Münster wrote:

 Hans Hagenpra...@wxs.nl  writes:

  no, i'm still trying to get mkii and mkiv working at the same time with a
 fundamental different setup strategy .. getting there


 Or perhaps 2 completely different distributions?
 mkii: frozen, only some fixes from time to time
 mkiv: no more mkii files, no more pdftex, just pure mkiv


 this can already be done (just install with the --engine=luatex flag)

 the main issue is that mtxrun also replaces the ruby texmfstart script and
 texexec is launched via mtxrun; so mtxrun needs to be able to deal with mkii
 situations where kpse is used for lookups later on; as the installer uses
 the --tree option, and as mkiv has an abstract notion of the texroot, some
 hoops have to be jumped through to get it working for both machineries


You mentioned earlier that texexec could be replaced by mtxrun completely,
that only a bit is missing. Would this solve the problem?

Regards,

Vedran Miletić
___
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] error updating beta WAS: beta

2011-02-02 Thread Hans Hagen

On 2-2-2011 3:01, Vedran Miletić wrote:

2011/2/2 Hans Hagenpra...@wxs.nl


On 2-2-2011 1:41, Peter Münster wrote:


Hans Hagenpra...@wxs.nl   writes:

  no, i'm still trying to get mkii and mkiv working at the same time with a

fundamental different setup strategy .. getting there



Or perhaps 2 completely different distributions?
mkii: frozen, only some fixes from time to time
mkiv: no more mkii files, no more pdftex, just pure mkiv



this can already be done (just install with the --engine=luatex flag)

the main issue is that mtxrun also replaces the ruby texmfstart script and
texexec is launched via mtxrun; so mtxrun needs to be able to deal with mkii
situations where kpse is used for lookups later on; as the installer uses
the --tree option, and as mkiv has an abstract notion of the texroot, some
hoops have to be jumped through to get it working for both machineries



You mentioned earlier that texexec could be replaced by mtxrun completely,
that only a bit is missing. Would this solve the problem?


it would solve the ruby dependency but pdftex/xetex need kpse

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] error updating beta WAS: beta

2011-02-02 Thread Vnpenguin
On Wed, Feb 2, 2011 at 13:41, Peter Münster pmli...@free.fr wrote:

 no, i'm still trying to get mkii and mkiv working at the same time with a
 fundamental different setup strategy .. getting there

 Or perhaps 2 completely different distributions?
 mkii: frozen, only some fixes from time to time

 mkiv: no more mkii files, no more pdftex, just pure mkiv

Yes, I like this idea. I don't care about mkii, nor pdftex.
___
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] error updating beta WAS: beta

2011-02-02 Thread Peter Münster
Vnpenguin vnpeng...@vnoss.org writes:

 On Wed, Feb 2, 2011 at 13:41, Peter Münster pmli...@free.fr wrote:

 no, i'm still trying to get mkii and mkiv working at the same time with a
 fundamental different setup strategy .. getting there

 Or perhaps 2 completely different distributions?
 mkii: frozen, only some fixes from time to time
 mkiv: no more mkii files, no more pdftex, just pure mkiv

 Yes, I like this idea. I don't care about mkii, nor pdftex.

In the first place, this idea was meant to make Hans' life easier.
(not the user's life... ;-)

-- 
   Peter
___
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] error updating beta WAS: beta

2011-02-02 Thread Hans van der Meer

On 2 feb 2011, at 20:08, Peter Münster wrote:

 Vnpenguin vnpeng...@vnoss.org writes:
 
 On Wed, Feb 2, 2011 at 13:41, Peter Münster pmli...@free.fr wrote:
 
 no, i'm still trying to get mkii and mkiv working at the same time with a
 fundamental different setup strategy .. getting there
 
 Or perhaps 2 completely different distributions?
 mkii: frozen, only some fixes from time to time
 mkiv: no more mkii files, no more pdftex, just pure mkiv
 
 Yes, I like this idea. I don't care about mkii, nor pdftex.
 
 In the first place, this idea was meant to make Hans' life easier.
 (not the user's life... ;-)
 

I strongly support the idea of freezing mkii, apart from repairing obvious bugs 
in the existing codebase. It will free precious resources and save valuable 
time. Moreover imho concentrating on mkiv not hampered by compatability issues 
because of mkii, can only add to its stability. 
(It is just like evolution or maybe call it progress. Imagine both our primate 
ancestors and the dinosaurs being maintained at the same time? Where would we 
be? ;-)

Hans van der Meer



___
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] error updating beta WAS: beta

2011-02-02 Thread luigi scarso
On Wed, Feb 2, 2011 at 8:07 PM, Hans van der Meer h.vanderm...@uva.nl wrote:
 More experiments, I am not one to be so easily defeated by software.
 Retrieved some old beta's, each time I start a context run then it results in 
 the loadfilemarkerror.
 But I can find several formats lying around:
 /Users/hans/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/c180539b697aa06758debbc1182817e4/formats/cont-en.fmt
 /Users/hans/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/c180539b697aa06758debbc1182817e4/formats/cont-nl.fmt
 /Users/hans/TeX/ConTeXt/beta/tex/texmf-osx-64/web2c/pdftex/cont-en.fmt
 /Users/hans/TeX/ConTeXt/beta/tex/texmf-osx-64/web2c/pdftex/cont-nl.fmt
 /Users/hans/TeX/ConTeXt/beta/tex/texmf-osx-64/web2c/xetex/cont-en.fmt
 /Users/hans/TeX/ConTeXt/beta/tex/texmf-osx-64/web2c/xetex/cont-nl.fmt
 Apparently none of them found! Vide this first message:
 MTXrun | warning: no format found, forcing remake (commandline driven)
It's a Mac OS system (sorry, I though it was linux).

Can you try the latest minimals under
/Users/hans/LuaTeX
(just to  be sure to avoid conflicts)
?
-- 
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] error updating beta WAS: beta

2011-02-02 Thread Hans Hagen

On 2-2-2011 8:08, Peter Münster wrote:

Vnpenguinvnpeng...@vnoss.org  writes:


On Wed, Feb 2, 2011 at 13:41, Peter Münsterpmli...@free.fr  wrote:



no, i'm still trying to get mkii and mkiv working at the same time with a
fundamental different setup strategy .. getting there


Or perhaps 2 completely different distributions?
mkii: frozen, only some fixes from time to time
mkiv: no more mkii files, no more pdftex, just pure mkiv


Yes, I like this idea. I don't care about mkii, nor pdftex.


In the first place, this idea was meant to make Hans' life easier.
(not the user's life... ;-)


as there is not much code written for mkii the burden for me is not that 
large; also, now that the codebase is completely split, there is less 
danger of changes in one affecting the other


also, there are mkii users out there, including collegues, so it won't 
be dropped


installing mkiv only is already possible for a while

ok, we can have less files if we make a zip split, something that might 
happen at some point (i need to adapt my assembling script then)


for a moment i considered

base/mkii
base/mkiv
base/common

but it might not be worth the effort,

Hans

(who after many hours finally managed to get a beta of one of his 
favourite programs working on suse 11.3 as it kept crashing linux on 
11.2 but well, it's beta for a reason)


-
  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] error updating beta WAS: beta

2011-02-02 Thread Hans Hagen

On 2-2-2011 8:07, Hans van der Meer wrote:

More experiments, I am not one to be so easily defeated by software.
Retrieved some old beta's, each time I start a context run then it results in 
the loadfilemarkerror.
But I can find several formats lying around:
/Users/hans/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/c180539b697aa06758debbc1182817e4/formats/cont-en.fmt
/Users/hans/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/c180539b697aa06758debbc1182817e4/formats/cont-nl.fmt


best wipe the cache as the latest version uses a different hash so the 
oldest path is obsolete



/Users/hans/TeX/ConTeXt/beta/tex/texmf-osx-64/web2c/pdftex/cont-en.fmt
/Users/hans/TeX/ConTeXt/beta/tex/texmf-osx-64/web2c/pdftex/cont-nl.fmt
/Users/hans/TeX/ConTeXt/beta/tex/texmf-osx-64/web2c/xetex/cont-en.fmt
/Users/hans/TeX/ConTeXt/beta/tex/texmf-osx-64/web2c/xetex/cont-nl.fmt


looks ok


Apparently none of them found! Vide this first message:
MTXrun | warning: no format found, forcing remake (commandline driven)


hm, the latest beta?


export TEXLIVE=/usr/local/texlive/2010
export TEXPRIVATE=$HOME/TeX/My-TeXLib
export TEXMINIMAL=$HOME/TeX/ConTeXt/beta
export TEXPATH=$TEXMINIMAL/tex/texmf-osx-64/bin
export TEXMFDBS=$TEXMINIMAL
#$TEXMINIMAL/tex/setuptex
export TEXMF=$TEXMINIMAL
Note: inserting the hashed out line doesn't make a difference.


you can check what mtxrun --generate returns as variables right at the 
start


also, configuration of mkiv happens in texmfcnf.lua (see contextcnf.lua 
for the future version of it, but that's for Mojca to decide)


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] error updating beta WAS: beta

2011-02-01 Thread luigi scarso
On Tue, Feb 1, 2011 at 12:35 PM, Hans Hagen pra...@wxs.nl wrote:
 On 1-2-2011 11:36, Vedran Miletić wrote:

 Same here.

 Running mktexlsr manually works, but it doesn't help next ./first-setup
 run..

 i'll have a look at it (i only tested a luatex only tree sofar)
seem related only to pdftex and xetex.
luatex seems ok.
-- 
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] error updating beta WAS: beta

2011-02-01 Thread luigi scarso
On Tue, Feb 1, 2011 at 1:51 PM, luigi scarso luigi.sca...@gmail.com wrote:
 i'll have a look at it (i only tested a luatex only tree sofar)
 seem related only to pdftex and xetex.
 luatex seems ok.
 --
 luigi

after
$mktexlsr

$texexec --make
builds all the pdftex formats

$texexec --make --engine=xetex
builds all the xetex formats


-- 
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] Curly quotes was TTF fonts and MKIV

2011-01-31 Thread John Culleton
On Sunday 30 January 2011 16:52:55 Wolfgang Schuster wrote:
 Am 30.01.2011 um 17:29 schrieb John Culleton:
  Thanks for your reply. Are you telling me that \input foo no
  longer works the way it used to?

 \input works but \environment is the “ConTeXt Way” to load your
 personal settings for a document, environment prevents also
 multiple loading of the file when you use context’s document
 structure.

  Let me simplify the example:
  ---
  \setupoutput[pdftex]

 simplefonts is mkiv only, so remove this or don’t use simplefonts

  \definepapersize[bok][width=7.0in,height=10.0in]
  \setuppapersize[bok][bok]
  \usemodule [simplefonts]
  \setmainfont [georgia]
  \starttext
  Here is ``foo''.
  \stoptext
  -
  I still get the same wrong results. In a ttf font like georgia
  the close quote looks OK but the open quote are two left tick
  marks. In Bitstream Charter the close quote is the inch sign and
  the open quote is again two left tick marks. So my original
  question remains: Why do the double quote codes not work as they
  have since the days of plain tex?

 Use “…” or \quotation{…}, we have 2011 and Unicode is available
 since years.

 Wolfgang

 
 ___


\quotation{} works, but nothing else does. 

It is not clear how one sets the main font size. Is this correct?
\setmainfont[charterbt][size=11pt]
?
-- 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/p/books/4055.html
Typesetting and indexing http://wexfordpress.com
book sales http://wexfordpress.net
Free  barcode: http://www.tux.org/~milgram/bookland/

___
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] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread John Culleton
On Saturday 29 January 2011 11:53:20 John Culleton wrote:
 On Friday 28 January 2011 16:52:57 Marco Pessotto wrote:
  John Culleton j...@wexfordpress.com writes:
   Is there a short, simple guide somewhere that shows how to use
   TTF and OTF fonts in Context? I downloaded the new Fonts
   chapter but it goes deep into the weeds on typescripts etc.  I
   am looking for a method that allows me to do in Context what I
   can already do in most other DTP programs: simply designate for
   use a font or font family that exists in /usr/share/fonts
   without typescripts, complex and confusing aliasing schemes or
   tfm files.
 
  http://wiki.contextgarden.net/Fonts_in_LuaTex

 OK I used this guide and have access to one of the fonts in
 /usr/share/fonts/Type1 but not the rest. Courier is in the
 database. AGaramond is not.  The wiki paper seems to state that
 Type1 fonts should be available via the database and \simplefonts.
 AGaramond is in the
 /usr/share/fonts/Type1
 directory and is listed in the
 /usr/share/fonts/Type1/fonts.dir
 file. It does not show up in the mtxrun generated data base.

 set shows the following entry:
 OSFONTDIR='/usr/share/fonts;/home/safe/.fonts'


 Now if Type1 isn't included the font data base yet I can be cool
 with that. But in that case the wiki needs to be corrected.
I have tried various fonts, including charterbt, calibri (ttf) and so 
on. I get the called-for font but the sequences for curly double 
quotes, in use since Ramses II, give me either two back ticks followed 
by two forward ticks, (calibri) or two back ticks followed by an inch 
symbol (charterbt).  So this defect is not limited to one font. My 
main file is as follows:

\input macros.tex
\usemodule [simplefonts]
\setmainfont [calibri]
\starttext
\input body.tex
\stoptext

and macros.tex looks like this:

\setupoutput[pdftex]
\definepapersize[bok][width=7.0in,height=10.0in]
%\setuppapersize[bok][letter]
\setuppapersize[bok][bok]
\setuplayout[location=middle,marking=on]%
\setupwhitespace[line]
\setuptyping[style=small]


Anyone else have this problem?


 
-- 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/p/books/4055.html
Typesetting and indexing http://wexfordpress.com
book sales http://wexfordpress.net
Free  barcode: http://www.tux.org/~milgram/bookland/

___
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] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread Wolfgang Schuster

Am 30.01.2011 um 16:34 schrieb John Culleton:

 I have tried various fonts, including charterbt, calibri (ttf) and so 
 on. I get the called-for font but the sequences for curly double 
 quotes, in use since Ramses II, give me either two back ticks followed 
 by two forward ticks, (calibri) or two back ticks followed by an inch 
 symbol (charterbt).  So this defect is not limited to one font. My 
 main file is as follows:
 
 \input macros.tex

\environment macros

 \usemodule [simplefonts]
 \setmainfont [calibri]
 \starttext
 \input body.tex
 \stoptext
 
 and macros.tex looks like this:

\startenvironment macros

 \setupoutput[pdftex]
 \definepapersize[bok][width=7.0in,height=10.0in]
 %\setuppapersize[bok][letter]
 \setuppapersize[bok][bok]
 \setuplayout[location=middle,marking=on]%
 \setupwhitespace[line]
 \setuptyping[style=small]

\stopenvironment

 Anyone else have this problem?

Learn to make a minimal *working* example, this works:

\usemodule[simplefonts]
\setmainfont[Calibri]
\starttext
“quoted text”
\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
___


Re: [NTG-context] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread John Culleton
On Sunday 30 January 2011 10:52:10 Wolfgang Schuster wrote:
 Am 30.01.2011 um 16:34 schrieb John Culleton:
  I have tried various fonts, including charterbt, calibri (ttf)
  and so on. I get the called-for font but the sequences for curly
  double quotes, in use since Ramses II, give me either two back
  ticks followed by two forward ticks, (calibri) or two back ticks
  followed by an inch symbol (charterbt).  So this defect is not
  limited to one font. My main file is as follows:
 
  \input macros.tex

 \environment macros

  \usemodule [simplefonts]
  \setmainfont [calibri]
  \starttext
  \input body.tex
  \stoptext
 
  and macros.tex looks like this:

 \startenvironment macros

  \setupoutput[pdftex]
  \definepapersize[bok][width=7.0in,height=10.0in]
  %\setuppapersize[bok][letter]
  \setuppapersize[bok][bok]
  \setuplayout[location=middle,marking=on]%
  \setupwhitespace[line]
  \setuptyping[style=small]

 \stopenvironment

  Anyone else have this problem?

 Learn to make a minimal *working* example, this works:

 \usemodule[simplefonts]
 \setmainfont[Calibri]
 \starttext
 “quoted text”
 \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
 ___


Thanks for your reply. Are you telling me that \input foo no longer 
works the way it used to? 

Let me simplify the example:
---
\setupoutput[pdftex]
\definepapersize[bok][width=7.0in,height=10.0in]
\setuppapersize[bok][bok]
\usemodule [simplefonts]
\setmainfont [georgia]
\starttext
Here is ``foo''.
\stoptext
-
I still get the same wrong results. In a ttf font like georgia the 
close quote looks OK but the open quote are two left tick marks.
In Bitstream Charter the close quote is the inch sign and the open 
quote is again two left tick marks. So my original question remains:
Why do the double quote codes not work as they have since the days of 
plain tex?

-- 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/p/books/4055.html
Typesetting and indexing http://wexfordpress.com
book sales http://wexfordpress.net
Free  barcode: http://www.tux.org/~milgram/bookland/

___
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] Curly quotes was TTF fonts and MKIV

2011-01-30 Thread Wolfgang Schuster

Am 30.01.2011 um 17:29 schrieb John Culleton:

 Thanks for your reply. Are you telling me that \input foo no longer 
 works the way it used to? 

\input works but \environment is the “ConTeXt Way” to load your personal
settings for a document, environment prevents also multiple loading of
the file when you use context’s document structure.

 Let me simplify the example:
 ---
 \setupoutput[pdftex]

simplefonts is mkiv only, so remove this or don’t use simplefonts

 \definepapersize[bok][width=7.0in,height=10.0in]
 \setuppapersize[bok][bok]
 \usemodule [simplefonts]
 \setmainfont [georgia]
 \starttext
 Here is ``foo''.
 \stoptext
 -
 I still get the same wrong results. In a ttf font like georgia the 
 close quote looks OK but the open quote are two left tick marks.
 In Bitstream Charter the close quote is the inch sign and the open 
 quote is again two left tick marks. So my original question remains:
 Why do the double quote codes not work as they have since the days of 
 plain tex?

Use “…” or \quotation{…}, we have 2011 and Unicode is available since years.

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] piping output from external command

2011-01-30 Thread Peter Münster
Hello,

This used to work with pdftex:

\starttext
\input \string|echo hello world
\stoptext

What's the recommended way, to do this in mkiv?

I've defined \Pipe{} like this:

\startluacode
userdata = userdata or {}
function userdata.pipe(c)
local h = io.popen(c)
context(h:read*a)
h:close()
end
\stopluacode
\def\Pipe#1{\ctxlua{userdata.pipe#1}}

But I suppose that there is already a nice command in the core... ;)

-- 
   Peter
___
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] first-setup for windows

2011-01-26 Thread Mojca Miklavec
I would like to ask windows users to test the attached setup file if
it works any better (and to make sure that I didn't do any mistakes
while typing).

I have put the updated version of first-setup.sh on the server
already, but for Windows I simply don't dare to do it until somebody
confirms that it seems to be ok. In both cases it would be great to
get feedback if the problems with missing files are solved.

Mojca

PS: please remove the .txt ending (gmail doesn't allow sending .bat files)
@echo off

setlocal

echo okay  ok.log
ruby -e File.delete('ok.log')
if not exist ok.log goto okay

echo.
echo You need to install Ruby first (if you want to use pdfTeX or XeTeX).
echo Fetching files anyway.
echo.

:okay


set OWNPATH=%~dp0
set CONTEXTROOT=%OWNPATH%tex

set PATH=%OWNPATH%bin;%CONTEXTPATH%\texmf-mswin\bin;%PATH%

set CYGWIN=nontsec

rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' --exclude 
'cygiconv-2.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ bin

mtxrun --script ./bin/mtx-update.lua --force --update --make --engine=all 
--context=beta --texroot=%CONTEXTROOT% %*

echo.
echo When you want to use context, you need to initialize the tree with:
echo.
echo   %CONTEXTROOT%\setuptex.bat %CONTEXTROOT%
echo.
echo You can associate this command with a shortcut to the cmd prompt.
echo.

if not exist ok.log goto end

echo.
echo If you want to use pdfTeX or XeTeX you need to install Ruby first.
echo Remake formats or rerun this script afterwards.
echo.

del /q ok.log

:end

endlocal

___
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] first-setup for windows

2011-01-26 Thread Procházka Lukáš

Hello Mojca,

On Wed, 26 Jan 2011 20:31:47 +0100, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:


I would like to ask windows users to test the attached setup file if
it works any better (and to make sure that I didn't do any mistakes
while typing).

I have put the updated version of first-setup.sh on the server
already, but for Windows I simply don't dare to do it until somebody
confirms that it seems to be ok. In both cases it would be great to
get feedback if the problems with missing files are solved.

Mojca


I launched your modified first-setup.bat - it seems the latest Ctx version was 
updated successfully.

I also tried to compile some sample files - no problem.

OS: WinXP Home Edition, SP3.


BTW: It normally happens to me that I have to run 'mtxrun --generate' after I 
updated Ctx.

Not today (? - I don't know why); but normally I'm using a slightly modified 
'first-setup.bat' calling mtxrun automatically.

So if you thought this would be useful (actually it may depend on whether an 
explicit 'mtxrun --generate' after update is necessary what I don't know - 
always reality shows me), it might be good to add the call to the end of 
first-setup.bat (see the attached first-setup-alt.bat).


Best regards,

Lukas@echo off

setlocal

echo okay  ok.log
ruby -e File.delete('ok.log')
if not exist ok.log goto okay

echo.
echo You need to install Ruby first (if you want to use pdfTeX or XeTeX).
echo Fetching files anyway.
echo.

:okay


set OWNPATH=%~dp0
set CONTEXTROOT=%OWNPATH%tex

set PATH=%OWNPATH%bin;%CONTEXTPATH%\texmf-mswin\bin;%PATH%

set CYGWIN=nontsec

rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' --exclude 
'cygiconv-2.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ bin

mtxrun --script ./bin/mtx-update.lua --force --update --make --engine=all 
--context=beta --texroot=%CONTEXTROOT% %*

echo.
echo When you want to use context, you need to initialize the tree with:
echo.
echo   %CONTEXTROOT%\setuptex.bat %CONTEXTROOT%
echo.
echo You can associate this command with a shortcut to the cmd prompt.
echo.

if not exist ok.log goto end

echo.
echo If you want to use pdfTeX or XeTeX you need to install Ruby first.
echo Remake formats or rerun this script afterwards.
echo.

del /q ok.log

:end

endlocal

call tex/setuptex.bat

mtxrun.exe --generate
___
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

2011-01-25 Thread Marco Pessotto
Andreas Harder ahar...@uni-koblenz.de writes:

 Am 25.01.2011 um 21:18 schrieb Marco Pessotto:

 Hans Hagen pra...@wxs.nl writes:
 
 - If you are adventurous you can add the following to cont-new.mkiv
 
   \enablemode[*nofonts]
 
 This will postpone font loading and will be default soon. This saves
 runtime when you use another font than latin modern. When no font is
 loaded before the first \starttext, modern will kick in. A side effect
 is that any text typeset before \starttext will not show up in the
 output. If you observe that, you need to setup a bodyfont explicitly
 beforehand. In practice there should be no problems. The delayed
 loading is somewhat tricky but has been tested for a while.
 
 
 If felt adventurous and I found the following problem:
 
  minimal example 
 \usetypescript[libertine]
 \setupbodyfont[libertine,12pt]
 
 \starttext
 \startitemize[1]
 \item one
 \item two
 \stopitemize
 \stoptext
  end 
 
 It fails because itemize seems to require some math characters (the
 bullets) and the libertine font seems not to have them. lmodern don't
 kick in, it just fails:

 Works for me with the latest minimals. For Libertine bullets you can use the 
 following:

 \setupbodyfont[libertine]
 \definesymbol[1][•] % otherwise LMMathSymbols10-Regular

 \starttext
 \startitemize
 \item one
 \item two
 \stopitemize
 \stoptext

 Greeting
   Andreas


Just to be sure I've updated the Minimals, but with 

 \enablemode[*nofonts]

in cont-new.mkiv it fails.

I don't need a workaround, because I can comment out the *nofonts in the
cont-new.mkiv (which was added by myself). I was just reporting a
problem, as asked (IIRC).


$ context prova.tex 

MTXrun | run 1: luatex 
--fmt=/home/melmoth/usr/context/tex/texmf-cache/luatex-cache/context/161a8cd09bbec9213c251f73843e59e3/formats/cont-en
 
--lua=/home/melmoth/usr/context/tex/texmf-cache/luatex-cache/context/161a8cd09bbec9213c251f73843e59e3/formats/cont-en.lui
 --backend=pdf ./prova.texThis is LuaTeX, Version beta-0.65.0-2010121316 
 \write18 enabled.
(prova.tex
jobcontrol   resuming randomizer with 0.71793062133618

ConTeXt  ver: 2011.01.25 13:17 MKIV  fmt: 2011.1.25  int: english/english

system  : cont-new.mkiv loaded
(/home/melmoth/usr/context/tex/texmf-context/tex/context/base/cont-new.mkiv
systems : beware: some patches loaded from cont-new.mkiv
)
system  : prova.top loaded
(prova.top)
fonts   : latin modern fonts are not preloaded
language: language en is active
(/home/melmoth/usr/context/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(/home/melmoth/usr/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/melmoth/usr/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
systems : begin file prova.tex at line 5
! Math error: parameter \Umathquad\displaystyle is not set.
\mathematics ...rmalstartimath #1\normalstopimath 
  \fi 
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname 
  \relax }\relax 
\donormalsymbol ...bol \redosymbol \currentsymbol 
  \fi \fi 
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname 
  \relax }\relax 
\donormalsymbol ...bol \redosymbol \currentsymbol 
  \fi \fi 
to be read again 
   }
...
l.7 \item o
   ne
? ?
Type return to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.
? X
mkiv lua stats : used config file  - 
/home/melmoth/usr/context/tex/texmf/web2c/texmfcnf.lua
mkiv lua stats : used cache path   - 
/home/melmoth/usr/context/tex/texmf-cache/luatex-cache/context/161a8cd09bbec9213c251f73843e59e3
mkiv lua stats : input load time   - 0.015 seconds
mkiv lua stats : stored bytecode data  - 265 modules, 56 tables, 321 chunks
mkiv lua stats : cleaned up reserved nodes - 30 nodes, 9 lists of 412
mkiv lua stats : node memory usage - 1 hlist, 1 math, 2 glue, 1 noad, 1 
math_char, 19 attribute, 20 glue_spec, 4 attribute_list, 2 temp, 7 if_stack, 1 
local_par, 3 dir
mkiv lua stats : node list callback tasks  - 6 unique task lists, 2 instances 
(re)created, 1773 calls
mkiv lua stats : used backend  - pdf (backend for directly 
generating pdf output)
mkiv lua stats : loaded patterns   - en::2
mkiv lua stats : callbacks - direct: 1788, indirect: 2937, 
total: 4725
mkiv lua stats : result saved in file  - prova.pdf
mkiv lua stats : loaded fonts  - 1 files: fxlr.otf
mkiv lua stats : fonts load time   - 0.101 seconds 
mkiv lua stats : luatex banner - this is luatex, version 
beta-0.65.0-2010121316
mkiv lua stats

Re: [NTG-context] new beta

2011-01-25 Thread Marco Pessotto
Aditya Mahajan adit...@umich.edu writes:

 On Tue, 25 Jan 2011, Marco Pessotto wrote:

 Hans Hagen pra...@wxs.nl writes:

 - If you are adventurous you can add the following to cont-new.mkiv

\enablemode[*nofonts]

 This will postpone font loading and will be default soon. This saves
 runtime when you use another font than latin modern. When no font is
 loaded before the first \starttext, modern will kick in. A side effect
 is that any text typeset before \starttext will not show up in the
 output. If you observe that, you need to setup a bodyfont explicitly
 beforehand. In practice there should be no problems. The delayed
 loading is somewhat tricky but has been tested for a while.


 If felt adventurous and I found the following problem:

  minimal example 
 \usetypescript[libertine]
 \setupbodyfont[libertine,12pt]

 \starttext
 \startitemize[1]
 \item one
 \item two
 \stopitemize
 \stoptext
  end 

 Can you test if

 \setupbodyfont[libertine,12pt]
 \starttext
 $ABC \bullet \star$
 \stoptext

 also fails?


Yes. Full log here

melmoth@universe:/tmp$ context --version

MTXrun | main context file: 
/home/melmoth/usr/context/tex/texmf-context/tex/context/base/context.mkiv
MTXrun | current version: 2011.01.25 13:17
melmoth@universe:/tmp$ cat prova.tex 
 minimal example 
\usetypescript[libertine]
\setupbodyfont[libertine,12pt]
\starttext
$ABC \bullet \star$
\stoptext
 end 
melmoth@universe:/tmp$ context prova.tex 

MTXrun | run 1: luatex 
--fmt=/home/melmoth/usr/context/tex/texmf-cache/luatex-cache/context/161a8cd09bbec9213c251f73843e59e3/formats/cont-en
 
--lua=/home/melmoth/usr/context/tex/texmf-cache/luatex-cache/context/161a8cd09bbec9213c251f73843e59e3/formats/cont-en.lui
 --backend=pdf ./prova.texThis is LuaTeX, Version beta-0.65.0-2010121316 
 \write18 enabled.
(prova.tex
jobcontrol   resuming randomizer with 0.71793062133618

ConTeXt  ver: 2011.01.25 13:17 MKIV  fmt: 2011.1.25  int: english/english

system  : cont-new.mkiv loaded
(/home/melmoth/usr/context/tex/texmf-context/tex/context/base/cont-new.mkiv
systems : beware: some patches loaded from cont-new.mkiv
)
system  : prova.top loaded
(prova.top)
fonts   : latin modern fonts are not preloaded
language: language en is active
(/home/melmoth/usr/context/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(/home/melmoth/usr/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/melmoth/usr/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
systems : begin file prova.tex at line 4
! Math error: parameter \Umathquad\displaystyle is not set.
l.5 $ABC \bullet \star$
   
? ?
Type return to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.
? H
Sorry, but I can't typeset math unless various parameters have
been set. This is normally done by loading special math fonts
into the math family slots. Your font set is lacking at least
the parameter mentioned earlier.
? X
mkiv lua stats : used config file  - 
/home/melmoth/usr/context/tex/texmf/web2c/texmfcnf.lua
mkiv lua stats : used cache path   - 
/home/melmoth/usr/context/tex/texmf-cache/luatex-cache/context/161a8cd09bbec9213c251f73843e59e3
mkiv lua stats : input load time   - 0.015 seconds
mkiv lua stats : stored bytecode data  - 265 modules, 56 tables, 321 chunks
mkiv lua stats : cleaned up reserved nodes - 30 nodes, 9 lists of 412
mkiv lua stats : node memory usage - 1 hlist, 1 math, 1 glue, 5 noad, 5 
math_char, 57 attribute, 18 glue_spec, 10 attribute_list, 1 temp, 1 local_par, 
2 dir
mkiv lua stats : node list callback tasks  - 6 unique task lists, 2 instances 
(re)created, 1767 calls
mkiv lua stats : used backend  - pdf (backend for directly 
generating pdf output)
mkiv lua stats : loaded patterns   - en::2
mkiv lua stats : callbacks - direct: 1782, indirect: 2932, 
total: 4714
mkiv lua stats : result saved in file  - prova.pdf
mkiv lua stats : loaded fonts  - 1 files: fxlr.otf
mkiv lua stats : fonts load time   - 0.102 seconds 
mkiv lua stats : luatex banner - this is luatex, version 
beta-0.65.0-2010121316
mkiv lua stats : control sequences - 29324 of 165536
mkiv lua stats : current memory usage  - 18 MB (ctx: 19 MB)
mkiv lua stats : runtime   - 14.364 seconds

 Seems like a bug. If no math typescripts are defined, the fallback
 should have been loaded. (In any case, the libertine typescript should
 use either txfonts or perhaps xits as the default math fonts).

 Aditya

Cheers

-- 
Marco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg

Re: [NTG-context] mptopdf (broken again)

2011-01-13 Thread luigi scarso
On Wed, Jan 12, 2011 at 6:12 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 2011/1/12 Michal Kvasnička prgo...@gmail.com:
 Hallo.

 I tried mtxrun --script mptopdf chart08.1 but I've got the following error.

 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
  \write18 enabled.
 entering extended mode
 [MP to PDF]
 (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m
 ap/pdftex/plain/pdftex.map}) [1]
 !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found
  == Fatal error occurred, no output PDF file produced!

 I have tried to compile the following example:

 beginfig(1);
 draw btex $x+1=2$ etex;
 endfig;
 end.
It seems related to mpost.



Saving this to mpost.map

lmmi10 LMMathItalic10-Regular enclmmathit ReEncodeFont
lm-mathit.enc lmmi10.pfb
lmmi12 LMMathItalic12-Regular enclmmathit ReEncodeFont
lm-mathit.enc lmmi12.pfb
lmmi5 LMMathItalic5-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi5.pfb
lmmi6 LMMathItalic6-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi6.pfb
lmmi7 LMMathItalic7-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi7.pfb
lmmi8 LMMathItalic8-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi8.pfb
lmmi9 LMMathItalic9-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi9.pfb
lmmib10 LMMathItalic10-Bold enclmmathit ReEncodeFont lm-mathit.enc
lmmib10.pfb
lmmib5 LMMathItalic5-Bold enclmmathit ReEncodeFont lm-mathit.enc lmmib5.pfb
lmmib7 LMMathItalic7-Bold enclmmathit ReEncodeFont lm-mathit.enc lmmib7.pfb
rm-lmr10 LMRoman10-Regular enclmrm ReEncodeFont lm-rm.enc lmr10.pfb
rm-lmr12 LMRoman12-Regular enclmrm ReEncodeFont lm-rm.enc lmr12.pfb
rm-lmr17 LMRoman17-Regular enclmrm ReEncodeFont lm-rm.enc lmr17.pfb
rm-lmr5 LMRoman5-Regular enclmrm ReEncodeFont lm-rm.enc lmr5.pfb
rm-lmr6 LMRoman6-Regular enclmrm ReEncodeFont lm-rm.enc lmr6.pfb
rm-lmr7 LMRoman7-Regular enclmrm ReEncodeFont lm-rm.enc lmr7.pfb
rm-lmr8 LMRoman8-Regular enclmrm ReEncodeFont lm-rm.enc lmr8.pfb
rm-lmr9 LMRoman9-Regular enclmrm ReEncodeFont lm-rm.enc lmr9.pfb
rm-lmri10 LMRoman10-Italic enclmrm ReEncodeFont lm-rm.enc lmri10.pfb
rm-lmri12 LMRoman12-Italic enclmrm ReEncodeFont lm-rm.enc lmri12.pfb
rm-lmri7 LMRoman7-Italic enclmrm ReEncodeFont lm-rm.enc lmri7.pfb
rm-lmri8 LMRoman8-Italic enclmrm ReEncodeFont lm-rm.enc lmri8.pfb
rm-lmri9 LMRoman9-Italic enclmrm ReEncodeFont lm-rm.enc lmri9.pfb
rm-lmro10 LMRomanSlant10-Regular enclmrm ReEncodeFont lm-rm.enc lmro10.pfb
rm-lmro12 LMRomanSlant12-Regular enclmrm ReEncodeFont lm-rm.enc lmro12.pfb
rm-lmro17 LMRomanSlant17-Regular enclmrm ReEncodeFont lm-rm.enc lmro17.pfb
rm-lmro8 LMRomanSlant8-Regular enclmrm ReEncodeFont lm-rm.enc lmro8.pfb
rm-lmro9 LMRomanSlant9-Regular enclmrm ReEncodeFont lm-rm.enc lmro9.pfb

and test.mp

prologues:=3;
beginfig(1);
draw btex $x+1=2$ etex;
endfig;
end.

I have still an error

This is MetaPost, version 1.503 (kpathsea version 6.0.0)

mpost: Not writing to .log (openout_any = p).
! I can't write on file `.log'.
Please type another transcript file name:

Under linux I can bypass this error with

#echo test | mpost  --jobname=test test.mp

The result eps has all the fonts subsetted.



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


<    2   3   4   5   6   7   8   9   10   11   >