On Friday 11 May 2007 15:09, Paul A. Rubin wrote:
> Steve Litt wrote:
> > Turns out I'll be using my Ex character style in body text and in several
> > headings, which means I can't hardcode a size like \LARGE, but instead
> > must find a way to *increase* the font size, which means I need to detect
> > and store the current font size so I can increase it, probably with a
> > bunch of if/then/else type stuff.
> >
> > How do I detect and store the current font size?
>
> [EMAIL PROTECTED] will give the current font size (in points); [EMAIL
> PROTECTED],
> [EMAIL PROTECTED], [EMAIL PROTECTED] do similar sorts of things. The catch
> is that they
> can't be used directly within a document. What you can do is put
> something like
>
> [EMAIL PROTECTED]
>
> in the preamble. There are also [EMAIL PROTECTED] and [EMAIL PROTECTED]
> which might be
> intended for math mode (not sure).
>
> /Paul
Thanks Paul,
This didn't work for me. Here's a tiny LaTeX file incorporating it:
%====================================
\documentclass[12pt]{book}
[EMAIL PROTECTED]
\begin{document}
mysize is \mysize
\end{document}
%====================================
When I try to compile it, here's what happens:
[EMAIL PROTECTED] vimfacts]$ latex junk2.tex
This is pdfeTeX, Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
entering extended mode
(./junk2.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for american, french, german, ngerman,
b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto,
e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk,
polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish,
tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/book.cls
Document Class: book 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/bk12.clo)) (./junk2.aux)
! Undefined control sequence.
\mysize ->\f
@size
l.7 mysize is \mysize
?
Any ideas what I should do?
Thanks
SteveT
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/