![为什么使用 pdflscape 时 VScode 无法编译 LaTex 文件?](https://linux22.com/image/464978/%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BD%BF%E7%94%A8%20pdflscape%20%E6%97%B6%20VScode%20%E6%97%A0%E6%B3%95%E7%BC%96%E8%AF%91%20LaTex%20%E6%96%87%E4%BB%B6%EF%BC%9F.png)
我一直尝试使用 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
我谷歌了一下,但什么也没找到。任何帮助都将不胜感激。谢谢!