Hi all,

as the subject tells, I'd like to use the breqn package together with amsmath and unicode-math. But it seems that only two out of these three work together mutually. Depending on the order of loading, I can produce some different error messages, but as amsmath always has to be the first one, here are the two relevant messages, belonging to the minimal example below. (file list at the end of the mail)

——————————————————————————————————————————
./test.tex:7: Undefined control sequence.
<recently read> \

l.7 \begin{dmath}

?
——————————————————————————————————————————
Runaway argument?
\reset@strutbox@ \lltxmath_set_mathchar:NN \std@minus \-\lltxmath_set_mathchar:
NN \ETC.
/home/texlive2011/texmf-dist/tex/latex/mh/breqn.sty:50: File ended while scanni
ng use of \next.
<inserted text>
                \par
l.50 }

?
——————————————————————————————————————————

\documentclass{minimal}
\usepackage{amsmath}
\usepackage{breqn}
\usepackage{unicode-math}\setmathfont{XITS-math}

\begin{document}
\begin{dmath}
a = b
\end{dmath}
\end{document}
——————————————————————————————————————————

Are there any chances that this could anyhow work together? It would be great to have all the functionality. Unfortunately, the error messages seem too random for me to guess where the problem really is …

cheers
Arno

 *File List*
 minimal.cls    2001/05/25 Standard LaTeX minimal class
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
   breqn.sty    2009/08/07 v0.98a Breaking equations
   expl3.sty    2011/08/17 v2607 L3 Experimental code bundle wrapper
 l3names.sty    9999/99/99 v999 L3 Experimental namespace for primitives
l3bootstrap.sty    9999/99/99 v999 L3 Experimental bootstrap code
  luatex.sty    2010/03/09 v0.4 LuaTeX basic definition package (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
luatex-loader.sty    2010/03/09 v0.4 Lua module loader (HO)
pdftexcmds.sty    2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
 ltxcmds.sty    2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
l3basics.sty    9999/99/99 v999 L3 Experimental basic definitions
 l3expan.sty    9999/99/99 v999 L3 Experimental argument expansion
    l3tl.sty    9999/99/99 v999 L3 Experimental token lists
   l3seq.sty    9999/99/99 v999 L3 Experimental sequences and stacks
   l3int.sty    9999/99/99 v999 L3 Experimental integers
 l3quark.sty    9999/99/99 v999 L3 Experimental quarks
   l3prg.sty    9999/99/99 v999 L3 Experimental control structures
 l3clist.sty    9999/99/99 v999 L3 Experimental comma separated lists
 l3token.sty    9999/99/99 v999 L3 Experimental token manipulation
  l3prop.sty    9999/99/99 v999 L3 Experimental property lists
   l3msg.sty    9999/99/99 v999 L3 Experimental messages
    l3io.sty    9999/99/99 v999 L3 Experimental input-output operations
  l3file.sty    9999/99/99 v999 L3 Experimental file operations
  l3skip.sty    9999/99/99 v999 L3 Experimental dimensions and skips
   l3box.sty    9999/99/99 v999 L3 Experimental boxes
l3keyval.sty    9999/99/99 v999 L3 Experimental key-value parsing
  l3keys.sty    9999/99/99 v999 L3 Experimental key-value interfaces
    l3fp.sty    9999/99/99 v999 L3 Experimental floating-point operations
l3luatex.sty    9999/99/99 v999 L3 Experimental LuaTeX-specific functions
l3coffins.sty    9999/99/99 v999 L3 Experimental coffin code layer
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
   color.sty    2005/11/14 v1.0j Standard LaTeX Color (DPC)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
  l3toks.sty    9999/99/99 v999 L3 Experimental token registers
flexisym.sty    2010/09/17 v0.97b Make math characters macros
  cmbase.sym    2007/12/19 v0.92
mathstyle.sty    2010/11/17 v0.89
unicode-math.sty    2011/07/31 v0.5e Unicode maths in XeLaTeX and LuaLaTeX
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
  xparse.sty    2011/08/17 v2607 L3 Experimental document command parser
l3keys2e.sty    2011/08/17 v2607 LaTeX2e option processing using LaTeX3 keys
fontspec.sty 2011/02/26 v2.1f Advanced font selection for XeLaTeX/LuaLaTeX
luaotfload.sty    2011/04/21 v1.25 OpenType layout system
luatexbase.sty    2010/10/06 v0.3 Module utilities for LuaTeX
luatexbase-compat.sty    2010/10/10 v0.3 Compatibility tools for LuaTeX
luatexbase-loader.sty    2010/10/10 v0.3 Lua module loader for LuaTeX
luatexbase-regs.sty    2010/10/10 v0.3 Registers allocation for LuaTeX
luatexbase-attr.sty    2011/05/21 v0.31 Attributes allocation for LuaTeX
luatexbase-cctb.sty    2010/10/10 v0.3 Catcodetable allocation for LuaTeX
luatexbase-mcb.sty    2010/10/10 v0.3 Callback management for LuaTeX
luatexbase-modutils.sty    2010/10/10 v0.3 Module utilities for LuaTeX
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
fontspec-patches.sty 2011/02/26 v2.1f Advanced font selection for XeLaTeX/Lu
aLaTeX
fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX
 fontenc.sty
  eu2enc.def    2010/05/27 v0.1h Experimental Unicode font encodings
  eu2lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty 2010/11/06 v0.96 provides access to latin accents and many othe
r characters in Unicode lower plane
fontspec.cfg
catchfile.sty    2011/03/01 v1.6 Catches the contents of a file (HO)
etexcmds.sty    2011/02/16 v1.5 Prefix for e-TeX command names (HO)
trimspaces.sty    2009/09/17 v1.1 Trim spaces around a token list
  fix-cm.sty    2006/09/13 v1.1m fixes to LaTeX
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
filehook.sty    2011/03/09 v0.5a Hooks for input files
lualatex-math.sty 2011/05/05 v0.1 Patches for mathematics typesetting with L
uaLaTeX
etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX
unicode-math-table.tex
supp-pdf.mkii
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2010/08/19 v1.1 Managing graphics extensions (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Defining keys (HO)
kvoptions.sty    2010/12/23 v3.10 Keyval support for LaTeX options (HO)
kvsetkeys.sty    2011/04/07 v1.13 Key value parser (HO)
epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
 ***********

Reply via email to