Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

章标题中不能插入转义符号 #223

Closed
4 tasks
liye0713 opened this issue Apr 23, 2019 · 6 comments
Closed
4 tasks

章标题中不能插入转义符号 #223

liye0713 opened this issue Apr 23, 2019 · 6 comments
Labels

Comments

@liye0713
Copy link

检查

  • 已经阅读《研究生学位论文撰写手册》或《关于本科毕业论文(设计)格式和统一封面的通知》
  • 已经将模板升级到了最新版
  • 已经阅读使用说明文档 ustcthesis.pdf
  • 已经阅读 常见问题

编译环境

  • 编译的系统: Windows 10
  • TeX 发行版: TeX Live 2018
  • 模板类型: master

描述问题

在章标题中插入转义字符,编译报错

示例代码:
\section{三线表 $\alpha$}

截图:
image

@zepinglee
Copy link
Member

zepinglee commented Apr 23, 2019

我能复现你的问题,经测试是因为 hyperref 宏包导致的,下面的代码注释掉第二行就可以编译通过

\documentclass{book}
\usepackage{amsmath}
\usepackage{unicode-math}
\usepackage{hyperref}
\begin{document}
\chapter{$\alpha$}
\end{document}

可能是 hyperref 的配置有些问题

@zepinglee zepinglee added the bug label Apr 23, 2019
@stone-zeng
Copy link
Contributor

是与 unicode-math 的兼容性问题,见 https://tex.stackexchange.com/q/69331

@zepinglee
Copy link
Member

@liye0713 可以用 \texorpdfstring 暂时解决,但是根本上还是需要 unicode-mathhyperref 宏包来解决

@zepinglee
Copy link
Member

另外参考 https://www.zhihu.com/question/30287181

@zepinglee
Copy link
Member

\mu 的问题已经修复: latex3/hyperref#90

@zepinglee
Copy link
Member

Fixed in ce808b2 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants