请教package error ratehyperref Error的问题

Hyperref package error - \Hy@setref@link
comp.text.tex
Hyperref package error - \@link
Dear TeXies:
While compiling my thesis paper with kapmono.cls, I am getting mention
below error when I am using hyperref.sty:
=====================================================
OT1pcr.fd loading
Adobe Courier
) (&C:\Program Files\MiKTeX 2.5\tex\latex\amsfonts\amsfonts.sty&)
(&C:\Program Files\MiKTeX 2.5\tex\latex\base\makeidx.sty&)
Writing index file book.idx
(&C:\Program Files\MiKTeX 2.5\tex\latex\hyperref\hyperref.sty&
(&C:\Program Files\MiKTeX 2.5\tex\latex\graphics\keyval.sty&)
(&C:\Program Files\MiKTeX 2.5\tex\latex\oberdiek\hycolor.sty&)
(&C:\Program Files\MiKTeX 2.5\tex\latex\hyperref\pd1enc.def&)
(&C:\Program Files\MiKTeX 2.5\tex\generic\oberdiek\etexcmds.sty&
(&C:\Program Files\MiKTeX 2.5\tex\generic\oberdiek\infwarerr.sty&))
(&C:\Program Files\MiKTeX 2.5\tex\latex\00miktex\hyperref.cfg&)
(&C:\Program Files\MiKTeX 2.5\tex\latex\oberdiek\kvoptions.sty&)
Implicit mode ON; LaTeX internals redefined
(&C:\Program Files\MiKTeX 2.5\tex\latex\ltxmisc\url.sty&))
*hyperref using default driver hdvips*
(&C:\Program Files\MiKTeX 2.5\tex\latex\hyperref\hdvips.def&
(&C:\Program Files\MiKTeX 2.5\tex\latex\hyperref\pdfmark.def&))
(book.aux (book.aux))
(&C:\Program Files\MiKTeX 2.5\tex\latex\hyperref\nameref.sty&
(&C:\Program Files\MiKTeX 2.5\tex\latex\oberdiek\refcount.sty&))
(book.out) (book.out)
LaTeX Warning: Citation `conf' undefined on input line 52.
LaTeX Warning: Citation `nemeth-mon' undefined on input line 53.
LaTeX Warning: Citation `nemeth-moncom' undefined on input line 54.
LaTeX Warning: Citation `nemeth-gmon' undefined on input line 55.
LaTeX Warning: Citation `nemeth-homeom' undefined on input line 56.
LaTeX Warning: Citation `nemeth-var' undefined on input line 57.
(chapte1.tex
Chapter 1.
(&C:\Program Files\MiKTeX 2.5\tex\latex\amsfonts\umsa.fd&)
(&C:\Program Files\MiKTeX 2.5\tex\latex\amsfonts\umsb.fd&)
Runaway argument?
{\@firstoffive }\fi .
! Paragraph ended before \@link was complete.
&to be read again&
=====================================================
Tex file as follow:
*****************************************************************
\documentclass{kapmono}
\usepackage{T1enc}
\usepackage{monops}
\usepackage[mtbold,noTS1]{m-times}
\usepackage{subfigure}
\usepackage{latexsym}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{epsf}
\usepackage{verbatim}
\usepackage[active]{srcltx}
\makeindex
\newcommand{\im}{\mbox{\rm im}}
\newenvironment{proof}{{\bf Proof.}}{}
\newtheorem{remark}{Remark}[chapter]
\newtheorem{proposition}{Proposition}[chapter]
\makeindex
\kluwerbib
\chaptersection
\usepackage{hyperref}
\begin{document}
\chapter{Chapter Title}
\chaptitlerunninghead{1. Chapter Title}
\section{Section Head}\label{skt}
\noindent The behaviour of the scalar product $\langle f(x)-f(y),\,x-y
(with $f:\,\mathbb{R}^n\to\mathbb{R}^n$ and $\langle\,.\,,\,.\,\rangle
usual scalar product in $\mathbb{R}^n$) when $x$ and $y$ run over
$\mathbb{R}^n$ is a good tool in characterizing important properties
of $f$. If
$f$ is bounded, then this product converges to $0$ for $x\to y$.
Therefore it
cannot be used in obtaining a local characterization. Hence it is
natural to
consider at $y$ limits of the expressions of the form
$\langle f(x)-f(y),\,x-y\rangle/\langle x-y,\,x-y\rangle$ for $x\to y
$. Thus we
arrive naturally at a notion that we call the scalar derivative
\index{scalar derivatives}. It is in
general a multivalued mapping\index{mappings!set-valued} from $
\mathbb{R}^n$ to $\mathbb{R}$ even if $f$ is linear\index{mappings!
See section~\ref{skt}.
\end{document}
******************************************************************
Kindly suggest how to eradicate such error. Thanking you with
anticipation for your earliest and favorable reply.
&Prev&in&Thread]
Current&Thread
Hyperref package error - \@link,
, Heiko Oberdiek
, Heiko Oberdiek
Previous&by&Date:&
, Eitan M Gurari
Next&by&Date:&
Previous&by&Thread:&
Next&by&Thread:&
, Heiko Oberdieklatex - linebreak in url with Bibtex and hyperref package - Stack Overflow
to customize your list.
Join the Stack Overflow Community
Stack Overflow is a community of 6.7 million programmers, just like you, helping each other.
J it only takes a minute:
Why is this item not shown properly in my bibliography?
@misc{ann,
abstract = {ANN is an implbmentation of nearest neighbor search.},
author = {David M. Mount and Sunil Arya},
howpublished = {\url{http://www.cs.umd.edu/~mount/ANN/}},
keywords = {knn},
posted-at = { 00:05:04},
priority = {2},
title = {ANN.},
url = "http://www.cs.umd.edu/~mount/ANN/",
year = {2008}
@misc{Nilsson96introductionto,
author = {Nilsson, Nils J.},
citeulike-article-id = {6995464},
howpublished = {\url{http://robotics.stanford.edu/people/nilsson/mlbook.html}},
keywords = {*file-import-10-04-11},
posted-at = { 06:52:28},
priority = {2},
title = {Introduction to Machine Learning: An Early Draft of a Proposed Textbook.},
year = {1996}
I am using
\usepackage{hyperref}
\usepackage{url}
. It produces error when using url package together with it. So can the two not work together?
I would like to use hyper links inside pdf file, so I want to use hyperref package instead of url package. I googled a bit, and try
\usepackage[hyperindex,breaklinks]{hyperref}
but there is still no line break just as before. How can I do it?
When using url and hyperref together,
if it is just
\usepackage{hyperref}
\usepackage{url}
the compilation by latex is fine, but the link is still hyperlink and has still no linebreak. If I do not use hyperref package, the link has linebreak, but I lose hyper links. Since \url can be used in both hyperref and url packages, how can I specify which package's \url is being used?
\usepackage{hyperref}
\usepackage[hyphens]{url}
the compilation by latex command will report clash with url:
LaTex Error: Option clash for package url.
So I wonder how I should do?
20.5k82192292
If you mean the too-wide spacing, that's because the URLs seems to not allow line-breaks. Why this happens is another question, and the answer depends on your preamble (the packages you use etc.). In principle, if properly used, the
should allow line breaks.
This problem (and its solution) is described
(sending you to a Google cache since the site is offline at the moment). Bottom line: either use the
package, or PDFLaTeX, or both.
You should use them in this order:
\usepackage[hyphens]{url}
\usepackage{hyperref}
You get this error when you use them the other way around.
! LaTex Error: Option clash for package url.
since the hyperref package loads the url package somewhere internally without that hypens option, and then you want to load it with the option, so it clashes.
Turning the order around does what you want and does not give this error (since the package is already loaded hyperref won't load it again with different options)
3,18611831
I just ran across almost the same problem and found it solved by putting
\PassOptionsToPackage{hyphens}{url}
before the
\usepackage[...]{hyperref}
Normally URLs are hyphenated, but in your bibliography they seem not to be. When the URLs don't fit on one line, they are moved to the next line, and the text before them is stretched to fill out the preceding lines. Since there is only one place to break the line, it's not very likely that the preceding text will fit nicely into a whole number of lines, and so you get all the extra space.
EDIT: When you changed your bib entry, you happened to change it in such a way that the text did fit nicely. This is just a coincidence, you didn't fix your problem.
I suspect that putting
\usepackage{url}
in your preamble will solve it.
35.2k867113
Weird, I load the url package (with no option) and hyphenation is done at the slashes / if needed.
Anyway, simple workaround:
howpublished = {\url{http://www.cs.umd.edu/}\url{~mount/ANN/}},
Manual job, but it splits up the URL yes or yes.
1,06421224
for me only this worked:
\usepackage[hyphens]{url}
\usepackage{hyperref}
\usepackage{biblatex}
\setcounter{biburlnumpenalty}{100}
\setcounter{biburlucpenalty}{100}
\setcounter{biburllcpenalty}{100}
Taken from:
This simple solution worked for me:
\usepackage{hyperref}
\usepackage{breakurl}
The URLs are now perfect.
I add this package:
\usepackage[hyphens]{url}
and in the bibtex I used:
howpublished = {**\url{**http://www.......**}**}
and it works out.
At the preamble, just put \usepackage{breaker} somewhere after \usepackage{hyper ref}. The \burl command is defined and, by default, the package also turns the \url command into a synonym of \burl.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
The week's top questions and answers
Important community announcements
Questions that need answers
By subscribing, you agree to the
rev .25074
Stack Overflow works best with JavaScript enabled查看: 1918|回复: 31
调用hyperref宏包后出不来pdf
本帖最后由 幽谷之草 于
20:51 编辑
调用hyperref宏包后出不来pdf,显示Fatal error occurred, no output PDF file produced!
可以完成编译。如果不调用hyperref宏包,那么没有问题。
答复模板三:完善提问
你可能还不了解如何提问才能把问题说清楚。基本的要求是清晰:
如果你在问关于代码的问题,那么你应该给出:
&&1) 能直接编译就产生重现这个问题的完整代码。但在完整的基础上代码最好经过删节,不要出现整页的信息。
如果效果不正确,那么给出:
&&2) 理想中的效果的清楚描述,并且把出问题的效果截图,或将 PDF 文件上传。
如果代码还产生了错误,那么应该再给出:
&&3) 在 log 文件中关于编译错误的信息,为了正确说明问题,上下文完整一些比简洁更重要。其中 log 文件是在你写作文档所在目录编译时产生的一个与源文件同名、后缀名为 .log 的文件。编译信息,请把出错之前的若干行信息在正文中贴出来,如果必要再将整个 log 文件附件上传,但不要对编译错误贴图。
&&4) 如果对选择代码和错误信息有困难,请把所涉及的文件打包成 .zip、.rar 或 .tar.gz 等格式的文件,用附件的形式发上来。打包的内容至少应该包括源文件和 log 文件。
\def\CTeXPreproc{Created by ctex v0.2.12, don't edit!}
\documentclass[a4paper,twoside,12pt,CJK]{cctbook}
\usepackage{mathrsfs}
\usepackage{mathrsfs,indentfirst,amsmath,amsthm,makeidx,amssymb,graphicx,epsf,cctbase,color,vatola,graphicx,fancyhdr}
\usepackage[top=35mm,bottom=30mm,left=30mm,right=26mm]{geometry} %%&&设置页面边距
\usepackage{hyperref}
%\usepackage[linkcolor=blue,citecolor=blue,backref=page]{hyperref}
\parindent 2 \ccwd&&%% 定义中文两个汉字的距离
\newcommand{\xiaosan}{\fontsize{15pt}{22.5pt}\selectfont}& && &&&%%&&定义小三字体
\setlength {\baselineskip}{20pt}& && && && && && && && && && && &%%&&设置全文固定行间距为 20pt
\clearpage{\pagestyle{empty}\cleardoublepage}& && && && && && &&&%%&&空白页面 没有 页眉页脚 放置在每一章最前面
\renewcommand\sectionname{\arabic{chapter}.\arabic{section}}
\renewcommand\bibname{参考文献}
\renewcommand\sectionformat{\flushleft}& && && && && && && && &%% 设置段落section标题左对齐
\renewcommand\subsectionformat{\flushleft}& && && && && && && &%% 设置段落subsection标题左对齐
\begin{document}
\newpage
\setcounter{page}{1} \pagenumbering{Roman}
%\begin{center}
%\makeatletter
%\let \asas \ps@plain
%\let \ps@plain \ps@empty
%\makeatother \thispagestyle{empty} \pagestyle{empty}
% \tableofcontents
%\makeatletter
%\let \ps@plain \asas
%\let\asas\relax
%\makeatother \thispagestyle{empty} \pagestyle{empty}
%\end{center}
\tableofcontents
\clearpage{\pagestyle{empty}\cleardoublepage} \setcounter{page}{1}
\newpage
\chapter{泛函分析教程}
\section{空间}
空间的定义可参考\cite{Folland99},
%%-------------------------------------------参考文献---------------------------------%%
\clearpage{\pagestyle{empty}\cleardoublepage} \vskip 2cm
\addcontentsline{toc}{chapter}{参考文献}
\begin{thebibliography}{99}
\bibitem{Stein05}E. M. Stein, R. Shakarchi, Real Analysis[M]. Priceton University Press, 2005.
\bibitem{Folland99} G. B. Folland,&&Real Analysis 2nd ed[M]. A Wiley-Interscience Publication, 1999.
\bibitem{Petersen83} K. Petersen,&&Ergodic Theory[M]. Cambrige University Press, 1983.
\end{thebibliography}
\end{document}
复制代码
以上是代码。
本帖最后由 LiamHuang 于
18:18 编辑
%!Mode:: &TeX:UTF-8&
%!TeX program&&= xelatex
\documentclass[a4paper,twoside,UTF8,zihao=-4]{ctexbook}
\usepackage{amsmath,amsthm,amssymb,mathrsfs}
\usepackage{makeidx,graphicx,epsf,xcolor,graphicx,fancyhdr}
\usepackage[top=35mm,bottom=30mm,left=30mm,right=26mm]{geometry} %%&&设置页面边距
\usepackage{hyperref}
% \usepackage[linkcolor=blue,citecolor=blue,backref=page]{hyperref}
\newcommand{\xiaosan}{\zihao{-3}}& &%%&&定义小三字体
\setlength {\baselineskip}{20pt}& & %%&&设置全文固定行间距为 20pt
\clearpage{\pagestyle{empty}\cleardoublepage}& &%%&&空白页面 没有 页眉页脚 放置在每一章最前面
\renewcommand\thesection{\arabic{chapter}.\arabic{section}}
\renewcommand\bibname{参考文献}
\ctexset{section/format+={\raggedright}}
\ctexset{subsection/format+={\raggedright}}
\begin{document}
\frontmatter
\tableofcontents
\clearpage{\pagestyle{empty}\cleardoublepage}
\mainmatter
\chapter{泛函分析教程}
\section{空间}
空间的定义可参考\cite{Folland99},
%%参考文献
\clearpage{\pagestyle{empty}\cleardoublepage} \vskip 2cm
\addcontentsline{toc}{chapter}{参考文献}
\begin{thebibliography}{99}
\bibitem{Stein05}E. M. Stein, R. Shakarchi, Real Analysis[M]. Priceton University Press, 2005.
\bibitem{Folland99} G. B. Folland,&&Real Analysis 2nd ed[M]. A Wiley-Interscience Publication, 1999.
\bibitem{Petersen83} K. Petersen,&&Ergodic Theory[M]. Cambrige University Press, 1983.
\end{thebibliography}
\end{document}复制代码
微信截图_27.png (58.04 KB, 下载次数: 65)
17:27 上传
并没有什么问题……
CCT,好古老的东西,这个模板岁数估计和楼主相仿哇、、
并没有什么问题……
也许是电脑的原因,你贴的代码在我这过不去,报错。
CCT,好古老的东西,这个模板岁数估计和楼主相仿哇、、
其实我也不想用这么古老的东西,我这能找到的就只有这了,我自己又不会做。
不要抄别人的代码。搞懂了自己写。不然会出各种问题。&
也许是电脑的原因,你贴的代码在我这过不去,报错。
装最新的 TeX Live 2015,更新所有宏包到最新,保存为 UTF-8 编码,用 XeLaTeX 编译。拯救你饿……
装最新的 TeX Live 2015,更新所有宏包到最新,保存为 UTF-8 编码,用 XeLaTeX 编译。拯救你饿……
保存为 UTF-8 编码是什么意思?
保存为 UTF-8 编码是什么意思?
详询搜索引擎。
Powered by}

我要回帖

更多关于 请教别人问题的邮件 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信