BibTeX, biblatex and biberLyx to Latex

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
sparty
Posts: 3
Joined: Wed Nov 10, 2010 4:30 am

Lyx to Latex

Post by sparty »

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

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Lyx to Latex

Post by frabjous »

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.
sparty
Posts: 3
Joined: Wed Nov 10, 2010 4:30 am

Re: Lyx to Latex

Post by sparty »

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}
Post Reply