arydshln使用? 未解決

投稿者: | 2026-02-12

(1) 単純な例:ノーエラー

\documentclass{jlreq}
\begin{document}
arydshln テスト

\begin{tabular}{cll}
\hline
0 & アイウエオ & かきくけこ \\ \hline
\end{tabular}
\end{document}

(2)  単純な例(縦罫線追加):ノーエラー

\documentclass{jlreq}
\begin{document}
arydshln テスト

\begin{tabular}{|c|l|l|}
\hline
0 & アイウエオ & かきくけこ \\ \hline
\end{tabular}
\end{document}

(3)エラー:\usepackage{asydshln}を追加

\documentclass{jlreq}
\usepackage{arydshln} % 点線を使えるように(\hdashline)
\begin{document}
arydshln テスト

\begin{tabular}{|c|l|l|}
\hline
0 & アイウエオ & かきくけこ \\ \hdashline
\end{tabular}
\end{document}

! LaTeX Error: \begin{tabular} on input line 6 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.

l.10 \end{document}

(4)結論:マニュアル4ページにあるように以下の順番で\usepackageを入れる

他のpackageを使わないので不用と考え「記入しない」と謎のエラーになる
———–
That is, the following is correct but reversing the order of \usepackage will cause some mysterious error.
———–
とのこと

\documentclass{jlreq}
\usepackage{array} % and/or
\usepackage{longtable} % and/or
\usepackage{colortab} % or
\usepackage{colortbl}
\usepackage{arydshln} % 点線を使えるように(\hdashline)
\begin{document}
arydshln テスト

\begin{tabular}{cll}
\hline
0 & アイウエオ & かきくけこ \\ \hdashline
\end{tabular}
\end{document}

(5)上記(4)でOKかと思ったけど縦罫線を入れようとするとエラー

\documentclass{jlreq}
\usepackage{array} % and/or
\usepackage{longtable} % and/or
\usepackage{colortab} % or
\usepackage{colortbl}
\usepackage{arydshln} % 点線を使えるように(\hdashline)
\begin{document}
arydshln テスト

\begin{tabular}{|cll|}   % <== 縦罫線を追加したらエラー
\hline
0 & アイウエオ & かきくけこ \\ \hline
\end{tabular}
\end{document}

! Undefined control sequence.
<argument> \adl@dashcolor

l.10 \begin{tabular}{|cll|}

カテゴリー: TeX