首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >由MikTex的latex.exe生成的file.4ct和file.4tc的关系是什么?

由MikTex的latex.exe生成的file.4ct和file.4tc的关系是什么?
EN

Stack Overflow用户
提问于 2010-07-23 13:52:32
回答 1查看 342关注 0票数 0

目前,我正在研究我们编写的文档生成(.tex、->、.pdf和.chm)方面的问题,我不得不承认,在生成LaTeX方面,我非常无知。

长话短说:

通过pdflatex -output-format=pdf -interaction=batchmode ourfile.tex

  • Script正确生成
  1. PDF,然后继续调用3次:

latex -interaction=batchmode \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode html,5.a.b.c.\input ourfile.tex

  • This生成以下文件:ourfile.4ctourfile.4tc ourfile.aux ourfile.dvi ourfile.idx ourfile.log ourfile.xref

  • Script,然后继续处理.4ct文件,该文件似乎是包含标题和引用的TOC文件。脚本使用这些数据为chm项目文件(hhp文件)生成TOC数据。

但是,当我交替地从(2)第4、5、6次运行命令时,我可以看到每次运行命令时,.4ct和.4tc文件的内容都会交换。这就是:

( a)运行=> ourfile.4ct = 126行/ ourfile.4tc = 793行

( b)运行=> ourfile.4ct = 793行/ ourfile.4tc = 126行

c)运行=> ourfile.4ct = 126行/ ourfile.4tc = 793行

( d)等

生成的.log文件仅引用ourfile.4ct,在第一次出现时,我看到以下警告.

代码语言:javascript
复制
---------------------------------------------------------
l.1 --- TeX4ht warning --- If not done so, the index is to be processed by
  tex '\def\filename{{Td_g}{idx}{4dx}{ind}} \input  idxmake.4ht'
  makeindex -o Td_g.ind Td_g.4dx
instead of
  makeindex -o Td_g.ind Td_g.idx
On some platforms, the quotation marks ' should be
 replaced by double quotation marks " or eliminated.
---------------------------------------------------------  ---

..。如果有什么用的话。

谢谢你的指点!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-07-23 14:03:56

这些文件不是特定于MikTeX,而是特定于tex4ht包(超文本生成器)。它们没有文档化,因此它们可能包含产生最终结果( HTML)所需的临时数据。你对产出有任何不满吗?如果是这样的话,您需要询问Tex4ht作者的HTML有什么问题,而不是中间文件--他们可能只会告诉您,“哦,这些是内部文件,不要担心它们。”

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3318733

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档