[XeTeX] Using pkgs bidi and enumitem together

Thomas Thackery tthackery at gmail.com
Tue May 22 23:48:21 CEST 2007


François,

Thank you, adding the \setlength\labelwidth{-2em} adds the spacing I  
needed.  Now, if the item's text is more than one line in length, it  
does not indent, but rather returns to underneath the label.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 2.png
Type: image/png
Size: 13466 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070522/439573af/attachment-0001.png 
-------------- next part --------------

\documentclass{article}
\usepackage{fontspec}
\usepackage{bidi}
\setromanfont{Charis SIL}
\newfontfamily\hebfont[Script=Hebrew]{Ezra SIL} %I used Lucida Grande  
due to the way vowels come out in other type faces.
\begin{document}

\setlength\labelwidth{-2em}

\setRL
\begin{enumerate}
\setcounter{enumi}{0}
\renewcommand\labelenumi{\LR{KAI 6:\theenumi}}
\item {\hebfont ?? · ? ??? · ????? · ??? · ???  
· ???[??? · ??? · ???]}
\item {\hebfont [??]??? · ??? · ???? · ???? ·  
[???? · ???]}
\item {\hebfont [??? · ?]???? · ????? · ?? [???] 
[??? · ?]???? · ????? · ?? [???][??? · ?] 
???? · ????? · ?? [???][??? · ?]???? ·  
????? · ?? [???}
\end{enumerate}

\end{document}


Thanks,
Thomas

~~~~~~~~~~~~~~

Thomas


On May 22, 2007, at 8:00 AM, François Charette wrote:


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
>

<gkrellShoot_05-22-07_165547.jpg>
_______________________________________________
XeTeX mailing list
postmaster at tug.org
http://tug.org/mailman/listinfo/xetex



More information about the XeTeX mailing list