我只想使用 Times New Roman 作为 KOMA 的正文。所有其他字体都应更改为 Arial。您能帮我解决这个问题吗?
此外,如何删除此编号后的那些点?请参阅我附件中的 fancyhdr 代码部分。
提前谢谢您!
干杯,
陣容
%Generelles Seitenlayout
\pagestyle{fancyplain}
\lhead[\fancyplain{}{\bfseries\thepage}]
{\fancyplain{}{\let\uppercase\relax\normalfont\sffamily\bfseries\rightmark}}
\chead[]{}
\rhead[\fancyplain{}{\let\uppercase\relax\normalfont\sffamily\bfserie \leftmark}]
{\fancyplain{}{\normalfont\sffamily\bfseries\thepage}}
\lfoot[]{}
\cfoot[]{}
\rfoot[]{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.0pt}
\setlength\headwidth{15cm}
\fancypagestyle{plain}{%Kapitelanfänge
\lhead[]{}
\chead[]{}
\rhead[\fancyplain{}{\let\uppercase\relax\normalfont\sffamily\bfseries \leftmark}]
{\fancyplain{}{\normalfont\sffamily\bfseries\thepage}}
\lfoot[]{}
\cfoot[]{}
\rfoot[]{}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.0pt}
\setlength\headwidth{15cm}
}
%\voffset = 1.3cm
%\hoffset = 0.8cm
\textwidth = 15cm
\textheight = 24cm
\fancypagestyle{appendixchap}{%Kapitelanfänge
\lhead[]{}
\chead[]{}
\rhead[\fancyplain{}{\let\uppercase\relax\bfseries\leftmark}]
{\fancyplain{}{\bfseries\thepage}}
\lfoot[]{}
\cfoot[]{}
\rfoot[]{}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.0pt}
\setlength\headwidth{15cm}
\setlength\headsep{-.5cm}
}
答案1
我不确定我是否理解你想要做什么。不幸的是,你的问题中没有 MWE。也许你正在寻找类似的东西
\documentclass[
numbers=noenddot% <- no dot at the end of numbers
]{scrreprt}
\usepackage{blindtext}
\usepackage{newtxtext,newtxmath}
\RedeclareSectionCommands[
tocentryformat=\textsf,
tocpagenumberformat=\textsf
]{section,subsection,subsubsection,paragraph,subparagraph}
\DeclareTOCStyleEntry[
entryformat=\textsf,
pagenumberformat=\textsf
]{default}{figure}
\DeclareTOCStyleEntry[
entryformat=\textsf,
pagenumberformat=\textsf
]{default}{table}
\usepackage[headsepline,automark]{scrlayer-scrpage}
\addtokomafont{pageheadfoot}{\normalfont\sffamily\bfseries}
\addtokomafont{pagenumber}{\usekomafont{pageheadfoot}}
\clearmainofpairofpagestyles
\ihead{\headmark}
\ohead{\pagemark}
\begin{document}
\tableofcontents
\Blinddocument
\appendix
\Blinddocument
\end{document}
或者
\documentclass[
numbers=noenddot% <- no dot at the end of numbers
]{scrreprt}
\usepackage{blindtext}
\usepackage{newtxtext,newtxmath}
\RedeclareSectionCommands[
tocentryformat=\usekomafont{disposition}\mdseries,
tocpagenumberformat=\usekomafont{disposition}\mdseries
]{section,subsection,subsubsection,paragraph,subparagraph}
\DeclareTOCStyleEntry[
entryformat=\usekomafont{disposition}\mdseries,
pagenumberformat=\usekomafont{disposition}\mdseries
]{default}{figure}
\DeclareTOCStyleEntry[
entryformat=\usekomafont{disposition}\mdseries,
pagenumberformat=\usekomafont{disposition}\mdseries
]{default}{table}
\usepackage[headsepline,automark]{scrlayer-scrpage}
\setkomafont{pageheadfoot}{\usekomafont{disposition}}
\addtokomafont{pagenumber}{\usekomafont{pageheadfoot}}
\clearmainofpairofpagestyles
\ihead{\headmark}
\ohead{\pagemark}
\begin{document}
\tableofcontents
\Blinddocument
\appendix
\Blinddocument
\end{document}