Le 06/05/2010 01:18, Vafa Khalighi a écrit :
You do not say what version of bidi package you use? If you use a recent version of bidi package, you should have no problem with tikz and subfigure packages. You also do not say exactly what is the problem? I am now the maintainer of subfig package, so any problem with subfig package can be reported to me.

--
Best wishes,
Vafa Khalighi




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
   http://tug.org/mailman/listinfo/xetex
Excuse me,
I'm using TeXLive2009 on WinXP SP3 with:
-  bidi 17905(v1.0.9)
- subfig 15878(v1.3)
- XeTeX, v3.1415926-2.2-0.9995.2

In my sample code, TikZ figure is generated just in a Left-To-Right subfig (the first figure), and is missing from the Right-To-Left subfig (second figure). (I opened the generated pdf with Acrobat Reader v9.3 and with Sumatra PDF v1.0.1)

Thanks

Hadi
\documentclass[12pt, a4paper]{article}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage[no-math]{fontspec}
\usepackage{subfig}
\usepackage{xunicode}
\usepackage[quiet]{polyglossia}
\usepackage{bidi}
\setdefaultlanguage[variant=british]{english}
\setromanfont{Times New Roman}
\defaultfontfeatures{Scale=MatchLowercase}
\setmonofont{Arial}
\setsansfont{Courier New}

\begin{document}

\setLR
a figure in an Left-To-Right environment
\begin{figure}[htbp]
    \centering
    \subfloat[first]{%
        \begin{tikzpicture}[scale=1]
            \draw [line width=1.25pt] (0,0) +(0,1.2) -- +(1.9,1.2) --
                +(2.1, 0.7) -- +(3.9,0.7) -- +(4.1,0.2) -- +(5,0.2);
        \end{tikzpicture}
    } \qquad
    \subfloat[second]{boston}
\end{figure}


\newpage
and a figure in an Right-to-Left environment
\setRL
\begin{figure}[htbp]
    \centering
    \subfloat[first]{%
        \begin{tikzpicture}[scale=1]
            \draw [line width=1.25pt] (0,0) +(0,1.2) -- +(1.9,1.2) --
                +(2.1, 0.7) -- +(3.9,0.7) -- +(4.1,0.2) -- +(5,0.2);
            \end{tikzpicture}
        } \qquad
        \subfloat[second]{boston}
    \end{figure}
\end{document} 

Attachment: aa.pdf
Description: Adobe PDF document


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to