Skip to content

Commit 7d372ea

Browse files
feat: 支持不编号的\pubsection*
1 parent c5c88e3 commit 7d372ea

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

bithesis-doc.tex

+3-1
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ \subsection{后置部分}
18201820
用于添加个人成果,添加过的成果可以通过 |printbibliography| 打印。
18211821
\end{function}
18221822

1823-
\begin{function}[added=2022-10-23]{\pubsection}
1823+
\begin{function}[added=2022-10-23, updated=2025-01-02]{\pubsection}
18241824
\begin{bitsyntax}[emph={[1]publications,pubsection,printbibliography}]
18251825
\begin{publications}
18261826
\addpubs{\meta{引用内容的key},\meta{引用内容的key2}}
@@ -1835,6 +1835,8 @@ \subsection{后置部分}
18351835

18361836
\textit{在「攻读学位期间发表论文与研究成果清单」环境中使用。}
18371837
用于添加分类的目录。
1838+
1839+
|\pubsection| 会编号;若不想编号,请改用 |\pubsection*|。
18381840
\end{function}
18391841

18401842
\begin{function}[added=2022-10-23]{\Author,\AuthorEn}

bithesis.dtx

+7-4
Original file line numberDiff line numberDiff line change
@@ -3133,15 +3133,18 @@
31333133
% \begin{macro}{\pubsection}
31343134
% 设置小标题。
31353135
% \begin{macrocode}
3136-
\NewDocumentCommand \pubsection {m} {
3136+
\NewDocumentCommand \pubsection {s m} {
31373137
{
3138-
% 自增计数器
3139-
\par\stepcounter{pub}
3138+
\par
3139+
\IfBooleanF {#1} {
3140+
% 自增计数器
3141+
\stepcounter{pub}
3142+
}
31403143
% 设置小标题,暂时没有考虑英文模式
31413144
\noindent
31423145
\textbf{
31433146
\heiti{
3144-
\zhnumber{\thepub}、#1
3147+
\IfBooleanF {#1} {\zhnumber{\thepub}、}#2
31453148
}
31463149
}\par
31473150
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy