pdfTeX 未在 PDF 模式下运行 - 透明包存在问题

pdfTeX 未在 PDF 模式下运行 - 透明包存在问题

我用它来编译我的 MWE

\listfiles
\documentclass{article}

\usepackage{transparent}

\usepackage[ngerman]{babel}

\begin{document}

\texttransparent{0.5}{Hello World}

\end{document}

但由于错误消息,它无法编译Package transparent Warning: Loading aborted, because pdfTeX is not running in PDF mode.

完整日志:

This is TexpadTeX (based on TeX Version 3.14159265 with e-TeX extensions) running in extended mode embedded in Texpad 623 (preloaded format=latex 2021.3.29)  29 JUL 2021 11:44
**
(Ohne Titel.tex
LaTeX2e <2017-04-15>
Babel <3.16> and hyphenation patterns for 84 language(s) loaded.
(article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(size10.clo
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (transparent.sty
Package: transparent 2016/05/16 v1.1 Transparency via pdfTeX's color stack (HO)
(ifpdf.sty
Package: ifpdf 2017/03/15 v3.2 Provides the ifpdf switch
)

Package transparent Warning: Loading aborted, because pdfTeX is not running in PDF mode.

) (babel.sty
Package: babel 2018/01/04 3.16 The Babel package
(switch.def
File: switch.def 2018/01/04 3.16 Babel switching mechanism
) (ngerman.ldf
Language: ngerman 2016/11/02 v2.9 German support for babel (new orthography)
(ngermanb.ldf
Language: ngermanb 2016/11/02 v2.9 German support for babel (new orthography)
(babel.def
File: babel.def 2018/01/04 3.16 Babel common definitions
(switch.def
File: switch.def 2018/01/04 3.16 Babel switching mechanism
)
\babel@savecnt=\count87
\U@D=\dimen103
(txtbabel.def)
\bbl@dirlevel=\count88
)
Package babel Info: Making " an active character on input line 125.
))) (Ohne Titel.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
! Undefined control sequence.
l.10 \texttransparent
                     {0.5}{Hello World}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

[1

] (Ohne Titel.aux)

 *File List*
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
transparent.sty    2016/05/16 v1.1 Transparency via pdfTeX's color stack (HO)
   ifpdf.sty    2017/03/15 v3.2 Provides the ifpdf switch
   babel.sty    2018/01/04 3.16 The Babel package
 ngerman.ldf    2016/11/02 v2.9 German support for babel (new orthography)
 ***********

 )

不幸的是我无法解决这个问题。:/

我在 MacOS 上使用 Texpad。

我是否正确理解了这个问题?问题在于 pdfTeX 运行在 DVI 模式下(首先将 tex 编译为 dvi,然后再编译为 pdf 文件),而在此模式下无法使用透明包?所以我必须直接切换到 pdf 模式?

我在 Texpad 中找不到任何设置来执行此操作.. :/

你能帮助我吗?提前谢谢您!

相关内容