Re: [NTG-context] How to enable tabular numerals with simplefonts and otf?

2012-06-10 Thread Wolfgang Schuster

Am 10.06.2012 um 00:01 schrieb Peter Münster:

 Hi,
 
 How can I enable tabular numerals please?
 
 Test file, that does not work:
 
 --8---cut here---start-8---
 \usemodule[simplefonts]
 \setmainfont[LinLibertineIO][size=10pt, tnum=yes]
 \starttext
 \addff{tnum}
 \setff{tnum}
 565656565656X\par
 X
 \stoptext
 --8---cut here---end---8---

\usemodule[simplefonts]

\definefontfeature[default][default][tnum=yes]

\setmainfont[Linux Libertine O]

\setupbodyfont[10pt]

\starttext
565656565656X\par
X
\stoptext


or


\definefontfeature[default][default][tnum=yes]

\setupbodyfont[libertine,10pt]

\starttext
565656565656X\par
X
\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] letter: errors with foot=gbrief

2012-06-10 Thread Wolfgang Schuster

Am 07.06.2012 um 15:23 schrieb Peter Münster:

 Hello,
 
 This file generates some errors:
 
 --8---cut here---start-8---
 \usemodule[letter]
 \setupletterlayer[foot][alternative=gbrief]
 \startletter[phone=123]
 test
 \stopletter
 --8---cut here---end---8---
 
 Workaround:
 
 --8---cut here---start-8---
 \setuplettertext[en][address=Address]
 \setinterfaceconstant {street}{street}
 \setinterfaceconstant {city}  {city}
 \setinterfaceconstant {phone} {phone}
 \setinterfaceconstant {email} {email}
 \setinterfaceconstant {bankname}  {bankname}
 \setinterfaceconstant {banknumber}{banknumber}
 \setinterfaceconstant {accountnumber} {accountnumber}
 --8---cut here---end---8---

I added them but there can be know other problems because I made more changes 
in the labels regarding constants/variables.

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] [***SPAM***] Spelling Checker

2012-06-10 Thread hwitloc

What are some of the tools available for English spelling checkers or filters 
for existing software such as aspell (aspell's context filter is not a ConTeX 
filter). 

What are people using for which platform?

Thanks
___
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] Spelling Checker

2012-06-10 Thread Mojca Miklavec
On Sun, Jun 10, 2012 at 2:18 PM,  hwit...@gmail.com wrote:

 What are some of the tools available for English spelling checkers or filters 
 for existing software such as aspell (aspell's context filter is not a ConTeX 
 filter).

 What are people using for which platform?

I'm usually trying to convince the editor to do the spell checking for
me. On Mac I'm using TextMate editor which uses the system-wide
spell-checker. I installed Aspell with support for my native language
(which is not part of the set offered by operating system).

I also used spellchecker in Vim which offers its own solution, but I
never bothered about filters. Usually the text editor with
appropriate syntax highlighter already knows what belongs to text and
what belongs to commands (and should not be checked for spelling
errors).

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] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
How can I setup a font -name, size, etc- inside a startuseMPgraphic
environment?

\startuseMPgraphic{map}

\stopuseMPgraphic
___
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] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster

Am 10.06.2012 um 16:25 schrieb Alfredo Catalina:

 How can I setup a font -name, size, etc- inside a startuseMPgraphic 
 environment?
  
 \startuseMPgraphic{map}
  
 \stopuseMPgraphic

- http://wiki.contextgarden.net/Command/defineMPinstance
- http://wiki.contextgarden.net/Command/setupMPinstance

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] Change font in \startuseMPgraphic

2012-06-10 Thread Meer, H. van der
Being interested I looked up these links in the garden.
The information given there is scarce, however.
The parameters 'extensions' and 'initializations' with values yes/no 
especially. What are they for? What is the effect of yes/no? What exactly are 
these extensions and initializations?
Is there documentation somewhere?

Thanks in advance,
Hans van der Meer



On 10 jun. 2012, at 17:25, Wolfgang Schuster wrote:


Am 10.06.2012 um 16:25 schrieb Alfredo Catalina:

How can I setup a font -name, size, etc- inside a startuseMPgraphic environment?

\startuseMPgraphic{map}

\stopuseMPgraphic

- http://wiki.contextgarden.net/Command/defineMPinstance
- http://wiki.contextgarden.net/Command/setupMPinstance

Wolfgang

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

maillist : ntg-context@ntg.nlmailto: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] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster

Am 10.06.2012 um 18:23 schrieb Meer, H. van der:

 Being interested I looked up these links in the garden.
 The information given there is scarce, however.
 The parameters 'extensions' and 'initializations' with values yes/no 
 especially. What are they for? What is the effect of yes/no? What exactly are 
 these extensions and initializations?

You can control whether the content of the \startMPextensions and 
\startMPinitializations environment is used or ignored in the metapost code.

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] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
I'm sorry but I don't know how to use them. I've tried

\setupMPinstance [metafun] [textcolor=red]

and got an undefined control sequence error.

I've also tried

\startMPenvironment [global]
\usetypescript[palatino][ec]
\switchtobodyfont[palatino,7pt]
\stopMPenvironment

and it changed the font size but the font type is not palatino.

thanks
On Sun, Jun 10, 2012 at 5:25 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 10.06.2012 um 16:25 schrieb Alfredo Catalina:

  How can I setup a font -name, size, etc- inside a startuseMPgraphic
 environment?
 
  \startuseMPgraphic{map}
 
  \stopuseMPgraphic

 - http://wiki.contextgarden.net/Command/defineMPinstance
 - http://wiki.contextgarden.net/Command/setupMPinstance

 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] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster

Am 10.06.2012 um 18:40 schrieb Alfredo Catalina:

 I'm sorry but I don't know how to use them. I've tried
  
 \setupMPinstance [metafun] [textcolor=red]
  
 and got an undefined control sequence error.
  
 I've also tried
  
 \startMPenvironment [global]
 \usetypescript[palatino][ec]
 \switchtobodyfont[palatino,7pt]
 \stopMPenvironment
  
 and it changed the font size but the font type is not palatino.

1. Do you use MkII or MkIV?

2. Do you want Palatino only for the metapost labels or also for the main font 
in the document?

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] TeXlive 2012 (testing again)

2012-06-10 Thread Marco Pessotto

Hello there.

I can't get (again) the fonts installed in the texmf-local directory in
the TeXlive 2012 pretest.

It's quite possible I'm doing something wrong (but I recall that putting
the files under texmf-local/fonts/data was enough to get them
imported). 

Setup:

find texmf-local/fonts/data/  -type f -exec md5sum {} \;
25e5b8b98c516abdf0d2815067d691d6  texmf-local/fonts/data/charis/CharisSIL-I.ttf
61c9cd7d9ffd2e149ad586945b135e55  texmf-local/fonts/data/charis/CharisSIL-BI.ttf
76c44f99f6209ecea79724429dbcba3e  texmf-local/fonts/data/charis/CharisSIL-B.ttf
d39f8f29432ac164dae8bb1dfd5eeb3b  texmf-local/fonts/data/charis/Andika-R.ttf
20becdd98504161dc918be59c47e2268  texmf-local/fonts/data/charis/CharisSIL-R.ttf
79d2b1fe536079a3c69069f7961e8436  
texmf-local/fonts/data/leaguegothic/League_Gothic.otf

The configuration is the same that an older (texlive-pretest)
installation one:

pwd
/media/data/melmoth/tex-live-hacking/tl2012-june
[18:28] melmoth@universe:/media/data/melmoth/tex-live-hacking/tl2012-june$ find 
texmf-local/fonts/data/  -type f -exec md5sum {} \; | (cd ../install-dir/   
md5sum -c -)
texmf-local/fonts/data/charis/CharisSIL-I.ttf: OK
texmf-local/fonts/data/charis/CharisSIL-BI.ttf: OK
texmf-local/fonts/data/charis/CharisSIL-B.ttf: OK
texmf-local/fonts/data/charis/Andika-R.ttf: OK
texmf-local/fonts/data/charis/CharisSIL-R.ttf: OK
texmf-local/fonts/data/leaguegothic/League_Gothic.otf: OK

Minimal example:

\setupbodyfont[charissil,11pt]
\definefont[AuxFont][file:League_Gothic sa *]

