Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105174364
samplebook.tex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Mar 15, 04:38
Size
1 KB
Mime Type
text/x-tex
Expires
Mon, Mar 17, 04:38 (2 d)
Engine
blob
Format
Raw Data
Handle
24884336
Attached To
R2653 epfl
samplebook.tex
View Options
%% 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
Log In to Comment