我想改变一下数字和参考转换成另一种语言,使用ACM SIG 替代模板. 有什么想法我可以实现这个吗?
\documentclass{sig-alternate}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\begin{document}
\section{Test}
This is a test.
\begin{figure}[hbt]
\centering
\includegraphics[width=0.48\textwidth]{test_image}
\caption{Test Figure}
\end{figure}
And here is a reference: \cite{testCite}.
\bibliographystyle{abbrv}
\bibliography{citations}
\end{document}
答案1
该类将名称固定下来;但是改变这一点很容易。
\documentclass{sig-alternate}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{etoolbox}
\makeatletter
% don't use hardwired names
\def\fnum@figure{\figurename\ \thefigure}
\def\fnum@table{\tablename\ \thetable}
\patchcmd{\thebibliography}{References}{\refname}{}{}
\patchcmd{\thebibliography}{References}{\refname}{}{}
% fix a silly usage of \uppercase in \@sect
\patchcmd{\@sect}{\uppercase}{\MakeUppercase}{}{}
\patchcmd{\@sect}{\uppercase}{\MakeUppercase}{}{}
\makeatother
\begin{document}
\section{Test}
This is a test.
\begin{figure}[hbt]
\centering
\includegraphics[width=0.48\columnwidth]{example-image}
\caption{Test Figure}
\end{figure}
And here is a reference: \cite{testCite}.
%\bibliographystyle{abbrv}
%\bibliography{citations}
\begin{thebibliography}{1}
\bibitem{testCite} Something
\end{thebibliography}
\end{document}
如果babel
没有使用,这个改变不会有任何影响。我添加了一个模拟thebibliography
环境只是为了展示效果。
请注意,您应该使用\columnwidth
而不是\textwidth
图形。