Re: pretty ref..

2001-06-09 Thread Dekel Tsur

On Fri, Jun 08, 2001 at 10:12:44PM +0200, Michael wrote:
 funny:
 if I use the pretty ref to refer to a figure, the resulting reference is in 
 English: figure x on page y, instead German, as all other text. All other 
 ref-types work well ( i.e. German )

Use need to use the \newrefformat command in the preamble to redefine the
text for figures.
The default value is:

\newrefformat{fig}{Figure \ref{#1} on page \pageref{#1}}



Re: pretty ref..

2001-06-09 Thread Dekel Tsur

On Fri, Jun 08, 2001 at 10:12:44PM +0200, Michael wrote:
 funny:
 if I use the pretty ref to refer to a figure, the resulting reference is in 
 English: figure x on page y, instead German, as all other text. All other 
 ref-types work well ( i.e. German )

Use need to use the \newrefformat command in the preamble to redefine the
text for figures.
The default value is:

\newrefformat{fig}{Figure \ref{#1} on page \pageref{#1}}



Re: pretty ref..

2001-06-09 Thread Dekel Tsur

On Fri, Jun 08, 2001 at 10:12:44PM +0200, Michael wrote:
> funny:
> if I use the "pretty ref" to refer to a figure, the resulting reference is in 
> English: "figure x on page y", instead German, as all other text. All other 
> ref-types work well ( i.e. German )

Use need to use the \newrefformat command in the preamble to redefine the
text for figures.
The default value is:

\newrefformat{fig}{Figure \ref{#1} on page \pageref{#1}}



pretty ref..

2001-06-08 Thread Michael

funny:
if I use the pretty ref to refer to a figure, the resulting reference is in 
English: figure x on page y, instead German, as all other text. All other 
ref-types work well ( i.e. German )

Michael



pretty ref..

2001-06-08 Thread Michael

funny:
if I use the pretty ref to refer to a figure, the resulting reference is in 
English: figure x on page y, instead German, as all other text. All other 
ref-types work well ( i.e. German )

Michael



pretty ref..

2001-06-08 Thread Michael

funny:
if I use the "pretty ref" to refer to a figure, the resulting reference is in 
English: "figure x on page y", instead German, as all other text. All other 
ref-types work well ( i.e. German )

Michael



Re: Bug in pretty ref

2000-07-27 Thread Herbert Voss

Dekel Tsur wrote:
 
 On Tue, Jul 25, 2000 at 11:25:20PM +, Herbert Voss wrote:
  prettyref needs a label definiaion like \label{tab:MyTable}
  than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
  from my point of view, lyx doesn't create the labels in
  prettyref-style, so it's not possible to use cross-reference
  with the prettyref-button.
 
 Why not?
 When inserting the label in LyX, give it the name tab:mytable,
 and then you can insert the prettyref. No need for ERT!
 
  it's a question to Lars or/and Jean-Marc:
insert label AND insert cross-reference must have BOTH
the prettyref-option?! if someone chooses once this option
all the rest of labels and references must converted
to prettyref-style.
 
 It seems that you expect to use labels without a prefix, (like MyTable),
 and let lyx automatically generate the prefix (tab:) when generating the
 latex file.
 This is not done by LyX.

yes, your right! :-)

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Bug in pretty ref

2000-07-27 Thread Herbert Voss

Dekel Tsur wrote:
 
 On Tue, Jul 25, 2000 at 11:25:20PM +, Herbert Voss wrote:
  prettyref needs a label definiaion like \label{tab:MyTable}
  than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
  from my point of view, lyx doesn't create the labels in
  prettyref-style, so it's not possible to use cross-reference
  with the prettyref-button.
 
 Why not?
 When inserting the label in LyX, give it the name tab:mytable,
 and then you can insert the prettyref. No need for ERT!
 
  it's a question to Lars or/and Jean-Marc:
insert label AND insert cross-reference must have BOTH
the prettyref-option?! if someone chooses once this option
all the rest of labels and references must converted
to prettyref-style.
 
 It seems that you expect to use labels without a prefix, (like MyTable),
 and let lyx automatically generate the prefix (tab:) when generating the
 latex file.
 This is not done by LyX.

yes, your right! :-)

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Bug in pretty ref

2000-07-27 Thread Herbert Voss

Dekel Tsur wrote:
> 
> On Tue, Jul 25, 2000 at 11:25:20PM +, Herbert Voss wrote:
> > prettyref needs a label definiaion like \label{tab:MyTable}
> > than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
> > from my point of view, lyx doesn't create the labels in
> > prettyref-style, so it's not possible to use cross-reference
> > with the prettyref-button.
> 
> Why not?
> When inserting the label in LyX, give it the name tab:mytable,
> and then you can insert the prettyref. No need for ERT!
> 
> > it's a question to Lars or/and Jean-Marc:
> >   insert label AND insert cross-reference must have BOTH
> >   the prettyref-option?! if someone chooses once this option
> >   all the rest of labels and references must converted
> >   to prettyref-style.
> 
> It seems that you expect to use labels without a prefix, (like MyTable),
> and let lyx automatically generate the prefix (tab:) when generating the
> latex file.
> This is not done by LyX.

yes, your right! :-)

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Bug in pretty ref

2000-07-26 Thread Herbert Voss

Oscar Lopez wrote:
 
 BTW if I change the language of the document from default to spanish
 while the caption Table is translated to Tabla, the text that prettyref
 add "Table x on page y" is not translated when I hoped that it would be
 
 Do I have a problem with the babel spanish stuff ? doesn't prettyref
 support babel?
 Does anybody observe this behavior with other languages?

no, all in english. a change to spanish is no problem,
have a look at

http://www.educat.hu-berlin.de/~voss/Informatik/LyXTips.html#pretty

there is an example for a change to german.

remember that the change of Equation makes no sense, because lyx
doesn't support prettyref in it's eqn-labels. writing all the
math stuff in pure latex is very strange ...

Herbert 

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Bug in pretty ref

2000-07-26 Thread Dekel Tsur

On Tue, Jul 25, 2000 at 11:25:20PM +, Herbert Voss wrote:
 prettyref needs a label definiaion like \label{tab:MyTable}
 than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
 from my point of view, lyx doesn't create the labels in
 prettyref-style, so it's not possible to use cross-reference
 with the prettyref-button.

Why not?
When inserting the label in LyX, give it the name tab:mytable,
and then you can insert the prettyref. No need for ERT!

 it's a question to Lars or/and Jean-Marc:
   insert label AND insert cross-reference must have BOTH
   the prettyref-option?! if someone chooses once this option
   all the rest of labels and references must converted
   to prettyref-style. 

It seems that you expect to use labels without a prefix, (like MyTable),
and let lyx automatically generate the prefix (tab:) when generating the
latex file.
This is not done by LyX.

An interesting question is whether it is possible to write a smarter LaTeX
package, which doesn't need the prefixing the labels (i.e., the \label command
is redefined to output also the counter name to the auxiliary file) ?




Re: Bug in pretty ref

2000-07-26 Thread Vincent VAQUIN

Herbert Voss a écrit :
 Vincent VAQUIN wrote:
  I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
  in cross reference, pretty ref.
  
   can you send an example-file?
 prettyref needs a label definiaion like \label{tab:MyTable}
 than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
 from my point of view, lyx doesn't create the labels in
 prettyref-style, so it's not possible to use cross-reference
 with the prettyref-button.

Thanks a lot.

 your attached lyx-file shows how all works with pure latex-code,
 but this isn't lyx-like ... :-(

I don't understand... My text was written with LyX...

-- 
Vincent



Re: Bug in pretty ref

2000-07-26 Thread Herbert Voss

Oscar Lopez wrote:
 
 BTW if I change the language of the document from default to spanish
 while the caption Table is translated to Tabla, the text that prettyref
 add "Table x on page y" is not translated when I hoped that it would be
 
 Do I have a problem with the babel spanish stuff ? doesn't prettyref
 support babel?
 Does anybody observe this behavior with other languages?

no, all in english. a change to spanish is no problem,
have a look at

http://www.educat.hu-berlin.de/~voss/Informatik/LyXTips.html#pretty

there is an example for a change to german.

remember that the change of Equation makes no sense, because lyx
doesn't support prettyref in it's eqn-labels. writing all the
math stuff in pure latex is very strange ...

Herbert 

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Bug in pretty ref

2000-07-26 Thread Dekel Tsur

On Tue, Jul 25, 2000 at 11:25:20PM +, Herbert Voss wrote:
 prettyref needs a label definiaion like \label{tab:MyTable}
 than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
 from my point of view, lyx doesn't create the labels in
 prettyref-style, so it's not possible to use cross-reference
 with the prettyref-button.

Why not?
When inserting the label in LyX, give it the name tab:mytable,
and then you can insert the prettyref. No need for ERT!

 it's a question to Lars or/and Jean-Marc:
   insert label AND insert cross-reference must have BOTH
   the prettyref-option?! if someone chooses once this option
   all the rest of labels and references must converted
   to prettyref-style. 

It seems that you expect to use labels without a prefix, (like MyTable),
and let lyx automatically generate the prefix (tab:) when generating the
latex file.
This is not done by LyX.

An interesting question is whether it is possible to write a smarter LaTeX
package, which doesn't need the prefixing the labels (i.e., the \label command
is redefined to output also the counter name to the auxiliary file) ?




Re: Bug in pretty ref

2000-07-26 Thread Vincent VAQUIN

Herbert Voss a écrit :
 Vincent VAQUIN wrote:
  I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
  in cross reference, pretty ref.
  
   can you send an example-file?
 prettyref needs a label definiaion like \label{tab:MyTable}
 than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
 from my point of view, lyx doesn't create the labels in
 prettyref-style, so it's not possible to use cross-reference
 with the prettyref-button.

Thanks a lot.

 your attached lyx-file shows how all works with pure latex-code,
 but this isn't lyx-like ... :-(

I don't understand... My text was written with LyX...

-- 
Vincent



Re: Bug in pretty ref

2000-07-26 Thread Herbert Voss

Oscar Lopez wrote:
> 
> BTW if I change the language of the document from default to spanish
> while the caption Table is translated to Tabla, the text that prettyref
> add "Table x on page y" is not translated when I hoped that it would be
> 
> Do I have a problem with the babel spanish stuff ? doesn't prettyref
> support babel?
> Does anybody observe this behavior with other languages?

no, all in english. a change to spanish is no problem,
have a look at

http://www.educat.hu-berlin.de/~voss/Informatik/LyXTips.html#pretty

there is an example for a change to german.

remember that the change of Equation makes no sense, because lyx
doesn't support prettyref in it's eqn-labels. writing all the
math stuff in pure latex is very strange ...

Herbert 

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Bug in pretty ref

2000-07-26 Thread Dekel Tsur

On Tue, Jul 25, 2000 at 11:25:20PM +, Herbert Voss wrote:
> prettyref needs a label definiaion like \label{tab:MyTable}
> than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
> from my point of view, lyx doesn't create the labels in
> prettyref-style, so it's not possible to use cross-reference
> with the prettyref-button.

Why not?
When inserting the label in LyX, give it the name tab:mytable,
and then you can insert the prettyref. No need for ERT!

> it's a question to Lars or/and Jean-Marc:
>   insert label AND insert cross-reference must have BOTH
>   the prettyref-option?! if someone chooses once this option
>   all the rest of labels and references must converted
>   to prettyref-style. 

It seems that you expect to use labels without a prefix, (like MyTable),
and let lyx automatically generate the prefix (tab:) when generating the
latex file.
This is not done by LyX.

An interesting question is whether it is possible to write a smarter LaTeX
package, which doesn't need the prefixing the labels (i.e., the \label command
is redefined to output also the counter name to the auxiliary file) ?




