Page MenuHomec4science

samplebook.tex
No OneTemporary

File Metadata

Created
Sat, Mar 15, 04:38

samplebook.tex

%% Test book for multipub
%%
\documentclass[12pt,a4paper,fleqn]{book}
% include multipub package and declare desired format (PRINT | EPUB | KINDLE)
% (note: cannot use package and option formalism because it breaks LateXML)
\input{multipub}
\multipub{EPUB}
% packages included here must be common to all versions, i.e. they need
% to have LateXML bindings available
\usepackage{makeidx}
\usepackage{amsmath, amssymb}
\usepackage{graphicx}
% now do target-specific includes and inits
\begin{PRINT}
\include{styles/printlayout}
\end{PRINT}
\begin{KINDLE}
\include{styles/printlayout}
\end{KINDLE}
\begin{HTML}
\include{styles/epublayout}
\end{HTML}
\begin{EPUB}
\include{styles/epublayout}
\end{EPUB}
% Here we can define some macros common to all versions. This, for instance,
% produces numberless sections that still appear in headers and TOC
\newcommand{\codasection}[1]{%
\section*{#1}%
\markright{#1}%
\addcontentsline{toc}{section}{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{secnumdepth}{3}
\makeindex
\multipubbegin
\begin{document}
\title{Test Book for PDF and EPUB}
\author{Paolo Prandoni}
\date{}
\maketitle
\frontmatter
\tableofcontents
\includefile{ch00}{chapter00}
\mainmatter
\includefile{ch01}{chapter01}
\includefile{ch02}{chapter02}
\backmatter
\printindex
\end{document}

Event Timeline