Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 05-21-2010, 01:05 AM   #61
mh445
Enthusiast
mh445 began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Device: none
Sorry, I mixed up \chapter* with \addchap (which is only available in scrbook, the book class of KOMA-Script).

For the space above a chapter, in KOMA-Script there is the command \chapterheadstartvskip. With other packages, you'd have to change \@makechapterhead, I guess.

For questions like these, I can recommend the usegroup comp.text.tex. Start by searching their archive (http://groups.google.de/groups/searc...Acomp.text.tex), for example for the words "space before chapter. Before posting anything there (using a decent newsreader), please be aware the Usenet etiquette differs from forum rules. So read quite a bit before posting there. For instance, never post a question without a minimal working example.
mh445 is offline   Reply With Quote
Old 05-22-2010, 09:39 PM   #62
arma_virumque
Member
arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.arma_virumque can do the Funky Gibbon.
 
Posts: 14
Karma: 82814
Join Date: May 2010
Device: nook
Lightbulb current progress

close to looking terrific! This is what i have so far:

Code:
\documentclass[8pt,oneside,latin]{extbook}
\usepackage[paperwidth=88.184mm,paperheight=113.854mm,margin=2mm]{geometry}
\title{METAMORPHOSEN}
\author{P. OVIDI NASONIS}

\usepackage{polyglossia}
\setdefaultlanguage{latin}
\usepackage{xltxtra}

\usepackage{hyperref}
\hypersetup{%
pdftitle={METAMORPHOSEN},
pdfauthor={P. OVIDI NASONIS}
}

\setmainfont{DejaVu Sans}


\usepackage[tiny,compact]{titlesec}
\titleformat{\chapter}[block]{\centering\bfseries\large}{LIBER \thechapter}{0pt}{}{}
\titlespacing{\chapter}{0cm}{0cm}{\baselineskip}

\usepackage[absolute]{textpos}

\usepackage[titles]{tocloft}
\addtolength{\cftchapnumwidth}{1.5cm}
\renewcommand{\cftchappresnum}{LIBER }
\setlength\cftparskip{5pt}
\setlength\cftbeforechapskip{7pt}
\setlength\cftaftertoctitleskip{2pt}

\addto\captionslatin{%
\renewcommand\chaptername{LIBER}}

\renewcommand{\thechapter}{\Roman{chapter}}

\titleformat{\chapter}[display]
  {\bfseries\Large}
  {\fileft\MakeUppercase{\chaptertitlename} \Huge\thechapter}
  {4ex}
  {\titlerule
   \vspace{2ex}%
   \filcenter}
  [\vspace{2ex}%
   \titlerule]


\setcounter{secnumdepth}{-1}

\begin{document}
%\thispagestyle{empty}
%\begin{textblock*}{\paperwidth}(0mm,0mm)
%\noindent\includegraphics[width=\paperwidth,height=\paperheight]{ovid.jpg}
%\end{textblock*}
%\null
%\clearpage
\maketitle

\tableofcontents
\newpage

\chapter{LIBER I}
\label{sec:LIBER I}
\begin{verse}
20audierat, Tyrias olim quae verteret arces; \\
hinc populum late regem belloque superbum \\
venturum excidio Libyae: sic volvere Parcas. \\
Id metuens, veterisque memor Saturnia belli, \\
prima quod ad Troiam pro caris gesserat Argis— \\
25necdum etiam causae irarum saevique dolores \\
exciderant animo: manet alta mente repostum \\
iudicium Paridis spretaeque iniuria formae, \\
et genus invisum, et rapti Ganymedis honores. \\
His accensa super, iactatos aequore toto \\
30Troas, reliquias Danaum atque immitis Achilli, \\
\end{verse}

\chapter{LIBER II}
\label{sec:LIBER II}
\begin{verse}
20audierat, Tyrias olim quae verteret arces; \\
hinc populum late regem belloque superbum \\
venturum excidio Libyae: sic volvere Parcas. \\
Id metuens, veterisque memor Saturnia belli, \\
prima quod ad Troiam pro caris gesserat Argis— \\
25necdum etiam causae irarum saevique dolores \\
exciderant animo: manet alta mente repostum \\
iudicium Paridis spretaeque iniuria formae, \\
et genus invisum, et rapti Ganymedis honores. \\
His accensa super, iactatos aequore toto \\
30Troas, reliquias Danaum atque immitis Achilli, \\
\end{verse}

\end{document}
My experimentation with \chapter{} did not yield any surprising results. On the contrary had it just confirms that by an empty brackets NOTHING will appear in the TOC. Even more surprising, after adding \chapter{LIBER I} and \label{sec:LIBER I} would be added back to the TOC without any weird changes or error messages.

From the previous revision I made this ammendments by frabjous:

Code:
\addto\captionslatin{%
\renewcommand\chaptername{LIBER}}
Also a super trick that I got from my post at latex-community.org is the following:

Code:
\usepackage{hyperref}
\hypersetup{%
pdftitle={METAMORPHOSEN},
pdfauthor={P. OVIDI NASONIS}
}
This will add the author name and title to the metadata of the pdf document. Once you open the pdf in the NOOK, or other e-reader it will see the document as TITLE and AUTHOR rather than foo.pdf.

Lastly I changed my fonts from \usepackage[T1]{fontenc} to \setmainfont{DejaVu Sans}. Although the fonts now look fuller they are too machine like. I would love a traditional font.

Oh, the my example above is fully compilable.

thanks!
arma_virumque is offline   Reply With Quote
Advert
Old 05-22-2010, 10:00 PM   #63
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
[QUOTE=arma_virumque;923028]close to looking terrific! This is what i have so far:

Quote:
My experimentation with \chapter{} did not yield any surprising results. On the contrary had it just confirms that by an empty brackets NOTHING will appear in the TOC.
That may be true by default, but it's certainly not true necessarily. Did you try:

Code:
\usepackage[titles]{tocloft}
\addtolength{\cftchapnumwidth}{1.5cm}
\renewcommand{\cftchappresnum}{LIBER }
along with \chapter{}?

Quote:
Lastly I changed my fonts from \usepackage[T1]{fontenc} to \setmainfont{DejaVu Sans}. Although the fonts now look fuller they are too machine like. I would love a traditional font.
Did you consider:

\setmainfont{DejaVu Serif}

?

Serif fonts tend to be more natural and less machine-like than sans serif fonts.
frabjous is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Latex, PDF and the PRS-600 Dictionary s3ntient PDF 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


All times are GMT -4. The time now is 09:29 AM.


MobileRead.com is a privately owned, operated and funded community.