Re: [NTG-context] \setupinterlinespace questions

2011-01-10 Thread Florian Wobbe
> Hi Florian,
> 
> can I interest you in some columnsets?
> 
> ··8<·
> 
> \definecolumnset[three][n=3]
> \starttext
> \startcolumnset[three]
> \setupinterlinespace[small]
> \input knuth
> \column
> \setupinterlinespace[medium]
> \input knuth
> \column
> \setupinterlinespace[big]
> \input knuth
> \stopcolumnset
> \stoptext
> 
> ··8<·
> 
> This should get you even columns.

Great, thank you!

Florian

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

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


Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Norbert Preining
Hi Aditya, hi all,

On Mo, 10 Jan 2011, Aditya Mahajan wrote:
> Assuming that Norbert packaged ConTeXt package in debian testing, I am  
> CCing this message to him.

So it seems that current Context has changed something, anyone can help
me here?

Up to now I did:
export TEXMFCNF=/usr/share/texmf/web2c
luatools --generate --verbose
after which everything was working.

Now I get:
[~] luatools --generate --verbose

MTXrun | resolvers: variable 'SELFAUTOLOC' set to '/usr/bin'
MTXrun | resolvers: variable 'SELFAUTODIR' set to '/usr'
MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '.'
MTXrun | resolvers: variable 'TEXMFCNF' set to '/usr/share/texmf/web2c'
MTXrun | resolvers: variable 'TEXMF' set to ''
MTXrun | resolvers: variable 'TEXOS' set to '/usr'
MTXrun | resolvers
MTXrun | resolvers: warning: no lua configuration files found
MTXrun | resolvers
MTXrun | forcing cache reload
MTXrun | resolvers: warning: no lua configuration files found
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-base.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'

BTW, why does this mtxrun not *SAY* what file it is searching for???
Just
warning: no lua configuration files found
is as useful as ... welll ... I stop here.


In /usr/share/texmf/web2c/ there is a contextcnf.lua which looks like:
return {

type= "configuration",
version = "1.0.2",
date= "2010-06-07",
time= "14:49:00",
comment = "ConTeXt MkIV configuration file",


Is there something missing?

Best wishes

Norbert

Norbert Preiningprein...@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094

Now it is such a bizarrely improbable coincidence that
anything so mindboggingly useful could have evolved purely
by chance that some thinkers have chosen to see it as the
final and clinching proof of the non-existence of God.
The argument goes something like this: `I refuse to prove
that I exist,' says God, `for proof denies faith, and
without faith I am nothing.'
The Babel fish is a dead giveaway, isn't
it? It could not have evolved by chance. It proves you
exist, and so therefore, by your own arguments, you don't.
QED.'
 --- Douglas Adams, The Hitchhikers Guide to the Galaxy
___
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] Hairline in header

2011-01-10 Thread 李延瑞
2011/1/11 Florian Wobbe :
>> \setupheader[text][after=\thinrule]
>> \setuplayout[header=1cm,headerdistance=1cm]
>> \starttext
>> \dorecurse{12}{\input knuth\par}
>> \stoptext
>
> Hi,
>
> how can I move the thinrule further up in this example? I'd like to use 
> \thinrule but still want the position like this:
>
> \setupheader[text][after=\hrule]
>

Hi Florian,

Maybe this can help you.

\setuplayout[header=1cm,headerdistance=1cm]
\setupheader[text][after=\vskip-0.8em\thinrule]
\starttext
\dorecurse{12}{\input knuth\par}
\stoptext

-- 
Best regards,

Li Yanrui (李延瑞)
___
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] the chart module broken

2011-01-10 Thread 李延瑞
Hi,

With beta 2011.01.10 17:55, the chart module is broken. For this
minimal example:

\usemodule[chart]

\starttext

\startFLOWchart[example]
\startFLOWcell
  \name {flow}
  \location {1,1}
  \text {Flow}
  \connection [rl] {chart}
\stopFLOWcell
\startFLOWcell
  \name {chart}
  \location{2,1}
  \text {Charts}
\stopFLOWcell
\stopFLOWchart

\FLOWchart[example]

\stoptext

I got the error:

(virtual://viafile.1) (virtual://viafile.2) (virtual://viafile.3
! Undefined control sequence.
\asciia ...LOLrulethickness ; connect_\cFLOWfrom_
  \cFLOWto (\FLOWfrom ,\zFLO...
\dostartMPdrawing ...data {\MPdrawingdata \asciia
  }\egroup
\dodoFLOWconnectionC ...ace [0,0,0]\stopMPdrawing
  \fi \fi \fi \ignorespaces
 ...text {Flow} \connection [rl] {chart}

\startFLOWcell ...FLOWconnectionC \ignorespaces #1
  \unskip
l.6 \stopFLOWcell

?

-- 
Best regards,

Li Yanrui
___
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] Which table environment?

2011-01-10 Thread Felix Ingram
Hello all,

I've been playing with the various table environments but I thought
I'd seek advice as to which would be the best for my requirements.

I need to be able to do the following:

- Repeating header row with coloured background and text (I can get
this working with TABLE but not tabulate).
- Multi-page tables (TABLE and tabulate are fine with these).
- Insert images in a cell (TABLE seems to handle this better than tabulate).
- Have rows that will split across pages - we will have large pieces
of text and images which will end up being taller than the page.
(tabulates paragraph support is the right sort of thing)
- Start next row on current page.
- Include other tables, lists etc in a cell (this is a "nice to have"
rather than a "must have")

The reason I need these various things is because Word acts this way
and I need to produce something similar (until we can argue for a
format change).

At the moment I'm leaning towards tabulate but I'm having issues with
images and the headers. I'm using Mk IV (bonus question: as a newbie,
should I just start with IV and ignore II? Or is II better for any
particular reason?).

Thanks in advance,

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

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


Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Aditya Mahajan

On Mon, 10 Jan 2011, Hilmar Preuße wrote:


Renaud AUBIN  nibua-r.org> writes:

Hi all,


I assume from minimals install script that you need to generate the
format with mtxrun --generate --tree="xxx" --some --options but failed
at this point…
Maybe Mojca or Arthur (as authors of bin/mtx-update.lua) could complete?

Anyway, the post-install script packaged with that .deb doesn't seem to
do the job for you…


Ineed, we don't do this. What it the purpose of this command and how to call it?


Earlier, there were some troubles with ConTeXt MkIV working in a 
multi-user setup (I don't know whether that is still the case or not). 
Therefore, the user has to run mtxrun --generate. This step cannot be done 
at the post-install stage; it has to be done manually  by the user. So, 
the best solution is to display a message to tell the user to run this 
command manually (I do something similar for the context-minimals package 
for archlinux that I maintain).



When running w/ option --generate I get:

hi...@sid:~ $ mtxrun --generate

MTXrun | resolvers: variable 'SELFAUTOLOC' set to '/usr/bin'
MTXrun | resolvers: variable 'SELFAUTODIR' set to '/usr'
MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '.'
MTXrun | resolvers: variable 'TEXMFCNF' set to ''


This step is wrong (because the binary is in /usr/bin). Compare this with 
what one gets in texlive:


'TEXMFCNF' set to 
'{$SELFAUTODIR,$SELFAUTOPARENT}{{,/share,}/texmf{-local,.local}/web2c}'


Because of the wrong setting of TEXMFCNF mtxrun does not read texmfcnf.lua 
file, and the rest of the command fails.


You can try

TEXMFCNF=/usr/share/texmf/web2c mtxrun --generate

and that should generate the database correctly.

I don't know what TEXMFCNF is being set incorrectly.

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] \lgroup in mkIV

2011-01-10 Thread Daniel Schopper

Just tried the new beta, works perfectly!
Thank you very very much!


Am 09.01.11 04:24, schrieb Aditya Mahajan:

On Sat, 8 Jan 2011, Khaled Hosny wrote:


On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote:

On Sat, 8 Jan 2011, Daniel Schopper wrote:


Hi,
are the delimiters \lgroup and \rgroup supported in MkIV?
This

\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with
MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the
delimiters are not shown. (By the way, the same holds true for
\rmoustache and \lmoustache.)



Am I missing something?


No. The math mappings of virtual fonts are incomplete. The symbols
should work correctly with unicode math fonts like cambria, asana,
and xits. But, it appears that lgroup and rgroup are missing from
xits (Khaled?)


There are, but context is looking for the wring character; it is looking
for U+3014 (which I think is a CJK bracket and does not look like
\lgroup either) while it should be looking for U+27EE (whose Unicode
annotation precisely says "lgroup"):

\setupbodyfont[xits]
\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\def\lgroup{\Udelimiter "4 "0 "27EE}
\def\rgroup{\Udelimiter "4 "0 "27EF}
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

It was not extensible though, the version in git now grow, but starts
with a relatively large size, check and tell me if it should be smaller.


Looks OK to me, but I am not really an expert on the shapes of the
symbols. Can you also make lmoustache and rmoustache extensible?

Hans, I am attaching the patch for char-def.lua that corrects the
location of lgroup and rgroup. I still do not know how to fix this for
lm virtual math font.

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
___

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

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


Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Jonas Stein
> I assume from minimals install script that you need to generate the
> format with mtxrun --generate --tree="xxx" --some --options but failed
> at this point…
> Maybe Mojca or Arthur (as authors of bin/mtx-update.lua) could complete?
>
> Anyway, the post-install script packaged with that .deb doesn't seem to
> do the job for you…

Same in the old "stable" .deb package. 
That will render the package unusable for many modules 
until the user fixes it manual as root, right?

kind regards,

-- 
Jonas Stein 

___
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] source code repos

2011-01-10 Thread Jonas Stein
on the wiki main page are many links to "the source code"

=
*  Source code 

The original source code Current Version and Beta Version 
Browse git and it's mirror 
Browse why outdated? 

* Documentation of the source code 
=

it appears only 
http://gitorious.org/context
is under active development, right?

kind regards,

-- 
Jonas Stein 

___
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] nice pictures for the wiki

2011-01-10 Thread Jonas Stein
>> btw: in the wiki are many private pictures of babys and so on is that
>> by purpose?
> http://wiki.contextgarden.net/Future_ConTeXt_Users

ok i see. funny page...

-- 
Jonas Stein 

___
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] \setupinterlinespace questions

2011-01-10 Thread Philipp Gesang
On 2011-01-10 <20:41:23>, Florian Wobbe wrote:
> Hi,
> 
> a) this minimal example does not work as expected. The first column is not 
> justified correctly on top. This does not change, even when swapping small, 
> big, medium (e.g. make 1st col medium and 2nd small). The offset stays the 
> same regardless of the linespacing.
> 
> \starttext
> \startcolumns[n=3]
> \setupinterlinespace[small]
> \input knuth
> \column
> \setupinterlinespace[medium]
> \input knuth
> \column
> \setupinterlinespace[big]
> \input knuth
> \stopcolumns
> \stoptext



Hi Florian,

can I interest you in some columnsets?

··8<·

\definecolumnset[three][n=3]
\starttext
\startcolumnset[three]
\setupinterlinespace[small]
\input knuth
\column
\setupinterlinespace[medium]
\input knuth
\column
\setupinterlinespace[big]
\input knuth
\stopcolumnset
\stoptext

··8<·

This should get you even columns.

(Btw, there’s also “\setuplocalinterlinespace” which behaves the
same as “\setupinterlinespace” except for some magic it does to
selected dimensions, see spac-ver.mkiv.)

Regards, Philipp




> 
> b) Is there a possibility to use relative sizes like 
> \setupinterlinespace[2*big] (which does not work)?
> 
> Best,
> Florian
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpN7VwY539uR.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \setupinterlinespace questions

2011-01-10 Thread Florian Wobbe
 b) Is there a possibility to use relative sizes like 
 \setupinterlinespace[2*big] (which does not work)?
>>> 
>>> You can write \setupinterlinespace[3].
>> 
>> Thanks!
>> 
>> Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the 
>> preamble? They only take effect inside \start... \stop...
> 
> \setupinterlinespace is reset with \starttext, when you don’t like
> setup-commands after \starttext use \startproduct.

Hmm, does not seem to work here. I have following setup:

\environment env_draft % <-- setting \setupinterlinespace[big] here
\startproduct
%\setupinterlinespace[big] % works except for references when uncommented
\input chapters
\usepublications[publications]
\placepublications
\stopproduct

\placepublications seems to reset linespacing as well.

Setting \setupinterlinespace[line=1.7em] works throughout the document.

Florian

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

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


Re: [NTG-context] \setupinterlinespace questions

2011-01-10 Thread Wolfgang Schuster

Am 10.01.2011 um 22:36 schrieb Florian Wobbe:

>>> b) Is there a possibility to use relative sizes like 
>>> \setupinterlinespace[2*big] (which does not work)?
>> 
>> You can write \setupinterlinespace[3].
> 
> Thanks!
> 
> Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the 
> preamble? They only take effect inside \start... \stop...

\setupinterlinespace is reset with \starttext, when you don’t like
setup-commands after \starttext use \startproduct.

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] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Hilmar Preuße
Renaud AUBIN  nibua-r.org> writes:

Hi all,

> I assume from minimals install script that you need to generate the
> format with mtxrun --generate --tree="xxx" --some --options but failed
> at this point…
> Maybe Mojca or Arthur (as authors of bin/mtx-update.lua) could complete?
> 
> Anyway, the post-install script packaged with that .deb doesn't seem to
> do the job for you…
> 
Indeed, we don't do this. What it the purpose of this command and how to call 
it?

When running w/ option --generate I get:

hi...@sid:~ $ mtxrun --generate

MTXrun | resolvers: variable 'SELFAUTOLOC' set to '/usr/bin'
MTXrun | resolvers: variable 'SELFAUTODIR' set to '/usr'
MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '.'
MTXrun | resolvers: variable 'TEXMFCNF' set to ''
MTXrun | resolvers: variable 'TEXMF' set to ''
MTXrun | resolvers: variable 'TEXOS' set to '/usr'
MTXrun | resolvers
MTXrun | resolvers: warning: no lua configuration files found
MTXrun | resolvers
MTXrun | resolvers

TEXMFCNF and TEXMF are empty, but they are set in
/usr/share/texmf/web2c/texmf.cnf:

TEXMFCNF = /usr/share/texmf/web2c;/usr/local/share/texmf/web2c
TEXMF =
{$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,\
!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFMAIN,!!$TEXMFDIST}

Thanks,
  Hilmar

___
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] \setupinterlinespace questions

2011-01-10 Thread Florian Wobbe
>> b) Is there a possibility to use relative sizes like 
>> \setupinterlinespace[2*big] (which does not work)?
> 
> You can write \setupinterlinespace[3].

Thanks!

Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the 
preamble? They only take effect inside \start... \stop...

Florian

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

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


Re: [NTG-context] nice pictures for the wiki

2011-01-10 Thread Wolfgang Schuster

Am 10.01.2011 um 21:51 schrieb Jonas Stein:

> btw: in the wiki are many private pictures of babys and so on is that
> by purpose?

http://wiki.contextgarden.net/Future_ConTeXt_Users

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] \setupinterlinespace questions

2011-01-10 Thread Wolfgang Schuster

Am 10.01.2011 um 20:41 schrieb Florian Wobbe:

> b) Is there a possibility to use relative sizes like 
> \setupinterlinespace[2*big] (which does not work)?

You can write \setupinterlinespace[3].

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] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Jonas Stein
> Now, I have installed the pointed package for testing and I confirm the
> result:

Thank you for testing.

I made a bugreport for Norbert.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609600

-- 
Jonas Stein 

___
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] Hairline in header

2011-01-10 Thread Florian Wobbe
> \setupheader[text][after=\thinrule] 
> \setuplayout[header=1cm,headerdistance=1cm] 
> \starttext 
> \dorecurse{12}{\input knuth\par} 
> \stoptext 

Hi,

how can I move the thinrule further up in this example? I'd like to use 
\thinrule but still want the position like this:

\setupheader[text][after=\hrule]

Florian

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

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


Re: [NTG-context] mkiv: verbatim lua eats my quotes

2011-01-10 Thread Thomas A. Schmitz

On Jan 10, 2011, at 2:14 PM, Hans Hagen wrote:

> On 9-1-2011 10:16, Thomas A. Schmitz wrote:
>> \starttext
>> 
>> \startLUA
>> require 'lpeg'
>> 
>> sep = lpeg.P(",")
>> \stopLUA
>> 
>> \stoptext
> 
> I'll put a beta on the ftp for testing. You can configure the string content 
> as well as the quotes.
> 
Hi Hans,

sorry, was away from my computer all day. Latest beta shows quotes in luacode 
again, so all is golden, thanks a lot!

Thomas

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

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


Re: [NTG-context] nice pictures for the wiki

2011-01-10 Thread Taco Hoekwater

On 01/10/2011 09:51 PM, Jonas Stein wrote:



- I didn't know LuaTeX can output SVG


I think i read this somewhere, but i am not shure...
changed this for now.


Metapost (so also mplib) can output svg, but not luatex itself.

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
___


Re: [NTG-context] nice pictures for the wiki

2011-01-10 Thread Jonas Stein
> Nice idea, but
> - I'd leave out the TeX box (TeX is part of LuaTeX)

changed this now.

> - perhaps make that ConTeXt label "Mk IV" or just "IV"

i do not understand. Why is "ConTeXt mkiv" not good?

> - perhaps show more input formats (pictures)?

changed this now.

> - I didn't know LuaTeX can output SVG

I think i read this somewhere, but i am not shure...
changed this for now.

> - perhaps show optional XML output (and even re-input for tagged PDF)?

i do not understand this. 

your suggestions are online now:
https://github.com/jonasstein/context-quickstart/tree/master/gfx

> BTW: Nice to see my ex-wife's cooking lion again ;-)
> There's another drawing by her: 
> http://wiki.contextgarden.net/Image:Gardeninglion.jpg

yes. It would be nice if we would have more graphics we can use free.

btw: in the wiki are many private pictures of babys and so on is that
by purpose?

kind regards,

-- 
Jonas Stein 

___
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] escape in verbatim text eats line breaks

2011-01-10 Thread Peter Münster
Hans Hagen  writes:

>> Is this a bug or am I missing something here?
>
> I get newlines here.

Minimal example:

\definetyping[Test][escape={/,/}]
\starttext
No line break between the blas:
\startTest
bla
/bla/
\stopTest
\stoptext

-- 
Peter Münster

Contact information: http://pmrb.free.fr/contact/
___
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] escape in verbatim text eats line breaks

2011-01-10 Thread Stefan Müller



On 10.01.2011 15:38, Hans Hagen wrote:

Is this a bug or am I missing something here?


I get newlines here.


I'm using minimals: ConTeXt version 2011.01.06 17:08

Just to clarify: My first line in the PDF result is
"sometexsometex \after"


Also "\setuptyping[TEX][escape=//]" seems to have no effect at all, "//"
is printed just like normal chars.


Actually in mkii it's

\setuptyping[TEX][escape=/]

\startTEX
/em sometex
\before /em sometex
\stopTEX


Does that mean the example on the wiki page is not correct?


and indeed in mkiv it does not work. I will provide a bit of backward
compatibility but keep in mind that in mkiv the \em change will cross
lines, so in this case the first sometex as well as \before will be
slanted.


Thanks and best regards,
Stefan
___
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] \setupinterlinespace questions

2011-01-10 Thread Florian Wobbe
Hi,

a) this minimal example does not work as expected. The first column is not 
justified correctly on top. This does not change, even when swapping small, 
big, medium (e.g. make 1st col medium and 2nd small). The offset stays the same 
regardless of the linespacing.

\starttext
\startcolumns[n=3]
\setupinterlinespace[small]
\input knuth
\column
\setupinterlinespace[medium]
\input knuth
\column
\setupinterlinespace[big]
\input knuth
\stopcolumns
\stoptext

b) Is there a possibility to use relative sizes like 
\setupinterlinespace[2*big] (which does not work)?

Best,
Florian

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

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


Re: [NTG-context] Gnuplot module: Patching of Gnuplot binary still needed?

2011-01-10 Thread jeroen . muskee
I have tried

texexec --make --all 

and changing line 484 from

\getfiguredimensions[\@@GNUPLOTresult]

into

\getfiguredimensions[\@@GNUPLOTfinalresult]

but neither is giving me any luck. Now also 

install-setup.bat --extras="t-gnuplot"

is not working anymore. Not sure what the issue is.

Jeroen

--
This message was sent on behalf of jeroen.mus...@hotmail.com at 
openSubscriber.com
http://www.opensubscriber.com/message/ntg-context@ntg.nl/14992530.html
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Renaud AUBIN
I assume from minimals install script that you need to generate the
format with mtxrun --generate --tree="xxx" --some --options but failed
at this point…
Maybe Mojca or Arthur (as authors of bin/mtx-update.lua) could complete?

Anyway, the post-install script packaged with that .deb doesn't seem to
do the job for you…

Renaud

Le 10/01/2011 19:36, Renaud AUBIN a écrit :
> Hi Aditya,
>
> Hum… OK, my english is not so good but "Tested on the following
> **ConTeXt minimals** version on an up-to-date debian" seems clear to me.
> And, you are right: /usr/local is one of the place to install stuff
> **not** installed by the debian package manager. ;)
>
> Now, I have installed the pointed package for testing and I confirm the
> result:
> MTXrun | forcing cache reload
> MTXrun | resolvers: warning: no lua configuration files found
> MTXrun | resolvers
> MTXrun | resolvers
> MTXrun | the resolver databases are not present or outdated
> MTXrun | resolvers: using suffix based filetype 'lua'
> MTXrun | resolvers: using suffix based filetype 'lua'
> MTXrun | resolvers: remembering file 'mtx-context.lua'
> MTXrun | resolvers: using suffix based filetype 'lua'
> MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
>
> Still investigating…
>
> Renaud
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Aditya Mahajan

Hi Renaud,

On Mon, 10 Jan 2011, Renaud AUBIN wrote:


Hum… OK, my english is not so good but "Tested on the following
**ConTeXt minimals** version on an up-to-date debian" seems clear to me.


I am sorry. I misread it.


And, you are right: /usr/local is one of the place to install stuff
**not** installed by the debian package manager. ;)


Of course :)


Now, I have installed the pointed package for testing and I confirm the
result:
MTXrun | forcing cache reload
MTXrun | resolvers: warning: no lua configuration files found
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-context.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

Still investigating…


I am not using debian or its derivatives, so I cannot test.

Assuming that Norbert packaged ConTeXt package in debian testing, I am 
CCing this message to him.


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] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Renaud AUBIN
Hi Aditya,

Hum… OK, my english is not so good but "Tested on the following
**ConTeXt minimals** version on an up-to-date debian" seems clear to me.
And, you are right: /usr/local is one of the place to install stuff
**not** installed by the debian package manager. ;)

Now, I have installed the pointed package for testing and I confirm the
result:
MTXrun | forcing cache reload
MTXrun | resolvers: warning: no lua configuration files found
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-context.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

Still investigating…

Renaud

Le 10/01/2011 19:14, Aditya Mahajan a écrit :
> On Mon, 10 Jan 2011, Renaud AUBIN wrote:
>
>> \stoptext % (missing in your code snippet)
>>
>> Tested on the following ConTeXt minimals version on an up-to-date debian
>> (amd64 unstable/experimental hybrid).
>> MTXrun | main context file:
>> /usr/local/ConTeXt_version_2010.11.26/tex/texmf-context/tex/context/base/context.tex
>>
>
> Are you using the debian package that Jonas linked to?
> /usr/local/ConTeXt_version_2010.11.26 seems to be a strange place for
> a package manager to install stuff.
>
> 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
> ___
>

___
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] \lgroup in mkIV

