I use texStudio to prepare tex code and afterwards copy that code to LibreOffice. Using TexMath, I can then incorporate that code into Writer documents.
\documentclass{article}
\usepackage{amssymb}
\usepackage{mathtools,array,booktabs}
\usepackage[noto,fontspec,match]{luatexja-preset}
\usepackage{cancel}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\usepackage[sfdefault]{noto}
\ltjsetparameter{yjabaselineshift=-5pt}
\renewcommand*\familydefault{\sfdefault}
\begin{document}
\sffamily
\begin{equation*}
\tcboxmath[colback=white, sharp corners=all]{\left.\begin{array}{l}
\mbox{V て -form} \\
\mbox{V ない -form なくて} \\
\mbox{い -adj(~(\cancel{い}) \to\ ~ くて}\\
\mbox{な -adj[~(\cancel{な}] \to\ ~ で}
\end{array}
\right\}}
\end{equation*}
\end{document}
In TexStudio, the code does exactly what I expect. (TexStudio.png).
The same code in LO Writer gives this result where the Japanese characters are displayed beneath the baseline (TexMath.png).
In TexStudio, the line yjabaselineshift=-5pt
is processed correctly. In TexMath, changing the parameter value has no effect at all. The value -5 is only used here to highlight the difference. Ultimately, both Japanese and Latin characters should be displayed on 1 line. (yjabaselineshift=0pt)
Is this a bug in TexMath or am I missing something?
TexStudio.png
TexMath.png