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

pdflatexでフォーマットエラー

- 浮亭 夢介 の投稿
W32TeXを最新(1/27)版に更新したところ,下記のpdflatexの
フォーマットエラーが発生しました.
(Fatal format file error; I'm stymied)

fmtutilで修正してもダメでした.対処方法よろしくお願いします.

縦書きにした場合の「,.」の表示

- Takeda Shiro の投稿
武田と申します。

W32TeX(以下のログのバージョン)で、tarticleクラスファイル+platex+dvipdfmxで縦書きの文書を作成した場合に、添付したファイル(check-tate-tarticle-platex.pdf)のように「,.」の句読点が横書きのものが利用されてしまいます。

This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.sjis) (TeX Live 2020/W32TeX) (preloaded format=platex 2021.1.10) 27 JAN 2021 22:08
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**check-tate-tarticle-platex.tex
(./check-tate-tarticle-platex.tex
pLaTeX2e <2020-10-01>+1 (based on LaTeX2e <2020-10-01> patch level 4)
L3 programming layer <2021-01-09> xparse <2020-03-03>
(g:/w32tex/share/texmf-dist/tex/platex/base/tarticle.cls
Document Class: tarticle 2020/09/30 v1.8f Standard pLaTeX class

同じファイルをtexlive 2020(以下のバージョン)で処理すると正常な表示になります(check-tate-tarticle-platex-texlive2020.pdf)

This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.sjis) (TeX Live 2020/W32TeX) (preloaded format=platex 2021.1.27) 27 JAN 2021 22:13
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**check-tate-tarticle-platex-texlive2020.tex
(./check-tate-tarticle-platex-texlive2020.tex
pLaTeX2e <2020-10-01>+1 (based on LaTeX2e <2020-10-01> patch level 4)
L3 programming layer <2021-01-09> xparse <2020-03-03>
(g:/texlive/2020/texmf-dist/tex/platex/base/tarticle.cls
Document Class: tarticle 2020/09/30 v1.8f Standard pLaTeX class

texlive 2020の方を利用すれば問題ないのですが、W32TeXの方は問題があるのでしょうか?どの部分の問題なのかよくわからないため、ここで質問させていただいています。

タイプセットできない

- Na Ta の投稿
どうしても解決できないのでお力添えお願いいたします。

先日新しいWindows PC(Windows 10 Home, 64-bit OS)にTeX Live 2020をインストールしました。

前のPCでタイプセットできていたものが新しいPCでできなくなって困っています。


以下、タイプセット時(upLaTex,(ptex2pdf))に出るエラーをペーストします。
前のPCではundefinedとは出なかったので原因がわかりません。
ご教授いただければ幸いです。

This is ptex2pdf[.lua] version 20200520.0.

Processing SAMPLETEX.tex

This is e-upTeX, Version 3.14159265-p3.8.3-u1.27-191112-2.6 (utf8.uptex) (TeX Live 2020/W32TeX) (preloaded format=uplatex)

restricted \write18 enabled.

entering extended mode

(./SAMPLETEX.tex

pLaTeX2e <2020-10-01u04>+1 (based on LaTeX2e <2020-10-01> patch level 4)

L3 programming layer <2021-01-09> xparse <2020-03-03>

(c:/w32tex/share/texmf-dist/tex/uplatex/base/ujarticle.cls

Document Class: ujarticle 2020/09/30 v1.8f-u00 Standard upLaTeX class

(c:/w32tex/share/texmf-dist/tex/uplatex/base/ujsize12.clo))

(c:/w32tex/share/texmf-dist/tex/latex/caption/subcaption.sty

(c:/w32tex/share/texmf-dist/tex/latex/caption/caption.sty

(c:/w32tex/share/texmf-dist/tex/latex/caption/caption3.sty

(c:/w32tex/share/texmf-dist/tex/latex/graphics/keyval.sty))


Package caption Warning: Unknown document class (or package),

(caption) standard defaults will be used.

See the caption package documentation for explanation.


)) (./graphicx.sty (c:/w32tex/share/texmf-dist/tex/latex/graphics/graphics.sty

(c:/w32tex/share/texmf-dist/tex/latex/graphics/trig.sty)

(c:/w32tex/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)

(c:/w32tex/share/texmf-dist/tex/latex/graphics-def/dvipdfmx.def))) (./tikz.sty

(./pgf.sty (./pgfrcs.sty

(c:/w32tex/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.tex)

) (./pgfutil-latex.def

(c:/w32tex/share/texmf-dist/tex/latex/base/everyshi-ltx.sty))

(c:/w32tex/share/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/pgf.revision.tex)))

(c:/w32tex/share/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty (./pgfsys.sty

(c:/w32tex/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex)

) (./pgf.cfg)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-dvipdfmx.def

(c:/w32tex/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def))

)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex

)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex

)) (c:/w32tex/share/texmf-dist/tex/latex/xcolor/xcolor.sty

(c:/w32tex/share/texmf-dist/tex/latex/graphics-cfg/color.cfg)

(c:/w32tex/share/texmf-dist/tex/latex/graphics-def/dvips.def))

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.te

