![如何在 MDPI LaTeX 模板中包含传感器徽标?](https://linux22.com/image/443326/%E5%A6%82%E4%BD%95%E5%9C%A8%20MDPI%20LaTeX%20%E6%A8%A1%E6%9D%BF%E4%B8%AD%E5%8C%85%E5%90%AB%E4%BC%A0%E6%84%9F%E5%99%A8%E5%BE%BD%E6%A0%87%EF%BC%9F.png)
我使用了来自https://www.mdpi.com/authors/latex,当我在 Overleaf 中打开它时,我看不到传感器徽标(左上角)。有什么方法可以将其包含在 Overleaf 中吗?
这是另一篇论文,我想在上面加上这样的标志。
答案1
定义带有徽标的模板部分的代码可以在文件mdpi.cls
(目录内Definitions
)中找到。在那里,您将找到以下几行(您也将其作为图像发布到您的问题中):
\renewcommand{\@maketitle}{
\begin{flushleft}
\ifthenelse{\equal{\@arttype}{Supfile}}{%
\fontsize{18}{18}\selectfont
\raggedright
\hyphenpenalty=10000
\tolerance=1000
\noindent\textbf{Supplementary Materials: \@Title}%
\par
\vspace{12pt}
\fontsize{10}{10}\selectfont
\noindent\boldmath\bfseries{\@Author}
}{%
\ifthenelse{\equal{\@arttype}{Book}}{}{%
\vspace*{-1.75cm}
}
{%0
\ifthenelse{\equal{\@journal}{preprints}
\OR \equal{\@arttype}{Book}}{}{%
\ifthenelse{\equal{\@status}{submit}}{%
\hfill \href{https://www.mdpi.com}{%
\includegraphics[height=1cm]{Definitions/logo-mdpi.eps}}%
}{
\href{https://www.mdpi.com/journal/\@journal}{
\includegraphics[height=1.2cm]{Definitions/\@journal-logo.eps}}%
\hfill
\ifthenelse{\equal{\@journal}{scipharm}}{%
\href{https://www.mdpi.com}{\includegraphics[height=1cm]{Definitions/logo-mdpi-scipharm.eps}}%
}{%
\href{https://www.mdpi.com}{\includegraphics[height=1cm]{Definitions/logo-mdpi.eps}}%
}%
}%
\par
\vspace{-8 pt}
\rule{\textwidth}{0.4pt}
}%
\par
}%0
{%1
\vspace{14pt}
\fontsize{10}{10}\selectfont
\ifthenelse{\equal{\@arttype}{Book}}{}{
\textit{\@arttype}%
}%
\par%
}%1
{%2
% \vspace{8pt}
\fontsize{18}{18}\selectfont
\hyphenpenalty=10000
\tolerance=1000
\boldmath\bfseries{\@Title}
\par
\vspace{16pt}
}%2
{%3
\hyphenpenalty=10000
\tolerance=1000
\boldmath\bfseries{\@Author}
\par
\vspace{-1pt}
}%3
}
\end{flushleft}%
}
在这里包含其他徽标的最简单方法是替换这两行(文件中的第 683 行和第 684 行)
\hfill \href{https://www.mdpi.com}{%
\includegraphics[height=1cm]{Definitions/logo-mdpi.eps}}%
这样
\includegraphics[height=1cm]{logo-sensor.png} \hfill \href{https://www.mdpi.com}{%
\includegraphics[height=1cm]{Definitions/logo-mdpi.eps}}%