英文が\theoremのあと斜体になってしまう

英文が\theoremのあと斜体になってしまう

- 匿 名 の投稿
返信数: 4
ベースは日本語ですが、英文の引用も混ぜて使いたいのですが、以下のプログラムで、「定理」を書いた後、PDFで英文が斜体に
変わってしまいます。$モードが残ったままな感じです。
この斜体をもとに戻すやり方をご教授下さい。エラーにはなりませんが、ログも添付します。

\documentclass{jsarticle}
\usepackage{amsthm}
\begin{document}
\newtheorem{theorem}{定理}
\renewcommand{\proofname}{{\gtfamily 証明}}
aaa zzz
\theorem{$a+b$} \\
\proofname
aaaa zzz
\end{document}

This is pTeXk, Version 3.141592-p3.1.10 (utf8) (Web2C 7.5.5)
Source specials enabled.
(./ABC.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2005/12/01> patch level 0)
Babel and hyphenation patterns for english, usenglishmax, ukenglish, ba
sque, bulgarian, coptic, welsh, czech, slovak, german, ngerman, danish, spanish
, catalan, estonian, finnish, french, irish, polygreek, monogreek, ancientgreek
, croatian, hungarian, interlingua, ibycus, bahasa, icelandic, italian, latin,
mongolian, dutch, norsk, polish, portuguese, pinyin, romanian, russian, samin,
slovene, usorbian, serbian, swedish, turkish, ukrainian, dumylang, nohyphenatio
n, loaded.
(c:/usr/local/share/texmf-local/ptex/platex/js/jsarticle.cls
Document Class: jsarticle 2006/11/01 okumura
) (c:/usr/local/share/texmf/tex/latex/amslatex/amsthm.sty) (./ABC.aux) [1]
(./ABC.aux) )
Output written on ABC.dvi (1 page, 496 bytes).
Transcript written on ABC.log.
匿 名 への返信

Re: 英文が\theoremのあと斜体になってしまう

- Akira Kakuto の投稿
デフォルトで定理本体は通常イタリックになっています。
aaa bbb ccc.
\begin{theorem}
$a+b$ is aaaa zzz.
\begin{proof}
aaaa zzz.
\end{proof}
\end{theorem}
aaa bbb ccc.

Akira Kakuto への返信

Re: 英文が\theoremのあと斜体になってしまう

- 匿 名 の投稿
ご回答有難うございます。今まで日本語ばかりで、いきなり
\theorem,\proofとしてまして、うっかりしていました。
取り下げたと自分で書きましたが、私が自分で調べた解答も
同じ方法でした。いずれにせよ、有難うございます。
匿 名 への返信

Re: 英文が\theoremのあと斜体になってしまう

- 匿 名 の投稿
> 私が自分で調べた解答も同じ方法でした。

???。つまり、amsthm.sty で用意されている \theoremstyle を使うのではなくて、(やはり amsthm.sty で定義されているものですが)proof 環境を使う、というのが「解答」ということですか?

amsthm.sty のドキュメント(amsthdoc.pdf)は読まれましたか? それと、theorem って、引数をとるのではなくて、環境ではありませんでしたか?

% from: 3-3-20.ltx (slightly changed)
%
%% The LaTeX Companion, 2ed (second printing August 2004)
%%
%% Example 3-3-20 on page 140.
%%
%% Copyright (C) 2004 Frank Mittelbach, Michel Goossens,
%%    Johannes Braams, David Carlisle, and Chris Rowley

\documentclass{article}
\let\StartShownPreambleCommands\relax
\let\StopShownPreambleCommands\relax

\StartShownPreambleCommands
\usepackage{amsthm}
\theoremstyle{plain}      \newtheorem{thm}{Theorem}
\theoremstyle{definition} \newtheorem{defn}[thm]{Definition}
\theoremstyle{remark}    \newtheorem*{rem}{Remark}
\StopShownPreambleCommands

\begin{document}
\begin{defn}
A typographical challenge is a problem that cannot be
solved with the help of \emph{The \LaTeX{} Companion}.
\end{defn}
\begin{thm}There are no typographical challenges.\end{thm}
\begin{rem}The proof is left to the reader.\end{rem}
\end{document}