ご質問はこちらへ
引数内の空白を認識
bxjsarticle(xelatex)でエラー
========================
\documentclass[xelatex,a4paper,10pt,ja=standard]{bxjsarticle}
\begin{document}
あああああ
\end{document}
========================
! LaTeX Error: File `ctexhook.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name: ^Z
! Undefined control sequence.
l.106 \ctex_at_end_preamble:n
{ \xeCJK@document@left@hook }
----> texmf-dist/tex/xelatex/xecjk/xeCJK.styを見ると,
l.104 \RequirePackage { ctexhook }
l.105 \AtBeginDocument
久しぶりに bxjsarticle を使って見たところ,上記のエラーメッセージが出ました.
以前にはなかったエラーメッセージのような...
取敢えず,ctexhook.styをインストールしたら直りました.
原因は ctexパッケージが未インストールだったらでしょうか.
zxjatype の和文に ulem の打ち消し線が使えない
Ubuntu 18.04でTeX Live 2020 を使っています
beamerでスライドを作る際に, zxjatypeパッケージで和文を表示させXeLaTeXで処理しようとしたのですが, 以下のようなエラーが表示されました. zxjatype と ulem を併用するにはどうすればよいでしょう?
! Missing } inserted.
<inserted text>
}
l.11 \end{frame}
具体的には以下のようなtexファイルです.
\documentclass{beamer}
\usepackage[normalem]{ulem}
\usepackage{zxjatype}
\setjamainfont{Noto Serif CJK JP}
\begin{document}
\begin{frame}{}
\sout{strikethrough}\\
\sout{打ち消し線}
\end{frame}
\end{document}
バージョン・リビジョンは
- beamer: ver. 3.58 r55046
- zxjatype: ver. 0.7 r53500
- ulem: r53365
- XeTeX 3.14159265-2.6-0.999992
です. tlmgr で最新にアップデートしています
- 欧文と和文の順序を変えても同じエラーがでました
- 欧文だけならばエラーは発生しません
- zxjatypeの読み込みとフォントの設定をコメントアウトすればpdfは生成され, 打ち消し線も表示されます (文字は表示されませんが)
- frame環境を消すと, 以下のようなエラーになります
! Improper \prevdepth.
\newpage ...everypar {}\fi \par \ifdim \prevdepth
>\z@ \vskip -\ifdim \prevd...
l.10 \end{document}
参考までに: BXjsclsでもエラーが発生しました. こちらはzxjatypeを使わなくとも, 和文に打ち消し線を適用すると2つ目と同様のエラーが発生しました
BXjsclsかまたは zxjatype と ulem の打ち消し線を組み合わせたものをXeLaTeXで処理したときだけエラーが起こるようです. (pLaTeXやLuaLateXでは問題なくulemを使用できます)
破線を飾罫にしたいのですが。
破線を飾罫にしたいのですが。うまくいきません。
\documentclass[dvipdfmx,graphicx]{jarticle}
\usepackage{tcolorbox}
\tcbuselibrary{breakable}
\tcbuselibrary{skins}
\begin{document}
\begin{tcolorbox}[breakable,
enhanced,
borderline=
{.5mm}
{0pt}
{dashed,
black!60,
dash pattern={on 4mm off 2mm}},
colback=gray!10,
colframe=white]
あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ
あああああああああああああああ
\end{tcolorbox}
\end{document}
ご教示頂ければ幸いです。
スタイルファイルを作ってみたのですが。
\NeedsTeXFormat{LaTeX2e}%
\ProvidesFile{%
utiyama%
.sty%
}%
\def\@makechapterhead#1{
{\parindent=0pt \normalfont\Huge\headfont
{\color [gray]{0.5}\rule[-0.5zw]{2zw}{1.8zw}}
\if@mainmatter
\hspace {-2zw}\raisebox{0.1zw}{
\makebox [2zw]{\color[gray]{1}\huge\headfont\thechapter}}
\fi
\hspace {0.5zw}#1\par\nobreak
\vskip 15mm}}
\renewcommand{\section}{
\@startsection{section}{1}{0mm}
{5mm plus 2mm minus 1mm}
{3mm plus 1mm}
{\normalfont\Large\headfont
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle (0,0);
\fill [black!50] (0,-4pt) rectangle (8pt,12pt);
\draw [black!50,line width=1pt] (0,-4pt) -- (\linewidth,-4pt);
\end{tikzpicture}
\hspace{1zw}}}
dvipdfmxでpdf化できない
\documentclass[dvipdfmx]{jsarticle}
\usepackage{emathP}
\begin{document}
\begin{zahyou}[ul=4mm,haiti=t](-6,6)(-6,6)
\kousifill<linethickness=.4pt,hasenLG={2pt,2.5pt}>
\xMemori{5}
\xMemori{-5}
\yMemori{5}
\yMemori{-5}
\end{zahyou}
\end{document}
をタイプセットしてできた200704072439.dvi(添付したもの)を
dvipdfmxでpdf化しようとすると
dvipdfmx.exe 200704072439.dvi ...
200704072439.dvi -> 200704072439.pdf
[1
dvipdfmx:fatal: Invalid resource ID: 0
No output PDF file written.
というエラーが生じるようになりました。
「dviをdvioutでの表示」は期待通りになります。