\starttext
test test test
{\AuxFont hello}
\stoptext


mtxrun --script fonts --reload

[...]
 /media/data/melmoth/tex-live-hacking/tl2012-june/texmf-local for ttf files
fonts   | names | 4 entries found, 0 ttf files checked, 0 okay
fonts   | names | scanning 
[...]

mtxrun --script fonts --list --method=file --all | grep -i char = empty

This is LuaTeX, Version beta-0.70.2-2012052323 (TeX Live 2012)
mtx-context | current version: 2012.05.30 11:26

The same mtxrun produced:

fonts   | names | scanning 
/media/data/melmoth/tex-live-hacking/install-dir/texmf-local for ttf files
fonts   | names | 18 entries found, 10 ttf files checked, 10 okay

mtx-context | current version: 2012.05.29 00:12
This is LuaTeX, Version beta-0.70.2-2012052323 (TeX Live 2012)


Best wishes.

-- 
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] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina

 1. Do you use MkII or MkIV?

 2. Do you want Palatino only for the metapost labels or also for the main
 font in the document?




I am using MkIV. Whether it is possible I would like to use a different
font for the metapost labels.
___
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] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster

Am 10.06.2012 um 18:56 schrieb Alfredo Catalina:

 1. Do you use MkII or MkIV?
 
 2. Do you want Palatino only for the metapost labels or also for the main 
 font in the document? 
 
  I am using MkIV. Whether it is possible I would like to use a different font 
 for the metapost labels.

\setupbodyfont[pagella,11pt]

%\setupMPinstance[metafun][textstyle=sans]
\setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]

\starttext

\input knuth

\startMPcode
draw textext(I’m different!) ;
\stopMPcode

\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] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
 \setupbodyfont[pagella,11pt]

 %\setupMPinstance[metafun][textstyle=sans]
 \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]

 \starttext

 \input knuth

 \startMPcode
 draw textext(I’m different!) ;
 \stopMPcode

 \stoptext




It gives an error:

! Undefined control sequence.
system   tex  error on line 1 in file GeneraMapa.tex: Undefined
control sequence ...
1   \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]
2
3 \setuppagenumbering[location=]
4 \starttext
5 \input ./mapa.tex
6 \useMPgraphic{mapa}
7 \stoptext
8
l.1 \setupMPinstance
[metafun][textstyle={\switchtobodyfont[termes,14pt]}]
?
___
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] Change font in \startuseMPgraphic

2012-06-10 Thread Aditya Mahajan

On Sun, 10 Jun 2012, Alfredo Catalina wrote:


\setupbodyfont[pagella,11pt]

%\setupMPinstance[metafun][textstyle=sans]
\setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]

\starttext

\input knuth

\startMPcode
draw textext(I’m different!) ;
\stopMPcode

\stoptext





It gives an error:

! Undefined control sequence.
system   tex  error on line 1 in file GeneraMapa.tex: Undefined
control sequence ...
1   \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]
2
3 \setuppagenumbering[location=]
4 \starttext
5 \input ./mapa.tex
6 \useMPgraphic{mapa}
7 \stoptext
8
l.1 \setupMPinstance
   [metafun][textstyle={\switchtobodyfont[termes,14pt]}]
?


You need to upgrade your ConTeXt installation.

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] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
On Sun, Jun 10, 2012 at 7:14 PM, Aditya Mahajan adit...@umich.edu wrote


 You need to upgrade your ConTeXt installation.




I installed context two weeks ago. I've just run

mtxrun --selfupdate
mtxrun --generate
luatools --generate
context --make
and I've got the same error. Any ideas?
___
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] preventing page breaks after headings

2012-06-10 Thread Alan Bowen
Is there a way in MKII to ensure that there is never a page break between a
heading and the following text?

\setuphead[after={\page[no]}] does not seem to work without entering
vertical mode before \page. But, so far, I have not found a way to enter
vertical mode in after={…} that does not add interlinespace and thus place
the text too far from the heading.

Any suggestion or alternatives?

Alan
___
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] preventing page breaks after headings

2012-06-10 Thread Wolfgang Schuster

