[latexrefman-commits] [SCM] latexrefman updated: r961 - trunk

Vincent Belaiche INVALID.NOREPLY at gnu.org.ua
Thu Aug 12 23:36:08 CEST 2021


Author: vincentb1
Date: 2021-08-12 21:36:08 +0000 (Thu, 12 Aug 2021)
New Revision: 961

Modified:
   trunk/ChangeLog
   trunk/latex2e-fr.texi
Log:
[fr] Spacing in math mode, align on English.

* latex2e-fr.texi (Spacing in math mode): Align on English version.
(\smash,  \phantom & \vphantom & \hphantom,  \mathstrut): New nodes to be translated.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2021-08-12 21:36:06 UTC (rev 960)
+++ trunk/ChangeLog	2021-08-12 21:36:08 UTC (rev 961)
@@ -1,5 +1,10 @@
 2021-08-12  Vincent Bela\"iche  <vincentb1 at users.sourceforge.net>
 
+	* latex2e-fr.texi (Spacing in math mode): Align on English version.
+	(\smash,  \phantom & \vphantom & \hphantom,  \mathstrut): New nodes to be translated.
+
+2021-08-12  Vincent Bela\"iche  <vincentb1 at users.sourceforge.net>
+
 	* latex2e-fr.texi (Expressions): Translate the node to French.
 
 2021-08-12  Vincent Bela\"iche  <vincentb1 at users.sourceforge.net>

Modified: trunk/latex2e-fr.texi
===================================================================
--- trunk/latex2e-fr.texi	2021-08-12 21:36:06 UTC (rev 960)
+++ trunk/latex2e-fr.texi	2021-08-12 21:36:08 UTC (rev 961)
@@ -12322,65 +12322,300 @@
 @cindex espacement au sein du mode mathématique
 @cindex mode mathématique, espacement
 
-Au sein d'un environnement @code{math}, @LaTeX{} ignore les espaces que
-vous tapez et met à la place l'espacement correspondant aux règles
-normales pour les textes mathématiques.
+Quand il compose des mathématiques, @LaTeX{} insère l'espacement selon
+les règles normales pour les textes mathématiques. Si vous entrez
+ at code{y=m x} alors @LaTeX{} ignore l'espace et dans la sortie le m est
+juste à côté du x, comme dans @math{y=mx}.
 
-En mode mathématique, beaucoup de définitions sont exprimées dans
-l'unité mathématique @dfn{mu} donnée par 1 em = 18 mu, où le em est pris
-de la famille courante des symboles mathématiques (@pxref{Units of length}).
+Mais les règles de @LaTeX{} ont occasionnellment besoin de petits ajustements. Par exemple, dans l'intégrale la tradition est de mettre une petite espace supplémentaire entre le @code{f(x)} et le @code{dx}, obtenue ci-dessous avec la commande @code{\,} :
 
+ at example
+\int_0^1 f(x)\,dx
+ at end example
+
+ at LaTeX{} fournit les commandes qui suivent utilisables en mode
+mathématique. Beaucoup de ces définitions d'espacement sont exprimées
+dans l'unité mathématique @dfn{mu} donnée par 1 em = 18 mu, où le em est
+pris de la famille courante des symboles mathématiques (@pxref{Units of
+length}). Ainsi, un @code{\thickspace} est typiquement de 5/18 fois la
+largeur d'un @samp{M}.
+
 @table @code
 @item \;
 @cindex thickspace
 @findex \;
 @findex \thickspace
-Normalement @code{5.0mu plus 5.0mu}. Le nom long est
- at code{\thickspace}. Utilisable seulement en mode mathématique.
+ at anchor{spacing in math mode thickspace}
+Synonyme : @code{\thickspace}. Normalement @code{5.0mu plus 5.0mu}.
+Avec le paquetage @file{amsmath}, ou depuis la parution 2020-10-01 de @LaTeX{}, utilisable aussi bien en mode texte qu'en mode mathématique ; sinon, utilisable seulement en mode mathématique.
 
+ at item \negthickspace
+ at findex \negthickspace
+Normalement @code{-5.0mu plus 2.0mu minus 4.0mu}.
+Avec le paquetage @file{amsmath}, ou depuis la parution 2020-10-01 de @LaTeX{}, utilisable aussi bien en mode texte qu'en mode mathématique ; sinon, utilisable seulement en mode mathématique.
+
 @item \:
 @itemx \>
 @findex \:
 @findex \>
 @findex \medspace
-Normalement @code{4.0mu plus 2.0mu minus 4.0mu}.  The longer name is
- at code{\medspace}.  Utilisable seulement en mode mathématique.
+ at anchor{spacing in math mode medspace}
 
+Synonyme : @code{\medspace}. Normalement @code{4.0mu plus 2.0mu minus
+4.0mu}.  Avec le paquetage @file{amsmath}, ou depuis la parution 2020-10-01 de @LaTeX{}, utilisable aussi bien en mode texte qu'en mode mathématique ; sinon, utilisable seulement en mode mathématique.
+
+ at item \negmedspace
+ at findex \negmedspace
+Normalement @code{-4.0mu plus 2.0mu minus 4.0mu}.
+Avec le paquetage @file{amsmath}, ou depuis la parution 2020-10-01 de @LaTeX{}, utilisable aussi bien en mode texte qu'en mode mathématique ; sinon, utilisable seulement en mode mathématique.
+
 @item \,
- at cindex thinspace
+ at cindex espace fine
+ at cindex fine, espace
 @findex \,
 @findex \thinspace
-Normalement @code{3mu}. Le nom long est @code{\thinspace}. Utilisable à
-la fois en mode mathématique et en mode texte. @xref{\thinspace & \negthinspace}.
+ at anchor{Spacing in math mode/\thinspace}
+ at anchor{spacing in math mode thinspace}
+Synonyme : @code{\thinspace}. Espace fine, normalement @code{3mu}, c-à-d.@: 1/6 at dmn{mu}.  Utilisable à
+la fois en mode mathématique et en mode texte (@pxref{\thinspace & \negthinspace}).
 
+Cette espace est très utilisée, par exemple entre la fonction et la
+variation infinitésimale dans une intégrale @code{\int f(x)\,dx} et, si
+un auteur fait cela, avant la ponctuation dans une équation affichée :
+
+ at example
+La primitive est
+\begin@{equation@}
+  3x^@{-1/2@}+3^@{1/2@}\,.
+\end@{equation@}
+ at end example
+
 @item \!
 @findex \!
-Une espace finie négative. Normalement @code{-3mu}.  Utilisable
-seulement en mode mathématique.
+ at findex \negthinspace
+ at cindex espace fine négative
+ at anchor{spacing in math mode negthinspace}
+Une espace fine négative. Normalement @code{-3mu}.  Avec le paquetage
+ at file{amsmath}, ou depuis la parution 2020-10-01 de @LaTeX{}, utilisable
+aussi bien en mode texte qu'en mode mathématique ; sinon, la commande
+ at code{\!} est utilisable seulement en mode mathématique mais la commande
+ at code{\negthinspace} a toujours également fonctionné en mode texte
+(@pxref{\thinspace & \negthinspace}).
 
 
 @item \quad
 @cindex quad
 @findex \quad
+ at anchor{spacing in math mode quad}
 Vaut 18 at dmn{mu}, c.-à-d.@: 1 at dmn{em}. Souvent utilisé pour l'espace
-entourant les équation ou expression, par ex.@: pour l'espace entre deux
+entourant les équations ou expressions, par ex.@: pour l'espace entre deux
 équation au sein d'un environnement @code{displaymath}. Utilisable à la
 fois en mode mathématique et en mode texte.
 
 @item \qquad
 @findex \qquad
