I used bibdesk for my references.
When I export lyx file to latex, all my references are gone and citations turn to ? or ??.
Here is some related code lyx created when exporting;
...
\usepackage[authoryear]{natbib}
\usepackage[dot]{bibtopic}
...
...
\begin{singlespace}
\bibliographystyle{apsr}
\begin{btSect}{Ch3}
\btPrintCited
\end{btSect}
If anyone can let me know what is the problem, I would really appreciate any help!
Thanks
BibTeX, biblatex and biber ⇒ Lyx to Latex
NEW: TikZ book now 40% off at Amazon.com for a short time.

Lyx to Latex
If you're compiling the newly exported LaTeX document for the first time, do remember that you first have to run (pdf)LaTeX once, then run BibTeX, and then (pdf)LaTeX two more times before the citations will show up. It's perfectly normal to get [?]'s the first time compiling.
In any case, it's not possible to see what the problem could be from that code snippet. If the problem persists, we'll need an actual minimal working example.
In any case, it's not possible to see what the problem could be from that code snippet. If the problem persists, we'll need an actual minimal working example.
Re: Lyx to Latex
Thanks for your help.
I did that, but it doesn't work, either.
I post my preambles here, can you or anyone find any problems? I don't know what package can be deleted, which I guess might solve the problem....hopefully, I could get some feedback either from you or somebody.
Thanks!
\documentclass[12pt,english,openany]{article}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in,headheight=0.3in,headsep=0in}
\usepackage{babel}
\usepackage{array}
\usepackage{longtable}
\usepackage{float}
\usepackage{rotfloat}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{amssymb}
\usepackage[authoryear]{natbib}
\usepackage[dot]{bibtopic}
\doublespacing
\usepackage[unicode=true, pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{graphicx}
%\DeclareMathSizes{12}{10}{7}{5}
\date{October 2010}
%\date{\today}
\renewcommand{\footnotesize}{\fontsize{11pt}{12.5pt}\selectfont}
\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
\makeatother
\begin{document}
......
\section*{References}
\begin{singlespace}
\bibliographystyle{apsr}
\begin{btSect}{Ch3}
\btPrintCited
\end{btSect}
\end{singlespace}
{\large \pagebreak{}}{\large \par}
\appendix
\section*{Appendix A}
I did that, but it doesn't work, either.
I post my preambles here, can you or anyone find any problems? I don't know what package can be deleted, which I guess might solve the problem....hopefully, I could get some feedback either from you or somebody.
Thanks!
\documentclass[12pt,english,openany]{article}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in,headheight=0.3in,headsep=0in}
\usepackage{babel}
\usepackage{array}
\usepackage{longtable}
\usepackage{float}
\usepackage{rotfloat}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{amssymb}
\usepackage[authoryear]{natbib}
\usepackage[dot]{bibtopic}
\doublespacing
\usepackage[unicode=true, pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{graphicx}
%\DeclareMathSizes{12}{10}{7}{5}
\date{October 2010}
%\date{\today}
\renewcommand{\footnotesize}{\fontsize{11pt}{12.5pt}\selectfont}
\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
\makeatother
\begin{document}
......
\section*{References}
\begin{singlespace}
\bibliographystyle{apsr}
\begin{btSect}{Ch3}
\btPrintCited
\end{btSect}
\end{singlespace}
{\large \pagebreak{}}{\large \par}
\appendix
\section*{Appendix A}