您好,登錄后才能下訂單哦!
這篇文章主要介紹latex中文件轉(zhuǎn)html的方法,文中介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們一定要看完!
latex中文件轉(zhuǎn)html的方法:首先安裝texlive,并安裝ghostscript;然后設(shè)置環(huán)境變量;最后執(zhí)行轉(zhuǎn)換命令,代碼為【make4ht main.tex -d html】。
latex中文件轉(zhuǎn)html的方法:
步驟1:安裝 texlive
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz tar -zxvf install-tl-unx.tar.gz cd install-tl-20200522 ./install-tl
步驟2:安裝 ghostscript
yum install ghostscript
步驟3:設(shè)置環(huán)境變量
PATH=/usr/local/texlive/2020/bin/x86_64-linux:$PATH; export PATH MANPATH=/usr/local/texlive/2020/texmf-dist/doc/man:$MANPATH; export MANPATH INFOPATH=/usr/local/texlive/2020/texmf-dist/doc/info:$INFOPATH; export INFOPATH
步驟4:執(zhí)行轉(zhuǎn)換命令
假設(shè) LaTex 文件為 main.tex,則執(zhí)行以下命令可以在當(dāng)前目錄下創(chuàng)建一個名為 html 的目錄,其中包括相應(yīng)的輸出文件 html, css, img 等等
make4ht main.tex -d html
以上是“l(fā)atex中文件轉(zhuǎn)html的方法”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。