Re: [NTG-context] Mini-survey: What do you do with ConTeXt?

2005-11-04 Thread luigi.scarso

 What do I do with ConTeXT?

  1. price-lists from  xml (DB exports) ;
  2. labels for shoes and dresses,  from xml/csv ;
  3. data sheetes (barcodes, code number and so on ), from xml/csv ;

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] spreadsheet

2005-10-25 Thread luigi.scarso

Hans Hagen Test wrote:


Jilani Khaldi wrote:




wait till pdfluatex is out -)




Does it have to do with the Lua language, or lua in middle has an 
other meaning?



the language

http://www.pragma-ade.com/general/manuals/luatex.pdf

Hans


I cannot resist
http://www.guit.sssup.it/GuITmeeting/2005/fotografie_1.php

near Sembra una bomba!

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: function plotting

2005-10-05 Thread luigi.scarso

Peter Münster wrote:


On Tue, 4 Oct 2005, Alexander Lazic wrote:

 


\usemodule[pstric]
\starttext
\startPSTRICKS
\psplot[plotpoints=100]{0}{1}{x 360 mul sin}
\stopPSTRICKS
\stoptext
 


Thanx i have try an get:

figures : figure pstest-texapp can not be found

but there is the file: pstest-texapp.tex
   



Hello Alexander,
I don't understand your problem, but perhaps you should write the psplot
command inside a \pspicture(0,-1)(1,1) ... \endpspicture.
Cheers, Peter

 


This works for me (I suppose your code is in pstest-texapp.tex):
$ texexec --output=dvips pstest-texapp.tex
$ dvips -o pstest-texapp.ps pstest-texapp.dvi
$ ps2pdf14 pstest-texapp.ps

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bug in \seeindex

2005-09-28 Thread luigi.scarso

Thomas A. Schmitz wrote:

And I don't have a solution, but another bug in registers: if you  
modify my example like so:


\starttext

This \index{This} and \index{And} that \index{That}.

\placeindex

\stoptext

you'll see one interesting detail in the pdf: This and That are in  
the index under h, And under n == capital letters are not taken  
into account in index generation, which is a trifle inconvenient.


hmm, not for me.
This and That are under 't', And under 'a'

# texexec --version

TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

  texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
  texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
  tex : pdfeTeXk, 3.141592-1.30.3-2.2 (Web2C 7.5.5)
  context : ver: 2005.08.31
  cont-en : ver: 2005.08.31  fmt: 2005.9.8  mes: english
  cont-nl : ver: 2005.08.31  fmt: 2005.9.8  mes: english

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ruby, Lua, Megapost, tcl, ...

2005-09-19 Thread luigi.scarso

Hans Hagen wrote:



btw, it's not a dependency: lua will be 'always pesent in the binary' 
and since we nowadays only have one binary ... also, my guess is that 
adding it to aleph is easy


ok, secret link: http://www.pragma-ade.com/general/manuals/luatex.pdf


FANTASTIC!! It's what I want.

I always think about embedding python; but now  this can be a
private project .

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [OT] lilypond inclusion + pdf crop

2005-09-16 Thread luigi.scarso

andrea valle wrote:


My program is written in Python.


wow, so i'm not the only one..


I don't want, too. I'd like to have python :)


Did you see
http://pyx.sourceforge.net/

and
http://oedipus.sourceforge.net/py2tex/


luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupbodyfont[10dd]

2005-09-14 Thread luigi.scarso

Hans Hagen wrote:

yeah, a nice job for the coming winter, in my just finished library 
anex study annex attic annex music room -)


More I see style.pdf, more I like it (...about  colors:with xpdf it's 
not easy to read)

I'm sure that we need it : it will fill a hole.

For programmer ,we have pdfs for pdftex  (manuals and pdftex-web, );
for user/macro writer, we have pdfs for context (modules, 
cont-eni,ms-cb,metafun);

for good design we will have style.pdf .

luigi




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux and Context on 64 bit

2005-09-14 Thread luigi.scarso

Taco Hoekwater wrote:



Those executabless are now part of the minimal distribution:

  http://context.aanhet.net/context/install/linux64tex.zip



$uname -a
Linux stanley.log.net 2.6.11-6mdksmp #1 SMP Tue Mar 22 15:40:42 CET 2005 
i686 Intel(R) Xeon(TM) CPU 3.00GHz unknown GNU/Linux


$ ldd dvips
dvips: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for 
GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped


$ chmod 700 dvips ; ./dvips
bash: ./dvips: cannot execute binary file

It seem that I need to compile from sources...

luigi


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupbodyfont[10dd]

2005-09-13 Thread luigi.scarso

Hans Hagen wrote:


Mojca Miklavec wrote:


Don't ask me why, but apparently these minimalistic differences are
pretty important in publishing.
 

You're joking, aren't you? Publishing as dictated by the dtp world is 
only concerned about a few things: 


As soon as possible, you should complete style.pdf  ( Typographic  
Programming )

luigi

(by the way, I use dd because I have a nice dtp-typometer with Punkte 
and Cicero and 0.5mm)




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux and Context on 64 bit

2005-09-12 Thread luigi.scarso



I build/install and run teTeX 3.0 on RHEL 3 IA64  SUSE 9.0 AMD64
without any problem.
And of course ConTeXt (standard with teTeX or updated for latest
release) works very well too.

FYI
 


Thanks to all.
With a bit of lucky, I will able to setup my new baby this week.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] No parindent?

2005-09-12 Thread luigi.scarso

Giuseppe Bilotta wrote:



(And keep your hopes up, I'm steadly heading towards the end
of my PhD :))

 


shine on, you crazy diamond !!!

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Linux and Context on 64 bit

2005-09-09 Thread luigi.scarso

Hi, I need some help in installing
linux and context on a DellPowerEdge 1850 with IntelXEON (64 bit)
I see something on mailing list about linux64inst.tar.bz2
(a broken link http://tex.aanhet.net/temp/linux64inst.tar.bz2 
(7247788bytes) )


but it's unclear to me how to go on (well, it's friday)

Thanks in advance
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Adobe reader 7.0.1 for linux

2005-09-08 Thread luigi.scarso

While downloading reader 7.0.1 for linux, I read this from adobe site:

By downloading software from the Adobe web site, you agree to the terms 
of our license agreements, including that you agree not to use Adobe 
Reader software with any other software, plug-in or enhancement which 
uses or relies on Adobe Reader when converting or transforming PDF files 
into other file formats


Does makempy.pl need acroread to work ?

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Undefined control sequence \starttypescriptcollection

2005-09-07 Thread luigi.scarso

Pearson, Mark (Capita Symonds) wrote:


- START OUTPUT -
$ texexec --version
 


what about
$texexec --verbose

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Filling forms

2005-09-06 Thread luigi.scarso

Hi, I'm working on a project that require filling forms.
Every field has  (x,y,width,height) dimension and
ui=(barcode,texEdit) type (textEdit has some attributes too)
I wrote this

%--
\unprotect
\definelayer[BackLayer]%
\setupbackgrounds[page][background={BackLayer}]

\setuplayout[topspace=0pt,backspace=0pt,margin=0pt,leftmargin=0pt,location=middle, 


rightmargin=0pt,header=0pt,footer=0pt,top=0pt,bottom=0pt,
leftedge=0pt,rightedge=0pt,headerdistance=0pt,footerdistance=0pt,
topdistance=0pt,leftmargindistance=0pt,rightmargindistance=0pt,
leftedgedistance=0pt,rightedgedistance=0pt,width=fit,height=fit]

\def\BarcodeThreeOfNine#1{#1} %% todo

\def\Field[#1]{%
\bgroup
\getparameters[!!][#1]%% collect key/val
%
%
 textEdit
\doifsamestring{\!!ui}{textEdit}{% text field
\setlayer[BackLayer][x=\!!x,y=\!!y ,location=br]{%
[EMAIL PROTECTED] collect textEdit 
attributes

[EMAIL PROTECTED] collect para attributes
\ruledvbox to \!!h{\hsize=\!!w %
\vss
[EMAIL PROTECTED] single line
[EMAIL PROTECTED]
  \hbox to \!!w {\getvalue\s!dummy \vphantom{K}\getvalue\!!name \hss}%
 }%
[EMAIL PROTECTED]
  \hbox to \!!w {\getvalue\s!dummy \vphantom{K} \getvalue\!!name \hss}%
}%
[EMAIL PROTECTED]
 \hbox to \!!w {\hss \getvalue\s!dummy  \vphantom{K} \getvalue\!!name}%
}%
[EMAIL PROTECTED]
 \hbox to \!!w {\hss \getvalue\s!dummy  \getvalue\!!name \hss}%
}%
}{% multiline
\getvalue\s!dummy \getvalue\!!name%
}
%
\vss
}}}%
 barcode
\doifsamestring{\!!ui}{barcode}{% barcode (todo..)
\setlayer[BackLayer][x=\!!x,y=\!!y ,location=br]{%
\doifsamestring{\!!type}{39}{% type of barcode
\ruledvbox to \!!h{\hsize=\!!w
\vss
\centerline{\expanded{\BarcodeThreeOfNine{\getvalue{\!!name
\vss}
}%
}}
\egroup
}
\protect

%%
%% Macros for filling forms
%%
\def\FillForm{%
%%
%% I have really 200 Fields
%%
\Field[%
name={codicearticolo_len6},%
ui={textEdit},%
textEdit={multiLine={0},},%
%x={0.520in},%
x={0.520in},%
y={0.217in},%
w={3.096in},%
h={0.882in},%
para={vAlign={middle},hAlign={}},%%
]

\Field[%
ui={barcode},%
type={39},%
name={barcode_codice___matricola},%
x={0.434in},%
y={1.259in},%
w={4.210in},%
h={0.651in},%
para={vAlign={middle},hAlign={}},%%
]
}

\starttext
\bgroup
%% I have really 200 \setvalue 
\setvalue{codicearticolo_len6}{957803}
\setvalue{barcode_codice___matricola}{*9F9578030052201312*}
\hskip1sp%% force flush layer ??
\FillForm\page
\egroup
%% and so on for 1000 /1500 pages...
\stoptext

%
Problems
1) I have 200 fields for a single page;
2) I have 1000/1500 pages
My code it's very slow:  does anybody has another approach ?

Thanks in advance
luigi


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour of colors

2005-09-06 Thread luigi.scarso

Mojca Miklavec wrote:


Hello,

In the following example, the title color changes on the second page. 
How can I avoid that? I can probably switch the cmyk/rgb colors off, 
but I would like to keep them as rgb/cmyk if possible.


\setupcolors[state=start]
\setuphead[title][page=yes,color=blue]
\starttext

\title{first page}
some text

\title{second page}
The title color has changed.

\definecolor [transparentred]  [r=1,t=.5,a=1]
\blackrule[width=2cm,height=2cm,color=transparentred]
\stoptext

Thank you,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


And moving \definecolor [transparentred]  [r=1,t=.5,a=1]
before \starttext ?
Under linux with acro7 I can't see differences.

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour of \mirror inside itemize

2005-09-06 Thread luigi.scarso

Mojca Miklavec wrote:



Try this code out with:

\startitemize
\item \XETEX
\item \PDFETEX
\stopitemize


it seems a bug..

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How this LaTeX code could be translated into ConTeXt?

2005-09-02 Thread luigi.scarso

Jilani Khaldi wrote:


Hi All,
Migrating to Context,


for italian users there is also

http://www.guit.sssup.it/forum/



I need to translate this code from Latex
\begin{table}
\begin{tabularx}{16cm}{|c|X|X|}
\hline
blabla  blabla  blabla\\
\hline
...
\hline
\end{tabularx}
\end{table}

Any hint?


Do you see
http://wiki.contextgarden.net/Tables_Overview

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] update modules.pdf to latest release

2005-09-02 Thread luigi.scarso

Update modules.pdf to 2005.08.31 distro, with pdftex 1.30.2

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] modules.pdf: release 2005.08.31 for tomorrow

2005-09-01 Thread luigi.scarso

I was busy, so i planned to make this  new release for tomorrow.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [Fwd: ConTEXt Newbie: Column/table background color - which table model/command?]

2005-08-29 Thread luigi.scarso

Taco Hoekwater wrote:



Hi all,

Forwarding this from c.t.t. It looks like perhaps the OP's code
is correct and something in ConTeXt is wrong (at least I cannot
find anything wrong with the example code, even with
\setupcolors[state=start], I get no background color).
Perhaps somebody who has actually used table backgrounds can
help?


I hope this can help;
see chapter Color and background in cont-eni.pdf

%--
\setupcolors[state=start] %% useful: default=stop
\setupbackground[state=start] %% useless: default=start
\starttext
\placetable
{Just a table.}
%% from cont-eni.pdf  :``The command \background expects
%% an argument. Because a table is `grouped' it will generate
%% by itself and no extra braces are necessary.``
\background
\starttable[|c|c|c|]
\HL
\VL red\VL green\VL blue\VL \AR
\VL cyan \VL magenta \VL yellow \VL \AR
\HL
\stoptable
\stoptext
%---

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Unable to make cont-en.fmt

2005-08-25 Thread luigi.scarso
Hi, while installing latest pdftex 1.30.1 I have messed with some 
configs files

and now I am unable to remade format.
So
$ fmtutil --byfmt cont-en
gives

running `pdfetex -ini   -jobname=cont-en -progname=context -8bit 
*cont-en.ini' ...

This is pdfTeXk, Version 3.141592-1.30.1 (Web2C 7.5.5) (INITEX)
%-line parsing enabled.
! I can't find file `*cont-en.ini'.
* *cont-en.ini
  
Please type another input file name:

! Emergency stop.
* *cont-en.ini
  
No pages of output.

Transcript written on cont-en.log.
Error: `pdfetex -ini  -jobname=cont-en -progname=context -8bit 
*cont-en.ini' failed


###
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
 /usr3/TeX/texmf-var/web2c
for details.
###

This is a summary of all `failed' messages and warnings:
`pdfetex -ini  -jobname=cont-en -progname=context -8bit *cont-en.ini' failed

In file fmtutil.cnf there is the correct line :
cont-en pdfetex cont-usr.tex-8bit *cont-en.ini
(instead
cont-en pdfetex cont-usr.tex-8bit  cont-en.ini
works )

I have cont-en.ini in
$kpsewhere cont-en.ini
/usr3/TeX/texmf-dist/tex/context/config/cont-en.ini

Any ideas ?

thanks
luigi







___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Unable to make cont-en.fmt

2005-08-25 Thread luigi.scarso

Taco Hoekwater wrote:



Luigi,

It attempts to read the file *cont-en.ini, with the star included
in the name. From personal experience, I know that this will happen
when pdfetex is not really pdfetex, but a non-etex pdftex ...
(because of a symlinked executable, i'll wager)


symlink it's the magic word...
Yes, the error happened when I copied latest pdfetex and pdftex:
pdftex is symbolic link to pdfetex.
I was so stupid to remade copy until i didn't read your answer...

Now all it's ok.

Many thanks Taco

luigi

PS:
What do you think about to write a dense guide to programmer on how to add
a pdftex primitive (something like \pdfhelloworld) and how to interface 
to an

external libray (like zlib) ?
I think that this will fill a hole in documentations.




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] modules.pdf

2005-08-23 Thread luigi.scarso

Fix partial contents; see
http://contextgarden.net/User:Luigi.scarso/modules.pdf

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] font missing for palatino

2005-08-19 Thread luigi.scarso

Fixed:
\usetypescript [berry]   [ec]
\setupencoding[ec]
\loadmapfile [context-base] %%add this
\usetypescript[palatino][\defaultencoding]
\setupbodyfont[palatino,12pt]


\starttext

test

\stoptext

(cfr. http://contextgarden.net/Psnfss)

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] pdfetex manuals

2005-08-19 Thread luigi.scarso

I have compiled pdfetex 1.30 manuals ; they are at
http://www.logosrl.it

*)pdftex-a.pdf: A4
*)pdftex-l.pdf: letter
*)pdftex-s.pdf: screen
To compile, I have to patch pdftex-t.tex adding
\loadmapfile [context-base]
after
\usetypescript [adobekb] [\defaultencoding]

*)samplepdf.zip: samplepdf dir with samplepdf.tex compiled
Typing error: SoundfFile.wav ==SoundFile.wav

*)pdfetex-web.pdf: eTex -The Program with pdf extension
$ weave pdfetex.web
replace first line
\input webmac
with
\input pdfwebmac
$ pdfetex pdfetex.tex


luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] pdfetex manuals

2005-08-19 Thread luigi.scarso

luigi.scarso wrote:


I have compiled pdfetex 1.30 manuals ; they are at
http://www.logosrl.it


http://www.logosrl.it/context

Sorry


*)pdftex-a.pdf: A4
*)pdftex-l.pdf: letter
*)pdftex-s.pdf: screen
To compile, I have to patch pdftex-t.tex adding
\loadmapfile [context-base]
after
\usetypescript [adobekb] [\defaultencoding]

*)samplepdf.zip: samplepdf dir with samplepdf.tex compiled
Typing error: SoundfFile.wav ==SoundFile.wav

*)pdfetex-web.pdf: eTex -The Program with pdf extension
$ weave pdfetex.web
replace first line
\input webmac
with
\input pdfwebmac
$ pdfetex pdfetex.tex


luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] modules.pdf

2005-08-19 Thread luigi.scarso

Update to latest distro;see
http://contextgarden.net/User:Luigi.scarso/modules.pdf


luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] font missing for palatino

2005-08-18 Thread luigi.scarso

Hi,
with following code
%---
\usetypescript[berry][ec]
\setupencoding[ec]
\usetypescript[palatino][\defaultencoding]
\setupbodyfont[palatino]

\starttext

test

\stoptext
%--

I've a missingfonts.log:
mktexpk --mfmode / --bdpi 72 --mag 1+14/72 --dpi 86 uplr8r

Any ideas ?

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] modules.pdf

2005-08-17 Thread luigi.scarso

I'm now synchronized with latest distro (2005.08.05) and pdfetex 1.3

Under
http://www.logosrl.it/context/
there are

*)modules.pdf  (~21MByte)

*) modules.zip, used to make modules.pdf

*)patches.zip, a zip file with following patches:
core-rul.patch
font-chi.patch
spec-fdf.patch
supp-lan.patch
supp-pdf.patch

*) modules.log


I found some problem with mill.png:  I put it under base/ and it was 
correctly included.

Also, partial indeces are not ok.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] modules.pdf

2005-08-17 Thread luigi.scarso

Mojca Miklavec wrote:



I would suggest to keep the old files and name them like
2005-08-16-modules.pdf 


done


(and perhaps to keep all the files (except
ConTeXt itself of course) since they have to be updated from time to
time as new files are added to the distribution). That way the old
content will not misteriously disappear.

 

patches.zip contains patches for files with  some typo-errors (eg. $x4 
instead of $x$)
they  are (almost) irrelevant at format-generation time, because they 
are not

processed at all .

Also, some macros are in dutch (eg, \blank[2*groot]);
I excluded some others macros (\startpostponing ), correct some others
( \getvalue{period graybox} with \dotgray)
added \loadmap[gbk] and so on.

Partial contents  are ugly (or broken ?) ;
there are many important modules to document (see Core Commands in 
modules.pdf;

inside modules.tex, 3=ok, 1=to be documented, 0= to be exctract)

There are some overfull lines;
maybe there is a better sectioning (or multiple pdfs ?).


So, I think that this is a good starting point

I think that all patches should be approvated before to go into an 
official distro;

after that we can discuss all other stuffs.



It would be a nice idea to put that files on the garden anyway
 



no problem to me

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Latest distro

2005-08-16 Thread luigi.scarso

Is  2005-08-15 latest distro ?

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \type ,\meaning eror check

2005-07-29 Thread luigi.scarso

I have this problem:

%% test.tex
%-save this with utf-8 encoding--
\language[it]
\enableregime[utf]
\newif\ifArticleError
%%
\def\startArticle[#1]{%
\getparameters[ARTICLE][#1]
\setbox101=\vbox{%
\csname ARTICLEdescription\endcsname%
}
%% here some sorts of checking
%% if there are some errors
%% while expanding
%% \csname ARTICLEdescription\endcsname ;
%% check will change state of \ifArticleError
%%
\ifArticleError
%%  errors:
%% typescript macros \ARTICLEdescription
\type{description:}%
\edef\T{\expandafter%
\meaning\csname ARTICLEdescription\endcsname}%
\aftersplitstring \T \at\to\Temp%
\expandafter\type\expandafter{\Temp}%
\else %% else ok
\type{OK}%
\fi
}
%%
\starttext
{{\bf Hòàà}\framed{wrong  framed macros}}
\startArticle[description={{\bf Hoòaà}\framed{ok  framed macro}}]
\startArticle[description={{\bf Hoòaà}\Framed{WRONG  framed macro}}]
\stoptext
%

where
oò := {o\`o}
aà := {a\`a}

compile it with
$texexec --pdf --batch test.tex

Problems

  1. i dont't know how to make checking
  2. \type does not combine well with \meaning: ò (ie {\`o} ) is not show.

thanks in advance

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \type ,\meaning eror check

2005-07-29 Thread luigi.scarso

Taco Hoekwater wrote:




AFAIK, there is only one way to do this: write a new tex file on-
the-fly and run a separate texexec on that file (using \write18),
then parse the resulting log file for the occurence of any errors.
Not simple at all, I'm afraid.


hmm, i've hundred of \startArticle..

  2. \type does not combine well with \meaning: ò (ie {\`o} ) is not 
show.




  \expanded\type{\expandafter\scantokens\expandafter{\Temp}}%


good , but type also first \expandafter after \type

thanks
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \type ,\meaning eror check

2005-07-29 Thread luigi.scarso

Taco Hoekwater wrote:


Sorry, the correct solution is:

 \expandafter\expandafter\expandafter\type
 \expandafter\expandafter\expandafter
   {\expandafter\scantokens\expandafter{\Temp}}%


sounds good, thanks
(I was missing some \expandafter ...)

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \page[+2]

2005-07-28 Thread luigi.scarso

Elena Fraboschi wrote:


Dear All:

This is like going to school: every evening I study a very narrow
topic in ConTeXt, the idea being Si va piano, si va lontano (go
slow and you'll get far). 


Well, i know Chi va piano, va sano e lontano, chi va forte va alla morte,
something as One who goes slowly goes safely and far; one who goes 
quickly will die


But also, today
Chi va piano, va sano e lontano, ma arriva dopo!
One who goes slowly goes safely and far, but he come after!

It's an italian proverb:there are two syllable rimes in 'NO' and 'TE', i.e.
Chi va piaNO
va saNO
e lontaNO
,pause
chi va forTE
va alla morTE.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] PDF output versions?

2005-07-26 Thread luigi.scarso

Brooks Moses wrote:

I just noticed that when I compile ConTeXt files with texexec -pdf, my 
copy of Acrobat 5 complains about the PDF version of this file is too 
new for this viewer, but when I compile LaTeX files with pdflatex, I 
don't get that complaint.


Is there some way to set ConTeXt and texexec to create PDF files of 
the earlier version?


(I'll upgrade Acrobat eventually, but I have the full version and use 
the editing features a fair bit, and I gather that having the full 
version of Acrobat 5 and the free version of Acrobat 7 on the same 
machine causes lots of headaches.)


- Brooks

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Try
\pdfoptionpdfminorversion=4

But also have look at
http://sarovar.org/project/shownotes.php?group_id=106release_id=475

(extract from notes)

===
 Main changes of pdfTeX 1.30.0-rc5
===

- pdfxtex (introduced with 1.20a) is gone; all extensions are now in pdf(e)tex.
- Some primitives have been renamed; the old names will still work, but are
 deprecated and some give a warning that they are obsolete:
   \pdfoptionpdfminorversion - \pdfminorversion



luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Feature request

2005-07-26 Thread luigi.scarso

Hans Hagen wrote:


Mojca Miklavec wrote:



for that, but it doesn't take the baseline into consideration, so it
has to be manually tuned for every line, every font  every font size
(printed and compared if it looks OK).
 


\definelayer[text][height=\textheight,width=\textwidth]

\showgrid

\starttext

\startstandardmakeup

\setlayer[text][location=grid,line=10]{test}
\setlayer[text][location=grid,line=10,x=10cm]{test}

   \flushlayer[text]

\stopstandardmakeup


%% add this line
\stoptext % :-)

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Help with interaction

2005-07-20 Thread luigi.scarso

Hi, I would like that whan i click over 'Bho' at page 1
I go to page 2 and see the title Bho

\setupinteraction[state=start, focus=width]
\starttext
\about[etichetta]
\page
\section[etichetta]{Bho}
\input tufte
\stoptext

This piece of latex does the thing I want
%%% latex
\documentclass[a4paper, 12pt]{article}
\usepackage[bookmarks=false, pdfstartview=FitH, pdfview=FitH]{hyperref}
\usepackage{nameref}
\begin{document}
\nameref{etichetta}
\clearpage
\section{Bho}\label{etichetta}
\input{tufte}
\end{document}


thanks
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help with interaction

2005-07-20 Thread luigi.scarso

luigi.scarso wrote:


Hi, I would like that whan i click over 'Bho' at page 1
I go to page 2 and see the title Bho

\setupinteraction[state=start, focus=width]
\starttext
\about[etichetta]
\page
\section[etichetta]{Bho}
\input tufte
\stoptext

This piece of latex does the thing I want
%%% latex
\documentclass[a4paper, 12pt]{article}
\usepackage[bookmarks=false, pdfstartview=FitH, pdfview=FitH]{hyperref}
\usepackage{nameref}
\begin{document}
\nameref{etichetta}
\clearpage
\section{Bho}\label{etichetta}
\input{tufte}
\end{document}


thanks
luigi
___ 


If I use
\setupinteraction[state=start, focus=minwidth]

I have
! Undefined control sequence.
argument \v!minwidth


To work\unprotect
\def\dosetuppageview#1% watch the v-h swapping here
 {\processaction
[#1]
[   \v!fit=\def\PDFpageviewkey  {fit}\def\PDFpageviewwrd{/Fit},
  \v!width=\def\PDFpageviewkey {fith}\def\PDFpageviewwrd{/FitH},
 \v!height=\def\PDFpageviewkey {fitv}\def\PDFpageviewwrd{/FitV},
   minwidth=\def\PDFpageviewkey{fitbh}\def\PDFpageviewwrd{/FitBH},
  minheight=\def\PDFpageviewkey{fitbv}\def\PDFpageviewwrd{/FitBV},
   standard=\def\PDFpageviewkey{xyz 
\PDFpagexyzspec}\def\PDFpageviewwrd{/XYZ \PDFpagexyzspec},

\s!unknown=\def\PDFpageviewkey  {fit}\def\PDFpageviewwrd{/Fit}]%
  \edef\PDFpageview{/View [\PDFpageviewwrd]}}
\protect


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Paragraph internal graphic/layout inquiry.

2005-07-19 Thread luigi.scarso

Matthias Weber wrote:


You can comment out the line

\doifnotmode{demo}{\endinput}

There is probably also an invocation of TeX with a command line option 
which sets the mode.



I made it with
$texexec --pdf --mode=demo m-shape.tex

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] color transparency

2005-07-14 Thread luigi.scarso

Brooks Moses wrote:


I've added it to http://contextgarden.net/index.php?title=Colors.

- Brooks


Really good; thanks.
Some pdfs:

  1. rgb-cmyk.pdf
  2. cmyk-rgb.pdf
  3. art-colo.pdf
  4. msplit.pdf
  5. metafun-s.pdf, Special effects, pag 317
  6. mag-0006.pdf
  7. cont-eni.pdf,  Color and background

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Not possible to redefine inbetween in \definedescription

2005-07-14 Thread luigi.scarso

Radhelorn wrote:



Thanks.
So every command with brackets needs to be grouped? Maybe something 
else? Where

to look at it?



It's better   grouping with {}  with brackets; there should be nothing else.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] color transparency

2005-07-13 Thread luigi.scarso
Hi, I'm sure that i have seem a nice pdf (not msplit.pdf) with an 
example of colors

transparencies and combinations.
If i  remember, there was 3 or 4 colored rectangles stacked at the 
first/second page of this pdf ...

I have search on pragma site, but without results.

Can somebody help me ?

Thanks in advance
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Setting up chapter.

2005-07-13 Thread luigi.scarso

John R. Culleton wrote:

 


This has been educational. Who says you can't teach an old dog
new tricks? 

 


Did you seen mag-0001.pdf (Hiding parts of section titles) ?
It has some useful hints.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Setting up chapter.

2005-07-12 Thread luigi.scarso

John R. Culleton wrote:


On Monday 11 July 2005 09:34 pm, Stuart Jansen wrote:
 


On Mon, 2005-07-11 at 17:12 +, John R. Culleton wrote:
   


I am trying to set up chapter heads a certain way and my code
keeps getting uglier. Here are the specs:

1. Chapter number centered, with decorations on either side.
2. Chapter title centered below chapter number.
3. Additional decoration centered below chapter title.
4. Both number and text show up in TOC in normal Context manner.

Can this be done easily using the normal chapter macro or should
I do it all from scratch? (If I roll my own I worry about getting
info to the TOC.)
 


I am doing something like that now. Sorry the example isn't very pretty,
had to rip out parts that were specific to the font I'm using, but
should give you an idea of what you need to do.

=
   


Your example was very helpful. Using it, and with some more
RTFM, I came up with this configuration:

\setuphead[chapter][numbercommand=\numcommand,page=right,
header=none,textcommand=\texcommand,align=right]

\def\numcommand#1{\hfil\webo m\hfil\tfd#1\hfil\webo m\hfil\break}

\def\texcommand#1{\hfil #1 \hfil\crlf\deco}


My problem remains with the horizontal alignment of the chapter
text. I have tried left, right, normal, broad. All I want to do
is center it, per my specification 2 above. 

Webo is the webomints dingbat font. 
 


Maybe this can help you ?

\def\Command#1#2{\ruledvbox{\hbox to \textwidth{\hfill #1 \hfill}\\%
\hbox to \textwidth{\hfill #2 \hfill}\\%
\hbox to \textwidth{\hfill deco! \hfill}}}

\def\NCommand#1{\framed{#1}}% Insert here other stuff for decorate number

\def\TCommand#1{\framed{#1}}% Insert here other stuff for decorate text

\setuphead[chapter][command=\Command,numbercommand=\NCommand,textcommand=\TCommand]

Warning: \completecontent has a bizzarre look.


luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Animations in ConTeXt

2005-07-08 Thread luigi.scarso

[a little off topic]

http://www.quiss.org/swftools/examples.html
(pdf - swf; open new views if we think mp-pdf-swf driven by context..)

http://www.pragma-ade.com/dir/itdemos/internal/media/
(how to play mediashow.smi ? maybe
https://player.helixcommunity.org 
can help ?)


luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Making texshow easier to edit

2005-07-08 Thread luigi.scarso

Mojca Miklavec wrote:


- a link to download documentation (pdf or png with html navigation) for
single .tex files could be present (like in modules.pdf)


Actually, modules.pdf  is an old  version.
I'm making a new modules.pdf; news at
http://contextgarden.net/User:Luigi.scarso/modules.pdf
(actually useless link: maybe next week...)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Guit

2005-07-07 Thread luigi.scarso

Hans Hagen wrote:


  2. at http://www.guit.sssup.it/forum there is a forum for ConTeXt in
 italian language;



i grep no 'context' on that page, so no opportunity to polish my 
italian -)



Only Forum su TeX, LaTeX e GuIT (grrr)
I will send an email to our admin.

BTW, 
http://www.guit.sssup.it/phpbb/index.php


luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] modules.pdf : unicode/fonts problems

2005-07-07 Thread luigi.scarso

While making modules.pdf

$texmfstart texexec --pdf --modu font-chi

fails with
font-chi.log:! Font \unicodefont=gbsongcd at 10.0pt not loadable: Metric 
(TFM) file not found


I have
$ls ./texmf-local/fonts/tfm/chinese
b5kai/  b5kaii/  b5song/  b5songi/  gbkai/  gbkaii/  gbsong/  gbsongi/

$ls ./texmf-local/fonts/tfm/chinese/gbsong/
gbsong01.tfm ..to..  gbsong89.tfm
with some holes in between.


Apparently I have loose some tfm.
Any ideas ?

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] modules.pdf : unicode/fonts problems

2005-07-07 Thread luigi.scarso

luigi.scarso wrote:


While making modules.pdf 


Sorry, I have not search into mail list ;
forget it.

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why does ConTeXt try to load Latin Modern?

2005-07-06 Thread luigi.scarso

Giuseppe Bilotta wrote:



ConTeXt still tries to load lmr12, though:

This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded 
format=cont-en 2005.7.6)  6 JUL 2005 15:47
entering extended mode
**tesi.tex
(tesi.tex
 


I N   B O C C A   A L   L U P O  !!!

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why does ConTeXt try to load Latin Modern?

2005-07-06 Thread luigi.scarso

Taco Hoekwater wrote:




**tesi.tex

This is a hidden sign that G. Billotta is working on his mathematics 
*dissertation...

('quasi finita', i hope)
*






I N   B O C C A   A L   L U P O  !!!



Crepi il lupo! :)





When someone tells you in bocca al lupo to wish you good luck, you 
are supposed to reply crepi (maybe you can use the extended sentence 
as well, i. e. crepi il lupo).

If you simply reply grazie, you are supposed not to have luck! 
Used sometimes by students to wish each other good luck before exams.

Well, G. Billotta was the first (and last, for now) italian I met inside 
context code.

I was able to find one of his article on context at
http://obelix.ee.duth.gr/eft/eutupon/eutupon9.pdf
which I'm reading for a (planned) presentation to guit 2005 meeting,
together with modules.pdf  which I'm building , with some efforts.

I hope that when modules.pdf will be ok, answer sto questions like
Why does ConTeXt try to load Latin Moder will be more rapid.

luigi



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Guit

2005-07-06 Thread luigi.scarso

Hans Hagen wrote:



hm, looking at list i count some 12 italian members


Maybe useless, but for all these italian members:

  1. http://www.guit.sssup.it is the official link for the Italian TeX
 Users Group;
  2. at http://www.guit.sssup.it/forum there is a forum for ConTeXt in
 italian language;
  3. Please, join the guit  !!


Note::the offial link for guit is
http://www.guit.sssup.it

luigi

-Italian translation-
Forse e' inutile, ma per tutti gli iscritti italiani:

  1. http://www.guit.sssup.it e' il link ufficiale per l' Italian TeX
 Users Group;
  2. in http://www.guit.sssup.it/forum c'e' un forum dedicato a ConTeXt
 in lingua italiana;
  3. Iscrivetevi al guit !!!

Nota:: Il link ufficiale per il guit e'
http://www.guit.sssup.it

luigi


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Again modules.pdf

2005-06-30 Thread luigi.scarso

I will track changes on
http://contextgarden.net/User:Luigi.scarso/modules.pdf


luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun not working

2005-06-29 Thread luigi.scarso

MP.tex  does not work for me.


MP.tex:
\starttext
\startMPcode
graphictext MP scaled 8 outlinefill
withdrawcolor .7blue withfillcolor .7white dashed
evenly withpen
pencircle scaled 2pt ;
\stopMPcode

run with
$texexec --pdf --automprun MP.tex MP.out

MP.out:
TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004

   executable : pdfetex
   format : cont-en
inputfile : MP
   output : pdftex
interface : en
 current mode : none
  TeX run : 1

This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
(/usr/share/texmf/web2c/natural.tcx)
output format initialized to DVI
entering extended mode
(./MP.tex

ConTeXt  ver: 2005.01.13  fmt: 2005.3.7  int: english  mes: english

language   : language en is active
protectionstate 0
system : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 27]
color  : palette rollover is available
system (E-TEX) : [line 842]
system (E-TEX) : [line 897]
)
system : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys loaded
(/usr/share/texmf/tex/context/base/cont-sys.tex)
bodyfont   : 12pt rm is loaded
language   : patterns af-default:default-1-2:2 
ca-default:default-2-2
:2 cz-il2:il2-3-2:2 cz-ec:ec-4-2:2 da-default:default-5-2:2 
de-texnan
si:texnansi-6-2:2 de-ec:ec-7-2:2 en-default:default-8-2:2 
es-default:d
efault-9-2:2 fi-default:default-10-2:2 
fr-texnansi:texnansi-11-2:2 fr-
ec:ec-12-2:2 hr-il2:il2-13-2:2 hr-ec:ec-14-2:2 
hu-ec:ec-15-2:2 it-t
exnansi:texnansi-16-2:2 it-ec:ec-17-2:2 
nl-texnansi:texnansi-19-2:2 nl-
ec:ec-20-2:2 no-texnansi:texnansi-21-2:2 no-ec:ec-22-2:2 
pl-pl0:pl0-
23-2:2 pl-ec:ec-24-2:2 ru-default:default-27-2:2 
sk-il2:il2-28-2:2 sk
-ec:ec-29-2:2 ua-default:default-34-2:2 
uk-default:default-35-2:2 deo-

texnansi:texnansi-37-2:2 deo-ec:ec-38-2:2 loaded
specials   : tex,postscript,rokicki loaded
system : MP.top loaded
(./MP.top
specials   : loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex unprotect 3 unprotect 4
system (E-TEX) : [line 2247] \ifcsname
protect 4 protect 3)
specials   : fdf loaded
unprotect 3 protect 3)
specials   : fdf,tpd loaded
)
specials   : loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex unprotect 3
system (E-TEX) : [line 2247] \ifcsname
protect 3)
specials   : fdf loaded
)
specials   : fdf,tpd loaded
fonts  : using map file: texnansi-public-lm.map
fonts  : using map file: original-public-vnr.map
fonts  : using map file: original-public-csr.map
fonts  : using map file: original-public-plr.map
fonts  : using map file: original-public-lm.map
fonts  : using map file: original-ams-euler.map
fonts  : using map file: original-ams-cmr.map
fonts  : using map file: texnansi-base.map
fonts  : using map file: t5-base.map
fonts  : using map file: qx-base.map
fonts  : using map file: 8r-base.map
fonts  : using map file: ec-base.map
fonts  : using map file: ec-public-lm.map
fonts  : using map file: original-base.map
systems: begin file MP at line 3
systems: randomizer starts with 644225506
[MP MP-mpgraph.1] 
[1.1{/usr/share/texmf/fonts/map/pdftex/context/original-empty

.map}{/usr/share/texmf/fonts/map/pdftex/context/texnansi-public-lm.map}{/usr/sh
are/texmf/fonts/map/pdftex/context/original-public-vnr.map}{/usr/share/texmf/fo
nts/map/pdftex/context/original-public-csr.map}{/usr/share/texmf/fonts/map/pdft
ex/context/original-public-plr.map}{/usr/share/texmf/fonts/map/pdftex/context/o
riginal-public-lm.map}{/usr/share/texmf/fonts/map/pdftex/config/context/origina
l-ams-euler.map}{/usr/share/texmf/fonts/map/pdftex/config/context/original-ams-
cmr.map}{/usr/share/texmf/fonts/map/pdftex/context/texnansi-base.map}{/usr/shar
e/texmf/fonts/map/pdftex/context/t5-base.map}{/usr/share/texmf/fonts/map/pdftex
/context/qx-base.map}{/usr/share/texmf/fonts/map/pdftex/context/8r-base.map}{/u
sr/share/texmf/fonts/map/pdftex/context/ec-base.map}{/usr/share/texmf/fonts/map
/pdftex/context/ec-public-lm.map}{/usr/share/texmf/fonts/map/pdftex/context/ori
ginal-base.map}]
systems: end file MP at line 11
[flush and process MP-mpgraph.mp afterwards] 
)/usr/share/texmf/fonts/type1/blu

esky/cm/cmr12.pfb
Output written on MP.pdf (1 page, 3359 bytes).
Transcript written on MP.log.

  return code : 0
 run time : 0 seconds
  generating graphics : metaposting 

Re: [NTG-context] metafun not working

2005-06-29 Thread luigi.scarso

Taco Hoekwater wrote:




   makempy --force --noclean MP-mpgraph.mpo

The last lines in the (now kept) mpy-MP-mpgraph.tmp should be

--cycle;
  endfig;
  end


no, again

   --(144.658,2.99976)--(142.267,2.99976)..controls 
(133.659,2.99976) and (133.3,4.29492)..(133.3,9.08569)

   --cycle;
--cycle;


If not, your pstoedit is broken.


It seem that last pstoedit for linux is  broken.

I make MP.tex with  my old-friend 
Context.2002--still_crazy_after_all_these_years--, and pstoedit 3.33 and 
no problems.



luigi


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun not working

2005-06-29 Thread luigi.scarso

MP.tex works after downgrading to pstoedit 3.33

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun not working

2005-06-29 Thread luigi.scarso

Wolfgang Zillig wrote:


Hello,

I have problems with this graphic too. First I noticed that I don't 
have pstoedit installed on my computer. I downloaded version 3.40 from 
http://www.pstoedit.net/pstoedit. When I now run this MP code I get a 
Windows (xp) errormessage: Unhandled exception in pstoedit.exe 
(STDDRIVERS.DLL): 0xC005: Access Violation. But I get the graphic 
rendered.


Any suggestions?


hmm, try on ctan:

ctan/support/pstoedit/windows

It should be an older (3.31) but good version .

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun not working

2005-06-29 Thread luigi.scarso

Hans Hagen wrote:


Mojca Miklavec wrote:


I tried it out before reading that paragraph and I can approve: unless
you have an ancient GS, it doesn't work at all. 3.40 at least does
something even though it crashes.



but i have no problems here with gs 8.51 (all 8 versions worked ok) 
and pstoedit 3.33, so how recent is your gs?


Confirm : under linux MP.tex works with pstoedit 3.33 , gs 8.51 and even 
ESP Ghostscript 7.07;

pstoedit 3.40 does not works correctly with gs 8.51 and 7.07

(Sorry Mojca, I was confused by numbers -- too much hot today -- )

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \naarbox

2005-06-29 Thread luigi.scarso

Alan Bowen wrote:

I have been reading through some of the source files (still working on 
that \note problem) and decided that I had better stop guessing what 
the English equivalent of \naarbox is. Is there a Dutch speaker who 
can tell me what I should replace this command with ?


Many thanks.

Alan

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


maybe
mult-com.tex: gotobox: naarbox gotobox

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Again modules.pdf

2005-06-29 Thread luigi.scarso

Again
http://www.pragma-ade.com/dir/general/sources/modules.pdf

More I see it, more I like it.

Is it possible to make it from sources ?

Thanks
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Again modules.pdf

2005-06-29 Thread luigi.scarso

Patrick Gundlach wrote:


I haven't had a look for a long time at this pdf. But if I remember
correctly, it is a typeset version of each source file. You can create
a typeset version of a source file with texexec --module tex.
 


Yes, for single file.
But modules.pdf has *all* modules .

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tables, etc.

2005-06-23 Thread luigi.scarso

Jörg Hagmann wrote:


Dear list members,

I have the following questions:

1) I want a table at textwidth. The contents of the boxes don't fit on 
one line. When I


See
http://contextgarden.net/Tables_Overview

maybe TABLE (natural tables) can help you.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] I need some advices/guidelines before start writing my PhD thesis

2005-06-17 Thread luigi.scarso

Alexandra Ribeiro wrote:


Hi,

I need some advices/guidelines before start writing my PhD thesis.



I'm completely new to TeX and of course to Context but I'm convinced that 
Microsoft Word is far away from being the right tool for writing a long 
document. Well, in the past I had some big big headaches.
 


Here some useful pdfs :

  1. mp-cb-en.pdf:  a first guide to commands;
  2. cont-enp.pdf:   The manual;
  3. metafun-p.pdf: a beautiful book on graphics.


   * mtexexec.pdf:  explain at least how to make pdf from your tex
 document;
   * mtexfont.pdf:   how to install new fonts;
   * mtexutil.pdf:sometimes I need it to make some works.


You can find them starting from
http://mirror.contextgarden.net/document-1.htm


luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Metapost animation

2005-05-19 Thread luigi.scarso
Mojca Miklavec wrote:
Can someone please post any example of JavaScript code to toggle the 
states like in either http://www.math.muni.cz/~plch/nkpm/nradanm6.pdf 
or https://www.pragma-pod.com/present/talks/fifteen.pdf?

I hope this can help you:
http://www.fi.muni.cz/~xholecek/animations/
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ruby

2005-05-12 Thread luigi.scarso
Hans Hagen wrote:
Hi,
when pondering about some ruby to bin for unix and googling a bit,
A little off-topic: why ruby and not python ?
i ran into:
http://www.erikveen.dds.nl/ruby.html
amazing stuff, not only rubyscript2exe (cross platform)!
bookmarked
luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Fill pdf forms

2005-05-12 Thread luigi.scarso
Looking for some stuff do manage pdf forms,I found this
http://search.cpan.org/~clotho/CAM-PDF-0.99/
From
http://search.cpan.org/src/CLOTHO/CAM-PDF-0.99/index.html
CAM::PDF is optimized for reading and manipulating existing PDF documents.
We use CAM::PDF in production Linux environments to customize template 
PDF documents that were often created by non-programmers using standard 
tools.

In standard distro there are already fdf2tan.pl  and fdf2tex.pl, and 
after reading spec-fdf  I don't understand if they work
( running fdf2tan.pl gives
! Undefined control sequence.
recently read \annotatepages ).

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to align footer text

2005-05-11 Thread luigi.scarso
Paul Tremblay wrote:
How do I set up the space between the bottom of the page and my footer
text?
I need to setup a 1 inch margin at the bottom of the page. I need for
the pagenumber to be centered and 1/2 inch from the bottom. Here's
what I have:
\definelayout[MyCustomLayout][
topspace=1in,
header=0in,
bottomspace=1.0in,
bottomdistance=.5in,
footer=.5in,
footerdistance=1mm,
backspace=1.5in,
cutspace=.75in,
height=middle,
width=middle,]
\setuplayout[MyCustomLayout]
\part{} 

setupfootertexts[\hfill{}\pagenumber{}\hfill{}][][\hfill{}\pagenumber{}\hfill{}][]
The problem with this setup is that the page number appears to close
to the bottom of the page. 

Thanks
Paul
 

Maybe this can help you
\setupfootertexts[%
{\vbox to 0.9\footerheight{\hsize=\textwidth %
\vfil
\centerline{\pagenumber}%
\vfil}}]
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] inmarge figures and references

2005-05-10 Thread luigi.scarso
Taco Hoekwater wrote:

Jörg Hagmann wrote:
Would the beginner's book help in understanding the structure of the 
whole system? 

At the moment, the only way to get a feeling for that is to read
the source code, I believe. Start with 'tex/context/base/context.tex'.
Working through the included files in the order they are loaded is
I find useful also
$ texexec --pdf --module modulename.tex
On the other side, I'm reading The Advanced TEXBook, and I find it good.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] recent ConTeXt reference manual

2005-05-09 Thread luigi.scarso
John R. Culleton wrote:
I am not familiar with cont-emp. 

maybe cont-enp ?
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-29 Thread luigi.scarso
Vit, many thanks for your answer.
Vit Zyka wrote:
1. For a moment I set
  shell_escape =f
in `kpsewhich texmf.cnf'
ok, done
2. Input file f.tex:
\startuseMPgraphic{A}
  draw unitcircle scaled\overlaywidth;
\stopuseMPgraphic
\defineoverlay
  [B]
  [\uniqueMPgraphic{A}]
\starttext
  \framed[background=B]{Hallo frame!}
\stoptext
3a. classical run
  texexec --pdf f
No circle under frame,  right? If not, I have a bad installation; please 
discard the rest
(and some hints to repair will be really appreciate :)  ).

3b. step by step
  texexec --pdf --nomp f
  mpost f-mpgraph
  texexec --pdf --nomp f

A circle appear under the frame. But I   have 3  runs ( texexec, mpost, 
texexec).

Now, what is my goal ?
To achieve a circle under the frame  as quick as possible.
For 3.a, in f.log I find
 mpost  -progname=mpost -mem=metafun f-mpgraph
 system()...disabled.
An attempt to run mpost failed: no circle, goal unsatisfied.
For 3.b, I run manually mpost (and then again texexec): goal satisfied.
With shell_export=t, 3.a) is ok, but f.log says
system(mpost  -progname=mpost -mem=metafun f-mpgraph)...executed.
So it seems that my goal can be achieved only with  a run of mpost.
With XYPic, a similar result can be achieved without mpost:
%%
%% WARNING:: deprecated example
%% Don't use it !
%%
\input xy
\xyoption{frame}
\starttext
\xy
(0,0) *++=\hbox{\framed{Hallo frame}} *\frm{o} ;
\endxy
\stoptext
Of course this doesn't mean that XY is better/worse than mpost, nor that
using mpost coupled with context will be always slow than others ways;
but sometimes a faster alternative may be required.
Sure for XYPic, name spaces collisions, cpu/memory required, syntax are 
(some) items
to consider: but it also comes with a bunch of features and may be 
faster than mpost
in some circumstances.

[OT] XFIG: fig2dev can be export to metapost and in multi-metapost.
Hence, from the moon, I see that xfig can be used with context.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-29 Thread luigi.scarso
Vit, the last things.
After that I consider this topic closed.
+ limitation by substance: drawing is mostly done via fonts
Yes, I forget to write it.
[XFIG]..Export to context is good news. But still no parametrization 
possible :-(
..maybe something to play this summer...

Now for metapost:
shell_escape= f
in texmf.cnf
so \write18 is disabled.
$texexec --pdf f
No circle; it seems right, because f.log says
systems: randomizer starts with 797065300
mpost  -progname=mpost -mem=metafun f-mpgraph
system()...disabled.
$ shell_escape=x ; texutil --purgeall; texexec --pdf f
As before.
$ shell_escape= ; texutil --purgeall; texexec --pdf f
As before.
$ shell_escape=t ; texutil --purgeall; texexec --pdf f
Circle ok; again it's right, f.log says
systems: randomizer starts with 800565448
system(mpost  -progname=mpost -mem=metafun f-mpgraph)...executed.
$ shell_escape=f ; texutil --purgeall; texexec --pdf f
Strange:circle again.
I found into texexec.pl
if (($ENV{shell_escape} eq 'f') || ($ENV{SHELL_ESCAPE} eq 'f')) {
   $AutoMPRun = 1 ;
}
Hence texexec/texutil has called mpost instead of \write18; it's like 
shell_escape=t
(for this task, not in general sense, of course)
Hmm, it's not crystal clear:
shell_escape=f  means shell_escape is  False
shell_escape=t  means shell_escape is  True
but for processing f.tex 'True and False are the same'

$shell_escape=; texutil --purge; texexec --pdf --automprun f
Circle ok; it seems right, because I force execution of mpost.
Again, many thanks
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-28 Thread luigi.scarso
Vit Zyka wrote:

before I started to use context I had prepared some diagrams in xypic. 
Me too, for some notes on a course  on commutative algebra when I was 
student at university.

It was the only way I knew for creating vector graphics for both tex 
and pdftex with text and graphics interaction possibility.

I try xfig with poor results.
For that experience I strongly discourage for using it with context:
1) Xypic has the most obscure syntax I have ever seen.
After writing some commutative algebra exercises, xy code is not so 
obscure :)

2) Nobody knows if there are not some name-space problems 
(redefinitions).
Big problem not only with xypic.
(after grep-ing xp package and context base I found some possibles names 
collisions
in  core-pos.tex,page-lyr.tex,xtag-ini.tex)

3) Metapost is naturaly incorporated to context, strongly supported, 
higher possibilities and (my opinion) much more intuitive.

Yes, I love metafun.
But a mp graphic must be preprocessed by mpost for inclusion, and I can 
do it only
if I can execute sysytems commands; this open a security and performance 
issues.

So:
Can I typeset a framedbox with a rulestyle WITHOUT using MetaPost ?
I have posted an idea with XYPic; but \leaders can be used too.
So I think that such a contextgarden xypic page would be only confusing.
ok, I follow your suggestion.

P.S. If you are still interesting google for xypic manual.
Better:
http://www.tug.org/applications/Xy-pic/
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-28 Thread luigi.scarso
Vit Zyka wrote:
But a mp graphic must be preprocessed by mpost for inclusion, and I 
can do it only
if I can execute sysytems commands; this open a security and 
performance issues.

It is true only for very advanced features like text along line, 
AFAIK. For framed text it is possible to run mpost manually with 
several passes of tex.
Ok, it seem I've missed something important because I don't understand 
when you say
For framed text it is possible to run mpost manually with several 
passes of tex. .
This seem in contrast with preprocessing as I write before.

Can you give me a simple example ?
Thanks
luigi


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Rif: Re: [NTG-context] dotted line for \framed ?

2005-04-26 Thread luigi.scarso
Luigi Scarso wrote:


[OT] Can XYpic be used under Context ? I will try .
 

At least for  me this works:
\input xy
\xyoption{frame}
\starttext
\framed[offset=10pt]{%
\xy
(0,0) *++=\hbox{text} *\frm{--} ;
(50,0) *++=\hbox{text} *\frm{..} ;
(100,0) *++=\hbox{text} *\frm{=} ;
\endxy}
\stoptext
It can be a way to add some frame style without using metapost.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] total with of TABLE ?

2005-04-22 Thread luigi.scarso
Peter Münster wrote:
Do you know, if this is possible with TABLE:
\starttext
\SetTableToWidth{10cm}
\starttable[|c|c|c|]
\HL
\VL xxx \VL xxx \VL x \VL\AR
\HL
\stoptable
\stoptext
Cheers, Peter
 

Hmm, I change a little your code to better understand it
\starttext
\SetTableToWidth{10cm}
\setbox100=\vbox{\starttable[|c|c|c|]
\HL
\VL xxx  xxx \VL xxx xxx \VL x x \VL\AR
\HL
\stoptable}
\starttyping
\SetTableToWidth{10cm}
\setbox100=\vbox{%
\starttable[|c|c|c|]
\HL
\VL xxx  xxx \VL xxx xxx \VL x x \VL\AR
\HL
\stoptable}
\stoptyping
\type{\wd100=}{\tt \PtToCm{\wd100}}\par
\type{\ruledvbox{\unvbox100}:}\par
\ruledvbox{\unvbox100}
\stoptext
and I see on log
Overfull \hbox (11.63779pt too wide) in paragraph at lines 14--14
[][]\*12pf* \VL[] []xxx[] [][] []xxx[] 
[]\VL[] []xx
x[] []xxx[] []\VL[] []x[] []x[] []\VL\AR

If I fix table width, I must care about cell content to avoid overfull hbox;
so fix table width is useless, because I have already calculate by 
fixing cell content.

I will look into natural table to see something similar to \SetTableToWidth

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] total with of TABLE ?

2005-04-22 Thread luigi.scarso
Hans Hagen wrote:
Hi,
I'm fighting deadlines right now, but later i'll try to get a look at 
the current table thread (maybe someone can summarize the problem)

Hans
\SetTableToWidth{10cm}
\starttable[|c|c|c|]...\stoptable
set width to 10 cm, but if I  don't care about cell I can have an 
overfull box.

So the problem seem to be
Can I set the total width of a TABLE using a macros like 
\setupTABLE[tablewidth=10cm] ?

To solve this problem, I usually set every cell width using
\setupTABLE[x][n][width=..];
But with \setupTABLE[tablewidth=...]
I will  avoid to specify every single cell width,
and the TABLE will find the right dimensions.
I will look into core-ntb.tex.
luigi


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] total with of TABLE ?

2005-04-22 Thread luigi.scarso
Duncan Hothersall wrote:
If you want your TABLE to find natural column widths to fit the content,
use [option=stretch] on the \bTABLE command. (NB it doesn't work as an
option to \setupTABLE, only on the actual \bTABLE.)
Then, assuming you don't need splitting over pages, you can set your
TABLE inside a vbox to define its width. (If you do need splitting, try
putting the TABLE into a textbackground - with no background color set
unless you want it - and set the width and/or margins of that?)
Hope that helps.
 

Many thanks !
(I start from \ifautoTBLspread inside core-ntb but after 30secs it comes 
your answer..)

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] arranging + multipage \bTABLE + transparent color = bug?

2005-04-22 Thread luigi.scarso
Johan Sandblom wrote:
The following code compiles flawlessly but the pdf that is generated opens 
with the error Could not find the Extended Graphics State named 'Tr1'.
in Acrobat Reader 7 for Linux (and Windows for that matter). Earlier readers
give less informative messages but in all cases the pdf has almost entirely 
empty pages. If the second line is uncommented (so there is no arranging) 
there is no problem. If the color is non-transparent, there is no problem.
If the table needs less than 4 sheets to be arranged on, there is no problem.

Is this known, expected, fixable?
Johan
\setuppapersize [A6][A4] \setuparranging [2*4, doublesided]
%\setuppapersize [A6][A6]
\setupcolors[state=start]
\definecolor[tgray][s=.8, t=.5, a=1]
\starttext
\bTABLE[split=repeat, frame=off, background=color, backgroundcolor=tgray]
\dorecurse{200}{\bTR\bTD 1\eTD\bTD 2\eTD\eTR}
\eTABLE
\stoptext
 

I have made it with
TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004
texexec : TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004
texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2C 7.5.3)
context : ver: 2005.01.13
cont-en : ver: 2005.01.13 fmt: 2005.3.7 mes: english
cont-nl : ver: 2005.01.13 fmt: 2005.3.7 mes: dutch
under linux
and I see no problems with xpdf, acrobat5 and acrobat 7.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] arranging + multipage \bTABLE + transparent color = bug?

2005-04-22 Thread luigi.scarso
Johan Sandblom wrote:
Mine is 
Did you compile the document with
texexec --arrange --pdf ?
 

Ok, now I can confirm your bug.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: total with of TABLE ?

2005-04-22 Thread luigi.scarso
Steffen Wolfrum wrote:
For example:
I'd like to set a total width that fits both tables
without specifying also the 2nd and 3rd column:
\setupTABLE[totalwidth=10cm,offset=5pt]
\setupTABLE[column][1][width=1cm,align=left]
\setupTABLE[column][5][width=1cm,align=middle]

Try
\bTABLE[option=stretch]
\bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR
\bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR
\bTR\bTD aa \eTD\bTD  \eTD\bTD cc \eTD\bTD dd \eTD\eTR
\bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR
\bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR
\eTABLE
\blank
\bTABLE[option=stretch]
\bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR
\bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR
\bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR
\bTR\bTD aa \eTD\bTD bb \eTD\bTD  \eTD\bTD dd \eTD\eTR
\bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR
\eTABLE
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: total with of TABLE ?

2005-04-22 Thread luigi.scarso
Steffen Wolfrum wrote:
Not much left of those defined spaces, right?
Sorry, now I see.
I had made the pdf before postings, but I had not understood well it.
(option=stretch seem related with \hsize;
I must admit that when I 'm typeset tables, I always fix dimension, to 
avoid surprises:
I never use stretch.)

And what has your proposal to do with the idea of setting a total 
width?
core-ntb has changed from last time I saw it, and some things are not so 
clear to me now: I 'll try to investigate.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] total with of TABLE ?

2005-04-21 Thread luigi.scarso
Steffen Wolfrum wrote:
Hi,
a quite basic question, nevertheless I couldn'T find an answer:
How do I determine the total with of a TABLE?
I though it should be ...
\setupTABLE[width=\textwidth]
\bTABLE
\bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
\bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
\bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
\bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
\bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
\bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
\bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
\bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
\eTABLE
... but this means that all column's INDIVIDUAL width=\textwidth !
But what about the TOTAL width - regardless of the individual column's 
width?

With \setbox:
\setbox100=\vbox{%
\setupTABLE[...]
\bTABLE...\eTABLE%
}
ht=\the\ht100  ,  dp=\the\dp100 ,  wd= \the\wd100 
and you can determine the dimensions of your table.

But I think you need to setup x dimension, so
\setupTABLE[x][width=x\textwidth]
where x = 1/number_of_columns
(x=0.25 in your example, because you have 4 columns:
so you have
\setupTABLE[x][width=0.25\textwidth]
)
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] total with of TABLE ?

2005-04-21 Thread luigi.scarso
luigi.scarso wrote:
(x=0.25 in your example, because you have 4 columns:
so you have
\setupTABLE[x][width=0.25\textwidth]
)
Of course this setup a TABLE with four columns of equal width and total 
width =\textwidth;
For different width :
\setupTABLE[x][1][width=0.2\textwidth]
\setupTABLE[x][2][width=0.25\textwidth]
\setupTABLE[x][3][width=0.25\textwidth]
\setupTABLE[x][4][width=0.3\textwidth]

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to insert a full page pdf.

2005-04-20 Thread luigi.scarso
David Munger wrote:
Hi John,
John R. Culleton :
 

I need to insert some example pages from one document into
another. Both are 8.5 x 11. 

I have read the old posts about \startTEXpage etc. and looked at
the source code. But I still have a few questions:
1. Can I select e.g., just page 2 from the external document to
insert in my document? How?
   

I'm no expert, but here's the way I do it:
\externalfigure[filename][page=2]
Then, I adjust the clipping to -- for instance -- get rid of the page
number of the inserted `figure', as well as of its top and left margins.
\clip [ voffset=1.25in, % clip the topmost part of the inserted page
 

Also can help to specify width and height and factor
\externalfigure[filename][page=2,width..,height=.., factor=..]
See
http://texshow.contextgarden.net/
and search for \externalfigure
Actually it seems to me that inclusion doesn't manage things like 
comments etc.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Strange link on pragma site ?

2005-04-18 Thread luigi.scarso
Dear users,
it seems that I have some problems with
links to magazines.
If I go to mag- at
http://www.pragma-ade.com/show-mag-1.htm
on bottom right there are
PAGE 1 OF 10
and link
'previous'
If I click on 'previous'
I will go to
http://www.pragma-ade.com/show-mag-10.htm
(mag-0009) and on bottom right appears
PAGE 10 of 11
mag-0009 is not last magazine, so from first I jump to last-1 .
Is it right ?
Does anybody have this 'problems' ?
thanks
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] justification

2005-04-15 Thread luigi.scarso
Jörg Hagmann wrote:
However, I noticed the following problem (no doubt the first of many 
to come): justification on the right is far from perfect - there are 
lines sticking out. After going through the manual, I decided that 
\setuptolerance[horizontal,verystrict] in the setup area should do 
the trick, but it didn't.
Can you give some examples ?
  Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and 
once with TeXLive, and on a Mac running Mandrakelinux and teTeX
Brave heart.
I am currently writing a textbook and I am looking forward to using 
ConTeXt.
Context IS the right choice.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] AutoScale and AutoSize

2005-04-15 Thread luigi.scarso
I have to typeset a small paragraph inside fixed box.
I don't have much control about it's content, so sometimes
text overflow.
I try the following two macros, but they aren't good.

% AutoScaled: not what I really want, but
% sometimes works
%
\def\AutoScaled#1#2#3#4#5{%
% #1 horiz. limit
% #2 unused (maybe vert. limit)
% #3 horiz. scale
% #4 vert. scale
% #5 text
\setbox800=\hbox{\color[black]{\scale[sx=#3,sy=#4]{\bf #5}}}%
\newdimen\ScaleX \ScaleX=#3pt \newdimen\ScaleY \ScaleY=#4pt %%
\newdimen\LimitX \LimitX=#1 %
\ifdim\wd800  \LimitX %
\edef\Ratio{\withoutpt{\the\dimexpr( (2\LimitX/(\wd800 /32768))) }}%
\edef\XSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleX ) }}%
\edef\YSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleY ) }}%
\setbox800=\hbox{\color[black]{\scale[sx=\XSCALE,sy=\YSCALE]{\bf #5}}}%
\fi%
\box800\relax%
}%%enddef \Autoscaled
%AutoSize is what I really want, but it's
%WRONG!!
\def\AutoSize#1#2#3{%
% #1=string #2=horiz.limit #3=initial font size
\newdimen\Limit \Limit=#2
\newdimen\FontSize \FontSize=#3
\doloop{%
\setbox800=\hbox{#1}%
\ifdim\wd800 \Limit\exitloop
\else
% WARNING: eat memory , 1bp is bad step,
% force ss  it's wrong
\advance\FontSize by -1bp\switchtobodyfont[ss,\the\FontSize]%
%%
\fi}%
%\newdimen\Dimen \Dimen=0.3528\wd800 \pointless\Dimen mm\relax%
\box800\relax%
}
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] AutoScale and AutoSize

2005-04-15 Thread luigi.scarso
% AutoSize seem better, but
% I must setup ss and tfb inside body
% (I need these) so it's no a general macros
% Same problems of previous version.
%
\def\AutoSize#1#2#3{% #1=string #2=horiz.limit #3=startfont
\newdimen\Limit \Limit=#2 %
\newdimen\FontSize \FontSize=#3 %
\doloop{%
\setbox800=\hbox{\switchtobodyfont[ss,\the\FontSize]\tfb #1}%
\ifdim\wd800 \Limit\exitloop%
\else%
\ifdim\FontSize 1bp\exitloop%
\else %
\advance\FontSize by -0.5bp%
\fi%
\fi}%
\box800\relax%
}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] AutoScale and AutoSize

2005-04-15 Thread luigi.scarso
Hans Hagen wrote:
see latest magazine for an example + some explanation
Great, as usually
(I lose it because if I  I visit
http://www.pragma-ade.com/show-mag-1.htm
and from here I click on previous at bottom right,
I will go
http://www.pragma-ade.com/show-mag-10.htm
which is  mag 0009.
It seems that from mag- you jump to previous mag-0009 and not mag-0010).
I've printed and read it ; if I have understand, I 've tried to do 
something similiar with my \AutoScaled with implicit rettangular shape 
and one line of text;
maybe \AutoSize is not the right way.

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] inkscape 0.41 on mandrake 10.1

2005-04-14 Thread luigi.scarso
Hans Hagen wrote:
Paul Tremblay wrote:
Is inkscape the beast that gave you so much trouble with the glib
library? I know I tried to install it and gave up after I couldn't
install glib. 

indeed, but since i use windows as production platform i can wait till 
i've updated the linux machines; i have no idea how well inkscape 
installs on the mac


On Linux Mandrake 10.1, with some efforts,
$./configure --with-python  --with-gnome-vfs
works.
$./configure --with-python  --with-gnome-vfs --with-perl 
--with-gnome-print
$ make
does not compile.

After first run, missing some plugin; I will see later.
$ldd /usr/local/bin/inkscape
   linux-gate.so.1 =  (0xe000)
   libxslt.so.1 = /usr/lib/libxslt.so.1 (0x40029000)
   libxml2.so.2 = /usr/lib/libxml2.so.2 (0x4005a000)
   libgtkmm-2.4.so.1 = /usr/lib/libgtkmm-2.4.so.1 (0x40145000)
   libgdkmm-2.4.so.1 = /usr/lib/libgdkmm-2.4.so.1 (0x403cd000)
   libatkmm-1.6.so.1 = /usr/lib/libatkmm-1.6.so.1 (0x4041)
   libgtk-x11-2.0.so.0 = /usr/lib/libgtk-x11-2.0.so.0 (0x40453000)
   libpangomm-1.4.so.1 = /usr/lib/libpangomm-1.4.so.1 (0x40737000)
   libglibmm-2.4.so.1 = /usr/lib/libglibmm-2.4.so.1 (0x4075a000)
   libsigc-2.0.so.0 = /usr/lib/libsigc-2.0.so.0 (0x4079f000)
   libgdk-x11-2.0.so.0 = /usr/lib/libgdk-x11-2.0.so.0 (0x407a5000)
   libatk-1.0.so.0 = /usr/lib/libatk-1.0.so.0 (0x4081a000)
   libgdk_pixbuf-2.0.so.0 = /usr/lib/libgdk_pixbuf-2.0.so.0 (0x40836000)
   libpangoxft-1.0.so.0 = /usr/lib/libpangoxft-1.0.so.0 (0x4084d000)
   libpangox-1.0.so.0 = /usr/lib/libpangox-1.0.so.0 (0x40852000)
   libpng.so.3 = /usr/lib/libpng.so.3 (0x4085e000)
   libpopt.so.0 = /lib/libpopt.so.0 (0x40884000)
   libXft.so.2 = /usr/X11R6/lib/libXft.so.2 (0x4088d000)
   libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0x4089f000)
   libXrender.so.1 = /usr/X11R6/lib/libXrender.so.1 (0x4096a000)
   libfontconfig.so.1 = /usr/lib/libfontconfig.so.1 (0x40972000)
   libpangoft2-1.0.so.0 = /usr/lib/libpangoft2-1.0.so.0 (0x4099d000)
   libpango-1.0.so.0 = /usr/lib/libpango-1.0.so.0 (0x409c3000)
   libgobject-2.0.so.0 = /usr/lib/libgobject-2.0.so.0 (0x409f9000)
   libgmodule-2.0.so.0 = /usr/lib/libgmodule-2.0.so.0 (0x40a39000)
   libglib-2.0.so.0 = /usr/lib/libglib-2.0.so.0 (0x40a3d000)
   libfreetype.so.6 = /usr/lib/libfreetype.so.6 (0x40abd000)
   libz.so.1 = /lib/libz.so.1 (0x40b29000)
   libpthread.so.0 = /lib/tls/libpthread.so.0 (0x40b3a000)
   libutil.so.1 = /lib/libutil.so.1 (0x40b4c000)
   libgc.so.1 = /usr/local/lib/libgc.so.1 (0x40b4f000)
   libdl.so.2 = /lib/libdl.so.2 (0x40b7c000)
   libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x40b7f000)
   libm.so.6 = /lib/tls/libm.so.6 (0x40c51000)
   libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x40c74000)
   libc.so.6 = /lib/tls/libc.so.6 (0x40c7e000)
   libXrandr.so.2 = /usr/X11R6/lib/libXrandr.so.2 (0x40d9d000)
   libXi.so.6 = /usr/X11R6/lib/libXi.so.6 (0x40da1000)
   libXinerama.so.1 = /usr/X11R6/lib/libXinerama.so.1 (0x40da9000)
   libXext.so.6 = /usr/X11R6/lib/libXext.so.6 (0x40dad000)
   libXcursor.so.1 = /usr/X11R6/lib/libXcursor.so.1 (0x40dbb000)
   libexpat.so.0 = /usr/lib/libexpat.so.0 (0x40dc4000)
   /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new beta [OFF TOPIC]

2005-04-14 Thread luigi.scarso
Johan Sandblom wrote:
Sorry for going off topic, but since it is a concern ...
Using a linux distribution with an intelligent package/dependencies
handling system such as Gentoo or Debian would end your updating
woes for all time. In debian testing
apt-get install inkscape
 

urpmq,urpmi, etc  under Mandrake10.1
downloads and installs inkscape 0.41 and updates all dependencies 
automatically and in Gentoo

ACCEPT_KEYWORDS=~x86 emerge -ua inkscape
downloads the source of inkscape 0.41 and all required dependencies and 
compiles them (taking a lot of time of course). Without going to the 
testing distribution (~x86) you get 0.37

 

almost the same for  mandrake 10.1 (0.39 for 10.1 )
(I don't like rc,community version , beta etc distro.)
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] section head unnumbered but with dots in TOC ?

2005-04-14 Thread luigi.scarso




Steffen Wolfrum wrote:
Hi,
  
  
I am lost in ConTeXt's setup-jungle:
  
  
  
I have a section set is unnumbered:
  
  
\setuphead[LevelThree] [number=no, ...|
  
  
  
But in the TOC I would like to have a dot (or another symbol) before
the head/title, like this:
  
  
o Section's Title 17
  
  
  
Is this a matter of \setuphead or \setuplist? Or none of them?
  


I use \setuplist and commands


  

  command
  threearguments 


  numbercommand
  oneargument 


  textcommand
  oneargument 


  pagecommand
  oneargument

  


see http://contextgarden.net/Titles

luigi


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Suppress routine messages.

2005-04-06 Thread luigi.scarso
John R. Culleton wrote:
When I run texexec against a file with lots (101) chapters plus
sections the messages to the console documenting each such
subdivision seem to be slowing down the compilation. Is there a
switch to suppress all the printout?
run -- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 

To make c.pdf from c.tex I use
$ texexec --pdf --silent c
Sometimes, if I'm sure about c.tex, under Linux i can write
$ texexec --pdf --batch --silent c /dev/null
Warning: --batch run until end, so I can make a bad pdf  if c is wrong.
I can do also
$ texexec --pdf --silent c myout
but if c.tex file is wrong, texexec can stop itself and wait from a 
prompt, and I can think that texexec is still running.
(in this situation, if I hit 'q' I will enter in batch-mode; with  
ctrl-d I abort texexec. myout collect standard out and error)
This can be a quick way to make a pdf, but sure not safe.

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Split table across pages.

2005-04-05 Thread luigi.scarso
John R. Culleton wrote:
If one has a long table that splits across several pages, and
the first line of the table is really the headers for the
columns, is there a convenient way to have the headers
automatically inserted on each successive page that contains
part of the table?  
I can do it manually of course. But I was looking for a more
magic way. 

At
http://contextgarden.net/Tables_Overview
there is linetable: maybe it can help you.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chapter numbers in the right margin

2005-03-23 Thread luigi.scarso
Hans Hagen wrote:
in addition to other answers
Sorry, mybe the time or a my bad day, i don't understand
Do you refer to  my answers ?
If yes
(please submit to wiki)
how to ?
(a my bad day,maybe tomorrow will be better)
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chapter numbers in the right margin

2005-03-22 Thread luigi.scarso
Randall Skelton wrote:
Use textcommand only for text, numbercommand only for number,
command for both;
you can see some examples in sectionVariations in titles .
   

Thanks for the reply.
The problem with separating the text and number is that the space
separating the text and number still appears in the chapter text.  On
a similar note, why doesn't  'show makeup' display the right margin
number?
\def\MyChapterNumberText#1{ 
 \inright{\begingroup 
   \midaligned{#1}
 \endgroup}
}

\def\MyChapterText#1{
 \begingroup 
   \leftaligned{#1}
 \endgroup
}

\setuphead
  [Topic, chapter]
  [numbercommand=\MyChapterNumberText,
   textcommand=\MyChapterText,
   numberstyle={\switchtobodyfont[48pt]},
   textstyle={\switchtobodyfont[12pt]},
   color=black,
   number=yes,
   page=right,
   continue=no,
   header=empty,
   before=\vbox to 3cm\bgroup,
   after=\vss\egroup]
\starttext
%\showmakeup
\chapter{This is a Chapter Title}
\input tufte
\section{This is a section title}
\input tufte \par \input knuth \par
\subsection{This is a sub-section title}
\input tufte \par \input knuth \par
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 

Sorry Randall; i'm sure that i don't understand what you want.
Maybe next code can help you...
\def\MyChapterCommand#1#2{%
\hbox to \textwidth{#1\hss #2}%
}
% or perhaps
%
%\def\MyChapterCommand#1#2{%
%\hbox to \textwidth{\llap{#1}\hss #2}%
%}
\setuphead
  [Topic, chapter]
  [%numbercommand=\MyChapterNumberText,
   %textcommand=\MyChapterText,
   command={\MyChapterCommand},
   numberstyle={\switchtobodyfont[48pt]},
   textstyle={\switchtobodyfont[12pt]},
   color=black,
   number=yes,
   page=right,
   continue=no,
   header=empty,
   before=\vbox to 3cm\bgroup,
   after=\vss\egroup]
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Translations of Context: an excursion

2005-03-22 Thread luigi.scarso
I would like to make also italian translation for this doc;
if some one can help me..
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] kerning and TFM problems

2005-03-21 Thread luigi.scarso
Steffen Wolfrum wrote:
Hi,
I want to use OSX HelveticaNeue font.
So I open it in FontForge and - because I'd like to use the kerning 
information - generate the Font with its PFB, AFM and TFM files.

According to Bill's help page it should work by (renaming and) placing 
the phnr8r.tfm in its tfm folder, the phnr8a.afm and phnr8a.pfb in its 
respective folders (within my texfm-font tree).

Then I need a mapfile texnansi-helveticaneue.map with the line:
phnr8r HelveticaNeue 4  phnr8a.pfb texnansi.enc
And my test file looks like this:
\loadmapfile[texnansi-adobe-helveticaneue.map]
\definefontsynonym[HelveticaNeue][phnr8r][encoding=texnansi]
\definefont[MySecondFont][HelveticaNeue]
\starttext
\MySecondFont I sang of leaves, of leaves of gold, and leaves of gold 
there grew.
\stoptext

But it results in problems with the TFM file. Why?
! Font \**MySecondFont**=phnr8r at 12.0pt not loadable: Bad metric 
(TFM) file.
to be read again
   \relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
  \let 
\localrelativefontsiz...

\redodefinefont #1#2#3-\dododefinefont {#1}{#2}
\doifsetupselse {#3} 
{\setup...
l.7 \MySecondFont
  I sang of leaves, of leaves of gold, and leaves of 
gold th...

?

Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
Did you re-hash (mktexlsr or something similar) ?
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   >