Re: Cross-reference with /vref not mentioning the page in preview

2017-10-18 Thread Alexandru Guzu
Thanks for the reply. I'm running LyX 2.1.4 from July 2015.

I added more text and indeed if the reference is on the same page, \vref
ommits the page mention completely, otherwise it might say previous page or
page #.
I was also unable to find the "official" documentation on \vref, I found it
for \ref and other markers though

On Tue, Oct 17, 2017 at 5:52 PM, Richard Heck  wrote:

> On 10/17/2017 03:29 PM, Alexandru Guzu wrote:
>
> Hello,
>
> I am following the LyX tutorial and I am having some difficulties with the
> Cross-referencing.
>
> The tutorial says:
> "
> select the drop-down menu labeled “Format” and select “ on page
> ”. Then select “sec:About-This-Document” (it may be selected by
> default), and a reference marker will appear containing “Ref+Text:
> sec:About-This-Document”
> ...
> In the printed document, this reference marker will be replaced with the
> section number and then the page number.
> "
> However, this is not the case. The page number or any page reference is
> nowhere to be found.
>
>
> This part of the tutorial is a bit misleading. The \vref command is smart
> enough to know when the item it is referencing is on the same page. In that
> case, it omits the "on page N" part. It looks to me as if this has been
> fixed for the next release.
>
> Richard
>
>


Re: Cross-reference with /vref not mentioning the page in preview

2017-10-17 Thread Richard Heck
On 10/17/2017 03:29 PM, Alexandru Guzu wrote:
> Hello,
>
> I am following the LyX tutorial and I am having some difficulties with
> the Cross-referencing.
>
> The tutorial says:
> "
> select the drop-down menu labeled “Format” and select “ on
> page ”. Then select “sec:About-This-Document” (it may be
> selected by default), and a reference marker will appear containing
> “Ref+Text: sec:About-This-Document”
> ...
> In the printed document, this reference marker will be replaced with
> the section number and then the page number.
> "
> However, this is not the case. The page number or any page reference
> is nowhere to be found.

This part of the tutorial is a bit misleading. The \vref command is
smart enough to know when the item it is referencing is on the same
page. In that case, it omits the "on page N" part. It looks to me as if
this has been fixed for the next release.

Richard



Cross-reference with /vref not mentioning the page in preview

2017-10-17 Thread Alexandru Guzu
Hello,

I am following the LyX tutorial and I am having some difficulties with the
Cross-referencing.

The tutorial says:
"
select the drop-down menu labeled “Format” and select “ on page
”. Then select “sec:About-This-Document” (it may be selected by
default), and a reference marker will appear containing “Ref+Text:
sec:About-This-Document”
...
In the printed document, this reference marker will be replaced with the
section number and then the page number.
"
However, this is not the case. The page number or any page reference is
nowhere to be found.

In fact the LaTeX code is as follows:

=

%% LyX 2.1.4 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{article}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{babel}

\usepackage{varioref}

\begin{document}


\section{About This Document\label{sec:About-This-Document}}


Sections and subsections are described below.


If you want to know more about this document, then see\\

Section \vref{sec:About-This-Document}, .

\end{document}

==


And the preview is:


==

1  About This Document


Sections and subsections are described below.
If you want to know more about this document, then see
Section 1, .

==


So there is no page reference. I used the same steps for the
example_raw.lyx but the result is the same. There is  no page mentioned in
the output.


In fact, I don't see any difference between using /rev and using /vref.


Why is this happening?


Thanks,


Alex.