LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
From: Frank Mittelbach <[log in to unmask]>
Date: Wed, 18 Jun 1997 14:37:21 +0200
In-Reply-To: <[log in to unmask]>
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments: text/plain (68 lines)
Vladimir

 > I'd like to thank you all for the help.
 > I'd like to ask, what is the `phylosophy' of using <text-settings>
 > and <math-settings> in a \DeclareFontEncoding command?
 > Do these settings remain globally defined after changing the encoding?
 > If so, may be it would be good to provive additional arguments
 > to \DeclareFontEncoding, like <restore-text-settings> and
 > <restore-math-settings>?

they are mainly a historical mistake and of no much use (and not much
used). yes one could think of a complexer syntax that would be more
reasonable but there will be no change to NFSS2 on the syntax
level. In other words as far as LaTeX2e is concerned there will not be
incompatible changes of any such kind.

as to the exact meaning of the commands argument, fntguide.tex says


\begin{decl}
|\DeclareFontEncoding| \arg{encoding} \arg{text-settings}
                       \arg{math-settings}
\end{decl}

Declares a new encoding scheme \m{encoding}.

The \m{text-settings} are
declarations which are executed every time |\selectfont| changes the
encoding to be \m{encoding}.

The \m{math-settings} are similar but are for math alphabets. They
are executed whenever a math alphabet with this encoding is
called.

Spaces within the arguments are ignored to avoid surplus
spaces in the document. If a real space is necessary
use |\space|.

------------------------------------------

as you notice there is no restoration other then the one via grouping


 > David Carlisle wrote:
 >
 > > \DeclareTextSymbol{\CYRV}{LCY}{198}
 >
 > BTW, why not to write \DeclareTextSymbol\CYRV{LCY}{198}, i.e. without
 > unnecessary braces?
 > I do not like to type unnecessary characters in my texts. :-)

it is good style ;-)

yes it has its uses as it allows to parse stuff in an
easier way.  for example if you do

\newcommand\foo{}

then latex2html will not parse it correctly.

but i personally also prefer leaving the braces out in this case
(don't tell anybody :-)

also it has one big advantage of being uniform, you can learn as a new
user that arguments have braces (simple :-)

frank

ATOM RSS1 RSS2