]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/EmbeddedObjects.lyx
Spanish updates from Ignacio
[lyx.git] / lib / doc / EmbeddedObjects.lyx
index 12f9468b10c0c8901d280603118cf72cf7c7717c..f94c3c969fe356eaea979cc4b427413b74e18db9 100644 (file)
 \renewcommand{\tableofcontents}{%
  \pdfbookmark[1]{Contents}{}
  \myTOC
- \clearpage
+ \cleardoublepage
  \pagenumbering{arabic}}
 
 % provides caption formatting
-\usepackage[labelfont={bf,sf}, tableposition=top]{caption}
+\usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
 
 % provides commands to set caption
 % beside tables/images
  \let\figure\MyFigure
  \let\endfigure\MyEndfigure}
 
-% use the marginnote package for margin notes
-\usepackage{marginnote}
-\let\marginpar\marginnote
-
 % enables calculation of values,
 \usepackage{calc}
 
 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
 \definecolor{lightgrey}{gray}{0.8}
 
-% used for tables with dashed lines
-\usepackage{arydshln}
-
 % used for multirows
 \usepackage{multirow}
 %\renewcommand{\multirowsetup}{\centering}
 % redefine the greyed out note
 \renewenvironment{lyxgreyedout}
  {\textcolor{blue}\bgroup}{\egroup}
+
+% ------------------------------------
+% used to check for needed LaTeX packages
+\usepackage{ifthen}
+
+% check for package arydshln
+% used for tables with dashed lines
+\newboolean{arydshln}
+\IfFileExists{arydshln.sty}
+ {\usepackage{arydshln}
+  \setboolean{arydshln}{true}}
+ {\setboolean{arydshln}{false}}
+
+% check for package marginnote
+% used for margin notes
+\newboolean{marginnote}
+\IfFileExists{marginnote.sty}
+ {\usepackage{marginnote}
+  \let\marginpar\marginnote
+  \setboolean{marginnote}{true}}
+ {\setboolean{marginnote}{false}}
 \end_preamble
 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage
 \language english
 \bullet 3 2 7 -1
 \tracking_changes false
 \output_changes true
-\author "usti
+\author "" 
 \end_header
 
 \begin_body
@@ -246,7 +260,7 @@ status collapsed
 status collapsed
 
 \begin_layout Standard
-original author: Uwe Stöhr <uwestoehr@web.de>
+original author: Uwe Stöhr
 \end_layout
 
 \end_inset
@@ -275,19 +289,18 @@ Version 1.5.0-
 status open
 
 \begin_layout Standard
-To export this document to PDF, PS, or DVI the LaTeX-packages 
+To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
 \series bold
 arydshln
 \series default
-, 
+ and 
 \series bold
 marginnote
-\series default
-, and 
-\series bold
-prettyref
 \series default
  must be installed.
+ If they are not installed you can export the document anyway but the sections
+ where the packages are required won't appear in the output.
 \end_layout
 
 \begin_layout Standard
@@ -728,7 +741,7 @@ reference "fig:escher"
 
 \end_inset
 
- are an example of cross-referenced figures.
+ are examples of cross-referenced figures.
  Figures can be cross-referenced in the text by referencing their label.
  To do this insert a label in the caption using the menu 
 \family sans
@@ -4583,34 +4596,37 @@ name "Longtables ! Captions"
 
 \begin_layout Standard
 A longtable cannot be put into a table float because floats can only be
- on one page.
Therefore the caption layout cannot be used for longtables.
+ on one page but the caption environment of floats can also be used for
+ longtables.
 \end_layout
 
 \begin_layout Standard
-To add a caption, a dirty hack is needed:
+As LyX does not yet fully support captions in longtables, a hack is needed
+ to create them:
 \end_layout
 
 \begin_layout Enumerate
 Create a longtable
+\family sans
+.
 \end_layout
 
 \begin_layout Enumerate
-Mark the first row an disable its upper line
+Mark the first row an disable its upper line.
 \end_layout
 
 \begin_layout Enumerate
-Insert the following command as ERT into the first table cell:
-\newline
-
+Insert a caption via the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Caption
+\family default
 \series bold
-
-\backslash
-caption[short title]{full title}
-\backslash
-
-\backslash
-%
+\series default
+into the first table cell.
+\newline
+You can also add a short title for the caption.
 \end_layout
 
 \begin_layout Enumerate
@@ -4620,29 +4636,31 @@ Insert a
 
 
 \series bold
+
+\backslash
+
+\backslash
 %
 \series default
 
 \begin_inset Quotes erd
 \end_inset
 
- as ERT into every cell of the first row
+ as ERT behind the caption.
 \end_layout
 
 \begin_layout Standard
-The 
+A short title that will appear in the LOT instead of the full title.
+ The 
 \series bold
 
 \backslash
-caption
-\series default
- command is used like for normal captions, the short title that will appear
- in the LOT instead of the full title is optional.
- The 
-\series bold
+
+\backslash
 %
 \series default
- in the table cells omits the vertical line between the the cells.
+ behind the caption omits the vertical lines between the following cells
+ in the row.
  The first table row is now only a dummy row for the caption, the actual
  table starts with the second row.
 \end_layout
@@ -4665,18 +4683,15 @@ Here is a short longtable to see how it works:
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
+\begin_inset Caption
 
 \begin_layout Standard
+Longtable with caption
+\begin_inset OptArg
+status open
 
-
-\backslash
-caption[Longtable]{Longtable with caption}
-\backslash
-
-\backslash
-%
+\begin_layout Standard
+Longtable
 \end_layout
 
 \end_inset
@@ -4685,16 +4700,17 @@ caption[Longtable]{Longtable with caption}
 \end_layout
 
 \end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
 
-\begin_layout Standard
+
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 
+
+\backslash
+
+\backslash
 %
 \end_layout
 
@@ -4709,16 +4725,6 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -4728,16 +4734,15 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
 
-\begin_layout Standard
-
-%
 \end_layout
 
 \end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
+\begin_layout Standard
 
 \end_layout
 
@@ -4746,18 +4751,8 @@ status collapsed
 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
 \begin_layout Standard
 
-%
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \end_inset
@@ -5094,21 +5089,17 @@ name "Longtables ! References"
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
+\begin_inset Caption
 
 \begin_layout Standard
-
-
-\backslash
-caption{Referenced longtable
-\end_layout
+Referenced longtable
+\begin_inset LatexCommand label
+name "tab:RefExample"
 
 \end_inset
 
 
-\begin_inset LatexCommand label
-name "tab:RefExample"
+\end_layout
 
 \end_inset
 
@@ -5118,7 +5109,7 @@ status collapsed
 
 \begin_layout Standard
 
-}
+
 \backslash
 
 \backslash
@@ -5136,16 +5127,6 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -5155,16 +5136,6 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -5173,18 +5144,8 @@ status collapsed
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
 
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
 \begin_layout Standard
 
-%
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \end_inset
@@ -5192,18 +5153,8 @@ status collapsed
 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
 \begin_layout Standard
 
-%
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \end_inset
@@ -5452,27 +5403,7 @@ asd
 \end_layout
 
 \begin_layout Standard
-To reference a longtable, insert a label into the 
-\series bold
-
-\backslash
-caption
-\series default
- command.
- This is done by splitting the ERT of the caption command.
- The part of the caption command before the last closing brace
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-caption[short title]{full title
-\end_layout
-
-\begin_layout Standard
-is in the first ERT box, the label is inserted behind it.
+To reference a longtable, insert a label into the caption.
  Note that you have to add the label prefix 
 \begin_inset Quotes eld
 \end_inset
@@ -5486,23 +5417,10 @@ tab:
 \end_inset
 
  manually in the label field.
- The second ERT box contains the rest of the 
-\backslash
-caption command
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-}
-\backslash
-
-\backslash
-%
 \end_layout
 
 \begin_layout Standard
-and is inserted behind the label box, see Table\InsetSpace ~
+This is a reference to Table\InsetSpace ~
 
 \begin_inset LatexCommand ref
 reference "tab:RefExample"
@@ -5552,7 +5470,7 @@ The maximal width of of caption lines is defined by the length
 LTcapwidth
 \series default
 .
- It default value is 4\InsetSpace \thinspace{}
+ Its default value is 4\InsetSpace \thinspace{}
 in.
  To change it add the following command to your document preamble or as
  ERT into your document before the longtable that should be affected
@@ -5597,23 +5515,16 @@ The following tables show the difference:
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
+\begin_inset Caption
 
 \begin_layout Standard
-
-
-\backslash
-caption[caption with default width]{long full title with default width
-\end_layout
+long full title with default width long full title with default width long
+ full title with default width
+\begin_inset OptArg
+status collapsed
 
 \begin_layout Standard
-
-long full title with default width long full title with default width}
-\backslash
-
-\backslash
-%
+caption with default width
 \end_layout
 
 \end_inset
@@ -5622,16 +5533,17 @@ long full title with default width long full title with default width}
 \end_layout
 
 \end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
 
-\begin_layout Standard
+
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 
+
+\backslash
+
+\backslash
 %
 \end_layout
 
@@ -5646,16 +5558,6 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -5665,16 +5567,15 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
 
-\begin_layout Standard
-
-%
 \end_layout
 
 \end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
+\begin_layout Standard
 
 \end_layout
 
@@ -5683,18 +5584,8 @@ status collapsed
 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
 \begin_layout Standard
 
-%
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \end_inset
@@ -5971,35 +5862,22 @@ LTcapwidth}{5cm}
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
+\begin_inset Caption
 
 \begin_layout Standard
-
-
-\backslash
-caption[caption with width
-\backslash
-,=
-\backslash
-,5
-\backslash
-,cm]{long full title with width set to 5
-\backslash
-,cm
-\end_layout
+long full title with width set to 5\InsetSpace \thinspace{}
+cm long full title with width set to
+ 5\InsetSpace \thinspace{}
+cm long full title with width set to 5\InsetSpace \thinspace{}
+cm
+\begin_inset OptArg
+status collapsed
 
 \begin_layout Standard
-
-long full title with width set to 5
-\backslash
-,cm long full title with width set to 5
-\backslash
-,cm}
-\backslash
-
-\backslash
-%
+caption with width\InsetSpace \thinspace{}
+=\InsetSpace \thinspace{}
+5\InsetSpace \thinspace{}
+cm
 \end_layout
 
 \end_inset
@@ -6008,16 +5886,17 @@ long full title with width set to 5
 \end_layout
 
 \end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
 
-\begin_layout Standard
+
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 
+
+\backslash
+
+\backslash
 %
 \end_layout
 
@@ -6032,16 +5911,6 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -6051,16 +5920,15 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
 
-\begin_layout Standard
-
-%
 \end_layout
 
 \end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
+\begin_layout Standard
 
 \end_layout
 
@@ -6069,18 +5937,8 @@ status collapsed
 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
 \begin_layout Standard
 
-%
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \end_inset
@@ -6359,35 +6217,23 @@ name "Longtables ! Different Captions for Pages"
 
 \begin_layout Standard
 When the other captions should differ from the one of the first table page,
- insert the 
-\series bold
+ insert a caption with a non-empty short title in a dummy caption row marked
+ as first header.
+ The caption used for the other table pages is inserted as caption without
+ a short title in a dummy caption row that is marked as main header.
+ When this caption shouldn't include the table number, use the command
+\end_layout
 
-\backslash
-caption
-\series default
- command with a non-empty short title in a dummy caption row marked as first
- header.
- The caption used for the other table pages is inserted as 
-\series bold
+\begin_layout Standard
 
-\backslash
-caption
-\series default
- command without a short title in a dummy caption row that is marked as
- main header.
- When this caption shouldn't include the table number, use the command 
 \series bold
 
 \backslash
-caption*
-\series default
- instead of 
-\series bold
+caption*{caption text}
+\end_layout
 
-\backslash
-caption
-\series default
-.
+\begin_layout Standard
+instead of LyX's caption box.
  The label to reference the table is inserted into the caption of the first
  header.
  Table\InsetSpace ~