+ at anchor{spacing in math mode qquad}
 Une longueur de 2 quads, soit 36 at dmn{mu} = 2 at dmn{em}.  Utilisable à la
 fois en mode mathématique et en mode texte.
 @end table
 
-Dans cet exemple une espace fine sépare la fonction de la forme
-différentielle.
+ at menu
+* \smash::                           Eliminate height or depth of a subformula.
+* \phantom & \vphantom & \hphantom:: Make empty box same size as argument.
+* \mathstrut::                       Add some vertical space to a formula.
+ at end menu
 
+ at node \smash
+ at c xx à traduire
+ at subsection @code{\smash}
+
+ at cindex vertical spacing, math mode
+ at cindex math mode, vertical space
+
+Synopsis:
+
 @example
-\int_0^1 f(x)\,dx
+\smash@{@var{subformula}@}
 @end example
 
+Typeset @var{subformula} as if its height and depth were zero.
 
+In this example the exponential is so tall that without the
+ at code{\smash} command @LaTeX{} would separate its line from the line
+above it, and the uneven line spacing might be unsightly.
+
+ at example
+To compute the tetration $\smash@{2^@{2^@{2^2@}@}@}$,
+evaluate from the top down, as $2^@{2^4@}=2^@{16@}=65536$.
+ at end example
+
+(Because of the @code{\smash} the printed expression could run into the
+line above so you may want to wait until the final version of the
+document to make such adjustments.)
+
+This pictures the effect of @code{\smash} by using @code{\fbox} to
+surround the box that @LaTeX{} will put on the line.  The
+ at code{\blackbar} command makes a bar extending from 10 at tie{}points below
+the baseline to 20 at tie{}points above.
+
+ at example
+\newcommand@{\blackbar@}@{\rule[-10pt]@{5pt@}@{30pt@}@}
+\fbox@{\blackbar@}
+\fbox@{\smash@{\blackbar@}@}
+ at end example
+
+The first box that @LaTeX{} places is 20 at tie{}points high and
+10 at tie{}points deep.  But the second box is treated by @LaTeX{} as
+having zero height and zero depth, despite that the ink printed on the
+page still extends well above and below the line.
+
+The @code{\smash} command appears often in mathematics to adjust the
+size of an element that surrounds a subformula.  Here the first radical
+extends below the baseline while the second lies just on the baseline.
+
+ at example
+\begin@{equation@}
+\sqrt@{\sum_@{0\leq k< n@} f(k)@}
+\sqrt@{\vphantom@{\sum@}\smash@{\sum_@{0\leq k< n@}@} f(k)@}
+\end@{equation@}
+ at end example
+
+Note the use of @code{\vphantom} to give the @code{\sqrt} command an
+argument with the height of the @code{\sum} (@pxref{\phantom & \vphantom
+& \hphantom}).
+
+While most often used in mathematics, the @code{\smash} command can
+appear in other contexts.  However, it doesn't change into horizontal
+mode.  So if it starts a paragraph then you should first put a
+ at code{\leavevmode}, as in the bottom line below.
+
+ at example
+xxx xxx xxx
+
+\smash@{yyy@}  % no paragraph indent
+
+\leavevmode\smash@{zzz@}  % usual paragraph indent
+ at end example
+
+ at PkgIndex{mathtools}
+The package @code{mathtools} has operators that provide even finer
+control over smashing a subformula box.
+
+
+
+ at node \phantom & \vphantom & \hphantom
+ at c xx à traduire
+ at subsection @code{\phantom} & @code{\vphantom} & @code{\hphantom}
+
+ at cindex spacing, math mode
+ at cindex horizontal spacing
+ at cindex vertical spacing
+ at cindex math mode, spacing
+ at cindex invisible character
+ at cindex character, invisible
+
+Synopsis:
+
+ at example
+\phantom@{@var{subformula}@}
+ at end example
+
+or
+
+ at example
+\vphantom@{@var{subformula}@}
+ at end example
+
+or
+
+ at example
+\hphantom@{@var{subformula}@}
+ at end example
+
+The @code{\phantom} command creates a box with the same height, depth,
+and width as @var{subformula}, but empty.  That is, this command causes
+ at LaTeX{} to typeset the space but not fill it with the material.  Here
+ at LaTeX{} will put a box of the right size for the quotation, but empty.
+
+ at example
+\fbox@{\phantom@{Conservatism is the fear-filled worship of dead radicals.
+               --- Mark Twain@}@}
+ at end example
+
+The @code{\vphantom} variant produces an invisible box with the same
+vertical size as @var{subformula}, the same height and depth, but having
+zero width.  And @code{\hphantom} makes a box with the same width as
+ at var{subformula} but with zero height and depth.
+
+In this example, the tower of exponents in the second summand expression
+is so tall that @TeX{} places this expression further down than its
+default.  Without adjustment, the two summand expressions would be at
+different levels.  The @code{\vphantom} in the first expression tells
+ at TeX{} to leave as much vertical room as it does for the tower, so the
+two expressions come out at the same level.
+
+ at example
+\begin@{displaymath@}
+    \sum_@{j\in\@{0,\ldots\, 10\@}\vphantom@{3^@{3^@{3^j@}@}@}@}
+      \sum_@{i\in\@{0,\ldots\, 3^@{3^@{3^j@}@}\@}@} i\cdot j
+\end@{displaymath@}
+ at end example
+
+These commands are often used in conjunction with @code{\smash}.
+ at xref{\smash}, which includes another example of @code{\vphantom}.
+
+ at PkgIndex{mathtools}
+The three phantom commands appear often but note that @LaTeX{} provides
+a suite of other commands to work with box sizes that may be more
+convenient, including @code{\makebox} (@pxref{\mbox & \makebox}) as well
+as @code{\settodepth} (@pxref{\settodepth}), @code{\settoheight}
+(@pxref{\settoheight}), and @code{\settowidth} (@pxref{\settowidth}).
+In addition, the @file{mathtools} package has many commands that offer
+fine-grained control over spacing.
+
+ at PkgIndex{amsmath}
+All three commands produce an ordinary box, without any special
+mathematics status.  So to do something like attaching a superscript you
+should give it such a status, for example with the @code{\operatorname}
+command from the package @file{amsmath}.
+
+While most often used in mathematics, these three can appear in other
+contexts.  However, they don't cause @LaTeX{} to change into horizontal
+mode.  So if one of these starts a paragraph then you should prefix it
+with @code{\leavevmode}.
+
+ at node \mathstrut
+ at c xx à traduire
+ at subsection @code{\mathstrut}
+
+ at findex @code{\mathstrut}
+ at cindex spacing, math mode
+ at cindex vertical spacing
+ at cindex math mode, spacing
+ at cindex invisible character
+ at cindex character, invisible
+
+Synopsis:
+
+ at example
+\mathstrut
+ at end example
+
+The analogue of @code{\strut} for mathematics.  @xref{\strut}.
+
+The input @code{$\sqrt@{x@} + \sqrt@{x^i@}$} gives output where the
+second radical is taller than the first.  To add extra vertical space
+without any horizontal space, so that the two have the same height, use
+ at code{$\sqrt@{x\mathstrut@} + \sqrt@{x^i\mathstrut@}$}.
+
+The @code{\mathstrut} command adds the vertical height of an open
+parenthesis, @code{(}, but no horizontal space.  It is defined as
+ at code{\vphantom@{(@}}, so see @ref{\phantom & \vphantom & \hphantom} for
+more.  An advantage over @code{\strut} is that @code{\mathstrut} adds no
+depth, which is often the right thing for formulas.  Using the height of
+an open parenthesis is just a convention; for complete control over the
+amount of space, use @code{\rule} with a width of zero.  @xref{\rule}.
+
 @node Math miscellany
 @section Recueil de diverses commandes utiles  en math
 @cindex math, miscellanées



More information about the latexrefman-commits mailing list.