mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Math.lyx: description of \unit and \unitfrac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25816 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c389bd56c6
commit
1f0b7c39b0
128
lib/doc/Math.lyx
128
lib/doc/Math.lyx
@ -2210,6 +2210,8 @@ For inline fractions with a sloped fraction stroke you can use the command
|
||||
|
||||
\backslash
|
||||
nicefrac
|
||||
\series default
|
||||
|
||||
\begin_inset Index
|
||||
status collapsed
|
||||
|
||||
@ -2221,13 +2223,63 @@ nicefrac
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\series default
|
||||
:
|
||||
\begin_inset Formula $\nicefrac{5}{31}$
|
||||
\end_inset
|
||||
|
||||
or
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unitfrac
|
||||
\series default
|
||||
|
||||
\begin_inset Index
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
Commands ! U !
|
||||
\backslash
|
||||
unitfrac
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
:
|
||||
\begin_inset Formula $\unitfrac{5}{31}$
|
||||
\end_inset
|
||||
|
||||
There is furthermore the command
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unitfracthree
|
||||
\series default
|
||||
that offers to write a fraction in combination with a number:
|
||||
\begin_inset Formula $\unitfrac[2]{1}{3}$
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Newline newline
|
||||
\end_inset
|
||||
|
||||
Note that
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unitfracthree
|
||||
\series default
|
||||
is not a real LaTeX command but the command
|
||||
\begin_inset Newline newline
|
||||
\end_inset
|
||||
|
||||
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unitfrac[number]{numerator}{denominator}
|
||||
\series default
|
||||
, therefore you cannot use it in TeX code.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -4210,6 +4262,13 @@ It is possible to place up to 6 lines above or below characters.
|
||||
|
||||
\begin_layout Subsection
|
||||
Ellipses
|
||||
\begin_inset CommandInset label
|
||||
LatexCommand label
|
||||
name "sub:Ellipses"
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Index
|
||||
status collapsed
|
||||
|
||||
@ -11863,6 +11922,35 @@ reference "sec:Formula-Styles"
|
||||
.)
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Besides
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
hfill
|
||||
\series default
|
||||
, there are the commands
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
dotfill
|
||||
\series default
|
||||
and
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
hrulefill
|
||||
\series default
|
||||
that fill the space with a pattern, see
|
||||
\begin_inset CommandInset ref
|
||||
LatexCommand ref
|
||||
reference "sub:Ellipses"
|
||||
|
||||
\end_inset
|
||||
|
||||
for an example.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
For text, variable space can be inserted via the menu
|
||||
\family sans
|
||||
@ -34176,6 +34264,40 @@ reference "sub:Predefined-Space"
|
||||
\end_inset
|
||||
|
||||
.
|
||||
\begin_inset Newline newline
|
||||
\end_inset
|
||||
|
||||
This convention is automatically fulfilled when the command
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unittwo
|
||||
\series default
|
||||
is used.
|
||||
When it is entered to a formula, two boxes appear.
|
||||
In the first one the value is inserted, in the second one the unit, and
|
||||
one gets as above:
|
||||
\begin_inset Formula $\unit[30]{km/h}$
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset space \thinspace{}
|
||||
\end_inset
|
||||
|
||||
.
|
||||
Note that
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unittwo
|
||||
\series default
|
||||
is not a real LaTeX command but the command
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unit[value]{unit}
|
||||
\series default
|
||||
, therefore you cannot use it in TeX code.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
@ -34222,7 +34344,7 @@ In numbers with more than four digits the smallest space is inserted before
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
For dimensionings like 120×90×40
|
||||
For dimensions like 120×90×40
|
||||
\begin_inset space \thinspace{}
|
||||
\end_inset
|
||||
|
||||
|
@ -2205,11 +2205,64 @@ nicefrac
|
||||
|
||||
|
||||
\series default
|
||||
benutzt werden:
|
||||
:
|
||||
\begin_inset Formula $\nicefrac{5}{31}$
|
||||
\end_inset
|
||||
|
||||
oder
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unitfrac
|
||||
\series default
|
||||
|
||||
\begin_inset Index
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
Befehle! U !
|
||||
\backslash
|
||||
unitfrac
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
:
|
||||
\begin_inset Formula $\unitfrac{5}{31}$
|
||||
\end_inset
|
||||
|
||||
benutzt werden.
|
||||
Des Weiteren gibt es den Befehl
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unitfracthree
|
||||
\series default
|
||||
mit dem man einen Bruch in Kombination mit einer Zahl setzen kann:
|
||||
\begin_inset Formula $\unitfrac[2]{1}{3}$
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Newline newline
|
||||
\end_inset
|
||||
|
||||
Zu beachten ist, dass
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unitfracthree
|
||||
\series default
|
||||
kein echter LaTeX-Befehl, sondern der Befehl
|
||||
\begin_inset Newline newline
|
||||
\end_inset
|
||||
|
||||
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unitfrac[Zahl]{Zähler}{Nenner}
|
||||
\series default
|
||||
ist, daher kann man ihn nicht im TeX-Code benutzen.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -4213,6 +4266,13 @@ Man kann bis zu 6 Striche über oder unter Zeichen setzen.
|
||||
|
||||
\begin_layout Subsection
|
||||
Fortsetzungspunkte
|
||||
\begin_inset CommandInset label
|
||||
LatexCommand label
|
||||
name "sub:Fortsetzungspunkte"
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Index
|
||||
status collapsed
|
||||
|
||||
@ -11872,6 +11932,35 @@ reference "sec:Formelstile"
|
||||
erklärt.)
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Neben
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
hfill
|
||||
\series default
|
||||
gibt es noch die Befehle
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
dotfill
|
||||
\series default
|
||||
und
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
hrulefill
|
||||
\series default
|
||||
, die den Leerraum mit einem Muster füllen, siehe
|
||||
\begin_inset CommandInset ref
|
||||
LatexCommand ref
|
||||
reference "sub:Fortsetzungspunkte"
|
||||
|
||||
\end_inset
|
||||
|
||||
für ein Beispiel.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Variabler Leerraum kann für Text über das Menü
|
||||
\family sans
|
||||
@ -34380,6 +34469,40 @@ reference "sub:Vordefinierter-Leerraum"
|
||||
\end_inset
|
||||
|
||||
.
|
||||
\begin_inset Newline newline
|
||||
\end_inset
|
||||
|
||||
Diese Richtlinie wird automatisch eingehalten, wenn man den Befehl
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unittwo
|
||||
\series default
|
||||
verwendet.
|
||||
Gibt man ihn in eine Formel ein, erscheinen zwei Kästchen.
|
||||
In das Erste wird der Wert, in das Zweite die Einheit eingegeben und man
|
||||
erhält wie oben:
|
||||
\begin_inset Formula $\unit[30]{km/h}$
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset space \thinspace{}
|
||||
\end_inset
|
||||
|
||||
.
|
||||
Zu beachten ist, dass
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unittwo
|
||||
\series default
|
||||
kein echter LaTeX-Befehl, sondern der Befehl
|
||||
\series bold
|
||||
|
||||
\backslash
|
||||
unit[Wert]{Einheit}
|
||||
\series default
|
||||
ist, daher kann man ihn nicht im TeX-Code benutzen.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
Loading…
Reference in New Issue
Block a user