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

白紙pdfが生成される

- niemand の投稿
TeXLive2022を使用していますが、9月末頃のupdate以降、

\documentclass[uplatex, 12pt]{jsarticle}
\usepackage[dvipdfmx]{hyperref}
\usepackage{pxjahyper}
\begin{document}
test
\end{document}

で白紙pdfが生成されるようになりました。

このソースで、
・文字サイズを10ptに変更(または削除)する
または
・\usepackage{pxjahyper} を削除する
と正常なpdfが生成されます。

なお、\usepackage[a4paper]{geometry} を追加した場合は文字サイズ指定を無視して(10pt?の) pdfが生成されます。

目次で「第〜章」と章タイトルの間の余白を減らす

- 佐藤 清 の投稿
jlreqを使っています。 目次で「第〜章」と章タイトルの間の余白が大きいので小さくしたいです。 今は\chapter[\hspace{-2em}タイトル]{タイトル}のようにしていますが、これだと各ページの隅にある「第〜章 タイトル」という表示でタイトルが左に寄りすぎます。 なお、経験上、外部パッケージを使うと何故か表示が崩れたりエラーになったりすることがあります。

jlreqで縦組時に、minipageの横組ができない

- 洋一郎 石川 の投稿
【環境】
Windows 10 Home 21H2
TeX Live 2022

【タイプセット】
LuaLaTeX

【症状】
クラスファイルにjlreqを使って縦組みをし、minipageを横組にすると以下のメッセージを吐いて停止します。
-----
! Missing number, treated as zero.

<
l.30 \begin{minipage}<
y>{160mm}
?
-----
組方向を指定しないときは、縦組みでPDFが作成できます。

ltjtarticleを指定すると、意図に近い出力になりますが、本文のフォント・用紙のサイズが指定したものになりません。

jlreqを使ってminipageを横組にするにはどうしたらよいでしょうか。
何かを指定し忘れていますでしょうか。ご教示をお願いいたします。

ソース、ログ、PDFをZIPに固めたものを添付いたします。

TeX Live 2022のインストールについて

- t bz の投稿
TeX Live 2022 をインストールして、次のファイル

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[dvipdfmx]{jarticle}
\begin{document}
abc
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

をタイプセットしたら、

tex! LaTeX Error: This file needs format `pLaTeX2e' but this is `LaTeX2e'

と表示されたので、下記サイト

https://texwiki.texjp.org/?TeXworks%2F%E8%A8%AD%E5%AE%9A#ycb12d64

の手順通りに「pLaTeX (ptex2pdf)」「pBibTeX」「mendex」を登録し、「pLaTeX (ptex2pdf)」で再びタイプセットしたところ、

This is ptex2pdf[.lua] version 20200520.0.
File cannot be found with kpathsea: -l
-ot
-kanji=utf8 -synctex=1
untitled-1.tex[.tex, .ltx]

と表示されます。

対処法をご教示いただけないでしょうか?

今までできたLatexのコードができなくなりました。

- popo stream の投稿

3週間前に作ったコードがあり、その時が問題なく実行できたのですが、今日やってみたところ下の様なエラーが出てしまい実行できませんでした。

最近emathwikiが更新されて、古い方のemathwikiから設備をしたのでその影響でしょうか?

改善する方法がありましたらよろしくお願いします。

pLaTeX(ptex2pdf)で実行しました。

下が実行したときのエラーメッセージです。

This is ptex2pdf[.lua] version 20200520.0.

Processing        Q u.tex

This is e-pTeX, Version 3.141592653-p4.0.0-220214-2.6 (utf8.sjis) (TeX Live 2022) (preloaded format=platex)

restricted \write18 enabled.

entering extended mode

(./数列第2講.tex

pLaTeX2e <2021-11-15> (based on LaTeX2e <2022-06-01> patch level 5)

L3 programming layer <2022-07-15>

 

! LaTeX Error: File `jsarticle.cls' not found.

 

Type X to quit or <RETURN> to proceed,

or enter new name. (Default extension: cls)

 

Enter file name:


頭文字を太文字にするマクロについて

- 伊藤 直人 の投稿

現在,以下のようなソースにおいて頭文字の部分を手動で太文字にしていますがそれを自動化するマクロを組むことは可能でしょうか。TeX/LaTeXのマクロについて解説しているサイトをいろいろ見てみましたが自分ではどうマクロ組めばいいのか分かりませんでした。

\documentclass{jlreq}
\begin{document}
    JSTは,\textbf{J}apan \textbf{S}tandard \textbf{T}ime の頭文字をとったものです。

    JIS(\textbf{J}apanese \textbf{I}ndustrial \textbf{S}tandards)とは,我が国の産業標準化の促進を目的とする産業標準化法(昭和24年法律第185号。以下単に「法」という。)に基づき制定される任意の国家規格です。 
\end{document}

想定している動作

想定している動作は,次のようなものです:

JSTは,\kasiramozi{Japan Standard Time}の頭文字をとったものです。と入力すると上の一段落目と同様の結果が得られる。

もちろん,この方法が難しいということであれば,例えば\kasiramoziコマンド中の単語の数を引数に取るというようなものでも構いません。

よろしくお願いします。

添付 スクリーンショット 2022-10-10 11.23.24.png

以前正常だった、目次がおかしくなりました

- mr2h の投稿
2年ほど前に、自分で作成した縦書書籍で、正常に動作していたのですが、本日再コンパイルしたところ、目次の部分が正常に表示されなくなりました。 環境は、 Win10 Pro最新版、texlive2022最新update済み、原稿tex file のプリアンブルに書いてあるような設定したものです。 原稿tex file を切り取った最初の部分を添付します。多分わかっている方からみたら、ごく初歩的な問題だろうと、思いますが、私にとっては原因と対策が不明で困った問題です。help me! 目次の『杜甫私記』はよいのですが、次の『自序』のまえに余計なsectionが表示され、ページ数との間に点々・・・・・が表示されません。

bxjsarticleにおけるmktextfmエラー

- texer の投稿

pdfLaTeXを使用してbxjsarticleクラスの文書を作成しようとすると以下のエラーが出力されます。


類似のエラー出力を探すと、「texlive-fonts-recommended」をインストールするという対処法がありましたが、そちらでは解消されませんでした。


以下に示しているコードは、エラーが発生しているコードを抜粋したものです。

こちらをコンパイルしようとすると別のエラー(! Missing $ inserted.)が発生してしまいますが、構造としては大きく違いはないものと思っています。


試しに抜粋元コードで「\three」の部分を英数字や「日本」に置き換えた場合は正常に実行が終了しますが、「国」に置き換えた場合は同様のエラーが発生します。


CJK関連のエラーではないかと考えていますが、解決の糸口が見えてこないのでご助力いただきたいです。


エラー出力の内容:

------------------------------------------------------------------------------------------

kpathsea: Running mktextfm ipxm-r-u56sat

mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input ipxm-r-u56sat

This is METAFONT, Version 2.71828182 (TeX Live 2022/dev/Debian) (preloaded base=mf)



kpathsea: Running mktexmf ipxm-r-u56sat

! I can't find file `ipxm-r-u56sat'.

<*> ... mag:=1; ; nonstopmode; input ipxm-r-u56sat


Please type another input file name

! Emergency stop.

<*> ... mag:=1; ; nonstopmode; input ipxm-r-u56sat


Transcript written on mfput.log.

grep: ipxm-r-u56sat.log: No such file or directory

mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input ipxm-r-u56sat' failed to make ipxm-r-u56sat.tfm.

kpathsea: Appending font creation commands to missfont.log.

! Font C70/mc/m/n/10/56=ipxm-r-u56sat not loadable: Metric (TFM) file not found

.

<to be read again>

                   9

l.173 \end{document}


?

! pdfTeX error (font): invalid font identifier.

\font@name ->\C70/mc/m/n/10/56


l.173 \end{document}


!  ==> Fatal error occurred, no output PDF file produced!

------------------------------------------------------------------------------------------


バージョン:

------------------------------------------------------------------------------------------

$ pdflatex -v

pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)

kpathsea version 6.3.4/dev

Copyright 2021 Han The Thanh (pdfTeX) et al.

There is NO warranty.  Redistribution of this software is

covered by the terms of both the pdfTeX copyright and

the Lesser GNU General Public License.

For more information about these matters, see the file

named COPYING and the pdfTeX source.

Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.

Compiled with libpng 1.6.37; using libpng 1.6.37

Compiled with zlib 1.2.11; using zlib 1.2.11

