I've been trying to make these symbols to use in math mode:

I tried modifying the explanations from

but I don't really have any idea what I'm doing. The closest I've got is


I'm using the following packages

  • \usepackage[utf8]{inputenc}
  • \usepackage[T1]{fontenc}
  • \usepackage{libertine}
  • \usepackage{libertinust1math}

2 Answers 2


Using the bar that's found in position "84 of libertinust1-mathrm. Fine tune the parameters if you want more precise positioning.

The first parameter is the vertical shift, the second parameter is the horizontal shift, the third parameter is the horizontal scaling. The bar is always vertically scaled at 80%.






$\tbar\ \fbar\ \pbar$

$\scriptstyle\tbar\ \fbar\ \pbar$

$\scriptscriptstyle\tbar\ \fbar\ \pbar$


enter image description here

  • Wow. Thank you so much.
    – bEPIK
    Jun 28, 2020 at 3:22

You can do this with fontspec and Unicode combining accents, adjusting the positioning of the combining bar with \kern.

\usepackage{libertinus} % Loads unicode-math and Libertinus Math.


\newcommand\pstroke{\mathord{\mathit{p\kern -0.1em ^^^^0332}}}

\[ \pstroke \neq \tstroke \neq \fstroke \]

Libertinus sample

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .