LyXLyx returns question marks [??] instead of figure number

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm

Lyx returns question marks [??] instead of figure number

Post by Fed89 »

Hello,

i have been looking around but could not find a solution to my problem.
I have started a new document in lyx and when i make a cross reference to a label (figure/table/equation) the pdf shows just [??] question marks.

Example of code of a picture

Code: Select all

\begin{figure}
\begin{centering}
\includegraphics[width=0.7\columnwidth]{DTUKEM_Viscosity_35%}
\par\end{centering}

\protect\caption{Dynamic viscosity of the propylene glycol/water mixture from Høje
Taastrup field as function of temperature.}
\label{fig:GlycWatViscosVSTemp_35pc}
\end{figure}
i have another lyx file, written time ago, same class and same way of doing cross reference and there they are shown correctly. really wierd...
does anyone know that can be the problem?

thanks in advance

Federico

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Lyx returns question marks [??] instead of figure number

Post by Stefan Kottwitz »

Hi Federico,

nice to see you again in the forum! I remember your first post in 2013. It's great that you continue using LyX and LaTeX!

Regarding the references: LyX/LaTeX always need at least two runs to display references correctly. The reason is, that in one run LaTeX writes the labels/references to an external file (with the .aux extension), which is read in during the next run. So, in the first run LaTeX can only show ?? as place holder, which will be updated in the next run.

By the way, instead of \begin{centering} ... \end{centering} better use \centering. It is a command (switch), not an environment. The centering effect ends anyway at the end of the figure environment. That's common with environments: a local setting ends when the outer environment ends.

Well, at the second look I see, that you center the image but not the caption. Is this intended? If yes,
I would still use \centering, but grouped as {\centering .... \par}

Btw. I don't understand why \protect is used before \caption. Is there a reason? It's sometimes used within the argument of \caption, yes, for reasons, but not onto \caption itself.

Stefan
LaTeX.org admin
Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm

Re: Lyx returns question marks [??] instead of figure number

Post by Fed89 »

Thanks for the reply Stefan!

i have read that 2 compilations may be necessary, but this is not my case. i run it way more than twice, but still nothing happens.
the code you see is the one from lyx, so i do not write it myself. i was wondering what was the meaning of the protect command...
same thing is for the centering command: it is what is used by lyx when i center the figure, i do not write it myself.
still, i do not think it is the reason of the problem. i have also a table and an equation in the same file, so no centering or such, and still their references give ?? when compiling...

even weirder is that anther lyx file i created months ago, show references correctly when i run it... and i think i inserted pics, label and reference exactly in the same way
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Lyx returns question marks [??] instead of figure number

Post by Stefan Kottwitz »

Perhaps make a LaTeX export of the document (you could take a reduced copy, which still shows the problem), and post it here. You could also post the .aux file (where the references are) and the .log file. All together may show us the reason.

Stefan
LaTeX.org admin
Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm

Re: Lyx returns question marks [??] instead of figure number

Post by Fed89 »

okay, thanks a lot! i ll do it on monday, as it is on my office computer
Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm

Lyx returns question marks [??] instead of figure number

Post by Fed89 »

Hello,
i copy paste the requested codes you requested.