Re: Bug in pretty ref

2000-07-26 Thread Vincent VAQUIN

Herbert Voss a écrit :
> > > > > Vincent VAQUIN wrote:
> > > > > > I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
> > > > > > in cross reference, pretty ref.
> > >
> > > can you send an example-file?
> prettyref needs a label definiaion like \label{tab:MyTable}
> than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
> from my point of view, lyx doesn't create the labels in
> prettyref-style, so it's not possible to use cross-reference
> with the prettyref-button.

Thanks a lot.

> your attached lyx-file shows how all works with pure latex-code,
> but this isn't lyx-like ... :-(

I don't understand... My text was written with LyX...

-- 
Vincent



Re: Bug in pretty ref

2000-07-25 Thread Vincent VAQUIN

Herbert Voss a écrit :
 
  Herbert Voss a écrit :
  
   Vincent VAQUIN wrote:
I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
in cross reference, pretty ref.
 
 can you send an example-file?

Well, here it is.

-- 
Vincent

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

TITLE
\layout Author

MySelf
\layout Date

Today
\layout Section

This is my first section
\begin_inset LatexCommand \label{FirstSection}

\end_inset 


\layout Standard

This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 
\layout Section

This is my second section
\layout Standard

Au commencement, Dieu créa les cieux et la terre.
 La terre était informe et vide et l'esprit de Dieu flottait au-dessus des
 eaux.
