我正在尝试使用 pdfLaTeX 在正文中仅使用旧式数字。
在查看其他问题时,我有个想法,使用该cfr-lm
包,然后尝试使用以下排列数字回来:分区、图形计数器、标题、枚举、脚注。
我已经这样做了:
\documentclass[a4paper,12pt,twoside]{book}
\usepackage{cfr-lm}
\renewcommand{\thechapter}{{\fontfamily{clm}\selectfont\arabic{chapter}}}
\renewcommand{\thesection}{{\fontfamily{clm}\selectfont\arabic{chapter}.\arabic{section}}}
\renewcommand{\thesubsection}{{\fontfamily{clm}\selectfont\arabic{chapter}.\arabic{section}.\arabic{subsection}}}
\renewcommand{\thesubsubsection}{{\fontfamily{clm}\selectfont\arabic{chapter}.\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}}
\renewcommand{\theparagraph}{{\fontfamily{clm}\selectfont\arabic{chapter}.\arabic{section}.\arabic{subsection}.\arabic{subsubsection}.\arabic{paragraph}}}
\renewcommand{\thesubparagraph}{{\fontfamily{clm}\selectfont\arabic{chapter}.\arabic{section}.\arabic{subsection}.\arabic{subsubsection}.\arabic{paragraph}.\arabic{subparagraph}}}
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}
\begin{document}
\chapter{test}
\section{test}
\subsection{test}
\subsubsection{test}
\subsubsection{test}
\end{document}
正如我在评论中添加的那样,它适用于分段。
我仍在寻找其余部分的想法。
答案1
从印刷工的角度来看,我认为这不是一个好主意。无论如何……
\documentclass[a4paper,12pt,twoside]{book}
\usepackage{cfr-lm}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{sectsty}
\DeclareTextFontCommand{\textlstyle}{\lstyle}
\labelformat{chapter}{\textlstyle{#1}}
\labelformat{section}{\textlstyle{#1}}
\labelformat{subsection}{\textlstyle{#1}}
\labelformat{subsubsection}{\textlstyle{#1}}
\labelformat{paragraph}{\textlstyle{#1}}
\labelformat{subparagraph}{\textlstyle{#1}}
\labelformat{figure}{\textlstyle{#1}}
\labelformat{table}{\textlstyle{#1}}
\labelformat{equation}{\textlstyle{#1}}
\labelformat{enumi}{\textlstyle{#1}}
\allsectionsfont{\lstyle}
\setlist{font=\lstyle}
\makeatletter
\def\maketag@@@#1{\hbox{\m@th\normalfont\lstyle#1}}
\NewCommandCopy{\org@makecaption}{\@makecaption}
\renewcommand{\@makecaption}[2]{\org@makecaption{\textlstyle{#1}}{#2}}
\NewCommandCopy{\org@numberline}{\numberline}
\renewcommand{\numberline}[1]{\org@numberline{\textlstyle{#1}}}
\makeatother
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}
\begin{document}
\tableofcontents
\chapter{test}\label{A}
\section{test}\label{B}
\subsection{test}
\subsubsection{test}
\subsubsection{test}
\paragraph{test}
\subparagraph{test}
\begin{enumerate}
\item\label{C} test
\item test
\item test
\end{enumerate}
\begin{equation}\label{D}
1+1=2
\end{equation}
\begin{figure}[htp]
\caption{Test}\label{E}
\end{figure}
\begin{table}[htp]
\caption{Test}\label{F}
\end{table}
Refs: \ref{A}, \ref{B}, \ref{C}, \ref{D} and \eqref{D}, \ref{E}, \ref{F}
\end{document}
请不要对页码进行这样的操作。