|
如题。代码如下:
- \documentclass[a4paper]{book}
- \usepackage{amsmath,bm,yhmath,amssymb,etoolbox,esvect,stmaryrd,mathtools,ifthen}
- \usepackage[dvipsnames, svgnames]{xcolor}
- \usepackage{pgf,tikz}
- \usepackage[inline]{asymptote}
- \usepackage{tkz-euclide}
- \usepackage[amsmath, thmmarks]{ntheorem}
- {
- \theoremstyle{nonumberplain}
- \theoremheaderfont{\indent\bfseries}
- \theorembodyfont{\normalfont}
- \theoremsymbol{\ensuremath{\Box}}
- \newtheorem{proof}{证明}
- }
- \newtheorem{theorem}{定理}[section]
- \usepackage[colorlinks,linkcolor=red,anchorcolor=blue,citecolor=blue]{hyperref}
- \begin{document}
- \frontmatter
- \tableofcontents
- \mainmatter
- \begin{asydef}
- settings.prc = true;
- settings.embed = true;
- import three;
- import math;
- import geometry;
- import graph3;
- import texcolors;
- \end{asydef}
- \begin{theorem}
- $\Gamma, F_1,F_2$
- \end{theorem}
- \begin{asy}
- size(8cm,0);
- point FF1 = (-1,0), FF2 = (1,0), X = (0,1);
- ellipse el = ellipse(FF1, FF2, X);
- draw(el);
- \end{asy}
- \begin{proof}
- \end{proof}
- \end{document}
复制代码
编译时,先xelatex my,再asy *.asy,最后再xelatex my。出错发生在第二次xelatex my时。如果删除hyperref的那些参数,就能编译通过,但我还想要那些链接的颜色,请教这个要怎么弄? |
|