x)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric

.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.t

ex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.co

de.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex

)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.te

x)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex

)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithm

etics.code.tex)))

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex))

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfint.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.cod

e.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.te

x)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code

.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.c

ode.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)


(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.co

de.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex

))

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code

.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex

) (c:/w32tex/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex)))

(c:/w32tex/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex)

(c:/w32tex/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.st

y)

(c:/w32tex/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.st

y)) (c:/w32tex/share/texmf-dist/tex/latex/pgf/utilities/pgffor.sty

(./pgfkeys.sty

(c:/w32tex/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex))

(c:/w32tex/share/texmf-dist/tex/latex/pgf/math/pgfmath.sty

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex))

(c:/w32tex/share/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)))

(c:/w32tex/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex

(c:/w32tex/share/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.co

de.tex)

(c:/w32tex/share/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex)


! Undefined control sequence.

l.2073 \pgfutil@protected


\def\tikz@signal@path{\tikz@signal@path}%

?



Windowsのパスを適切な位置で改行させる方法について

- ta ma の投稿
現在,WindowsのパスをLaTeXに書こうとしています.
しかし,PDFで出力した際に右側にはみ出してしまい,適切な位置での改行が行われず困っております.
現在は\url{}を用いてWindowsのパス(バックスラッシュで区切る形式)を入力しています.
改善方法,もしくは他の表現方法についてアドバイスしていただきたいです.

bblファイルにバックスラッシュが自動追加されエラーが発生する事象について

- ta ma の投稿
bblファイルにバックスラッシュが自動追加されエラーが発生する事象について質問させてください.

情報処理学会が公開しておりますLaTeXフォーマット(こちら)内に保存されているipsjunsrt.bstというファイルがあると思います.
こちらのbstファイルを用いてpbibtexでコンパイルをした際にエラーが発生しております.

# 環境
現在,jsreport形式のtexファイルとbibファイルを用いてpdfを作成しております.また,texファイルは複数あり,docmuteを使って分割しております.(今回の事象にはdocmuteによる影響はないと考えております)
また,コンパイルはptex2pdf->pbibtex->ptex2pdf->ptex2pdfで行っております.
環境は,TeXLive2020とWindows10,VSCodeで作業をしております.
texファイルはUTF-8で記述しております.

# 設定
現在,コンパイルしたいtexファイルにてipsjunsrt.bstを「\bibliographystyle{../ipsjunsrt}」のように相対パスで指定して読み込んでおります.
また,bibファイルも文中にて「\bibliography{../reference} 」のように相対パスで参照をしております.

# 状況
texファイル(仮にreport.texとします)をコンパイルをしたところ,1回目のptex2pdf,その後のpbibtexまでは順調にコンパイルができる一方で,その後のptex2pdfにてエラーが発生し,停止しております.

reference.bibは,以下の通り記述しております.
reference.bib###################
@book{key_ja,
author = "山田 太郎",
title = "ほげ",
publisher = "ふが出版社",
year = {2019}
}
@book{key_en,
author = {John Smith},
title = {English title},
PUBLISHER = {English publisher},
year = {2005}
}
###################
エラー内容としては,pbibtexにてコンパイルしたあとに自動生成されるbblファイルにある文字列のうち,日本語の参考文献項目のauthorのうしろにバックスラッシュがはいってしまいます.(以下のような形です.)
report.bbl###################
\bibitem{key_ja}
山田太郎\:ほげ,ふが出版社 (2019).
\bibitem{key_en}
John.S.: {\em English title}, English publisher
(2005).
######################
このように,太郎の後ろにバックスラッシュが入ることで,Undefined control sequenceのエラーが出て停止します.
この事象がすべての日本語で書かれた参考文献で発生しております.

# 試したこと
- \bibliographystyle{../ipsjunsrt}の代わりに\bibliographystyle{junsrt}を使用した際はこの事象は発生せず,正常にpdfが出力されました.
- \bibliographystyle{../ipsjunsrt}を使用時に参考文献が英語のものしか読み込まない場合はこのエラーが発生せず,正常にpdfが出力されました.

こちらの現象についての修正方法を教えて下さい.

lscapeなどを用いた表の回転について

- うさ まる の投稿
LaTexにて横長の表を書きたい場合に、はみ出してしまうため、表を回転させることを試みました。

回転させる方法としては、様々なネットの記事を参考にpdflscapeやrotatingというパッケージを読み込んで、begin{landscape}で表を書くといった方法を取ったのですが、パッケージを読み込む段階で、全く関係ない他のfigureが全てエラーを吐いてしましました。

使用環境はoverleaf、エラーと、使用しているパッケージを添付させていただきます。

解決方法、または代案がございましたらご教授いただけますと幸いです。
添付 スクリーンショット_2021-01-20_0.27.06.png

全角スペースから始まるverbatim環境でエラー

- 齊藤 年秀 の投稿
LuaLaTeX と jlreq の環境で,全角スペースから始まるverbatim環境でエラーになりました.upLaTeX ではエラーにならないようなので念のため,報告します.

% cat tmp.tex
\documentclass[a4paper]{jlreq}
\begin{document}
\begin{verbatim}
全角スペースから始まるverbatim環境でエラー.
\end{verbatim}
\end{document}

% lualatex ~/tmp
(中略)
ABD: EverySelectfont initializing macros
! Missing number, treated as zero.
<to be read again>
\ltj@reset@globaldefs
l.7 \end{verbatim}

?


% lualatex --version
This is LuaHBTeX, Version 1.12.0 (TeX Live 2020)

Execute 'luahbtex --credits' for credits and version details.

There is NO warranty. Redistribution of this software is covered by
the terms of the GNU General Public License, version 2 or (at your option)
any later version. For more information about these matters, see the file
named COPYING and the LuaTeX source.

LuaTeX is Copyright 2020 Taco Hoekwater and the LuaTeX Team.

ヒラギノフォントの埋め込みについて

- み ら の投稿
2週間ほど試行錯誤したのですが、
うまくいかないです。
以下のエラーがでない?ようにするには
どうすればよいかご教示願います。



MacOS Big Sur(11.1) 環境下で
otf.styを使うために、

\documentclass{jarticle}

\usepackage{otf}

\begin{document}

\ajMaru{1}

\ajMaru{51}

\end{document}

をコンパイルしたところ、
pdfファイルは
丸1は表示
丸51は表示されませんでした。

This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.euc) (TeX Live 2020) (preloaded format=platex)
\write18 enabled.
entering extended mode
(./test.tex
pLaTeX2e <2020-02-02>+3 (based on LaTeX2e <2020-02-02> patch level 5)
L3 programming layer <2020-03-06>
(/usr/local/texlive/2020/texmf-dist/tex/platex/base/jarticle.cls
Document Class: jarticle 2020/01/03 v1.8e Standard pLaTeX class
(/usr/local/texlive/2020/texmf-dist/tex/platex/base/jsize10.clo))
(/usr/local/texlive/2020/texmf-dist/tex/platex/japanese-otf-uptex/otf.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2020/texmf-dist/tex/platex/japanese-otf/ajmacros.sty))
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
(./test.aux) [1] (./test.aux) )
Output written on test.dvi (1 page, 408 bytes).
Transcript written on test.log.
test -> test.pdf
[1]
3767 bytes written



1. MacTeX.pkgをつかってインストール
2.ターミナル から
sudo tlmgr update --self --all
をすると、

~ % sudo tlmgr update --self --all

Password:

/Library/TeX/texbin/tlmgr: only MacOSX is supported, not darwin 11.1 (from sw_vers -productVersion: 11.1)

query_ctan_mirror: Programs not set up, trying wget

cannot contact mirror.ctan.org, returning a backbone server!

tlmgr: package repositories

main = http://mirror.ctan.org/systems/texlive/tlnet (not verified: gpg unavailable)

tlcontrib = http://contrib.texlive.info/current (not verified: gpg unavailable)

For more about verification, see https://texlive.info/verification.html.

tlmgr: saving backups to /usr/local/texlive/2020/tlpkg/backups

TLPDB::_install_package: unsupported container format xz

tlmgr: Installation of new version of texlive.infra failed, trying to unwind.

[1/1, ??:??/??:??] update: texlive.infra [423k] (54630 -> 57132@main) ... tlmgr: Restoring old package state succeeded.

done

tlmgr: action update returned an error; continuing.

tlmgr: package log updated: /usr/local/texlive/2020/texmf-var/web2c/tlmgr.log

tlmgr: An error has occurred. See above messages. Exiting.




となり、エラーが出てます。これが原因でしょうか?

何度か入れ直しているのですが、同じ結果です。



また、ヒラギノフォントの埋め込みのために無理矢理

sudo tlmgr repository add http://contrib.texlive.info/current tlcontrib

としましたが、当然エラーがでます。

LaTeXにおいてtwocolumnとした時のページ設定

- 齋藤 誠尚 の投稿
LaTeXにおいて
\documentclass[twocolumn, landscape]{jsarticle}
として, 紙面横向き二段組の設定にしているのですが,
二段組の左側を1ページ, 右側を2ページのようにページ設定を
したいです.
しかし, 中央の下側に通常通りページ数が出力されるだけで
上記のようなページに出力されません.
どのようにすれば, 左側と右側でページ数が出力されるのでしょうか.

PDF画像の取り込みについて

- Ryo Akasaka の投稿
いつもお世話になります.
最近 1 年半振りぐらいに TeX をアップデートしたところ,PDF 画像を取り込む箇所で以下の Warning が表示されるようになりました.

LaTeX Warning: File `CP0_T.pdf' not found on input line 853.

File: CP0_T.pdf Graphic file (type eps)
<CP0_T.pdf> [19]

Warning は出るものの,CP0_T.pdf は TeX ファイルと同じディレクトリに置いてありますので,
文書には PDF 画像が取り込まれて正常に作成されます.
ただ,Warning のところで処理が一瞬止まり,取り込む画像が多いので,
コンパイルに時間がかかってしまいます.

PDF ファイルを取り込む部分は以下のように書いております.

\begin{figure}[p]
\includegraphics[bb=0 0 346 325]{CP0_T.pdf}
%\includegraphics{CP0_T.eps}
\caption{Ideal-gas isobaric heat capacity ($c_p^\circ$) of {\YF}:
($\times$)~\CITEDATA{Hulse2009},
($\boxplus$)~\CITEDATA{Kano2010},
({\bf ---})~eq~\ref{eq_cp0}.} \label{fig_cp0}
\end{figure}


ログファイルを添付しております.
Warning が出ないようにする方法があればご教示下さい.
OS は Windows 10 です.
どうぞよろしくお願い致します.