2011-01-10 Thread Khaled Hosny
On Sat, Jan 08, 2011 at 10:24:01PM -0500, Aditya Mahajan wrote:
> On Sat, 8 Jan 2011, Khaled Hosny wrote:
> 
> >On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote:
> >>On Sat, 8 Jan 2011, Daniel Schopper wrote:
> >>
> >>>Hi,
> >>>are the delimiters \lgroup and \rgroup supported in MkIV?
> >>>This
> >>>
> >>>\starttext
> >>>$$\bigg\lgroup\dots\bigg\rgroup$$
> >>>\stoptext
> >>>
> >>>is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with
> >>>MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the
> >>>delimiters are not shown. (By the way, the same holds true for
> >>>\rmoustache and \lmoustache.)
> >>
> >>>Am I missing something?
> >>
> >>No. The math mappings of virtual fonts are incomplete. The symbols
> >>should work correctly with unicode math fonts like cambria, asana,
> >>and xits. But, it appears that lgroup and rgroup are missing from
> >>xits (Khaled?)
> >
> >There are, but context is looking for the wring character; it is looking
> >for U+3014 (which I think is a CJK bracket and does not look like
> >\lgroup either) while it should be looking for U+27EE (whose Unicode
> >annotation precisely says "lgroup"):
> >
> >\setupbodyfont[xits]
> >\starttext
> >$$\bigg\lgroup\dots\bigg\rgroup$$
> >\def\lgroup{\Udelimiter "4 "0 "27EE}
> >\def\rgroup{\Udelimiter "4 "0 "27EF}
> >$$\bigg\lgroup\dots\bigg\rgroup$$
> >\stoptext
> >
> >It was not extensible though, the version in git now grow, but starts
> >with a relatively large size, check and tell me if it should be smaller.
> 
> Looks OK to me, but I am not really an expert on the shapes of the
> symbols. Can you also make lmoustache and rmoustache extensible?

Should be now.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Aditya Mahajan

On Mon, 10 Jan 2011, Renaud AUBIN wrote:


\stoptext % (missing in your code snippet)

Tested on the following ConTeXt minimals version on an up-to-date debian
(amd64 unstable/experimental hybrid).
MTXrun | main context file:
/usr/local/ConTeXt_version_2010.11.26/tex/texmf-context/tex/context/base/context.tex


Are you using the debian package that Jonas linked to? 
/usr/local/ConTeXt_version_2010.11.26 seems to be a strange place for a 
package manager to install stuff.


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] Handling EMBED tag in Tex

2011-01-10 Thread Hans Hagen

Hi Wolfgang,

the next beta will provide

\xmltofile{#1}{.}{filename}

so that one can avoid a buffer.

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Renaud AUBIN
Hi,

\starttext
% \systemcommandmode % (doesn't work here, i.e. strange ^ char with
texexec and not defined by mkiv)
\startMPcode
draw fullcircle scaled 3cm;
\stopMPcode
\stoptext % (missing in your code snippet)

Tested on the following ConTeXt minimals version on an up-to-date debian
(amd64 unstable/experimental hybrid).
MTXrun | main context file:
/usr/local/ConTeXt_version_2010.11.26/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2010.11.26 22:49

Simplest test:
− Reported OK with "context test"
− Reported OK with "texexec test"

My experience is that it is best to use minimals, so maybe it can help
if you give it a try… That's trivial with ./first-setup.sh (I usually
suffix the dir name and use a plain ConTeXt symbolic link… just in case
to recover a previous version if the new one… um… doesn't work).

Best regards,

Renaud

Le 10/01/2011 17:18, Taco Hoekwater a écrit :
>
> Hi,
>
> My linux is not Debian-based so I cannot help much further
> (but I have changed the title of this reply in the hope
> that more debian people will read it)
>
> Best wishes,
> Taco
>
> On 01/10/2011 04:42 PM, Jonas Stein wrote:
>> On 2011-01-10, Taco Hoekwater  wrote:
>>> On 01/10/2011 03:50 PM, Jonas Stein wrote:
 $ context test.tex

 MTXrun | forcing cache reload
 MTXrun | resolvers: warning: no lua configuration files found
>>>
>>> Something is wrong with your installation. Mkiv should have found
>>> a texmfcnf.lua at this spot. What distribution are you running?
>>
>> the system is debian testing.
>> i have the distribution packages installed for texlive and so on.
>>
>> I got context from here:
>> http://packages.debian.org/experimental/all/context/download
>>
>> kind regards,
>>
>
> ___
>
> 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] nice pictures for the wiki

2011-01-10 Thread Henning Hraban Ramm


Am 2011-01-10 um 16:39 schrieb Jonas Stein:


can someone check, if this picture is correct for mkiv?
https://github.com/jonasstein/context-quickstart/blob/master/gfx/context_machine_mkiv.svg

it should show the workflow from .tex ---> pdf file



Thank you!
Nice idea, but
- I'd leave out the TeX box (TeX is part of LuaTeX)
- perhaps make that ConTeXt label "Mk IV" or just "IV"
- perhaps show more input formats (pictures)?
- I didn't know LuaTeX can output SVG
- perhaps show optional XML output (and even re-input for tagged PDF)?

BTW: Nice to see my ex-wife's cooking lion again ;-)
There's another drawing by her: 
http://wiki.contextgarden.net/Image:Gardeninglion.jpg

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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-01-10 Thread Aditya Mahajan

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.

Thanks,
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] Problem with Encoding math symbols

2011-01-10 Thread Hans Hagen

On 10-1-2011 4:46, Anand Raj wrote:

Hi,

I have xml containing following mathml. The Ω is symbol replaced with *
Ω* in the xml. But when i run the tex file. The pdf is not rendered
with Ω symbol


this work sok in the beta (but another error occurred there, one that 
has been slumbering there for a while) ... so, i uploaded a new beta


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
___


[NTG-context] \footnote in \placefigure

2011-01-10 Thread Hannes Riebl

Dear ConTeXt users,

I am using the following piece of code:

\placefigure[right]{Zerfall von 
Pangäa\footnote{\hyphenatedurl{http://www.geologie.uni-frankfurt.de/staff/Homepages/Oschmann/Oschmann/Homepage/P21-Homepage/P21-9-Evolution.html}, 
zugegriffen am 3. Januar 
2010}}{\externalfigure[Zerfall_von_Pangäa][width=70mm]}


It works for some figures but for others it doesn't. In the second case 
neither the footnote nor the number in the subtitle of the picture is 
shown. Could anyone explain me why this happens and how to fix it?


Thanks in advance.

Regards,
Hannes

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

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


Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Taco Hoekwater


Hi,

My linux is not Debian-based so I cannot help much further
(but I have changed the title of this reply in the hope
that more debian people will read it)

Best wishes,
Taco

On 01/10/2011 04:42 PM, Jonas Stein wrote:

On 2011-01-10, Taco Hoekwater  wrote:

On 01/10/2011 03:50 PM, Jonas Stein wrote:

$ context test.tex

MTXrun | forcing cache reload
MTXrun | resolvers: warning: no lua configuration files found


Something is wrong with your installation. Mkiv should have found
a texmfcnf.lua at this spot. What distribution are you running?


the system is debian testing.
i have the distribution packages installed for texlive and so on.

I got context from here:
http://packages.debian.org/experimental/all/context/download

kind regards,



___
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-01-10 Thread Peter Münster
Hans Hagen  writes:

> \setuppapersize
> [A4][samesized]

 Not really an improvement over \setuppapersize[A4][A4] ...
>>>
> i guess you didn't try it as suggested ... when set up this way the second
> argument defaults to samesize unless set otherwise

Right! I thought the \setuppapersize[][samesized] was for the user-document...
But in page-lay.mkiv it makes much more sense!
Excuse me, Peter

-- 
Peter Münster

Contact information: http://pmrb.free.fr/contact/
___
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] Problems with latest mkiv

2011-01-10 Thread Hans Hagen

On 10-1-2011 3:32, luigi scarso wrote:


(you need arial*ttf to run this example)
current and beta differ: latest beta shows \btx and \high with lm fonts,
current correctly display them with arialmt.


This is related to 24pt not being defined as bodyfont environment.

\setupbodyfont[arialmt,24pt,ss]
% \setupbodyfont[arialmt,ss,24pt]
% \setupbodyfont[24pt,arialmt,ss]

\starttext
A {\bfb A} {\bfx A} A\high{A}
\stoptext

Can you check the beta on the ftp. Less efficient but maybe better.

The reason that an older current might works is more coincidence an da 
side effect of experiments with delayed loading of fonts (which is why 
on my machine it worked anyway).


-
  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] Feature request: setuppapersize

2011-01-10 Thread Hans Hagen

On 10-1-2011 4:20, Peter Münster wrote:

Hans Hagen  writes:


On 10-1-2011 3:04, Peter Münster wrote:

Hans Hagen   writes:


What do you think?


\setuppapersize
[A4][samesized]


Not really an improvement over \setuppapersize[A4][A4] ...


why not?


Just my personal opinion: more keystrokes to type and more options to
remember.


i guess you didn't try it as suggested ... when set up this way the 
second argument defaults to samesize unless set otherwise


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] ConTeXt does not execute MetaPost here

2011-01-10 Thread Jonas Stein
On 2011-01-10, Taco Hoekwater  wrote:
> On 01/10/2011 03:50 PM, Jonas Stein wrote:
>> $ context test.tex
>>
>> MTXrun | forcing cache reload
>> MTXrun | resolvers: warning: no lua configuration files found
>
> Something is wrong with your installation. Mkiv should have found
> a texmfcnf.lua at this spot. What distribution are you running?

the system is debian testing.
i have the distribution packages installed for texlive and so on.

I got context from here:
http://packages.debian.org/experimental/all/context/download

kind regards,

-- 
Jonas Stein 

___
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] nice pictures for the wiki

2011-01-10 Thread Jonas Stein
can someone check, if this picture is correct for mkiv?
https://github.com/jonasstein/context-quickstart/blob/master/gfx/context_machine_mkiv.svg

it should show the workflow from .tex ---> pdf file

Kind regards,

-- 
Jonas Stein 

___
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-01-10 Thread Peter Münster
Hans Hagen  writes:

> On 10-1-2011 3:04, Peter Münster wrote:
>> Hans Hagen  writes:
>>
 What do you think?
>>>
>>> \setuppapersize
>>>[A4][samesized]
>>
>> Not really an improvement over \setuppapersize[A4][A4] ...
>
> why not?

Just my personal opinion: more keystrokes to type and more options to
remember.
I prefer Aditya's original idea.
-- 
Peter Münster

Contact information: http://pmrb.free.fr/contact/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt does not execute MetaPost here

2011-01-10 Thread Taco Hoekwater

On 01/10/2011 03:50 PM, Jonas Stein wrote:

$ context test.tex

MTXrun | forcing cache reload
MTXrun | resolvers: warning: no lua configuration files found


Something is wrong with your installation. Mkiv should have found
a texmfcnf.lua at this spot. What distribution are you running?

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

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


Re: [NTG-context] ConTeXt does not execute MetaPost here

2011-01-10 Thread Jonas Stein
here is my typescript:

$ cat test.tex 
\starttext
\systemcommandmode
\startMPcode
   draw fullcircle scaled 3cm ;
\stopMPcode


$ context test.tex 

MTXrun | forcing cache reload
MTXrun | resolvers: warning: no lua configuration files found
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-context.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

=another try==

$ texexec --lua  test.tex &&okular test.pdf 

MTXrun | kpse fallback with progname 'context' initialized in 0.05 
secondsTeXExec | processing document 'test.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file test.top
TeXExec | using randomseed 968
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en

MTXrun | forcing cache reload
MTXrun | resolvers: warning: no lua configuration files found
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-base.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
TeXExec | runtime: 0.171907

=another try==

$ texexec --pdf  test.tex &&okular test.pdf 

works, but 
\systemcommandmode

does not give a '2' or '1' as respond. It gives a '^'

Kind regards,

-- 
Jonas Stein 

___
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] escape in verbatim text eats line breaks

2011-01-10 Thread Hans Hagen

On 10-1-2011 12:23, Stefan Müller wrote:

Hi list,

there seems to be something wrong with the "escape" mechanism in
verbatim. Line breaks before escaped code are ignored. Consider the
following example from the wiki [1] (e.g. the second line is printed
right behind the first with no line break):

\starttext

\setuptyping[TEX][escape=yes]

\startTEX
/BTEX\em sometex/ETEX
/BTEX\em sometex/ETEX \after
\before /BTEX\em sometex/ETEX
\before /BTEX\em sometex/ETEX \after
\before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after
\before \after
\stopTEX

\setuptyping[TEX][escape={[[,]]}]

\startTEX
[[\em sometex]]
[[\em sometex]] \after
\before [[\em sometex]]
\before [[\em sometex]] \after
\before [[\em sometex]] \inbetween [[\em sometex]] \after
\before \after
\stopTEX

\setuptyping[TEX][escape=//]

\startTEX
//\em sometex
\before //\em sometex
\stopTEX

\stoptext

Is this a bug or am I missing something here?


I get newlines here.


Also "\setuptyping[TEX][escape=//]" seems to have no effect at all, "//"
is printed just like normal chars.


Actually in mkii it's

\setuptyping[TEX][escape=/]

\startTEX
/em sometex
\before /em sometex
\stopTEX

and indeed in mkiv it does not work. I will provide a bit of backward 
compatibility but keep in mind that in mkiv the \em change will cross 
lines, so in this case the first sometex as well as \before will be 
slanted.



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt does not execute MetaPost here

2011-01-10 Thread Taco Hoekwater

On 01/10/2011 03:29 PM, Jonas Stein wrote:

[2] 
http://wiki.contextgarden.net/MetaPost#Troubleshooting_MetaPost_embedded_in_ConTeXt


Are you using mkii or mkiv? And what versions of what? (terminal output
would be helpful). To answer the immediate question: no, context does
not expect the binary to be called 'mp'. Mkii needs 'mpost' and mkiv
uses the internal mplib in luatex.

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 with latest mkiv

2011-01-10 Thread luigi scarso
\starttypescript [sans] [arialmt]
\definefontsynonym [ArialMT][name:arialmt][features=default]
\definefontsynonym [ArialMTItalic][name:arialitalicmt][features=default]
\definefontsynonym [ArialMTBold][name:arialboldmt][features=default]
\definefontsynonym
[ArialMTBoldItalic][name:arialbolditalicmt][features=default]
\stoptypescript

\starttypescript [sans] [arialmt]
\definefontsynonym [Sans][ArialMT][features=default]
\definefontsynonym [SansItalic][ArialMTItalic][features=default]
\definefontsynonym [SansBold][ArialMTBold][features=default]
\definefontsynonym [SansBoldItalic][ArialMTBoldItalic][features=default]
\stoptypescript


\starttypescript [sans] [arialmtblack]
\definefontsynonym [ArialMT][name:arialmt][features=default]
\definefontsynonym [ArialMTItalic][name:arialitalicmt][features=default]
\definefontsynonym
[ArialMTBoldItalic][name:arialbolditalicmt][features=default]
\definefontsynonym [ArialMTBlack][name:arialblack][features=default]
\stoptypescript

\starttypescript [sans] [arialmtblack]
\definefontsynonym [Sans][ArialMT][features=default]
\definefontsynonym [SansItalic][ArialMTItalic][features=default]
\definefontsynonym [SansBold][ArialMTBlack][features=default]
\definefontsynonym [SansBoldItalic][ArialMTBoldItalic][features=default]
\stoptypescript


\definetypeface[arialmt][ss][sans][arialmt][default]
\definetypeface[arialmtblack][ss][sans][arialmtblack][default]


\setupbodyfont[arialmt,ss,24pt]

\setuppagenumbering[location=]

\setupcolors[rgb=no,cmyk=yes]

\starttext
from to
{\bfb from to}
{\bfx from to }
\high{A}A\high{A}
\stoptext

(you need arial*ttf to run this example)
current and beta differ: latest beta shows \btx and \high with lm fonts,
current correctly display them with arialmt.

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

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


[NTG-context] ConTeXt does not execute MetaPost here

2011-01-10 Thread Jonas Stein
Hi,

MetaPost embedded in ConTeXt does not work here, but plain 
MetaPost works fine:

This [1] test works fine if i call 
mpost test.1
I can see a circle.

But this [2] fails.

Does ConTeXt expect MetaPost to have the executable named "mp"?
On my debian system its called "mpost"

[1] http://wiki.contextgarden.net/MetaPost#Troubleshooting_plain_MetaPost
[2] 
http://wiki.contextgarden.net/MetaPost#Troubleshooting_MetaPost_embedded_in_ConTeXt

Kind regards,

-- 
Jonas Stein 

___
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-01-10 Thread Hans Hagen

On 10-1-2011 3:04, Peter Münster wrote:

Hans Hagen  writes:


What do you think?


\setuppapersize
   [A4][samesized]


Not really an improvement over \setuppapersize[A4][A4] ...


why not?


-
  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] tabulate span broken

