要注意markdown行间代码块的用法是三个反引号,否则高亮会不正确。
当你想要知道xyz/.style的含义时,正常的做法是打开终端输入texdoc tikz进行搜索。
事实上你的真正问题是对tikz中的坐标表示不熟悉。
(<angle>:<dim>)表示旋转;(<x-coord>,<y-coord>)表示二维坐标x/y/z={<coordinate>}:

要注意markdown行间代码块的用法是三个反引号,否则高亮会不正确。
当你想要知道xyz/.style的含义时,正常的做法是打开终端输入texdoc tikz进行搜索。
事实上你的真正问题是对tikz中的坐标表示不熟悉。
(<angle>:<dim>) 表示旋转;(<x-coord>,<y-coord>)表示二维坐标x/y/z={<coordinate>}:
在source2e.pdf中有一个名为\two@digits的宏
69 ⟨∗2ekernel⟩
70 \def\two@digits#1{\ifnum#1<10 0\fi\number#1}这一问题也被称为前导零(leading-zero)问题,我想如果知道这点还是比较好搜索答案的...
Thanks to MICO
我的思路是模仿自定义\three@digits:
\documentclass[tikz]{standalone}
\usepackage{pgffor}
\usepackage{graphicx}
\begin{document}
\makeatletter
% \def\two@digits#1{\ifnum#1<10 0\fi\number#1}
\def\three@digits#1{\ifnum#1<10 00\else\ifnum#1<100 0\fi\fi\number#1}
\foreach \x in {1,...,120} {\tikz{
% \node {\includegraphics[width=5cm]{p\x.pdf}};
\node {\includegraphics[width=5cm]{p\three@digits{\x}.pdf}};
}}
\makeatother
\end{document}
请注意,这里必须换行,否则代码块无法被正确高亮,我已经帮你改过来了...

