我怎样才能将页码改为罗马数字?
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
%\usepackage{babel}
\usepackage{natbib}
\usepackage[fleqn]{amsmath}
\usepackage{adjustbox}
\usepackage{listings}
\usepackage{geometry}
\usepackage{tocloft}
\usepackage{xcolor}
\usepackage{titlesec}
\pagenumbering{roman}
%%% LIST OF EQUATIONS %%%
\newcommand{\listequationsname}{List of Equations}
\newlistof[section]{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\setlength{\cftmyequationsindent}{1.5em}
\setlength{\cftmyequationsnumwidth}{2.3em}
\renewcommand{\cftequtitlefont}{\normalfont\Large\bfseries}
\newpage
\pagenumbering{Roman}
\listofmyequations
\newpage
\section{Introduction}
\pagenumbering{arabic}
\input{Text/2)}
\section{Section 1}
\input{Text/3)}
\end{document}
\pagenumbering{Roman}
没有改变页码。
\begin{equation}\label{eq:Eq1}
\begin{split}
&U_{it} - U_{i,t-L} = \alpha + \sum_{j=1}^{J} \beta_{j}(E_{i,t-jL}-E_{i,t-(j+1)L}) \\
&+\sum_{j=1}^{J} \gamma_{j}(U_{i,t-jL}-U_{i,t-(j+1)L}) +\sum_{t=1}^{T} \delta_{t}D_{t} + \epsilon_{1it}
\end{split}
\end{equation}
\myequations{Equation number \ref{eq:Eq1}}
答案1
- 这是一个最简单的代码示例,显示了与您的问题相关的一些内容。
- 但是我不明白您的问题:公式放在具有阿拉伯页码的页面上,但您是否希望它在 ToE 中以罗马页码的形式出现?
% https://tex.stackexchange.com/questions/173102
\documentclass{article}
\usepackage{tocloft}
\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\setlength{\cftmyequationsnumwidth}{2.5em}% Width of equation number in List of Equations
\begin{document}
\pagenumbering{roman}
\listofmyequations
\clearpage
%\pagenumbering{arabic}
\section{Section}
\begin{equation}
1 + 1 = 2
\end{equation}
\label{eq:NiceEquation}
\myequations{Nice equation}
\end{document}