꽤 오랫동안 Latex를 떠나 있었기 때문에 실제로 xcookybooky 패키지(V1.5) 내에서 utf8 컴파일 문제에 직면했습니다.
utf8 형식으로 작성한 간단한 레시피를 입력하려고 합니다.
기본적으로 기본 시작 정보가 포함된 하나의 Tex 파일과 레시피가 포함된 다른 파일에 대한 호소가 있습니다.
첫 번째 파일은 다음과 같습니다
\documentclass[%
a4paper,
%twoside,
%12pt
11pt
]{article}
\usepackage[utf8]{inputenc}
%\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[
%handwritten,
%myconfig,
nowarnings
]{xcookybooky}
\begin{document}
This is simple.
Les accents é ç à è fonctionnent correctement.
\include{Folder/TestUTF8}
\end{document}
이 두 번째 파일 TestUTF8은 가장 간단한 파일입니다.
This is UTF8 Test.
\begin{recipe}
Test encoding
\end{recipe}
따라서 사실은 다음과 같습니다.
- : 를 사용하여 기본 파일을 컴파일하면
[latin1]{inputenc}
모든 것이 잘 작동합니다. [utf8]{inputenc}
: 대신을 사용하여 기본 파일을 컴파일하면[latin1]{inputenc}
충돌이 발생합니다.[utf8]{inputenc}
주석\begin{recipe}
과 :을 사용하여 기본 파일을 컴파일하면\end{recipe}
정상적으로 작동합니다.
TexMaker가 인코딩을 오른쪽 하단에 표시한 이후로 내 파일은 Utf8로 작성된 것 같습니다.
누구든지 도움을 주시면 감사하겠습니다.
감사해요
답변1
xcookybooky.sty
latin1로 인코딩되어 있으며 헤더에 사용해야 하는 ASCII가 아닌 문자가 포함되어 있습니다. 이 문자는 utf8 문서에서 유효하지 않습니다.
utf8 파일에서 정의를 재설정할 수 있습니다. 그런 다음 컴파일해야 합니다.
\documentclass[%
a4paper,
%twoside,
%12pt
11pt
]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[nowarnings]{xcookybooky}
\IfLanguagePatterns{french}
{% French
\setHeadlines
{% translation
inghead = Ingrédients, %problem
prephead = Préparation, %problem
hinthead = Tuyau,
continuationhead = Suite,
continuationfoot = Suite page suivante,
portionvalue = Portions,
calory = Valeur calorifique
}
}{}
\begin{document}
This is simple.
Les accents é ç à è fonctionnent correctement.
This is UTF8 Test.
\begin{recipe}
Test encoding
\end{recipe}
%\include{Folder/TestUTF8}
\end{document}