2011-01-10 Thread Steffen Wolfrum

Am 10.01.2011 um 14:24 schrieb Hans Hagen:

> On 10-1-2011 10:46, Steffen Wolfrum wrote:
>> Hi,
>> 
>> as far as I remember, the following code worked up to december:
>> 
>> \def\tabulateuse#1%
>>  {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}
>> 
>> \appendtoks
>>\let\use\tabulateuse
>>\defineTABLEshorthands
> 
> remove the previous line as there is no reason why tabulate should inherit 
> all from table
> 
>> \to \everytabulate
>> 
>> \starttext
>> 
>> \starttabulate[|p(4cm)|p(4cm)|p(6cm)|]
>> \NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
>> \dorecurse{18}{text } \NC\NR
>> \NC \TWO Short text spanning two tabulate paragraphs. \NC
> 
> \use2 seems to work but keep in mind that such local patches are not 
> guaranteed to work (one never what logic is used deep down)


... except you :-)

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

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


Re: [NTG-context] Feature request: setuppapersize

2011-01-10 Thread Peter Münster
Hans Hagen  writes:

>> What do you think?
>
> \setuppapersize
>   [A4][samesized]

Not really an improvement over \setuppapersize[A4][A4] ...

-- 
Peter Münster

Contact information: http://pmrb.free.fr/contact/
___
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] Trying MPtoPDF!

2011-01-10 Thread Mojca Miklavec
On Mon, Jan 10, 2011 at 13:40, Vladimir Lomov wrote:
>
> Sorry, I wasn't aware that pdftex from context minimal pretends to be
> from TL 2010 (or this is intentionaly?).

We could have modified the string, but we don't. We simply take what's
in pdfTeX source repository. (Now we don't even do that any more.)

Most binaries for ConTeXt minimals siply come from TeX Live anyway.

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] Trying MPtoPDF!

2011-01-10 Thread Albrecht Kauffmann
Dear Vladimir,

after processing your file graph1_mp.mp by typing

$mpost graph1_mp.mp (or: mp graph1_mp.mp)

you should get a file graph1_mp.1 (if the figure is numbered by
beginfig(1) ).

Then you can convert this file by typing

$mptopdf graph1_mp.1

Greetings
Albrecht

On Mon, 10 Jan 2011, Vladimir Lomov wrote:

> ** Verhaag, G.C.H.M. [2011-01-10 10:35:32 +0100]:
>
> > Vladimir Lomov wrote:
>
> >>** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]:
>
>
> >>>Hi,
>
> >>[...]
>
>
> >>>This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
> >>>\write18 enabled.
>
> >>This: "(TeX Live 2010)" contradicts with that:
>
> >>>While trying to get some MetaPost plots converted to PDF, with the
> >>>latest ConTeXt minimals installation (MkIV) on my Linux box, things
> >>>happen which I don't understand, sorry!
>
>
> >>[...]
>
> >>>Do I need to install other tools to get it working?
>
> >>I'm not sure. But before you have to be sure that you actually use
> >>context minimals.
>
> >>Suppose, that you have TeX Live 2010 installed here:
> >>/usr/local/texlive/2010
> >>and context minimals installed here:
> >>/usr/local/opt/context
>
> >>Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and
> >>do
> >>$ . /usr/local/opt/context/tex/setuptex
> >>and _after_ that run
> >>$ mtxrun ...
>
> >>If you still get an error something is really broken.
>
> > Hi,
>
> > No I haven't installed TeXLive2010, only ConTeXt minimals!
> Sorry, I wasn't aware that pdftex from context minimal pretends to be
> from TL 2010 (or this is intentionaly?).
>
> I tried
> $ mptopdf graph1_mp.mp
> and saw only file name echoed.
>
> The 'mptopdf' script contains
> mtxrun --script base "$@"
>
> Sorry for noise.
>
> ---
> WBR, Vladimir Lomov
>
> --
> The use of COBOL cripples the mind; its teaching should, therefore, be
> regarded as a criminal offence.
>   -- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5
> ___
> 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] Computer Modern Typewriter Proportional

2011-01-10 Thread Raymond LeClair
This is terrific! Thank you.

On Jan 10, 2011, at 3:36 AM, Philipp Gesang wrote:

> On 2011-01-09 <19:31:24>, Raymond LeClair wrote:
>> Does anyone know how the "Computer Modern Typewriter Proportional" font 
>> would be specified in ConTeXt?
>> 
>> In Latex is is specified as follows:
>> 
>> \usepackage[T1]{fontenc}
>> \renewcommand*\ttdefault{cmvtt}
>> \renewcommand*\familydefault{\ttdefault} %% Only if the base font of the 
>> document is to be typewriter style
>> 
>> See: http://www.tug.dk/FontCatalogue/cmvtt/
>> 
>> Any help would be appreciated!
> 
> Hello Raymond,
> 
> there’s two ways I know of: 1. for *latin* modern, use the
> typescript “modern-variable”; 2. for *cm unicode*, redefine the
> mono typefaces. (Of course, if yow need exactly cm then this
> might not help you at all, sorry.) Here’s an example to
> demonstrate both.
> 
> ·8<··
> 
> \usetypescriptfile[type-cmu]
> 
> \unprotect
> \starttypescript [\s!mono] [computer-modern-unicode] % by default cmu does 
> not define the variable width mono faces
>\setups[\s!font:\s!fallback:\s!mono]
>\definefontsynonym [\s!Mono]   [CMUTypewriter-Variable]   
> [\s!features=\s!default]
>\definefontsynonym [\s!MonoItalic] [CMUTypewriter-VariableItalic] 
> [\s!features=\s!default]
> \stoptypescript
> \protect
> 
> \usetypescript [computer-modern-unicode]  % for cmu
> \usetypescript [modern-variable]  % for lm
> %\usetypescript [modern-variable-light]% alternative for lm
> 
> \setupbodyfont [computer-modern-unicode]
> 
> \starttext
> 
> {\tt\input knuth\par}   % testing cmu
> {\tt\italic\input knuth\par}% testing cmu-it
> {\switchtobodyfont[modernvariable]\tt\input knuth\par}  % testing lm
> 
> \stoptext
> 
> ·8<··
> 
> Regards, Philipp
> 
> Btw, modern-variable causes different line breaks than ordinary
> lm-tt but it does not appear to be as proportional as the cmu
> version. Did I do something wrong?
> 
>> ___
>> 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
>> ___
> 
> -- 
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org   - against proprietary attachments
> ___
> 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] Feature request: setuppapersize

2011-01-10 Thread Hans Hagen

On 9-1-2011 12:45, Aditya Mahajan wrote:

Hans,

Since we have some leverage with backward compatibility in MkIV, can we
make \setuppapersize (slightly) more intuitive.

Normally, one would expect

\setuppapersize[A5]

to be equivalent to

\setuppapersize[A5][A5]

but currently it is equivalent to

\setuppapersize[A5][A4]

This is a bit confusing, and means that we always have to specify the
printpaper size; even if it is equal to paper size. Can we modify the
definition of \dodefinepapersize to change this behavior?