@@ -6414,35 +6260,21 @@ reference "tab:DiffCaptions"
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
+\begin_inset Caption
 
 \begin_layout Standard
-
-
-\backslash
-caption[Example Phone List]{Example Phone List 
-\end_layout
-
-\end_inset
-
-
+Example Phone List
 \begin_inset LatexCommand label
 name "tab:DiffCaptions"
 
 \end_inset
 
 
-\begin_inset ERT
+\begin_inset OptArg
 status collapsed
 
 \begin_layout Standard
-
-}
-\backslash
-
-\backslash
-%
+Example Phone List
 \end_layout
 
 \end_inset
@@ -6451,16 +6283,17 @@ status collapsed
 \end_layout
 
 \end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
-\begin_inset Text
 
-\begin_layout Standard
+
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 
+
+\backslash
+
+\backslash
 %
 \end_layout
 
@@ -6471,20 +6304,19 @@ status collapsed
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
 \begin_inset Text
 
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
 \begin_layout Standard
 
-%
 \end_layout
 
 \end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
 
+\begin_layout Standard
 
 \end_layout
 
@@ -6585,16 +6417,6 @@ caption*{Continued Example Phone List}
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -6604,16 +6426,6 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -8609,22 +8421,27 @@ must be inserted as ERT at the beginning of the cell.
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
+\begin_inset Caption
 
 \begin_layout Standard
+Table with forced page break in table cell
+\begin_inset LatexCommand label
+name "tab:ForcedPagebreak"
+
+\end_inset
 
 
-\backslash
-caption[Table with forced page break in table cell]{Table with forced page
- break in table cell 
+\begin_inset OptArg
+status collapsed
+
+\begin_layout Standard
+Table with forced page break in table cell
 \end_layout
 
 \end_inset
 
 
-\begin_inset LatexCommand label
-name "tab:ForcedPagebreak"
+\end_layout
 
 \end_inset
 
@@ -8634,7 +8451,7 @@ status collapsed
 
 \begin_layout Standard
 
-}
+
 \backslash
 
 \backslash
@@ -8652,16 +8469,6 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -8671,16 +8478,6 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -8763,7 +8560,7 @@ status collapsed
 
 
 \backslash
-caption{Continued table with forced page break in table cell}
+caption*{Continued table with forced page break in table cell}
 \backslash
 
 \backslash
@@ -8781,16 +8578,6 @@ caption{Continued table with forced page break in table cell}
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -8800,16 +8587,6 @@ status collapsed
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-%
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -16860,6 +16637,37 @@ name "Table Customization ! Dashed Lines"
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+ifarydshln
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Note
+status open
+
+\begin_layout Standard
+The following section will only be displayed when you have the LaTeX-package
+\series bold
+arydshln
+\series default
+ is installed.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -17334,6 +17142,60 @@ reference "sec:Colored-Tables"
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+else
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Note
+status open
+
+\begin_layout Standard
+The following will be displayed when the LaTeX-package 
+\series bold
+arydshln
+\series default
+ is not installed:
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+You need to install the package 
+\series bold
+arydshln
+\series default
+ to see the contents of this section in the output.
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+fi
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Chapter
@@ -22789,6 +22651,44 @@ Note:
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+ifmarginnote
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Note
+status open
+
+\begin_layout Standard
+The following section will only be displayed when you have the LaTeX-package
+\series bold
+marginnote
+\series default
+ is installed.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -23248,7 +23148,7 @@ myMarginpar{#1}}
 \series default
 
 \begin_inset Note Note
-status open
+status collapsed
 
 \begin_layout Standard
 The margin note format is changed only for this example.
@@ -23257,6 +23157,60 @@ The margin note format is changed only for this example.
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+else
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Note
+status open
+
+\begin_layout Standard
+The following will be displayed when the LaTeX-package 
+\series bold
+marginnote
+\series default
+ is not installed:
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+You need to install the LaTeX-package 
+\series bold
+marginnote
+\series default
+ to see the following part of this section in the output.
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+fi
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Chapter