Quote:
However now I my table of contents looks like this:
Code:
I LIBER I .... page #
II LIBER II .... page #
III LIBER III .... page #
How may I make it look like this?
Code:
LIBER I .... page #
LIBER II .... page #
LIBER III .... page #
I wonder whether that's proper even. I can always look at a real latin book to consult this lol.
|
Not sure what's causing that. (I'd need to see how you're handling the \chapter commands inside you're includes.)
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
No asterisk, and nothing inside the braces. You may need to fiddle with the 1.5cm to get the width of the index entries right depending on font and how large the numbers get. That'll do the numbering for you.
Quote:
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 :-(
|
Yeah, it turns out if you use babel, you need to change "Caput" to "LIBER" like this:
Code:
\addto\captionslatin{%
\renewcommand\chaptername{LIBER}}
That'll change "Caput" to "LIBER". Again, leave the braces in \chapter{} empty, and there'll be no repetition.
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}
That'll make the chapter titles centered, just slightly larger than normal text, in bold, with a single line of separation between the chapter titles and text. See the package documentation for more info.
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.
LaTeX has commands for just about all the Unicode characters. The babel documentation has some info on producing certain Latin-specific characters easily, and just about anything you can imagine can be produced with some code from something like
The Comprehensive LaTeX symbol list (or use
DeTeXify to draw what you want and get a code.)
If you want to use unicode input for regular LaTeX or pdfLaTeX, put in:
\usepackage[utf8]{inputenc}
or perhaps:
\usepackage[utf8x]{inputenc}
Quote:
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.
|
This is probably only because you haven't loaded any OpenType fonts yet. But if it works, keep it.
Quote:
BUT, if there's a better font, by all meas let me know!! Which unicode font would look good on an e-reader?
|
I made some suggestions in
your thread at latex-community.org. But I haven't tried all of them. Font choice is highly subjective. See
Alan Wood's Unicode font pages for ideas.
Quote:
Originally Posted by arma_virumque
Do you mean turn this into:
Code:
\chapter{LIBER I}
\label{sec:LIBER I}
this?
Code:
\chapter*{LIBER I}
\label{sec:LIBER I}
That somehow gets rid of each chapter listing in the TOC entirely. However I found out tha by using \setcounter{secnumdepth}{-1} it comes out the way I want.
|
No, that's not what I intended at all. See above for that I intended.
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}%
That should put "LIBER X" into the table of contents. But I think it's much easier just to use \chapter{} with nothing inside, along with the other changes I've described, to let LaTeX do all the numbering and contents-adding.
Quote:
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?
|
See above.