05-19-2010, 02:04 AM | #46 | |
Grand Sorcerer
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
|
Quote:
I had no idea how to make a black page at the time, so, I simply used a black image that I showed full screen... That's the joy () of finding things out yourself, you have to do everything the hard way and only find out later there are easier ways of doing things |
|
05-19-2010, 04:38 AM | #47 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I thought the same, but actually 3x4 are the only dimensions that yield a 5 diagonal, if the aspect ratio is 3:4. And if the pixel count is 600x800 and the pixels are square, the aspect ratio is 3:4
|
Advert | |
|
05-19-2010, 07:56 AM | #48 | |
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Quote:
Or it could be that some small part of the screen is reserved by the device itself, like the Sony, for example, whose screen is 9cm x 12cm (90mm x 120mm), but it's best to use 88.184mm x 113.854mm in LaTeX because that's the display left over for a PDF. Last edited by frabjous; 05-19-2010 at 08:03 AM. |
|
05-19-2010, 08:53 AM | #49 |
Grand Sorcerer
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
|
The aspect ration of the Mini is 600x800. And yes, that's what I think it is. Because my PDF files won't write in certain areas where I do have visual in mobi, for example.
|
05-19-2010, 11:06 AM | #50 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The fact that the Gen3 screen is 600x800 and 6 inches, and that most (all?) e-ink screens seem to have the same specs. And, of course, the fact that arma_virumque wrote "Display 600 x 800 pixel, 6 inch E Ink display", which is what I was replying to
|
Advert | |
|
05-19-2010, 03:02 PM | #51 |
Member
Posts: 14
Karma: 82814
Join Date: May 2010
Device: nook
|
small progress
hi again,
please bear with me I am ultra-newbie with LaTeX. The reason I took this up is because the books that I want although available they are in html or plain text format. These are latin texts, project gutemberg has some epubs but their are not the whole collection. Books by latin authors without transliteration are sold by very few publishers and they are mad expensive, to the tune of $60 apiece. So far I have had relative success with this: Code:
\documentclass{book}
\usepackage[paperwidth=88.184mm,paperheight=113.854mm,margin=2mm]{geometry}
\title{Aeneidos}
\author{Vergilius Maron}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage[tiny,compact]{titlesec}
\usepackage[absolute]{textpos}
\setcounter{secnumdepth}{0}
\usepackage[8pt]{extarticle}
\usepackage{savetrees}
\begin{document}
\thispagestyle{empty}
\begin{textblock*}{\paperwidth}(0mm,0mm)
\noindent\includegraphics[width=\paperwidth,height=\paperheight]{Vergilius.jpg}
\end{textblock*}
\null
\clearpage
\maketitle
\tableofcontents
\chapter{LIBER I}
\label{sec:LIBER I}
...
vi superum saevae memorem Iunonis ob iram; \\
5multa quoque et bello passus, dum conderet urbem, \\
inferretque deos Latio, genus unde Latinum, \\
...
1.- How can I tweak the spacing between lines in the table of contents? The next problem has to do with this: Code:
\chapter{LIBER I}
\label{sec:LIBER I}
2.- How can I make 'chapter' disappear and just have liber? thanks, getting there little by little. |
05-19-2010, 09:01 PM | #52 |
Member
Posts: 14
Karma: 82814
Join Date: May 2010
Device: nook
|
toc solved
I solved my first problem on the TOC with the following in the pre-amble:
Code:
\usepackage{tocloft} \setlength\cftparskip{-5pt} \setlength\cftbeforechapskip{10pt} \setlength\cftaftertoctitleskip{2pt} |
05-19-2010, 10:37 PM | #53 |
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
The argument to \chapter is supposed to be the title of the chapter. If your chapters have no title, leave that blank.
Code:
\chapter{} Code:
\chapter*{} The word used in the title of the chapters is stored in a command called "\chaptername". You can change this like so: Code:
\renewcommand{\chaptername}{LIBER} Code:
\renewcommand{\thechapter}{\Roman{chapter}} In the document is in Latin, you should load the hyphenation patterns for Latin. I'll check to see if I can figure out how this is done. EDIT: It's Code:
\usepackage[latin]{babel} (BTW, this changes the name of the chapters to "Caput", but you can still change it to LIBER as described above; just do that after loading babel.) Consider adding: Code:
\sloppy There are some other funny things about your code. The packages: Code:
\usepackage{fontspec} \usepackage{xunicode} \usepackage{xltxtra} Code:
\usepackage[T1]{fontenc} Feel free to visit us at the forums at latex-community.org for more help. I'm on there a lot, as are many who know more than I. Last edited by frabjous; 05-19-2010 at 10:55 PM. |
05-20-2010, 04:37 AM | #54 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
And when you start to feel that you want to change too many things and load lots of packages (to format headers, change the page layout, table of contents, etc.), consider changing the class to "memoir" and use all the options it provides instead.
|
05-20-2010, 02:48 PM | #55 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Mar 2010
Device: none
|
As an alternative to the momoir class, I can recommend the KOMA-Script bundle. It's manual does not only describe functions, but you learn quite a bit of typography by reading it (http://www.tex.ac.uk/tex-archive/mac...t/scrguien.pdf).
|
05-20-2010, 03:18 PM | #56 |
Member
Posts: 14
Karma: 82814
Join Date: May 2010
Device: nook
|
partly swell
hi again,
I made an account on latex-community.org already, that place looks more hardcore. This is now how I have it so far. Code:
\documentclass[8pt]{extbook}
\usepackage[paperwidth=88.184mm,paperheight=113.854mm,margin=2mm]{geometry}
\title{Aeneidos}
\author{Vergilius Maron}
\usepackage[latin]{babel}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage[tiny,compact]{titlesec}
\usepackage[absolute]{textpos}
\usepackage{tocloft}
\setlength\cftparskip{-5pt}
\setlength\cftbeforechapskip{10pt}
\setlength\cftaftertoctitleskip{2pt}
\renewcommand\chaptername{LIBER}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\contentsname}{Contenidos}
\setcounter{secnumdepth}{0}
\begin{document}
\thispagestyle{empty}
\begin{textblock*}{\paperwidth}(0mm,0mm)
\noindent\includegraphics[width=\paperwidth,height=\paperheight]{Vergilius.jpg}
\end{textblock*}
\null
\clearpage
\maketitle
\tableofcontents
\newpage
\include{vergilius_liber1}
\include{vergilius_liber2}
\include{vergilius_liber3}
\include{vergilius_liber4}
\include{vergilius_liber5}
\include{vergilius_liber6}
\include{vergilius_liber7}
\include{vergilius_liber8}
\include{vergilius_liber9}
\include{vergilius_liber10}
\include{vergilius_liber11}
\include{vergilius_liber12}
\end{document}
However now I my table of contents looks like this: Code:
I LIBER I .... page # II LIBER II .... page # III LIBER III .... page # Code:
LIBER I .... page # LIBER II .... page # LIBER III .... page # The next problem is that now, well, I had this before as well, the beginning of each chapter has Caput I and Liber I. Taking half the page :-( I am using xelatex because in certain situations there are unicode latin characters, so I think \usepackage{fontspec} has to stay. I've tried without \usepackage[T1]{fontenc} and it distorts the text in the e-reader. With both I can match more or less the small font in native e-pub format of the NOOK. BUT, if there's a better font, by all meas let me know!! Which unicode font would look good on an e-reader? thanks!! |
05-20-2010, 04:13 PM | #57 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Mar 2010
Device: none
|
As mentioned before, use \chapter*{} in order to avoid automatic chapter numbers.
|
05-20-2010, 08:07 PM | #58 | |
Member
Posts: 14
Karma: 82814
Join Date: May 2010
Device: nook
|
incorrect
Quote:
Code:
\chapter{LIBER I} \label{sec:LIBER I} Code:
\chapter*{LIBER I} \label{sec:LIBER I} One more gripe here is that the entry on each chapter takes half page. Is there a way to center the title and push it to the top of the page? thanks |
|
05-21-2010, 12:06 AM | #59 | ||||||
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Quote:
Here's how I'd handle it. Since you're already suing tocloft, just add: \addtolength{\cftchapnumwidth}{1.5cm} \renewcommand{\cftchappresnum}{LIBER } and then the chapter commands should just be Code:
\chapter{} Quote:
Code:
\addto\captionslatin{% \renewcommand\chaptername{LIBER}} To make it take up less of the page, since you're using titlesec, use it to customize the title spacing and format. Here's just a quick suggestion: Code:
\usepackage[compact]{titlesec} \titleformat{\chapter}[block]{\centering\bfseries\large}{LIBER \thechapter}{0pt}{}{} \titlespacing{\chapter}{0cm}{0cm}{\baselineskip} Add the titles option to tocloft if you want the above to apply to the title of the TOC too. Code:
\usepackage[titles]{tocloft} Code:
I am using xelatex because in certain situations there are unicode latin characters, so I think \usepackage{fontspec} has to stay. If you want to use unicode input for regular LaTeX or pdfLaTeX, put in: \usepackage[utf8]{inputenc} or perhaps: \usepackage[utf8x]{inputenc} Quote:
Quote:
Quote:
If you do want to go with \chapter*{...}, you can use the \addcontentsline command to put things back into the table of contents. But you have to resort to some trickery to make it play nice with hyperref... e.g.,: Code:
\clearpage% \phantomsection% \addcontentsline{toc}{chapter}{LIBER X}% \chapter*{LIBER X}% Quote:
|
||||||
05-21-2010, 12:49 AM | #60 |
Member
Posts: 14
Karma: 82814
Join Date: May 2010
Device: nook
|
thanks a lot!
whoa!! thanks a lot for your throughly reply. Obviously you know your stuff as you show me several ways to achieve basically the same.
Right outta the bat this: Code:
\titleformat{\chapter}[block]{\centering\bfseries\large}{LIBER \thechapter}{0pt}{}{} \titlespacing{\chapter}{0cm}{0cm}{\baselineskip} I am still evaluating the lenghty post, I have to try and see what does get the results in the cleanest way, specially the caput/chapter part. again thanks a lot! ps.: oh, now that you mention you are the same over LaTeX forums :-D ps2.: so far looking good on my NOOK this pdf, except for the font problem. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Latex, PDF and the PRS-600 Dictionary | s3ntient | 4 | 11-06-2009 09:35 AM | |
Chaîne complète d'édition : HTML, LaTeX, PDF, EPUB à venir. | Randy11 | Software | 2 | 04-05-2009 11:42 AM |
PDF Generated with LaTeX for the iLiad | Hadrien | iRex | 17 | 07-25-2008 09:59 AM |
latex template for sony reader pdf | technicolor | Sony Reader | 10 | 07-25-2008 09:51 AM |
PDF creation from Latex using CJK fonts | alanine | iRex | 0 | 10-13-2007 11:45 PM |