[Ipe-discuss] Default preamble

Johan Ingvast ingvast at md.kth.se
Fri Dec 9 10:40:42 CET 2005


Nikolaus Rath wrote:
> Is it possible to somehow specify a default preamble which is then
> used for every new document?
Sure, you put it into a stylesheet and then have the stylesheet automatically 
loaded when you create a new document. To make it automatically loaded you 
specify it under Help->Preferences.
An example of a stylesheet with a preamble follows

<ipestyle name="preamble-report">
<preamble>
\renewcommand{\encodingdefault}{T1}
\usepackage{setspace}
\setstretch{0.7}
\usepackage{nicefrac}
\renewcommand{\mathbf}[1]{\mbox{ \boldmath$\!\!#1$\unboldmath}}
\newcommand{\tsc}[1]{\textit{\scriptsize{#1}}}
\newcommand{\WarpStyle}[1]{\textsc{#1}}
\newcommand{\warp}{\WarpStyle{WARP}}
\newcommand{\rb}{\WarpStyle{Warp1}}
\newcommand{\pvt}{PVT}
\newcommand{\pvtlike}{pvt-like}
\newcommand{\nv}{\ensuremath{n_v}}
\newcommand{\nt}{\ensuremath{n_t}}
\newcommand{\nts}{\ensuremath{n_t^*}}
</preamble>
</ipestyle>


/johan



More information about the Ipe-discuss mailing list