\layout Standard

This a cross-reference 
\begin_inset LatexCommand \prettyref{FirstSection}

\end_inset 

 to the firts section.
\layout Standard

And so on...
\the_end

 NouveauFichier.tex


Re: Bug in pretty ref

2000-07-25 Thread Herbert Voss

Vincent VAQUIN wrote:
 
 Herbert Voss a écrit :
 
   Herbert Voss a écrit :
   
Vincent VAQUIN wrote:
 I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
 in cross reference, pretty ref.
 
  can you send an example-file?

prettyref needs a label definiaion like \label{tab:MyTable}
than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
from my point of view, lyx doesn't create the labels in
prettyref-style, so it's not possible to use cross-reference
with the prettyref-button.

it's a question to Lars or/and Jean-Marc:
  insert label AND insert cross-reference must have BOTH
  the prettyref-option?! if someone chooses once this option
  all the rest of labels and references must converted
  to prettyref-style. 

your attached lyx-file shows how all works with pure latex-code,
but this isn't lyx-like ... :-(

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/voss

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\begin_preamble
\usepackage{prettyref}
\end_preamble
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\float_placement !htb
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

TITLE
\layout Author

MySelf
\layout Date

Today
\layout Section

This is my first section
\latex latex 

\backslash 
label{sec:FirstSection}
\layout Standard

This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 
\layout Standard

\begin_float tab 
\layout Caption


\latex latex 

\backslash 
label{tab:MyTab}
\latex default 
 my Table
\layout Standard
\align center \LyXTable
multicol5
2 2 0 0 -1 -1 -1 -1
1 1 0 0
1 1 0 0
8 1 0 "" ""
8 1 1 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""

1
\newline 
2
\newline 
3
\newline 
4
\end_float 
This is a very interesting text.
 
\layout Section

This is my second section
\layout Standard

Au commencement, Dieu créa les cieux et la terre.
 La terre était informe et vide et l'esprit de Dieu flottait au-dessus des
 eaux.
\layout Standard

This a cross-reference to the firts 
\latex latex 
 
\backslash 
prettyref{sec:FirstSection}
\latex default 
 hier
\layout Standard

And so on...
 with 
\latex latex 

\backslash 
prettyref{tab:MyTab}
\latex default 
 for a table and a standard ref for table too.
\the_end



Re: Bug in pretty ref

2000-07-25 Thread Vincent VAQUIN

Herbert Voss a écrit :
 
  Herbert Voss a écrit :
  
   Vincent VAQUIN wrote:
I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
in cross reference, pretty ref.
 
 can you send an example-file?

Well, here it is.

-- 
Vincent

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

TITLE
\layout Author

MySelf
\layout Date

Today
\layout Section

This is my first section
\begin_inset LatexCommand \label{FirstSection}

\end_inset 


\layout Standard

This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 
\layout Section

This is my second section
\layout Standard

Au commencement, Dieu créa les cieux et la terre.
 La terre était informe et vide et l'esprit de Dieu flottait au-dessus des
 eaux.
\layout Standard

This a cross-reference 
\begin_inset LatexCommand \prettyref{FirstSection}

\end_inset 

 to the firts section.
\layout Standard

And so on...
\the_end

 NouveauFichier.tex


Re: Bug in pretty ref

2000-07-25 Thread Herbert Voss

Vincent VAQUIN wrote:
 
 Herbert Voss a écrit :
 
   Herbert Voss a écrit :
   
Vincent VAQUIN wrote:
 I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
 in cross reference, pretty ref.
 
  can you send an example-file?

prettyref needs a label definiaion like \label{tab:MyTable}
than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
from my point of view, lyx doesn't create the labels in
prettyref-style, so it's not possible to use cross-reference
with the prettyref-button.

it's a question to Lars or/and Jean-Marc:
  insert label AND insert cross-reference must have BOTH
  the prettyref-option?! if someone chooses once this option
  all the rest of labels and references must converted
  to prettyref-style. 

your attached lyx-file shows how all works with pure latex-code,
but this isn't lyx-like ... :-(

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/voss

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\begin_preamble
\usepackage{prettyref}
\end_preamble
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\float_placement !htb
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

TITLE
\layout Author

MySelf
\layout Date

Today
\layout Section

This is my first section
\latex latex 

\backslash 
label{sec:FirstSection}
\layout Standard

This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 
\layout Standard

\begin_float tab 
\layout Caption


\latex latex 

\backslash 
label{tab:MyTab}
\latex default 
 my Table
\layout Standard
\align center \LyXTable
multicol5
2 2 0 0 -1 -1 -1 -1
1 1 0 0
1 1 0 0
8 1 0 "" ""
8 1 1 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""

1
\newline 
2
\newline 
3
\newline 
4
\end_float 
This is a very interesting text.
 
\layout Section

This is my second section
\layout Standard

Au commencement, Dieu créa les cieux et la terre.
 La terre était informe et vide et l'esprit de Dieu flottait au-dessus des
 eaux.
\layout Standard

This a cross-reference to the firts 
\latex latex 
 
\backslash 
prettyref{sec:FirstSection}
\latex default 
 hier
\layout Standard

And so on...
 with 
\latex latex 

\backslash 
prettyref{tab:MyTab}
\latex default 
 for a table and a standard ref for table too.
\the_end



Re: Bug in pretty ref

2000-07-25 Thread Vincent VAQUIN

Herbert Voss a écrit :
> 
> > Herbert Voss a écrit :
> > >
> > > Vincent VAQUIN wrote:
> > > > I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
> > > > in cross reference, pretty ref.
> 
> can you send an example-file?

Well, here it is.

-- 
Vincent

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

TITLE
\layout Author

MySelf
\layout Date

Today
\layout Section

This is my first section
\begin_inset LatexCommand \label{FirstSection}

\end_inset 


\layout Standard

This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 
\layout Section

This is my second section
\layout Standard

Au commencement, Dieu créa les cieux et la terre.
 La terre était informe et vide et l'esprit de Dieu flottait au-dessus des
 eaux.
\layout Standard

This a cross-reference 
\begin_inset LatexCommand \prettyref{FirstSection}

\end_inset 

 to the firts section.
\layout Standard

