summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thuthesis/thuthesis-numeric.bbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-03-19 20:02:45 +0000
committerKarl Berry <karl@freefriends.org>2022-03-19 20:02:45 +0000
commit89104bb74c1962cf054486be01c1f2180591dec4 (patch)
treedb51d84db93c6c0707828fa344df992556a000ce /Master/texmf-dist/tex/latex/thuthesis/thuthesis-numeric.bbx
parenteba7407f52d9f6595fb0d1dd04875d2ee79f1922 (diff)
thuthesis (18mar22)
git-svn-id: svn://tug.org/texlive/trunk@62809 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thuthesis/thuthesis-numeric.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/thuthesis/thuthesis-numeric.bbx30
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis-numeric.bbx b/Master/texmf-dist/tex/latex/thuthesis/thuthesis-numeric.bbx
index f0d6234effa..fb7dcdff687 100644
--- a/Master/texmf-dist/tex/latex/thuthesis/thuthesis-numeric.bbx
+++ b/Master/texmf-dist/tex/latex/thuthesis/thuthesis-numeric.bbx
@@ -25,3 +25,33 @@
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}
+
+%
+% 重设专利title的输出,将文献类型标识符输出出去
+%
+\renewbibmacro*{patenttitle}{%原输出来自biblatex.def文件
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and%
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\printtext[title]{\bibtitlefont%
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ % \setunit{\subtitlepunct}\printfield{number}%写专利号
+ \setunit{\subtitlepunct}%
+ \iflistundef{location}{}
+ {\printlist{location}\setunit{\addcomma\space}}% 专利国别
+ \printfield{number}%写专利号
+ \iftoggle{bbx:gbtype}{\printfield[gbtypeflag]{usera}}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+ }%
+}%
+\clearlist{location}\clearlist{address}%
+}