## Archive for October, 2008

## Using the amscd package

The amscd package adapts the commutative diagram macros of AMS-TeX for use in LaTeX. However, the package cannot be used with XeLaTeX when the unicode-math package is loaded. A workaround is to patch file amscd.sty using the following patch

— amscd.sty.old Κυρ Οκτ 12 19:11:58 2008

+++ amscd.sty Κυρ Οκτ 12 19:11:20 2008

@@ -155,16 +155,16 @@

}% end lowercase

\endgroup

\atdef@ A#1A#2A{\CD@check{A..A..A}{\llap{$\m@th\vcenter{\hbox

– {$\scriptstyle#1$}}$}\Big\uparrow

+ {$\scriptstyle#1$}}$}\Big\myuparrow

\rlap{$\m@th\vcenter{\hbox{$\scriptstyle#2$}}$}&&}}

\atdef@ V#1V#2V{\CD@check{V..V..V}{\llap{$\m@th\vcenter{\hbox

– {$\scriptstyle#1$}}$}\Big\downarrow

+ {$\scriptstyle#1$}}$}\Big\mydownarrow

\rlap{$\m@th\vcenter{\hbox{$\scriptstyle#2$}}$}&&}}

\atdef@={\CD@check={&\enskip\mathrel

{\vbox{\hrule\@width\minCDarrowwidth\vskip2\ex@\hrule\@width

\minCDarrowwidth}}\enskip&}}

-\atdef@|{\CD@check|{\Big\Vert&&}}

-\atdef@\vert{\CD@check\vert{\Big\Vert&&}}

+\atdef@|{\CD@check|{\Big\myVert&&}}

+\atdef@\vert{\CD@check\vert{\Big\myVert&&}}

\atdef@.{\CD@check.{&&}}

\endinput

%%

and then to add the following lines to file unicode-math.tex

\UnicodeMathSymbol{”02193}{\mydownarrow}{\mathopen}{downward arrow}

\UnicodeMathSymbol{”02016}{\myVert}{\mathopen}{double vertical bar}

\UnicodeMathSymbol{”02191}{\myuparrow}{\mathopen}{upward arrow}%

Apostolos Syropoulos