LyXError using Lyx and Bibdesk

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
dsilva22
Posts: 2
Joined: Sun Jan 26, 2014 10:06 pm

Error using Lyx and Bibdesk

Post by dsilva22 »

Hello, I'm a first time user of Lyx and i'm writing my thesis. I have a template to write the thesis accordantly to my Universities rules.

When I export the "example" file to PDF, it works great. When I add a citation and bibliography (created using bibdesk) I get the error "Missing \begin{document}" and "\makeindex[ lines]".

I'm using "autor year" notation.
When I use citations and the same bib desk file in a new document, it works fine.

Can someone please give some help?

Thanks,
Diogo Silva

Recommended reading 2024:

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

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

StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: Error using Lyx and Bibdesk

Post by StarValkyrie »

Sounds to me like a problem in the preamble but without more information, we can only guess what that might be. Can you give us a minimal working example? Or at the very least, the source code for your preamble and a few lines of the document including a citation. In LyX, you can view the source code via View>View Source, then in Source pane that opens, on the right hand side is a pulldown that probably says "Current Paragraph" - change it to "Complete Source".
dsilva22
Posts: 2
Joined: Sun Jan 26, 2014 10:06 pm

Error using Lyx and Bibdesk

Post by dsilva22 »

Thanks for the help.
I'm using OSX, if it counts for something.
Here is my source code. The citation is at the end of the document.

Best Reggards,
Diogo Silva

Code: Select all

Code, edit and compile here:
% Preview source code
%% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[a4paper,oneside,english,portuges,oldfontcommands,12pt,a4paper,openright,final,twoside,onecolumn]{memoir}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{babel}
\usepackage[authoryear]{natbib}
\usepackage[unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
{hyperref}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
%%!TEX encoding = UTF-8 Unicode
% According to UA rules, font size should range from 10 to 12pt.
%\documentclass[12pt,a4paper,openright,final,twoside,onecolumn]{memoir}
%\listfiles
%\fixpdflayout
%\usepackage[utf8]{inputenc}
%\usepackage[T1]{fontenc}
%For PDF merging
\usepackage{pdfpages}
%SET DPI to 300
\pdfpxdimen=\dimexpr 1in/300\relax
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Error using Lyx and Bibdesk

Post by StarValkyrie »

1st - you have a problem in the class options: both oneside and twoside.
2nd - your first includepdf, either define the pages numbers or leave the brackets empty but don't just have a dash.
3rd - comment out the second time you call the hyperref package (the one without the options listed).
4th -

Code: Select all

\include{\string"estado da arte\string"}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and

Code: Select all

\bibliography{bib/bibtex,\string"Bibliografia Tese\string"}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Both these are a bug in LyX - it inserts those \string or the " parts which are bad instead of telling you not to choose a filename with spaces. Once you resave them without spaces and reinsert both, it should show up correctly. But what are you trying to do with the first part - the bib/bibtex? Is your bib file in a different folder than the one containing the document? Are you working from multiple bib files?
Post Reply