# Vertical bar in bold [duplicate]

I would like to create a vertical bar, as is, in a \textbf{#1} command:

MWE:

\documentclass{article}
\begin{document}
\textbf{Hello|there}

\texttt{Hello|there}
\end{document}


which produces this:

How can I get the vertical bar working in bold-series?

EDIT: I do not want to change the | char (I want to keep using |).

## marked as duplicate by Henri Menke, zeroth, Community♦Jul 6 '16 at 6:53

• \textbf{Hello\textbar there} – Runar Jul 6 '16 at 6:36
• \usepackage[T1]{fontenc} taken from stackoverflow.com/questions/3487966/… – Runar Jul 6 '16 at 6:48