Skip to content

Commit

Permalink
rename hyphenate function
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Apr 12, 2018
1 parent b1b7e23 commit 32aedd8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gbt7714-plain.bst
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ FUNCTION {output.bibitem}
before.all 'output.state :=
}

FUNCTION {hyphenize}
FUNCTION {hyphenate}
{ 't :=
""
{ t empty$ not }
Expand Down Expand Up @@ -928,7 +928,7 @@ FUNCTION {format.address.publisher}
FUNCTION {format.pages}
{ pages empty$
{ "" }
{ pages hyphenize }
{ pages hyphenate }
if$
}

Expand Down
4 changes: 2 additions & 2 deletions gbt7714-unsrt.bst
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ FUNCTION {output.bibitem}
before.all 'output.state :=
}

FUNCTION {hyphenize}
FUNCTION {hyphenate}
{ 't :=
""
{ t empty$ not }
Expand Down Expand Up @@ -928,7 +928,7 @@ FUNCTION {format.address.publisher}
FUNCTION {format.pages}
{ pages empty$
{ "" }
{ pages hyphenize }
{ pages hyphenate }
if$
}

Expand Down
7 changes: 4 additions & 3 deletions gbt7714.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ which was designed for use with the `natbib.sty' package.
#1\NAT@@close\if*#3*\else\textsuperscript{#3}\fi\else#1\fi\endgroup}
% \end{macrocode}
%
% 顺序编码制连续两个文献引用之间使用连接号
% 在顺序编码制下,\pkg{natbib} 只有在三个以上连续文献引用才会使用连接号,
% 这里修改为允许两个引用使用连接号。
% \begin{macrocode}
\patchcmd{\NAT@citexnum}{%
\ifx\NAT@last@yr\relax
Expand Down Expand Up @@ -1413,7 +1414,7 @@ FUNCTION {output.bibitem}
% 《规则》里页码范围的连接号使用 hyphen,需要将 dash 转为 hyphen。
%
% \begin{macrocode}
FUNCTION {hyphenize}
FUNCTION {hyphenate}
{ 't :=
""
{ t empty$ not }
Expand Down Expand Up @@ -1859,7 +1860,7 @@ FUNCTION {format.address.publisher}
FUNCTION {format.pages}
{ pages empty$
{ "" }
{ pages hyphenize }
{ pages hyphenate }
if$
}
Expand Down

0 comments on commit 32aedd8

Please sign in to comment.