We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我刚刚安装了 texlive-binaries 包,并使用 shell exec 和 pdflatex 命令从 (La)TeX 文件生成 PDF:
我知道这不是你想要的要求但我不知道 php 库与现有的乳胶编译器一样完整。
为什么还要重新发明轮子呢?
更新:当您有足够的空间时,安装
textlive-full
而不是texlive-binaries
。这将安装所有可用的软件包、字体等,并避免您因文档渲染错误而头痛。i just installed the package
texlive-binaries
and used a shell exec with thepdflatex
command to generate the PDF from a (La)TeX file:i know this is not what you asked for but i don't know of a php lib as complete as the already existing latex compilers.
why reinvent the wheel anyways?
Update: When you have enough space, install
textlive-full
instead oftexlive-binaries
. This will install all the available packages, fonts, etc. and avoid you some headache why your document renders wrong.如果您无法更改服务器设置来安装 LaTeX 服务器包,则无法将 LaTeX 文件转换为 PDF...
但是您可以检查什么以在不使用 LaTeX 的情况下直接转换为 PDF,但这取决于您想要完成的任务?这可能值得一看...fpdf...
If you can't change your server setup to install server package for LaTeX you can't convert LaTeX files them into PDF...
but what you could check to convert directly into PDF without LaTeX, but that depends what you like to accomplish? It might be a look worth...fpdf...
这是我的例子:
名称: phplatex.php
pdflatex 可执行文件的路径:
/Library/TeX/texbin/pdflatex
pdf输出文件的 路径:(需要有写入权限)
-output-directory=/Users/arico/a/destino
Latex 中源文件的 路径:
/Users/arico/a/fuente/prueba.tex
that is my example:
name: phplatex.php
path of pdflatex executable:
/Library/TeX/texbin/pdflatex
path of output file in pdf: (you need permissions to write)
-output-directory=/Users/arico/a/destino
path of source file in latex:
/Users/arico/a/fuente/prueba.tex