LyX ⇒ Error using Lyx and Bibdesk
Error using Lyx and Bibdesk
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
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
-
- Posts: 89
- Joined: Fri Jan 24, 2014 12:42 am
Re: Error using Lyx and Bibdesk
Error using Lyx and Bibdesk
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
% 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
%\usepackage{morewrites} % Allow the use of a larger number of packages
% For custom date format
%\usepackage{datetime}
%\newdateformat{thesisdate}{\monthname[\THEMONTH] \THEYEAR} % Month Year
% floats on facing pages
%\usepackage{dpfloat}
%Side by side figures
% Eg. Fig 1a, Fig 1b
%\let\subcaption\undefined
%\let\subfloat\undefined
%\usepackage{subcaption}
% Computer Modern Typewritter (For bold ttfamily in listings)
\usepackage{lmodern}
%Dropped Caps
%\usepackage{lettrine}
%Configure Hyperlink color
%\usepackage[breaklinks=true,colorlinks=false,linkcolor=blue]
\usepackage{hyperref}
%Redefine section names
%\def\sectionautorefname{Section}
%\def\chapterautorefname{Chapter}
%\def\figureautorefname{Figure}
%\def\listingautorefname{Listing}
%\def\tableautorefname{Table}
%For PDF Comments
\usepackage{comment}
\usepackage{pdfcomment}
\usepackage{bookmark} % New Bookmarks
%For Multiple columns in Glossary
\usepackage{multicol}
%Math symbols
%\usepackage{amsmath}
%\usepackage{amssymb}
%Graphics
\usepackage{graphicx}
%Colors
\usepackage{xcolor}
%Euro symbol
\usepackage{eurosym}
% Code boxes
\usepackage{listings}
\lstloadlanguages{C++,Java}
\lstset{
frame=tb,
frameround=ffff,
language=Java,
tabsize=3,
captionpos=b,
commentstyle=\ttfamily\color{gray},
stringstyle=\ttfamily\color{gray},
keywordstyle=\ttfamily\bfseries,
basicstyle=\scriptsize\mdseries,
aboveskip=1.5\baselineskip,
belowskip=1.5\baselineskip,
breaklines=true,
float,
%numberbychapter=false,
breakatwhitespace=true
%stepnumber=1,
%numbersep=5pt,
%numbers = left
}
% ------- REPLACED BY LyX BibTex Suport -------
%Biber using IEEE style for proper UTF-8 support
%\usepackage[backend=biber,style=ieee, sorting=none]{biblatex}
%\bibliography{bib/references.bib, bib/rfc.bib}
%\bibliography{bib/bibtex.bib}
%Configure Linespacing
\usepackage{setspace}
% As the name says... Allow using custom font sizes
%\usepackage{anyfontsize}
%Use acronyms
\usepackage{acronym} % For acronyms
% Enable chart support through pgf and tikz
%\usepackage[version=0.96]{pgf}
%\usepackage{tikz}
%\usepackage{pgf-umlsd}
%\usetikzlibrary{arrows,shadows,trees,shapes,snakes,automata,backgrounds,petri,mindmap} % for pgf-umlsd
\usepackage{verbatim}
%Frames around figures and allow force placement
\usepackage{float}
%Configure Float style
%\floatstyle{boxed}
%\restylefloat{table}
%\restylefloat{figure}
%\restylefloat{lstlisting}
%For test purposes
\usepackage{lipsum}
%Keep floats inside section!
%THIS CAUSE A BAD FORMAT OF BIBLIOGRAPHY TITLE
%\usepackage[section]{placeins}
%\let \oldsubsubsection \subsubsection
%\renewcommand{\subsubsection}[2][]{
% \FloatBarrier
% \oldsubsubsection#1{#2}
%}
%\let \oldsubsection \subsection
%\renewcommand{\subsection}[2][]{
% \FloatBarrier
% \oldsubsection#1{#2}
%}
%\let \oldsection \section
%\renewcommand{\section}[2][]{
% \FloatBarrier
% \oldsection#1{#2}
%}
%\let \oldchapter \chapter
%\renewcommand{\chapter}[2][]{
% \FloatBarrier
% \oldchapter#1{#2}
%}
%%% ToC down to subsections
%\settocdepth{subsection}
%%% Numbering down to subsections as well
%\setsecnumdepth{subsection}
%%%% extra index for first lines
\makeindex[lines]
%Margins for University of Aveiro Thesis
\setlrmarginsandblock{3cm}{2.5cm}{*}
\setulmarginsandblock{3cm}{3cm}{*}
\checkandfixthelayout
%Line spacing: 1.5 pt
\OnehalfSpacing
%Or custom spacing
%\addtolength{\parskip}{0.5\baselineskip}
\makeatother
\begin{document}
\includepdf[pages=-]{cover.pdf}
% Select chapter style from existing or select custom
% (dowding, demo2, dash, chappell, brotherton, bianchi, ger, madsen, tatcher, veelo, indexes)
% NOT ADVISED TO CHANGE THIS
\chapterstyle{brotherton}
\renewcommand\chapternamenum{ }
\renewcommand\printchapternum{\chapnumfont\thechapter\par}
% title font
%\precaption{\small\raggedright\bfseries}
% for Caption N
%\captionstyle{\small\raggedright\normalfont}
% for title
%\setlength{\belowcaptionskip}{\onelineskip}
%Exclude sub figures from List of Figures
%\captionsetup[subfloat]{list=no}
%Select Page style
\pagestyle{plain}
\frontmatter
\tightlists
\midsloppy
\raggedbottom
\setcounter{tocdepth}{2}
%subsections are added to the TOC
\setcounter{secnumdepth}{4}
%subsubsections are numbered
%
%Optional! Remove in final version.
%\small
%\listofpdfcomments[liststyle=SubjectAuthor]
%\cleardoublepage
%Table of contents
\small
\tableofcontents
\cleardoublepage
%List of figures
\small
\listoffigures
\normalsize
%List of tables
\cleardoublepage
\small
\listoftables
%Set glossary as Roman Index
%\backmatter
\include{glossary}%Main document starts here
\mainmatter
\include{introducao}
\include{\string"estado da arte\string"}
\citet{CIRIA}
\bibliographystyle{perception}
\nocite{*}
\bibliography{bib/bibtex,\string"Bibliografia Tese\string"}
\end{document}
-
- Posts: 89
- Joined: Fri Jan 24, 2014 12:42 am
Error using Lyx and Bibdesk
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"}
Code: Select all
\bibliography{bib/bibtex,\string"Bibliografia Tese\string"}