Forgot password?
 Register account
View 224|Reply 1

打印.log文件

[Copy link]

3157

Threads

7925

Posts

610K

Credits

Credits
64218
QQ

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: 65)
这个方法好像可以打印任意文件?
例如 .aux .ind .toc 等等

3157

Threads

7925

Posts

610K

Credits

Credits
64218
QQ

Show all posts

 Author| hbghlyj Posted 2024-6-25 20:04

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

Mobile version|Discuz Math Forum

2025-6-6 14:47 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit