为什么使用 pdflscape 时 VScode 无法编译 LaTex 文件?

为什么使用 pdflscape 时 VScode 无法编译 LaTex 文件?

我一直尝试使用 LaTeX workshop 在 VScode 中编译以下文档,但由于某种原因,它无法编译。此外,似乎 pgfplots 包也阻碍了编译。

\documentclass[12pt]{article}
\usepackage{design_ASC}
\usepackage[shortlabels]{enumitem}
\usepackage{cancel}
\usepackage{datetime}
\usepackage{makecell} % for double-line headers on tables
%\usepackage{gensymb}
% TIKZ==============================
\usepackage{tikz}
\usepackage{pgfplots} 
\usepackage{pgfgantt}
\usepackage{pdflscape}
\pgfplotsset{compat=newest} 
\pgfplotsset{plot coordinates/math parser=false}
% ============
\usepackage[mode=build]{standalone}
\usetikzlibrary{spy}
...

我收到以下错误

Fatal error occurred, no output PDF file produced!
Transcript written on main.log.
Latexmk: Missing input file 'pdflscape.sty' (or dependence on it) from following:
  '! LaTeX Error: File `pdflscape.sty' not found.'
Latexmk: If appropriate, the -f option can be used to get latexmk
  to try to force complete processing.
Reverting Windows console CPs to (in,out) = (437,65001)
Latexmk: Getting log file 'main.log'
Latexmk: Examining 'main.fls'
PWD line not in UTF-8
Latexmk: Examining 'main.log'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'main.log' for details

我不知道为什么它要求我输入pdflscape.sty。来源是 LaTeX Workshop。如果我注释掉 pdflscape,它会给我以下错误

Fatal error occurred, no output PDF file produced!
Transcript written on main.log.
Latexmk: Missing input file 'currfile.sty' (or dependence on it) from following:
  '! LaTeX Error: File `currfile.sty' not found.'
Latexmk: If appropriate, the -f option can be used to get latexmk
  to try to force complete processing.
Reverting Windows console CPs to (in,out) = (437,65001)
Latexmk: Getting log file 'main.log'
Latexmk: Examining 'main.fls'
PWD line not in UTF-8
Latexmk: Examining 'main.log'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'main.log' for details

我谷歌了一下,但什么也没找到。任何帮助都将不胜感激。谢谢!

相关内容