This image is an example of what I want to get.

https://www.dropbox.com/s/dmqd0nt0thg5u ... o.png?dl=0
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
\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}
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