% 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
\backslash
newcommand{
\backslash
-TabBesBeg}{%
+TabBesBeg}[1][1.0]{%
\begin_inset Newline newline
\end_inset
status open
\begin_layout Plain Layout
-
-\series bold
\begin_inset space ~
\end_inset
\begin_layout Plain Layout
-\series bold
+\series medium
\begin_inset space ~
\end_inset
\begin_layout Plain Layout
-\series bold
+\series medium
\begin_inset space ~
\end_inset
\backslash
-renewenvironment{table}{
+renewenvironment{table}[1]{
\backslash
-begin{SCtable}}{
+begin{SCtable}[#1]##1}{
\backslash
end{SCtable}}}
\end_layout
status open
\begin_layout Plain Layout
-
-\series bold
\begin_inset space ~
\end_inset
status open
\begin_layout Plain Layout
-
-\series bold
\begin_inset space ~
\end_inset
\backslash
newcommand{
\backslash
-FigBesBeg}{%
+FigBesBeg}[1][1.0]{%
\begin_inset Newline newline
\end_inset
status open
\begin_layout Plain Layout
-
-\series bold
\begin_inset space ~
\end_inset
status open
\begin_layout Plain Layout
-
-\series bold
\begin_inset space ~
\end_inset
status open
\begin_layout Plain Layout
-
-\series bold
\begin_inset space ~
\end_inset
\backslash
-renewenvironment{figure}{
+renewenvironment{figure}[1]{
\backslash
-begin{SCfigure}}{
+begin{SCfigure}[#1]##1}{
\backslash
end{SCfigure}}}
\end_layout
status open
\begin_layout Plain Layout
-
-\series bold
\begin_inset space ~
\end_inset
status open
\begin_layout Plain Layout
-
-\series bold
\begin_inset space ~
\end_inset
\begin_layout Standard
en código TeX antes del flotante.
- Detrás del flotante inserta
+ Y inserta
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-en código TeX para volver a la definición original de flotantes.
+en código TeX
+\lang english
+at the point where you want to
+\lang spanish
+ volver a la definición original de flotantes.
\end_layout
\begin_layout Standard
\begin_inset VSpace medskip
\end_inset
+
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+The default caption width is the width of the image/table.
+ For thin image/tables, like in
+\lang spanish
+cuadro
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:encab-al-lado"
+
+\end_inset
+
+,
+\lang english
+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
+\lang english
+
+\backslash
+FigBesBeg[factor]
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+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
+\lang spanish
+cuadro
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:cap-beside-tab-wider"
+
+\end_inset
+
+
+\lang english
+the factor 5 was used.
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Nota
+\lang english
+:
+\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
+
Más información sobre el paquete
\series bold
sidecap
\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
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "fig:encab-al-lado-de-fig"
+
+\end_inset
+
+Leyenda centrada verticalmente junto a una figura.
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
\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
+
+
+\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:encab-al-lado-de-fig"
+name "tab:cap-beside-tab-wider"
\end_inset
-Leyenda centrada verticalmente junto a una figura.
+
+\lang english
+This is a caption is wider than the one in
+\lang spanish
+cuadro
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:encab-al-lado"
+
+\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
\backslash
-FigBesEnd
+TabBesEnd
\end_layout
\end_inset
\end_inset
-\end_layout
-
-\begin_layout Bibliography
-\labelwidthstring Bibliografía
-\begin_inset CommandInset bibitem
-LatexCommand bibitem
-key "wrapfig"
-
-\end_inset
-
-Documentación del paquete LaTeX
-\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-paquetes ! 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
\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