编译书签时出错

编译书签时出错

当编译我的 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

根据Christian Hupfer 的评论

在此处输入图片描述

\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}

在此处输入图片描述

相关内容