EmbeddedObjects:

- referencing subfigures
- reflect new caption inset

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17148 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2007-02-12 02:12:06 +00:00
parent dc6ed95695
commit 35558e7b87
2 changed files with 312 additions and 59 deletions

View File

@ -203,6 +203,7 @@
\bullet 3 2 7 -1
\tracking_changes false
\output_changes true
\author "Uwe Stöhr"
\author ""
\end_header
@ -381,6 +382,15 @@ reference "cha:Units-available-in"
You can rotate images counter-clockwise by setting a rotation angle and
a rotation origin.
The image will also be rotated inside LyX.
\newline
Images can be opened in a program
of your choice when pressing the
\family sans
Edit
\family default
button.
The program can be set for every image format in the file format settings
in LyX's preferences.
\end_layout
\begin_layout Description
@ -491,8 +501,13 @@ x.eps.bb
\end_layout
\begin_layout Standard
\begin_inset VSpace bigskip
\end_inset
\newpage
\end_layout
\begin_layout Standard
This is an example image in EPS format
\begin_inset Foot
status collapsed
@ -591,33 +606,24 @@ Insert\SpecialChar \menuseparator
Float\SpecialChar \menuseparator
Figure
\family default
inserts a float with the label
inserts a float with a caption that has the label
\begin_inset Quotes eld
\end_inset
\series bold
Figure\InsetSpace ~
#:
\series default
\begin_inset Quotes erd
\end_inset
.
Set the cursor behind this label, press Enter and insert the image as described
above to get the caption printed below the image.
This was done for Figure\InsetSpace ~
(# is the actual number).
You can insert the image above the caption, like in Figure\InsetSpace ~
\begin_inset LatexCommand ref
reference "fig:kill-plat"
\end_inset
.
If you want the caption to be above the image, set the cursor at the end
of the caption, press enter and insert the image.
This was done in Figure\InsetSpace ~
or below the caption, like in Figure\InsetSpace ~
\begin_inset LatexCommand ref
reference "fig:escher"
@ -737,8 +743,8 @@ reference "fig:escher"
\end_inset
are examples of cross-referenced figures.
Figures can be cross-referenced in the text by referencing their label.
are examples of referenced figures.
Figures can be referenced in the text by referencing their label.
To do this insert a label in the caption using the menu
\family sans
Insert\SpecialChar \menuseparator
@ -785,6 +791,15 @@ above
\end_inset
at all.
\newline
Referencing is explained in detail in section\InsetSpace ~
\begin_inset LatexCommand ref
reference "sec:Referencing-Floats"
\end_inset
.
\end_layout
\begin_layout Standard
@ -802,6 +817,16 @@ Subfigure
\family default
and enter the subcaption for the image in the caption field.
Note that only the main caption of the float is added to the List of Figures.
\newline
Ref
erencing subfigures is explained in section\InsetSpace ~
\begin_inset LatexCommand ref
reference "sub:Referencing-Subfigures"
\end_inset
.
\end_layout
\begin_layout Standard
@ -842,7 +867,7 @@ status open
lyxscale 60
width 45col%
subcaption
subcaptionText "Platypus"
subcaptionText "\label{fig: Platypus} Platypus"
\end_inset
@ -2114,24 +2139,18 @@ Table
\end_layout
\begin_layout Standard
The float appears as a collapsible box with the label
The float appears as a collapsible box with a caption that has the label
\begin_inset Quotes eld
\end_inset
\series bold
Table\InsetSpace ~
#:
\series default
\begin_inset Quotes erd
\end_inset
inside it.
The text following the label is the caption of the table.
To insert a table to the the float set the cursor at the end of the caption
text, press enter and insert the table.
The caption is now printed above the table.
(# is the actual table number).
You can insert tables to the float above or below the caption.
\end_layout
\begin_layout Standard
@ -2251,10 +2270,15 @@ reference
\end_inset
.
\end_layout
\newline
Referencing is explained in detail in section\InsetSpace ~
\begin_layout Standard
\begin_inset LatexCommand ref
reference "sec:Referencing-Floats"
\end_inset
.
\end_layout
\begin_layout Section
@ -18009,9 +18033,9 @@ Back and you can use it to set the cursor
\end_layout
\begin_layout Subsection
Cross-reference formats
Cross-Reference Formats
\begin_inset LatexCommand label
name "sub:Cross-reference-formats"
name "sub:Cross-Reference-Formats"
\end_inset
@ -18150,6 +18174,72 @@ Format
e box.
\end_layout
\begin_layout Subsection
Referencing Subfigures
\begin_inset LatexCommand label
name "sub:Referencing-Subfigures"
\end_inset
\begin_inset LatexCommand index
name "References ! to Subfigures"
\end_inset
\end_layout
\begin_layout Standard
Currently referencing subfigures is not supported by LyX, so you have to
use LaTeX-commands.
The label is the created
\series bold
\series default
with the command
\end_layout
\begin_layout Standard
\series bold
\backslash
label{fig: YourLabelName}
\end_layout
\begin_layout Standard
that is directly inserted into the subfigure caption field.
To reference the label add this command in ERT
\end_layout
\begin_layout Standard
\series bold
\backslash
ref{fig: YourLabelName}
\end_layout
\begin_layout Standard
to the position in your document where the reference should be placed.
Here is a reference to a subfigure: Subfigure\InsetSpace ~
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
ref{fig: Platypus}
\end_layout
\end_inset
.
\end_layout
\begin_layout Subsection
Automatic Reference Naming
\begin_inset LatexCommand index
@ -18264,7 +18354,7 @@ reference
style, described in section\InsetSpace ~
\begin_inset LatexCommand ref
reference "sub:Cross-reference-formats"
reference "sub:Cross-Reference-Formats"
\end_inset
@ -18388,6 +18478,23 @@ hyperref
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Note Greyedout
status open
\begin_layout Standard
\series bold
Note:
\series default
The set reference position has no effect for references to subfigures.
\end_layout
\end_inset
\end_layout
\begin_layout Section

View File

@ -203,6 +203,7 @@
\bullet 3 2 7 -1
\tracking_changes false
\output_changes true
\author "Uwe Stöhr"
\author ""
\end_header
@ -373,8 +374,11 @@ El diálogo Gráficos puede lanzarse en cualquier momento haciendo click-derecha
\end_layout
\begin_layout Description
Gráficos Aquí puedes elegir tu archivo gráfico y ajustar separadamente su
presentación en LyX y en la salida.
Gráficos
\lang english
Here you can choose an image file and adjust its appearance in the output.
\lang spanish
En el apéndice\InsetSpace ~
\begin_inset LatexCommand ref
@ -388,6 +392,16 @@ Puedes girar
los gráficos en el sentido de las agujas de reloj estableciendo un ángulo
y un origen de rotación.
La imagen también gira en LyX.
\lang english
\newline
Images can be opened in a program of your choice when pressing the
\family sans
Edit
\family default
button.
The program can be set for every image format in the file format settings
in LyX's preferences.
\end_layout
\begin_layout Description
@ -415,9 +429,13 @@ as.
\begin_layout Description
Opciones\InsetSpace ~
extra Aquí puedes poner una imagen como subfigura de una figura
flotante que tiene su propio título.
Las subfiguras se explican en la sección\InsetSpace ~
extra
\lang english
In this tab you can modify the appearance of the image within LyX and set
the image to be a subfigure of a figure float with an own caption.
\lang spanish
Las subfiguras se explican en la sección\InsetSpace ~
\begin_inset LatexCommand ref
reference "sec:Figuras-Flotantes"
@ -491,8 +509,9 @@ x.eps.bb
\end_layout
\begin_layout Standard
\begin_inset VSpace bigskip
\end_inset
\newpage
\end_layout
@ -595,26 +614,21 @@ Insertar\SpecialChar \menuseparator
Flotante\SpecialChar \menuseparator
Figura
\family default
insertan un flotante con la etiqueta "
\series bold
Figura #:
\series default
".
Detrás de esta etiqueta escribe el texto para el encabezado que quieras
para la figura.
Para insertar una imagen sobre su título sitúa el cursor delante del encabezado
, presiona Enter e inserta la imagen como se describe arriba.
Esto se hace para la Figura\InsetSpace ~
insertan un flotante con la etiqueta "Figura #:"
\lang english
(# is the actual number)
\lang spanish
.
\lang english
You can insert the image above the caption, like in Figure\InsetSpace ~
\begin_inset LatexCommand ref
reference "fig:kill-plat"
\end_inset
.
Si quieres que la imagen esté bajo su título, sitúa el cursor detrás del
mismo, presiona Enter e inserta la imagen.
Esto se hace para la Figura\InsetSpace ~
or below the caption, like in Figure\InsetSpace ~
\begin_inset LatexCommand ref
reference "fig:escher"
@ -622,6 +636,8 @@ reference "fig:escher"
\end_inset
.
\lang spanish
Más información sobre ubicación de encabezados en la sección\InsetSpace ~
\begin_inset LatexCommand ref
@ -767,6 +783,17 @@ cruzada
Es importante emplear referencias a flotantes, mejor que alusiones vagas
como "la figura de arriba", porque como LaTeX recolocará los flotantes
en el documento final, podría no quedar "arriba" precisamente.
\lang english
\newline
Referencing is explained in detail in section\InsetSpace ~
\begin_inset LatexCommand ref
reference "sec:Referencing-Floats"
\end_inset
.
\end_layout
\begin_layout Standard
@ -789,6 +816,17 @@ Descripción
.
Observa que sólo el título principal del encabezado del flotante se añade
a la Lista de Figuras.
\lang english
\newline
Referencing subfigures is explained in section\InsetSpace ~
\begin_inset LatexCommand ref
reference "sub:Referencing-Subfigures"
\end_inset
.
\end_layout
\begin_layout Standard
@ -829,7 +867,7 @@ status open
lyxscale 60
width 45col%
subcaption
subcaptionText "Platypus"
subcaptionText "\label{fig: Platypus} Platypus"
\end_inset
@ -1913,12 +1951,13 @@ Tabla
\end_layout
\begin_layout Standard
El flotante se muestra como un cuadro desplegable con la etiqueta "
\series bold
Tabla\InsetSpace ~
#:
\series default
" en su interior.
El flotante se muestra como un cuadro desplegable con la etiqueta "Tabla\InsetSpace ~
#:"
\lang english
(# is the actual number)
\lang spanish
..
El texto que sigue a dicha etiqueta es el encabezado de tabla.
Para insertar una tabla en el flotante se sitúa el cursor al final del
texto de encabezado y se pulsa Enter.
@ -2043,6 +2082,17 @@ cruzada
\end_inset
.
\newline
\lang english
Referencing is explained in detail in section\InsetSpace ~
\begin_inset LatexCommand ref
reference "sec:Referencing-Floats"
\end_inset
.
\end_layout
@ -17908,6 +17958,82 @@ Formato
de la ventana de referencia cruzada, que aparece al pinchar sobre el cuadro.
\end_layout
\begin_layout Subsection
\lang english
Referencing Subfigures
\begin_inset LatexCommand label
name "sub:Referencing-Subfigures"
\end_inset
\begin_inset LatexCommand index
name "Referencias ! to Subfigures"
\end_inset
\end_layout
\begin_layout Standard
\lang english
Currently referencing subfigures is not supported by LyX, so you have to
use LaTeX-commands.
The label is the created
\series bold
\series default
with the command
\end_layout
\begin_layout Standard
\series bold
\lang english
\backslash
label{fig: YourLabelName}
\end_layout
\begin_layout Standard
\lang english
that is directly inserted into the subfigure caption field.
To reference the label add this command in ERT
\end_layout
\begin_layout Standard
\series bold
\lang english
\backslash
ref{fig: YourLabelName}
\end_layout
\begin_layout Standard
\lang english
to the position in your document where the reference should be placed.
Here is a reference to a subfigure: Subfigure\InsetSpace ~
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
ref{fig: Platypus}
\end_layout
\end_inset
.
\end_layout
\begin_layout Subsection
Designación Automática de Referencias
\begin_inset LatexCommand index
@ -18131,6 +18257,26 @@ en el preámbulo
\end_inset
\end_layout
\begin_layout Standard
\lang english
\begin_inset Note Greyedout
status open
\begin_layout Standard
\series bold
\lang english
Note:
\series default
The set reference position has no effect for references to subfigures.
\end_layout
\end_inset
\end_layout
\begin_layout Section