找回密码
 快速注册
搜索
查看: 10|回复: 1

打印.log文件

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2024-6-25 19:55 |阅读模式
.log文件是編譯時顯示的。用下面的方法可以打印.log文件。
  1. \documentclass{article}
  2. \usepackage{amsmath}
  3. \begin{document}
  4. Here we print each line of .log
  5. \tt
  6. \newread\zz
  7. \openin\zz=\jobname.log
  8. \loop
  9. \ifeof\zz
  10. \else
  11. \read\zz to \zztmp
  12. \detokenize\expandafter{\zztmp}\\
  13. \repeat
  14. \end{document}
复制代码

$type document_9D14_5663.pdf (37.8 KB, 下载次数: 1)
这个方法好像可以打印任意文件?
例如 .aux .ind .toc 等等

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2024-6-25 20:04

用来打印 i.upmath.me 的 .log文件

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 12:08

Powered by Discuz!

× 快速回复 返回顶部 返回列表