这是我当前的代码:
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{color}
\usepackage[colorlinks]{hyperref}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{ulem}
\usepackage{siunitx}
\usepackage{xcolor}
\title{\textbf{\textsf{Title}}}
\author{\textbf{\textsf{Jiahao Wang}}}
\date{\textbf{\textsf{January 2024}}}
\geometry{a4paper,hmargin=1.25in,vmargin=1in,headheight=13.6pt}
\graphicspath{{Figures/}}
\setlength{\fboxrule}{1.6pt}
\pdfstringdefDisableCommands{\let \bm=\relax}
\begin{document}
\maketitle
\sffamily
%----------------------------------------------
%----------------------------------------------
\section*{\textsf{Section}}
Content \cite[Example 1.28]{GTM167}.
%----------------------------------------------
%----------------------------------------------
\newpage
\begin{thebibliography}{99}
\bibitem{GTM167} Morandi, P. (1996). \textit{Field and Galois theory} (\textit{Graduate Texts in Mathematics No. 167}). Springer-Verlag New York, Inc. \url{https://doi.org/10.1007/978-1-4612-4040-2}.
\end{thebibliography}
\end{document}
请注意,所有内容都使用无衬线字体书写。但是,“参考”部分使用罗马字体书写。我想更改它以保持一致性,可以这样做吗?
答案1
您只需
\renewcommand\familydefault{\sfdefault}
您可以从文件中删除\textsf
和。\sffamily
.tex