Text Formatting ⇒ CSS border-right equivalent
CSS border-right equivalent
I would like to annotate text in the following manner:
I'm aware of \underline and \overline, but I need to make a border on the right side, like in the attached image, so it looks like an unbroken chain of "__|¯¯|__|¯¯|__".
Thank you.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
CSS border-right equivalent
welcome to the board!
A quick and easy way would be to define a

For example:
Code: Select all
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\matrix (m) [matrix of nodes]{
A & B & C & D & E\\};
\draw (m-1-1.north west) -- (m-1-1.north east) -- (m-1-1.south east)
-- (m-1-2.south west) -- (m-1-2.south east) -- (m-1-2.north east)
-- (m-1-5.north east);
\end{tikzpicture}
\end{document}