CHG hyphenation within \textit

This commit is contained in:
2025-05-12 12:43:25 +08:00
parent ce63dd36f7
commit 8539d8161a
4 changed files with 66 additions and 5 deletions

View File

@@ -83,6 +83,19 @@
%Garamond: The garamond package provides the Garamond font with small caps.
%\usepackage{CormorantGaramond}
%\renewcommand{\texttt}[1]{%
% \begingroup
% \ttfamily
% \begingroup\lccode`~=`/\lowercase{\endgroup\def~}{/\discretionary{}{}{}}%
% \begingroup\lccode`~=`[\lowercase{\endgroup\def~}{[\discretionary{}{}{}}%
% \begingroup\lccode`~=`.\lowercase{\endgroup\def~}{.\discretionary{}{}{}}%
% \catcode`/=\active\catcode`[=\active\catcode`.=\active
% \scantokens{#1\noexpand}%
% \endgroup
%}
%\DeclareFontFamily{\encodingdefault}{\ttdefault}{\hyphenchar\font=`\-}
%\DeclareTextFontCommand{\mytexttt}{\ttfamily\hyphenchar\font=45\relax}
\newcommand{\english}[1]{\\[0.3em]\begin{small}\textit{\selectlanguage{english}#1}\end{small}}
\newcommand{\note}[1]{\\[0.3em]\begin{scriptsize}#1\end{scriptsize}}