[Ipe-discuss] Increasing base point size

Guillaume Salagnac guillaume.salagnac at insa-lyon.fr
Thu Jun 29 09:04:29 CEST 2017


to set the base font size to 12pt, you can copy-paste the following in the "latex preamble" of your "document properties" :

\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

(via http://www.latex-community.org/forum/viewtopic.php?f=5&t=3477 )

Cheers,
-G

> Le 28 juin 2017 à 17:51, Sherif Ghali <shghali at gmail.com> a écrit :
> 
> To increase the base point size in latex to 12pt, one would start with
> 
>     \documentclass[12pt]{article}
> 
> To increase the base point size for a latex document mid-document one might add
> 
>     \fontsize{12}{12}\selectfont
> 
> to the preamble. Ref: https://tex.stackexchange.com/a/4140/9549
> 
> Since Ipe wraps in \documentclass itself, I tried using the latter method to increase the base point to 12pt, but that didn't work. Can you suggest another way?
> 
> You can see that the base point size is different by comparing the output of running
> 
>     iperender -pdf 12pt-base.ipe 12pt-base.pdf
> 
> on the ipe/xml file:
> 
> <?xml version="1.0"?>
> <!DOCTYPE ipe SYSTEM "ipe.dtd">
> <ipe version="70206" creator="Ipe 7.2.7">
> <info created="D:20170628114219" modified="D:20170628114232"/>
> <ipestyle name="letter-portrait">
> <layout paper="612 792" origin="0 0" frame="612 792"/>
> </ipestyle>
> <page>
> <layer name="alpha"/>
> <view layers="alpha" active="alpha"/>
> <path layer="alpha" stroke="black">
> 0 792 m
> 0 0 l
> 612 0 l
> 612 792 l
> h
> </path>
> <text transformations="translations" pos="192 640" stroke="black" type="label" width="67.123" height="6.815" depth="1.93" valign="baseline">Greetings, 12pt</text>
> </page>
> </ipe>
> 
> with the result of pdflatex on the file
> 
> \documentclass[12pt]{article}
> \usepackage{helvet}
> \renewcommand\familydefault{\sfdefault}
> \begin{document}
> \thispagestyle{empty}
> Greetings, 12pt
> \end{document}
> 
> The same issue arises with 11pt, but then it's harder to see that the two font sizes are not equal.
> 
> -Sherif Ghali
> 
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss



More information about the Ipe-discuss mailing list