summaryrefslogtreecommitdiff
path: root/language/japanese/platex-tools/pxeveryshi.tex
blob: 0c5e2e5e9f08304816c43e0ef063553a8bd16d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
%# -*- coding: utf-8 -*-
\ifx\epTeXinputencoding\undefined\else % defined in e-pTeX (> TL2016)
  \epTeXinputencoding utf8    % ensure utf-8 encoding for platex
\fi

\documentclass[a4paper]{jsarticle}
\usepackage{doc}
\usepackage{pxeveryshi}
\GetFileInfo{pxeveryshi.sty}
\title{Package \textsf{pxeveryshi} \fileversion}
\author{Takayuki Yato \& Hironobu Yamashita}
\date{\filedate}
\begin{document}

\maketitle

Package \textsf{everyshi}, written by Martin Schr\"oder,
cannot be used with Japanese classes for vertical writing
(tarticle.cls, etc). This behavior is not comfortable, since
\textsf{everyshi} is required by some other packages
(e.g. \textsf{tikz}) and causes an error:
\begin{verbatim}
  ! Incompatible direction list can't be unboxed.
\end{verbatim}
The package \textsf{pxeveryshi} provides a patch for \textsf{everyshi}
to work with both horizontal and vertical writing.

With \pLaTeXe~2020-10-01 or later, this package does
nothing because the \pLaTeXe\ itself handles the situation.
Therefore, you will not need this package at all.

This package is part of \textsf{platex-tools} bundle:
\begin{verbatim}
  https://github.com/aminophen/platex-tools
\end{verbatim}

\bigskip

Martin Schr\"oder氏による\textsf{everyshi}パッケージは、
p\LaTeX の縦組クラス(tarticle.clsなど)で使うとエラーが出てしまいます。
この挙動は、たとえば\textsf{tikz}のような内部で\textsf{everyshi}パッケージ
を必要とするパッケージを縦組で使用する際に問題になります。
この\textsf{pxeveryshi}パッケージを読み込むことで、縦組クラスでも
\textsf{everyshi}パッケージ(およびこれに依存するパッケージ)が
使えるようになります。

\LaTeXe~2020-10-01以降では、\textsf{everyshi}と同等の機能がカーネルに
実装されていて、その対処は\pLaTeXe{}カーネルでなされます。
この場合、\textsf{pxeveryshi}パッケージは何もしません。

\section{使いかた}

使いかたは、\textsf{everyshi}パッケージの代わりに、あるいは
\textsf{everyshi}パッケージに追加して、\textsf{pxeveryshi}パッケージを
読みこむだけです。使用例:
\begin{verbatim}
  \documentclass{tarticle}
  \usepackage[dvipdfmx]{graphicx}
  \usepackage{tikz}
  \usepackage{pxeveryshi}
  \begin{document}
  \begin{tikzpicture}
    \draw (0,0) -- (1,2);
  \end{tikzpicture}
  \end{document}
\end{verbatim}

\section*{References}

\begin{itemize}
\item tikz を縦書きで\\
  \texttt{https://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/56760.html}
\item Re: tikz を縦書きで\\
  \texttt{https://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/56761.html}
\end{itemize}

\end{document}