Am 10.06.2012 um 20:52 schrieb Alan Bowen:

 Is there a way in MKII to ensure that there is never a page break between a 
 heading and the following text? 
 
 \setuphead[after={\page[no]}] does not seem to work without entering vertical 
 mode before \page. But, so far, I have not found a way to enter vertical mode 
 in after={…} that does not add interlinespace and thus place the text too far 
 from the heading.
 
 Any suggestion or alternatives?

Do you have a example where you get an unwanted page break because context 
tries to prevent it.

When you can’t make one in a short time try one of the following methods:


1. Insert a page break before the heading when not enough space is available.

\setuphead[…][before={\testpage[6]\blank[…]}]


2. Add a big penalty before the vertical space after the heading (don’t use 
this method in mkiv).

\setuphead[…][after={\nobreak\blank[…]}]


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] Page break before sections

2012-06-10 Thread Aditya Mahajan

Hi,

I don't get a page break before sections if I use 
\setuphead[...][page=yes]. Has the syntax of the command changed? (I am 
using 2012.06.08)



\setuphead[chapter][page=yes]
\setuphead[section][page=yes]

\starttext
\chapter{One} \input ward
\section{Two} \input knuth

\chapter{One} \input ward
\section{Two} \input knuth
\stoptext

Aditya


test.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Page break before sections

2012-06-10 Thread Wolfgang Schuster

Am 10.06.2012 um 21:17 schrieb Aditya Mahajan:

 Hi,
 
 I don't get a page break before sections if I use \setuphead[...][page=yes]. 
 Has the syntax of the command changed? (I am using 2012.06.08)

That’s a feature and you have to add “continue=no” to the “section” setup.

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] Page break before sections

2012-06-10 Thread Aditya Mahajan

On Sun, 10 Jun 2012, Aditya Mahajan wrote:


Hi,

I don't get a page break before sections if I use \setuphead[...][page=yes]. 
Has the syntax of the command changed? (I am using 2012.06.08)


s/section/subsection/g works!

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] Page break before sections

2012-06-10 Thread Aditya Mahajan

On Sun, 10 Jun 2012, Wolfgang Schuster wrote:



Am 10.06.2012 um 21:17 schrieb Aditya Mahajan:


Hi,

I don't get a page break before sections if I use \setuphead[...][page=yes]. 
Has the syntax of the command changed? (I am using 2012.06.08)


That’s a feature and you have to add “continue=no” to the “section” setup.


Thanks. Of course, everything is fine with contine=no.

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] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster

Am 10.06.2012 um 20:07 schrieb Alfredo Catalina:

 
 
 On Sun, Jun 10, 2012 at 7:14 PM, Aditya Mahajan adit...@umich.edu wrote
 
 You need to upgrade your ConTeXt installation.
 
  
 I installed context two weeks ago. I've just run
  
 mtxrun --selfupdate
 mtxrun --generate
 luatools --generate
 context --make
 and I've got the same error. Any ideas?

Do you use TeXLive or the ConTeXt Suite (installation from the context wiki)?

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] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
On Sun, Jun 10, 2012 at 9:29 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Do you use TeXLive or the ConTeXt Suite (installation from the context
 wiki)?



ConTeXt Suite
___
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] TeXlive 2012 (testing again)

2012-06-10 Thread Hans Hagen

On 10-6-2012 18:39, Marco Pessotto wrote:


Hello there.

I can't get (again) the fonts installed in the texmf-local directory in
the TeXlive 2012 pretest.

It's quite possible I'm doing something wrong (but I recall that putting
the files under texmf-local/fonts/data was enough to get them
imported).


texmf-local is one of the paths that get prescanned so did you run
mtxrun --generate?

-
  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] back-up.lua; mtx-epub.lua

2012-06-10 Thread Hans Hagen

On 9-6-2012 14:58, Andy Thomas wrote:


On Jun 9, 2012, at 1:31 AM, Hans Hagen wrote:


On 8-6-2012 23:28, Andy Thomas wrote:

Thank you for the suggestions. I will try to implement it, but might need until 
Sunday.


- I've added some keys to \setupexport:

  author
  title
  subtitle
  firstpage (also new key in mult)
  lastpage  (aso new key in mult)

