GeneralBounding Box for equations

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jclarco
Posts: 1
Joined: Tue Feb 04, 2020 12:56 am

Bounding Box for equations

Post by jclarco »

Hi. Please, I need your help. I want to draw a bounding box that encloses the equations embedded in the text. I have searched but I only find instructions for the equations isolated from the text but not for the equations embedded within the text. Thanks for your help.
This image is an example of what I want to get.

Image

https://www.dropbox.com/s/dmqd0nt0thg5u ... o.png?dl=0
Attachments
ejemplo.png
ejemplo.png (15.02 KiB) Viewed 2112 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Bounding Box for equations

Post by Ijon Tichy »

You can use xcolor (or even only color) t make colored frames, e.g.:
\documentclass{article}
\usepackage{xcolor}

\newcommand{\inlinemath}[1]{\fcolorbox{red}{white}{\ensuremath{#1}}}

\begin{document}
In what follows we use the following notation: if \inlinemath{S},
\inlinemath{T \subseteq N}, \inlinemath{z=(z_i)_{i \in N}} is an $n$-vector, and\dots
\end{document}
Image
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply