Hello

I have added the following code (I took it from EmbeddedObjects.lyx) to the
preamble of my document:

% if pdflatex is used
\usepackage{ifpdf}
\ifpdf

\usepackage[pdfborder={0 0
0}]{hyperref}\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}

\usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen,
bookmarksopenlevel=1,
  linkcolor=black, citecolor=black, urlcolor=black, filecolor=black,
  pdfpagelayout=OneColumn, pdfnewwindow=true,
  pdfstartview=XYZ, plainpages=false, pdfpagelabels,
  pdfauthor={LB}, pdftex,
  pdftitle={PDF title},
  pdfsubject={PDF Title},
  pdfkeywords={blah}]{hyperref}

\else % if dvi or ps is produced

 % link all cross references and URLs in DVI output
 \usepackage[ps2pdf, colorlinks=true,
  linkcolor=black, citecolor=black, urlcolor=black,
filecolor=black]{hyperref}

\fi % end if pdflatex is used

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

The hyperefereces to sections, figures, equations work well!
However there are some problems that I need to fix (I use Book  as document
class, Lyx 1.4.3):
1. The bookmarks to some sections such as Acknowledgement, Glossary etc
point to wrong pages.
   I created these with Chapter*.
2. How can I added hyperref to bibliographic references?  It would be nice
if when I clicked on [1], the document would jump to Bibliography section
and shown reference [1].
3. The captions in the List of Tables and  List of Figures and sections in
TOC do not wrap when the reach the right side of the page. How can this be
fixed?

Thank you for you help
Leo


Reply via email to