Hi John,

Thanks for the help. I have installed LyX for the first time on my work
computer now (also Vista) and have reproduced the issue. Steps:

- Installed LyX from LyX-2.0.5-Bundle-4.exe (installed for all users in
Program Files)
- Updated MikTeX
- Launch LyX (takes very long time for first start as I experienced before,
runs through luatex and latex processes for a while first; 10+ mins?)
- Opened tutorial in LyX and scroll to section 3.4.2
- Start new document, left all as default - article class.
- By the end of my testing I now have 3 sections with some text in section
2 with two references. One "ref+page" to section 1 and one just "ref" to
section 3. They both come out in the pdf output the same (except for the
different numbers obviously), i.e. I have a sentence which now reads "*To
know more see section 1 or see section 3*." There is no mention of page in
the section 1 reference as there should be.

- I have exported the file to LaTeX and the full output appears as follows:

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

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

\documentclass{article}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{varioref}

\begin{document}

\section{Section 1\label{sec:Section-1}}

sdfsafasf Blah!

\section{Section}

afsafFEF

To know more see section \vref{sec:Section-1} or see section
\ref{sec:Section-3}.

\section{Section 3\label{sec:Section-3}}

\end{document}

So the only difference between the two types of reference is the "v" in the
"ref+page" one. Is this correct? In the LyX view it appears as "Ref+Text:
sec:Section-1" compared to the normal ref one which appears as " Ref:
sec:Section-3".

Anyway, it is not such a big deal, it is easy to work around by just
putting in separate page references. I just thought I would report what I
have found in case it helps to find a bug.

Thanks for the recommendation on document class and tweaks. I need to spend
some more time with the documentation and wiki to understand further LyX
details such as the differences between the different sub-document classes.
I have only gone through the tutorial so far. I will have to prepare drafts
in Word anyway for my supervisors (2) sake so they can track changes and
then compile later on in LyX so I've got time yet to learn it properly.

All the best,

Brian

On 9 December 2012 20:54, John R. Hudson <j.r.hud...@virginmedia.com> wrote:

> On Sun, 2012-12-09 at 12:55 +0000, Brian wrote:
> > Hi,
> >
> > I am trying the LyX (2.0.5) tutorial and have the same problem
> >  with the
> > "reference on page" functionality not working.
> >  It acts exactly the same as
> > "reference" alone and does not add page info.
> >  The "page" option alone works fine.
> >
> > I am on Windows Vista and have tried the "Tools->Reconfigure" option
> >  both running
> > the programme default and running it as administrator and restarting
> afterwards
> > in each case.
> >  However it is still not fixed.
> >
> > Any other suggestions for things to try?
> >  I am enjoying LyX and the tutorial so
> > far and looking into it as an option for my PhD thesis.
> >  (There doesn't appear to
> > be a thesis template or document class in my installation; I'm assuming
> the
> > book
> > class is the way to go?)
> I cannot reproduce the problem in the Linux version of LyX; I've tried
> it with LyX documents I created long before LyX 2 appeared but they all
> export to PDF correctly. So I cannot explain how to resolve the problem.
>
> I would recommend - as you may have picked up in the Help - the
> KOMAScript book document class for a thesis. You need to add the TeX
> commands \frontmatter right at the start of the document before the
> Subject or Title and then \mainmatter before the first numbered chapter.
> Using Document>Start appendix here will produced lettered appendices
> after the main matter. If you need sections after the appendices, use
> the TeX command\backmatter which, as with the front matter, will remove
> numbering in the output (but not in LyX).
>
> If you need multiple lists of references/bibliographies plan the layout
> so that each can fall within a separate bibtopic unit - none of which
> can be nested.
>
> If you need any other tweaks, the KOMA Script documentation offers a lot
> of formatting options.
>
> John
> --
>
>
>

Reply via email to