Math.lyx: update description for command \mathclap

This commit is contained in:
Uwe Stöhr 2014-02-16 02:11:08 +01:00
parent aba0aeaf25
commit 8f663ea33e
5 changed files with 53 additions and 367 deletions

View File

@ -91,11 +91,6 @@
% example macro from sec. 19.4 % example macro from sec. 19.4
%\def\tagform@#1{\maketag@@@{|#1|}} %\def\tagform@#1{\maketag@@@{|#1|}}
% macro from sec. 10.2
\def\clap#1{\hbox to 0pt{\hss #1\hss}}
\def\mathclap {\mathpalette \mathclapinternal}
\def\mathclapinternal #1#2{\clap{$\mathsurround =0pt #1{#2}$}}
% ------------------------------------ % ------------------------------------
% used to check for needed LaTeX packages % used to check for needed LaTeX packages
@ -185,7 +180,7 @@
\use_package cancel 0 \use_package cancel 0
\use_package esint 1 \use_package esint 1
\use_package mathdots 1 \use_package mathdots 1
\use_package mathtools 0 \use_package mathtools 1
\use_package mhchem 1 \use_package mhchem 1
\use_package stackrel 0 \use_package stackrel 0
\use_package stmaryrd 0 \use_package stmaryrd 0
@ -291,7 +286,7 @@ status open
\begin_layout Plain Layout \begin_layout Plain Layout
To export this document to PDF, PS or DVI the LaTeX-packages To export this document to PDF, PS or DVI the LaTeX-packages
\series bold \series bold
braket, cancel, eurosym, mathdots, mhchem, undertilde braket, cancel, eurosym, mathdots, mathtools, mhchem, undertilde
\series default \series default
and and
\series bold \series bold
@ -15582,54 +15577,7 @@ reference "eq:substack"
there can be too much space beside an operator, because the characters there can be too much space beside an operator, because the characters
following the operator are set beside the limits. following the operator are set beside the limits.
\end_layout To avoid this the command
\begin_layout Standard
To avoid this, the following macro can be used in the LaTeX-preamble:
\end_layout
\begin_layout Standard
\series bold
\backslash
def
\backslash
clap#1{
\backslash
hbox to 0pt{
\backslash
hss #1
\backslash
hss}}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclap {
\backslash
mathpalette
\backslash
mathclapinternal}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclapinternal #1#2{
\backslash
clap{$
\backslash
mathsurround =0pt #1{#2}$}}
\end_layout
\begin_layout Standard
This defines the command
\series bold \series bold
\backslash \backslash
@ -15647,27 +15595,15 @@ mathclap
\end_inset \end_inset
that sets the width of the limit to 0 can be used.
It sets the width of its content to 0
\begin_inset space \thinspace{} \begin_inset space \thinspace{}
\end_inset \end_inset
pt. pt.
The command scheme is \begin_inset Newline newline
\end_layout \end_inset
\begin_layout Standard
\series bold
\backslash
mathclap{limit}
\end_layout
\begin_layout Standard
where the limit can consist of several conditions.
\end_layout
\begin_layout Standard
Applied on formula Applied on formula
\begin_inset CommandInset ref \begin_inset CommandInset ref
LatexCommand eqref LatexCommand eqref
@ -15685,7 +15621,7 @@ reference "eq:substack"
\backslash \backslash
sum_ sum_
\backslash \backslash
mathclap{ mathclap
\backslash \backslash
substack substack
\begin_inset space \textvisiblespace{} \begin_inset space \textvisiblespace{}

View File

@ -92,16 +92,12 @@
% Beispielmakro aus Kap. 19.4 % Beispielmakro aus Kap. 19.4
%\def\tagform@#1{\maketag@@@{|#1|}} %\def\tagform@#1{\maketag@@@{|#1|}}
% Makro aus Kap. 10.2
\def\clap#1{\hbox to 0pt{\hss #1\hss}}
\def\mathclap {\mathpalette \mathclapinternal}
\def\mathclapinternal #1#2{\clap{$\mathsurround =0pt #1{#2}$}}
% Damit der Index einen anderen Namen erhält. % Damit der Index einen anderen Namen erhält.
\addto\captionsngerman \addto\captionsngerman
{\renewcommand{\indexname} {\renewcommand{\indexname}
{Stichwort- und Befehlsverzeichnis}} {Stichwort- und Befehlsverzeichnis}}
% ------------------------------------ % ------------------------------------
% used to check for needed LaTeX packages % used to check for needed LaTeX packages
\usepackage{ifthen} \usepackage{ifthen}
@ -194,7 +190,7 @@
\use_package cancel 0 \use_package cancel 0
\use_package esint 1 \use_package esint 1
\use_package mathdots 1 \use_package mathdots 1
\use_package mathtools 0 \use_package mathtools 1
\use_package mhchem 1 \use_package mhchem 1
\use_package stackrel 0 \use_package stackrel 0
\use_package stmaryrd 0 \use_package stmaryrd 0
@ -300,7 +296,7 @@ status open
Um diese Datei als PDF, PS oder DVI zu exportieren, sollten die LaTeX-Pakete Um diese Datei als PDF, PS oder DVI zu exportieren, sollten die LaTeX-Pakete
\series bold \series bold
braket, cancel, eurosym, mathdots, mhchem, undertilde braket, cancel, eurosym, mathdots, mathtools, mhchem, undertilde
\series default \series default
und und
\series bold \series bold
@ -15595,54 +15591,7 @@ reference "eq:substack"
kann es vorkommen, dass sich neben dem Operator zu viel Leerraum befindet, kann es vorkommen, dass sich neben dem Operator zu viel Leerraum befindet,
denn das dem Operator folgende Zeichen wird neben die Grenzen gesetzt. denn das dem Operator folgende Zeichen wird neben die Grenzen gesetzt.
\end_layout Um das zu verhindern, kann man den Befehl
\begin_layout Standard
Um das zu verhindern, kann man folgendes Makro in den LaTeX-Vorspann einfügen:
\end_layout
\begin_layout Standard
\series bold
\backslash
def
\backslash
clap#1{
\backslash
hbox to 0pt{
\backslash
hss #1
\backslash
hss}}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclap {
\backslash
mathpalette
\backslash
mathclapinternal}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclapinternal #1#2{
\backslash
clap{$
\backslash
mathsurround =0pt #1{#2}$}}
\end_layout
\begin_layout Standard
Dadurch wird der Befehl
\series bold \series bold
\backslash \backslash
@ -15660,27 +15609,14 @@ mathclap
\end_inset \end_inset
definiert, der die Breite der Grenze auf 0 verwenden, der die Breite seines Inhalts auf 0
\begin_inset space \thinspace{} \begin_inset space \thinspace{}
\end_inset \end_inset
pt setzt. pt setzt.
Das Befehlsschema lautet \begin_inset Newline newline
\end_layout \end_inset
\begin_layout Standard
\series bold
\backslash
mathclap{Grenze}
\end_layout
\begin_layout Standard
wobei die Grenze auch aus mehreren Bedingungen bestehen kann.
\end_layout
\begin_layout Standard
Auf Formel Auf Formel
\begin_inset CommandInset ref \begin_inset CommandInset ref
LatexCommand eqref LatexCommand eqref
@ -15688,7 +15624,7 @@ reference "eq:substack"
\end_inset \end_inset
angewandt, gibt man also den Befehl angewandt, gibt man den Befehl
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
@ -15698,7 +15634,7 @@ reference "eq:substack"
\backslash \backslash
sum_ sum_
\backslash \backslash
mathclap{ mathclap
\backslash \backslash
substack substack
\begin_inset space \textvisiblespace{} \begin_inset space \textvisiblespace{}

View File

@ -92,11 +92,6 @@
% example macro from sec. 19.4 % example macro from sec. 19.4
%\def\tagform@#1{\maketag@@@{|#1|}} %\def\tagform@#1{\maketag@@@{|#1|}}
% macro from sec. 10.2
\def\clap#1{\hbox to 0pt{\hss #1\hss}}
\def\mathclap {\mathpalette \mathclapinternal}
\def\mathclapinternal #1#2{\clap{$\mathsurround =0pt #1{#2}$}}
% ------------------------------------ % ------------------------------------
% used to check for needed LaTeX packages % used to check for needed LaTeX packages
@ -186,7 +181,7 @@
\use_package cancel 0 \use_package cancel 0
\use_package esint 1 \use_package esint 1
\use_package mathdots 1 \use_package mathdots 1
\use_package mathtools 0 \use_package mathtools 1
\use_package mhchem 1 \use_package mhchem 1
\use_package stackrel 0 \use_package stackrel 0
\use_package stmaryrd 0 \use_package stmaryrd 0
@ -293,7 +288,7 @@ status open
Para exportar este documento a PDF, PS o DVI deberían estar instalados los Para exportar este documento a PDF, PS o DVI deberían estar instalados los
paquetes LaTeX paquetes LaTeX
\series bold \series bold
braket, cancel, eurosym, mathdots, mhchem, undertilde braket, cancel, eurosym, mathdots, mathtools, mhchem, undertilde
\series default \series default
y y
\series bold \series bold
@ -15655,54 +15650,7 @@ reference "eq:substack"
\end_inset \end_inset
, porque éstos se colocan junto a los límites. , porque éstos se colocan junto a los límites.
\end_layout Para evitarlo se puede usar comando
\begin_layout Standard
Para evitarlo se puede usar la siguiente macro en el preámbulo:
\end_layout
\begin_layout Standard
\series bold
\backslash
def
\backslash
clap#1{
\backslash
hbox to 0pt{
\backslash
hss #1
\backslash
hss}}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclap {
\backslash
mathpalette
\backslash
mathclapinternal}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclapinternal #1#2{
\backslash
clap{$
\backslash
mathsurround =0pt #1{#2}$}}
\end_layout
\begin_layout Standard
En ella se define el comando
\series bold \series bold
\backslash \backslash
@ -15720,27 +15668,18 @@ mathclap
\end_inset \end_inset
que establece la anchura del límite en 0 que
\lang english
sets the width of its content to
\lang spanish
0
\begin_inset space \thinspace{} \begin_inset space \thinspace{}
\end_inset \end_inset
pt. pt.
El esquema del comando es: \begin_inset Newline newline
\end_layout \end_inset
\begin_layout Standard
\series bold
\backslash
mathclap{límite}
\end_layout
\begin_layout Standard
donde el límite puede consistir en varias condiciones.
\end_layout
\begin_layout Standard
Aplicado en la ecuación Aplicado en la ecuación
\begin_inset CommandInset ref \begin_inset CommandInset ref
LatexCommand eqref LatexCommand eqref
@ -15758,7 +15697,7 @@ reference "eq:substack"
\backslash \backslash
sum_ sum_
\backslash \backslash
mathclap{ mathclap
\backslash \backslash
substack substack
\begin_inset space \textvisiblespace{} \begin_inset space \textvisiblespace{}

View File

@ -92,11 +92,6 @@
% example macro from sec. 19.4 % example macro from sec. 19.4
%\def\tagform@#1{\maketag@@@{|#1|}} %\def\tagform@#1{\maketag@@@{|#1|}}
% macro from sec. 10.2
\def\clap#1{\hbox to 0pt{\hss #1\hss}}
\def\mathclap {\mathpalette \mathclapinternal}
\def\mathclapinternal #1#2{\clap{$\mathsurround =0pt #1{#2}$}}
% ------------------------------------ % ------------------------------------
% used to check for needed LaTeX packages % used to check for needed LaTeX packages
@ -189,7 +184,7 @@
\use_package cancel 0 \use_package cancel 0
\use_package esint 1 \use_package esint 1
\use_package mathdots 1 \use_package mathdots 1
\use_package mathtools 0 \use_package mathtools 1
\use_package mhchem 1 \use_package mhchem 1
\use_package stackrel 0 \use_package stackrel 0
\use_package stmaryrd 0 \use_package stmaryrd 0
@ -306,7 +301,7 @@ status open
Pour pouvoir exporter ce document en PDF, PS, ou DVI les paquetages LaTeX Pour pouvoir exporter ce document en PDF, PS, ou DVI les paquetages LaTeX
\series bold \series bold
braket, cancel, eurosym, mathdots, mhchem, undertilde braket, cancel, eurosym, mathdots, mathtools, mhchem, undertilde
\series default \series default
et et
\series bold \series bold
@ -15167,13 +15162,6 @@ dotsint
\end_inset \end_inset
\end_layout
\begin_layout Standard
\begin_inset Newpage newpage
\end_inset
\end_layout \end_layout
\begin_layout Subsection \begin_layout Subsection
@ -15580,54 +15568,7 @@ reference "eq:substack"
, il se peut qu'il y ait trop d'espace après un opérateur, puisque les caractère , il se peut qu'il y ait trop d'espace après un opérateur, puisque les caractère
s qui suivent l'opérateur se trouvent après la limite. s qui suivent l'opérateur se trouvent après la limite.
\end_layout Pour éviter cela, on peut utiliser la commande
\begin_layout Standard
Pour éviter cela, on peut utiliser la macro suivante dans le préambule LaTeX:
\end_layout
\begin_layout Standard
\series bold
\backslash
def
\backslash
clap#1{
\backslash
hbox to 0pt{
\backslash
hss #1
\backslash
hss}}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclap {
\backslash
mathpalette
\backslash
mathclapinternal}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclapinternal #1#2{
\backslash
clap{$
\backslash
mathsurround =0pt #1{#2}$}}
\end_layout
\begin_layout Standard
Elle définit la commande
\series bold \series bold
\backslash \backslash
@ -15645,27 +15586,18 @@ mathclap
\end_inset \end_inset
qui met la largeur de la limite à 0 qui met la largeur
\lang english
of its content
\lang french
à 0
\begin_inset space \thinspace{} \begin_inset space \thinspace{}
\end_inset \end_inset
pt. pt.
La syntaxe de la commande est: \begin_inset Newline newline
\end_layout \end_inset
\begin_layout Standard
\series bold
\backslash
mathclap{limite}
\end_layout
\begin_layout Standard
où la limite peut être composée de plusieurs conditions.
\end_layout
\begin_layout Standard
Appliqué à la formule Appliqué à la formule
\begin_inset CommandInset ref \begin_inset CommandInset ref
LatexCommand eqref LatexCommand eqref
@ -15683,7 +15615,7 @@ reference "eq:substack"
\backslash \backslash
sum_ sum_
\backslash \backslash
mathclap{ mathclap
\backslash \backslash
substack substack
\begin_inset space \textvisiblespace{} \begin_inset space \textvisiblespace{}

View File

@ -100,11 +100,6 @@
% example macro from sec. 19.4 % example macro from sec. 19.4
%\def\tagform@#1{\maketag@@@{|#1|}} %\def\tagform@#1{\maketag@@@{|#1|}}
% macro from sec. 10.2
\def\clap#1{\hbox to 0pt{\hss #1\hss}}
\def\mathclap {\mathpalette \mathclapinternal}
\def\mathclapinternal #1#2{\clap{$\mathsurround =0pt #1{#2}$}}
% ------------------------------------ % ------------------------------------
% used to check for needed LaTeX packages % used to check for needed LaTeX packages
@ -226,7 +221,7 @@ End
\use_package cancel 0 \use_package cancel 0
\use_package esint 1 \use_package esint 1
\use_package mathdots 1 \use_package mathdots 1
\use_package mathtools 0 \use_package mathtools 1
\use_package mhchem 1 \use_package mhchem 1
\use_package stackrel 0 \use_package stackrel 0
\use_package stmaryrd 0 \use_package stmaryrd 0
@ -15402,59 +15397,10 @@ reference "eq:substack"
\end_inset \end_inset
式のように、演算子の横の余白が大きくなりすぎることがあります。 式のように、演算子の横の余白が大きくなりすぎることがあります。
\end_layout \lang english
To avoid this the command
\begin_layout Standard
これを避けるには、LaTeXプリアンブルに以下のようなマクロを指定する方法があります。
\end_layout
\begin_layout Standard
\series bold
\backslash
def
\backslash
clap#1{
\backslash
hbox to 0pt{
\backslash
hss #1
\backslash
hss}}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclap {
\backslash
mathpalette
\backslash
mathclapinternal}
\begin_inset Newline newline
\end_inset
\backslash
def
\backslash
mathclapinternal #1#2{
\backslash
clap{$
\backslash
mathsurround =0pt #1{#2}$}}
\end_layout
\begin_layout Standard
これは、範囲の幅を0
\begin_inset space \thinspace{}
\end_inset
ptに設定する
\series bold \series bold
\lang japanese
\backslash \backslash
mathclap mathclap
@ -15471,22 +15417,19 @@ mathclap
\end_inset \end_inset
コマンドを定義しています。このコマンドの書式は、
\end_layout
\begin_layout Standard \lang english
can be used.
It sets the width of its content to 0
\begin_inset space \thinspace{}
\end_inset
\series bold pt.
\begin_inset Newline newline
\end_inset
\backslash
mathclap{範囲}
\end_layout
\begin_layout Standard \lang japanese
となっていて、「範囲」には複数の条件を入れることができます。
\end_layout
\begin_layout Standard
これを これを
\begin_inset CommandInset ref \begin_inset CommandInset ref
LatexCommand eqref LatexCommand eqref
@ -15504,7 +15447,7 @@ reference "eq:substack"
\backslash \backslash
sum_ sum_
\backslash \backslash
mathclap{ mathclap
\backslash \backslash
substack substack
\begin_inset space \textvisiblespace{} \begin_inset space \textvisiblespace{}