abenori / jlreq

Other
125 stars 18 forks source link

itemizeのbulletが中央からずれる #88

Closed okumuralab closed 1 year ago

okumuralab commented 3 years ago

(まちがえたので↓参照)

okumuralab commented 3 years ago

縦書きのitemizeのbulletが左にずれているように見えます。

itemize

\documentclass[tate]{jlreq}
\begin{document}

□□□□
\begin{itemize}
\item □□
\item □□
\end{itemize}
□□□□

\end{document}
abenori commented 3 years ago

\textbulletが左にずれているように見えます.こういうものでしたっけ?

\documentclass{tarticle}
\begin{document}
あ\textbullet あ
\end{document}

image

okumuralab commented 3 years ago

縦中横にすれば左右中央に来るんですが。

bullet

\documentclass[tate]{jlreq}
\begin{document}

□□\textbullet □□

□□\tatechuyoko{\textbullet}□□

\end{document}
abenori commented 3 years ago

縦幅違うの何でだろう?

okumuralab commented 3 years ago
\fboxsep=0pt
\fbox{\textbullet}

でわかるように,高さより横幅が広いから?

okumuralab commented 3 years ago

\textbullet の代わりに \tatechuyoko{\textbullet} としたりして試してみましたが,結局

%\newcommand{\labelitemi}{•}

を生かすのがいいように思えてきました。

abenori commented 3 years ago

変わらなくないですか?

abenori commented 3 years ago

だんだん横書きも気になってきた(これはjsclassesも同じですが)のですがどうなんでしょうか?

\documentclass{jlreq}
\begin{document}
\begin{itemize}
\item □□□
\end{itemize}
\end{document}

tex

okumuralab commented 3 years ago

横書きの場合はあまり気にならなかったのはなぜなんでしょうね。

\documentclass{jlreq}
% \documentclass[tate]{jlreq}
\renewcommand{\labelitemi}{•}
\begin{document}

□□□□
\begin{itemize}
\item □□□□
\item □□□□
\end{itemize}
□□□□

\end{document}

2 1

okumuralab commented 3 years ago

美文書p.52

image

abenori commented 3 years ago

横書きも気になり出すと気になって来ちゃいました.今更ですが.

%#!platex --kanji=utf8 --no-guess-input-enc
\documentclass{jlreq}
\renewcommand{\labelitemi}{•}
\begin{document}
\begin{itemize}
\item □□□
\end{itemize}
\end{document}

tex

エンジンで変わるみたい?

okumuralab commented 3 years ago

ほんとだ! platexだと沈みますね。lualatexでやっていたので気づかなかった。

okumuralab commented 3 years ago

U+2022 BULLET が全角か欧文かはエンジンによって違う?

abenori commented 3 years ago

確かに欧文扱いにしたらlualatexでもずれました.

%#!lualatex
\documentclass{jlreq}
\ltjsetparameter{jacharrange={-1, +2, +3, -4, -5, +6, +7, -8, -9}}
\renewcommand{\labelitemi}{\hbox to 1\zw{\hss •\hss}}
\begin{document}
\begin{itemize}
\item □□□
\end{itemize}
\end{document}

tex

うーん,とりあえず\tatechuyoko\textbulletを囲むので手をうちましょうか.lualatexならば\newcommand{\labelitemi}{•}の方がよさそうですが,エンジンごとに明らかに結果が変わるのもなぁという気がするので.

okumuralab commented 3 years ago

ですねー。あまり良い考えが浮かびません。

abenori commented 3 years ago

とりあえずそうしてみました. 8c40569 よりよさそうなのが見つかったら教えてください.

okumuralab commented 3 years ago

ありがとうございます!

takotakot commented 3 years ago

横書きの場合はあまり気にならなかったのは、英小文字は下に寄っているものが多く、下にずれても違和感がないというのはあるかもしれません。opdq の横あたりに見えるのではないでしょうか。