[Ipe-discuss] Changing the Font Size

Otfried Cheong otfried at ipe.airpost.net
Mon Jun 17 15:20:08 CEST 2013


> I'm using Ipe for the graphics in my thesis which uses the classicthesis
> package. All in all, the document has a preamble similar to this:
>
> \documentclass[fontsize=11pt]{scrreprt}
> \usepackage[T1]{fontenc}
> \usepackage{mathpazo}
>
> This results in \normalsize being 10.95pt, \small being 10 pt, etc. How
> can I set those values for Ipe? Its \normalsize is 10pt, \small is 9pt,
> etc. I checked the basic style sheet, and found the textstrech
> attributes -- is this the correct way to go, or is there a better way to
> set the font size?

In such a situation, the best would be to reuse the same style file. It 
redefines the meaning of the Latex commands \normalsize, \large, \small, 
etc., so Ipe sizes will automatically show up as you expect.

In this case this is not so easy, since the fontsize is selected by the 
document class, and Ipe is hardwired to use the "article" document 
class. (I should probably change that...)  So you need to dig a little 
inside the scrreprt.cls file, until you realize that it inputs 
"scrsize11pt.clo" to change the fontsizes.   So all you have to do is to 
put this into the preample (Shift-Ctrl+P in Ipe):

\makeatletter
\input{scrsize11pt.clo}
\makeatother
\usepackage{mathpazo}

If you use this in many Ipe figures, it makes sense to make a small Ipe 
stylefile, say "koma11.isy", like this:

<ipestyle name="koma11">
<preamble>
\makeatletter
\input{scrsize11pt.clo}
\makeatother
\usepackage{mathpazo}
</preamble>
</ipestyle>

and then use this style file in your figures (instead of setting the 
Latex preamble manually).

Cheers,
  Otfried




More information about the Ipe-discuss mailing list