- The title, subtitle and author inherit from \setupinteraction which already 
inherits from \setupdocument (metadata namespace).

- In mtx-epub these variables are picked up (from the epub job specification) 
and firstpage / lastpage are added to the images list.

Nothing has been checked and the firstpage/lastpage image names have to be 
pushed into some epub metadata blob I guess but that's for you to figure out in 
mtx-epub. It's probably best to assume that the images are present and suitable 
for epub.



I took the new keys and added the cover (page) generator to mtx-epub.lua. The 
name is hard coded (cover.xhtml), so if a user decides on naming the original 
file cover.tex...

The validator likes it, next is the hard part: generating a valid xhtml. Is the 
xhtml generator only for the epub, i.e. can it be changed or is another output 
file just for the epub appropriate?


the only issue is that css has no method for mapping a link which is why 
the exporter produces two files (xml and xhtml)



Calibre is already happy with it and shows it just fine. Please note that some 
ebook readers (e.g. apple devices, calibre) have a nasty caching mechanism. If 
you want to see the new changes, I found that it is best to delete the old book 
before replacing it.

Andy

https://dl.dropbox.com/u/9089117/mtx-epub_4.lua


xmlns + doctype is probably a bit over the top for the coverpage


P.S. I have no clue, why 'images[firstpage] = firstpage' works. I would expect 
'images[#images+1] = firstpage'


it's a hash mapping names onto real names (as we can have converted images)

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] back-up.lua; mtx-epub.lua

2012-06-10 Thread Andy Thomas

On Jun 11, 2012, at 12:21 AM, Hans Hagen wrote:

 The validator likes it, next is the hard part: generating a valid xhtml. Is 
 the xhtml generator only for the epub, i.e. can it be changed or is another 
 output file just for the epub appropriate?
 
 the only issue is that css has no method for mapping a link which is why the 
 exporter produces two files (xml and xhtml)

I get an error by the epub validator if I feed it the generated epub. The 
content file is:

-START
?xml version='1.0' encoding='UTF-8' standalone='yes' ?

!-- input filename   : test_00   --
!-- processing date  : Mon Jun 11 07:03:39 2012 --
!-- context version  : 2012.06.11 00:21  --
!-- exporter version : 0.30  --


document xmlns:m=http://www.w3.org/1998/Math/MathML; version=0.30 
language=de date=Mon Jun 11 07:03:39 2012 file=test_00 
context=2012.06.11 00:21 xmlns:xhtml=http://www.w3.org/1999/xhtml;
Hello world!
/document
-END

the error is:

-START
Epubcheck Version 3.0b5

Validating against EPUB version 2.0
ERROR: test_00.epub/OEBPS/test_00.xhtml(9,202): elements from namespace  are 
not allowed

Check finished with warnings or errors
-END

A possible validatable file would be

-START
?xml version=1.0 encoding=UTF-8 ?

!-- input filename   : test_00   --
!-- processing date  : Sat Jun  9 14:36:39 2012 --
!-- context version  : 2012.06.09 01:22  --
!-- exporter version : 0.30  --

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN 
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
  head
titleTITLE/title
  /head
  body
  div id=test_00
  Hello world!
  /div
  /body
/html
-END

It just wraps the filename without extension in title plus head and the main 
part in body plus a div. However, I did not try, yet, how many or which devices 
can read it just fine.

 
 Calibre is already happy with it and shows it just fine. Please note that 
 some ebook readers (e.g. apple devices, calibre) have a nasty caching 
 mechanism. If you want to see the new changes, I found that it is best to 
 delete the old book before replacing it.
 
 Andy
 
 https://dl.dropbox.com/u/9089117/mtx-epub_4.lua
 
 xmlns + doctype is probably a bit over the top for the coverpage

I slavishly follow the mandatory epub specification and then add some things to 
make common devices work. Calibre, Adobe Digital Editions and Apple devices 
want a xhtml cover page in a very special way and ignore the cover image 
otherwise. The next thing I would add is a toc.xhtml. Here, a Kindle ignores 
the toc.ncx and wants a html toc as well. Unfortunately, this blows up 
mtx-epub, but at least that is the last issue with reading devices that I know.

Andy




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