Comprehensive TeX Archive Network
Cover Upload Browse

Direc­tory tex-archive/macros/latex/contrib/relsize

relsize.sty       4.1       Mar 29, 2013

Setting the font size relative to the current size

Authored by Donald Arseneau <> and Matt Swift <>.
(Inspired by smaller.sty author Bernie Cosell)

This software is contributed to the public domain by its authors, who disclaim
all copyrights. For people and jurisdictions that do not recognize contribution
to the public domain, this software is licensed by the terms of the unlicense, 

commands are:
\relsize{n}  where n gives the number of steps ("mag-step" = factor of 1.2)
             to change the size by;  n = 3 changes from \normalsize to 
             \LARGE size.  Negative n selects smaller fonts. n is an
             integer (or half-integer).

\smaller = \relsize{-1},  \smaller[n] = \relsize{-n}
\larger  = \relsize{1},   \larger[n]  = \relsize{n}

\textsmaller{text}, \textlarger{text} - versions that take an argument

\relscale{f}   like \relsize, but instead of scale-steps,
               the parameter is a scale factor, such as .75

The font-size command nearest the requested size will be used, and if
the size error is more than \RSpercentTolerance, then the size will
be adjusted more precisely using \fontsize.  (The default empty 
\RSpercentTolerance signals automatic handling, choosing the tolerance 
based on the font declarations.)

\mathsmaller{A}, \mathlarger{B}       - math versions 
  (The math versions are entirely different from the text versions.)


Name Size Date Notes
README 1504 2013-04-06 12:24
relsize-doc.pdf 303698 2013-05-25 02:25
relsize-doc.tex 10288 2013-05-25 02:05
relsize.sty 15542 2013-04-06 12:27

Down­load the con­tents of this pack­age in one zip archive (305.7k).

rel­size – Set the font size rel­a­tive to the cur­rent font size

The ba­sic com­mand of the pack­age is \rel­size, whose ar­gu­ment is a num­ber of \mag­steps to change size; from this are de­fined com­mands \larger, \smaller, \text­larger, etc.

Pack­age De­tailsrel­size
Li­censePublic Do­main Soft­ware
Main­tainerMatt Swift (in­ac­tive)
Don­ald Arse­neau
Con­tained inTeXlive as rel­size
MikTeX as rel­size
Topics sup­port for de­vel­op­ment of (La)TeX macros
font se­lec­tion schemes
Guest Book Sitemap Contact