EmbeddedObjects.lyx: describe the effect of \strut in sec. 2.12.1

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27751 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-11-30 15:49:06 +00:00
parent ab015d7389
commit 39bab4d79e
2 changed files with 724 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#LyX 1.6.0 created this file. For more info see http://www.lyx.org/
#LyX 1.6.1svn created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
@ -173,6 +173,7 @@
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 12
\spacing single
@ -211,8 +212,8 @@
\bullet 3 2 7 -1
\tracking_changes false
\output_changes false
\author ""
\author ""
\author ""
\author ""
\end_header
\begin_body
@ -264,7 +265,7 @@ author: Uwe Stöhr
\family sans
Version 1.6.0
Version 2.0svn
\end_layout
\begin_layout Standard
@ -16360,6 +16361,364 @@ array
is used in the above command.)
\end_layout
\begin_layout Standard
In case you are using font sizes larger than the normal size, the table
borders are often too close to the letters.
This can be corrected by inserting the command
\series bold
\backslash
strut
\series default
in TeX code at the beginning of a table row.
Table
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Vertical-alignment-of"
\end_inset
visualizes the effect.
\end_layout
\begin_layout Standard
\noindent
\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:Vertical-alignment-of"
\end_inset
Vertical alignment of text with large font sizes.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset space \hfill{}
\end_inset
\begin_inset Float table
wide false
sideways false
status collapsed
\begin_layout Plain Layout
\begin_inset Caption
\begin_layout Plain Layout
Normal table.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\noindent
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="1">
<features>
<column alignment="left" valignment="top" width="0">
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
Normal, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size large
Large
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size larger
Larger
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size largest
Largest
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size huge
Huge
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size huge
Huger
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
\begin_inset space \hfill{}
\end_inset
\begin_inset Float table
wide false
sideways false
status collapsed
\begin_layout Plain Layout
\begin_inset Caption
\begin_layout Plain Layout
Table using the command
\series bold
\backslash
strut
\series default
.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\noindent
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="1">
<features>
<column alignment="left" valignment="top" width="0">
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
Normal, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size large
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
Large
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size larger
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
Larger
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size largest
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
Largest
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size huge
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
Huge
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size giant
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
\size huge
Huger
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
\begin_inset space \hfill{}
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Subsection
Special Cell Alignment
\begin_inset Index

View File

@ -1,4 +1,4 @@
#LyX 1.6.0 created this file. For more info see http://www.lyx.org/
#LyX 1.6.1svn created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
@ -174,6 +174,7 @@
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 12
\spacing single
@ -212,8 +213,8 @@
\bullet 3 2 7 -1
\tracking_changes false
\output_changes false
\author ""
\author ""
\author ""
\author ""
\end_header
\begin_body
@ -278,7 +279,7 @@ Autor: Uwe Stöhr <uwestoehr@web.de>
\family sans
Version 1.6svn
Version 2.0svn
\end_layout
\begin_layout Standard
@ -16848,6 +16849,362 @@ array
vermeidet, dass es in diesem Fall doppelt geladen wird.)
\end_layout
\begin_layout Standard
Bei der Verwendung von großen Schriftgrößen, sind die Tabellenlinien oftmals
zu nah an den Buchstaben.
Das kann korrigiert werden, indem man den Befehl
\series bold
\backslash
strut
\series default
als TeX-Code am Anfang einer Tabellenzeile einfügt.
Tabelle
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "tab:Vertikale-Ausrichtung-von"
\end_inset
zeigt den Effekt.
\end_layout
\begin_layout Standard
\noindent
\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:Vertikale-Ausrichtung-von"
\end_inset
Vertikale Ausrichtung von Text mit großen Schriftgrößen.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset space \hfill{}
\end_inset
\begin_inset Float table
wide false
sideways false
status collapsed
\begin_layout Plain Layout
\begin_inset Caption
\begin_layout Plain Layout
Normale Tabelle.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\noindent
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="1">
<features>
<column alignment="left" valignment="top" width="0">
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
Normal, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size large
Groß, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size larger
Größer, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size largest
noch Größer, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size huge
Riesig
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size giant
Gigantisch
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
\begin_inset space \hfill{}
\end_inset
\begin_inset Float table
wide false
sideways false
status collapsed
\begin_layout Plain Layout
\begin_inset Caption
\begin_layout Plain Layout
Tabelle bei der der Befehl
\series bold
\backslash
strut
\series default
verwendet wurde.
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\noindent
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="1">
<features>
<column alignment="left" valignment="top" width="0">
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
Normal, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size large
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
Groß, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size larger
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
Größer, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size largest
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
noch Größer, g
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size huge
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
Riesig
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\size giant
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
strut
\end_layout
\end_inset
Gigantisch
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
\begin_inset space \hfill{}
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Subsection
Besondere Zellenausrichtung
\begin_inset Index