Reference to figure, table and equation are equally NOT-working :-(

So this is the source code from Lyx (just taken the relevant part with the references and deleted most of the text.

Code: Select all

% Preview source code

%% LyX 2.1.0 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[british]{report}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{amsmath}
\usepackage{graphicx}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{appendix} %

\usepackage{array} % package for modifying table properties
\setlength{\extrarowheight}{2pt} % to add extra spacing between table rows (only top)
\usepackage{url}
\usepackage{emptypage} % to delete footer/header/page numbers in empty pages
\makeatother

\usepackage{babel}
\begin{document}
\begin{table}
\protect\caption{Comparison between measured and extrapolated densities for $35\%$
glycol/water mixture.}
\label{tab:density35pcExperVSextrap}

\centering{}%
\begin{tabular}{cccc}
\hline 
$T$ & \multicolumn{3}{c}{$\rho$ $\left[\mathrm{kg/m^{3}}\right]$ for $x=35\%$}\tabularnewline
\cline{2-4} 
$\left[^{\circ}\mathrm{C}\right]$ & Measured & Extrapolated & $\Delta_{rel}$\tabularnewline
\hline 
\hline 
20 & 1028.8 & 1028.7 & -0.01\%\tabularnewline
\hline 
30 & 1023.4 & 1023.3 & -0.01\%\tabularnewline
\hline 
40 & 1017.6 & 1017.5 & -0.01\%\tabularnewline
\hline 
50 & 1011.3 & 1011.3 & 0.00\%\tabularnewline
\hline 
60 & 1004.6 & 1004.8 & 0.02\%\tabularnewline
\hline 
70 & 997.6 & 997.8 & 0.02\%\tabularnewline
\hline 
80 & 990.1 & 990.5 & 0.04\%\tabularnewline
\hline 
\end{tabular}
\end{table}


The experimental values for dynamic viscosity obtained for the sample
from Høje Taastrup field (see Table \ref{fig:GlycWatViscosVSTemp_35pc}) 

\begin{figure}
\begin{centering}
\includegraphics[width=0.5\columnwidth]{DTUKEM_Viscosity_35pc}
\par\end{centering}

\protect\caption{Dynamic viscosity of the propylene glycol/water mixture.}
\label{fig:GlycWatViscosVSTemp_35pc}
\end{figure}

The measured viscosity values are shown as markers in Figure \ref{fig:GlycWatViscosVSTemp_35pc}.
Hence, the viscosity of the heat transfer fluid in Høje Taastrup field
was calculated by the piecewise function Eq.(\ref{eq:mu_35pc_glycol}),
consisting of the third degree polynomial and the power function,
whose trends can also be seen in Figure \ref{fig:GlycWatViscosVSTemp_35pc}.

\begin{equation}
\mu=\begin{cases}
7.289-2.337\cdot10^{\textrm{-}1}\, T+3.066\cdot10^{\textrm{-}3}\, T^{2}-1.449\cdot10^{\textrm{-}5}\, T^{3} & 20\,\mathrm{^{\circ}C}<T<40\,\mathrm{^{\circ}C}\\
180.29\, T^{\textrm{-}1.232} & T\geq40\,\mathrm{^{\circ}C}
\end{cases}\label{eq:mu_35pc_glycol}
\end{equation}

\end{document}

This is the log file

Code: Select all

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9) (preloaded format=pdflatex 2014.11.27)  21 SEP 2015 15:02
entering extended mode
**Example.tex

(C:\Users\febav\AppData\Local\Temp\lyx_tmpdir.yvQysAzR2496\lyx_tmpbuf0\Example.
tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\report.cls"
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.def"
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.
)) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\inputenc.sty"
Package: inputenc 2008/03/30 v1.1d Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\latin9.def"
File: latin9.def 2008/03/30 v1.1d Input encoding file
)) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"
Package: amsmath 2013/01/14 v2.14 AMS math features
\@mathmargin=\skip43
For additional information on amsmath, use the `?' option.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"
Package: amstext 2000/06/29 v2.01
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks16
\ex@=\dimen103
)) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen104
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count88
LaTeX Info: Redefining \frac on input line 210.
\uproot@=\count89
\leftroot@=\count90
LaTeX Info: Redefining \overline on input line 306.
\classnum@=\count91
\DOTSCASE@=\count92
LaTeX Info: Redefining \ldots on input line 378.
LaTeX Info: Redefining \dots on input line 381.
LaTeX Info: Redefining \cdots on input line 466.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen105
LaTeX Font Info:    Redeclaring font encoding OML on input line 566.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 567.
\macc@depth=\count93
\c@MaxMatrixCols=\count94
\dotsspace@=\muskip10
\c@parentequation=\count95
\dspbrk@lvl=\count96
\tag@help=\toks17
\row@=\count97
\column@=\count98
\maxfields@=\count99
\andhelp@=\toks18
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks19
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks20
LaTeX Info: Redefining \[ on input line 2665.
LaTeX Info: Redefining \] on input line 2666.
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks21
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count100
))
\Gin@req@height=\dimen112
\Gin@req@width=\dimen113
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\appendix\appendix.sty"
Package: appendix 2009/09/02 v1.2b extra appendix facilities
\c@@pps=\count101
\c@@ppsavesec=\count102
\c@@ppsaveapp=\count103
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\array.sty"
Package: array 2008/09/09 v2.4c Tabular extension package (FMi)
\col@sep=\dimen114
\extrarowheight=\dimen115
\NC@list=\toks22
\extratabsurround=\skip46
\backup@length=\skip47
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\url\url.sty"
\Urlmuskip=\muskip11
Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.
) (C:\Users\febav\AppData\Roaming\MiKTeX\2.9\tex\latex\emptypage\emptypage.sty
Package: emptypage 2010/05/30 v1.2 Suppress page numbers and headings on empty 
pages
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\babel\babel.sty"
Package: babel 2008/07/08 v3.8m The Babel package
*************************************
* Local config file bblopts.cfg used
*
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\bblopts.cfg"
File: bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\babel\english.ldf"
Language: english 2005/03/30 v3.3o English support from the babel system
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\babel\babel.def"
File: babel.def 2008/07/08 v3.8m Babel common definitions
\babel@savecnt=\count104
\U@D=\dimen116
)
\l@canadian = a dialect from \language\l@american 
\l@australian = a dialect from \language\l@british 
\l@newzealand = a dialect from \language\l@british 
))
(C:\Users\febav\AppData\Local\Temp\lyx_tmpdir.yvQysAzR2496\lyx_tmpbuf0\Example.
aux)
Runaway argument?
{\contentsline {table}{\numberline {1}{\ignorespaces Comparison betwe\ETC.
! File ended while scanning use of \@writefile.
<inserted text> 
                \par 
l.32 \begin{document}
                     
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
("C:\Program Files (x86)\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count105
\scratchdimen=\dimen117
\scratchbox=\box28
\nofMPsegments=\count106
\nofMParguments=\count107
\everyMPshowfont=\toks23
\MPscratchCnt=\count108
\MPscratchDim=\dimen118
\MPnumerator=\count109
\makeMPintoPDFobject=\count110
\everyMPtoPDFconversion=\toks24
)

LaTeX Warning: Reference `fig:GlycWatViscosVSTemp_35pc' on page 1 undefined on 
input line 90.


