Graphics, Figures & TablesPSTricks | Changing font size

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

PSTricks | Changing font size

Post by niles »

Hi

I have the following code generated for me by a script

Code: Select all

\documentclass[a4paper, 8pt]{article}
\usepackage{pstricks, pst-node, pst-plot, pst-circ}
\usepackage{moredefs}
\usepackage[per-mode=symbol, exponent-product = \cdot, alsoload=hep, range-units=single, tophrase={--}, separate-uncertainty]{siunitx}
\usepackage[%
    paperwidth = 9.704147cm, % add 0.5%
    paperheight= 3.545027586cm, % add 0.5%
    lmargin    = -5.25mm, % do not know why this offset is needed.
    rmargin    = 0mm, %
    tmargin    = 0mm, %
    bmargin    = 0mm, %
    ]{geometry}
\begin{document}

% Global Parameters that can be changed:
\providelength{\plotwidth}           \setlength{\plotwidth}{10cm}% width of the axes only
\providelength{\LineWidth}           \setlength{\LineWidth}{0.5pt}%\newrgbcolor{GridColor}{0.8 0.8 0.8}%




% Begin Figure:-------------------------------------------
\psset{xunit=0.055556\plotwidth,yunit=0.025000\plotwidth}%
%\begin{pspicture}(-1.824885,-3.494253)(18.331797,16.735632)%
\begin{pspicture}(-1.824885,-0.494253)(14.331797,12.735632)%


% Draw Axes: ----



\psline[linewidth=\LineWidth]{->}(0,1)(13.5,1)

{
\rput[t]{0}(4.4,0.70){
\begin{tabular}{c}
\tiny {\SI{0}{\milli\meter}}\\
\end{tabular}
}}

\end{pspicture}%

\end{document}
I would like to be able to change the font size, but regardless of using 10pt, 15pt or 20pt, the font stays the same. I can change it with

Code: Select all

\tiny
\small
...
but the "jump" from one size to the other is too large for me. Is there no way to change the font size "continuously"?

Best,
Niles.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

PSTricks | Changing font size

Post by CrazyHorse »

niles wrote: I have the following code generated for me by a script
...
I would like to be able to change the font size, but regardless of using 10pt, 15pt or 20pt, the font stays the same. I can change it with

Code: Select all

\tiny
\small
...
but the "jump" from one size to the other is too large for me. Is there no way to change the font size "continuously"?
a document wide font size of 8pt is not possible for class artcile.
However, you can define any fontsize with

Code: Select all

\fontsize{9pt}{9.1pt}\selectfont
the second value must be greater, it is the baseline skip
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Re: PSTricks | Changing font size

Post by niles »

Thanks!
Post Reply