texmaker 不生成 pdf 文件

texmaker 不生成 pdf 文件

不知道为什么,但我无法编译我的 tex 文件

日志文件的最后一部分是

    pdfTeX warning: pdflatex (file ./figs/EvenCycleCross-eps-converted-to.pdf): PDF
     inclusion: found PDF version <1.7>, but at most version <1.5> allowed
    <figs/EvenCycleCross-eps-converted-to.pdf, id=174, 83.31125pt x 88.33pt>
    File: figs/EvenCycleCross-eps-converted-to.pdf Graphic file (type pdf)
    <use figs/EvenCycleCross-eps-converted-to.pdf>
    Package pdftex.def Info: figs/EvenCycleCross-eps-converted-to.pdf  used on inpu
    t line 553.
    (pdftex.def)             Requested size: 66.64908pt x 70.66408pt.
    
    Package natbib Warning: Citation `BermanY2012' on page 7 undefined on input lin
    e 560.
    
    [7 <./figs/PocketGr-eps-converted-to.pdf> <./figs/EvenCycleCross-eps-converted-
    to.pdf>]
    
    Package natbib Warning: Citation `BermanY2012' on page 8 undefined on input lin
    e 569.
    
    
    LaTeX Warning: Reference `tiletomat' on page 8 undefined on input line 569.
    
    
    LaTeX Warning: Reference `tiletomat' on page 8 undefined on input line 597.
    
    
    LaTeX Warning: Reference `tiletomat' on page 8 undefined on input line 597.
    
    Package epstopdf Info: Source file: <figs/CycleToEdge.eps>
    (epstopdf)                    date: 2021-07-07 19:17:38
    (epstopdf)                    size: 58108 bytes
    (epstopdf)             Output file: <figs/CycleToEdge-eps-converted-to.pdf>
    (epstopdf)                    date: 2021-07-08 16:30:51
    (epstopdf)                    size: 10370 bytes
    (epstopdf)             Command: <miktex-epstopdf --outfile=figs/CycleToEdge-eps
    -converted-to.pdf figs/CycleToEdge.eps>
    (epstopdf)             \includegraphics on input line 601.
    Package epstopdf Info: Output file is already uptodate.
    
    
    pdfTeX warning: pdflatex (file ./figs/CycleToEdge-eps-converted-to.pdf): PDF in
    clusion: found PDF version <1.7>, but at most version <1.5> allowed
    <figs/CycleToEdge-eps-converted-to.pdf, id=205, 56.21pt x 88.33pt>
    File: figs/CycleToEdge-eps-converted-to.pdf Graphic file (type pdf)
    <use figs/CycleToEdge-eps-converted-to.pdf>
    Package pdftex.def Info: figs/CycleToEdge-eps-converted-to.pdf  used on input l
    ine 601.
    (pdftex.def)             Requested size: 44.96805pt x 70.66408pt.
    Package epstopdf Info: Source file: <figs/CycleToInfEdge.eps>
    (epstopdf)                    date: 2021-07-07 19:17:42
    (epstopdf)                    size: 60096 bytes
    (epstopdf)             Output file: <figs/CycleToInfEdge-eps-converted-to.pdf>
    (epstopdf)                    date: 2021-07-08 16:30:53
    (epstopdf)                    size: 10721 bytes
    (epstopdf)             Command: <miktex-epstopdf --outfile=figs/CycleToInfEdge-
    eps-converted-to.pdf figs/CycleToInfEdge.eps>
    (epstopdf)             \includegraphics on input line 602.
    Package epstopdf Info: Output file is already uptodate.
    
    
    pdfTeX warning: pdflatex (file ./figs/CycleToInfEdge-eps-converted-to.pdf): PDF
     inclusion: found PDF version <1.7>, but at most version <1.5> allowed
    <figs/CycleToInfEdge-eps-converted-to.pdf, id=206, 60.225pt x 99.37125pt>
    File: figs/CycleToInfEdge-eps-converted-to.pdf Graphic file (type pdf)
    <use figs/CycleToInfEdge-eps-converted-to.pdf>
    Package pdftex.def Info: figs/CycleToInfEdge-eps-converted-to.pdf  used on inpu
    t line 602.
    (pdftex.def)             Requested size: 48.18005pt x 79.4971pt.
    Package epstopdf Info: Source file: <figs/tiling.eps>
    (epstopdf)                    date: 2021-07-07 19:19:20
    (epstopdf)                    size: 27223 bytes
    (epstopdf)             Output file: <figs/tiling-eps-converted-to.pdf>
    (epstopdf)                    date: 2021-07-08 16:30:56
    (epstopdf)                    size: 0 bytes
    (epstopdf)             Command: <miktex-epstopdf --outfile=figs/tiling-eps-conv
    erted-to.pdf figs/tiling.eps>
    (epstopdf)             \includegraphics on input line 603.
    Package epstopdf Info: Output file is already uptodate.
    
   

 Package epstopdf Info: Output file is already uptodate.
    
    !pdfTeX error: pdflatex (file ./figs/tiling-eps-converted-to.pdf): reading imag
    e file failed
     ==> Fatal error occurred, no output PDF file produced!

我的文件可以在 overleaf 上编译,但不能在 texmaker 上编译。另外,我不知道为什么当代码指定 tiling.eps 时,texmaker 总是想搜索 tiling-eps-converted-to.pdf。整个日志文件太长了,无法包含。

答案1

这可能是由于 Texmaker 需要设置才能完成运行。

当你成功的时候排除图形,例如,当将文档简化为最少的代码时,就会失败图形和通行证没有?(这样您就可以验证“它正在运行”。)

顺便说一下,下面是我配置快速构建的方法:

  • Lualatex 或 pdflatex 在这里不相关
  • Texmaker 有两步方法:编译 + 运行 (pdf) // Quick Build 同时启动

在此处输入图片描述

作为一种潜在的解决方法:我成功地将 .eps 图形编译为 .pdf;我可以确认它们已转换为 .pdf。转换为 .eps 的工具例如是 Inkscape,它也可以从命令行以批处理模式运行。https://inkscape.org/

答案2

只需重新安装 Miktex(通过计算机上的管理员更新版本)。一切都会好起来的。

相关内容