Hello,
 
I'm pretty new to Lyx and use the 2.0.7 version on windows 7. Currently I have the problem that some of my cross references are shown as question marks, if i convert the Lyx file into a pdf file. I already read that something may be disrupted in the reference process. But I don't get, why some cross references work and other did not. I got the same error for captions as well as tables. That problem only occurs if I choose 'formatted reference' otherwise the file is converted correctly. I already checked the document class (I'm using article) and there 'use refstyle (not prettyref) for cross reference' is chosen. I also checked the Latex source to see if there are differences between the correct cross references and the once where it doe not work. But I could not find anything.
 
The following is the preamble of my piece of work
 
%% LyX 2.0.7 created this file. For more info, see http://www.lyx.org/.
 

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

\documentclass[british,english]{article}

\usepackage[LGR,T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{geometry}

\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2.5cm,rmargin=2.5cm}

\usepackage{array}

\usepackage{longtable}

\usepackage{refstyle}

\usepackage{float}

\usepackage{textcomp}

\usepackage{multirow}

\usepackage{subscript}

 

\makeatletter

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.

 

\AtBeginDocument{\providecommand\tabref[1]{\ref{tab:#1}}}

\AtBeginDocument{\providecommand\subref[1]{\ref{sub:#1}}}

\newcommand{\noun}[1]{\textsc{#1}}

\DeclareRobustCommand{\greektext}{%

\fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}

\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}

\DeclareFontEncoding{LGR}{}{}

\DeclareTextSymbol{\~}{LGR}{126}

%% Because html converters don't know tabularnewline

\providecommand{\tabularnewline}{\\}

\RS@ifundefined{subref}

{\def\RSsubtxt{section~}\newref{sub}{name = \RSsubtxt}}

{}

\RS@ifundefined{thmref}

{\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}}

{}

\RS@ifundefined{lemref}

{\def\RSlemtxt{lemma~}\newref{lem}{name = \RSlemtxt}}

{}

 

\makeatother

 

\usepackage{babel}

\begin{document}

 

... then there is a lot of text where it works and in the following part the problems start

 

\subsubsection{_expression_ in Sf21 cells\label{sub:_expression_-in-Sf21}}

 

Recombinant protein was produced in a baculovirus _expression_ system.

Sf21 cells were splitted, seeded in protein _expression_ medium as described

(\subref{Sf21 cultivation}) and infected with approximately 130~\textmu{}L

virus supernatant on one 150~cm\texttwosuperior{} cell culture flask.

The recombinant protein is secreted into the medium, which correlates

with a morphological change of the cells. After 6-7~days, the supernatant

was harvested and the recombinant protein purified at described (\subref{Purification-of-rWISP3}).

 

 

for the first cross reference I will get question marks but the later one works and I don't have any idea why.

I would be glad about any help.

Sylvia

Reply via email to