\def\dodefinepapersize[#1][#2][#3]%
{\ifsecondargument
\doifsomething{#1} % to be sure
{\doifassignmentelse{#2}
{\getparameters
[\??pp#1] % geen \c!scale, scheelt hash ruimte
[\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]%
%AM: Added these two lines
\setvalue{\??pp:1:#1}{#1}%
\setvalue{\??pp:2:#1}{#1}}%
{\setvalue{\??pp:1:#1}{#2}%
\setvalue{\??pp:2:#1}{#3}}}% (*) see below
\else
\getparameters[\??pp][#1]%
\setuppapersize % hm. this will freeze !
\fi}

Perhaps, in line (*), we should also check if #3 is something, otherwise
set ??p:2:#1 to #2:

\doifsomethingelse{#3}
{\setvalue\??pp:2:#1}{#3}}
{\setvalue\??pp:2:#1}{#2}}


What do you think?


more elegant and downward compatible is this:

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

\setuppapersize
  [A4][samesized]

in page-lay.mkiv

-
  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] tabulate span broken

2011-01-10 Thread Hans Hagen

On 10-1-2011 10:46, Steffen Wolfrum wrote:

Hi,

as far as I remember, the following code worked up to december:

\def\tabulateuse#1%
  {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}

\appendtoks
\let\use\tabulateuse
\defineTABLEshorthands


remove the previous line as there is no reason why tabulate should 
inherit all from table



\to \everytabulate

\starttext

\starttabulate[|p(4cm)|p(4cm)|p(6cm)|]
\NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
\dorecurse{18}{text } \NC\NR
\NC \TWO Short text spanning two tabulate paragraphs. \NC


\use2 seems to work but keep in mind that such local patches are not 
guaranteed to work (one never what logic is used deep down)



\dorecurse{22}{text } \NC\NR
\stoptabulate

\stoptext


Today it gives:
! Undefined control sequence.
  ...lateuse \defineTABLEshorthands

\dofinalstarttabulate ...ount \the \everytabulate
   \tabulateparameter \c!inne...

\NC
l.42 \NC
  \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
?



Is there a substitute?
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
___



--

-
  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] mkiv: verbatim lua eats my quotes

2011-01-10 Thread Hans Hagen

On 9-1-2011 10:16, Thomas A. Schmitz wrote:

\starttext

\startLUA
require 'lpeg'

sep = lpeg.P(",")
\stopLUA

\stoptext


I'll put a beta on the ftp for testing. You can configure the string 
content as well as the quotes.


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


[NTG-context] new beta

2011-01-10 Thread Hans Hagen

Hi,

I uploaded a new beta:

The character definitions have been updated (esp math, thanks to Aditya).

After some testing by Wolfgang the decision was made to permit _ in 
macronames in modules. So, the following works:


\unprotect
  \def\test_test_test#1#2{#1+#2=whatever}
  \test_test_test{1}{2}
\protect

In principle we can also support ^. The mkiv code base no longer uses _ 
and ^ in math in modules and those who write modules should avoid them 
as well. So, when writing macros in unprotected mode, one schould use:


$x\normalsuperscript2\normalsubscript n$

Taco and I think that we can safely switch to \nonknuthmode in mkiv so 
this might happen soon (which means that _ and ^ become normal 
characters in text mode). Actually, being permanently in \nonknuthmode 
would permit _ and ^ in modules again.


We could even make _ and ^ always letters outside math in which case 
\text_test etc would become possible everywhere but that needs some more 
consideration. In that case


\def\make_subscript#1#2{\mathematics{#1_{#2}}}

\make_subscript{x}{2}

becomes valid everywhere. We can discuss this in detail at the dev list.

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] Trying MPtoPDF!

2011-01-10 Thread Vladimir Lomov
** Verhaag, G.C.H.M. [2011-01-10 10:35:32 +0100]:

> Vladimir Lomov wrote:

>>** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]:


>>>Hi,

>>[...]


>>>This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
>>>\write18 enabled.

>>This: "(TeX Live 2010)" contradicts with that:

>>>While trying to get some MetaPost plots converted to PDF, with the
>>>latest ConTeXt minimals installation (MkIV) on my Linux box, things
>>>happen which I don't understand, sorry!


>>[...]

>>>Do I need to install other tools to get it working?

>>I'm not sure. But before you have to be sure that you actually use
>>context minimals.

>>Suppose, that you have TeX Live 2010 installed here:
>>/usr/local/texlive/2010
>>and context minimals installed here:
>>/usr/local/opt/context

>>Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and
>>do
>>$ . /usr/local/opt/context/tex/setuptex
>>and _after_ that run
>>$ mtxrun ...

>>If you still get an error something is really broken.

> Hi,

> No I haven't installed TeXLive2010, only ConTeXt minimals!
Sorry, I wasn't aware that pdftex from context minimal pretends to be
from TL 2010 (or this is intentionaly?).

I tried
$ mptopdf graph1_mp.mp
and saw only file name echoed.

The 'mptopdf' script contains
mtxrun --script base "$@"

Sorry for noise.

---
WBR, Vladimir Lomov

-- 
The use of COBOL cripples the mind; its teaching should, therefore, be
regarded as a criminal offence.
-- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5
___
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] escape in verbatim text eats line breaks

2011-01-10 Thread Stefan Müller

Hi list,

there seems to be something wrong with the "escape" mechanism in 
verbatim. Line breaks before escaped code are ignored. Consider the 
following example from the wiki [1] (e.g. the second line is printed 
right behind the first with no line break):


\starttext

\setuptyping[TEX][escape=yes]

\startTEX
/BTEX\em sometex/ETEX
/BTEX\em sometex/ETEX \after
\before /BTEX\em sometex/ETEX
\before /BTEX\em sometex/ETEX \after
\before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after
\before \after
\stopTEX

\setuptyping[TEX][escape={[[,]]}]

\startTEX
[[\em sometex]]
[[\em sometex]] \after
\before [[\em sometex]]
\before [[\em sometex]] \after
\before [[\em sometex]] \inbetween [[\em sometex]] \after
\before \after
\stopTEX

\setuptyping[TEX][escape=//]

\startTEX
//\em sometex
\before //\em sometex
\stopTEX

\stoptext

Is this a bug or am I missing something here?

Also "\setuptyping[TEX][escape=//]" seems to have no effect at all, "//" 
is printed just like normal chars.


Best regards,
Stefan Müller.


[1] http://wiki.contextgarden.net/Verbatim#Embedded_formatting_commands
___
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] mptopdf (broken again)

2011-01-10 Thread Mojca Miklavec
On Mon, Jan 10, 2011 at 08:55, Taco Hoekwater wrote:
>
>> And when I try to use it I get:
>>
>>> mptopdf a.mp
>>
>> -bash: /usr/texbin/mptopdf: Permission denied
>
> Permission denied is usually a file permission error
> (script is not executable).

Totally weird. The file
/usr/local/texlive/2010/texmf-dist/scripts/context/perl/mptopdf.pl
was not executable, but it is executable in TeXLive's SVN which is a
bit strange. Moreover the file I have is dated 28th May, while the one
in TL is dated 1st June.

Maybe MacTeX took older files exactly in the three-day window (but I
did update after that ...) or maybe I simply screwed up the
installation by rewriting some ConTeXt files one day without being
aware of it (which is more probable).

TLContrib's ConTeXt doesn't seem to accidentally have that file, at
least not at the moment.

Thanks anyway,
Mojca

PS: the request for Hans is still valid
___
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] Unreadable characters in embedded PDF file

2011-01-10 Thread Jaroslav Hajtmar
Yes, of course - Taco, you have right. PDF file from Scribus is itself 
applicable.

I was wrong to comment...

However, I found a way to temporarily solve my problem ... (use PDF 
printdriver - PDFcreator)

... and I wait to be removed an bug from LuaTeX..

Thanx Jaroslav



Dne 10.1.2011 10:05, Taco Hoekwater napsal(a):

On 01/10/2011 10:00 AM, Jaroslav Hajtmar wrote:

Thanx Taco...
I just have found an interesting thing.
If PDF file which is by Scribus generated (which in itself is useless)
and then "print" by PDFCreator (or PDFXchange) to new PDF file, then the
resulting PDF file can now be put into ConTeXt resulting PDF document
without any problem. It probably means that the problem is in Scribus
isn't it?


Not really. It does indeed mean that your almost certainly have the
same problem as in that thread I linked. Scribus creates a slightly
unusual Pdf, but the bug in luatex. PDFCreator converts the pdf to
something more common, and that is why that helps, but Scribus' pdf
is fine by itself.

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] tabulate span broken

2011-01-10 Thread Steffen Wolfrum
Hi,

as far as I remember, the following code worked up to december:

\def\tabulateuse#1%
 {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}

\appendtoks
   \let\use\tabulateuse
   \defineTABLEshorthands
\to \everytabulate

\starttext

\starttabulate[|p(4cm)|p(4cm)|p(6cm)|]
\NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
\dorecurse{18}{text } \NC\NR
\NC \TWO Short text spanning two tabulate paragraphs. \NC
\dorecurse{22}{text } \NC\NR
\stoptabulate

\stoptext


Today it gives:
! Undefined control sequence.
 ...lateuse \defineTABLEshorthands 
  
\dofinalstarttabulate ...ount \the \everytabulate 
  \tabulateparameter \c!inne...
 
   \NC 
l.42 \NC
 \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
? 



Is there a substitute?
Steffen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Trying MPtoPDF!

2011-01-10 Thread Verhaag, G.C.H.M.

Vladimir Lomov wrote:


** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]:

 


Hi,
   


[...]

 


This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
\write18 enabled.
   


This: "(TeX Live 2010)" contradicts with that:
 


While trying to get some MetaPost plots converted to PDF, with the
latest ConTeXt minimals installation (MkIV) on my Linux box, things
happen which I don't understand, sorry!
   



[...]
 


Do I need to install other tools to get it working?
   


I'm not sure. But before you have to be sure that you actually use
context minimals.

Suppose, that you have TeX Live 2010 installed here:
/usr/local/texlive/2010
and context minimals installed here:
/usr/local/opt/context

Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and
do
$ . /usr/local/opt/context/tex/setuptex
and _after_ that run
$ mtxrun ...

If you still get an error something is really broken.

---
WBR, Vladimir Lomov

 


Hi,

No I haven't installed TeXLive2010, only ConTeXt minimals!

Regards,
Gerard Verhaag
___
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] Unreadable characters in embedded PDF file

2011-01-10 Thread Taco Hoekwater

On 01/10/2011 10:00 AM, Jaroslav Hajtmar wrote:

Thanx Taco...
I just have found an interesting thing.
If PDF file which is by Scribus generated (which in itself is useless)
and then "print" by PDFCreator (or PDFXchange) to new PDF file, then the
resulting PDF file can now be put into ConTeXt resulting PDF document
without any problem. It probably means that the problem is in Scribus
isn't it?


Not really. It does indeed mean that your almost certainly have the
same problem as in that thread I linked. Scribus creates a slightly
unusual Pdf, but the bug in luatex. PDFCreator converts the pdf to
something more common, and that is why that helps, but Scribus' pdf
is fine by itself.

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
___


Re: [NTG-context] Unreadable characters in embedded PDF file

2011-01-10 Thread luigi scarso
On Mon, Jan 10, 2011 at 10:00 AM, Jaroslav Hajtmar  wrote:
> Thanx Taco...
> I just have found an interesting thing.
> If PDF file which is by Scribus generated (which in itself is useless) and
> then "print" by PDFCreator (or PDFXchange) to new PDF file, then the
> resulting PDF file can now be put into ConTeXt resulting PDF document
> without any problem. It probably means that the problem is in Scribus isn't
> it?
You can use qpdf to check
-- 
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] Unreadable characters in embedded PDF file

2011-01-10 Thread Jaroslav Hajtmar

Thanx Taco...
I just have found an interesting thing.
If PDF file which is by Scribus generated (which in itself is useless) 
and then "print" by PDFCreator (or PDFXchange) to new PDF file, then the 
resulting PDF file can now be put into ConTeXt resulting PDF document 
without any problem. It probably means that the problem is in Scribus 
isn't it?


Jaroslav


Dne 10.1.2011 9:19, Taco Hoekwater napsal(a):

On 01/10/2011 09:07 AM, Jaroslav Hajtmar wrote:

Hello all,
Often I include external PDF files into PDF document generated by 
ConTeXt.

When I create a PDF document containing text in Scribus (or other
application) and then I put it to my PDF file (generating by ConTeXt),
then in final PDF document are unreadable characters.

Is there a problem in Scribus character encoding or the fact that the
fonts contained in the included PDF file ConTeXt unknown?


It is hard to debug this without an actual file, but it sound similar
to a problem we heard about a few weeks ago. Does this thread appear to
refer to the same problem you have:

  http://tug.org/pipermail/luatex/2010-December/002354.html

If yes, then the fix is already in the luatex repository.


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
___


Re: [NTG-context] Computer Modern Typewriter Proportional

2011-01-10 Thread Philipp Gesang
On 2011-01-09 <19:31:24>, Raymond LeClair wrote:
> Does anyone know how the "Computer Modern Typewriter Proportional" font would 
> be specified in ConTeXt?
> 
> In Latex is is specified as follows:
> 
> \usepackage[T1]{fontenc}
> \renewcommand*\ttdefault{cmvtt}
> \renewcommand*\familydefault{\ttdefault} %% Only if the base font of the 
> document is to be typewriter style
> 
> See: http://www.tug.dk/FontCatalogue/cmvtt/
> 
> Any help would be appreciated!

Hello Raymond,

there’s two ways I know of: 1. for *latin* modern, use the
typescript “modern-variable”; 2. for *cm unicode*, redefine the
mono typefaces. (Of course, if yow need exactly cm then this
might not help you at all, sorry.) Here’s an example to
demonstrate both.

·8<··

\usetypescriptfile[type-cmu]

\unprotect
\starttypescript [\s!mono] [computer-modern-unicode] % by default cmu does not 
define the variable width mono faces
\setups[\s!font:\s!fallback:\s!mono]
\definefontsynonym [\s!Mono]   [CMUTypewriter-Variable]   
[\s!features=\s!default]
\definefontsynonym [\s!MonoItalic] [CMUTypewriter-VariableItalic] 
[\s!features=\s!default]
\stoptypescript
\protect

\usetypescript [computer-modern-unicode]  % for cmu
\usetypescript [modern-variable]  % for lm
%\usetypescript [modern-variable-light]% alternative for lm

\setupbodyfont [computer-modern-unicode]

\starttext

{\tt\input knuth\par}   % testing cmu
{\tt\italic\input knuth\par}% testing cmu-it
{\switchtobodyfont[modernvariable]\tt\input knuth\par}  % testing lm

\stoptext

·8<··

Regards, Philipp

Btw, modern-variable causes different line breaks than ordinary
lm-tt but it does not appear to be as proportional as the cmu
version. Did I do something wrong?

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

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpwHkzX2P4Mm.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Unreadable characters in embedded PDF file

2011-01-10 Thread Taco Hoekwater

On 01/10/2011 09:07 AM, Jaroslav Hajtmar wrote:

Hello all,
Often I include external PDF files into PDF document generated by ConTeXt.
When I create a PDF document containing text in Scribus (or other
application) and then I put it to my PDF file (generating by ConTeXt),
then in final PDF document are unreadable characters.

Is there a problem in Scribus character encoding or the fact that the
fonts contained in the included PDF file ConTeXt unknown?


It is hard to debug this without an actual file, but it sound similar
to a problem we heard about a few weeks ago. Does this thread appear to
refer to the same problem you have:

  http://tug.org/pipermail/luatex/2010-December/002354.html

If yes, then the fix is already in the luatex repository.


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] Unreadable characters in embedded PDF file

2011-01-10 Thread Jaroslav Hajtmar

Hello all,
Often I include external PDF files into PDF document generated by ConTeXt.
When I create a PDF document containing text in Scribus (or other 
application) and then I put it to my PDF file (generating by ConTeXt), 
then in final PDF document are unreadable characters.


Is there a problem in Scribus character encoding or the fact that the 
fonts contained in the included PDF file ConTeXt unknown?


Thanks for the advice.

Jaroslav

___
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] Handling EMBED tag in Tex

2011-01-10 Thread Anand Raj
*d.svg*


http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>
http://www.w3.org/2000/svg";>


can you help me to create svg files from the given embed tag.

On Fri, Jan 7, 2011 at 9:23 PM, Wolfgang Schuster <
schuster.wolfg...@googlemail.com> wrote:

>
> Am 07.01.2011 um 03:35 schrieb Anand Raj:
>
> Hi,
>
> Herewith I am attaching the question_svg.xml and question.tex files. With
> this I am trying to convert the xml to pdf. I encounter two problems here.
>
> 2. *embed* to *svg*
> In the last question in the xml, can find line * type='image/svg+xml' align='middle' width='250' height='250'
> src='/javascript/d.svg'
> script='initPicture(-10,130,-10,130);stroke="black";fill="gray";strokewidth=1;rect([0,0],[50,40]);rect([50,0],[100,100]);text([50/2,40+6],"5y
> cm");text([75,106],"17 cm");text([50,40/2],"4y cm",right);text([100,50],"13y
> cm",right);' />*
>
>
> Can you also provide the picture file the embed tag refers to.
>
> 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
___