Re: [NTG-context] PDF/X-1A

2009-02-24 Thread Antoine Junod
Sebastien Mengin  writes:

> Le 24 fév 2009 à 02:27, Hans Hagen a écrit:
>> the pdf code produced by pdftex/luatex is rather stupid in the sense 
>> that it is rather compliant
>> 
>> you can control color to some extend using settings like
>> 
>> \setupcolors[rgb=no]
>
> The OP should also control the color model (cmyk) and the
> size/resolution of every picture included.

And what exactly should I check that is related with the size /
resolution of the pictures I included in the document?

By the way, is there any way to check PDF/X-1A compatibility without a
proprietary tool?

All the best,
-AJ

___
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] PDF/X-1A

2009-02-24 Thread Antoine Junod
Hans Hagen  writes:

> Antoine Junod wrote:
>> Dear List,
>> A lot of you guys helped me through the process of setting a little
>> booklet and I have to say I was proud of the result (44 full color
>> pages with a lot of pictures and texts). Thanks for that.
>> I'm now in the process of printing that booklet. I was happy to send
>> my beautiful pdf to the printer for 250 copies, pdf file that has been
>> refused because not in a PDF/X-1A format.
>> I googled a bit and learned a bit about that: wikipedia has a good
>> article [0] on the topic and there is LaTeX package (pdfx) for pdfTeX
>> that has a good doc about that [1]. In short, PDF/X-1A is a set of
>> rules and subset of PDF that ensures that the document will be see
>> exactly the same for the editor and the printer (embed every fonts,
>> use only CMYK and son on).
>> Here is my question: is it possible to produce such documents with
>> ConTeXt? It is quite frustrating to provide my printer with huge jpeg
>> files.
>
> the pdf code produced by pdftex/luatex is rather stupid in the sense
> that it is rather compliant

I'm not sure that simple is a synonym of complient in that case...

> you can control color to some extend using settings like
>
> \setupcolors[rgb=no]

Okay I did it but it is still not accepted by my printer (with no
other details than 'not pdf/x-a1...').

> what does the pdf validator of acrobat say? maybe the printer is bit
> picky on aspects that don't really matter (like having some specific
> key in a dictionary telling thisorthat)

I have sadly no such tool. And I can't give the pdf to the world
because of some information that it contains... (adresses and phone
numbers of kids).

I'll povide them with jpg. But that's not really cool.

A+
-AJ
___
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] PDF/X-1A

2009-02-24 Thread Antoine Junod
Dear List,

A lot of you guys helped me through the process of setting a little
booklet and I have to say I was proud of the result (44 full color
pages with a lot of pictures and texts). Thanks for that.

I'm now in the process of printing that booklet. I was happy to send
my beautiful pdf to the printer for 250 copies, pdf file that has been
refused because not in a PDF/X-1A format.

I googled a bit and learned a bit about that: wikipedia has a good
article [0] on the topic and there is LaTeX package (pdfx) for pdfTeX
that has a good doc about that [1]. In short, PDF/X-1A is a set of
rules and subset of PDF that ensures that the document will be see
exactly the same for the editor and the printer (embed every fonts,
use only CMYK and son on).

Here is my question: is it possible to produce such documents with
ConTeXt? It is quite frustrating to provide my printer with huge jpeg
files.

Thanks for the reply,
-AJ

[0] http://en.wikipedia.org/wiki/PDF/X
[1] http://gentoo.chem.wisc.edu/tex-archive/macros/latex/contrib/pdfx/pdfx.pdf
___
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] How to decide on colors

2009-02-16 Thread Antoine Junod
Hi Cecil,

Cecil Westerhof  writes:

> I am working with a flowchart. I would like to have the background
> of the flowchart, different from the background the flowchart is
> on. I do not know much about color combinations. (Just enough to
> know what I tried were not good choices.) Is there a site with good
> pointers about color combinations?

The context manual has a good chapter on colors and how to use them:

 http://pragma-ade.com/general/manuals/cont-enp.pdf

I'm also using the following site to generate color schemes that are
not ugly:

 http://colorschemedesigner.com/

My 2 cents worth,
-AJ
___
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] layout problem

2009-02-13 Thread Antoine Junod
Dear all,

I follow up my own post to answer my own question:

Antoine Junod  writes:

[...]

> * My 'printer' (the company that will print the booklet for me, not
>   sure that the good word) asks me to provide him with a document that
>   is 2mm larger and 2mm higher that the final one to be sure he can
>   print precisely to the exact border of the paper. I don't want to
>   magnify the whole document as it will maybe cut some
>   information. Any idea on how I could achive that?

What I did first has been to define two new paper sizes. The first
one, pca4 is the format I have to send to the printer. The second one
is exactly half size of the first one:

\definepapersize[pca4][width=212mm,height=299mm]
\definepapersize[pca5][width=149.5mm, height=212mm]

Then, I put two pca5 on one pca5:

\setuppapersize[pca5][pca4]
\setuparranging[2UP,rotated]

The only thing I changed to my layout was the outside margin
(rightmargin), to which I added pca5.width minus a5.width (that is
1.5mm).

\definelayout
[default]
[leftmargin=0mm,rightmargin=25.5mm, % instead of 24mm
 topspace=0mm,backspace=10mm,
 width=115mm,height=middle]

\setuplayout[location=middle]
\setuplayout[default]

This is not a good solution because the 'security' milimeters are part
of the margin (ie, if you center something in the margin, it won't be
still centered after printing / cutting).

So, if anybody has a solution to even 'extend' the borders of a given
size or put graphics on the 'container' (here, pca4), I'm a buyer :)

Thanks to everybody,
-AJ
___
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] left page / right page layout

2009-02-13 Thread Antoine Junod
Dear list,

One more (last) problem regarding layout I can't resolve by myself:

I've got a little booklet (2 A5 pages on one A4 sheet). The outside
margins are colored in blue. I would like to color the left outside
margin in yellow and keep the right outside margin in blue.

I've read and tried to adapt the 'Alternative backgrounds' example on
the wiki without any success. When I try to use leftpage (or
rightpage) in \setupbackgrounds, the background of the whole left page
is colored.

Here is what I have right now:

Thanks a lot for your reply,
-AJ

\definepapersize[pca4][width=212mm,height=299mm]
\definepapersize[pca5][width=149.5mm, height=212mm]

\setuppapersize[pca5][pca4]
\setuparranging[2UP,rotated]
\setuppagenumbering
 [alternative=doublesided]

\definelayout
[default]
[leftmargin=0mm,rightmargin=25.5mm,
 topspace=0mm,backspace=10mm,
 width=115mm,height=middle]

\setuplayout[location=middle]
\setuplayout[default]

\setupbodyfont[sansserif,10pt]

\enableregime[utf]
\setupcolors[state=start]

\setupbackgrounds
[text,header,footer] % with leftpage here, doesn't work
[rightmargin]
[background=color,backgroundcolor=blue]

\starttext
Hop
\page[yes]
foo
\page[yes]
bar
\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] layout problem

2009-02-09 Thread Antoine Junod
Wolfgang Schuster  writes:

> Antoine Junod schrieb:
>> Wolfgang Schuster  writes:
>> 
>>> Antoine Junod schrieb:
>>>> Dear list,
>>>> I've got two layout problems I can't resolve by myself:
>>>> * On the left pages, in the left margin, there is a white stripe. I
>>>>   don't really understand why. I've read on the wiki that when we
>>>>   describe a layout for a double page layout, the left pages layout is
>>>>   a mirror of the right ones. And on the right ones, there are no
>>>>   white stripes...
>>> A5 paper has not the exactly the half size as A4 paper.
>>>
>>> A4 has a height of 297mm and A5 a width of 148mm.
>>>
>>> 297 - 2 * 148 = 1mm (the gap on the left side).
>> So, for the record, the only solution I found to center my two A5
>> pages on the A4 one is to add veroffset=.5mm (ie, half of Wolfgang's
>> milimeter) to the layout definition.
>> If anybody has something better, feel free to complete the thread :)
>
> \setuplayout[location=middle]
> \setuplayout[default]

It works... but if I put location=middle in \definelayout, as I tried,
it does not works. I'm a bit lost, right now :)

A+
-AJ
___
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] layout problem

2009-02-09 Thread Antoine Junod
Wolfgang Schuster  writes:

> Antoine Junod schrieb:
>> Dear list,
>> I've got two layout problems I can't resolve by myself:
>> * On the left pages, in the left margin, there is a white stripe. I
>>   don't really understand why. I've read on the wiki that when we
>>   describe a layout for a double page layout, the left pages layout is
>>   a mirror of the right ones. And on the right ones, there are no
>>   white stripes...
>
> A5 paper has not the exactly the half size as A4 paper.
>
> A4 has a height of 297mm and A5 a width of 148mm.
>
> 297 - 2 * 148 = 1mm (the gap on the left side).

So, for the record, the only solution I found to center my two A5
pages on the A4 one is to add veroffset=.5mm (ie, half of Wolfgang's
milimeter) to the layout definition.

If anybody has something better, feel free to complete the thread :)

All the best,
-AJ
___
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] layout problem

2009-02-09 Thread Antoine Junod
Hi Wolfgang :)

Wolfgang Schuster  writes:

> Antoine Junod schrieb:
>> Dear list,
>> I've got two layout problems I can't resolve by myself:
>> * On the left pages, in the left margin, there is a white stripe. I
>>   don't really understand why. I've read on the wiki that when we
>>   describe a layout for a double page layout, the left pages layout is
>>   a mirror of the right ones. And on the right ones, there are no
>>   white stripes...
>
>
> A5 paper has not the exactly the half size as A4 paper.
>
> A4 has a height of 297mm and A5 a width of 148mm.
>
> 297 - 2 * 148 = 1mm (the gap on the left side).

God. I always thought it was exactly one half of A4. Thanks for the
info.

A+
-AJ
___
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] layout problem

2009-02-09 Thread Antoine Junod
Dear list,

I've got two layout problems I can't resolve by myself:

* On the left pages, in the left margin, there is a white stripe. I
  don't really understand why. I've read on the wiki that when we
  describe a layout for a double page layout, the left pages layout is
  a mirror of the right ones. And on the right ones, there are no
  white stripes...

* My 'printer' (the company that will print the booklet for me, not
  sure that the good word) asks me to provide him with a document that
  is 2mm larger and 2mm higher that the final one to be sure he can
  print precisely to the exact border of the paper. I don't want to
  magnify the whole document as it will maybe cut some
  information. Any idea on how I could achive that?

Linked is the pdf output. Below is the minimal example used to create
the pdf output.

Thanks a lot for your reply,
-AJ


Here is my setup:

\setuppapersize[A5][A4]
\setuparranging[2UP,rotated]
\setuppagenumbering
 [alternative=doublesided]
\definelayout
[default]
[leftmargin=0mm,rightmargin=24mm,
 topspace=0mm,backspace=10mm,
 width=115mm, height=middle]
\setuplayout[default]
\setupbodyfont[sansserif,10pt]
\enableregime[utf]
\setupcolors[state=start]
\definecolor
[marginblue]
[c=.71,m=.58,y=0,k=.43]
\setupbackgrounds
[text,header,footer]
[rightmargin]
[background=color,backgroundcolor=marginblue]
\starttext
page de titre
\page[yes]
colophon
\page[yes]
\section{Le mot du président}
pouet
\page[yes]
toujours les bêtises d'Alain
\page[yes]
\section{Votre comité}
\stoptext



bad_layout.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] stupbackgrounds and margin

2009-02-01 Thread Antoine Junod
Wolfgang Schuster  writes:

> Am 01.02.2009 um 14:11 schrieb Antoine Junod:
>
>> Hi wolfgang, and thanks for your reply.
>>
>> Wolfgang Schuster  writes:
>>
>> [trying to get a red leftmargin]
>>
>>> Make a complete (with text) example where we can see your problem (a
>>> example of the output could help), I get a red background for the
>>> left margin.
>>
>> Here it is. And the output (processed with texexec --lua) is attached.
>>
>> \showframe
>
> \showframe overwrites the \setupbackgrounds settings, comment it and
> you can see it.

Thanks Wolfgang, that was that.

A+
-AJ
___
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] stupbackgrounds and margin

2009-02-01 Thread Antoine Junod
Hi wolfgang, and thanks for your reply.

Wolfgang Schuster  writes:

[trying to get a red leftmargin]

> Make a complete (with text) example where we can see your problem (a
> example of the output could help), I get a red background for the
> left margin.

Here it is. And the output (processed with texexec --lua) is attached.

Thanks for everything.
-AJ

\setuppapersize
[A5][A4]
\setuparranging
[2UP,rotated,doublesided]
\setuplayout
[margin=18mm,
 width=middle,height=middle,
 topspace=0cm,backspace=18mm]
\setupcolors
[state=start]
\setupbackgrounds
[text]
[leftmargin]
[background=color,backgroundcolor=red]

\showframe
\showgrid

\enableregime[utf]

\starttext

\section{my taylor is rich}
knuthknuth
\page[yes]
\section{God save the Queen}
knuthknuth
\stoptext



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


[NTG-context] stupbackgrounds and margin

2009-02-01 Thread Antoine Junod
Hello, list!

I'm struggling to try to do something that seems simple but I'm not
able to succeed. I would like to have the left margin of my document
painted in red (or another color, I don't mind right now).

Here is what I have:

\setuppapersize[A5][A4]
\setuparranging[2UP,rotated,doublesided]
\setuplayout[margin=18mm,
 width=middle,height=middle,
 topspace=0cm,backspace=18mm]
\setupcolors[state=start]
\setupbackgrounds[text]
 [leftmargin] [background=color,backgroundcolor=red]

But it makes as if I had no leftmargin. What am I doing wrong?

Thanks for your help,
A+
-AJ
___
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] gfs neohellenic typescript

2009-01-22 Thread Antoine Junod
"Thomas A. Schmitz"  writes:

> On Jan 21, 2009, at 5:41 PM, Antoine Junod wrote:
>
>> Hello list,
>>
>> Has anyone already written a typescript for the beautiful gfs
>> neohellenic (for mkii)?
>
> If you want to use this font with mkii, you'll need much more than
> just a typescript, at the least tfms + encodings + mapfiles. That's
> the reason why luatex so much more convenient. Also depends on how
> you want to use the font: which parts are you interested in, Greek,
> Latin, ?

Hi Thomas, thanks for the reply. I was just a bit afraid to compile my
document with --luatex. But I tried and it seems my nasty code and
tricks are just showing fine :)

So, lets go for mkiv. I just need the latin part, in fact. And I've
seen that there is a good example on the wiki of a typescript for
luatex. I'll just try that by myself :)

A+
-AJ
___
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] gfs neohellenic typescript

2009-01-21 Thread Antoine Junod
Hello list,

Has anyone already written a typescript for the beautiful gfs
neohellenic (for mkii)?

A+
-AJ
___
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] 2NUP, spreading a table on 2 pages

2009-01-21 Thread Antoine Junod
Hi Wolfgang,

Wolfgang Schuster  writes:

> Am 20.01.2009 um 16:25 schrieb Antoine Junod:
>
>> In fact my reply was a bit fast: in the example below the table is
>> split on pages 2 and 3. But the lines of the table are not
>> aligned. I'll dig the sources too see if it's possible to do that. But
>> if anyone has a solution, I'm interested :)
>
> You can solve it with twopassdata and a few wrapper macros to hide
> the underlying macros in your document. Take a look in my example
> how this can be done.
>
> You need the "arrange" key for texexec to let it work in imposition
> mode.

That is a lot of things I haven't heard about :) But thanks, it's
doing the job in a perfect way.

Would it be constructive to put that in the wiki or is it just a hack
that won't be needed anymore with a future release? If it's not a
temporary hack, tell me and I'll edit the wiki.

Thanks,
-AJ
___
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] 2NUP, spreading a table on 2 pages

2009-01-20 Thread Antoine Junod
Antoine Junod  writes:

> Hi,
>
> Wolfgang Schuster  writes:
>
>> Am 20.01.2009 um 09:20 schrieb Antoine Junod:
>>
>>> Hello List,
>>>
>>> I'm trying to design a little booklet on the form two A5 pages on a A4
>>> sheet. It's not hard to do as it is well documented.
>>>
>>> The problem is the following: I would like to add a table (actually a
>>> people list with firstname, lastname, mobile, address and so on and so
>>> on) that is quite wide. The idea is to put it on a double page (ie,
>>> when you open the booklet, the table is on both the left and the right
>>> page).
>>>
>>> The easy way would be to 1) manually cut the table in two tables (a
>>> left one and a right one) that fit on a page and 2) to put them each
>>> on their own page, beeing sure the left one is on a left page. Here,
>>> the difficulty is to align both tables accross the pages.
>>
>>
>> How about linetables?
>>
>> \setuplinetable[nx=2,width=.125\textwidth]
>>
>> \starttext
>>
>> \startlinetable
>> \NC firstname \NC lastname \NC phone   \NC mobile  \NC postal
>> code \NC city\NC address\NC\NR
>> \NC John  \NC Jonhsons \NC 0800/987654 \NC 0171/123456 \NC  12345
>> \NC New TeX \NC Meta street 12 \NC\NR
>> \stoplinetable
>>
>> \stoptext
>
> Excellent, thanks Wolfgang. It exactly matches my needs :)

In fact my reply was a bit fast: in the example below the table is
split on pages 2 and 3. But the lines of the table are not
aligned. I'll dig the sources too see if it's possible to do that. But
if anyone has a solution, I'm interested :)

Thanks for your help,
-AJ

 Page setup
% Use A5 pages on A4 paper
\setuppapersize[A5][A4]

% Arrange the A5 pages such that there are two of them on each A4
% sheet. They are arranged such that they can be send to the printer
% set to print on both pages, flipping on the long edge.
\setuparranging[2UP,rotated,doublesided]

% The layout of the page
\setuplayout[margin=1cm,width=middle,height=middle,topspace=0cm,backspace=1.2cm]

 Colors
% Enable the use of colors for the whole document
\setupcolors[state=start]

 Debug
% Display the layout borders
\showframe

% Display the grid
\showgrid

% Display the current layout setup value
%\showsetups

 Font
% Accept accents by default as input, like é, à and others.
\enableregime[utf]

 Beginning of the document
\starttext

\section{Le mot du président}
\dorecurse{2}{\input tufte \par}

\section{Les comptes}

\section{Les récits}
\subsection{La dora}
\subsection{Mon premier match de polo}
\subsection{La piscine}

\section{List des membres}
% magic
\setuplinetable[nx=2,width=.125\textwidth]
\startlinetable
\NC firstname \NC lastname \NC phone   \NC mobile  \NC postal
code \NC city\NC address\NC\NR
\NC John  \NC Jonhsons \NC 0800/987654 \NC 0171/123456 \NC  12345
\NC New TeX \NC Meta street 12 \NC\NR
\stoplinetable

\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] 2NUP, spreading a table on 2 pages

2009-01-20 Thread Antoine Junod
Hi,

Wolfgang Schuster  writes:

> Am 20.01.2009 um 09:20 schrieb Antoine Junod:
>
>> Hello List,
>>
>> I'm trying to design a little booklet on the form two A5 pages on a A4
>> sheet. It's not hard to do as it is well documented.
>>
>> The problem is the following: I would like to add a table (actually a
>> people list with firstname, lastname, mobile, address and so on and so
>> on) that is quite wide. The idea is to put it on a double page (ie,
>> when you open the booklet, the table is on both the left and the right
>> page).
>>
>> The easy way would be to 1) manually cut the table in two tables (a
>> left one and a right one) that fit on a page and 2) to put them each
>> on their own page, beeing sure the left one is on a left page. Here,
>> the difficulty is to align both tables accross the pages.
>
>
> How about linetables?
>
> \setuplinetable[nx=2,width=.125\textwidth]
>
> \starttext
>
> \startlinetable
> \NC firstname \NC lastname \NC phone   \NC mobile  \NC postal
> code \NC city\NC address\NC\NR
> \NC John  \NC Jonhsons \NC 0800/987654 \NC 0171/123456 \NC  12345
> \NC New TeX \NC Meta street 12 \NC\NR
> \stoplinetable
>
> \stoptext

Excellent, thanks Wolfgang. It exactly matches my needs :)

All the best,
-AJ
___
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] 2NUP, spreading a table on 2 pages

2009-01-20 Thread Antoine Junod
Hi,

"Diego Depaoli"  writes:

> On Tue, Jan 20, 2009 at 9:20 AM, Antoine Junod  wrote:
>> Hello List,
>>
>> I'm trying to design a little booklet on the form two A5 pages on a A4
>> sheet. It's not hard to do as it is well documented.
>>
>> The problem is the following: I would like to add a table (actually a
>> people list with firstname, lastname, mobile, address and so on and so
>> on) that is quite wide. The idea is to put it on a double page (ie,
>> when you open the booklet, the table is on both the left and the right
>> page).
>>
>> The easy way would be to 1) manually cut the table in two tables (a
>> left one and a right one) that fit on a page and 2) to put them each
>> on their own page, beeing sure the left one is on a left page. Here,
>> the difficulty is to align both tables accross the pages.
>>
>> Another way would be to ask context to do that by himself. Is there a
>> way to do that?
>
> look here
> http://archive.contextgarden.net/message/20080623.074757.6c4176a1.en.html
> Hope that helps

Thanks Diego, it seems to do exactly what I need :)

A+
-AJ
___
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] 2NUP, spreading a table on 2 pages

2009-01-20 Thread Antoine Junod
Hello List,

I'm trying to design a little booklet on the form two A5 pages on a A4
sheet. It's not hard to do as it is well documented.

The problem is the following: I would like to add a table (actually a
people list with firstname, lastname, mobile, address and so on and so
on) that is quite wide. The idea is to put it on a double page (ie,
when you open the booklet, the table is on both the left and the right
page).

The easy way would be to 1) manually cut the table in two tables (a
left one and a right one) that fit on a page and 2) to put them each
on their own page, beeing sure the left one is on a left page. Here,
the difficulty is to align both tables accross the pages.

Another way would be to ask context to do that by himself. Is there a
way to do that?

Thanks for your reply,
-AJ

___
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] typescript and memory usage

2008-05-01 Thread Antoine Junod
Hello list,

Thanks to Hans, Hraban, Wolfgang and Aditya, I've successfully played
with typescripts and Garamond PP as provided by Adobe with luatex.

But I still have a little question :) By reducing my typescript to the
strict minimum, as below, I'm still using 232 Mo (sic) of ram. My
document test only contains nothing but a \switchtobodyfont but it
takes 8.7 seconds to compile on a 4000 bogomips machine (athlon
2400+).

For the C lover I am, that seems, errh, HUGE.

Is it normal?

Note that if I remove the [features=default] argument, mem is divided
by 2, and time by 3. Also note that if I use more faces, it can go to
2Go of ram and 2 minutes of computing.

Thanks for your reply,
-AJ

%% typescript
\starttypescript[serif][garamondpp]
\definefontsynonym [GaramondPP-Roman][file:GaramondPremrPro]
\stoptypescript
\starttypescript[serif][garamondpp][name]
\definefontsynonym [Serif][GaramondPP-Roman]
\stoptypescript
\starttypescript [GaramondPP]
\definetypeface [GaramondPP][rm][serif][garamondpp][default]
\stoptypescript

%% minimal doc
\usetypescriptfile[type-garamondpp]
\usetypescript[GaramondPP]
\starttext
\setupbodyfont[GaramondPP]
\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] Discussion: correspondence with ConTeXt

2008-04-21 Thread Antoine Junod
"Wolfgang Schuster" <[EMAIL PROTECTED]> writes:

> On Sat, Apr 19, 2008 at 1:49 PM, Antoine Junod <[EMAIL PROTECTED]> wrote:
>> "Wolfgang Schuster" <[EMAIL PROTECTED]> writes:
>>
>> >> >  > The discussion
>> >> >  >
>> >> >  > Before I start to give you information about my module and
>> >> >  > give you the chance to mention your own wishes or thoughts
>> >> >  > about the inteface I'm interested what do you use currently to
>> >> >  > write you own correspondence (letter, invoices etc.).
>> >>
>> >> [...]
>> >>
>> >> But with a « great letter module » (with french positions, of course :))…
>> >
>> > Show me a few example or give me values for the positions (address block,
>> > opening, line distance etc.)
>>
>> I use myself the lettre (and not letter :) package [1] for LaTeX. It
>> is easy to use, clean but maybe a bit old in the way to do things
>> (mainly because of the 'Concerne' stuff). But it gives a good example
>> of how have to be letters in Suisse Romande and France.
>>
>> [1] http://www.ctan.org/tex-archive/help/Catalogue/entries/lettre.html
>
> Hi Antoine,
>
> I will made a still based on the examples in the manual.

Thanks you chief :)

A+
-AJ
___
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] Discussion: correspondence with ConTeXt

2008-04-19 Thread Antoine Junod
"Wolfgang Schuster" <[EMAIL PROTECTED]> writes:

>> >  > The discussion
>> >  >
>> >  > Before I start to give you information about my module and
>> >  > give you the chance to mention your own wishes or thoughts
>> >  > about the inteface I'm interested what do you use currently to
>> >  > write you own correspondence (letter, invoices etc.).
>>
>> [...]
>>
>> But with a « great letter module » (with french positions, of course :))…
>
> Show me a few example or give me values for the positions (address block,
> opening, line distance etc.)

I use myself the lettre (and not letter :) package [1] for LaTeX. It
is easy to use, clean but maybe a bit old in the way to do things
(mainly because of the 'Concerne' stuff). But it gives a good example
of how have to be letters in Suisse Romande and France.

My 2 cents worth,
A+
-AJ

[1] http://www.ctan.org/tex-archive/help/Catalogue/entries/lettre.html
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] typescript

2008-04-19 Thread Antoine Junod
Hello, List!

Follownig your recommendations while playing with fonts, I've started
to write one. It's actually very basic but I already have a few
questions. Here is the basic, working stuff I did until now:

\starttypescript[serif][garamondpp]
\definefontsynonym [GaramondPP-Roman]  [GaramondPremrPro]
\definefontsynonym [GaramondPP-Bold]   [GaramondPremrPro-Bd]
\definefontsynonym [GaramondPP-Italic] [GaramondPremrPro-It]
\definefontsynonym [GaramondPP-Bold-Italic][GaramondPremrPro-BdIt]
\stoptypescript

If I've understood what I did in that part, I've simply defined alias
for the font file names. What I do not catch is the \starttypescript
line. Is it right to say that the second parameter is the name of the
'class' to which the definitions that follow are linked? Second
question on that part: Is the first argument (serif) a reserved
keyword or not? What's the point of that argument? Third and last
question for that part, in the case, as in here, where the font file
names are easy to remember, is it still needed to create that synonyms
for any reason?

Then, I wrote the [name] part of the typescript, as the following:

\starttypescript[serif][garamondpp][name]
\definefontsynonym [Serif]  [GaramondPP-Roman]
\definefontsynonym [SerifBold]  [GaramondPP-Bold]
\definefontsynonym [SerifItalic][GaramondPP-Italic]
\definefontsynonym [SerifSlanted]   [SerifItalic]
\definefontsynonym [SerifBoldItalic][GaramondPP-Bold-Italic]
\stoptypescript

If I caught the point of the last argument, it is here to indicate
that what follows links font files to the pre-defined font concept
that are Serif, SerifBold, SerifItalic and so on and so on). Here are
my questions: I've seen in the sources that there were 7 predefined
types in the Serif family: Serif, SerifBold, SerifItalic,
SerifSlanted, SerifBoldItalic and SerifBoldSlanted. What if I have a
font that not only have a Bold face but also a Medium face and a
SemiBold face? Second question: my font do not have a slanted face and
I do not want to have pieces of computer modern in the text because,
by mistake, I typed an \sl switch or something related. To avoid that,
you can see I declared SerifSlanted to be a synonym for
SerifItalic. Is it the way to do that or is it better to directly
define SerifSlanted as a synonym to GaramondPP-Italic (in my case)?

And for the last part of my little type script:

\starttypescript [GaramondPP]
\definetypeface [GaramondPP][rm][serif][garamondpp][default]
\stoptypescript

That part is for me a beautiful piece of ununderstanding :) First
question: the first argument is the name we will use with the
\usetypescript command. Right? Second question: the first argument of
the \definetypescript is the name that will be used with the
\setupbodyfont call. Is it right? Isn't there any conflict with the
GaramondPP of the \starttypescript and the one of the \definetypeface?
Or do they need to be the same? Other question: how are related the
three following parameters (rm, serif and garamondpp)? And finally,
what's the point of the 'default' argument?

I'm aware that's a huge load of questions. Nothing is urgent but every
replies are welcome, and that will allow me to help others. More
questions will certainly occurs later (certainly related to sizes) but
at first I'll try to better understand all what is above.

Thanks a lot for everything!
A+
-AJ
___
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] small caps and old numbers with open type fonts

2008-04-16 Thread Antoine Junod
"Wolfgang Schuster" <[EMAIL PROTECTED]> writes:

> On Wed, Apr 16, 2008 at 11:59 AM, Antoine Junod <[EMAIL PROTECTED]> wrote:
>> Hi Wolfgang!
>>
>> "Wolfgang Schuster" <[EMAIL PROTECTED]> writes:
>>
>> > On Sun, Apr 13, 2008 at 8:39 PM, Antoine Junod <[EMAIL PROTECTED]> wrote:
>> >> Hello list,
>> >>
>> >> I actually use my font as simple as possible with a
>> >> \definefont[boum][MyFont at 12pt]. Is it the problem?
>> >>
>> >> It the same with the \sc command.
>> >
>> > \definefont[boum][MyFont at 12pt]
>> > \definefont[scboum][MyFont*smallcaps at 12pt]
>>
>> Wow, beautifull, thanks :) Where is the * and what we can put after
>> (smallcaps for example) described? I have the strong feeling to
>> search in the wrong place without any result.
>
> The * is used to assign a feature to the font and you could find a
> description in font-ini.tex /grep for \definefontfeature) but the
> better way is to use typescripts for your fonts.

Okay. That's what I'm trying to do right now.

> ConTeXt has the following features predefined:
> - default
> - smallcaps
> - oldstyle

Yep, I saw them in font-ini.tex, as you pointed me to.

> It is also possible to change the features of a font within the text
> with the command \setfontfeature{...}.

But, if I've understood the point, there is no reason to do that if I
use a proper typescript. Right?

Best regards,
-AJ
___
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] small caps and old numbers with open type fonts

2008-04-16 Thread Antoine Junod
Hi Wolfgang!

"Wolfgang Schuster" <[EMAIL PROTECTED]> writes:

> On Sun, Apr 13, 2008 at 8:39 PM, Antoine Junod <[EMAIL PROTECTED]> wrote:
>> Hello list,
>>
>> I actually use my font as simple as possible with a
>> \definefont[boum][MyFont at 12pt]. Is it the problem?
>>
>> It the same with the \sc command.
>
> \definefont[boum][MyFont at 12pt]
> \definefont[scboum][MyFont*smallcaps at 12pt]

Wow, beautifull, thanks :) Where is the * and what we can put after
(smallcaps for example) described? I have the strong feeling to search
in the wrong place without any result.

Best regards, 
-AJ
___
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] small caps and old numbers with open type fonts

2008-04-16 Thread Antoine Junod
Hi,

Thanks a lot for your reply :)

Henning Hraban Ramm <[EMAIL PROTECTED]> writes:

> Am 2008-04-13 um 20:39 schrieb Antoine Junod:
>> I actually use my font as simple as possible with a
>> \definefont[boum][MyFont at 12pt]. Is it the problem?
>
> Yes. You should set up your fonts with a typescript and access small  
> caps / oldstyle as "features".

Okay. I've digged a bit about typescripts. If I've understood what I
read, I need to use the \definefontsysnonym command. But I'm currently
not able to find any doc about \definefontsynonym (a grammar or a
definition or something identical). Texshow does not contain it, nor
does the context commands manual. I've seen a bit about it in the
Fonts in Context manual (mfonts.pdf) but nothing about the 'feature'
as in type-otf.tex [1]. I'll try to copy / paste in an clever way (hum
:) but would be relly interesting if someone could point me to a
complete doc.

Thanks for you reply and greetings from Lake Léman, not Constance :)
-AJ

[1] http://source.contextgarden.net/type-otf.tex
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] small caps and old numbers with open type fonts

2008-04-13 Thread Antoine Junod
Hello list,

I'm still playing with a few otf fonts and enjoying the way ConTeXt
works :)

I'm now playing with a beautiful Garamond. I try to typeset a few
things with old-style numbers and, well, the output contains old-style
numbers but not in my Garamond (it seems to be in latin modern). What
should I do to use the old-style numbers of my font? Did a miss a doc
about that? Or did I missunderstood the \os command (I thought it was
a switch to the old-style of the font but it seems rather to change of
font)?

I actually use my font as simple as possible with a
\definefont[boum][MyFont at 12pt]. Is it the problem?

It the same with the \sc command.

Thanks a lot for your reply,
-AJ
___
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] fonts and luatex

2008-04-13 Thread Antoine Junod
Hans Hagen <[EMAIL PROTECTED]> writes:

> Antoine Junod wrote:
>> Hello, List!
>> 
>> Is it still needed to 'install' fonts with luatex and otf fonts or
>> is it enough to drop the otf font files in a random place inside
>> texmf/fonts/opentype/ ?
>
> dropping is enough; here i use:
>
>   texmfwhatever/fonts/data/vendor/collection/[otf, afm, pfb]
>
> don't forget
>
>   luatools --generate
>
>
> also if you wanted named access:
>
>   mtxrun --script fonts --reload

Wow, thanks a lot, it works fine with the font I'm trying to play with
(Adobe Brioso Pro).

What do you mean by 'named access'? For my testing purpose, I'm simply
using domthing like \definefont[brioso][BriosoPro-Regular at 12pt]

Thanks for the reply,
A+
-AJ
___
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] fonts and luatex

2008-04-13 Thread Antoine Junod
Hello, List!

Is it still needed to 'install' fonts with luatex and otf fonts or is
it enough to drop the otf font files in a random place inside
texmf/fonts/opentype/ ?

Thanks for your reply,
-AJ
___
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] Font installation

2006-11-06 Thread Antoine Junod
Hans Hagen <[EMAIL PROTECTED]> writes:
> Antoine Junod wrote:
> > "Thomas A. Schmitz" <[EMAIL PROTECTED]> writes:
> > > On Nov 6, 2006, at 2:54 PM, Antoine Junod wrote:
> > > 
> > > > tmf files are in:
> > > >
> > > >   ./texmf-fonts/fonts/tfm/sil/doulos/texnansi-DoulosSILR.tfm
> > > >   ./texmf-fonts/fonts/tfm/sil/doulos/texnansi-raw-DoulosSILR.tfm
> > > >
> > > > mtexfont.pdf seems to say that's the right place (page 3).
> > > >
> > > > Yes, I've run texhash/mktexlsr.
> > > >
> > > > What else should I check?
> > >   
> > > Excuse me, I wasn't paying enough attention. From your log, it is  
> > > clear that ConTeXt is looking for a tfm that is called DoulosSil.tfm  
> > > -- which, of course, isn't there. I think the reason is because you  
> > > use the same name "doulos" for all your definitions. Try to edit your  
> > > test file like so:
> >
> > It doesn't change anything. Always the same error:
> >
> > (./type-doulos.tex)
> > ! Font \*Doulos12ptrmtfrm*:=DoulosSil at 12.0pt not loadable:
> > Metric (TFM) file not found.
>
> what does
> 
> kpsewhich DoulosSil.tfm
> 
> report?

Nothing. I've no DoulsSil.tfm file in my texmf tree. The question is
why is it looking for a DoulosSol.tfm file? Am wrong with my
type-doulos.tex (cf my first post)?

texfont has installed into the tree the following files:
./texmf-fonts/fonts/afm/sil/doulos/DoulosSILR.afm
./texmf-fonts/fonts/tfm/sil/doulos/texnansi-DoulosSILR.tfm
./texmf-fonts/fonts/tfm/sil/doulos/texnansi-raw-DoulosSILR.tfm
./texmf-fonts/fonts/vf/sil/doulos/texnansi-DoulosSILR.vf
./texmf-fonts/fonts/type1/sil/doulos/DoulosSILR.pfb

and the map files
./texmf-fonts/fonts/map/dvips/context/dvips-texnansi-sil-doulos.map
./texmf-fonts/fonts/map/dvipdfm/context/dvipdfm-texnansi-sil-doulos.map
./texmf-fonts/fonts/map/pdftex/context/texnansi-sil-doulos.map

Thanks a lot for your help.
-AJ
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font installation

2006-11-06 Thread Antoine Junod
"Thomas A. Schmitz" <[EMAIL PROTECTED]> writes:

> On Nov 6, 2006, at 2:54 PM, Antoine Junod wrote:
> 
> > tmf files are in:
> >
> >   ./texmf-fonts/fonts/tfm/sil/doulos/texnansi-DoulosSILR.tfm
> >   ./texmf-fonts/fonts/tfm/sil/doulos/texnansi-raw-DoulosSILR.tfm
> >
> > mtexfont.pdf seems to say that's the right place (page 3).
> >
> > Yes, I've run texhash/mktexlsr.
> >
> > What else should I check?
> 
> Excuse me, I wasn't paying enough attention. From your log, it is  
> clear that ConTeXt is looking for a tfm that is called DoulosSil.tfm  
> -- which, of course, isn't there. I think the reason is because you  
> use the same name "doulos" for all your definitions. Try to edit your  
> test file like so:

It doesn't change anything. Always the same error:

(./type-doulos.tex)
! Font \*Doulos12ptrmtfrm*:=DoulosSil at 12.0pt not loadable: Metric (TFM) file
 not found.

Thanks for your help.
-AJ
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font installation

2006-11-06 Thread Antoine Junod
"Thomas A. Schmitz" <[EMAIL PROTECTED]> writes:

> On Nov 6, 2006, at 2:33 PM, Antoine Junod wrote:
> 
> > Hello list,
> >
> > I'm trying to install new fonts in my texmf tree but at each try I
> > stop at the same point, when compiling my test file:
> >
> > (./type-doulos.tex)
> > ! Font \*doulos12ptrmtfrm*:=DoulosSil at 12.0pt not loadable:  
> > Metric (TFM) file
> >  not found.
> >
> > I've got this problem not only with doulos but with gfs fonts too, and
> > others.
> >
> 
> Well the error message is quite helpful: TeX can't find the tfm file.  
> Where did you put it? Is it found by kpsewhich? Did you run texhash/ 
> mktexlsr after installing your fonts?

tmf files are in:

  ./texmf-fonts/fonts/tfm/sil/doulos/texnansi-DoulosSILR.tfm
  ./texmf-fonts/fonts/tfm/sil/doulos/texnansi-raw-DoulosSILR.tfm

mtexfont.pdf seems to say that's the right place (page 3).

Yes, I've run texhash/mktexlsr.

What else should I check?

Thanks for your help.
-AJ
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Font installation

2006-11-06 Thread Antoine Junod
Hello list, 

I'm trying to install new fonts in my texmf tree but at each try I
stop at the same point, when compiling my test file:

(./type-doulos.tex)
! Font \*doulos12ptrmtfrm*:=DoulosSil at 12.0pt not loadable: Metric (TFM) file
 not found.

I've got this problem not only with doulos but with gfs fonts too, and
others.

Font installation in the texmf tree with texfont works well. I can
compile without any problem the texnansi-sil-doulos.tex file (idem
with other files).

What am I doing wrong?

Here is my minimal type-doulos.tex:

% type-doulos.tex
\starttypescript [map] [texnansi]
  \loadmapfile[texnansi-sil-doulos]
\stoptypescript

\starttypescript [serif] [doulos] [texnansi]
  \definefontsynonym[DoulosSIL][texnansi-DoulosSILR][encoding=texnansi]
\stoptypescript

\starttypescript [serif] [doulos] [name]
  \definefontsynonym[Serif] [DoulosSil]
\stoptypescript


And here is my minimal test file:
\usetypescriptfile[type-doulos]
\definetypeface[doulos][rm][serif][doulos][default][encoding=texnansi]
\setupbodyfont[doulos,rm,10pt]

\starttext
This is the end, gnn
\stoptext

Thanks a lot for your reply.
-AJ
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] feedback on the wiki Linux_User_Installation article

2006-11-03 Thread Antoine Junod
Antoine Junod <[EMAIL PROTECTED]> writes:

> [...]
>
> All goes fine till the 'texexec --make --alone' command. It says me
> 'the file 'texexec.rb' is not found'. I can copy it in the
> texmf-linux/bin directory but it trigs other errors. I can correct
> that error by recursively copying all the files of the
> texmf-local/scripts/context/ruby/ directory into the texmf-linux/bin/
> one.

I've found the mistake. I've forgotten to run setuptex or equivalent
before running texexec --make --alone.
 
I'll update the wiki in consequence.

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


[NTG-context] feedback on the wiki Linux_User_Installation article

2006-11-02 Thread Antoine Junod
Hello list, 

I'm trying to make a fresh minimal install following the wiki article
'Linux User Installation'.

All goes fine till the 'texexec --make --alone' command. It says me
'the file 'texexec.rb' is not found'. I can copy it in the
texmf-linux/bin directory but it trigs other errors. I can correct
that error by recursively copying all the files of the
texmf-local/scripts/context/ruby/ directory into the texmf-linux/bin/
one.

Should I update the wiki with that information or is it a problem tied
to my system, or maybe a problem of the minimal context
distribution/binaries files?

Thanks for your replies.
-AJ

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


Re: [NTG-context] descriptions

2006-03-30 Thread Antoine Junod
"Jeffrey Drake" <[EMAIL PROTECTED]> writes:
> On page 180 of the manual, ConTeXt lists many kinds of descriptions.
> Like one that indents the body of the definition. It is extremely
> frustrating to me that it doesn't say how to do it and I can't figure
> it out.
> 
> Any ideas?

http://wiki.contextgarden.net/Description gives you a little idea.

You can use too the \setupdescription command (cf page 181
in the manual)

Hope this helps.
-Antoine
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Dirty trick / clean solution

2006-03-23 Thread Antoine Junod
Hans Hagen <[EMAIL PROTECTED]> writes:

> Antoine Junod wrote:
> > Hello list,
> >
> > I've got a piece of code that is absolutely
> > aful. Unfortunately (sic) it makes what I want.
> >
> > \defineparagraphs[p][n=2,before={},after={}]
> > \setupparagraphs[p][1][width=.2\textwidth,style=bold]
> >
> > \definetyping
> >   [code]
> > \setuptyping
> >   [code]
> >   [margin=.23\textwidth,before={},after={\vskip-10pt}]
> >
> > \startp Operation: \p AuctionClient::providePersData($p$:
> > Person)\stopp
> > \startp Description: \p Fournit les données personnelles
> > nécessaires à la création d'un compte, encapsulées dans un
> > objet $p$.\stopp
> > \startp Messages: \p{\tt auctionServer\^{}createAccount(p:
> > Person);}\stopp\startcode
> > sender^message(msg: String);
> > sender^requestPersData()
> > \stopcode
> > \startp Pre: \p {\tt true}\stopp
> > \startp Post: \p{\tt  if
> > (self.checkPersData(p))}\stopp\startcode
> > then
> >   self.auctionServer.createAccount(p) and
> >   not(sender.message('Malformed personal data')) and
> >   not(sender.requestPersData())
> > else
> >   not(auctionServer^createAccount(p)) and
> >   sender^message('Malformed personal data') and
> >   sender^requestPersData()
> > endif
> > \stopcode
> > \blank
> >
> > How could I improve that? I've tried a lot of different
> > things but the main problem is that i can't type in verbatim
> > mode because i'm in reduced horizontal mode.
> >
> > Thanks a lot for you help
> > -AJ
> >   
> \starttext
> 
> \definedescription[procedure]  [width=10em]
> \definedescription[operation]  [procedure]
> \definedescription[description][procedure]
> \definedescription[post]   [procedure]
> 
> \setupdescriptions[operation]  [title=no,text=Operation]
> \setupdescriptions[description][title=no,text=Description]
> \setupdescriptions[post]   [title=no,text=Post]
> 
> \definetyping[code][before=\vskip-\lineheight,after=]
> 
> \startoperation
> AuctionClient::providePersData($p$: Person)
> \stopoperation
> 
> \startdescription
> Fournit les données personnelles
> nécessaires à la création d'un compte, encapsulées dans un
> objet $p$.
> \stopdescription
> 
> \startpost
> \startcode
> if (self.checkPersData(p)) then
>   self.auctionServer.createAccount(p) and
>   not(sender.message('Malformed personal data')) and
>   not(sender.requestPersData())
> else
>   not(auctionServer^createAccount(p)) and
>   sender^message('Malformed personal data') and
>   sender^requestPersData()
> endif
> \stopcode
> \stoppost
> 
> \stoptext
> 
> please wikify this

I'll as soon as possible. Thanks a lot for your help.
-AJ
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Dirty trick

2006-03-22 Thread Antoine Junod
Hello list,

I've got a piece of code that is absolutely
aful. Unfortunately (sic) it makes what I want.

\defineparagraphs[p][n=2,before={},after={}]
\setupparagraphs[p][1][width=.2\textwidth,style=bold]

\definetyping
  [code]
\setuptyping
  [code]
  [margin=.23\textwidth,before={},after={\vskip-10pt}]

\startp Operation: \p AuctionClient::providePersData($p$:
Person)\stopp
\startp Description: \p Fournit les données personnelles
nécessaires à la création d'un compte, encapsulées dans un
objet $p$.\stopp
\startp Messages: \p{\tt auctionServer\^{}createAccount(p:
Person);}\stopp\startcode
sender^message(msg: String);
sender^requestPersData()
\stopcode
\startp Pre: \p {\tt true}\stopp
\startp Post: \p{\tt  if
(self.checkPersData(p))}\stopp\startcode
then
  self.auctionServer.createAccount(p) and
  not(sender.message('Malformed personal data')) and
  not(sender.requestPersData())
else
  not(auctionServer^createAccount(p)) and
  sender^message('Malformed personal data') and
  sender^requestPersData()
endif
\stopcode
\blank

How could I improve that? I've tried a lot of different
things but the main problem is that i can't type in verbatim
mode because i'm in reduced horizontal mode.

Thanks a lot for you help
-AJ

p.s.: the whole tests documents are there:

  http://www.tots-ns.net/tests/conception/test.tex
  http://www.tots-ns.net/tests/conception/test.pdf
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context