質問用フォーラムです。ご質問の前に質問のしかたをご覧ください。

ソースコードでUTF-8のBOM付きと不付きについて

- 浮亭 夢介 の投稿

UTF-8のBOM付きと不付きの2つのソースファイルを作成し
eplatex -kanji=utf8 file[.tex]
としてコンパイルすると両方ともOKでした.
因みにUnicode(BE) と (LE) についても実験しました.
こちらはコンパイル中断となりました.
Unicode と UCS については奥深いもおがあるようで混乱します.

さて,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文書でも同じでした。四日間あれこれやってみましたがうまく行きません。どなたか解決策をお教えください。

宜しくお願い致します。

TeXインストーラ 3でTEXをインストールしましたがGhost scriptを起動すると、

- 松木 和樹 の投稿

This software comes with NO WARRANTY
と表示され、
Use Windows TrueType fonts for Chinese, Japanese and Korean
というチェックボックスがありません。

どうすればいいんでしょ?

柱とノンブル関連です。

- 匿名 希望 の投稿
初めての投稿で不手際がありましたらご容赦ください。
こちらでお聞きしたいことが二つあります。
自分はjsbookにおいて文章を作成しており、この状況で柱とノンブルのページ番号を一緒にまとめて表示する方法はありますでしょうか?
過去のFAQにおいて似たような件があるにはあるのですが・・・・

http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/34531.html
この結果を利用してみたも、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)
添付 Screen_shot_2010-12-21_at_14.19.28.png

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を入れれば解決すると思うのですが,インストールの過程でどこか問題となるところがあったのでしょうか?よろしくお願いします.

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.

w32texの圧縮拡張子が.tarのまま?

- 浮亭 夢介 の投稿

最新版を一部ダウンロードしました.

たとえば,platex.tar.xzですが実際はplatex.tar.tarとなっています.

とりあえず,platex.tar.xzにリネームして解凍しました.

ご確認ください.

imgTeXをWindowsで利用したい

- 匿 名 の投稿
imgTeXという中丸さんが作られた、HTMLファイルに埋め込んだTeXソースを画像にしてくれる環境を、Windowsで利用したいと思っています。
しかし、なかなかうまくいかないので、皆様のご助言を頂けたらと思い、投稿致しました。




環境:
Windows Vista Home Premium Service Pack 2
W32TeX(2009年9月1日時点で最新版をフルインストール)
Perl 5.10.1
Apache 2.2.13
dvipng 1.12
mod_fastcgi-2.4.6-AP22.dll




現在の状況:
(1)ドキュメントルート直下のHTMLファイル内に
<img src="http://localhost/cgi-bin/imgtex.fcgi?{\[ f(x) \]}"/>
と書き、ブラウザでそのHTMLファイルにアクセスするとInternal Server Errorが返ってくる。

(2)FastCGIは動作している(と自分では思っている。test.cgiをcgi-binフォルダ内に置き、ブラウザでtest.cgiにアクセスしてログを解析すると、serverのところに「mod_fastcgi/2.4.6」と記録されているので)。




今回の為に設定した事:
(1)FastCGIを有効にする為のApacheのhttpd.confファイルを編集した
(2)cgi-binフォルダ内にpreverr.pngとimgtex_fcgi.txtをリネームしたimgtex.fcgiを置いた
(3)cgi-binフォルダ内に作業用フォルダとしてimgtexworkフォルダを置いた



HTTPステータスコードが500なので、CGIの設定がうまくいっていない事が一番怪しいのではないかと思っています。CGIに慣れていないので、その時点でダメなのかもしれません。その場合、TeXには関係の無い投稿となってしまいますが、何かお気づきの点がありましたらお返事頂けると幸いです。




ちなみに、Ubuntu9.04でimgTeX環境を構築したら、30分ほどで簡単に出来てしまいました。そもそも、imgTeXはWindowsでは利用できないなどあるのでしょうか・・・?




参考にさせて頂いているサイトがいくつかあるのですが、そのURLをここに貼るのはマナー違反になりますでしょうか?それともサイトの管理者の判断に依るものでしょうか?

W32TeX の圧縮方式の XZ への変更提案

- 匿 名 の投稿
角藤先生に提案いたします。次回更新分の電子ファイルから順に、W32TeX の圧縮方式を bzip2 (*.bz2) から XZ (*.xz) へ変更してはいかがでしょうか? 使用させていただく側としては、ファイルの容量が減るのでダウンロードに費やす時間が少なくなると考えます(ただしインストール、すなわちファイルの展開に費やす時間は増えてしまいますが)。