1

MWE

\documentclass[12pt]{article}
\usepackage{color}
\usepackage{amssymb}
\begin{document}
{\color{red}{$\sqsupset$}}a{\color{red}{$\sqsubset$}}
\end{document}

enter image description here

My purpose is to do it with tikz. Can you help me fix it?

Related: https://tex.stackexchange.com/a/403013/33075

2

I don't really get why you want to do this in TikZ, you have a perfectly fine symbol right there, but here you go:

\documentclass{article}
\usepackage{tikz}
\newcommand\centerofline[1]{%
  \tikz\draw[red] (0,1ex) -| (1ex,0) -- (0,0);%
  \kern.2ex\relax
  #1%
  \kern.2ex\relax
  \tikz\draw[red] (1ex,1ex) -| (0,0) -- (1ex,0);%
}
\begin{document}

\small\centerofline{a}

\normalsize\centerofline{a}

\large\centerofline{a}

\Large\centerofline{a}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.