[XeTeX] Using pkgs bidi and enumitem together
François Charette
firmicus at ankabut.net
Tue May 22 17:00:32 CEST 2007
Dear Thomas,
I am not entirely sure to understand exactly what you want.
The problem with the left margin in your first example can apparently be
solved by adjusting the \labelwidth. I cannot reproduce the problem of
the label overlapping with the text in your second example though.
Try the following sample (and compare with the attachment). I guess the
first example might be what you want.
%---
\documentclass{article}
\usepackage{fontspec}
\usepackage{bidi}
\setromanfont{Charis SIL}
\newfontfamily\hebfont[Script=Hebrew]{Ezra SIL}
\begin{document}
\noindent\hrule
\newcommand{\hebitem}[1]{\item \RL{\hebfont #1}}
\setlength\labelwidth{-2em}
\begin{enumerate}
\setcounter{enumi}{0}
\renewcommand\labelenumi{KAI 6:\theenumi.}
\hebitem{מש · ז פעל · אלבעל · מלך · גבל · ביח[מלך · מלך · גבל]}
\hebitem{[לב]עלת · גבל · אדתו · תארך · [בעלת · גבל]}
\hebitem{[ימת · א]לבעל · ושנתו · על [גבל]}
\end{enumerate}
\noindent\hrule
\setRL
\begin{enumerate}
\setcounter{enumi}{0}
\renewcommand\labelenumi{\LR{KAI 6:\theenumi.}}
\item {\hebfont מש · ז פעל · אלבעל · מלך · גבל · ביח[מלך · מלך · גבל]}
\item {\hebfont [לב]עלת · גבל · אדתו · תארך · [בעלת · גבל]}
\item {\hebfont [ימת · א]לבעל · ושנתו · על [גבל]}
\end{enumerate}
\end{document}
%---
Met vriendelijke groeten,
François
Thomas Thackery a écrit :
> I need to number some items in Hebrew characters (for Phoenician), but
> I can't get the the \item prefix to cooperate with the content if I
> use the \setRL command from the bidi package (I am using pkg enumitem
> as well). The first example does not have \setRL applied (curiously,
> in the first example with no \setRL applied, the \labelenum intrudes
> into the left margin). In the second example, \setRL is applied and
> the custom \labelenum data is compromised.
>
> Groetjes,
> Thomas
>
> % TeX excerpt
>
> \begin{enumerate} \setRL
> \setcounter{enumi}{0}
> \renewcommand\labelenumi{KAI 6:\theenumi.}
> \item {\he מש · ז פעל · אלבעל · מלך · גבל · ביח[מלך · מלך · גבל]}
> \item {\he [לב]עלת · גבל · אדתו · תארך · [בעלת · גבל]}
> \item {\he [ימת · א]לבעל · ושנתו · על [גבל]}
> \end{enumerate}
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gkrellShoot_05-22-07_165547.jpg
Type: image/jpeg
Size: 51175 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070522/4a429b10/attachment-0001.jpg
More information about the XeTeX
mailing list