tex4ebook: 구성 파일을 컴파일하는 중 오류가 발생했습니다.

tex4ebook: 구성 파일을 컴파일하는 중 오류가 발생했습니다.

myconfig.cfg코드 블록은 다음과 같습니다

\Preamble{xhtml}   
\Configure{AddCss}{blitz-lite.css}
\begin{document}
\EndPreamble

내 명령줄은 tex4ebook -c myconfig test2.tex -f epub3 mathml 다음을 얻습니다.

[STATUS]  tex4ebook: Conversion started
[STATUS]  tex4ebook: Input file: test2.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7250 64-bit)
entering extended mode
[ERROR]   htlatex: Compilation errors in the htlatex run
[ERROR]   htlatex: Filename     Line    Message
[ERROR]   htlatex: ?    4        LaTeX Error: Missing \begin{document} in `myconfig.cfg'.
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7250 64-bit)
entering extended mode
[ERROR]   htlatex: Compilation errors in the htlatex run
[ERROR]   htlatex: Filename     Line    Message
[ERROR]   htlatex: ?    4        LaTeX Error: Missing \begin{document} in `myconfig.cfg'.
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7250 64-bit)
entering extended mode
[ERROR]   htlatex: Compilation errors in the htlatex run
[ERROR]   htlatex: Filename     Line    Message
[ERROR]   htlatex: ?    4        LaTeX Error: Missing \begin{document} in `myconfig.cfg'.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
HTML Tidy for Windows released on 25 March 2009
        1 file(s) copied.
[STATUS]  tex4ebook: Conversion finished

\begin{document}구성 파일에 이 누락되지 않았습니다. 저는 메모장에 파일을 UTF-8.

blitz-lite.css작업 디렉토리에도 저장했습니다 .

무엇이 문제일까요?

업데이트: @michal.h21은 이전 버전이 있을 수 있다고 올바르게 표시했습니다. tex4ht 이것이 MikTex2.9 콘솔에 표시되는 내용입니다. tex4ht 패키지

``tex4ht``에는 두 가지 버전이 있습니다. 어쩌면 워크플로가 이전 워크플로를 호출하는 것일까요?

답변1

\Configure{AddCss}이 문제는 Miktex 에 대한 정의가 누락되어 발생한 것일 수 있습니다 . 구성 파일에서 정의되지 않음을 사용하면 인수가 문서 내용으로 끝나고 myconfig.cfg' -a debug tex4ebook` \Configure이 표시됩니다 .Missing \begin{document} inerror. You would get more detailed listing with theargument to

tex4ebook -a debug -c myconfig test2.tex -f epub3 mathml 

\Configure{AddCss}어쨌든 해결 방법으로 TeX4ht 소스 의 정의를 사용할 수 있습니다 .

\Preamble{xhtml}   
\NewConfigure{AddCss}[1]{%
  {\Configure{Needs}{File: #1}\Needs{}}
  \Configure{@HEAD}{\HCode{<link rel="stylesheet" type="text/css" href="#1" />\Hnewline}}
}
\Configure{AddCss}{blitz-lite.css}
\begin{document}
\EndPreamble

구성 \Configure{Needs}에서는 CSS 파일을 사용된 파일로 등록합니다. Epub 파일에 포함하려면 필요합니다.

관련 정보