Forgot password
 Register account
View 224|Reply 1

打印.log文件

[Copy link]

3211

Threads

7832

Posts

52

Reputation

Show all posts

hbghlyj posted 2024-6-25 19:55 |Read mode
.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}
Copy the Code
$type document_9D14_5663.pdf (37.8 KB, Downloads: 71)
这个方法好像可以打印任意文件?
例如 .aux .ind .toc 等等

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2024-6-25 20:04

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

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:58 GMT+8

Powered by Discuz!

Processed in 0.015628 seconds, 25 queries