R--在linux下解决texlive缺少.sty问题

本文介绍了解决ifluatex.sty文件缺失导致的问题,通过从CTAN下载并安装到正确的LaTeX目录中,同时安装framed包,最终解决了RHEL 6.5上使用RStudio Server时遇到的Pandoc错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Many thanks to Homer White's blog for sending me in the right direction. I'm more or less posting his answer verbatim, with minor modifications for RHEL 6.5 and 2014 LiveTex.

Even the full manual install had not solved the problem. Following Homer's advice, I downloaded from the internet a copy of ifluatex.sty You can get it either directly or via wget from the CTAN archive.

wget http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/ifluatex.dtx
tex ifluatex.dtx

Copy the resulting file into the shared folder for your LaTeX Distribution. In RHEL 6/CentOS for the 2014 LiveTex distribution installed via install-tl this was:

/usr/share/texmf/tex/generic/oberdiek

Easy, right? Next step was to get the framed package:

wget http://mirrors.ctan.org/macros/latex/contrib/framed.zip
unzip framed.zip 

This should create a folder in the download location. Now copy the entire folder to the Shared LiveTeX folder for LaTeX:

/usr/share/texmf/tex/latex

Finally, let LiveTeX know it should update its library by running

texhash
转载地址:http://stackoverflow.com/questions/25148055/rstudio-server-on-rhel-6-5-pandoc-error-ifluatex-sty-not-found
This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode (./yunchou.tex LaTeX2e <2024-11-01> patch level 2 L3 programming layer <2025-01-18> (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/base/book.cls Document Class: book 2024/06/29 v1.4n Standard LaTeX document class (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/base/bk10.clo)) (./package.tex (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/ctex/ctex.sty (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/l3kernel/expl3.sty (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-xetex.def)) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/ctex/ctexhook.sty) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/ctex/ctexpatch.sty) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/base/fix-cm.sty (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/base/ts1enc.def)) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/ctex/config/ctexopts.cfg) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def (d:/Texlive 2024/texlive/2024/texmf-dist/tex/xelatex/xecjk/xeCJK.sty (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/fontspec/fontspec.sty (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/base/fontenc.sty) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg))) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/zhnumber/zhnumber.sty (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg)) (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese.def (d:/Texlive 2024/texlive/2024/texmf-dist/tex/latex/cte
03-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值