]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/EmbeddedObjects.lyx
- EmbeddedObjects.lyx: fix broken link and remove unreferenced and unnecessary biblio...
[lyx.git] / lib / doc / EmbeddedObjects.lyx
index 889a3fa2f01159c6ab6f8b2fb20d315c1dec948f..ccd8e9f80dfa2f3b828a715b2c2d365cb4491843 100644 (file)
 
 % provides commands to set caption
 % beside tables/images
-\usepackage{sidecap}
-
-\newcommand{\TabBesBeg}{%
+\newcommand{\TabBesBeg}[1][1.0]{%
  \let\MyTable\table
  \let\MyEndtable\endtable
- \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
+ \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
 
 \newcommand{\TabBesEnd}{%
  \let\table\MyTable
  \let\endtable\MyEndtable}
 
-\newcommand{\FigBesBeg}{%
+\newcommand{\FigBesBeg}[1][1.0]{%
  \let\MyFigure\figure
  \let\MyEndfigure\endfigure
- \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
+ \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
 
 \newcommand{\FigBesEnd}{%
  \let\figure\MyFigure
@@ -21338,7 +21336,7 @@ of
 \begin_inset space ~
 \end_inset
 
-floats try to place the float on its own page 
+floats try to place the float on its own page
 \end_layout
 
 \begin_layout Standard
@@ -23463,6 +23461,13 @@ To place in LyX the caption of a float on the side, it is necessary to add
  these commands to the document preamble:
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage pagebreak
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 \noindent
 \begin_inset CommandInset line
@@ -23483,7 +23488,7 @@ height "1pt"
 \backslash
 newcommand{
 \backslash
-TabBesBeg}{%
+TabBesBeg}[1][1.0]{%
 \begin_inset Newline newline
 \end_inset
 
@@ -23492,8 +23497,6 @@ TabBesBeg}{%
 status open
 
 \begin_layout Plain Layout
-
-\series bold
 \begin_inset space ~
 \end_inset
 
@@ -23518,7 +23521,7 @@ status open
 
 \begin_layout Plain Layout
 
-\series bold
+\series medium
 \begin_inset space ~
 \end_inset
 
@@ -23543,7 +23546,7 @@ status open
 
 \begin_layout Plain Layout
 
-\series bold
+\series medium
 \begin_inset space ~
 \end_inset
 
@@ -23554,9 +23557,9 @@ status open
 
 
 \backslash
-renewenvironment{table}{
+renewenvironment{table}[1]{
 \backslash
-begin{SCtable}}{
+begin{SCtable}[#1]##1}{
 \backslash
 end{SCtable}}}
 \end_layout
@@ -23577,8 +23580,6 @@ TabBesEnd}{%
 status open
 
 \begin_layout Plain Layout
-
-\series bold
 \begin_inset space ~
 \end_inset
 
@@ -23602,8 +23603,6 @@ MyTable
 status open
 
 \begin_layout Plain Layout
-
-\series bold
 \begin_inset space ~
 \end_inset
 
@@ -23628,7 +23627,7 @@ MyEndtable
 \backslash
 newcommand{
 \backslash
-FigBesBeg}{%
+FigBesBeg}[1][1.0]{%
 \begin_inset Newline newline
 \end_inset
 
@@ -23637,8 +23636,6 @@ FigBesBeg}{%
 status open
 
 \begin_layout Plain Layout
-
-\series bold
 \begin_inset space ~
 \end_inset
 
@@ -23662,8 +23659,6 @@ figure
 status open
 
 \begin_layout Plain Layout
-
-\series bold
 \begin_inset space ~
 \end_inset
 
@@ -23687,8 +23682,6 @@ endfigure
 status open
 
 \begin_layout Plain Layout
-
-\series bold
 \begin_inset space ~
 \end_inset
 
@@ -23699,9 +23692,9 @@ status open
 
 
 \backslash
-renewenvironment{figure}{
+renewenvironment{figure}[1]{
 \backslash
-begin{SCfigure}}{
+begin{SCfigure}[#1]##1}{
 \backslash
 end{SCfigure}}}
 \end_layout
@@ -23722,8 +23715,6 @@ FigBesEnd}{%
 status open
 
 \begin_layout Plain Layout
-
-\series bold
 \begin_inset space ~
 \end_inset
 
@@ -23747,8 +23738,6 @@ MyFigure
 status open
 
 \begin_layout Plain Layout
-
-\series bold
 \begin_inset space ~
 \end_inset
 
@@ -23795,7 +23784,7 @@ FigBesBeg
 
 \begin_layout Standard
 in TeX-Code before the float.
- After the float insert the command
+ And insert the command
 \end_layout
 
 \begin_layout Standard
@@ -23807,7 +23796,8 @@ FigBesEnd
 \end_layout
 
 \begin_layout Standard
-in TeX-Code to get back to the original float definition.
+in TeX-Code at the point where you want to get back to the original float
+ definition.
 \end_layout
 
 \begin_layout Standard
@@ -23946,6 +23936,115 @@ reference "fig:cap-beside-fig-2"
 \begin_inset VSpace medskip
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
+The default caption width is the width of the image/table.
+ For thin image/tables, like in Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:cap-beside-tab"
+
+\end_inset
+
+, this leads to captions that are too thin.
+ You can increase the width by specifying a factor that will be multiplied
+ with the image/table width to get the caption width.
+ The caption width will automatically be recalculated in case it would protrude
+ over the page or column margin due to the specified width.
+ The 
+\emph on
+factor
+\emph default
+ can either be given as optional argument for 
+\series bold
+
+\backslash
+FigBesBeg
+\series default
+:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+FigBesBeg[factor]
+\end_layout
+
+\begin_layout Standard
+or in the definition of 
+\series bold
+
+\backslash
+FigBesBeg
+\series default
+ by replacing the 
+\series bold
+1.0
+\series default
+ with another value.
+ If you do the latter, your factor will be the default if 
+\series bold
+
+\backslash
+FigBesBeg
+\series default
+ is used without an argument.
+ For Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:cap-beside-tab-wider"
+
+\end_inset
+
+ the factor 5 was used.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ For floats with captions set beside, you cannot use the float placement
+ option 
+\family sans
+Here
+\begin_inset space ~
+\end_inset
+
+definitely
+\family default
+ because it is not supported by 
+\series bold
+sidecap
+\series default
+.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace medskip
+\end_inset
+
 For more information about the package 
 \series bold
 sidecap
@@ -24010,7 +24109,7 @@ status collapsed
 
 
 \backslash
-FigBesBeg 
+FigBesBeg
 \end_layout
 
 \end_inset
@@ -24066,7 +24165,7 @@ status collapsed
 
 
 \backslash
-TabBesBeg 
+TabBesBeg
 \end_layout
 
 \end_inset
@@ -24315,7 +24414,44 @@ status collapsed
 
 
 \backslash
-TabBesEnd
+sidecaptionvpos{figure}{c}
+\end_layout
+
+\end_inset
+
+
+\begin_inset Float figure
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename clipart/escher-lsd.eps
+       scale 75
+       scaleBeforeRotation
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "fig:cap-beside-fig-2"
+
+\end_inset
+
+This is a vertically centered caption beside a figure.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -24331,44 +24467,267 @@ status collapsed
 
 
 \backslash
-sidecaptionvpos{figure}{c}
+FigBesEnd
 \end_layout
 
 \end_inset
 
 
-\begin_inset Float figure
-wide false
-sideways false
-status open
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
 
 \begin_layout Plain Layout
-\begin_inset Graphics
-       filename clipart/escher-lsd.eps
-       scale 75
-       scaleBeforeRotation
+
+
+\backslash
+TabBesBeg[5]
+\end_layout
 
 \end_inset
 
 
 \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 "fig:cap-beside-fig-2"
+name "tab:cap-beside-tab-wider"
 
 \end_inset
 
-This is a vertically centered caption beside a figure.
+This is a caption is wider than the one in Table
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:cap-beside-tab"
+
+\end_inset
+
+.
 \end_layout
 
 \end_inset
 
 
+\end_layout
+
+\begin_layout Plain Layout
+\begin_inset Tabular
+<lyxtabular version="3" rows="4" columns="5">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+a
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+b
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+c
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+d
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+e
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" 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" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+f
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+g
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+h
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+i
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+j
+\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 Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -24384,7 +24743,7 @@ status collapsed
 
 
 \backslash
-FigBesEnd
+TabBesEnd
 \end_layout
 
 \end_inset
@@ -36720,52 +37079,6 @@ LaTeX-packages ! endfloat
 \end_inset
 
 
-\end_layout
-
-\begin_layout Bibliography
-\labelwidthstring Bibliography
-\begin_inset CommandInset bibitem
-LatexCommand bibitem
-key "wrapfig"
-
-\end_inset
-
-Documentation of the LaTeX-package 
-\series bold
-
-\begin_inset CommandInset href
-LatexCommand href
-name "wrapfig"
-target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
-
-\end_inset
-
-
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-LaTeX-packages ! wrapfig
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-vspace{4mm}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Bibliography
@@ -37120,7 +37433,7 @@ Documentation of the LaTeX-package
 \begin_inset CommandInset href
 LatexCommand href
 name "refstyle"
-target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
+target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
 
 \end_inset