Skip to content

Commit

Permalink
use Menlo on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Apr 21, 2018
1 parent 53fd250 commit 61bf671
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ustcthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@
}
\setmainfont{Times New Roman}
\setsansfont{Arial}
\setmonofont{Courier New}
\IfFileExists{/System/Library/Fonts/Menlo.ttc}{%
\setmonofont[Scale=MatchLowercase]{Menlo}
}{
\setmonofont[Scale=MatchLowercase]{Courier New}
}
\ifx\yahei\undefined\else
\setCJKsansfont{SimHei}%
\fi
Expand Down
6 changes: 5 additions & 1 deletion ustcthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,11 @@ version 2005/12/01 or later.
% \begin{macrocode}
\setmainfont{Times New Roman}
\setsansfont{Arial}
\setmonofont{Courier New}
\IfFileExists{/System/Library/Fonts/Menlo.ttc}{%
\setmonofont[Scale=MatchLowercase]{Menlo}
}{
\setmonofont[Scale=MatchLowercase]{Courier New}
}
% \end{macrocode}
%
% 中文字体由 \pkg{ctex} 自动设置,但是在 windowsnew 情况下需要取消使用微软雅黑
Expand Down

0 comments on commit 61bf671

Please sign in to comment.