ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Indenting / small paper size / strange paragraph cutting
@ 2008-07-26 19:30 Olivier Guéry
  2008-07-26 20:11 ` Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Olivier Guéry @ 2008-07-26 19:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Indenting / small paper size / strange paragraph cutting
  2008-07-26 19:30 Indenting / small paper size / strange paragraph cutting Olivier Guéry
@ 2008-07-26 20:11 ` Aditya Mahajan
  2008-07-27 12:01   ` Taco Hoekwater
  2008-07-27 19:27   ` Olivier Guéry
  0 siblings, 2 replies; 5+ messages in thread
From: Aditya Mahajan @ 2008-07-26 20:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1714 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Indenting / small paper size / strange paragraph cutting
  2008-07-26 20:11 ` Aditya Mahajan
@ 2008-07-27 12:01   ` Taco Hoekwater
  2008-07-27 19:35     ` Olivier Guéry
  2008-07-27 19:27   ` Olivier Guéry
  1 sibling, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2008-07-27 12:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Aditya Mahajan wrote:
> 
>> — 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.

That's because of the penalty for pages ending with a hyphen. At the
page size of an ebook, you are better off with

   \brokenpenalty \zerocount

>> — 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.

In other words, you are lying. :-)

   \def\fakepar{\begingroup\parskip0pt\par\dogotopar{\indent\endgroup}}

and then

    Dans l’arrière pays.\fakepar

    Une horloge ...

does what you want, but it doesn't deserve a price for elegance either.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Indenting / small paper size / strange paragraph cutting
  2008-07-26 20:11 ` Aditya Mahajan
  2008-07-27 12:01   ` Taco Hoekwater
@ 2008-07-27 19:27   ` Olivier Guéry
  1 sibling, 0 replies; 5+ messages in thread
From: Olivier Guéry @ 2008-07-27 19:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/7/26 Aditya Mahajan <adityam@umich.edu>:
> 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]}.


It works great ! Thank's. Sad that we have to use a « force » command.

>> — 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]

It works too \o/.
Sad again. Why, when I say « always » I can't have this feature ?

>> — 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]

Again, it was the trick (and I should have found this one by myself…).
It works too with « tolerant ».

Thank's a lot,
Olivier.

-- 
[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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Indenting / small paper size / strange paragraph cutting
  2008-07-27 12:01   ` Taco Hoekwater
@ 2008-07-27 19:35     ` Olivier Guéry
  0 siblings, 0 replies; 5+ messages in thread
From: Olivier Guéry @ 2008-07-27 19:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/7/27 Taco Hoekwater <taco@elvenkind.com>:
> Aditya Mahajan wrote:
>>
>>> — 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.
>
> That's because of the penalty for pages ending with a hyphen. At the
> page size of an ebook, you are better off with
>
>   \brokenpenalty \zerocount

That was it. Strange, I had to put this after « \starttext » to get it run.

>>> — 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.
>
> In other words, you are lying. :-)
>
>   \def\fakepar{\begingroup\parskip0pt\par\dogotopar{\indent\endgroup}}
>
> and then
>
>    Dans l'arrière pays.\fakepar
>
>    Une horloge ...
>
> does what you want, but it doesn't deserve a price for elegance either.

I'm totally right with you. I tried to did this because it's the way I
find it on the paper book. But it's quite hugly and strange.
Your trick is the good one.

Sadly S. Beckett books are still under copyright, but I can promis
that the result is quite perfect.

Cheers,
Olivier.


-- 
[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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-27 19:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-26 19:30 Indenting / small paper size / strange paragraph cutting Olivier Guéry
2008-07-26 20:11 ` Aditya Mahajan
2008-07-27 12:01   ` Taco Hoekwater
2008-07-27 19:35     ` Olivier Guéry
2008-07-27 19:27   ` Olivier Guéry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).