将 PDF 恢复为 LaTeX [英] Recover PDF to LaTeX

查看:11
本文介绍了将 PDF 恢复为 LaTeX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何从 LaTeX 制作 PDF.有没有办法从我之前创建的 PDF 中提取 LaTeX 代码?如果有人给我发一份 PDF,我喜欢这种格式,那怎么样?我可以从中提取 LaTeX 吗?

I know how make a PDF from LaTeX. Is there a way to extract the LaTeX-code from a PDF I created earlier? How about if someone sends me a PDF and I like the formatting. Can I extract the LaTeX from it?

推荐答案

LaTeX 没有到 PDF 的一对一转换.关于您的第一个问题,我相信这种转换在技术上是可行的,但我不相信这样做的应用程序存在.类似于汇编程序可以反编译回高级语言的方式,可能有一种方法可以做到这一点.然而——一个pdf允许包含所有类型的数据——AutoCAD绘图、JPEG图形、字体文件、表格、数字签名等.LaTeX不知道这些东西是什么.所以第二个问题的答案是否定的——没有办法从任何 PDF 文档中提取等效的 LaTeX.

LaTeX does not have a one-to-one conversion to PDF. With regards to your first question, I believe such a conversion may be technically possible, but I do not believe an application to do so yet exists. Similar to the way assembler can be decompiled back into high level language, there is probably a way to do it. However -- a pdf is allowed to contain all matter of kinds of data -- AutoCAD drawings, JPEG graphics, font files, forms, digital signatures, etc. LaTeX has no idea what these things are. So in answer to the second question is no -- there's not a way to extract equivalent LaTeX from any PDF document.

这篇关于将 PDF 恢复为 LaTeX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