# [XeTeX] (small) problem with vectors

Sven Willert (Arndt) swillert at geophysik.uni-kiel.de
Sat Dec 13 18:29:17 CET 2008

Hi,

I've found a small problem. Using xelatex and unicode-math (which I
know is beta) something like

\documentclass[a4paper]{article}
\usepackage[]{fontspec}
\usepackage[math-style=tex]{unicode-math}
\begin{document}
$\vec{a}^{i,j}_k$
\end{document}

leads to a strange result. The arrow of the vector is not
centered above the vector (a in the example) but centered
above the whole construct.

\documentclass[a4paper]{article}
\usepackage[]{fontspec}
\begin{document}
$\vec{a}^{i,j}_k$
\end{document}

Runs perfectly.

Is there an easy way to work around it?

I want to hand in my ph.d. thesis on tuesday and can't just forget
about unicode-math because that would mean to much work. It's great,
though!

I could life with using construct like "{\overrightarrow{r }}^{\delta
p}_i(t)". That concrete construct, however, is not beautiful because
the arrow is way to large but much better because it's centered above
the vector....

Best regards,
Sven
-
Sven Willert (Arndt)
Institut für Geowisenschaften (Geophysik)
Christian-Albrechts-Universität zu Kiel
Otto-Hahn-Platz , 24118 Kiel, Germany
phone:  +49 431 880-3911
fax:  +49 431 880-4432
e-mail: sarndt at geophysik.uni-kiel.de
URL:  http://www.geophysik.uni-kiel.de/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20081213/6d41fa60/attachment.html
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8851240277290344, "perplexity": 19266.1959500128}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-17/segments/1618039476006.77/warc/CC-MAIN-20210420152755-20210420182755-00385.warc.gz"}