Foren: 公開討議/質問 (Thread #37459)

lltjdefs.sty の \jttdefault (2016-01-26 14:19 by kmaeda #77553)

lltjdefs.sty では \jttdefault という和文のタイプライタ体の定義があるようなのですが,
これがどこで使われているのかわかりますか?
grep した限りだと ltjsclasses と luatexja-fontspec 内で見つかりますが,
いずれもわざわざ \jttdefault を再定義(しかもいずれも元と同じ \gtdefault)して
使っているようです.

Reply to #77553×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Anmelden

Re: lltjdefs.sty の \jttdefault (2016-01-26 16:23 by h7k #77554)

[メッセージ #77553 への返信]
> lltjdefs.sty では \jttdefault という和文のタイプライタ体の定義があるようなのですが,
> これがどこで使われているのかわかりますか?
> grep した限りだと ltjsclasses と luatexja-fontspec 内で見つかりますが,
> いずれもわざわざ \jttdefault を再定義(しかもいずれも元と同じ \gtdefault)して
> 使っているようです.

そこしか使っていないです.というか,
「和文と欧文が \ttfamily で連動して変わるのなら \ttfamily での
 和文ファミリも簡単に指定できるようにしては?」
という感覚で私が入れたものだと思います.

ちょうど verb/verbatim で使うフォントについての話題が出ていますが,
latex.ltx 中の \def\verbatim@font{\normalfont\ttfamily} という定義を
lltjdefs.sty で
\def\verbatim@font{\normalfont\ttfamily\jttfamily}
\def\jttdefault{\mcdefault}% 標準では明朝体.js 等でゴチに置き換え
と再定義するのはどうでしょうか?
Reply to #77553

Reply to #77554×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Anmelden

Re: lltjdefs.sty の \jttdefault (2016-01-27 10:27 by kmaeda #77560)

> latex.ltx 中の \def\verbatim@font{\normalfont\ttfamily} という定義を
> lltjdefs.sty で
> \def\verbatim@font{\normalfont\ttfamily\jttfamily}
> \def\jttdefault{\mcdefault}% 標準では明朝体.js 等でゴチに置き換え
> と再定義するのはどうでしょうか?

よいかもしれません.
私の感覚だと \def\jttdefault{\gtdefault} でもよいと思うのですが,
そうすると pTeX とは違ってしまうのですよね.
Reply to #77554

Reply to #77560×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Anmelden

Re: lltjdefs.sty の \jttdefault (2016-01-27 14:47 by h7k #77561)

[メッセージ #77560 への返信]
> > latex.ltx 中の \def\verbatim@font{\normalfont\ttfamily} という定義を
> > lltjdefs.sty で
> > \def\verbatim@font{\normalfont\ttfamily\jttfamily}
> > \def\jttdefault{\mcdefault}% 標準では明朝体.js 等でゴチに置き換え
> > と再定義するのはどうでしょうか?
>
> よいかもしれません.
> 私の感覚だと \def\jttdefault{\gtdefault} でもよいと思うのですが,
> そうすると pTeX とは違ってしまうのですよね.

bb280b124 で追加してみました.
Reply to #77560

Reply to #77561×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Anmelden