Discussion:
Changing the Font Size
Rainer Findenig
2013-06-17 11:44:02 UTC
Permalink
Hi all,

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?

Thanks,
Rainer.

PS: This is basically the same question as
http://lists.science.uu.nl/pipermail/ipe-discuss/2008-December/000776.html,
which unfortunately was not answered back then...
Otfried Cheong
2013-06-17 13:20:08 UTC
Permalink
Post by Rainer Findenig
I'm using Ipe for the graphics in my thesis which uses the classicthesis
\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
Rainer Findenig
2013-06-17 14:43:33 UTC
Permalink
Post by Otfried Cheong
<ipestyle name="koma11">
<preamble>
\makeatletter
\input{scrsize11pt.clo}
\makeatother
\usepackage{mathpazo}
</preamble>
</ipestyle>
Works great, thanks!
Moshe Idan
2014-10-12 16:44:23 UTC
Permalink
Hi,

In reply to a query entitled "Changing the Font Size", Otfried's reply (dated June 17, 2013) was to include the preamble:

\makeatletter
\input{scrsize11pt.clo}
\makeatother

In MikTeX 2.9 scrsize11pr.clo does not exist. Now there are files size10.clo, size11.clo, and size12.clo. When I tried to used the preamble:

\makeatletter
\input{size12.clo}
\makeatother

I got tons of LaTeX errors of the form:

! LaTeX Error: Command \small already defined.
Or name \end... illegal, see p.192 of the manual.

Basically it means that size12.clo defines all the font sizes which are already defined and hence cannot be re-defined using the regular \newcommand command. (By the way, it uses \renewcommand for the normal size, hence only the other font sizes get errors.)

So the question is how to change the default font size from the default, which I assume is 10 pt.

Thanks,
Moshe
Guillaume Salagnac
2014-10-13 07:49:42 UTC
Permalink
http://www.latex-community.org/forum/viewtopic.php?f=5&t=3477 suggests:

\makeatletter
\renewcommand*\@ptsize{2}
\let\small\relax
\let\footnotesize\relax
\let\scriptsize\relax
\let\tiny\relax
\let\large\relax
\let\Large\relax
\let\LARGE\relax
\let\huge\relax
\input{size1\@ptsize.clo}
\makeatother

which works for me.

Cheers,
-G
Post by Otfried Cheong
Hi,
\makeatletter
\input{scrsize11pt.clo}
\makeatother
\makeatletter
\input{size12.clo}
\makeatother
! LaTeX Error: Command \small already defined.
Or name \end... illegal, see p.192 of the manual.
Basically it means that size12.clo defines all the font sizes which are already defined and hence cannot be re-defined using the regular \newcommand command. (By the way, it uses \renewcommand for the normal size, hence only the other font sizes get errors.)
So the question is how to change the default font size from the default, which I assume is 10 pt.
Thanks,
Moshe
_______________________________________________
Ipe-discuss mailing list
http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
Moshe Idan
2014-10-13 08:18:00 UTC
Permalink
Perfect, it works. I was hoping for something simpler, but since you do it once, no big deal.
Thanks,
M
Post by Otfried Cheong
\makeatletter
\let\small\relax
\let\footnotesize\relax
\let\scriptsize\relax
\let\tiny\relax
\let\large\relax
\let\Large\relax
\let\LARGE\relax
\let\huge\relax
\makeatother
which works for me.
Cheers,
-G
Post by Otfried Cheong
Hi,
\makeatletter
\input{scrsize11pt.clo}
\makeatother
\makeatletter
\input{size12.clo}
\makeatother
! LaTeX Error: Command \small already defined.
Or name \end... illegal, see p.192 of the manual.
Basically it means that size12.clo defines all the font sizes which are already defined and hence cannot be re-defined using the regular \newcommand command. (By the way, it uses \renewcommand for the normal size, hence only the other font sizes get errors.)
So the question is how to change the default font size from the default, which I assume is 10 pt.
Thanks,
Moshe
_______________________________________________
Ipe-discuss mailing list
http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
Loading...