And so on...
\the_end

 NouveauFichier.tex


Re: Bug in pretty ref

2000-07-25 Thread Herbert Voss

Vincent VAQUIN wrote:
> 
> Herbert Voss a écrit :
> >
> > > Herbert Voss a écrit :
> > > >
> > > > Vincent VAQUIN wrote:
> > > > > I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
> > > > > in cross reference, pretty ref.
> >
> > can you send an example-file?

prettyref needs a label definiaion like \label{tab:MyTable}
than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
from my point of view, lyx doesn't create the labels in
prettyref-style, so it's not possible to use cross-reference
with the prettyref-button.

it's a question to Lars or/and Jean-Marc:
  insert label AND insert cross-reference must have BOTH
  the prettyref-option?! if someone chooses once this option
  all the rest of labels and references must converted
  to prettyref-style. 

your attached lyx-file shows how all works with pure latex-code,
but this isn't lyx-like ... :-(

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/voss

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\begin_preamble
\usepackage{prettyref}
\end_preamble
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\float_placement !htb
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

TITLE
\layout Author

MySelf
\layout Date

Today
\layout Section

This is my first section
\latex latex 

\backslash 
label{sec:FirstSection}
\layout Standard

This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 This is a very interesting text.
 
\layout Standard

\begin_float tab 
\layout Caption


\latex latex 

\backslash 
label{tab:MyTab}
\latex default 
 my Table
\layout Standard
\align center \LyXTable
multicol5
2 2 0 0 -1 -1 -1 -1
1 1 0 0
1 1 0 0
8 1 0 "" ""
8 1 1 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""

1
\newline 
2
\newline 
3
\newline 
4
\end_float 
This is a very interesting text.
 
\layout Section

This is my second section
\layout Standard

Au commencement, Dieu créa les cieux et la terre.
 La terre était informe et vide et l'esprit de Dieu flottait au-dessus des
 eaux.
\layout Standard

This a cross-reference to the firts 
\latex latex 
 
\backslash 
prettyref{sec:FirstSection}
\latex default 
 hier
\layout Standard

And so on...
 with 
\latex latex 

\backslash 
prettyref{tab:MyTab}
\latex default 
 for a table and a standard ref for table too.
\the_end



Re: Bug in pretty ref

2000-07-23 Thread Paul Borgermans

Hi Vincent,

I ran into the same problem and the cause is that for prettyref to work, the
labels need to start with a tag describing their content (figure, table,
equation,...)

Valid labels are:

eq:my_equation2
fig:my_figure1
tab:my_table_of_useful_info

Maybe this should go in the FAQ, as not everyone reads the doc upon noticing the
prettyref features introduced recently.

Best regards

Paul

Vincent VAQUIN wrote:
 
 Hello,
 I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
 in cross reference, pretty ref.
 I can insert it, but when I try to compile, lyx say : error, and I have
 this message :
 "paragraph ended before \@prettyref was complete. I suspect you'have
 forgotten a '}'."
 On the tex source document, I have this :
 blabla \prettyref{r=E9f=E9rence} blabla
 What's wrong ?
 
 --
 Vincent

begin:vcard 
n:Borgermans;Paul
tel;fax:+32-14-323553
tel;home:+32-16-226808
tel;work:+32-14-333227
x-mozilla-html:TRUE
url:http://www.sckcen.be
org:SCK-CEN
adr;quoted-printable:;;Dept WD=0D=0ABoeretang 200;Mol;;2400;Belgium
adr:;;;Mol;;2400;Belgium
version:2.1
email;internet:[EMAIL PROTECTED]
title:ir
x-mozilla-cpt:;-9056
fn:Paul Borgermans
end:vcard



Re: Bug in pretty ref

2000-07-23 Thread Paul Borgermans

Hi Vincent,

I ran into the same problem and the cause is that for prettyref to work, the
labels need to start with a tag describing their content (figure, table,
equation,...)

Valid labels are:

eq:my_equation2
fig:my_figure1
tab:my_table_of_useful_info

Maybe this should go in the FAQ, as not everyone reads the doc upon noticing the
prettyref features introduced recently.

Best regards

Paul

Vincent VAQUIN wrote:
 
 Hello,
 I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
 in cross reference, pretty ref.
 I can insert it, but when I try to compile, lyx say : error, and I have
 this message :
 "paragraph ended before \@prettyref was complete. I suspect you'have
 forgotten a '}'."
 On the tex source document, I have this :
 blabla \prettyref{r=E9f=E9rence} blabla
 What's wrong ?
 
 --
 Vincent

begin:vcard 
n:Borgermans;Paul
tel;fax:+32-14-323553
tel;home:+32-16-226808
tel;work:+32-14-333227
x-mozilla-html:TRUE
url:http://www.sckcen.be
org:SCK-CEN
adr;quoted-printable:;;Dept WD=0D=0ABoeretang 200;Mol;;2400;Belgium
adr:;;;Mol;;2400;Belgium
version:2.1
email;internet:[EMAIL PROTECTED]
title:ir
x-mozilla-cpt:;-9056
fn:Paul Borgermans
end:vcard



Re: Bug in pretty ref

2000-07-23 Thread Paul Borgermans

Hi Vincent,

I ran into the same problem and the cause is that for prettyref to work, the
labels need to start with a tag describing their content (figure, table,
equation,...)

Valid labels are:

eq:my_equation2
fig:my_figure1
tab:my_table_of_useful_info

Maybe this should go in the FAQ, as not everyone reads the doc upon noticing the
prettyref features introduced recently.

Best regards

Paul

Vincent VAQUIN wrote:
> 
> Hello,
> I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
> in cross reference, pretty ref.
> I can insert it, but when I try to compile, lyx say : error, and I have
> this message :
> "paragraph ended before \@prettyref was complete. I suspect you'have
> forgotten a '}'."
> On the tex source document, I have this :
> blabla \prettyref{r=E9f=E9rence} blabla
> What's wrong ?
> 
> --
> Vincent

begin:vcard 
n:Borgermans;Paul
tel;fax:+32-14-323553
tel;home:+32-16-226808
tel;work:+32-14-333227
x-mozilla-html:TRUE
url:http://www.sckcen.be
org:SCK-CEN
adr;quoted-printable:;;Dept W=0D=0ABoeretang 200;Mol;;2400;Belgium
adr:;;;Mol;;2400;Belgium
version:2.1
email;internet:[EMAIL PROTECTED]
title:ir
x-mozilla-cpt:;-9056
fn:Paul Borgermans
end:vcard



Bug in pretty ref

2000-07-22 Thread Vincent VAQUIN

Hello,
I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
in cross reference, pretty ref.
I can insert it, but when I try to compile, lyx say : error, and I have
this message :
"paragraph ended before \@prettyref was complete. I suspect you'have
forgotten a '}'."
On the tex source document, I have this :
blabla \prettyref{r=E9f=E9rence} blabla
What's wrong ?

-- 
Vincent



Bug in pretty ref

2000-07-22 Thread Vincent VAQUIN

Hello,
I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
in cross reference, pretty ref.
I can insert it, but when I try to compile, lyx say : error, and I have
this message :
"paragraph ended before \@prettyref was complete. I suspect you'have
forgotten a '}'."
On the tex source document, I have this :
blabla \prettyref{r=E9f=E9rence} blabla
What's wrong ?

-- 
Vincent



Bug in pretty ref

2000-07-22 Thread Vincent VAQUIN

Hello,
I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
in cross reference, pretty ref.
I can insert it, but when I try to compile, lyx say : error, and I have
this message :
"paragraph ended before \@prettyref was complete. I suspect you'have
forgotten a '}'."
On the tex source document, I have this :
blabla \prettyref{r=E9f=E9rence} blabla
What's wrong ?

-- 
Vincent