부록에서 포르투갈어 언어를 사용하면 지원되지 않는 제어 시퀀스가 ​​발생합니다.

부록에서 포르투갈어 언어를 사용하면 지원되지 않는 제어 시퀀스가 ​​발생합니다.

MikTex 2.9 windows 7 및/또는 Kyle 2.1.2에서 내 작업을 컴파일하려고 합니다.

포르투갈어로 설정된 언어로 컴파일하려고 하면 부록에서 지원되지 않는 제어 시퀀스 오류가 발생합니다.

이것은 패키지가 로드되는 내 서문입니다.

\usepackage[brazil,american]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\usepackage{natbib}
\usepackage{url}
\usepackage{xcolor,graphicx,url}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{epstopdf,placeins}
\usepackage{glossaries}
\usepackage{caption}
\usepackage[toc,page]{appendix}

언어를 영어로 설정하면 문서가 정상적으로 컴파일됩니다.

오류 메시지는 .out 파일을 가리킵니다.

\BOOKMARK [0][-]{section*.40}{Refer\352ncias}{}% 35
\BOOKMARK [0][-]{Ap�ndice.1.A} <-------------- this line is throwing the error

Kyle(Linux)과 Windows(MikTex)에서 컴파일을 시도했는데 둘 다 동일한 오류가 발생했습니다. 유일한 차이점은 문자가 êLinux의 .out 파일에 인쇄되고 Windows에는 어리석은 물음표 인코딩 오류가 있다는 것입니다.

부록 장을 호출하기 전에 언어를 전환하면 모든 것이 잘 실행됩니다.

\def\appendixname{Ap\^endice}%또한 악센트 없이 PT 바벨 파일을 재정의하면 정상적으로 컴파일됩니다.

오류 없이 어떻게 포르투갈어로 부록을 편집할 수 있습니까(단어의 올바른 철자를 유지함)?

답변1

나는 같은 문제를 겪었습니다. 해결책은 기본 소스 파일의 프리앰블에 다음 코드를 삽입하는 것입니다. 코드는 패키지 hyperrefappendix.

\makeatletter
\renewcommand
   {\appendixtocname}{Ap\^{e}ndices}
 \renewcommand
   {\appendixpagename}{Ap\^{e}ndices}
 \renewcommand
   {\appendixname}{Ap\^{e}ndice} \let\oriAlph\Alph
 \let\orialph\alph
 \renewcommand{\@resets@pp}
   {\par\@ppsavesec  
     \stepcounter{@pps}%
     \setcounter{section}{0}%
     \if@chapter@pp
       \setcounter{chapter}{0}%
       \renewcommand\@chapapp{\appendixname}%
       \renewcommand\thechapter{\@Alph\c@chapter}%
     \else
       \setcounter{subsection}{0}%
       \renewcommand\thesection{\@Alph\c@section}%
     \fi
     \if@pphyper
       \if@chapter@pp
         \renewcommand
           {\theHchapter}
           {\theH@pps.\oriAlph{chapter}}%
       \else
         \renewcommand
           {\theHsection}
           {\theH@pps.\oriAlph{section}}%
       \fi
       \def\Hy@chapapp
          {appendix}%
     \fi
   \restoreapp
  }
\makeatother

관련 정보