]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/EmbeddedObjects.lyx
doc_toc.py: add comment to explain its calling syntax (fixes bug 3798
[lyx.git] / lib / doc / EmbeddedObjects.lyx
index 1dab62f1aeb67117f92bad0d5c92ce1525025491..75448f9a3a78d1c2d36fa1e2fb40e7744f4806b7 100644 (file)
 % used for book-style tables
 \usepackage{booktabs}
 
-% used to have extra space in table cells,
+% used to have extra space in table cells
+\@ifundefined{extrarowheight}
+ {\usepackage{array}}{}
 \setlength{\extrarowheight}{2pt}
 
 % used for customized tables
 \newcolumntype{W}{!{\color{green}\vline}}
 % ---
 
-% To be able to enter the characters ° and · directly in LyX
-\DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
-\DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
-
 % insert additional vertical space of
 % 1.5 mm between footnotes
 \let\myFoot\footnote
 \bullet 3 2 7 -1
 \tracking_changes false
 \output_changes false
-\author "usti" 
-\author "Bo Peng" 
-\author "muso" 
-\author "Uwe Stöhr" 
+\author "" 
+\author "" 
 \end_header
 
 \begin_body
 
 :
 \begin_inset Formula \begin{equation}
-W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
+W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
 
 \end_inset
 
@@ -14136,26 +14132,14 @@ reference "tab:Table-with-vertical-colored"
 \end_inset
 
  the LaTeX-argument
-\end_layout
-
-\begin_layout Standard
-
 \series bold
-WcW
-\end_layout
-
-\begin_layout Standard
-was used for the last column and
-\end_layout
-
-\begin_layout Standard
-
+ WcW
+\series default
+ was used for the last column and
 \series bold
-Wc
-\end_layout
-
-\begin_layout Standard
-for the other columns.
+ Wc
+\series default
+ for the other columns.
 \end_layout
 
 \begin_layout Standard
@@ -14321,7 +14305,22 @@ hline
 \backslash
 renewcommand{
 \backslash
-hline}{
+hline}
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+hphantom{ }
+\end_layout
+
+\end_inset
+
+{
 \backslash
 arrayrulecolor{red}
 \backslash
@@ -14351,7 +14350,12 @@ hline
 \backslash
 renewcommand{
 \backslash
-hline}{
+hline}
+\end_layout
+
+\begin_layout Standard
+
+ {
 \backslash
 arrayrulecolor{red}
 \backslash
@@ -14538,6 +14542,7 @@ reference "tab:Table-with-colored"
 
 \begin_layout Standard
 \begin_inset Float table
+placement h
 wide false
 sideways false
 status open
@@ -14770,7 +14775,7 @@ reference "sec:Formal-Tables"
 em space.
  For normal tables the inserted space will unfortunately destroy the vertical
  table lines as in the following table:
-\begin_inset VSpace defskip
+\begin_inset VSpace medskip
 \end_inset
 
 
@@ -14849,7 +14854,7 @@ hspace*{0pt}
 \end_inset
 
 
-\begin_inset VSpace defskip
+\begin_inset VSpace medskip
 \end_inset
 
 
@@ -14875,7 +14880,7 @@ rows adds space between the current and the following row.
 em space.
  For normal tables the inserted space will unfortunately destroy the vertical
  table lines as in the following table:
-\begin_inset VSpace defskip
+\begin_inset VSpace medskip
 \end_inset
 
 
@@ -14969,7 +14974,7 @@ hspace*{0pt}
 \end_inset
 
 
-\begin_inset VSpace defskip
+\begin_inset VSpace medskip
 \end_inset
 
 
@@ -14979,14 +14984,39 @@ So inserting space between rows for normal tables is only useful when you
 \end_layout
 
 \begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
 When you want to add extra height to all cells of all tables, you can do
- this with the following preamble line:
+ this with the following preamble lines:
 \end_layout
 
 \begin_layout Standard
 
 \series bold
 
+\backslash
+@ifundef\SpecialChar \textcompwordmark{}
+ined{extrarowheight}
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+hphantom{ }
+\end_layout
+
+\end_inset
+
+{
+\backslash
+usepackage{array}}{}
+\newline
+
 \backslash
 setlength{
 \backslash
@@ -14996,6 +15026,19 @@ extrarowheight}{height}
 \begin_layout Standard
 But this has the disadvantage that the cell texts are no longer exactly
  vertically centered.
+ (The package 
+\series bold
+array
+\series default
+ will be loaded automatically by LyX when you use self defined table formats.
+ To avoid that it is loaded twice the command 
+\series bold
+
+\backslash
+@ifundef\SpecialChar \textcompwordmark{}
+ined
+\series default
+ is used in the above command.)
 \end_layout
 
 \begin_layout Subsection
@@ -18996,7 +19039,8 @@ floats
 \series bold
 
 \backslash
-floatpagefraction
+f\SpecialChar \textcompwordmark{}
+loatpagefraction
 \series default
 )
 \end_layout
@@ -19294,11 +19338,13 @@ Rotated floats are always placed on its own page (or column, when you have
  To force a certain rotation direction for all pages, you can add either
  the option 
 \series bold
-figuresleft
+f\SpecialChar \textcompwordmark{}
+iguresleft
 \series default
  or 
 \series bold
-figuresright
+f\SpecialChar \textcompwordmark{}
+iguresright
 \series default
  to the document class options.
 \end_layout
@@ -20100,16 +20146,7 @@ caption
 \series bold
 tablecaptionabove
 \series default
-, or you can use the environment 
-\family sans
-caption\InsetSpace ~
-above
-\family default
- instead of the 
-\family sans
-caption
-\family default
- environment.
+.
 \end_layout
 
 \begin_layout Standard
@@ -28211,6 +28248,40 @@ def
  is recognized and printed bold in the output.
 \end_layout
 
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ If you don't get bold keywords when using typewriter fonts, your typewriter
+ font probably doesn't provide a bold shape.
+ In this case select a different one in the menu 
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Fonts
+\family default
+.
+ (The fonts 
+\emph on
+LuxiMono, BeraMono
+\emph default
+ and 
+\emph on
+Courier
+\emph default
+ provide bold shapes.)
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 In section 
 \family sans
@@ -28353,7 +28424,11 @@ status open
 \series bold
 Note:
 \series default
- The line numbering is shifted by a line by every previous listing.
+ Due to a bug in the 
+\series bold
+listings
+\series default
+ package the line numbering is shifted by a line by every previous listing.
  That's the reason why the lines 2 and 5 are numbered in the above listing
  and not the lines 3 and 6.
 \end_layout
 
 \begin_layout Standard
 \begin_inset Formula \begin{equation}
-W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
+W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
 
 \end_inset
 
@@ -29569,7 +29644,7 @@ reference "eq:Wtot_n"
 
 \begin_layout Standard
 \begin_inset Formula \begin{equation}
-W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
+W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
 
 \end_inset
 
 
 \begin_layout Standard
 \begin_inset Formula \begin{equation}
-W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
+W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
 
 \end_inset