Skip to content

Commit 8c5f00c

Browse files
committed
Use \textstruc font for structure and class names.
1 parent ecb31a2 commit 8c5f00c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

algpseudocodex.sty

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,8 @@
681681
\algnewcommand\algorithmicclass{\textbf{class}}
682682
\algnewcommand\algorithmicproperties{\textbf{properties}}
683683
\algnewcommand\algorithmicmethods{\textbf{methods}}
684-
\algnewcommand\textproc{\textsc}
684+
\algnewcommand\textproc{\textsc}% font for procedure/function names
685+
\algnewcommand\textstruc{\textsc}% font for structure and class names
685686

686687

687688
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -732,12 +733,12 @@
732733
\algpx@startEndBlockCommand\algpx@endIndent\algorithmicend\ \algorithmicfunction%
733734
}
734735
\algdef{SE}[STRUCTURE]{Structure}{EndStructure}[1]{%
735-
\algpx@startCodeCommand\algpx@startIndent\algorithmicstructure\ \textsc{#1}%
736+
\algpx@startCodeCommand\algpx@startIndent\algorithmicstructure\ \textstruc{#1}%
736737
}{%
737738
\algpx@startEndBlockCommand\algpx@endIndent\algorithmicend\ \algorithmicstructure%
738739
}
739740
\algdef{SE}[CLASS]{Class}{EndClass}[1]{%
740-
\algpx@startCodeCommand\algpx@startIndent\algorithmicclass\ \textsc{#1}%
741+
\algpx@startCodeCommand\algpx@startIndent\algorithmicclass\ \textstruc{#1}%
741742
}{%
742743
\algpx@startEndBlockCommand\algpx@endIndent\algorithmicend\ \algorithmicclass%
743744
}

0 commit comments

Comments
 (0)