> Is there a way to make LyX use a specific font point size
> in a selected portion of text, instead of the "larger"/"smaller"
> sizes in the standard Layout->Character menu?

LyX does not really support this as you might have noticed from
reactions to you question, simply because it is not the way (La)TeX is
supposed to be used. Usually, one should define globally fonts, their
sizes, shapes etc. and commands to select these fonts.

However, if you really want to set a font size (or other font-related
parameters) without too much hassle, you can use low-level LaTeX 2e
functions directly. In LaTeX documentation on
"http://www.loria.fr/services/tex/",

--------------- (citation) --------------------

\fontencoding {<encoding>}
\fontfamily {<family>}
\fontseries {<series>}
\fontshape {<shape>}
\fontsize {<size>} {<baselineskip>}

Each of these commands sets one of the font attributes; \fontsize also
sets \baselineskip. The actual font in use is not altered by these
commands, but the current attributes are used to determine which font to
use after the next \selectfont command.

\selectfont

Selects a text font, based on the current values of the font attributes.

Warning: there must be a \selectfont command immediately after any
settings of the font parameters by (some of) the five \font<parameter>
commands, before any following text.

--------------- (end of citation) --------------------

So if you really want to set a specific font size, you can create a
macro or directly type into your document in LaTeX mode, for example:

\fontsize{18pt}{22pt}\selectfont
<here comes you text in 18pt...>

Notice, however, that
1) you have to take care of \baselineskip as well
2) the setting is reset by any fontsize-changing command (section,
chapter, etc.)

Regards,

Pavel Cizek


Reply via email to