Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104934996
printlayout.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
Thu, Mar 13, 12:04
Size
3 KB
Mime Type
text/x-tex
Expires
Sat, Mar 15, 12:04 (2 d)
Engine
blob
Format
Raw Data
Handle
24883798
Attached To
R2653 epfl
printlayout.tex
View Options
%% definitions of page layout for PRINT version
%% The following macros affect the rendering of sections and other
%% environments and they will have to be redefined for all other
%% styles such as EPUB
%% exercises, solutions, examples
%
\usepackage{amsthm}
\theoremstyle{definition}
% to specify an inline title use \begin{exercise}\pstyle{title text}
\newtheorem{exercise}{\normalfont\normalsize\sffamily\bfseries Exercise}[chapter]
\newtheorem*{solution}{\normalfont\normalsize\sffamily\bfseries Solution}
\newtheorem{example}{\normalfont\normalsize\sffamily\bfseries Example}[chapter]
\def\extitle#1{{\normalfont\normalsize\sffamily\bfseries #1.\ }}
%% this is used for end-of-chapter sections (further reading, appendices, etc)
%% In the PRINT version we change the graphical appearance of section titles
%%
%% numbered sections: gray rounded box with black text (see later for \sectionbox)
\def\normalbanner{\sectionbox{gray!80}{black}{\thesection\hspace{1em}}}
%% unnumbered sections: darkgray rounded box with white text
\def\codabanner{\sectionbox{darkgray}{white}{}}
\def\begincoda{\titleformat{\section}{}{}{0pt}{\codabanner}}
\def\endcoda{\titleformat{\section}{}{}{0pt}{\normalbanner}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% In print layout we can compile the pstricks figures directly:
\usepackage{pstricks}
\usepackage{dsptricks,dspfunctions,dspblocks}
%% fonts
\usepackage{avant}
\usepackage{courier}
\usepackage[utopia]{mathdesign}
\usepackage{titlesec}
\usepackage[parfill]{parskip}
%% postscript macros for section headings
% #1: background color
% #2: foreground color
% #3: section heading (either \thesection or nothing)
% #4: section title
\def\sectionbox#1#2#3#4{%
\psframebox*[cornersize=absolute,linearc=1mm,framesep=2mm,fillcolor=#1]{%
\parbox{\dimexpr\textwidth-4mm}{%
\centering\parbox{\dimexpr\textwidth-4em}{%
\color{#2}\normalfont\Large\sffamily\bfseries#3#4}}}}
%% titles
\titleformat{\chapter}[display]{\normalfont\huge\sffamily\filcenter}%
{\large\chaptertitlename\ \thechapter}{20pt}{\bfseries\huge}
%% modified section headings for normal sections
\titleformat{\section}{}{}{0pt}{\normalbanner}
%% subsections & co.
\titleformat{\subsection}{\normalfont\large\sffamily\bfseries}{\thesubsection}{1em}{}
\titleformat{\subsubsection}{\normalfont\normalsize\sffamily\bfseries}{}{1em}{}
\titleformat{\paragraph}[runin]{\normalfont\normalsize\sffamily\bfseries}{}{1em}{}
%% headers
%
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{{\thechapter \ -- \ #1}}{}}
\renewcommand{\sectionmark}[1]{\markright{{\thesection \ -- \ #1}}}
\fancyhead[LE,RO]{\sffamily\thepage}
\fancyhead[RE]{\sffamily\slshape\leftmark}
\fancyhead[LO]{\sffamily\slshape\rightmark}
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%% Table of contents
%
\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\huge\bfseries\sffamily}
\renewcommand{\cftchapfont}{\large\bfseries\sffamily}
\renewcommand{\cftsecfont}{\sffamily}
\renewcommand{\cftsubsecfont}{\sffamily}
\renewcommand{\cftchappagefont} {\sffamily}
\renewcommand{\cftsecpagefont}{\sffamily}
\renewcommand{\cftsubsecpagefont}{\sffamily}
Event Timeline
Log In to Comment