<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">From the log file:<br><br>This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012) (format=xelatex 2013.6.6)  12 JUN 2013 20:05<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/base/book.cls<br>Document Class: book 2007/10/19 v1.4h Standard LaTeX document class<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/hyperref.sty<br>Package: hyperref 2012/11/06 v6.83m Hypertext links for LaTeX<br><br>(/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty<br>Package: hobsub-hyperref 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)<br><br><br>(/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty<br>Package: hobsub-generic 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)<br>Package: hobsub 2012/05/28 v1.13 Construct package bundles (HO)<br>Package: infwarerr
 2010/04/08 v1.3 Providing info/warning/error messages (HO)<br>Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)<br>Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)<br>Package ifluatex Info: LuaTeX not detected.<br>Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO)<br>Package ifvtex Info: VTeX not detected.<br>Package: intcalc 2007/09/27 v1.1 Expandable calculations with integers (HO)<br>Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)<br>Package ifpdf Info: pdfTeX in PDF mode is not detected.<br>Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)<br>Package etexcmds Info: Could not find \expanded.<br>(etexcmds)             That can mean that you are not using pdfTeX 1.50 or<br>(etexcmds)             that some package has redefined
 \expanded.<br>(etexcmds)             In the latter case, load this package earlier.<br>Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)<br>Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)<br>Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO<br>)<br>Package pdftexcmds Info: LuaTeX not detected.<br>Package pdftexcmds Info: pdfTeX >= 1.30 not detected.<br>Package pdftexcmds Info: \pdf@primitive is available.<br>Package pdftexcmds Info: \pdf@ifprimitive is available.<br>Package pdftexcmds Info: \pdfdraftmode not found.<br>Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)<br>Package: bigintcalc 2012/04/08 v1.3 Expandable calculations on big integers (HO<br>)<br>Package: bitset 2011/01/30 v1.1 Handle bit-vector datatype (HO)<br>Package: uniquecounter 2011/01/30 v1.2 Provide unlimited unique counter (HO)<br>)<br>Package hobsub
 Info: Skipping package `hobsub' (already loaded).<br>Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)<br>Package: hopatch 2012/05/28 v1.2 Wrapper for package hooks (HO)<br>Package: xcolor-patch 2011/01/30 xcolor patch<br>Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO)<br>Package atveryend Info: \enddocument detected (standard20110627).<br>Package: atbegshi 2011/10/05 v1.16 At begin shipout hook (HO)<br>Package: refcount 2011/10/16 v3.4 Data extraction from label references (HO)<br>Package: hycolor 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty<br>Package: keyval 1999/03/16 v1.13 key=value parser (DPC)<br>\KV@toks@=\toks14<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/generic/ifxetex/ifxetex.sty<br>Package: ifxetex 2010/09/12 v0.6 Provides ifxetex
 conditional<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/auxhook.sty<br>Package: auxhook 2011/03/04 v1.3 Hooks for auxiliary files (HO)<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/kvoptions.sty<br>Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)<br>)<br>\@linkdim=\dimen103<br>\Hy@linkcounter=\count89<br>\Hy@pagecounter=\count90<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/pd1enc.def<br>File: pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)<br>)<br>\Hy@SavedSpaceFactor=\count91<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/hyperref.cfg<br>File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive<br>)<br>Package hyperref Info: Hyper figures OFF on input line 4443.<br>Package hyperref Info: Link nesting OFF on input line 4448.<br>Package hyperref Info: Hyper index ON on input line 4451.<br>Package hyperref Info: Plain pages
 OFF on input line 4458.<br>Package hyperref Info: Backreferencing OFF on input line 4463.<br>Package hyperref Info: Implicit mode ON; LaTeX internals redefined.<br>Package hyperref Info: Bookmarks ON on input line 4688.<br>\c@Hy@tempcnt=\count92<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/url/url.sty<br>\Urlmuskip=\muskip10<br>Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.<br>)<br>LaTeX Info: Redefining \url on input line 5041.<br>\XeTeXLinkMargin=\dimen104<br>\Fld@menulength=\count93<br>\Field@Width=\dimen105<br>\Fld@charsize=\dimen106<br>Package hyperref Info: Hyper figures OFF on input line 6295.<br>Package hyperref Info: Link nesting OFF on input line 6300.<br>Package hyperref Info: Hyper index ON on input line 6303.<br>Package hyperref Info: backreferencing OFF on input line 6310.<br>Package hyperref Info: Link coloring OFF on input line 6315.<br>Package hyperref Info: Link coloring with OCG OFF on input line
 6320.<br>Package hyperref Info: PDF/A mode OFF on input line 6325.<br>LaTeX Info: Redefining \ref on input line 6365.<br>LaTeX Info: Redefining \pageref on input line 6369.<br>\Hy@abspage=\count94<br>\c@Item=\count95<br>\c@Hfootnote=\count96<br>)<br><br>Package hyperref Message: Driver (autodetected): hxetex.<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/hxetex.def<br>File: hxetex.def 2012/11/06 v6.83m Hyperref driver for XeTeX<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/puenc.def<br>File: puenc.def 2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO)<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/stringenc.sty<br>Package: stringenc 2011/12/02 v1.10 Convert strings between diff. encodings
 (HO<br>)<br>)<br>\pdfm@box=\box26<br>\c@Hy@AnnotLevel=\count97<br>\HyField@AnnotCount=\count98<br>\Fld@listcount=\count99<br>\c@bookmark@seq@number=\count100<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty<br>Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)<br>Package rerunfilecheck Info: Feature \pdfmdfivesum is not available<br>(rerunfilecheck)             (e.g. pdfTeX or LuaTeX with package `pdftexcmds').<br><br>(rerunfilecheck)             Therefore file contents cannot be checked efficien<br>tly<br>(rerunfilecheck)             and the loading of the package is
 aborted.<br>)<br>\Hy@SectionHShift=\skip43<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/xwatermark/xwatermark.sty<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/catoptions/catoptions.sty<br>\m@one=\count101<br>\z@pt=\dimen107<br>Package: catoptions 2012/11/22 v0.2.7f Securing catcodes and parsing options (A<br>M)<br>\cpt@csvdepth=\count102<br>\cpt@optdepth=\count103<br>\cpt@cnta=\count104<br>\indrisdepth=\count105<br>\cpt@foreachdepth=\count106<br>\cpt@exprcnt=\count107<br>)<br>Package: xwatermark 2012/10/23 v1.5.2d A dynamic watermarking scheme (Ahmed Mus<br>a)<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/base/fix-cm.sty<br>Package: fix-cm 2006/09/13 v1.1m fixes to LaTeX<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/base/ts1enc.def<br>File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file<br>))<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/picture.sty<br>Package: picture 2009/10/11 v1.3 Dimens for
 picture macros (HO)<br>Package picture Info: Calculation method: etex.<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphicx.sty<br>Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphics.sty<br>Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/trig.sty<br>Package: trig 1999/03/16 v1.09 sin cos tan (DPC)<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/graphics.cfg<br>File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live<br>)<br>Package graphics Info: Driver file: xetex.def on input line 91.<br><br>(/usr/local/texlive/2012/texmf-dist/tex/xelatex/xetex-def/xetex.def<br>File: xetex.def 2013/02/04 v0.95 LaTeX color/graphics driver for XeTeX
 (RRM/JK)<br><br>))<br>\Gin@req@height=\dimen108<br>\Gin@req@width=\dimen109<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty<br>\fancy@headwidth=\skip44<br>\f@ncyO@elh=\skip45<br>\f@ncyO@erh=\skip46<br>\f@ncyO@olh=\skip47<br>\f@ncyO@orh=\skip48<br>\f@ncyO@elf=\skip49<br>\f@ncyO@erf=\skip50<br>\f@ncyO@olf=\skip51<br>\f@ncyO@orf=\skip52<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/ltxkeys/ltxkeys.sty<br>Package: ltxkeys 2012/11/17 v0.0.3c A robust key-value parser (AM) (Ahmed Musa)<br><br>\ltxkeys@csvdepth=\count108<br>\ltxkeys@keydepth=\count109<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/framed/framed.sty<br>Package: framed 2011/10/22 v 0.96: framed or shaded text with page
 breaks<br>\OuterFrameSep=\skip53<br>\fb@frw=\dimen110<br>\fb@frh=\dimen111<br>\FrameRule=\dimen112<br>\FrameSep=\dimen113<br>)<br>\AtBeginShipoutBox=\box27<br>\xwm@boxa=\box28<br>\xwm@boxb=\box29<br>\xwm@cnta=\count110<br>\xwm@wrt=\write3<br> (./test1.xwm)<br>\openout3 = `test1.xwm'.<br><br>) (/usr/local/texlive/2012/texmf-dist/tex/latex/loops/loops.sty<br>Package: loops 2013/02/10 v1.2 Loops and list processors (AM)<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/skeyval/skeyval.sty<br>Package: skeyval 2013/02/10 v1.2 Robust key-value parser (AM)<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/skeyval/skeyval-core.tex<br>\skvz@=\dimen114<br>\skvm@ne=\count111<br>File: skeyval-core.tex 2013/02/10 v1.2 Base file of skeyval package (AM)<br>\skv@toksa=\toks15<br>\skv@toksb=\toks16<br>\skv@tempcnt=\count112<br>\skv@cnta=\count113<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/skeyval/skeyval-for.tex<br>File: skeyval-for.tex 2013/02/10
 v1.2 Loops for skeyval package (AM)<br>\skv@recurse@cnt=\count114<br>)))<br>Invalid UTF-8 byte or sequence at line 210 replaced by U+FFFD.<br>Invalid UTF-8 byte or sequence at line 210 replaced by U+FFFD.<br>\skv@aktertoks=\toks17<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/xcolor/xcolor.sty<br>Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/color.cfg<br>File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive<br>)<br>Package xcolor Info: Driver file: xetex.def on input line 225.<br>Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.<br>Package xcolor Info: Model `RGB' extended on input line 1353.<br>Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.<br>Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.<br>Package xcolor Info: Model `tHsb' substituted by `hsb' on input line
 1357.<br>Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.<br>Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.<br>Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/lipsum/lipsum.sty<br>Package: lipsum 2011/04/14 v1.2 150 paragraphs of Lorem Ipsum dummy text<br>\c@lips@count=\count115<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/bidi.sty<br>Package: bidi 2013/04/04 v12.2 Bidirectional typesetting in plain TeX and LaTeX<br><br><br>bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)<br> Description: A convenient interface for typesetting bidirectional<br> texts in plain TeX and LaTeX. The package includes adaptations for use<br> with many other commonly-used packages.<br> Copyright © 2009–2013 Persian TeX Group<br> v12.2, 2013/04/04<br> License: LaTeX Project
 Public License, version 1.3c or higher (your choice)<br> Location on CTAN: /macros/latex/contrib/bidi<br>(/usr/local/texlive/2012/texmf-dist/tex/generic/iftex/iftex.sty<br>Package: iftex 2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX, <br>and LuaTeX<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/biditools.sty<br>Package: biditools 2012/05/01 v0.1 Programming tools for bidi package<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/zref-abspage.sty<br>Package: zref-abspage 2012/04/04 v2.24 Module abspage for zref (HO)<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/zref-base.sty<br>Package: zref-base 2012/04/04 v2.24 Module base for zref (HO)<br>Package zref Info: New property list: main on input line 759.<br>Package zref Info: New property: default on input line 760.<br>Package zref Info: New property: page on input line 761.<br>)<br>\c@abspage=\count116<br>Package zref Info: New property:
 abspage on input line 62.<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/xetex-bidi.def<br>File: xetex-bidi.def 2012/12/12 v1.0.6 bidi adaptations for XeTeX engine<br>\bidi@n@everypar=\toks18<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/footnote-xetex-bidi.def<br>File: footnote-xetex-bidi.def 2012/12/12 v0.6 bidi footnote macros for XeTeX en<br>gine<br>\c@footdir@label=\count117<br>\footdir@toks=\toks19<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/book-xetex-bidi.def<br>File: book-xetex-bidi.def 2011/08/26 v0.8 bidi adaptations for standard book cl<br>ass for XeTeX engine<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/color-xetex-bidi.def<br>File: color-xetex-bidi.def 2010/07/25 v0.1 bidi adaptations for color package f<br>or XeTeX engine<br>LaTeX Info: Redefining \color on input line 24.<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/xcolor-xetex-bidi.def<br>File: xcolor-xetex-bidi.def
 2010/07/25 v0.1 bidi adaptations for xcolor package<br> for XeTeX engine<br>LaTeX Info: Redefining \color on input line 23.<br>LaTeX Info: Redefining \bidicolor on input line 66.<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/graphicx-xetex-bidi.def<br>File: graphicx-xetex-bidi.def 2012/01/01 v0.4 bidi adaptations for graphicx pac<br>kage for XeTeX engine<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/hyperref-xetex-bidi.def<br>File: hyperref-xetex-bidi.def 2013/04/04 v0.6 bidi adaptations for hyperref pac<br>kage for XeTeX engine<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/fancyhdr-xetex-bidi.def<br>File: fancyhdr-xetex-bidi.def 2012/04/18 v0.4 bidi adaptations for fancyhdr pac<br>kage for XeTeX engine<br>)<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/framed-xetex-bidi.def<br>File: framed-xetex-bidi.def 2012/06/05 v0.3 bidi adaptations for framed package<br> for XeTeX
 engine<br>))<br>(/usr/local/texlive/2012/texmf-dist/tex/latex/bidi/loadingorder-bidi.def<br>File: loadingorder-bidi.def 2012/12/12 v0.9 making sure that bidi is the last p<br>ackage loaded<br>))<br>(./test1.aux)<br>\openout1 = `test1.aux'.<br><br>Package hyperref Info: Link coloring OFF on input line 8.<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/nameref.sty<br>Package: nameref 2012/10/27 v2.43 Cross-referencing by name of section<br><br>(/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/gettitlestring.sty<br>Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO)<br>)<br><br>(/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/se-ascii-print.def<br>File: se-ascii-print.def 2011/12/02 v1.10 stringenc: Printable ASCII characters<br><br>)<br>LaTeX Font Info:    Try loading font information for OT1+bch on input line 10.<br><br>(/usr/local/texlive/2012/texmf-dist/tex/latex/psnfss/ot1bch.fd<br>File:
 ot1bch.fd 2004/10/18 font definitions for OT1/bch.<br>)<br>LaTeX Font Info:    External font `cmex10' loaded for size<br>(Font)              <7> on input line 10.<br>LaTeX Font Info:    External font `cmex10' loaded for size<br>(Font)              <5> on input line 10.<br><br>\endL or \endR problem (2 missing, 0 extra) has occurred while \output is activ<br>e<br>[][][][][][]<br> []<br><br><br>\endL or \endR problem (0 missing, 2 extra) has occurred while \output is activ<br>e<br> [][] <br> []<br><br>[1<br><br>] [2]<br>Package atveryend Info: Empty hook `BeforeClearDocument' on input line 11.<br> [3]<br>Package atveryend Info: Executing hook `AfterLastShipout' on input line 11.<br> (./test1.xwm) (./test1.aux)<br>Package atveryend Info: Executing hook
 `AtVeryEndDocument' on input line 11.<br>Package atveryend Info: Empty hook `AtEndAfterFileList' on input line 11.<br>Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 11.<br> ) <br>Here is how much of TeX's memory you used:<br> 16459 strings out of 493994<br> 277589 string characters out of 3150336<br> 534840 words of memory out of 3000000<br> 19623 multiletter control sequences out of 15000+200000<br> 5012 words of font info for 17 fonts, out of 3000000 for 9000<br> 1144 hyphenation exceptions out of 8191<br> 70i,13n,67p,940b,726s stack positions out of 5000i,500n,10000p,200000b,50000s<br><br>Output written on test1.pdf (3 pages).<br><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family:
 times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Arthur Reutenauer <arthur.reutenauer@normalesup.org><br> <b><span style="font-weight: bold;">To:</span></b> Wilfred van Rooijen <wvanrooijen@yahoo.com>; XeTeX (Unicode-based TeX) discussion. <xetex@tug.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, June 12, 2013 8:21 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [XeTeX] bidi & xwatermark are broken<br> </font> </div> <div class="y_msg_container"><br>> Well, it works OK on my computer, but note that the "DRAFT" shows up in a rather strange place...<br><br>  Well, that's progress ;-)  What version of all these packages are you<br>using?<br><br>    Arthur<br><br><br></div> </div> </div> </blockquote></div>   </div></body></html>