% enables calculation of values,
\usepackage{calc}
-% provides special table cell alignments
-\usepackage{dcolumn}
-
% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
\family default
Here you can set the horizontal alignment and the width of the current
column.
+ The alignment
+\family sans
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
+\end_inset
+
+Separator
+\family default
+ is described in section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Special-Cell-Alignment"
+
+\end_inset
+
+.
When you have set a width you can also adjust the vertical alignment of
the current row.
A given width will allow the cell to have line breaks and multiple paragraphs
\begin_layout Subsection
Special Cell Alignment
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Special-Cell-Alignment"
+
+\end_inset
+
+
\begin_inset Index idx
status collapsed
\begin_inset CommandInset ref
LatexCommand ref
-reference "tab:Table-cells-of"
+reference "tab:Table-cells-align"
+
+\end_inset
+.
+ This alignment is achieved by highlighting the last 3
+\begin_inset space ~
+\end_inset
+
+cells of the column and then either pressing the toolbar button
+\begin_inset Graphics
+ filename ../images/tabular-feature_align-decimal.png
+ scale 85
+ scaleBeforeRotation
+
+\end_inset
+
+ or setting the alignment in the table settings to
+\family sans
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
\end_inset
+Separator
+\family default
.
+ The alignment character can be a character of your choice and is specified
+ in the table settings.
\end_layout
\begin_layout Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "tab:Table-cells-of"
+name "tab:Table-cells-align"
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="4" columns="1">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="decimal" decimal_point="." valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+heading
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+12.6
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+0.68
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-123.0
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-align-operator"
+
+\end_inset
+
+Table cells of a column aligned with the operators.
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features tabularvalignment="middle">
-<column alignment="right" valignment="top" width="0">
-<column alignment="left" valignment="top" width="0" special="@{}l">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="right" valignment="top" width="0pt">
+<column alignment="left" valignment="top" width="0pt" special="@{}l">
<row>
<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_inset Text
\begin_layout Plain Layout
-12.
+\begin_inset Formula $12\,+$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-6
+\begin_inset Formula $\,6$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0.
+\begin_inset Formula $0\,-$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-68
+\begin_inset Formula $\,68$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
--123.
+\begin_inset Formula $-123\,/$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0
+\begin_inset Formula $\,0$
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-This table was created with a 4×2 table.
+For alignments at characters in formulas this method does not work because
+ the field to specify the alignment character does not allow formulas.
+ In this case one need to use the method from Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-align-operator"
+
+\end_inset
+
+.
+ This table was created with a 4×2 table.
The heading is a centered multicolumn.
- The first column is right-aligned and contains the digits before the decimal
- point and the decimal point.
- The second column is left aligned and contains the digits after the decimal
- point.
+ The first column is right-aligned and contains the first part including
+ the operator.
+ The second column is left aligned and contains the rest.
+ A small space was added at the beginning of each cell of the second column
+ to get the space that is usually around operators.
To omit the space that is normally between two table columns, the following
LaTeX-argument was used for the second column:
\end_layout
\end_inset
shows some example alignments.
- For the alignment with the relation sign, you must add the second smallest
- math-space at the beginning of the last column to get the correct space
- surrounding the relation sign.
+ For the alignment with the relation sign, a small space was added like
+ for the second column of Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-align-operator"
+
+\end_inset
+
+.
\end_layout
\begin_layout Standard
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
-
-There is also the LaTeX-package
-\series bold
-dcolumn
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-LaTeX-packages ! dcolumn
-\end_layout
-
-\end_inset
-
- that provides table cell alignments.
- But this unfortunately treats the cell entries as math and does not allow
- formulas in table cells: The first column of Table
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Several-table-cell"
-
-\end_inset
-
- will look with
-\series bold
-dcolumn
-\series default
- like the first column in Table
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Alignments-when"
-
-\end_inset
-
- and only with some tricks as you would want.
- The alignment of the second and third column of Table
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Several-table-cell"
-
-\end_inset
-
- is not possible with
-\series bold
-dcolumn
-\series default
-.
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset Float table
-placement h
-wide false
-sideways false
-status open
-
-\begin_layout Plain Layout
-\begin_inset Caption
-
-\begin_layout Plain Layout
-\begin_inset CommandInset label
-LatexCommand label
-name "tab:Alignments-when"
-
-\end_inset
-
-Alignments when LaTeX-package dcolumn is used.
- For all column alignments tricks have to be used to get the output.
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Plain Layout
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="4" columns="3">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
-<column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
-<row>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-units
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-units
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-units
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-bottles
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{bottles}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-24+
-\begin_inset Formula $\mbox{bottles}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-Pixels
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{Pixels}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-768+
-\begin_inset Formula $\mbox{Pixels}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-cm
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-6+
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Subsection
% ermöglicht das Berechnen von Werten
\usepackage{calc}
-% Ermöglicht besondere Tabellenzellen-Ausrichtungen
-\usepackage{dcolumn}
-
%Vergrößert den Teil der Seite, in dem Gleitobjekte
% unten angeordnet werden dürfen
\renewcommand{\bottomfraction}{0.5}
\family sans
Tabellen-Einstellungen
\family default
- Hier können Sie die
-\family sans
-Horizontale
+ Hier können Sie die Horizontale
\begin_inset space ~
\end_inset
-Ausrichtung
-\family default
- der momentanen Spalte und die
-\family sans
-Spaltenbreite
-\family default
- festlegen.
- Wenn Sie eine
+Ausrichtung der momentanen Spalte und die Spaltenbreite festlegen.
+ Die Ausrichtung
\family sans
-Spaltenbreite
-\family default
- festgelegt haben, können Sie auch eine
-\family sans
-Vertikale
+Am
\begin_inset space ~
\end_inset
-Ausrichtung
+Dezimaltrenner
\family default
- der momentanen Zeile wählen.
+ ist in Abschnitt
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Besondere-Zellenausrichtung"
+
+\end_inset
+
+ beschrieben.
+ Wenn Sie eine Spaltenbreite festgelegt haben, können Sie auch eine Vertikale
+\begin_inset space ~
+\end_inset
+
+Ausrichtung der momentanen Zeile wählen.
Bei einer festen Spaltenbreite können Zellen Zeilenumbrüche und mehrere
Absätze haben, wie in Abschnitt
\begin_inset space ~
\begin_inset Newline newline
\end_inset
-Man kann auch ein
-\family sans
-LaTe
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{}
-\end_layout
-
-\end_inset
-
-X-Argument
-\family default
- für besondere Tabellen-Formatierun\SpecialChar \-
-gen einfügen, wie in den Abschnitten
-
+Man kann auch ein LaTeX-Argument für besondere Tabellen-Formatierun\SpecialChar \-
+gen einfügen,
+ wie in den Abschnitten
\begin_inset CommandInset ref
LatexCommand ref
reference "uab:Mehrfachspalten-Berechnungen"
Tabelle
\family default
Hier kann eine Tabelle als
-\family sans
+\begin_inset Quotes gld
+\end_inset
+
Lange
\begin_inset space ~
\end_inset
Tabelle
-\family default
+\begin_inset Quotes grd
+\end_inset
+
definiert werden, die über mehrere Seiten reicht.
Die Abschnitte
\begin_inset space ~
\begin_layout Subsection
Besondere Zellenausrichtung
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Besondere-Zellenausrichtung"
+
+\end_inset
+
+
\begin_inset Index idx
status collapsed
\end_inset
.
+ Diese Ausrichtung erhält man, indem die 3
+\begin_inset space ~
+\end_inset
+
+letzten Zellen der Spalte markiert und man dann entweder den Werkzeugleistenknop
+f
+\begin_inset Graphics
+ filename ../../images/tabular-feature_align-decimal.png
+ scale 85
+ scaleBeforeRotation
+
+\end_inset
+
+ drücken oder in den Tabelleneinstellungen die Ausrichtung auf
+\family sans
+Am
+\begin_inset space ~
+\end_inset
+
+Dezimaltrenner
+\family default
+ setzen.
+ Das Zeichen, auf das ausgerichtet wird, kann man in den Tabelleneinstellungen
+ frei wählen.
\end_layout
\begin_layout Standard
\end_inset
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="4" columns="1">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="decimal" decimal_point="," valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Überschrift
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+12,6
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+0,68
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-123,0
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Tabellenzellen-Operator"
+
+\end_inset
+
+Tabellenzellen sind auf den Operator ausgerichtet
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features tabularvalignment="middle">
-<column alignment="right" valignment="top" width="0">
-<column alignment="left" valignment="top" width="0" special="@{}l">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="right" valignment="top" width="0pt">
+<column alignment="left" valignment="top" width="0pt" special="@{}l">
<row>
<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_inset Text
\begin_layout Plain Layout
-12.
+\begin_inset Formula $12\,+$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-6
+\begin_inset Formula $\,6$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0.
+\begin_inset Formula $0\,-$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-68
+\begin_inset Formula $\,68$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
--123.
+\begin_inset Formula $-123\,/$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0
+\begin_inset Formula $\,0$
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-Diese Tabelle wurde als 4×2 Tabelle erstellt.
- Die Überschrift ist eine zentrierte Mehrfachspalte.
- Die erste Spalte ist rechtsbündig ausgerichtet und enthält den Vorkommateil
- der Zahlen einschließlich Dezimalpunkt.
- Die zweite Spalte ist linksbündig ausgerichtet und enthält den Nachkommateil
- der Zahlen.
- Um den Raum zwischen den beiden Spalten zu löschen, wurde im
-\family sans
-LaTe
-\begin_inset ERT
-status collapsed
+Bei Ausrichtungen bezüglich Zeichen in Formeln ist diese Methode nicht möglich,
+ da das Feld für das Ausrichtungszeichen in den Tabelleneinstellungen keine
+ Formeln erlaubt.
+ In diesem Fall verwendet man die Methode von Tabelle
+\begin_inset space ~
+\end_inset
-\begin_layout Plain Layout
-{}
-\end_layout
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Tabellenzellen-Operator"
\end_inset
-X-Argument
-\family default
+.
+ Diese Tabelle wurde als 4×2 Tabelle erstellt.
+ Die Überschrift ist eine zentrierte Mehrfachspalte.
+ Die erste Spalte ist rechtsbündig ausgerichtet und enthält den ersten Teil
+ und den Operator.
+ Die zweite Spalte ist linksbündig ausgerichtet und enthält den Rest.
+ Ein kleiner Leerraum wurde zu Beginn jeder Zelle der zweiten Spalte eingefügt,
+ um den üblichen Leerraum um einen Operator zu erhalten.
+ Um den Raum zwischen den beiden Spalten zu löschen, wurde im LaTeX-Argument
für die zweite Spalte folgendes eingefügt:
\end_layout
\end_inset
zeigt einige Ausrichtungen.
- Für die Ausrichtung der Relationen müssen Sie den
+ Für die Ausrichtung der Relationen wurde ein kleiner
\family sans
-Mittleren
+Leerraum
+\family default
+ eingefügt; wie in der zweiten Spalte von Tabelle
\begin_inset space ~
\end_inset
-Abstand
-\family default
- aus der
-\family sans
-Mathe-Werkzeugleiste
-\family default
- am Anfang der letzten Spalte einfügen, um den gleichen Abstand links und
- rechts vom Relationszeichen zu bekommen.
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Tabellenzellen-Operator"
+
+\end_inset
+
+.
\end_layout
\begin_layout Standard
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
-
-Es gibt auch noch das LaTeX-Paket
-\series bold
-dcolumn
-\series default
-,
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-LaTeX-Pakete ! dcolumn
-\end_layout
-
-\end_inset
-
- mit dem man Zellen ausrichten kann.
- Aber es behandelt den Zelleninhalt als Mathematik und erlaubt keine Formeln
- in den Zellen.
- Die erste Spalte von Tabelle
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Verschiedene-Ausrichtungen"
-
-\end_inset
-
- wird mit
-\series bold
-dcolumn
-\series default
- wie die erste Spalte von Tabelle
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Ausrichtung-mit-dem"
-
-\end_inset
-
- aussehen und nur mit ein paar Tricks wie erwartet.
- Die Ausrichtung der zweiten und dritten Spalte wie in Tabelle
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Verschiedene-Ausrichtungen"
-
-\end_inset
-
- ist mit
-\series bold
-dcolumn
-\series default
- nicht möglich.
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset Float table
-placement h
-wide false
-sideways false
-status open
-
-\begin_layout Plain Layout
-\begin_inset Caption
-
-\begin_layout Plain Layout
-\begin_inset CommandInset label
-LatexCommand label
-name "tab:Ausrichtung-mit-dem"
-
-\end_inset
-
-Ausrichtung mit dem LaTeX-Paket
-\series bold
-dcolumn
-\series default
-.
- Bei allen Spalten musste getrickst werden, um die gewünschte Ausgabe zu
- bekommen.
-\begin_inset Argument
-status collapsed
-
-\begin_layout Plain Layout
-Ausrichtung mit dem LaTeX-Paket
-\series bold
-dcolumn
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Plain Layout
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="4" columns="3">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
-<column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
-<row>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-Einheiten
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-Einheiten
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-Einheiten
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-Flaschen
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{Flaschen}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-24+
-\begin_inset Formula $\mbox{Flaschen}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-Pixel
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{Pixel}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-768+
-\begin_inset Formula $\mbox{Pixel}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-cm
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-6+
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Subsection
% enables calculation of values,
\usepackage{calc}
-% provides special table cell alignments
-\usepackage{dcolumn}
-
% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
\family default
Aquí puedes establecer la alineación horizontal y la anchura de la columna
actual.
+ La alineación
+\family sans
+\lang english
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
+\end_inset
+
+Separator
+\family default
+ is described in
+\lang spanish
+ sección
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Alineación-especial-de"
+
+\end_inset
+
+.
Una vez puesta la anchura puedes ajustar también el alineamiento vertical.
Una anchura determinada permite tener saltos de línea y distintos párrafos
de texto, véase sección
\begin_layout Subsection
Alineación especial de celdas
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Alineación-especial-de"
+
+\end_inset
+
+
\begin_inset Index idx
status collapsed
\begin_inset CommandInset ref
LatexCommand ref
-reference "tab:Tabla-con-celdas-de"
+reference "tab:Table-cells-align"
\end_inset
.
+
+\lang english
+This alignment is achieved by highlighting the last 3
+\begin_inset space ~
+\end_inset
+
+cells of the column and then either pressing the toolbar button
+\lang spanish
+
+\begin_inset Graphics
+ filename ../../images/tabular-feature_align-decimal.png
+ scale 85
+ scaleBeforeRotation
+
+\end_inset
+
+
+\lang english
+or setting the alignment in the table settings to
+\family sans
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
+\end_inset
+
+Separator
+\family default
+.
+ The alignment character can be a character of your choice and is specified
+ in the table settings.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-cells-align"
+
+\end_inset
+
+Ta
+\lang english
+ble cells of a column aligned with the decimal separator.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="4" columns="1">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="decimal" decimal_point="," valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+leyenda
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+12,6
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+0,68
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-123,0
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
\end_inset
-Tabla con celdas alineadas con el separador decimal.
+Tabla con celdas alineadas con
+\lang english
+the operators
+\lang spanish
+.
\end_layout
\end_inset
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features tabularvalignment="middle">
-<column alignment="right" valignment="top" width="0">
-<column alignment="left" valignment="top" width="0" special="@{}l">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="right" valignment="top" width="0pt">
+<column alignment="left" valignment="top" width="0pt" special="@{}l">
<row>
<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_inset Text
\begin_layout Plain Layout
-12,
+\begin_inset Formula $12\,+$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-6
+\begin_inset Formula $\,6$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0,
+\begin_inset Formula $0\,-$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-68
+\begin_inset Formula $\,68$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
--123,
+\begin_inset Formula $-123\,/$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0
+\begin_inset Formula $\,0$
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-Esta es una tabla 4×2.
+
+\lang english
+For alignments at characters in formulas this method does not work because
+ the field to specify the alignment character does not allow formulas.
+ In this case one need to use the method from
+\lang spanish
+tabla
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Tabla-con-celdas-de"
+
+\end_inset
+
+.
+ Esta es una tabla 4×2.
La leyenda es una multicolumna centrada.
- La primera columna está alineada a la derecha y contiene el punto decimal
- y los dígitos anteriores.
- La segunda columna está alineada a la izquierda y contiene los dígitos
- posteriores al punto decimal.
+ La primera columna está alineada a la derecha y contiene el
+\lang english
+first part including the operator.
+ The second column is left aligned and contains the rest.
+ A small space was added at the beginning of each cell of the second column
+ to get the space that is usually around operators.
+
+\lang spanish
Para omitir el espacio que hay normalmente entre dos columnas se ha usado
el siguiente argumento LaTeX para la segunda columna:
\end_layout
\end_inset
muestra varios ejemplos de alineación.
- Para alinear con el signo de relación debes añadir el segundo espacio matemátic
-o más pequeño al comienzo de la última columna para conseguir el espacio
- adecuado alrededor del signo.
+ Para alinear con el signo de relación
+\lang english
+a small space was added like for the second column of
+\lang spanish
+ tabla
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Tabla-con-celdas-de"
+
+\end_inset
+
+.
\end_layout
\begin_layout Standard
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
-
-También hay un paquete LaTeX,
-\series bold
-dcolumn
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-LaTeX-paquetes ! dcolumn
-\end_layout
-
-\end_inset
-
-, que permite alinear el contenido de las celdas.
- Pero desgraciadamente trata las entradas de celda en modo matemático y
- no permite fórmulas en celdas: la primera columna de la tabla
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Varias-alineaciones"
-
-\end_inset
-
- se verá con
-\series bold
-dcolumn
-\series default
- como la primera columna en la tabla
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Alineaciones-con-el"
-
-\end_inset
-
- y sólo con algunos trucos se consigue lo que se espera.
- La alineación de la segunda y tercera columnas de la tabla
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Varias-alineaciones"
-
-\end_inset
-
- no es posible con
-\series bold
-dcolumn
-\series default
-.
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset Float table
-placement h
-wide false
-sideways false
-status open
-
-\begin_layout Plain Layout
-\begin_inset Caption
-
-\begin_layout Plain Layout
-\begin_inset CommandInset label
-LatexCommand label
-name "tab:Alineaciones-con-el"
-
-\end_inset
-
-
-\begin_inset Argument
-status collapsed
-
-\begin_layout Plain Layout
-Tabla alineada con
-\series bold
-dcolumn
-\end_layout
-
-\end_inset
-
-Alineaciones con el paquete LaTeX
-\series bold
-dcolumn
-\series default
-.
- Hay que usar algunos trucos para la alineación de las columnas en la salida.
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Plain Layout
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="4" columns="3">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
-<column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
-<row>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-unidades
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-unidades
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-unidades
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-bottles
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{bottles}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-24+
-\begin_inset Formula $\mbox{bottles}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-Pixels
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{Pixels}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-768+
-\begin_inset Formula $\mbox{Pixels}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-cm
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-6+
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Subsection
% enables calculation of values,
\usepackage{calc}
-% provides special table cell alignments
-\usepackage{dcolumn}
-
% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
\begin_layout Description
Tableau Avec cet onglet, vous pouvez choisir l'alignement horizontal et
la largeur de la colonne courante.
+ L'alignement
+\family sans
+\lang english
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
+\end_inset
+
+Separator
+\family default
+ is described in
+\lang french
+ section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Alignements-de-cellules"
+
+\end_inset
+
+.
Quand vous avez fixé une largeur, vous pouvez aussi modifier l'alignement
vertical de la ligne courante.
Une largeur fixée va permettre aux cellules d'avoir des sauts de lignes
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
\end_layout
\begin_layout Subsection
Alignements de cellules spéciaux
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Alignements-de-cellules"
+
+\end_inset
+
+
\begin_inset Index idx
status collapsed
\begin_inset CommandInset ref
LatexCommand ref
-reference "tab:Tableau-centré-sur-séparateur"
+reference "tab:Tableau-centré-sur-séparateur-1"
\end_inset
.
+
+\lang english
+This alignment is achieved by highlighting the last 3
+\begin_inset space ~
+\end_inset
+
+cells of the column and then either pressing the toolbar button
+\lang french
+
+\begin_inset Graphics
+ filename ../../images/tabular-feature_align-decimal.png
+ scale 85
+ scaleBeforeRotation
+
+\end_inset
+
+
+\lang english
+or setting the alignment in the table settings to
+\family sans
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
+\end_inset
+
+Separator
+\family default
+.
+ The alignment character can be a character of your choice and is specified
+ in the table settings.
\end_layout
\begin_layout Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "tab:Tableau-centré-sur-séparateur"
+name "tab:Tableau-centré-sur-séparateur-1"
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="4" columns="1">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="decimal" decimal_point="," valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+en-tête
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+12,6
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+0,68
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-123,0
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Tableau-centré-sur-séparateur-2"
+
+\end_inset
+
+Les cellules d'une colonnes sont centrées sur les opérateurs.
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features tabularvalignment="middle">
-<column alignment="right" valignment="top" width="0">
-<column alignment="left" valignment="top" width="0" special="@{}l">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="right" valignment="top" width="0pt">
+<column alignment="left" valignment="top" width="0pt" special="@{}l">
<row>
<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_inset Text
\begin_layout Plain Layout
-12,
+\begin_inset Formula $12\,+$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-6
+\begin_inset Formula $\,6$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0,
+\begin_inset Formula $0\,-$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-68
+\begin_inset Formula $\,68$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
--123,
+\begin_inset Formula $-123\,/$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0
+\begin_inset Formula $\,0$
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-Ce tableau a été créé comme un tableau 4×2.
+
+\lang english
+For alignments at characters in formulas this method does not work because
+ the field to specify the alignment character does not allow formulas.
+ In this case one need to use the method from
+\lang french
+ tableau
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Tableau-centré-sur-séparateur-2"
+
+\end_inset
+
+.
+ Ce tableau a été créé comme un tableau 4×2.
L'en-tête est une cellule multicolonne centrée.
- La première colonne est alignée à droite et contient les chiffres qui se
- trouvent avant la virgule ainsi que la virgule elle-même.
- La deuxième colonne est alignée à gauche et contient les chiffres situés
- après la virgule.
+ La première colonne est alignée à droite et contient le
+\lang english
+first part including the operator.
+ The second column is left aligned and contains the rest.
+ A small space was added at the beginning of each cell of the second column
+ to get the space that is usually around operators.
+
+\lang french
Pour éviter l'espace qui est normalement placé entre deux colonnes d'un
tableau, le paramètre LaTeX suivant
\lang english
\end_inset
montre quelques exemples d'alignements.
- Pour l'alignement sur l'opérateur de relation, vous devez ajouter le deuxième
- plus petit espace mathématique au début de la dernière colonne pour obtenir
- l'espacement correct autour du signe de relation.
+ Pour l'alignement sur l'opérateur de relation,
+\lang english
+a small space was added like for the second column of
+\lang french
+ tableau
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Tableau-centré-sur-séparateur-2"
+
+\end_inset
+
+.
\end_layout
\begin_layout Standard
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
-
-Il y a aussi le paquetage LaTeX
-\series bold
-dcolumn
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Paquetages LaTeX ! dcolumn
-\end_layout
-
-\end_inset
-
- qui fournit des alignements pour les cellules de tableaux.
- Mais malheureusement, il traite le contenu des cellules comme des mathématiques
- et ne permet pas de formules dans les cellules du tableau : Avec
-\series bold
-dcolumn
-\series default
- la première colonne du tableau
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Plusieurs-exemples-alignements"
-
-\end_inset
-
- ressemblera à la première colonne du tableau
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Alignements-avec-dcolumn"
-
-\end_inset
-
-
-\lang english
- and only with some tricks like the expected.
-
-\lang french
-On ne peut pas aligner la deuxième et la troisième colonne du tableau
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Plusieurs-exemples-alignements"
-
-\end_inset
-
- avec
-\series bold
-dcolumn
-\series default
-.
-\end_layout
-
-\begin_layout Standard
-\begin_inset Float table
-placement h
-wide false
-sideways false
-status open
-
-\begin_layout Plain Layout
-\begin_inset Caption
-
-\begin_layout Plain Layout
-\begin_inset CommandInset label
-LatexCommand label
-name "tab:Alignements-avec-dcolumn"
-
-\end_inset
-
-Alignements quand on utilise le paquetage LaTeX dcolumn.
- Pour toutes les colonnes des astuces d'alignement ont dû être utilisées
- pour obtenir la sortie.
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Plain Layout
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="4" columns="3">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1.0}">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.11}">
-<column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.9}">
-<row>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-unités
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-unités
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-unités
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-bouteilles
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{bouteilles}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-24+
-\begin_inset Formula $\mbox{bouteilles}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-Pixels
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{Pixels}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-768+
-\begin_inset Formula $\mbox{Pixels}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-cm
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-6+
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Subsection
% enables calculation of values,
\usepackage{calc}
-% provides special table cell alignments
-\usepackage{dcolumn}
-
% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
\family sans
表の設定
\family default
- ここでは、現在列の幅と水平揃えを設定することができます。幅を設定した場合には、現在行の垂直揃えも調整することができます。列幅を与えると、改行や多段落の文章をセ
-ルに入れることができます。これに関しては、第
+ ここでは、現在列の幅と水平揃えを設定することができます。
+\lang english
+The alignment
+\family sans
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
+\end_inset
+
+Separator
+\family default
+ is described in
+\lang japanese
+ 第
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:特殊なセル揃え"
+
+\end_inset
+
+。幅を設定した場合には、現在行の垂直揃えも調整することができます。列幅を与えると、改行や多段落の文章をセルに入れることができます。これに関しては、第
\begin_inset CommandInset ref
LatexCommand ref
reference "sub:複数行"
\begin_layout Subsection
特殊なセル揃え
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:特殊なセル揃え"
+
+\end_inset
+
+
\begin_inset Index idx
status collapsed
\end_inset
-の小数点のように、同一列の各セルの内容が、特定の文字で揃えられた方が見栄えの良いことがあります。
+の小数点のように、同一列の各セルの内容が、特定の文字で揃えられた方が見栄えの良いことがあります。
+\lang english
+This alignment is achieved by highlighting the last 3
+\begin_inset space ~
+\end_inset
+
+cells of the column and then either pressing the toolbar button
+\lang japanese
+
+\begin_inset Graphics
+ filename ../../images/tabular-feature_align-decimal.png
+ scale 85
+ scaleBeforeRotation
+
+\end_inset
+
+
+\lang english
+or setting the alignment in the table settings to
+\family sans
+At
+\begin_inset space ~
+\end_inset
+
+Decimal
+\begin_inset space ~
+\end_inset
+
+Separator
+\family default
+.
+ The alignment character can be a character of your choice and is specified
+ in the table settings.
\end_layout
\begin_layout Standard
\end_inset
+\end_layout
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="4" columns="1">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="decimal" decimal_point="." valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+見出し
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+12.6
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+0.68
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-123.0
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float table
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "tab:Table-align-operator"
+
+\end_inset
+
+
+\lang english
+Table cells of a column aligned with the operators.
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Plain Layout
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features tabularvalignment="middle">
-<column alignment="right" valignment="top" width="0">
-<column alignment="left" valignment="top" width="0" special="@{}l">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="right" valignment="top" width="0pt">
+<column alignment="left" valignment="top" width="0pt" special="@{}l">
<row>
<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_inset Text
\begin_layout Plain Layout
-12.
+\begin_inset Formula $12\,+$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-6
+\begin_inset Formula $\,6$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0.
+\begin_inset Formula $0\,-$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-68
+\begin_inset Formula $\,68$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
--123.
+\begin_inset Formula $-123\,/$
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-0
+\begin_inset Formula $\,0$
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-この表は4×2表として作成されています。見出しは中央揃えの連結列になっています。第1列には、小数点以上の各桁と小数点が右揃えで収められています。第2列には、小数
-点以下の各桁が左揃えで収められています。通常、表の列間に加えられる余白を削るために、
+
+\lang english
+For alignments at characters in formulas this method does not work because
+ the field to specify the alignment character does not allow formulas.
+ In this case one need to use the method from
+\lang japanese
+表
+\lang english
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-align-operator"
+
+\end_inset
+
+.
+ This table was created with a 4×2 table.
+ The heading is a centered multicolumn.
+ The first column is right-aligned and contains the first part including
+ the operator.
+ The second column is left aligned and contains the rest.
+ A small space was added at the beginning of each cell of the second column
+ to get the space that is usually around operators.
+
+\lang japanese
+ 第2列には、小数点以下の各桁が左揃えで収められています。通常、表の列間に加えられる余白を削るために、
\end_layout
\begin_layout Standard
\end_inset
-は、揃え方の例をいくつか示しています。関係子で揃えを行うには、関係詞の周りに正しい余白を取るために、二番目に小さい数式余白を最終列の初めに加えなくてはなりません
-。
+は、揃え方の例をいくつか示しています。
+\lang english
+For the alignment with the relation sign, a small space was added like for
+ the second column of
+\lang japanese
+ 表
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Table-align-operator"
+
+\end_inset
+
+.
\end_layout
\begin_layout Standard
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
-
-表のセルの揃えを取り扱うものには、
-\series bold
-dcolumn
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-LaTeXぱっけーじ@LaTeXパッケージ ! dcolumn
-\end_layout
-
-\end_inset
-
- LaTeXパッケージもあります。しかし残念ながら、このパッケージはセルの内容全体を数式として取扱うため、表セル中に数式を入れることはできません。表
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:表セル揃え"
-
-\end_inset
-
-の第1列は、
-\series bold
-dcolumn
-\series default
-では表
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:使用したときの揃え"
-
-\end_inset
-
-の第1列のようになり、ちょっとしたテクニックを使わなければ、期待通りにはなりません。表
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:表セル揃え"
-
-\end_inset
-
-の第2列と第3列のような揃え方は、
-\series bold
-dcolumn
-\series default
-ではできません。
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset Float table
-placement h
-wide false
-sideways false
-status open
-
-\begin_layout Plain Layout
-\begin_inset Caption
-
-\begin_layout Plain Layout
-\begin_inset CommandInset label
-LatexCommand label
-name "tab:使用したときの揃え"
-
-\end_inset
-
-LaTeXパッケージdcolumnを使用したときの揃えの様子。この出力のようにすべての列を揃えるには、テクニックを用いなくてはなりません。
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Plain Layout
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="4" columns="3">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
-<column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
-<column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
-<row>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-単位
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-単位
-\end_layout
-
-\end_inset
-</cell>
-<cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-単位
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24本の瓶
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12x24本の瓶
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-12
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-24+
-\begin_inset Formula $\mbox{本の瓶}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768ピクセル
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024x768ピクセル
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-1024
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-768+
-\begin_inset Formula $\mbox{ピクセル}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-cm
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" rightline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32x6
-\begin_inset space \thinspace{}
-\end_inset
-
-
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-32
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-times
-\end_layout
-
-\end_inset
-
-6+
-\begin_inset Formula $\mbox{cm}$
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-</row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Subsection