Re: [NTG-context] Indenting / small paper size / strange paragraph cutting

2008-07-26 Thread Aditya Mahajan

On Sat, 26 Jul 2008, Olivier Guéry wrote:


Hello,

I got my Sony prs 505 ebook reader last week… Nice machine.
I tried to set-up one of my favorite book to be read on this.
Here are the specials part :
— Page size : 120mm x 90 mm
— margins : 3mm up/down and 2mm left/right (could be 1mm, in fact)

Here are the links to the .tex and .pdf files.

Here are my problems :
— I can't set the space before my section number : in
line 38 : \setuphead[section][style=tfc, numberstyle=bold,
before={\blank[3*big]}, alternative=middle]
everithing work but the « before » section


Try using before={\blank[force,3*big]}.


— still can't have automatic indent after section. I need to force it
using « \indentation » (line 47)


Use

\setupindentation[big,yes]

and

\setuphead[section][indentnext=yes]


— look at the end of the first page : there's a big gap. Don't know
why. It's in the middle of a sentence, and the paragraph is big after.


Sorry, I don't have Gentium and I do not get the same problem with latin 
modern.



— at the end of the second page, third line before the end, the « dans
» is in the margin. I can't hyphenate this word. I woud prefer having
bigger white spaces rather than this.


Try \setuptolerance[verytolerant, stretch]


— on page 3, before « Une horloge » I can't have indentation after
\crlf. I used a « \packed » command after empty line but it's not what
I want. I want a new line, with indentation but not a « \par »
vertical spacing.


I don't know how to get this. You can use \vskip -2em (play around with 
the length) but there should be a "proper" way.


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

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


[NTG-context] Indenting / small paper size / strange paragraph cutting

2008-07-26 Thread Olivier Guéry
Hello,

I got my Sony prs 505 ebook reader last week… Nice machine.
I tried to set-up one of my favorite book to be read on this.
Here are the specials part :
— Page size : 120mm x 90 mm
— margins : 3mm up/down and 2mm left/right (could be 1mm, in fact)

Here are the links to the .tex and .pdf files.

Here are my problems :
— I can't set the space before my section number : in
line 38 : \setuphead[section][style=tfc, numberstyle=bold,
before={\blank[3*big]}, alternative=middle]
everithing work but the « before » section

— still can't have automatic indent after section. I need to force it
using « \indentation » (line 47)

— look at the end of the first page : there's a big gap. Don't know
why. It's in the middle of a sentence, and the paragraph is big after.

— at the end of the second page, third line before the end, the « dans
» is in the margin. I can't hyphenate this word. I woud prefer having
bigger white spaces rather than this.

— on page 3, before « Une horloge » I can't have indentation after
\crlf. I used a « \packed » command after empty line but it's not what
I want. I want a new line, with indentation but not a « \par »
vertical spacing.

Sorry for this 3 pages exemple. It was hard to do less (but now you
have the begining of the french translation of « Stirrings Still »
from Samuel Beckett).

Olivier.

http://nemolivier.free.fr/Soubresauts-prs-small.pdf
http://nemolivier.free.fr/Soubresauts-prs-small.tex

PS : the new firmware for the sony PRS 505 allow to use .epub files.
It's a realy good news : this is an open-source format ! A chance for
us to avoid the mp3 mess. I hope context can be used to produce them
one time.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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] greek again

2008-07-26 Thread Martin Schröder
2008/7/25 Charles P. Schaum <[EMAIL PROTECTED]>:
> Well, I can only say this: My best experiences for "out of the box"
> functionality are from Ubuntu. Like Debian, they have taken TeXlive and
> broken it up into a number of packages to allow for some installation

Ahm - has Ubuntu done anything or are they just using the wonderful
Debian packages?

> I like FreeBSD, but its ports system does not seem to have the same
> philosophy as TeXlive, or there are just too few working on it there. I
> mean, if Debian can do it, why don't the clever duckies just look at a
> few build scripts... So there you either have to use the prebuilt
> FreeBSD binaries and install it yourself or build it from source, which
> I rather like to do anyway. I haven't tried on the other BSD's.

OpenBSD has a very good TL port; AFAIK the other BSDs are catching up.

Best
   Martin
___
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] MetaPost graphics within formulas

2008-07-26 Thread Peter Münster
On Fri, Jul 25 2008, Oliver Buerschaper wrote:

> \Phi(\useMPgraphic{tetrahedral})=F_{kln}^{ijm}\,v_iv_jv_kv_l\,
> [...]
> Now if I only knew how to properly align my MetaPost figure with the  
> rest of the formula … any ideas?

\Phi\left(\vcenter{\useMPgraphic{tetrahedral}}\right)= ...

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

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

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


Re: [NTG-context] \blank[inhibit] broken ???

2008-07-26 Thread Taco Hoekwater
Hi STeffen,

Steffen Wolfrum wrote:
> ... yes, but Hans said so (see my email quoting him)!!!
> 
> What did he mean?

Perhaps he meant \inhibitblank or \blank[disable].
(guessed from the code)

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

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


Re: [NTG-context] MetaPost graphics within formulas

2008-07-26 Thread Peter Rolf
Oliver Buerschaper schrieb:
>> The bounding box of the graphic is set on the base line. So you have  
>> to
>> add some artificial depth to the graphic.
>>
>>
>> \starttext
>>
>> \startreusableMPgraphic{tetrahedral}
>> begingroup

save u;

>>  u := 10pt;
>>  draw (0,0)--(2u,0)--(u,sqrt(3)*u)--cycle;
>> draw boundingbox currentpicture withpen pensquare scaled .1;
>> endgroup;
>> \stopreusableMPgraphic
>>
>> \def\Tetrahedral{\lower5pt\hbox{\reuseMPgraphic{tetrahedral}}}% needs
>> some fiddling :)
>>
>> \startformula
>> \Phi(\Tetrahedral)=F_{kln}^{ijm}\,v_iv_jv_kv_l\,
>> \delta_{j^*nk^*}\,\delta_{l^*n^*i^*}\,\Phi(\emptyset)
>> \stopformula
>>
>> \stoptext
> 
> That's exactly what I was looking for … thanks very much!
> 
> Out of curiosity just a few questions … why do you use grouping in the  
> MetaPost code and why do you draw the bounding box explicitly? When I  
> was experimenting with your suggestion a bit I tried leaving out those  
> two commands at some point and surprisingly things still looked fine …  
> And what's the difference between \startreusableMPgraphic and  
> \startuseMPgraphic? Does caching play a role?
>

I do grouping just by habit (btw: a 'save u;' is missing). Without 
grouping your variables simply overwrite prior defined ones. With 
grouping all saved(!) variables are restored after endgroup (attention: 
don't ever forget the simicolon after endgroup). And you are right, 
grouping is not really needed in a simple context.

Coming to the bounding box; it's just for debugging. My first try was to 
'reduce' the height of the bounding box (all stuff beneath the base line 
is then drawn outside the final bounding box). But when I thought about 
subscript this was no longer an option. Anyhow, here is the code:

\startreusableMPgraphic{tetrahedral}
 begingroup
 save bb,d,u;

u := 10pt;
draw ((0,0)--(2u,0)--(u,sqrt(3)*u)--cycle) ;

 d := 0.25u; % depth
 path bb; bb:= boundingbox currentpicture;
 setbounds currentpicture to unitsquare
 xyscaled(xpart point 2 of bb,ypart point 2 of bb -d)
 yshifted d;
 draw boundingbox currentpicture withpen pensquare scaled .1;
 endgroup;
\stopreusableMPgraphic

3---2
|   |  bounding box
|   |  and it's points
0---1

The extreme points of the complete graphic determine the size of the 
bounding box. The relative position of the complete graphic (where it is 
drawn) has no influence on that. This is why a single fullcircle gives 
you the same graphic as a single unitcircle.

All your questions about the different graphic types are aswered in the 
'Metafun' manual, 'Integrated graphics' on pages 111-114.

Best wishes, Peter

> Thanks again,
> Oliver
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
> 

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

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


Re: [NTG-context] MetaPost graphics within formulas

2008-07-26 Thread Oliver Buerschaper
> The bounding box of the graphic is set on the base line. So you have  
> to
> add some artificial depth to the graphic.
>
>
> \starttext
>
> \startreusableMPgraphic{tetrahedral}
> begingroup
>   u := 10pt;
>   draw (0,0)--(2u,0)--(u,sqrt(3)*u)--cycle;
> draw boundingbox currentpicture withpen pensquare scaled .1;
> endgroup;
> \stopreusableMPgraphic
>
> \def\Tetrahedral{\lower5pt\hbox{\reuseMPgraphic{tetrahedral}}}% needs
> some fiddling :)
>
> \startformula
> \Phi(\Tetrahedral)=F_{kln}^{ijm}\,v_iv_jv_kv_l\,
> \delta_{j^*nk^*}\,\delta_{l^*n^*i^*}\,\Phi(\emptyset)
> \stopformula
>
> \stoptext

That's exactly what I was looking for … thanks very much!

Out of curiosity just a few questions … why do you use grouping in the  
MetaPost code and why do you draw the bounding box explicitly? When I  
was experimenting with your suggestion a bit I tried leaving out those  
two commands at some point and surprisingly things still looked fine …  
And what's the difference between \startreusableMPgraphic and  
\startuseMPgraphic? Does caching play a role?

Thanks again,
Oliver
___
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
___