View Single Post
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