Compiled with xpdf version 4.03

------------------------------------------------------------------------------------------


抜粋コード:

------------------------------------------------------------------------------------------

% test.tex

\documentclass[pdflatex,b5j,ja=standard]{bxjsarticle}

\usepackage{graphicx}


\usepackage{test}


\begin{document}

  test

\end{document}

------------------------------------------------------------------------------------------

% test.sty

\def\width{182}

\def\height{257}

\def\rwidth{100}

\def\rheight{8}

\def\ROOT@X{0}

\def\ROOT@Y{0}


\def\@list{

  A:B:C:,

  D:E:F:,

  G:H:I:

}


{\catcode`\p=12\catcode`\t=12\gdef\num#1pt{#1}}

\newdimen\result

\def\Add#1#2#3{\result=#1pt \advance\result by #2pt

\edef#3{\expandafter\num\the\result}

}


\def\SetPos(#1,#2)#3{

\Add{#1}\ROOT@X\root@x

\Add{#2}\ROOT@Y\root@y

        {#3}

}

\def\Put(#1,#2)#3{

\Add\root@x{#1}\xpos

\Add\root@y{#2}\ypos

\Sub\height\ypos\ypos

\put(\xpos,\ypos){#3}

}


\def\disassemble#1:#2:#3:{

\def\one{#1}\def\two{#2}\def\three{#3}

}


\def\write#1{

\@for\linebuf:=#1\do{

\expandafter\disassemble\linebuf

\Put(0,\offset){\makebox(\rwidth,\rheight)[c]{\normalsize \three\hspace{20mm}}}

\Add\offset{\rheight}\offset

}

}


\let\enddocumentorg=\enddocument

\def\enddocument{

  \writepages

  \enddocumentorg

}


\def\writepages{

  \def\ROOT@X{10}

  \def\ROOT@Y{10}

  \begin{picture}(\width,\height)

  \SetPos(0,0) {

    \def\offset{20}

    \write\@list

  }

  \end{picture}

}

------------------------------------------------------------------------------------------

ceo.styとtikzmathの衝突(?)について

- 優樹 金澤 の投稿

三角形に外接する円を出力しようとして,以下のようなコードを入力した結果,「line 17 ! Argument of \B has an extra }.」というエラーが出てしまいます.ceo.styをuseしなければ,コンパイルは通りますが,それはなるべく避けたいです.どなたかお知恵を拝借出来ればと思います.よろしくお願いいたします.


\documentclass[a4paper,10pt,dvipdfmx]{jsarticle}

\usepackage{amsmath}

\usepackage{ceo}

\usepackage{tikz}

\usetikzlibrary{math,calc}

\begin{document}


\begin{tikzpicture}[scale=1]

\tikzmath{

  \a = 7; %底辺の長さ

  \b = 5; %右側の辺の長さ

  \c = 8; %左側の辺の長さ

  \A = acos((\b^2+\c^2-\a^2)/(2*\b*\c));

  \B = acos((\c^2+\a^2-\b^2)/(2*\c*\a));

  \C = acos((\a^2+\b^2-\c^2)/(2*\a*\b));

  \R = \a/(2*sin(\A));

}

\coordinate (B) at (0,0);

\coordinate (A) at (\B:\c);

\coordinate (C) at (0:\a);

\coordinate[label=above:O] (O) at (90-\A:\R);

\draw (O) circle[radius=\R];

\draw[thick] (A)--(B)--(C)--cycle;

\draw[dashed,very thin]

(B) to[bend right=20] node[fill=white,midway]{$\a$} (C)

(C) to[bend right=20] node[fill=white,midway]{$\b$} (A)

(A) to[bend right=20] node[fill=white,midway]{$\c$} (B);

\fill (O) circle[radius=2pt];

\foreach \P in{A,B,C} \draw ($(O)!11/10!(\P)$) node{\P};

\end{tikzpicture}


\end{document}

タイプセットエラー追加

- ueki ichiro の投稿

書き落としましたが、プリアンブルは以下の通りです。

\documentclass[12pt,onecolumn,a4paper]{jsarticle}

\setlength{\textwidth}{42zw}

\setlength{\oddsidemargin}{0cm}

\setlength{\topmargin}{-2cm}

\setlength{\textheight}{21cm}

\begin{document}

   植木