Re: Cross-Reference to figure

2013-03-25 Thread Helge Hafting

On 22. mars 2013 10:17, Matthias Schmidt wrote:

When I insert a cross-reference to a figure, the cross-reference
writes there the number of the chapter with the figure.

How is the way, to write there the number of the figure instead of the
number of the chapter?



What you insert, is a cross reference to a label. (Not to the figure 
itself.)


If the label is placed inside the caption for your (floating) figure, 
then this will work as intended. The label will pick up the figure 
number, and so any reference to that label will print the figure number.



If the label is placed inside the floating figure but outside the 
caption, then it might refer to the chapter number instead. (Especially 
if the label comes before the caption).


Generally, a label will look backwards in the text, and use the first 
numbered entity it finds. That might be a figure caption, or a 
chapter/section/subsection, or an enumeration.


So, put your label inside the caption, or immediately after the caption. 
Then, the cross reference will print the figure number.


Helge Hafting


Re: Cross-Reference to figure

2013-03-25 Thread Helge Hafting

On 22. mars 2013 10:17, Matthias Schmidt wrote:

When I insert a cross-reference to a figure, the cross-reference
writes there the number of the chapter with the figure.

How is the way, to write there the number of the figure instead of the
number of the chapter?



What you insert, is a cross reference to a label. (Not to the figure 
itself.)


If the label is placed inside the caption for your (floating) figure, 
then this will work as intended. The label will pick up the figure 
number, and so any reference to that label will print the figure number.



If the label is placed inside the floating figure but outside the 
caption, then it might refer to the chapter number instead. (Especially 
if the label comes before the caption).


Generally, a label will look backwards in the text, and use the first 
numbered entity it finds. That might be a figure caption, or a 
chapter/section/subsection, or an enumeration.


So, put your label inside the caption, or immediately after the caption. 
Then, the cross reference will print the figure number.


Helge Hafting


Re: Cross-Reference to figure

2013-03-25 Thread Helge Hafting

On 22. mars 2013 10:17, Matthias Schmidt wrote:

When I insert a cross-reference to a figure, the cross-reference
writes there the number of the chapter with the figure.

How is the way, to write there the number of the figure instead of the
number of the chapter?



What you insert, is a cross reference to a label. (Not to the figure 
itself.)


If the label is placed inside the caption for your (floating) figure, 
then this will work as intended. The label will pick up the figure 
number, and so any reference to that label will print the figure number.



If the label is placed inside the floating figure but outside the 
caption, then it might refer to the chapter number instead. (Especially 
if the label comes before the caption).


Generally, a "label" will look backwards in the text, and use the first 
numbered entity it finds. That might be a figure caption, or a 
chapter/section/subsection, or an enumeration.


So, put your label inside the caption, or immediately after the caption. 
Then, the cross reference will print the figure number.


Helge Hafting


Re: how to cross-reference a figure

2008-05-08 Thread misterHide

got it. My mistake was to place the label in the float object.
But I have to put it in the Description of the image

Thanks

Helge Hafting wrote:
 
 misterHide wrote:
 Hi,

 I want to cross-reference a Figure by theire number.
 It should look like: how figure 12 shows you...

 How could I do so? I just found the opportunity to link against an label.
 Isn't it possible to link against a figure floating object and theire
 name?
   
 You put a label into the caption in the floating figure. (Insert-label)
 Then you link to that label. (Insert-reference)
 The caption will be numbered when the document is printed, and the
 same number will be printed in the reference.
 
 You have various options for how the reference will print, you can get:
 * the figure number, which is what you asked about
 * the page number
 * the figure number and the page number, or strings like figure 12 on 
 the previous page
when the page number is close to the reference.
 
 
 In Lyx, this will look like: how figure REF[my figure] shows you...
 but the REF[my figure] will be replaced by the correct number when you
 print or make a pdf.  LyX always gets these numbers right, no matter how
 much editing you do later. (Contrast to some other word processors that 
 occationally
 mess up references and the TOC...)
 
 I agree that referencing the figure directly by name without having to 
 place a label
 first would be easier - but LyX can't do that - yet.  One small problem 
 with this approach
 is what to do when two figures have the same name.
 
 Helge Hafting
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-cross-reference-a-figure-tp17066132p17122426.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: how to cross-reference a figure

2008-05-08 Thread misterHide

got it. My mistake was to place the label in the float object.
But I have to put it in the Description of the image

Thanks

Helge Hafting wrote:
 
 misterHide wrote:
 Hi,

 I want to cross-reference a Figure by theire number.
 It should look like: how figure 12 shows you...

 How could I do so? I just found the opportunity to link against an label.
 Isn't it possible to link against a figure floating object and theire
 name?
   
 You put a label into the caption in the floating figure. (Insert-label)
 Then you link to that label. (Insert-reference)
 The caption will be numbered when the document is printed, and the
 same number will be printed in the reference.
 
 You have various options for how the reference will print, you can get:
 * the figure number, which is what you asked about
 * the page number
 * the figure number and the page number, or strings like figure 12 on 
 the previous page
when the page number is close to the reference.
 
 
 In Lyx, this will look like: how figure REF[my figure] shows you...
 but the REF[my figure] will be replaced by the correct number when you
 print or make a pdf.  LyX always gets these numbers right, no matter how
 much editing you do later. (Contrast to some other word processors that 
 occationally
 mess up references and the TOC...)
 
 I agree that referencing the figure directly by name without having to 
 place a label
 first would be easier - but LyX can't do that - yet.  One small problem 
 with this approach
 is what to do when two figures have the same name.
 
 Helge Hafting
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-cross-reference-a-figure-tp17066132p17122426.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: how to cross-reference a figure

2008-05-08 Thread misterHide

got it. My mistake was to place the label in the float object.
But I have to put it in the Description of the image

Thanks

Helge Hafting wrote:
> 
> misterHide wrote:
>> Hi,
>>
>> I want to cross-reference a Figure by theire number.
>> It should look like: "how figure 12 shows you..."
>>
>> How could I do so? I just found the opportunity to link against an label.
>> Isn't it possible to link against a figure floating object and theire
>> name?
>>   
> You put a label into the caption in the floating figure. (Insert->label)
> Then you link to that label. (Insert->reference)
> The caption will be numbered when the document is printed, and the
> same number will be printed in the reference.
> 
> You have various options for how the reference will print, you can get:
> * the figure number, which is what you asked about
> * the page number
> * the figure number and the page number, or strings like "figure 12 on 
> the previous page"
>when the page number is close to the reference.
> 
> 
> In Lyx, this will look like: "how figure REF[my figure] shows you..."
> but the REF[my figure] will be replaced by the correct number when you
> print or make a pdf.  LyX always gets these numbers right, no matter how
> much editing you do later. (Contrast to some other word processors that 
> occationally
> mess up references and the TOC...)
> 
> I agree that referencing the figure directly by name without having to 
> place a label
> first would be easier - but LyX can't do that - yet.  One small problem 
> with this approach
> is what to do when two figures have the same name.
> 
> Helge Hafting
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-cross-reference-a-figure-tp17066132p17122426.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: how to cross-reference a figure

2008-05-06 Thread Helge Hafting

misterHide wrote:

Hi,

I want to cross-reference a Figure by theire number.
It should look like: how figure 12 shows you...

How could I do so? I just found the opportunity to link against an label.
Isn't it possible to link against a figure floating object and theire name?
  

You put a label into the caption in the floating figure. (Insert-label)
Then you link to that label. (Insert-reference)
The caption will be numbered when the document is printed, and the
same number will be printed in the reference.

You have various options for how the reference will print, you can get:
* the figure number, which is what you asked about
* the page number
* the figure number and the page number, or strings like figure 12 on 
the previous page

  when the page number is close to the reference.


In Lyx, this will look like: how figure REF[my figure] shows you...
but the REF[my figure] will be replaced by the correct number when you
print or make a pdf.  LyX always gets these numbers right, no matter how
much editing you do later. (Contrast to some other word processors that 
occationally

mess up references and the TOC...)

I agree that referencing the figure directly by name without having to 
place a label
first would be easier - but LyX can't do that - yet.  One small problem 
with this approach

is what to do when two figures have the same name.

Helge Hafting



Re: how to cross-reference a figure

2008-05-06 Thread Helge Hafting

misterHide wrote:

Hi,

I want to cross-reference a Figure by theire number.
It should look like: how figure 12 shows you...

How could I do so? I just found the opportunity to link against an label.
Isn't it possible to link against a figure floating object and theire name?
  

You put a label into the caption in the floating figure. (Insert-label)
Then you link to that label. (Insert-reference)
The caption will be numbered when the document is printed, and the
same number will be printed in the reference.

You have various options for how the reference will print, you can get:
* the figure number, which is what you asked about
* the page number
* the figure number and the page number, or strings like figure 12 on 
the previous page

  when the page number is close to the reference.


In Lyx, this will look like: how figure REF[my figure] shows you...
but the REF[my figure] will be replaced by the correct number when you
print or make a pdf.  LyX always gets these numbers right, no matter how
much editing you do later. (Contrast to some other word processors that 
occationally

mess up references and the TOC...)

I agree that referencing the figure directly by name without having to 
place a label
first would be easier - but LyX can't do that - yet.  One small problem 
with this approach

is what to do when two figures have the same name.

Helge Hafting



Re: how to cross-reference a figure

2008-05-06 Thread Helge Hafting

misterHide wrote:

Hi,

I want to cross-reference a Figure by theire number.
It should look like: "how figure 12 shows you..."

How could I do so? I just found the opportunity to link against an label.
Isn't it possible to link against a figure floating object and theire name?
  

You put a label into the caption in the floating figure. (Insert->label)
Then you link to that label. (Insert->reference)
The caption will be numbered when the document is printed, and the
same number will be printed in the reference.

You have various options for how the reference will print, you can get:
* the figure number, which is what you asked about
* the page number
* the figure number and the page number, or strings like "figure 12 on 
the previous page"

  when the page number is close to the reference.


In Lyx, this will look like: "how figure REF[my figure] shows you..."
but the REF[my figure] will be replaced by the correct number when you
print or make a pdf.  LyX always gets these numbers right, no matter how
much editing you do later. (Contrast to some other word processors that 
occationally

mess up references and the TOC...)

I agree that referencing the figure directly by name without having to 
place a label
first would be easier - but LyX can't do that - yet.  One small problem 
with this approach

is what to do when two figures have the same name.

Helge Hafting



how to cross-reference a figure

2008-05-05 Thread misterHide

Hi,

I want to cross-reference a Figure by theire number.
It should look like: how figure 12 shows you...

How could I do so? I just found the opportunity to link against an label.
Isn't it possible to link against a figure floating object and theire name?

Best
Matthias
-- 
View this message in context: 
http://www.nabble.com/how-to-cross-reference-a-figure-tp17066132p17066132.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: how to cross-reference a figure

2008-05-05 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
When you use a label to cross reference a float, in fact it is only used 
to identify the float you want to use. The reference will by default be 
printed as the number associated with the float ( figure number, table 
number ... ).
Remember that those numbers are generated by LaTeX and not known when 
you enter your text.


Hope it helps.

Siegfried.



how to cross-reference a figure

2008-05-05 Thread misterHide

Hi,

I want to cross-reference a Figure by theire number.
It should look like: how figure 12 shows you...

How could I do so? I just found the opportunity to link against an label.
Isn't it possible to link against a figure floating object and theire name?

Best
Matthias
-- 
View this message in context: 
http://www.nabble.com/how-to-cross-reference-a-figure-tp17066132p17066132.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: how to cross-reference a figure

2008-05-05 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
When you use a label to cross reference a float, in fact it is only used 
to identify the float you want to use. The reference will by default be 
printed as the number associated with the float ( figure number, table 
number ... ).
Remember that those numbers are generated by LaTeX and not known when 
you enter your text.


Hope it helps.

Siegfried.



how to cross-reference a figure

2008-05-05 Thread misterHide

Hi,

I want to cross-reference a Figure by theire number.
It should look like: "how figure 12 shows you..."

How could I do so? I just found the opportunity to link against an label.
Isn't it possible to link against a figure floating object and theire name?

Best
Matthias
-- 
View this message in context: 
http://www.nabble.com/how-to-cross-reference-a-figure-tp17066132p17066132.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: how to cross-reference a figure

2008-05-05 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
When you use a label to cross reference a float, in fact it is only used 
to identify the float you want to use. The reference will by default be 
printed as the number associated with the float ( figure number, table 
number ... ).
Remember that those numbers are generated by LaTeX and not known when 
you enter your text.


Hope it helps.

Siegfried.