[XeTeX] Using pkgs bidi and enumitem together

John Was john.was at ntlworld.com
Wed May 23 19:47:05 CEST 2007


Hi

I hesitate to comment on XeTeX matters since I'm having quite serious 
problems getting started with the package, but I wonder if something could 
be done here simply by playing around with plain TeX's \parindent

We could have e.g. (#1 being the side-label and #2 being the entry):

\def\labelandentry#1#2{\setbox0=\hbox{#1}\parindent = \wd0
       \advance \parindent by 0.5em
       \noindent \copy0\par \nobreak \kern -\baselineskip \nobreak
       \indent #2\hangindent \parindent \par}

Then \labelandentry{Side text}{Text of the list}

should do the trick.   Or have I got it wrong?  Anyway, I hope something 
along these lines might work.  If it doesn't, maybe something could be done 
with \rightskip (or is it \leftskip in a right-to-left environment?).

The \parindent would have to be set to back to normal after the list, or 
else the whole list would have to appear between \begingroup and \endgroup

Now, I just have to figure out how to get XeTeX going properly in Windows 
(or give up and buy a Mac).

Best


John


----- Original Message ----- 
From: "Thomas Thackery" <tthackery at gmail.com>
To: "Unicode-based TeX for Mac OS X and other platforms" <xetex at tug.org>
Sent: Wednesday, May 23, 2007 5:51 PM
Subject: JunkEmail: [SPAM] Re: [XeTeX] Using pkgs bidi and enumitem together


François,

Thank you.  Unfortunately,  \setlength\labelwidth{-2em} and
addtolength\itemindent{-2em}  seem to cancel each other.  I removed
\setlength\labelwidth{-2em}  and just used addtolength\itemindent
{-2em} , but the text still wraps back to the margin instead of
aligning with the beginning of the other items.  The data is in tact,
yes, but aesthetically it leaves something to be desired.




--------------------------------------------------------------------------------



Thomas


On May 23, 2007, at 6:23 AM, François Charette wrote:


Thomas Thackery a écrit :
> 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.
See below.
>
> \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}
\addtolength\itemindent{-2em} % <<<<<< TRY THIS ;-)
> \setcounter{enumi}{0}
> \renewcommand\labelenumi{\LR{KAI 6:\theenumi}}
> \item {\hebfont ?? · ? ??? · ????? · ??? · ???
> · ???[??? · ??? · ???]}
> \item {\hebfont [??]??? · ??? · ???? · ???? ·
> [???? · ???]}
> \item {\hebfont [??? · ?]???? · ????? · ?? [???]
> [??? · ?]???? · ?????
> · ?? [???][??? · ?]???? · ????? · ?? [???]
> [??? · ?]???? · ????? · ??
> [???}
> \end{enumerate}
>
> \end{document}
Hope it helps.
FC

_______________________________________________
XeTeX mailing list
postmaster at tug.org
http://tug.org/mailman/listinfo/xetex




--------------------------------------------------------------------------------


> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
> 


More information about the XeTeX mailing list