abenori / jlreq

Other
125 stars 18 forks source link

Open bracket position in list environment #96

Closed minamotorin closed 2 years ago

minamotorin commented 2 years ago

About

  1. In LuaLaTeX, open bracket position after label in list environment is incorrect.

~2. A position of open bracket at the beginning of label of itemize environment also seems to be wrong (even in (u)pLaTeX).~

I've only tested with the open_bracket_pos=zenkaku_tentsuki.

Environments

Open bracket position after label

Sample code:

% This program is in the public domain.
\documentclass[line_length=41zw]{jlreq}
\begin{document}

(□□□□
(□□□□
(□□□□
(□□□□
(□□□□
(□□□□
(□□□□
(□□□□
(□□□□
(□□□□
(□□□□
(□□□□

\noindent
□□□□□

\begin{itemize}
  \item (□□□□
  \item □□□□□
  \item[(□□□□]
  \item[□□□□□]
\end{itemize}

\end{document}

When compiling the above code with…

LuaLaTeX

LuaLaTeX

pLaTeX

pLaTeX

Related to #87?

https://github.com/abenori/jlreq/blob/1284baa26eb5bfb0778d9f56312b3b52d1a9a7c4/jlreq.cls#L892-L902

LuaLaTeX with jlreq 2021/05/28 (3a7010f)

3a7010f

LuaLaTeX with jlreq 2021/05/28 (669b1de)

669b1de

LuaLaTeX with jlreq 2021/07/25 (636073a)

 636073a

~Open bracket position of label~

~Sample code:~

% This program is in the public domain.
\documentclass{jlreq}
\begin{document}

\begin{description}
  \item[(□□□□]
  \item[□□□□□]
\end{description}

\begin{itemize}
  \item[(□□□□]
  \item[□□□□□]
\end{itemize}

\end{document}

~Open bracket position are difference between description environment and itemize environment.~

label

My all images of this issue are CC0.

Thanks.

minamotorin commented 2 years ago

Sorry, the cause of 2 was the label of itemize environment was right justified.

abenori commented 2 years ago

Thank you. I merged your pull request.

minamotorin commented 2 years ago

Thanks so much!