![编译书签时出错](https://linux22.com/image/364375/%E7%BC%96%E8%AF%91%E4%B9%A6%E7%AD%BE%E6%97%B6%E5%87%BA%E9%94%99.png)
当编译我的 MWE 时,我的标记中的重音出现了问题。
为什么使用 LuaLaTeX 编译时会出现错误,而使用 pdfLateX 不会出现这种情况?
平均能量损失
\documentclass[11pt,fleqn]{book}
\usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]{geometry}
\usepackage{blindtext}
\usepackage[portuguese]{babel}
\usepackage{avant}
\usepackage{mathptmx}
\usepackage{microtype}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[]{hyperref}
\hypersetup
{
hidelinks, % Remove red boxes
bookmarksnumbered=true,
pdfauthor={Brian Griffin},
pdftitle={Wish it, Want it, Do it},
pdfsubject={Self help},
pdfkeywords={therapy,healing,chicken soup},
pdfproducer={Penguin Publishing}
}
\renewcommand*{\thechapter}{%
\texorpdfstring{}{\chaptername\space}\arabic{chapter}%
\texorpdfstring{}{: }%
}
% Section numbers without prefix or the place for adding a prefix
% "Section".
\renewcommand*{\thesection}{%
\arabic{chapter}.\arabic{section}%
}
\begin{document}
\tableofcontents
\chapter{Informações}
\blindtext
\section{Conversa informal}
\blindtext
\chapter{Caracterização}
\blindtext
\chapter{Conhecimento criativo}
\blindtext
\end{document}
答案1
\documentclass[11pt,fleqn]{book}
\usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]{geometry}
\usepackage{blindtext}
\usepackage[portuguese]{babel}
\usepackage{avant}
\usepackage{mathptmx}
\usepackage{microtype}
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[]{hyperref}
\hypersetup
{
unicode,
hidelinks, % Remove red boxes
bookmarksnumbered=true,
pdfauthor={Brian Griffin},
pdftitle={Wish it, Want it, Do it},
pdfsubject={Self help},
pdfkeywords={therapy,healing,chicken soup},
pdfproducer={Penguin Publishing}
}
\renewcommand*{\thechapter}{%
\texorpdfstring{}{\chaptername\space}\arabic{chapter}%
\texorpdfstring{}{: }%
}
% Section numbers without prefix or the place for adding a prefix
% "Section".
\renewcommand*{\thesection}{%
\arabic{chapter}.\arabic{section}%
}
\begin{document}
\tableofcontents
\chapter{Informações}
\blindtext
\section{Conversa informal}
\blindtext
\chapter{Caracterização}
\blindtext
\chapter{Conhecimento criativo}
\blindtext
\end{document}