]> git.lyx.org Git - features.git/commitdiff
Math.lyx: description of \unit and \unitfrac
authorUwe Stöhr <uwestoehr@web.de>
Tue, 22 Jul 2008 23:20:10 +0000 (23:20 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Tue, 22 Jul 2008 23:20:10 +0000 (23:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25816 a592a061-630c-0410-9148-cb99ea01b6c8

lib/doc/Math.lyx
lib/doc/de/Math.lyx

index bd6359dbeb937fe76270609fe78a1f2c9f1d5af0..2691082aeef0230e5f6639e54745cbe521720926 100644 (file)
@@ -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
 
+: 
+\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 $\nicefrac{5}{31}$
+\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
 
index 25a5ac763c7df07b6d5198874516c0f090ed631f..6abfea21788f527c35673b1c16dfe561edb99973 100644 (file)
@@ -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