我正在写报告,遇到了问题psfrag
。它可以与 overleaf 配合使用,但不能与 TexMaker 配合使用。图片“solution_conceptv8”已上传到 latex 文件中,但文字没有改变。有人知道这个问题吗?谢谢。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{color} %%%% adding color package
\usepackage{psfrag} %%%% adding psfrag package
\usepackage{amsmath}
\usepackage{mathtools}
\newcommand{\myP}{P}
\newcommand{\myt}{t} % the same for the time
\newcommand{\mytn}{\myt_0} % the same for the time
\newcommand{\chstation}{c} % the same for the time
\newcommand{\n} {N}
\newcommand{\Pev}[2]{\myP_{\text{EV},#1,#2}} %\newcommand{\Pev}{{P}_{\text{EV},c,t}}
\newcommand{\Pl}[1]{\myP_{\text{eL},#1}} %\newcommand{\Pl}{{P}_{\text{eL},t}}
%pv variables
\newcommand{\Ppv}[1]{\myP_{\text{PV},#1}} %\newcommand{\Ppv}{{P}_{\text{PV},t}}
\newcommand{\Ppvg}[1]{\myP_{\text{PVG},#1}}
\newcommand{\Ppvl}[1]{\myP_{\text{PVL},#1}}
\newcommand{\Ppvev}[1]{\myP_{\text{PVEV},#1}}
\newcommand{\Ppvb}[1]{\myP_{\text{PVB},#1}}
%chp variables
\newcommand{\Pchp}[1]{\myP_{\text{eCHP},#1}} %\newcommand{\Pchp}{{P}_{\text{eCHP},t}}
\newcommand{\Pchpg}[1]{\myP_{\text{CHPG},#1}}
\newcommand{\Pchpl}[1]{\myP_{\text{CHPL},#1}}
\newcommand{\Pchpev}[1]{\myP_{\text{CHPEV},#1}}
\newcommand{\Pchpb}[1]{\myP_{\text{CHPB},#1}}
%battery variables
\newcommand{\Pbch}[1]{\myP_{\text{Bch},#1}} %\newcommand{\Pb}{{P}_{\text{B},t}}
\newcommand{\Pbdis}[1]{\myP_{\text{Bdis},#1}}
\newcommand{\Pbl}[1]{\myP_{\text{BL},#1}}
\newcommand{\Pbev}[1]{\myP_{\text{BEV},#1}}
%grid variables
\newcommand{\Pgin}[1]{\myP_{\text{Gin},#1}}
\newcommand{\Pgout}[1]{\myP_{\text{Gout},#1}} %\newcommand{\Pg}{{P}_{\text{G},t}}
\newcommand{\Pgev}[1]{\myP_{\text{GEV},#1}}
\newcommand{\Pgl}[1]{\myP_{\text{GL},#1}}
\begin{document}
\section{Solution concept}
%\begin{figure}[ht]
\begin{figure}[h!]
\begin{center}
\psfrag{ppv}{$\Ppv{\myt}$}
\psfrag{pb}{$\Pbdis{\myt}$}
\psfrag{pchp}{$\Pchp{\myt}$}
\psfrag{pl}{$\Pl{\myt}$}
\psfrag{pg}{$\Pgout{\myt}$}
\psfrag{pev}{$\Pev{\chstation}{\myt}$}
\hspace{-25mm}\includegraphics[width= 1.3 \textwidth,height=.4\textheight]{solution_conceptv8.eps}
\end{center}
\caption[solution concept of the EMS]{solution concept of the EMS.}\label{fig: loadprofile }
\end{figure}
\end{document}