Re: [NTG-context] Is this font changing allowed/correct?

2009-06-14 Thread Wolfgang Schuster


Am 13.06.2009 um 16:12 schrieb Maurí cio:


Can I switch fonts like this?



{
 \switchtobodyfont[concrete]
 More text.
}



concrete roman? mkiv does not support bitmap fonts out of the box


I got the 'concrete' name from table 1.11 of 'typography.pdf',
The predefined body font identifiers for free OpenType fons.

This probably means I'm understanding something completely
wrong... What would that be?


You're right, the concrete fonts are mentioned in the typography chapter
but ConTeXt use now two different versions for XeTeX and LuaTeX and in
the LuaTeX part the old files are removed because we don't have the  
fonts

in the minimals and better alternatives (e.g. Computer Modern Unicode)
exists for them.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] finding out what font are available

2009-06-14 Thread Hans Hagen

Ciro Soto wrote:

another try:

*mtxrun --script mtx-fonts --list
*./mtx-fonts.lua:11: attempt to index global 'resolvers' (a nil value)


do you run an older copy of mtxrun or luatools? if so, try

mtxrun --selfupdate
luatools --selfupdate

or copy the scripts from script/context/lua to you bin path

maybe some older tex in your bin path?



also:
*
mtxrun --script fonts --list*
../fonts.lua:11: attempt to index global 'resolvers' (a nil value)


what is fonts.lua ?


worst of all, my  current book is not working now:


there must be something completely wrong with your system

if you install the minimals and then run the setuptex script the 
minimals should work in complete isolation and well ... work


Hans


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

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


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread Hans Hagen

Vyatcheslav Yatskovsky wrote:

Hello,

For me, pstopdf is a number one candidate to luafication :)
(Had problems with it recently)


yes, will be done (we use it here in workflows with massive amounts of 
conversions, auto downsampling, etc)


Hans

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

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


Re: [NTG-context] new structure code

2009-06-14 Thread Alan BRASLAU
Hello,

Different structuring behavior mkiv and mkii;
How can the following minimal example be achieved under mkiv?
(mkii gives the desired behavior)

Alan

\setuphead[part][resetnumber=no,placehead=yes]
\setuplist[part,chapter,section][partnumber=no]
\starttext
\part{part one}
\chapter{chapter one}
\section{section one}
\section{section two}
\chapter{chapter two}
\section{section one}
\section{section two}
\part{part two}
\chapter{chapter three}
\section{section one}braslau
\section{section two}
\chapter{chapter four}
\section{section one}
\section{section two}
\stoptext



foo_mkiv.pdf
Description: Adobe PDF document


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

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


Re: [NTG-context] [PATCH] Add begin_of_buffer and end_of_buffer hooks for lua pretty printers

2009-06-14 Thread Hans Hagen

Matthijs Kooijman wrote:

Hi all,

while working on a custom pretty printer, I was having the need to keep some
state variables for the duration of one buffer, and reset them again for the
next buffer. With the current hooks a pretty printer has available, this is
not possible, since you never know what the first and last lines are.

The attached patch adds two new hooks, begin_of_buffer and end_of_buffer,
which will be called when typing a buffer or a file (e.g. \typebuffer or
\typefile). They are not called for typing a phrase (e.g. \type).

Is this patch acceptable for inclusion?


(no patch nor example of usage attached)

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

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


Re: [NTG-context] new structure code

2009-06-14 Thread Hans Hagen

Alan BRASLAU wrote:

Hello,

Different structuring behavior mkiv and mkii;
How can the following minimal example be achieved under mkiv?
(mkii gives the desired behavior)

Alan

\setuphead[part][resetnumber=no,placehead=yes]
\setuplist[part,chapter,section][partnumber=no]
\starttext
\part{part one}
\chapter{chapter one}
\section{section one}
\section{section two}
\chapter{chapter two}
\section{section one}
\section{section two}
\part{part two}
\chapter{chapter three}
\section{section one}braslau
\section{section two}
\chapter{chapter four}
\section{section one}
\section{section two}
\stoptext


keys like 'partnumber' are gone in mkiv; we now have sets and segments; 
here is the variant with segments: (2 = section 2 == chapter)


\setuphead[part]   [resetnumber=no,placehead=yes]
% \setuphead[chapter][sectionsegments=2:100]
% \setuphead[section][sectionsegments=2:100]

\setupstructureheads[sectionsegments=2:100]

you can tune each number (also at list placement time or whatever)


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

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


Re: [NTG-context] \setupcaption stopper does not work in mkiv

2009-06-14 Thread Hans Hagen

jm wrote:

hi, all!

i have been trying to produce Figure 1. in the figure caption of my 
document using mkiv and i just couldn't.  i've searched through the 
ntg-context archives and the net for solutions but none seems to work.  
however, when i try the solutions posted (e.g. 
\setupcaption[figure][stopper={.}]) using XeConTeXt or MKII, i get the 
result i need.  can anybody tell me how to go about this in mkiv?


also, how do you go about producing a Table 1.1 or a Table 1-1 in 
the captions?  couldn't find the answer in the manuals or in the web.  
any help would be greatly appreciated.



in mkiv it's \setupcaption[figure][numberstopper=.])

(we have numbers, prefixes and more and all have gotten similar keys)

it's good to know that all control over such numbers has changes a bit 
but is more flexible now (conversion, prefixing, separators, etc)


you can control such thingies with processors

\defineprocessor[demo][color=red,style=\bfd]

\setupcaption[figure][numberstopper=demo-.,numberconversion=Characters]

\starttext

\chapter{first}
\section{first}
\placefigure{}{}
\placefigure{}{}

\stoptext

(but somehow there is a bleed to the page number rendering that i need 
to resolve)


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

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


Re: [NTG-context] Is this font changing allowed/correct?

2009-06-14 Thread Maurí­cio

Can I switch fonts like this?



concrete roman? mkiv does not support bitmap fonts out of the box



I got the 'concrete' name from table 1.11 of 'typography.pdf',
The predefined body font identifiers for free OpenType fons.



(...)
the LuaTeX part the old files are removed because we don't have the fonts
in the minimals and better alternatives (e.g. Computer Modern Unicode)
exists for them.


Are there .tex code files I could read, or a macro I could
use, to get a list of the typefaces I can use and the files
and typescripts I should include and activate in order to
do so?

Thanks,
Maurício

___
If your question is of 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread luigi scarso
On Sun, Jun 14, 2009 at 12:28 PM, Hans Hagen pra...@wxs.nl wrote:

 Vyatcheslav Yatskovsky wrote:

 Hello,

 For me, pstopdf is a number one candidate to luafication :)
 (Had problems with it recently)


 yes, will be done (we use it here in workflows with massive amounts of
 conversions, auto downsampling, etc)


If I understand well, pstopdf uses ghostscript .
luafication will use ghostscript again ?



-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread Mojca Miklavec
On Sun, Jun 14, 2009 at 17:22, luigi scarso wrote:

 For me, pstopdf is a number one candidate to luafication :)
 (Had problems with it recently)

 yes, will be done (we use it here in workflows with massive amounts of
 conversions, auto downsampling, etc)

 If I understand well, pstopdf uses ghostscript .
 luafication will use ghostscript again ?

Unless Hans rewrites the whole GS interpreter ... yes.

The problem is that current pstopdf doesn't work reliably for me (no
way to do EPSCrop, sometimes wrong paper orientation, the graphic
missing completely ...), so I usually stick to ps2pdf (perl or shell,
I think) or just call gs manually.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] finding out what font are available

2009-06-14 Thread Ciro Soto
Sorry for the long email.

I ran the selfupdate:
**
*% mtxrun --selfupdate  --verbose
*MtxRun | variable SELFAUTOLOC set to /home/ciro/context/tex/texmf-linux/bin
MtxRun | variable SELFAUTODIR set to /home/ciro/context/tex/texmf-linux
MtxRun | variable SELFAUTOPARENT set to /home/ciro/context/tex
MtxRun | variable TEXMFCNF set to /home/ciro/context/tex/texmf/web2c
MtxRun | loading configuration file
/home/ciro/context/tex/texmf/web2c/texmfcnf.lua
MtxRun | loading configuration for /home/ciro/context/tex/texmf/web2c from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/2f8879b44d23456e76a2b13e4fc4fa9b
MtxRun | locating list of /home/ciro/context/tex/texmf
MtxRun | loading files for /home/ciro/context/tex/texmf from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/fef1be4e394a17a934e9d3021bf5aabc
MtxRun | to be replaced old script
/home/ciro/context/tex/texmf-linux/bin/mtxrun
MtxRun | *unable to locate new script*

*% luatools --selfupdate --verbose*
LuaTools | version 1.2.2 - 2006+ - PRAGMA ADE / CONTEXT

LuaTools | variable SELFAUTOLOC set to
/home/ciro/context/tex/texmf-linux/bin
LuaTools | variable SELFAUTODIR set to /home/ciro/context/tex/texmf-linux
LuaTools | variable SELFAUTOPARENT set to /home/ciro/context/tex
LuaTools | variable TEXMFCNF set to /home/ciro/context/tex/texmf/web2c
LuaTools | loading configuration file
/home/ciro/context/tex/texmf/web2c/texmfcnf.lua
LuaTools | loading configuration for /home/ciro/context/tex/texmf/web2c from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/2f8879b44d23456e76a2b13e4fc4fa9b
LuaTools | locating list of /home/ciro/context/tex/texmf
LuaTools | loading files for /home/ciro/context/tex/texmf from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/fef1be4e394a17a934e9d3021bf5aabc
LuaTools | to be replaced old script
/home/ciro/context/tex/texmf-linux/bin/luatools
LuaTools | *unable to locate new script*
LuaTools |
LuaTools | runtime: 0.033 seconds

I added script/context/lua to my path:
*
% echo $PATH
*
/home/ciro/context/tex/texmf-linux/bin:/home/ciro/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
*/home/ciro//context/tex/texmf-context/scripts/context/lua*
:/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/bin/

*% mtxrun --scripts mtx-fonts --list*
mtx-fonts.lua:11: attempt to index global 'resolvers' (a nil value)

mtxrun --verbose --scripts mtx-fonts --list
MtxRun | variable SELFAUTOLOC set to /home/ciro/context/tex/texmf-linux/bin
MtxRun | variable SELFAUTODIR set to /home/ciro/context/tex/texmf-linux
MtxRun | variable SELFAUTOPARENT set to /home/ciro/context/tex
MtxRun | variable TEXMFCNF set to /home/ciro/context/tex/texmf/web2c
MtxRun | loading configuration file
/home/ciro/context/tex/texmf/web2c/texmfcnf.lua
MtxRun | loading configuration for /home/ciro/context/tex/texmf/web2c from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/2f8879b44d23456e76a2b13e4fc4fa9b
MtxRun | locating list of /home/ciro/context/tex/texmf
MtxRun | loading files for /home/ciro/context/tex/texmf from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/fef1be4e394a17a934e9d3021bf5aabc
MtxRun |
MtxRun | executing: luatex --luaonly mtx-fonts.lua --list
MtxRun |

mtx-fonts.lua:11: *attempt to index global 'resolvers' (a nil value)*

Some information about my system:

*% ll /home/ciro//context/tex/texmf-context/scripts/context/lua*
total 740
-rwxr-xr-x 1 ciro ciro  12565 2008-12-14 18:42 x-ldx.lua*
-rwxr-xr-x 1 ciro ciro  25310 2008-12-14 18:42 scite-ctx.lua*
-rwxr-xr-x 1 ciro ciro  0 2008-12-14 18:42 mtx-watch.lua*
-rwxr-xr-x 1 ciro ciro  10395 2008-12-14 18:42 mtx-server.lua*
-rwxr-xr-x 1 ciro ciro132 2008-12-14 18:42 mtxrun.rme*
-rwxr-xr-x 1 ciro ciro  14652 2008-12-14 18:42 mtx-patterns.lua*
-rwxr-xr-x 1 ciro ciro   4560 2008-12-14 18:42 mtx-mptopdf.lua*
-rwxr-xr-x 1 ciro ciro  10715 2008-12-14 18:42 mtx-interface.lua*
-rwxr-xr-x 1 ciro ciro   2751 2008-12-14 18:42 mtx-grep.lua*
-rwxr-xr-x 1 ciro ciro   6149 2008-12-14 18:42 mtx-fonts.lua*
-rwxr-xr-x 1 ciro ciro   3929 2008-12-14 18:42 mtx-convert.lua*
-rwxr-xr-x 1 ciro ciro  35233 2008-12-14 18:42 mtx-context.lua*
-rwxr-xr-x 1 ciro ciro   5157 2008-12-14 18:42 mtx-check.lua*
-rwxr-xr-x 1 ciro ciro   7581 2008-12-14 18:42 mtx-chars.lua*
-rwxr-xr-x 1 ciro ciro   3131 2008-12-14 18:42 mtx-cache.lua*
-rwxr-xr-x 1 ciro ciro  10963 2008-12-14 18:42 mtx-babel.lua*
-rwxr-xr-x 1 ciro ciro140 2008-12-14 18:42 luatools.rme*
-rwxr-xr-x 1 ciro ciro 227804 2008-12-14 18:42 luatools.lua*
-rwxr-xr-x 1 ciro ciro  18722 2008-12-27 06:38 mtx-update.lua*
-rwxr-xr-x 1 ciro ciro 295393 2008-12-27 06:38 mtxrun.lua*


*% which tex*
/usr/bin/tex

*% env | grep -i tex*
TEXMFOS=/home/ciro/context/tex/texmf-linux

Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread Hans Hagen

luigi scarso wrote:

On Sun, Jun 14, 2009 at 12:28 PM, Hans Hagen pra...@wxs.nl wrote:


Vyatcheslav Yatskovsky wrote:


Hello,

For me, pstopdf is a number one candidate to luafication :)
(Had problems with it recently)


yes, will be done (we use it here in workflows with massive amounts of
conversions, auto downsampling, etc)



If I understand well, pstopdf uses ghostscript .
luafication will use ghostscript again ?


sure, what else ... actually, pstopdf started out as some perl script 
long ago (when we started using pdftex) and we needed it not only in 
order to convert to pdf, but also to clean up some mess in eps files 
that interfered with the process


there's actually already something mtx-convert but it does not deal with 
eps


Hans

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

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


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread Hans Hagen

Mojca Miklavec wrote:

On Sun, Jun 14, 2009 at 17:22, luigi scarso wrote:

For me, pstopdf is a number one candidate to luafication :)
(Had problems with it recently)

yes, will be done (we use it here in workflows with massive amounts of
conversions, auto downsampling, etc)

If I understand well, pstopdf uses ghostscript .
luafication will use ghostscript again ?


Unless Hans rewrites the whole GS interpreter ... yes.

The problem is that current pstopdf doesn't work reliably for me (no
way to do EPSCrop, sometimes wrong paper orientation, the graphic
missing completely ...), so I usually stick to ps2pdf (perl or shell,
I think) or just call gs manually.


the problem with eps is that there are too many alternatives possible 
(also, versions of gs behave differently); there are actually a coiple 
of options (like cropping, downsampling etc) but as usual those command 
line switches are not documented -)


Hans


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

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


Re: [NTG-context] finding out what font are available

2009-06-14 Thread Hans Hagen

Ciro Soto wrote:


I ran the selfupdate:



/home/ciro/context/tex/texmf-linux/bin/mtxrun
MtxRun | *unable to locate new script*


ok, so that point in th edirection of a path problem


I added script/context/lua to my path:


better do a

cp mtxrun.lua...binpath.../mtxrun
cp luatools.lua  ...binpath.../luatools

(no suffix on unix)




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

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


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread luigi scarso
On Sun, Jun 14, 2009 at 5:41 PM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 On Sun, Jun 14, 2009 at 17:22, luigi scarso wrote:
 
  For me, pstopdf is a number one candidate to luafication :)
  (Had problems with it recently)
 
  yes, will be done (we use it here in workflows with massive amounts of
  conversions, auto downsampling, etc)
 
  If I understand well, pstopdf uses ghostscript .
  luafication will use ghostscript again ?



 Unless Hans rewrites the whole GS interpreter ... yes.





 The problem is that current pstopdf doesn't work reliably for me (no
 way to do EPSCrop, sometimes wrong paper orientation, the graphic
 missing completely ...),

hmm strange -- do you have an example ?
By defautl gs choose rotation studying dominant text orientation on current
page; cfr Setting page orientation
in Ps2pdf.htm
There is an option in pstopdf -dAutoRotatePages=/None .


so I usually stick to ps2pdf (perl or shell,
 I think)

A wrapper shell around gs

There is also pstill
http://www.wizards.de/~frank/pstill.html


-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread luigi scarso


 If I understand well, pstopdf uses ghostscript .
 luafication will use ghostscript again ?


 sure, what else ... actually, pstopdf started out as some perl script long
 ago (when we started using pdftex) and we needed it not only in order to
 convert to pdf, but also to clean up some mess in eps files that interfered
 with the process


So what about a lua wrapper of libgs.so libgs.dll ?
code should be not complicated
http://wiki.contextgarden.net/User:Luigi.scarso/luatex_lunatic#Ghostscript

-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread Mojca Miklavec
On Sun, Jun 14, 2009 at 19:26, luigi scarso wrote:

 The problem is that current pstopdf doesn't work reliably for me (no
 way to do EPSCrop, sometimes wrong paper orientation, the graphic
 missing completely ...),

 hmm strange -- do you have an example ?

For wrong paper orientation you can try (in gnuplot):

set term post
set output x.ps
plot sin(x)

and then convert the resulting file. For missing graphic I remember
exporting a file in OpenOffice Draw or something similar. (I can try
to find it.)

 By defautl gs choose rotation studying dominant text orientation on current
 page; cfr Setting page orientation
 in Ps2pdf.htm
 There is an option in pstopdf -dAutoRotatePages=/None .

Exactly that's the problem. Removing this particular option from the
default options that are applied to GS run solves the problem.


 so I usually stick to ps2pdf (perl or shell,
 I think)

 A wrapper shell around gs
 There is also pstill
 http://www.wizards.de/~frank/pstill.html

I'll try it out just for fun :)

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new structure code

2009-06-14 Thread Alan BRASLAU
On Sunday 14 June 2009 15:16:20 Hans Hagen wrote:
 keys like 'partnumber' are gone in mkiv; we now have sets and segments;
 here is the variant with segments: (2 = section 2 == chapter)

 \setuphead[part]   [resetnumber=no,placehead=yes]
 % \setuphead[chapter][sectionsegments=2:100]
 % \setuphead[section][sectionsegments=2:100]

 \setupstructureheads[sectionsegments=2:100]

 you can tune each number (also at list placement time or whatever)

Thanks. But I am not sure that I understand the syntax, sorry.
I tried looking at the code, but did not get very far.

Blindly using the following minimal example, I almost get
the desired result, but the parts are unnumbered.
I would like:

Part I. part one
Chapter 1. chapter one
1.1 section one\setuplist[part,chapter,section][partnumber=no]
1.2 section two
Chapter 2. chapter two
2.1 section one
2.2 section two
Part II. part two
Chapter 3. chapter three
3.1 section one
3.2 section two
Chapter 4. chapter four
4.1 section one
4.2 section two

\setuphead[part][resetnumber=no,placehead=yes]
%mkii \setuplist[part,chapter,section][partnumber=no]
\setupstructureheads[sectionsegments=2:100]
\starttext
\part{part one}
\chapter{chapter one}
\section{section one}
\section{section two}
\chapter{chapter two}
\section{section one}
\section{section two}
\part{part two}
\chapter{chapter three}
\section{section one}
\section{section two}
\chapter{chapter four}
\section{section one}
\section{section two}
\stoptext

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

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


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread Hans Hagen

luigi scarso wrote:



If I understand well, pstopdf uses ghostscript .
luafication will use ghostscript again ?


sure, what else ... actually, pstopdf started out as some perl script long
ago (when we started using pdftex) and we needed it not only in order to
convert to pdf, but also to clean up some mess in eps files that interfered
with the process



So what about a lua wrapper of libgs.so libgs.dll ?
code should be not complicated
http://wiki.contextgarden.net/User:Luigi.scarso/luatex_lunatic#Ghostscript


because it adds another dependency (dll/lib mess) while using the gs 
program is not much slower anyway


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

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


Re: [NTG-context] new structure code

2009-06-14 Thread Hans Hagen

Alan BRASLAU wrote:


Blindly using the following minimal example, I almost get
the desired result, but the parts are unnumbered.


\setuphead[part][sectionsegments=1:1]

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

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


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread luigi scarso
On Sun, Jun 14, 2009 at 8:00 PM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 On Sun, Jun 14, 2009 at 19:26, luigi scarso wrote:
 
  The problem is that current pstopdf doesn't work reliably for me (no
  way to do EPSCrop, sometimes wrong paper orientation, the graphic
  missing completely ...),
 
  hmm strange -- do you have an example ?

 For wrong paper orientation you can try (in gnuplot):

 set term post
 set output x.ps
 plot sin(x)

 and then convert the resulting file.

It seems that gnuplot set page orientation,
so best -dAutoRotatePages=/None
gs  -q -dNOPAUSE -dAutoRotatePages=/None  -sDEVICE=pdfwrite
-sOutputFile=x.pdf x.ps -c quit



 For missing graphic I remember
 exporting a file in OpenOffice Draw or something similar. (I can try
 to find it.)

Was a fault of OO ?


  A wrapper shell around gs
  There is also pstill
  http://www.wizards.de/~frank/pstill.htmlhttp://www.wizards.de/%7Efrank/pstill.html

 I'll try it out just for fun :)

well it's seems not fun at all -- absurde command line.
But it looks like the only ps interpreter alternative of gs on Linux /
Windows  .



-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Symbol join of \ll and equal

2009-06-14 Thread Xan

Hi,

I just want to know if there is a symbol that join \ll and = like \leq 
joins  and =. If not, it's possible to make that symbol (that has  
in upper and - in bottom; like \leq but with two )?


Thanks in advance,
Xan.

PS: In The not so short introduction to latex there is no such symbol. 
Maybe in ConTeXt

___
If your question is of 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new structure code

2009-06-14 Thread Alan BRASLAU
On Sunday 14 June 2009 20:23:50 Hans Hagen wrote:
 Alan BRASLAU wrote:
  Blindly using the following minimal example, I almost get
  the desired result, but the parts are unnumbered.

 \setuphead[part][sectionsegments=1:1]

I am still fishing... and don't really get it...

\setuphead[part][placehead=yes,sectionsegments=1:1,resetnumber=no]
\setupstructureheads[sectionsegments=2:5]

gives

Part 1 part one
1 chapter one
1.1 section one
...
Part 2 part two
1 chapter three
1.1 section one

whereas I am seeking

Part 1 part one
Chapter 1 chapter one
...
Part 2 part two
Chapter 3 chapter 3

So, resetnumber=no is not correct.
Chapter does not print.
I tried
\setuphead[chapter][placehead=yes]
but this did not work either.

Alan

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

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


Re: [NTG-context] Symbol join of \ll and equal

2009-06-14 Thread Joel C. Salomon
Xan wrote:
 I just want to know if there is a symbol that join \ll and = like \leq
 joins  and =. If not, it's possible to make that symbol (that has 
 in upper and - in bottom; like \leq but with two )?

No doubt you _could_ define such a symbol, but what is the meaning of
it?  The statement “a ≪ b” means a is _much_ less than b; i.e., not
anywhere near b, let alone _equal_ to b.

—Joel Salomon
___
If your question is of 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Symbol join of \ll and equal

2009-06-14 Thread Joel C. Salomon
Joel C. Salomon wrote:
 Xan wrote:
 I just want to know if there is a symbol that join \ll and = like \leq
 joins  and =. If not, it's possible to make that symbol (that has 
 in upper and - in bottom; like \leq but with two )?
 
 No doubt you _could_ define such a symbol, but what is the meaning of
 it?  The statement “a ≪ b” means a is _much_ less than b; i.e., not
 anywhere near b, let alone _equal_ to b.

B.T.W., I don’t see this in the Comprehensive LᴬTᴇX Symbol List, but
there is Unicode character U+2AA3 [⪣] “Double Nested Less-Than with
Underbar”.

—Joel Salomon

___
If your question is of 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] stand-alone ConTeXt

2009-06-14 Thread Yue Wang
 btw, if one uses mkiv, ruby is no longer needed unless one wants to run
 specific scripts that are not yet luafied; but then, installing ruby is no
 big deal anyway

How about process the mkii document using lua script too? So
eventually we can get rid of ruby and perl.

now context script supports --pdftex and --xetex switch, but it still
fall back to texexec and texutils ruby scripts.



 Hans


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

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___