关于第一个问题,疑似duplicated as this: https://ask.latexstudio.net/ask/question/8102.html
关于第二个问题,推荐阅读:
https://blog.ljguo.top/2024/06/textcircled-numbers 『需要魔法』
https://mp.weixin.qq.com/s/Zk6GvAYIHVKc-b5HXavAVg 『不需要魔法』
大致修改了两处:
circledtext宏包\renewcommand{\theparagraph}{\circledtext{\arabic{paragraph}}} % ①%%%%%%%%%%% https://ask.latexstudio.net/ask/question/8102.html
\makeatletter%%
\renewcommand{\cftchapfillnum}[1]{%
{\cftchapleader}\nobreak
\makebox{\cftchappagefont #1}\cftchapafterpnum\par
}
\renewcommand{\cftsecfillnum}[1]{%
{\cftsecleader}\nobreak
\makebox{\cftsecpagefont #1}\cftsecafterpnum\par
}
\renewcommand{\cftsubsecfillnum}[1]{%
{\cftsubsecleader}\nobreak
\makebox{\cftsubsecpagefont #1}\cftsubsecafterpnum\par
}
\renewcommand{\cftsubsubsecfillnum}[1]{%
{\cftsubsubsecleader}\nobreak
\makebox{\cftsubsubsecpagefont #1}\cftsubsubsecafterpnum\par
}
\renewcommand{\cftparafillnum}[1]{%
{\cftparaleader}\nobreak
\makebox{\cftparapagefont #1}\cftparaafterpnum\par
}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
下面是完整代码...看上去是一部旷世巨作的模板啊,就是感觉有点ai味...
\documentclass[a4paper,12pt,openany]{book}
\usepackage{ctex} % 中文支持
% \usepackage{fontspec} % 字体配置 没必要...
\usepackage[showframe]{geometry} % 页面几何设置
\usepackage{tocloft} % 目录自定义
\usepackage{titlesec} % 章节标题自定义
\usepackage{tikz} % 绘图功能,用于圆形编号
\usepackage{circledtext}%%%%modify
\geometry{
a4paper,
top=2.5cm, % 上边距
bottom=2.5cm, % 下边距
left=2.5cm, % 左边距
right=2.5cm, % 右边距
headheight=1.5cm, % 页眉高度
headsep=16.75pt, % 页眉与正文间距
footskip=0.75cm % 页脚与正文间距
}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
% 章节计数器格式设置
\renewcommand{\thechapter}{\chinese{chapter}} % 一
\renewcommand{\thesection}{\chinese{section}} % 一
\renewcommand{\thesubsection}{\arabic{subsection}} % 1
\renewcommand{\thesubsubsection}{\arabic{subsubsection}} % 1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%modify \circledtext
\renewcommand{\theparagraph}{\circledtext{\arabic{paragraph}}} % ①
%目录缩进设置
\setlength{\cftchapindent}{0pt} % 章不缩进
\setlength{\cftsecindent}{2em} % 节缩进2em
\setlength{\cftsubsecindent}{4.1em} % 条缩进3em
\setlength{\cftsubsubsecindent}{4em} % 项缩进4em
\setlength{\cftparaindent}{6em} % paragraph缩进5em
% 目录编号前后符号设置
% 章:一、 标题
\renewcommand{\cftchapaftersnum}{、} % 顿号+空格
\setlength{\cftchapnumwidth}{2em} % 一级标题(章)的编号宽度
% 节:(一) 标题
\renewcommand{\cftsecpresnum}{(} % 编号前加左括号
\renewcommand{\cftsecaftersnum}{)} % 右括号+空格
\setlength{\cftsecnumwidth}{2.56em} % 二级标题(节)的编号宽度
% 条:1. 标题
\renewcommand{\cftsubsecaftersnum}{.} % 使用可见字符标记间距位置
\setlength{\cftsubsecnumwidth}{1.467em} % 减小编号宽度
% 项:(1) 标题
\renewcommand{\cftsubsubsecpresnum}{(} % 编号前加左括号
\renewcommand{\cftsubsubsecaftersnum}{)} % 右括号+空格
\setlength{\cftsubsubsecnumwidth}{2em} % 四级标题(项)的编号宽度
% 项:① 标题
\renewcommand{\cftparapresnum}{} % 编号前无符号
\renewcommand{\cftparaaftersnum}{} % 编号后加空格
\setlength{\cftparanumwidth}{1em} % 编号宽度
%=====================================================
% 正文标题样式设置
%=====================================================
% 章:第X章、标题 定义chapter格式 禁用默认换页行为
\titleclass{\chapter}{straight}
% 自定义标题格式(保留您的原有设置)
\titleformat{\chapter}[block]
{\normalfont\zihao{2}\heiti\raggedright}
{\hspace{2em}\thechapter、}
{0em}
{}
% 精确控制间距(标题前=1行距,标题后=0)
\titlespacing*{\chapter}{0pt}{\baselineskip}{0pt}
% 节:(X)标题
\titleformat{\section}
{\raggedright\heiti\zihao{3}} % 格式
{\hspace{31.5pt}(\thesection)} % 标签
{0em}{} % 间距和标题
\titlespacing{\section}
{0pt}{0pt}{0pt} % 左间距、上间距、下间距
% 条:X.标题
\titleformat{\subsection}
{\raggedright\heiti\zihao{4}} % 格式
{\hspace{31.5pt}\thesubsection.} % 标签(全角点)
{0em}{} % 间距和标题
\titlespacing{\subsection}
{0pt}{0pt}{0pt} % 左间距、上间距、下间距
% 项:(X)标题
\titleformat{\subsubsection}
{\raggedright\heiti\zihao{-4}} % 格式
{\hspace{31.5pt}(\thesubsubsection)} % 标签
{0em}{} % 间距和标题
\titlespacing{\subsubsection}
{0pt}{0pt}{0pt} % 左间距、上间距、下间距
%段:① 标题
\titleformat{\paragraph}
{\raggedright\heiti\zihao{-4}} % 格式
{\hspace{31.5pt}\theparagraph} % 标签
{0pt}{} % 间距和标题
\titlespacing{\paragraph}
{0pt}{0pt}{0pt} % 左间距、上间距、下间距
%=====================================================
% 目录格式设置
%=====================================================
% 目录标题格式
\renewcommand{\contentsname}{\heiti\zihao{3}\centerline{目\quad 录}}
% 引导线设置
\renewcommand{\cftdot}{.} % 引导点符号
\renewcommand{\cftdotsep}{0.5} % 引导点密度(值越小越密集)
\renewcommand{\cftchapdotsep}{\cftdotsep} % 章引导点密度继承全局设置
% 各层级引导线样式
\renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}} % 章
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % 节
\renewcommand{\cftsubsecleader}{\cftdotfill{\cftdotsep}} % 条
\renewcommand{\cftsubsubsecleader}{\cftdotfill{\cftdotsep}} % 项
% 使用 tocloft 的内部命令设置页码前的间距为零
\makeatletter
\renewcommand{\@pnumwidth}{1em} % 页码宽度
\renewcommand{\@tocrmarg}{1em} % 设置为与页码宽度相同,消除间距
\makeatother
% 目录间距控制
\setlength{\cftbeforetoctitleskip}{0pt} % 目录标题与页面顶部间距
\setlength{\cftaftertoctitleskip}{0pt} % 目录标题与内容间距
\setlength{\cftbeforechapskip}{0pt} % 章标题间间距
\setlength{\cftbeforesecskip}{0pt} % 节标题间间距
\setlength{\cftbeforesubsecskip}{0pt} % 条标题间间距
\setlength{\cftbeforesubsubsecskip}{0pt} % 项标题间间距
% 目录文字样式
\renewcommand{\cftchapfont}{\songti\fontsize{12pt}{14pt}\selectfont} % 章标题字体
\renewcommand{\cftchappagefont}{\songti\zihao{-4}} % 章页码字体
\renewcommand{\cftsecfont}{\songti\zihao{-4}} % 节标题字体
\renewcommand{\cftsecpagefont}{\songti\zihao{-4}} % 节页码字体
\renewcommand{\cftsubsecfont}{\songti\zihao{-4}} % 条标题字体
\renewcommand{\cftsubsecpagefont}{\songti\zihao{-4}}% 条页码字体
\renewcommand{\cftsubsubsecfont}{\songti\zihao{-4}} % 项标题字体
\renewcommand{\cftsubsubsecpagefont}{\songti\zihao{-4}}% 项页码字体
%%%%%%%%%%% https://ask.latexstudio.net/ask/question/8102.html
\makeatletter%%
\renewcommand{\cftchapfillnum}[1]{%
{\cftchapleader}\nobreak
\makebox{\cftchappagefont #1}\cftchapafterpnum\par
}
\renewcommand{\cftsecfillnum}[1]{%
{\cftsecleader}\nobreak
\makebox{\cftsecpagefont #1}\cftsecafterpnum\par
}
\renewcommand{\cftsubsecfillnum}[1]{%
{\cftsubsecleader}\nobreak
\makebox{\cftsubsecpagefont #1}\cftsubsecafterpnum\par
}
\renewcommand{\cftsubsubsecfillnum}[1]{%
{\cftsubsubsecleader}\nobreak
\makebox{\cftsubsubsecpagefont #1}\cftsubsubsecafterpnum\par
}
\renewcommand{\cftparafillnum}[1]{%
{\cftparaleader}\nobreak
\makebox{\cftparapagefont #1}\cftparaafterpnum\par
}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{zhlipsum}
\begin{document}
\tableofcontents
\newpage
\chapter*※※※※※※※※{※※※※※※※※1}
\addcontentsline{toc}{chapter}{※※※※※※※※1} % 手动添加到目录
\chapter{※※※※※※※※}
\section{※※※※※※※※}
\zhlipsum[1-50]
\subsection{※※※※※※※※}
\zhlipsum[1-50]
\subsubsection{※※※※※※※※}
\zhlipsum[1-50]
\zhlipsum[1-50]
\paragraph{※※※※※※※※}
\zhlipsum[1-50]
\zhlipsum[1-50]
\paragraph{※※※※※※※※}
\zhlipsum[1-50]
\chapter{※※※※※※※※}
\end{document}如果仅仅从解决问题的角度,似乎可以在第二个\footnotetext之前做两次\stepcounter{footnote}
\addtocounter{footnote}{-3}
\footnotetext{something}
\stepcounter{footnote}\stepcounter{footnote}
\footnotetext{something else}
\stepcounter{footnote}
\footnotetext{something else}
\stepcounter{footnote}
\footnotetext{something else}
但这显然不是本post的主要目的,还是更希望知道如何避免偶然被footmisc的这一行为坑到...
代码过长了,要体现你的脚注问题并不需要这么多代码
请修改你的代码,同时最好附上不满意的效果截图。
本问题一个可能的解决办法请看: https://tex.stackexchange.com/a/21817/322482
\renewcommand{\thefootnote}{\ding{\numexpr181+\value{footnote}}}
\usepackage[perpage]{footmisc} %每页脚注重新编号则问题基本可以从上面的链接得到解决...
\documentclass[11pt,landscape,a4paper]{ctexart}
\usepackage{amsmath,amssymb,amsthm} %数学必备宏包
\usepackage{geometry} % 设置页面属性
% \usepackage[perpage]{footmisc} %每页脚注重新编号
\usepackage{pifont}
\renewcommand{\thefootnote}{\ding{\numexpr181+\value{footnote}}}
\geometry{left=3cm,right=2cm,top=2cm,bottom=5cm}
\begin{document}
$\text{\parbox{1em}{基本立体图形}}\begin{cases}\text{多面体\footnotemark}\begin{cases}\text{棱柱\footnotemark}\begin{cases}\text{按底面多边形的边数:如三棱柱、四棱柱,……。}\\
\text{按侧棱与底面的关系}\begin{cases}\text{直棱柱}\\
\text{斜棱柱}
\end{cases}\\
\end{cases}\\
\text{棱锥}\\
\text{棱台}\\
\text{组合体}
\end{cases}
\\
\text{旋转体\footnotemark}
\begin{cases}\text{圆柱}\\
\text{圆锥}\\
\text{圆台}\\
\text{组合体}
\end{cases}
\end{cases}$
\addtocounter{footnote}{-2}%%%这里应该-(n-1)...不够自动和优雅的方法...
\footnotetext{由若干个平面多边形}
\stepcounter{footnote}
\footnotetext{有两个面互相平行}
\stepcounter{footnote}
\footnotetext{一条平面曲线绕它所在平面内}
\end{document}
\usepackage[perpage]{footmisc}...暂弃之(我会更推荐开一个新的问题:『https://ask.latexstudio.net/ask/question/17728.html』,避免本链接涉及的冲突内容过于复杂......)
看模板+微调了一个多小时(还有瑕疵,但我不想改了....)....

nxuthesis的相容性也远远不够,还是会有一定的拼接感nxuthesis,能从官方途径下载就不应该从“附件”这种非官方途径下载% nxuthesis.cls Line2177~2186
\renewcommand\maketitle{%
\cleardoublepage
\pagenumbering{Alph}%
\nxu@pdfbookmark{-1}{\nxu@title}%
\nxu@titlepage
\ifnxu@include@spine@true
\spine
\fi
\clearpage
}仔细阅读上面的代码,实际上核心的排版命令为:
\nxu@titlepage\spine我们预期排版中英文版本,那么应该仿照上述的两个命令自定义\nxu@titlepage@en以及\spine@en,同时处理好一些细节
\nxu@titlepage的定义:% nxuthesis.cls Line2192-2226
\newcommand\nxu@titlepage@thesis{%
\thispagestyle{empty}%
% \null\vskip 8.1pt%
\begingroup
\centering
\begingroup
\fontsize{10.5bp}{10.5bp}\selectfont
\nxu@titlepage@topinfo\par
\endgroup
\vskip 1.7cm%
\nxu@titlepage@name
\vskip 0.68cm
\nxu@title@page@degree@category\par
\vskip 0.6cm
\begingroup
\sffamily\fontsize{22bp}{30bp}\selectfont
\nxu@title\par
\endgroup
\vskip 8pt
\begingroup
\fontsize{16bp}{24bp}\selectfont
\nxu@title@en\par
\endgroup
\vskip 24.1pt%
\vfill
\begingroup
\fontsize{14bp}{21bp}\songti
\nxu@titlepage@info\par
\endgroup
\vskip 62pt%
\fi
\endgroup
\clearpage
\restoregeometry
}同样仔细观察,上面的封面排版基本可以分为以下五个部分:
\nxu@titlepage@topinfo\nxu@title@page@degree@category\nxu@title\nxu@title@en 这部分是我们可以偷过来用的...同时学习kvoptions是如何定义和使用键值对的\nxu@titlepage@info那么实际上我们进一步的思路是,再次追溯上面的五个命令,并且结合LaTeX排版表格,盒子的方式进行微调,定义对应的\nxu@titlexxxx@yyyy@en,同时注意观察\nxu@titlexxxx@yyyy命令是如何获取nxusetup.tex内的信息的...
\nxu@titlepage@topinfo为例,我们预期模仿其定义对应的\nxu@titlepage@topinfo@en命令:% nxuthesis.cls Line2241-2249
\newcommand\nxu@titlepage@topinfo{
\nxu@titlepage@topinfo@tabular{3em}{4em}{1em}{
\nxu@topinfo@iteml{分类号}{\nxu@clc}
\nxu@topinfo@iteml{密级}{\nxu@secret@level}
}{
\nxu@topinfo@itemr{单位代码}{\nxu@code}
\nxu@topinfo@itemr{学号}{\nxu@student@id}
}\par
}仔细观察,这里的\nxu@titlepage@topinfo@tabular用于排版topinfo的表格,其中的前四个参数含义要进一步追溯参照其定义,同时"分类号","密级"以及其对应的\nxu@clc和\nxu@secret@level都应该同时做修改。总而言之,上面的所有命令修改和重定义最终都会回到关于nxuthesis基于kvoptions和kvsetkeys设置的一系列信息键值对的修改上。我们终于要step into到键值对的设置上...
\nxu@title@en埋下的伏笔,我们不难追溯到:nxusetup.tex Line24-25
title* = {An Introduction to \LaTeX{} Thesis Template of Ningxia
University v\version},这里用了title*来存储title@en的信息,同时在nxuthesis.cls中也可以追溯到:
% nxuthesis.cls Line1987-2000
\nxu@define@key{
secret-level = {
name = secret@level,
},
secret-year = {
name = secret@year,
},
title = {
default = {标题},
},
title* = {
default = {Title},
name = title@en,
},
.... somthing else
}可以发现只要在\nxu@define@key内使用title*作为键以及使用name= title@en便可以显式存贮名为\nxu@title@en=Title的宏,据此,修改实现的思路已经基本打通了。
以上。剩下的,就应该是OP自己的努力了~
我猜你也许需要\vfill?
例如我要添加一个答题区域,加边框,自动延伸到页面底部。
请『补充提问』,提供你的『答题区域,加边框』但位于页面顶部的代码以方便测试文字总是不如代码来得直接。
一个workaround,使用tcb的height fill选项:
\documentclass{ctexart}
\usepackage[showframe]{geometry}
\usepackage[many]{tcolorbox}
\newcommand*{\myenptyboxfill}{%
\begin{tcolorbox}[height fill,sharp corners=all,colback=white]
\end{tcolorbox}
}
\usepackage{zhlipsum}
\begin{document}
\zhlipsum[2]
\myenptyboxfill
\myenptyboxfill
\zhlipsum[name=zhufu]
\end{document}
应该有更latex2e的方法....
你的MWE在我这里(TeXLive2025+windows11)没有任何警告出现。
猜测你的\documentclass和\usepackage{tabularray}之间有其他对\geometry的设置(?)。

表格宽度太小,怎么加大表格宽度
你的代码里的Q[c,5cm]正是使用Q列格式控制宽度的方法
在TeXPage里使用TL2024+xelatex确实可以复现你的警告(我猜是TL2025 tblr更新了什么....):


S老师指出参考链接,你看了吗,付诸实践了吗?
用\setlength改\abovedisplayskip和\belowdisplayskip
如果你的实践有效,你应该自答。如果你的实践无效,那你应该补充上你的尝试。
使用
\texttt{\the\abovedisplayskip}
\texttt{\the\belowdisplayskip}可以获知其默认值为:

\documentclass[12pt]{ctexart}
\usepackage{amsmath,amsthm,amssymb,amsfonts}
\usepackage{enumitem}
\begin{document}
\setlength\abovedisplayskip{2pt plus 1pt minus 1pt}
\setlength\belowdisplayskip{2pt plus 1pt minus 1pt}
% \setlength{\abovedisplayshortskip}{0pt plus 1pt minus 1pt}
% \setlength{\belowdisplayshortskip}{0pt plus 1pt minus 1pt}
The skip \texttt{\char92 abovedisplayskip} is \texttt{\the\abovedisplayskip}
The skip \texttt{\char92 belowdisplayskip} is \texttt{\the\belowdisplayskip}
二阶常系数齐次线性方程的形式为:$y^{\prime \prime}+p y^{\prime}+q y=0$,其中$p, q$为常数,其特征方程为$\lambda^{2}+p \lambda+q=0$.
方程的通解为:
(1)特征方程有两个相异的实根$\lambda_{1}$,$\lambda_{2}$时,通解形式为
\[
y(x)=C_{1} \mathrm{e}^{\lambda_{1} x}+C_{2} \mathrm{e}^{\lambda_{2} x}.
\]
(2)特征方程有两个相同的实根$\lambda_{1}=\lambda_{2}$时,通解形式为
\[
y(x)=\left(C_{1}+C_{2} x\right) \mathrm{e}^{\lambda_{2} x}.
\]
(3)特征方程有一对共轭复根$\alpha \pm \beta \mathrm{i}$时,通解形式为
\[
y(x)=\mathrm{e}^{\alpha x}\left(C_{1} \cos \beta x+C_{2} \sin \beta x\right).
\]
我能吞下玻璃而不伤身体我能吞下玻璃而不伤身体我能吞下玻璃而不伤身体我能吞下玻璃而不伤身体我能吞下玻璃而不伤身体我能吞下玻璃而不伤身体我能吞下玻璃而不伤身体我能吞下玻璃而不伤身体
\textbf{永远不要自己编号},请用\texttt{enumerate}环境
\begin{enumerate}[label=(\arabic*),itemsep=0pt,parsep=0pt]
\item 特征方程有两个相异的实根$\lambda_{1}$,$\lambda_{2}$时,通解形式为:
\[
y(x)=C_{1} \mathrm{e}^{\lambda_{1} x}+C_{2} \mathrm{e}^{\lambda_{2} x}.
\]
\item 特征方程有两个相同的实根$\lambda_{1}=\lambda_{2}$时,通解形式为
\[
y(x)=\left(C_{1}+C_{2} x\right) \mathrm{e}^{\lambda_{2} x}.
\]
\item 特征方程有一对共轭复根$\alpha \pm \beta \mathrm{i}$时,通解形式为
\[
y(x)=\mathrm{e}^{\alpha x}\left(C_{1} \cos \beta x+C_{2} \sin \beta x\right).
\]
\end{enumerate}
\end{document}
nxuthesis.cls属于未知全貌的状态nxuthesis原生为使用bibtex基于nxuthesis-numeric的方案可见nxusetup.tex:
% Line 144~147
% 参考文献使用 BibTeX + natbib 宏包
% 顺序编码制
\usepackage[sort]{natbib}
\bibliographystyle{nxuthesis-numeric}其中的nxuthesis-numeric.bst按照其自述为:
%% The original source files were:
%%
%% gbt7714.dtx (with options: `2015,thu,numerical')
%% -------------------------------------------------------------------
%% GB/T 7714 BibTeX Style
%% https://github.com/zepinglee/gbt7714-bibtex-style
%% Version: 2024/03/08 v2.1.6
%% 我不知道有没有魔改自zepinglee的Version: 2024/03/08 v2.1.6
biblatex-gbt7714-2015完全符合贵校的要求,请自行甄别请先texdoc biblatex-gbt7714-2015查看文档信息
可以发现存在\setcounter{gbrefcompress}{3}修改压缩计数器的方案,但我们需要switch from bibtex to biblatex(作者在nxusetup.tex内选择保留bibtex而注释biblatex是有考量的,这样做只是workaround,而且不能保证稳定性):
将nxusetup.tex的内容修改为:
% %%nxusetup.tex Line144~162 switch from `bibtex` to `biblatex`
% 参考文献使用 BibTeX + natbib 宏包
% 顺序编码制
% \usepackage[sort]{natbib}
% \bibliographystyle{nxuthesis-numeric}
% 著者-出版年制
% \usepackage{natbib}
% \bibliographystyle{nxuthesis-author-year}
% 参考文献使用 BibLaTeX 宏包
% \usepackage[style=nxuthesis-numeric]{biblatex}
% \usepackage[style=nxuthesis-author-year]{biblatex}
\usepackage[style=gb7714-2015]{biblatex}
% \usepackage[style=apa]{biblatex}
% \usepackage[style=mla-new]{biblatex}
% 声明 BibLaTeX 的数据库
\addbibresource{ref/refs.bib}%
% 修改顺序数字压缩的阈值
\setcounter{gbrefcompress}{3}%请务必先读lshort-zh-cn的6.1节和biblatex-gbt7714-2015的文档,必须搞清楚不同bib方案的差异:
.cls是很难收到回答的,毕竟作为一个如此小众的模板,是很少有人愿意看(除非你在nxu-LaTeX兴趣小组),更好的办法绝对是到这里提issues直接向作者反馈nxuthesis早就在CTAN上upload了,你完全没必要上传这么大的压缩包,保证代码的简单易读是问题能够得到回答很重要的因素之一nxuthesis并无太大关系,同时也不利于后来人通过关键词搜索到\parencite的解决方案在修改了nxuthesis对参考文献的引用方式后,如下这么写,应该可以实现你想要的效果:
我在使用宁夏大学毕业论文模板,我的目标是:
- 引用两篇连续的参考文献时,想显示[1,2]而不是[1-2],连续三篇以上再显示类似于[1-3]这样的形式
- 引用个别文献时,我不想放在上标(^[2-4]),想让其和正文字体一样,也就是正常的非上标的数字序号形式([2-4])

按我粗略的看如下的切片:
% \renewcommand\thefootnote{}
% \footnotetext{\textbf{Abbreviations:} ANA, anti-nuclear antibodies; APC, antigen-presenting cells; IRF, interferon regulatory factor.}
% \renewcommand\thefootnote{\fnsymbol{footnote}}
% \setcounter{footnote}{1}你所指的横线应该是\footnoterule导致的,使用下面的代码即可去掉:
\renewcommand{\footnoterule}{}提问问题不够具体,而且代码也太长(包含了一些敏感内容导致的)。要体现你的问题完全不需要这么长的代码,不要让潜在的回答者看你300多行的源代码,这不礼貌。你应该只提取出和你问题核心相关的某几行。
\documentclass[12pt]{ctexart}
\usepackage[left=1.5cm,right=1.5cm,top=1.5cm,bottom=2cm]{geometry}
\usepackage{tikz}
\usepackage{setspace}
\usepackage{zhlipsum}
\NewDocumentCommand{\mytextbox}{ o m }{%
\noindent%
\begin{center}\vspace*{2ex}%
\begin{tabular}{|c|}%
\IfNoValueF{#1}%
{\hline{\zihao{3}#1}\\}
\hline%
\parbox{.95\linewidth}{%
\vspace*{5ex}%
\foreach \i in {1,...,{#2}}{%
\vspace*{1ex}%
\hrulefill \par
\vspace*{1ex}%
}
}\\
\hline%
\end{tabular}\vspace*{2ex}%
\end{center}
}
\doublespace
\begin{document}
\begin{center}
{\zihao{2}\bfseries 我是一个标题哈哈哈哈}
\end{center}
\mytextbox[请以如何提问为题目写一篇文章。]{15}
\zhlipsum[2]
\mytextbox{10}
\zhlipsum[2]
\mytextbox[我能吞下玻璃而不伤身体我能吞下玻璃而不伤身体]{17}
\end{document}
TeX发展这么久了,类似作文纸的排版应该有相关的宏包...我自己造的轮子肯定相当粗糙...tikz:\documentclass{ctexart}
\usepackage[left=1.5cm,right=1.5cm,top=1.5cm,bottom=2cm]{geometry}
\usepackage{tikz}
\usepackage{zhlipsum}
\AddToHook{shipout/background}
{%
\begin{tikzpicture}[remember picture,overlay]
\useasboundingbox[draw=black,thick] ([xshift=1.45cm,yshift=1.95cm]current page.south west) rectangle ([xshift=-1.45cm,yshift=-1.45cm]current page.north east);
\end{tikzpicture}%%
}
\begin{document}
\zhlipsum[1-9]
\end{document}"如何添加页面边框,实现如图效果"

maybe related: https://github.com/James-Yu/LaTeX-Workshop/issues/3988
我曾经自定义使用过musixflx宏包需要的musixflx命令,在LW上是有效的,感觉就是James Yu没有在上游提供支持,上面的issues好像也没有下文了....
李清老师在2012年重排过一版《金瓶梅》,可见这个需要魔法的链接
为避免网络问题,这里上传相关的文件以供参考:
其中实现了类似的效果,可惜...我看不太懂李清在.sty中的设置:

期待题主的排版大作早日问世~
请提供在别人的电脑上如何复现你的问题。无法复现的问题是玄学。不应该被提问。
建议你在vscode右下角的编码处尝试修改编码方式。
(感觉这份文件烂完了...)

问 三维坐标轴到底是怎么设置的?