[latexrefman] Font styles & sizes as environments

Denis Bitouzé denis.bitouze at univ-littoral.fr
Sun Jun 7 14:29:58 CEST 2020


Hi,

in sections 4.1 and 4.2, it is said:

- "each [style declaration] has an environment form such as
  \begin{itshape}...\end{itshape}.",
- [y]ou can instead use the environment form of these commands; for
  instance, \begin{tiny}...\end{tiny}.

But, as noticed by muzimuzhi here:

  ┌────
  │ https://github.com/texstudio-org/texstudio/pull/1122#discussion_r436324045
  └────

"Environments like \begin{small} are never defined, only the commands
are provided.". Moreover, IMO, the drawback with environments is user
are used to use them, not on single lines, but as e.g.:

  ┌────
  │ \begin{itshape}
  │ Foo bar.
  │ \end{itshape}
  └────

and this could lead to spurious spaces as in the MCE below.

For those reasons, I suggest to drop the mentions of environments
"equivalents" to declaration commands. Or, if not, to warn the user
about the possibility of spurious spaces.

MCE:

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\begin{document}
Foo bar.
\begin{itshape}
Foo bar.
\end{itshape}
Foo bar.

Foo bar. \begin{itshape}
Foo bar.
\end{itshape} Foo bar.

Foo bar. \begin{itshape} Foo bar. \end{itshape} Foo bar.

Foo bar. \begin{itshape}Foo bar.\end{itshape} Foo bar.

Foo bar. {\itshape Foo bar.} Foo bar.

Foo bar.
\begin{itshape}Foo bar.\end{itshape}
Foo bar.

Foo bar.
{\itshape Foo bar.}
Foo bar.
\end{document}
--8<---------------cut here---------------end--------------->8---

All the best.
-- 
Denis



More information about the latexrefman mailing list.