![]() |
#1 |
Feedbooks.com Co-Founder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
[Feedbooks.com] PDF Generated with LaTeX for the iLiad
Hello,
I've already made a similar post on the Sony Reader forum, but I also need the advice of those who own an iRex iLiad. I've been working on a project for the last 2 months, trying to create something really usefull for the Sony reader and all the other e-ink devices. I've spent quite some time online, and found many e-books available, mostly books in the public domain, but I wasn't really satisfied by their presentation or the format being used. This new project is based on LaTeX, an old technology, but still the best thing around when you need to create scientific papers for example. Using this website (I used Ruby on Rails for this), people will be able to download PDF files (A4, Sony Reader and Custom PDF) first, but it could be any kind of files in the near future as long as it's supported by LaTeX. Unlike most websites, we don't store books as files, we store them in a database, separated into parts/chapters/sections. This way we can create table of contents for these books too, or make a much nicer presentation overall. The website should be divided into 3 main sections: - Books in the public domain: the usual stuff, but with books generated using LaTeX. We'll provide a way for people to send books for this section of the website, and then check if these books really are in the public domain before publishing them (a bit like wikisource ?). - Books written by you: using a simple Ajax interface, anyone will be able to send their own book. Books will be generated using LaTeX too, and this section will have most of those trendy web 2.0 things like tags. - Newspaper: Should come in 2 flavours, rss generated and user generated. It will be possible to create your own newspaper using rss feeds and then share it with anyone on the website. You're a complete newbie and you don't know what RSS feeds are for ? Not a problem, just click on one of those popular rss generated newspaper that someone created for you. Using an ajax interface, people will also be able to write articles and create their own fanzine, publish their views on the world etc... It's like blogging but for e-newspaper (correct name for this ?) We'll begin with content in english and french, but everything is unicode, website and LaTeX included, so it will be possible to write or read books/newspapers in any language. I'm still working really hard on this project, but I guess it will be ready for beta near mid december. I'll receive my sony reader tomorrow, so I haven't generated pdf files for it yet. Included with this post, there's a sample using basic LaTeX and A4 (this is generated using my website). I've just received the Sony Reader, but I don't think I'll own an iRex iLiad before a few months, yet I'd like to add support for this reader on my website. It'll be possible for anyone to create custom PDF files and save the template, but I'd like to give the possibility for those using the iLiad to download books, without going through this. Which size for the books are you using on the reader ? Is A4 possible on the iLiad unlike the Sony Reader (it's possible but not really easy to read on this reader) ? If you're interested in this project, here's the #1 demo, on how anyone can create a book with this website: English: http://www.youtube.com/watch?v=2o-66_ZxTR4 French/Français: http://www.dailymotion.com/Feedbooks...ooks-demo-1-fr Last edited by Hadrien; 01-24-2007 at 07:22 PM. |
![]() |
![]() |
![]() |
#2 |
Pac-Man caught my iLiad.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
I use
Code:
\usepackage[paperwidth=122.0mm,paperheight=150.0mm]{geometry} |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2006
Device: Nokia 770/iLiad/e815
|
I use the same dimensions as yokos.
|
![]() |
![]() |
![]() |
#4 | |
Addict
![]() ![]() Posts: 222
Karma: 110
Join Date: Jun 2006
Location: Malmo, Sweden
Device: iLiad, Sony PRS-505, Kindle Paperwhite & Oasis
|
Quote:
Width = 29.1 pc, height = 35.4 pc seems to be fairly close. But you don't really want to do iLiad and Sony formatting separately -- at least not if you are looking for quality results. You only get two books to proofread for bad hyphenations, widows, etc. I suspect it would be better to find a mean page size, and use that for both formats. (Better, that is, in the sense of least wasteful of time in proofing.) After looking over the Doyle title: You really want to keep page sizes down to something much closer to pocket book size. A4 is impossible to read, even if printed, if you let the page size dictate the line length. Even A5 can be pretty bad. And try to avoid Type 3 fonts -- they contain no hinting, and are generally rather useless in low resolution. (I even suspect some T3 typefaces to be bitmapped fonts, barely covered by PostScript format -- and they work even worse.) Last edited by ath; 12-01-2006 at 02:19 PM. |
|
![]() |
![]() |
![]() |
#5 | |
Feedbooks.com Co-Founder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
Quote:
The main problem with having a single size for both the Sony Reader and iRex iLiad, is that I'm not sure it is really possible to make something good looking for BOTH at the same time. The Sony Reader has quite a few problems with scaling and margins when you zoom in, using a PDF file. All the books are generated online so I can easily generate different sizes and put them in cache (less things to generate), yet still offer to generate custom PDF for those who need something different. I'll change a few things within my templates and post a version sized to what Yokos indicated, and using Bookman instead of T1, we'll see if it's get better... Edit: First test, room for few or many improvements ? Last edited by Hadrien; 12-01-2006 at 02:47 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Feedbooks.com Co-Founder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
Quote:
\tolerance=200 \setlength{\emergencystretch}{2em} I don't have any issue anymore, at least with fiction books. I'll have to try with scientific papers where there's a lot of math formulas, to be sure that it'll work too. |
|
![]() |
![]() |
![]() |
#7 |
Feedbooks.com Co-Founder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
Just released the beta: http://beta.feedbooks.com
The new topic for it is: https://www.mobileread.com/forums/sho...?threadid=9165 |
![]() |
![]() |
![]() |
#8 |
Feedbooks.com Co-Founder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
Well... we're getting much closer from something final for the PDF generation.
I've just made a PDF for the iLiad with the fonts available for the moment in 2 different sizes. Right now the template for the iRex iLiad on Feedbooks is: Times, sized 12 We need your advice on the fonts, the most popular one will be used as the new template for the iLiad. Which one is the best looking font for you ? |
![]() |
![]() |
![]() |
#9 | |
Addict
![]() ![]() Posts: 222
Karma: 110
Join Date: Jun 2006
Location: Malmo, Sweden
Device: iLiad, Sony PRS-505, Kindle Paperwhite & Oasis
|
Quote:
It is also a question if typeface supports the full character set of the books you want to produce -- if it doesn't, it's not a question of how popular it is: it's simply not up to the job. |
|
![]() |
![]() |
![]() |
#10 | |
Feedbooks.com Co-Founder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
мокрец
![]() Posts: 52
Karma: 28
Join Date: Jan 2007
Location: Israel
Device: palm, iliad
|
I kept generating the PDF via
latex: tex -> dvi dvipdfm: dvi -> pdf and all was good and dandy with my output PDFs. However, now I am trying to format an article which has Metapost-produced PS figures inside, and thus I must go via the dvips: dvi->ps ps2pdf: ps->pdf (or maybe dvipdf: dvi->pdf) route. Unfortunately, whether I do it this way, or add a -D160 option to dvips/dvipdf to change the DPI accordingly to the iliad's DPI, the letters look "jumping" in a line on the Iliad, with a +-1px fuzz relative to the baseline and non-even vertical lines -- +-1px in width as well. Ugly to the extreme. dvips -D160 also causes the following gripes on the output: kpathsea: Running mktexpk --mfmode / --bdpi 160 --mag 1+0/160 --dpi 160 ecrm1200 mktexpk: Mismatched mode ljfour and resolution 160; ignoring mode. mktexpk: Can't guess mode for 160 dpi devices. mktexpk: Use a config file, or update me. kpathsea: Appending font creation commands to missfont.log. dvips: Font ecrm1200 at 160 not found; scaling 600 instead. dvips: Such scaling will generate extremely poor output. (repeated for several fonts used by the document). Has anybody found a way around that? V |
![]() |
![]() |
![]() |
#12 | |
Feedbooks.com Co-Founder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
мокрец
![]() Posts: 52
Karma: 28
Join Date: Jan 2007
Location: Israel
Device: palm, iliad
|
I'm talking about whatever default is used by latex for T1, with whatever is dragged in by hyperref. According to the logs, this means mostly
T1/cmr/m/n OML/cmm/m/it OMX/cmex/m/n U/cmr/m/n OMS/cmsy/m/n and PD1/pdf/m/n (the latter, IIUC, needed for the hyperref bookmarks). |
![]() |
![]() |
![]() |
#14 |
iLiad freak
![]() ![]() ![]() Posts: 339
Karma: 243
Join Date: Apr 2006
Location: Mallorca, Spain
Device: iRex iLiad
|
Hi,
I use Palatino at size 10 for my pdf's, which is a normal paperbook size (I compared a printed book to my iLiad), but it might be too small for some; and to make the line lengths the right size, I use wide-ish margins left and right. |
![]() |
![]() |
![]() |
#15 |
мокрец
![]() Posts: 52
Karma: 28
Join Date: Jan 2007
Location: Israel
Device: palm, iliad
|
OK, I found a solution to my problem.
It turns out that the ec fonts that get embedded due to the \usepackage[T1]{fontenc} are not scalable in the default setup; one has to follow it up with a \usepackage{ae} and then it all works, also the PDFs get significantly smaller. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF ebooks generated by ABC Amber LIT | weeziepepper | 17 | 01-23-2014 07:29 PM | |
LaTeX, a way to PDF | Sweetpea | Workshop | 62 | 05-22-2010 10:00 PM |
LaTeX style for the Iliad | sigi | iRex | 4 | 05-20-2010 01:37 PM |
Making PDFs for the iliad using LaTeX (with LyX) | Antartica | iRex | 17 | 05-20-2010 01:35 PM |
Simple iliad cutting latex file for long page. | harpum | iRex | 2 | 02-10-2007 12:53 AM |