Hi list,

(using Lyx 1.6.10 with book(KOMA-script))

I am counting down days before submitting... (it's really a deadline I can't 
miss to deliver my work) and I used to compile my koma-script-based document 
in draft mode. Now, I try to compile it correctly and it insist returning this 
error: "file ended while scanning use of \@@BOOKMARK".

Is it in the .bib file maybe? I've checked all strange names (non utf8 
characters) and have formatted them using, for example {\'a} and {\=a} as well 
as {\'e} (all this I did in kbib, which I like a lot).

How can I clean the .bib file "automatically"? Is there any other smart way to 
avoid this? Instead of bibtex, use anything else, but fast and simple?

Or is this \@@BOOKMARK error not related with the bibliography entries?

Thanks a million, Nikos
---


ps- if it is of any help, I have the following accessoires in the Preamble:

---%<--
% Title

% do _not_ print the date
\date{}
%%%%%%%%%%%%%%%%


% Various stuff

% line numbering
\usepackage{lineno}

% For inline listing
\usepackage{paralist}

% strike through
\usepackage{soul}

% breakurl's
\usepackage{breakurl}

% try more to avoid single lines at end or start of (any) page
\widowpenalty=500
\clubpenalty=500

% consistent spacing between sentences
\frenchspacing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% For landscape pages

\usepackage{lscape}
%%%%%%%%%%%%%



% Martin Vogels Symbols

%\usepackage{marvosym}
%\usepackage{tipa}
%%%%%%%%%%%%%%%



% Oval boxes

%\let\customovalbox\ovalbox
%\renewcommand{\ovalbox}[1]{\customovalbox{#1}\medskip}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% Colors

% \usepackage{color}
\usepackage{xcolor}

% define marine blue
\definecolor{marineblue}{rgb}{0.05,0.1,0.4}
\definecolor{marineblue2}{rgb}{0.05,0.1,0.5}

% define lightgray
\definecolor{lightgray}{gray}{0.2}
\definecolor{lightgray2}{gray}{0.8}
\definecolor{lightgray3}{gray}{0.9}
\definecolor{graytext}{gray}{0.4}

% change grey color for greyedout notes
\renewenvironment{lyxgreyedout}
% {\textcolor{lightgray}\bgroup}{\egroup}
{\textcolor{red}\bgroup}{\egroup} % use red for DRAFT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% ToC

% \KOMAoptions{listof=toc}

% silence part-, section- and subsection-entry page numbering
\usepackage{tocloft}
\cftpagenumbersoff{part}
%\cftpagenumbersoff{section}
\cftpagenumbersoff{subsec}

% chapter-number color redefinition
\renewcommand{\cftchapfont}{\protect\color{marineblue}}

% chapter page-number color redefinition
% ATTENTION to changes!!!
\renewcommand{\cftchappagefont}{\color{marineblue}}

% same for sections
%\renewcommand{\cftsecpagefont}{\color{marineblue}}

% Space before parts in the TOC
% \setlength{\cftbeforepartskip}{0.7cm} 

% Chapter between-entry spacing in TOC
% \setlength{\cftbeforechapskip}{0.2cm} 

% multicolumntoc
%\RequirePackage{multicol}
%\RequirePackage{ifthen}
%\newcommand{\multicolumntoc}{2}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% LoF

% Vertical Spacing
\KOMAoptions{listof=chaptergapline}


% More space for figure numbers
\setlength{\cftfignumwidth}{3.0em}
% Space between elements of the list
% \setlength{\cftbeforefigskip}{0.1cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%



% LoT
% Tables
% More space for table numbers
\setlength{\cfttabnumwidth}{3.0em}
%%%%%%%%%%%%%%%%%%%%%%%



% Mini Table of Contents for each Chapter :-)

% loose line spacing in minitoc's
\usepackage[k-loose]{minitoc}

% title of minitoc
% e.g. for "Overview" use "\mtcsettitle{minitoc}{Overview}"
%\mtcsettitle{minitoc}{Overview}
% for empty title
\mtcsettitle{minitoc}{}

% turn off rules before and after the minitoc's
\mtcsetrules{minitoc}{off}

% turn off page numbering in minitoc's
%\mtcsetpagenumbers{minitoc}{off}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% Floats

%
\usepackage{epsfig}

% avoid placing floats before their section
\usepackage{flafter}
%\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}

% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}

% that links to image floats jumps
% to the beginning of the float and 
% not to its caption
%\usepackage[figure]{hypcap}

% unfloating figure on empty page
\usepackage{floatpag}
% or use...
%\usepackage{nonfloat} %%% too complicated!
% Default page style for pages with only flloats
\floatpagestyle{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% Tables

% scale tables
\usepackage{graphicx}

% rulers for tabs ---------
\usepackage{booktabs}
% provides caption formatting
%\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]

% extra fonts for captions
\usepackage[margin=10pt,font=small,labelfont=bf,labelsep=endash]{caption}

% color for cells
\usepackage{colortbl}

% multirows
\usepackage{multirow}
\renewcommand{\multirowsetup}{\centering}

% big delimiters spanning over n rows
\usepackage{bigdelim}

% align table cells
%\usepackage{dcolumn}
\usepackage{warpcol}

% rotating
\usepackage{rotating,ragged2e}
\newcommand\Rotate[1]{\begin{turn}{90}\rlap{#1}\end{turn}}

%
\usepackage[point,norounding,english]{rccol}
\rcDecimalSignInput{.}
\rcDecimalSignOutput{.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% Listings

\usepackage{textcomp}
\usepackage{listings}
\lstset{alsoletter={*()"'0123456789.},
basicstyle=\color{marineblue2}\small,
breaklines=true,
keywordstyle=\color{marineblue}\bfseries,
prebreak={\textbackslash},
upquote=true}
%%%%%%%%%%%%%%%%%%%%%%%%%%



% Footnotes

% per-chapter numbering
%\numberwithin{footnote}{chapter}

% multiple footnotes
\KOMAoptions{footnotes=multiple}
\renewcommand*{\multfootsep}{,\nobreakspace}
% insert additional 1.5 mm vertical space between footnotes
\let\myFoot\footnote
\renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% Part

% partpagestyle without page number
%\renewcommand*{\partpagestyle}{empty}



% Headers

% fancy headers
% \usepackage{fancyhdr}
% \pagestyle{fancy}

\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\thepage}]{\fancyplain{}{\rightmark}}
\rhead[\fancyplain{}{\leftmark}]{\fancyplain{}{\thepage}}
\cfoot{}
%%%%%%%%%%%%%%%%%%%%%%%%%%



% KOMA chapterthumb
%\usepackage{chapterthumb}
%\renewcommand*{\chapterthumbboxcolor}{lightgray2}
%\pagestyle{scrheadings}
%%% Problem with fancyhdr %%%
%\lohead[\putchapterhumb]{\putchapterthumb}
%\addtokomafont{chapterthumb}{\bfseries}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% Chapters on the left
% by Markus Kohm
% copied from http://www.komascript.de/node/27
% 
% Move numbers of section headings left into the margin
%
% Re-define \chapterformat only if it is defined and not
% \relax without making it \relax if it is not defined:
\begingroup
\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname chapterformat\endcsname\relax\else
  \renewcommand*{\chapterformat}{%
    \llap{%
      % Following line is the original definition
      \chapappifchapterprefix{\ }\thechapter\autodot\enskip
    }%
  }
\fi
 
% Re-define \othersectionlevelsformat
\renewcommand*{\othersectionlevelsformat}[1]{%
  \llap{%
    % Following line is the original definition
    \csname the#1\endcsname\autodot\enskip
  }%
}
%
% End of redefining format makros                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% no end-periods!
\KOMAoptions{numbers=noendperiod}
%%%%%%%%%%%%%%%%%%%%%%%%



% Kerning/Margin

\usepackage[final,expansion=true,protrusion=true]{microtype}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% PDF

% bookmark for TOC
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
  \pdfbookmark[1]{\contentsname}{}
  \myTOC
}

% redefine the \LyX macro for PDF bookmarks
\def\LyX{\texorpdfstring{%
  L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
  {LyX }}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-->%---

Reply via email to