Chemnum 與 pdfLaTeX

Chemnum 與 pdfLaTeX

我正在嘗試在 .eps 文件中獲取基於 chemnum 中的 psfrag 的替換功能,以與 Overleaf 中的 pdfLaTeX 配合使用。我知道我需要一個包,例如 auto-pst-pdf、epstopdf、eps-to-pdf 甚至 pstool(旨在與 psfrag 一起使用)。我已經閱讀了很多 StackExchange 帖子,但是我無法讓它在 Overleaf 中工作。使用 pdalatex 編譯時的輸出

\documentclass[11pt, a4paper, openany]{scrartcl}

\usepackage[utf8]{inputenc} %for inputting international characters
\usepackage[T1]{fontenc} %output font encoding for international characters

\usepackage[crop=off,runs=2]{auto-pst-pdf}

\usepackage{chemnum}

\usepackage{bpchem}

\usepackage[version=4]{mhchem}

\ExplSyntaxOn
\cs_new:Npn \chemmacros_load_module:n #1 {} %ghs wont function without it
\ExplSyntaxOff
\usepackage{ghsystem} %for ghs symbols and senteces

\title{test}

\begin{document}

\maketitle

\section{Introduction}

\begin{scheme}
    \centering

    \replacecmpd{comp1}
    \replacecmpd{comp2}
    \replacecmpd{comp3}
    \includegraphics{overview.eps}
    \caption{A test to make the numbering work}
    \label{sc:overview}
\end{scheme}

\end{document}

先感謝您!

相關內容