# Math mode \nZeta symbol

Hello,

Can someone help me, thanks!

• Please make your question more suitable (such as remove "thanks!") – hola Feb 25 at 8:33
• Unicode has a combining-vertical-overlay character, U+20D2 or \vertoverlay, but there doesn’t seem to be any math font that displays it the way you want over a capital letter. – Davislor Feb 25 at 8:52
• I feel like this question fails to ask a question – Wojowu Feb 25 at 22:31

Something like this?

\documentclass{article}
\newcommand\nZeta{\raisebox{0.8pt}{$\vert$}\mkern-7.75mu\mathsf{Z}}
\begin{document}
$\nZeta$
\end{document}

• Thank you, just what i needed! Have a nice day! – Elo Elena Feb 25 at 8:13

The amount of shifting of the bar has been computed precisely, under the assumption that the main letter sits on the baseline.

\documentclass{article}

\makeatletter
\newcommand{\nZeta}{\mathord{\mathpalette\nZeta@\relax}}
\newcommand{\nZeta@}[2]{%
\begingroup
\sbox\z@{$#1|$}%
\sbox\tw@{$#1Z$}%
\dimen@=\dimexpr(\dp\z@-\ht\z@+\ht\tw@)/2\relax
\vphantom{\raisebox{\dimen@}{$\m@th#1|$}}% keep the bounding box
\ooalign{%
\hidewidth\raisebox{\dimen@}{$\m@th#1|$}\hidewidth\cr
$\m@th#1\mathsf{Z}$\cr
}%
\endgroup
}
\makeatother

\begin{document}

$a\nZeta b_{a\nZeta b}$

\end{document}


The symbol scales in subscripts and superscripts. Change \mathord to the real meaning of your symbol.

As shown, will work in all math styles.

\documentclass{article}
\usepackage{stackengine,scalerel}
\newcommand\nZeta{\mathord{\ThisStyle{\ensurestackMath{%
\stackinset{c}{}{c}{}{\SavedStyle|}{\SavedStyle\mathsf{Z}}}}}}
\begin{document}
$x\nZeta y_{\nZeta_{\nZeta}}$
\end{document}