Indenting / small paper size / strange paragraph cutting
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
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
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
2008/7/27 Taco Hoekwater
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
2008/7/26 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]}.
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
participants (3)
-
Aditya Mahajan
-
Olivier Guéry
-
Taco Hoekwater