<0C__Users_febav_Dropbox_PhD_PressureDropModel_F___mple35__h__jeTaastrup_DTUKEM
_Viscosity_35pc.pdf, id=1, 482.22758pt x 382.39864pt>
File: 0C__Users_febav_Dropbox_PhD_PressureDropModel_F___mple35__h__jeTaastrup_D
TUKEM_Viscosity_35pc.pdf Graphic file (type pdf)

<use 0C__Users_febav_Dropbox_PhD_PressureDropModel_F___mple35__h__jeTaastrup_DT
UKEM_Viscosity_35pc.pdf>
Package pdftex.def Info: 0C__Users_febav_Dropbox_PhD_PressureDropModel_F___mple
35__h__jeTaastrup_DTUKEM_Viscosity_35pc.pdf used on input line 94.
(pdftex.def)             Requested size: 172.5pt x 136.78816pt.

LaTeX Warning: Reference `fig:GlycWatViscosVSTemp_35pc' on page 1 undefined on 
input line 102.


LaTeX Warning: Reference `eq:mu_35pc_glycol' on page 1 undefined on input line 
104.


LaTeX Warning: Reference `fig:GlycWatViscosVSTemp_35pc' on page 1 undefined on 
input line 106.


Overfull \hbox (11.97061pt too wide) detected at line 113
\OML/cmm/m/it/10  \OT1/cmr/m/n/10 = []
 []

[1{C:/Users/febav/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}

 <C:/Users/febav/AppData/Local/Temp/lyx_tmpdir.yvQysAzR2496/lyx_tmpbuf0/0C__Use
rs_febav_Dropbox_PhD_PressureDropModel_F___mple35__h__jeTaastrup_DTUKEM_Viscosi
ty_35pc.pdf>]
(C:\Users\febav\AppData\Local\Temp\lyx_tmpdir.yvQysAzR2496\lyx_tmpbuf0\Example.
aux)
Runaway argument?
{\contentsline {table}{\numberline {1}{\ignorespaces Comparison betwe\ETC.
! File ended while scanning use of \@writefile.
<inserted text> 
                \par 
l.117 \end{document}
                    
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.


LaTeX Warning: There were undefined references.

 ) 
Here is how much of TeX's memory you used:
 2509 strings out of 493921
 31803 string characters out of 3144875
 89268 words of memory out of 3000000
 5795 multiletter control sequences out of 15000+200000
 7167 words of font info for 20 fonts, out of 3000000 for 9000
 841 hyphenation exceptions out of 8191
 27i,11n,20p,257b,240s stack positions out of 5000i,500n,10000p,200000b,50000s
 <C:\Users\febav\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour\jknappen\ec\dpi600\
ecrm0700.pk> <C:\Users\febav\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour\jknappen\
ec\dpi600\ecbx1000.pk> <C:\Users\febav\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour
\jknappen\ec\dpi600\ecrm1000.pk><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/
public/amsfonts/cm/cmex10.pfb><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/pu
blic/amsfonts/cm/cmmi10.pfb><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/publ
ic/amsfonts/cm/cmmi7.pfb><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/
amsfonts/cm/cmr10.pfb><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/ams
fonts/cm/cmr7.pfb><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfont
s/cm/cmsy10.pfb><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/
cm/cmsy7.pfb>
Output written on Example.pdf (1 page, 94836 bytes).
PDF statistics:
 108 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 6 words of extra memory for PDF output out of 10000 (max. 10000000)

while this is the aux file

Code: Select all

\relax 
\@writefile{lot}{\contentsline {table}{\numberline {1}{\ignorespaces Comparison between measured and extrapolated densities for $35%$ glycol/water mixture.}}{1}}
\newlabel{tab:density35pcExperVSextrap}{{1}{1}}
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Dynamic viscosity of the propylene glycol/water mixture.}}{1}}
\newlabel{fig:GlycWatViscosVSTemp_35pc}{{1}{1}}
\select@language{british}
\@writefile{toc}{\select@language{british}}
\@writefile{lof}{\select@language{british}}
\@writefile{lot}{\select@language{british}}
\newlabel{eq:mu_35pc_glycol}{{1}{1}}
thanks in advance!
any help is welcome :-)
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Lyx returns question marks [??] instead of figure number

Post by cgnieder »

The problem is in the aux file in the second line where you see $35%$. Everything after % is ignored which causes an error. The log file says:

Code: Select all

Runaway argument?
{\contentsline {table}{\numberline {1}{\ignorespaces Comparison betwe\ETC.
! File ended while scanning use of \@writefile.
<inserted text>
                \par
l.32 \begin{document}
Didn't you get a message about the compilation error?

Once this is solved everything should just work nicely including the references. I suspect – because the input file looks OK – that you just need to delete the aux file and then recompile once or twice (I don't know how LyX handles compiling so maybe once actually is enough…)

Regards
site moderator & package author
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Lyx returns question marks [??] instead of figure number

Post by Stefan Kottwitz »

Yes it should be that percent sign % in the .aux file. Though in the source it's ok, as Clemens said. Also I would delete the .aux file which will be regenerated in the next run.

Stefan
LaTeX.org admin
Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm

Re: Lyx returns question marks [??] instead of figure number

Post by Fed89 »

Thanks!!! yes you are right, the problem is the % symbol in the table caption. But deleting the aux file does not make any difference, as the new one is the same as before :-(
The % symbol is in inside the equation now. i also tried to put it outside the equation, or inside the equation as \textrm or \mathrm but the problems appears anyway.
Does it mean i cannot put % symbol in a caption?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Lyx returns question marks [??] instead of figure number

Post by Johannes_B »

Don't use math mode. The comment stays a comment there as well. Use \% instead.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply