ご質問はこちらへ
質問用フォーラムです。ご質問の前に質問のしかたをご覧ください。
pdvipsで日本語が使えない
- 藤原 の投稿
お世話になります。
日本語を含んだファイルにpdvipsを使用すると、以下のようなエラーが
生じます。自分なりに調べては見たものの、うまくいかずに困っています。
どのように改善すべきでしょうか。ちなみに、texはplatexはVersion 3.141592-
p3.1.10 (euc) (Web2C 7.5.6)を使用しております。
This is dvips(k) p1.7a Copyright 2005 ASCII Corp.(www-ptex@ascii.co.jp)
This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)
' TeX output 2011.01.04:0329' -> test.ps
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 0+555/600 --dpi 555 rml
mktexpk: don't know how to create bitmap font for rml.
kpathsea: Appending font creation commands to missfont.log.
pdvips: Font rml not found, characters will be left blank.
</usr/share/texmf/pdvips/base/tex.pro>
</usr/share/texmf/pdvips/base/texps.pro>.
</usr/share/texmf/fonts/type1/bluesky/cm/cmr10.pfb>[1]
日本語を含んだファイルにpdvipsを使用すると、以下のようなエラーが
生じます。自分なりに調べては見たものの、うまくいかずに困っています。
どのように改善すべきでしょうか。ちなみに、texはplatexはVersion 3.141592-
p3.1.10 (euc) (Web2C 7.5.6)を使用しております。
This is dvips(k) p1.7a Copyright 2005 ASCII Corp.(www-ptex@ascii.co.jp)
This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)
' TeX output 2011.01.04:0329' -> test.ps
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 0+555/600 --dpi 555 rml
mktexpk: don't know how to create bitmap font for rml.
kpathsea: Appending font creation commands to missfont.log.
pdvips: Font rml not found, characters will be left blank.
</usr/share/texmf/pdvips/base/tex.pro>
</usr/share/texmf/pdvips/base/texps.pro>.
</usr/share/texmf/fonts/type1/bluesky/cm/cmr10.pfb>[1]
このトピックを読む
(現在の返信数: 25)
eplatexの文字化け
- Suzuki Hidekazu の投稿
はじめまして.
これまでplatexを使っていましたが,新しいパソコンにTeX環境をインストールしたことを機にeplatexに変更してみたところ,
\abstractname部分の文字化けが発生しました.
-----
\documentclass{jsarticle}
\begin{document}
\begin{abstract}
hoge
\end{abstract}
\end{document}
-----
例えば,上記のようなtex文章の場合,通常であれば「概要」と表示されるところが,
「概・」のように末尾が文字化けします.
ドキュメントクラスを「article」にした場合も
「Abstract」ではなく「AbstracΓ」のようになってしまいます.
これはeplatexのバグと考えてよろしいでしょうか.
文字コードはUTF8です.
ちなみに今のところ,プリアンブルに
\renewcommand{\abstractname}{概要 }
のように最後に半角スペースを入れて対処しています.
これまでplatexを使っていましたが,新しいパソコンにTeX環境をインストールしたことを機にeplatexに変更してみたところ,
\abstractname部分の文字化けが発生しました.
-----
\documentclass{jsarticle}
\begin{document}
\begin{abstract}
hoge
\end{abstract}
\end{document}
-----
例えば,上記のようなtex文章の場合,通常であれば「概要」と表示されるところが,
「概・」のように末尾が文字化けします.
ドキュメントクラスを「article」にした場合も
「Abstract」ではなく「AbstracΓ」のようになってしまいます.
これはeplatexのバグと考えてよろしいでしょうか.
文字コードはUTF8です.
ちなみに今のところ,プリアンブルに
\renewcommand{\abstractname}{概要 }
のように最後に半角スペースを入れて対処しています.
このトピックを読む
(現在の返信数: 8)
ソースコードでUTF-8のBOM付きと不付きについて
- 浮亭 夢介 の投稿
otfの使用方法について教えてください。
- た~さん の投稿
こんにちは。初歩的なOTFの使用について教えていただきたく,投稿しました。
奥村先生の「美文書作成入門第五版」に触発され,OTFの使用について勉強を始めたところです。TOFフォントをインストールした後,cid-x.mapなどもTeX Wikiの指示通りに設定しました。OTFパッケージにあるofttest.texをコンパイルし,dvipdfmxでpdfに変換したところ,本来ひらがなであるはずの部分がうまく出ません。
>cidjmr1-h@9.21pt(TFM:cidjmr1-h)(VF:cidjmr1-hotf-cmjr-h@9.21pt)(VF)>Fonit_id: 3 not found in VF
というメッセージが表示されています。ちなみに[expert]オプションを外すと,きれいに表示されました。OTFパッケージを使用する他のTeX文書でも同じでした。四日間あれこれやってみましたがうまく行きません。どなたか解決策をお教えください。
宜しくお願い致します。
このトピックを読む
(現在の返信数: 4)
柱とノンブル関連です。
- 匿名 希望 の投稿
初めての投稿で不手際がありましたらご容赦ください。
こちらでお聞きしたいことが二つあります。
自分はjsbookにおいて文章を作成しており、この状況で柱とノンブルのページ番号を一緒にまとめて表示する方法はありますでしょうか?
過去のFAQにおいて似たような件があるにはあるのですが・・・・
http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/34531.html
この結果を利用してみたも、1ページにフルで文章を書くと最下段の行とページ番号が近づいてしまい、美しさからかけ離れてしまうことに気づきこれらの対策を含め、こちらで再度質問させてもらうことにしました。
もう一つというのは、章の最初のページに柱を追加する方法です。
初歩的な質問だとは思うのですが、解る方がいらっしゃいましたら、ご教授お願いします。
こちらでお聞きしたいことが二つあります。
自分はjsbookにおいて文章を作成しており、この状況で柱とノンブルのページ番号を一緒にまとめて表示する方法はありますでしょうか?
過去のFAQにおいて似たような件があるにはあるのですが・・・・
http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/34531.html
この結果を利用してみたも、1ページにフルで文章を書くと最下段の行とページ番号が近づいてしまい、美しさからかけ離れてしまうことに気づきこれらの対策を含め、こちらで再度質問させてもらうことにしました。
もう一つというのは、章の最初のページに柱を追加する方法です。
初歩的な質問だとは思うのですが、解る方がいらっしゃいましたら、ご教授お願いします。
このトピックを読む
(現在の返信数: 1)
jsbook と multibib (2)
- oxon oxon の投稿
昨日、https://okumuralab.org/tex/mod/forum/discuss.php?d=593 で jsbook と multibib の組み合わせに質問させて頂きました。引き続き、この組み合わせで質問があります。
multibib は内部で通常の thebibliography を使うため、jsbook を使う場合にはそれぞれの bib が chapter になるため、例えば「査読論文」「国際会議予稿」「国内学会」のように複数の bibliography を作成した場合、chapter と見なされて改ページが入ってしまいます。
そこで、
\makeatletter
\renewenvironment{thebibliography}[1]{%
\global\let\presectionname\relax
\global\let\postsectionname\relax
\section*{\bibname}\@mkboth{\bibname}{}%
\addcontentsline{toc}{section}{\bibname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty\clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
を TeX ソースのプリアンブルに追加して、それぞれの bibliography をsection にすることで、いちいち改ページしていたのを抑止することができました。
【質問】
しかし、このままでは、ページ上部の chapter 名ではなく、section 名が表示されてしまいます。他の chapter では、ページ上部には必ず chapter 名が表示されます。
このページ上部に、chapter 名を表示するためには、あとどの箇所を修正すれば良いでしょうか。ご教示下さい。
[添付ファイルを消す方法を模索中^^;] (編集 管理 ユーザ - 最初の投稿日時 2010年 12月 22日(水曜日) 07:21)
multibib は内部で通常の thebibliography を使うため、jsbook を使う場合にはそれぞれの bib が chapter になるため、例えば「査読論文」「国際会議予稿」「国内学会」のように複数の bibliography を作成した場合、chapter と見なされて改ページが入ってしまいます。
そこで、
\makeatletter
\renewenvironment{thebibliography}[1]{%
\global\let\presectionname\relax
\global\let\postsectionname\relax
\section*{\bibname}\@mkboth{\bibname}{}%
\addcontentsline{toc}{section}{\bibname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty\clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
を TeX ソースのプリアンブルに追加して、それぞれの bibliography をsection にすることで、いちいち改ページしていたのを抑止することができました。
【質問】
しかし、このままでは、ページ上部の chapter 名ではなく、section 名が表示されてしまいます。他の chapter では、ページ上部には必ず chapter 名が表示されます。
このページ上部に、chapter 名を表示するためには、あとどの箇所を修正すれば良いでしょうか。ご教示下さい。
[添付ファイルを消す方法を模索中^^;] (編集 管理 ユーザ - 最初の投稿日時 2010年 12月 22日(水曜日) 07:21)
このトピックを読む
(現在の返信数: 4)
TeXインストール,texmfがない
- 匿 名 の投稿
TeXインストーラを使って,windows 7にTeXをインストールしたいのですが,一通りインストールをして,環境変数もチェックしたあと,Winshellでソースファイルをコンパイルしたのですが,texmf.cnfがないとのエラーが出ます(「I can't find the format file `platex.fmt'!」も合わせて出ます).確かに,web2cのディレクトリにtexmf.cnfが存在していませんでした.
1回目のインストールのときはそのようなエラーは出なかったのですが,epsやpdfに変換するところがうまくいかなかったため,再度インストールしました.そうすると,上記のようなエラーが出るようになりました.その後は,何度インストールしなおしても同じエラーがでてきます.texmf.cnfを入れれば解決すると思うのですが,インストールの過程でどこか問題となるところがあったのでしょうか?よろしくお願いします.
1回目のインストールのときはそのようなエラーは出なかったのですが,epsやpdfに変換するところがうまくいかなかったため,再度インストールしました.そうすると,上記のようなエラーが出るようになりました.その後は,何度インストールしなおしても同じエラーがでてきます.texmf.cnfを入れれば解決すると思うのですが,インストールの過程でどこか問題となるところがあったのでしょうか?よろしくお願いします.
このトピックを読む
(現在の返信数: 2)
jsbook と multibib
- oxon oxon の投稿
【状況】
jsbook と multibib を組み合わせて使ってみたところ、文末のようなエラーが出ました。使用したソースは添付の test.tex で、そのまま enter で無理やり進めた後に dvipdfmx で変換したものが添付の test.pdf です。
「第 X 章」を出さなくするための行(20〜30 辺り)をコメントアウトした上で、jsbook を jbook に変更すると期待通りに動作します。「jsbook multibib」で Google 検索しても該当する問題は出てこないため、ここで質問させて頂きます。
jsbook や jsarticle だと再現しないため、BibTeX ファイルには問題ないと思います(添付しておりません)。
【質問】
jsbook と multibib の組み合わせで動作する場合、何か特殊な作業をする必要があるのでしょうか。もし簡単な作業で添付のソースを修正可能な場合は、どなたかご教示下さい。
【環境】
- OS X 10.6.5
- MacPorts から導入した、ptex(port install ptex +utf8)
- pTeX 3.141592-p3.1.10 (utf8.euc) (Web2C 7.5.4)
- dvipdfmx-20100328 by the DVIPDFMx project team
==========================
$ platex test
This is pTeX, Version 3.141592-p3.1.10 (utf8.euc) (Web2C 7.5.4)
(./test.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2003/12/01> patch level 0)
(/opt/local/share/texmf/ptex/platex/jsclasses/jsbook.cls
Document Class: jsbook 2010/03/14 okumura
) (/opt/local/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/opt/local/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/opt/local/share/texmf/tex/latex/graphics/dvipdfmx-contrib-latex/graphics.sty
(/opt/local/share/texmf-dist/tex/latex/graphics/trig.sty)
(/opt/local/share/texmf-dist/tex/latex/graphics/graphics.cfg)
(/opt/local/share/texmf-dist/tex/latex/dvipdfm/dvipdfm.def)))
(/opt/local/share/texmf-dist/tex/latex/hyperref/hyperref.sty
(/opt/local/share/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/opt/local/share/texmf-dist/tex/latex/hyperref/hyperref.cfg)
Implicit mode ON; LaTeX internals redefined
(/opt/local/share/texmf/ptex/latex/url/url.sty))
*hyperref using default driver hdvips*
(/opt/local/share/texmf-dist/tex/latex/hyperref/hdvips.def
(/opt/local/share/texmf-dist/tex/latex/hyperref/pdfmark.def))
(/opt/local/share/texmf-dist/tex/latex/geometry/geometry.sty
(/opt/local/share/texmf-dist/tex/latex/geometry/geometry.cfg))
(/opt/local/share/texmf-dist/tex/latex/psnfss/times.sty)
(/opt/local/share/texmf-dist/tex/latex/subfigure/subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(/opt/local/share/texmf-dist/tex/latex/subfigure/subfigure.cfg))
(/opt/local/share/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/opt/local/share/texmf-dist/tex/latex/amsmath/amstext.sty
(/opt/local/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/opt/local/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/opt/local/share/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/opt/local/share/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/opt/local/share/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/opt/local/share/texmf-dist/tex/latex/tools/bm.sty)
(/opt/local/share/texmf/ptex/platex/otfstable/otf.sty
(/opt/local/share/texmf/ptex/platex/otfstable/ajmacros.sty))
(/opt/local/share/texmf-dist/tex/latex/multibib/multibib.sty) (./th.aux)
(./ra.aux) (./la.aux) (./cp.aux) (./co.aux) (./test.aux)
(I search kanjifont definition file: . . ) (I search font definition file: . .
. . . . . . ) (/opt/local/share/texmf-dist/tex/latex/psnfss/ot1ptm.fd)
(/opt/local/share/texmf-dist/tex/latex/hyperref/nameref.sty) (./test.out)
(./test.out)
1
(/opt/local/share/texmf-dist/tex/latex/psnfss/ot1phv.fd) [1] [2]
2
(./th.bbl [3] [4])
! Incomplete \ifx; all text was ignored after line 1.
<inserted text>
\fi
l.54 \bibliographyth{oxon}
?
! Extra }, or forgotten \endgroup.
\bibliographyth ... \refnameth \bibliography {#1}}
l.54 \bibliographyth{oxon}
?
! LaTeX Error: \begin{thebibliography} on input line 1\space ended by \end{docu
ment}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.56 \end{document}
?
[5] )
(\end occurred inside a group at level 5)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \iffalse on line 1 was incomplete)
(\end occurred when \iffalse on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \ifnum on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \ifnum on line 1 was incomplete)
(\end occurred when \iftrue on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
Output written on test.dvi (5 pages, 4488 bytes).
Transcript written on test.log.
jsbook と multibib を組み合わせて使ってみたところ、文末のようなエラーが出ました。使用したソースは添付の test.tex で、そのまま enter で無理やり進めた後に dvipdfmx で変換したものが添付の test.pdf です。
「第 X 章」を出さなくするための行(20〜30 辺り)をコメントアウトした上で、jsbook を jbook に変更すると期待通りに動作します。「jsbook multibib」で Google 検索しても該当する問題は出てこないため、ここで質問させて頂きます。
jsbook や jsarticle だと再現しないため、BibTeX ファイルには問題ないと思います(添付しておりません)。
【質問】
jsbook と multibib の組み合わせで動作する場合、何か特殊な作業をする必要があるのでしょうか。もし簡単な作業で添付のソースを修正可能な場合は、どなたかご教示下さい。
【環境】
- OS X 10.6.5
- MacPorts から導入した、ptex(port install ptex +utf8)
- pTeX 3.141592-p3.1.10 (utf8.euc) (Web2C 7.5.4)
- dvipdfmx-20100328 by the DVIPDFMx project team
==========================
$ platex test
This is pTeX, Version 3.141592-p3.1.10 (utf8.euc) (Web2C 7.5.4)
(./test.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2003/12/01> patch level 0)
(/opt/local/share/texmf/ptex/platex/jsclasses/jsbook.cls
Document Class: jsbook 2010/03/14 okumura
) (/opt/local/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/opt/local/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/opt/local/share/texmf/tex/latex/graphics/dvipdfmx-contrib-latex/graphics.sty
(/opt/local/share/texmf-dist/tex/latex/graphics/trig.sty)
(/opt/local/share/texmf-dist/tex/latex/graphics/graphics.cfg)
(/opt/local/share/texmf-dist/tex/latex/dvipdfm/dvipdfm.def)))
(/opt/local/share/texmf-dist/tex/latex/hyperref/hyperref.sty
(/opt/local/share/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/opt/local/share/texmf-dist/tex/latex/hyperref/hyperref.cfg)
Implicit mode ON; LaTeX internals redefined
(/opt/local/share/texmf/ptex/latex/url/url.sty))
*hyperref using default driver hdvips*
(/opt/local/share/texmf-dist/tex/latex/hyperref/hdvips.def
(/opt/local/share/texmf-dist/tex/latex/hyperref/pdfmark.def))
(/opt/local/share/texmf-dist/tex/latex/geometry/geometry.sty
(/opt/local/share/texmf-dist/tex/latex/geometry/geometry.cfg))
(/opt/local/share/texmf-dist/tex/latex/psnfss/times.sty)
(/opt/local/share/texmf-dist/tex/latex/subfigure/subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(/opt/local/share/texmf-dist/tex/latex/subfigure/subfigure.cfg))
(/opt/local/share/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/opt/local/share/texmf-dist/tex/latex/amsmath/amstext.sty
(/opt/local/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/opt/local/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/opt/local/share/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/opt/local/share/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/opt/local/share/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/opt/local/share/texmf-dist/tex/latex/tools/bm.sty)
(/opt/local/share/texmf/ptex/platex/otfstable/otf.sty
(/opt/local/share/texmf/ptex/platex/otfstable/ajmacros.sty))
(/opt/local/share/texmf-dist/tex/latex/multibib/multibib.sty) (./th.aux)
(./ra.aux) (./la.aux) (./cp.aux) (./co.aux) (./test.aux)
(I search kanjifont definition file: . . ) (I search font definition file: . .
. . . . . . ) (/opt/local/share/texmf-dist/tex/latex/psnfss/ot1ptm.fd)
(/opt/local/share/texmf-dist/tex/latex/hyperref/nameref.sty) (./test.out)
(./test.out)
1
(/opt/local/share/texmf-dist/tex/latex/psnfss/ot1phv.fd) [1] [2]
2
(./th.bbl [3] [4])
! Incomplete \ifx; all text was ignored after line 1.
<inserted text>
\fi
l.54 \bibliographyth{oxon}
?
! Extra }, or forgotten \endgroup.
\bibliographyth ... \refnameth \bibliography {#1}}
l.54 \bibliographyth{oxon}
?
! LaTeX Error: \begin{thebibliography} on input line 1\space ended by \end{docu
ment}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.56 \end{document}
?
[5] )
(\end occurred inside a group at level 5)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \iffalse on line 1 was incomplete)
(\end occurred when \iffalse on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \ifnum on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
(\end occurred when \ifnum on line 1 was incomplete)
(\end occurred when \iftrue on line 1 was incomplete)
(\end occurred when \ifx on line 1 was incomplete)
Output written on test.dvi (5 pages, 4488 bytes).
Transcript written on test.log.
このトピックを読む
(現在の返信数: 8)