我想让\cmpd中的替换文本与每个化合物的文本标签一起刷新。在ChemDraw中将TMP1刷新到右侧会导致标签不对齐,因为替换开始于'T‘所在的位置。
是否可以定义替换的开始位置,或者告诉它将标签放在TMP指示器的末尾而不是开始处?我知道我可以将新标签定义为单个字母后跟一个数字,但我想知道在前言中是否有更好的方法来做到这一点。
这是MWE的文件
https://drive.google.com/file/d/1h2X55JeEfc410zdeACdpjGrhxqrs2tPY/view?usp=sharing
\documentclass{report}
\usepackage[crop=off]{auto-pst-pdf}
\usepackage{chemstyle}
\usepackage{chemnum}
\usepackage{ifpdf}
\ifpdf
\usepackage{tikz}
\fi
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\replacecmpd{CHOL}
\replacecmpd{ERG}
\replacecmpd{LAN}
\includegraphics[scale=0.8]{MWE.eps}
\label{fig:MWE}
\end{figure}
\end{document}这是它在ChemDraw中的样子

但是当它被编译时,它不是右对齐的。

提前谢谢你。
发布于 2021-01-18 18:34:30
尝试使用pos选项:
% !TeX program = txs:///arara
% arara: pdflatex: {synctex: on, interaction: nonstopmode, shell: yes}
\documentclass{report}
\usepackage[crop=off]{auto-pst-pdf}
\usepackage{chemstyle}
\usepackage{chemnum}
\usepackage{ifpdf}
\ifpdf
\usepackage{tikz}
\fi
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\replacecmpd[pos = br]{CHOL}
\replacecmpd[pos = br]{ERG}
\replacecmpd[pos = br]{LAN}
\includegraphics[scale=0.8]{MWE.eps}
\label{fig:MWE}
\end{figure}
\end{document}https://stackoverflow.com/questions/65767943
复制相似问题