2

I am trying to frame a text inline like this:

enter image description here

The text above is from the book Differential Geometry of Curves and Surfaces from Kristopher Tapp.

As requested by some users, some code to edit:

\documentclass{article}

\usepackage{amsmath}
\usepackage{amsthm}

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]

\begin{document}

\begin{theorem}
    Bla bla bla.
\end{theorem}

\begin{proof}
    Bla bla bla bla.

    (1) \(\implies\) (2) Bla bla bla.
\end{proof}

\end{document}
4
  • Welcome to TeX.SE! Could you edit your question to include some code please that we can then edit, as it stands you want us to write the entire code
    – piJT
    Commented Sep 30, 2023 at 10:59
  • 1
    Just did @JamesT
    – djairo
    Commented Sep 30, 2023 at 11:03
  • You should keep math expressions in math env. that is (1) \(\implies (2)\) should be \((1) \implies (2)\). One reason is font used in math could be different and you might end up in oddly typeset expressions. As to your boxes: use \fbox{} to box words and ininline maths or \boxed{} (amsmath) in display math env. (see this answer for details).
    – Celdor
    Commented Oct 1, 2023 at 9:36
  • Thank. It was a typo
    – djairo
    Commented Oct 1, 2023 at 11:43

1 Answer 1

4

Like this:

enter image description here

Code:

\documentclass{article}

\usepackage{amsmath}
\usepackage{amsthm}

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]

\begin{document}
    
    \begin{theorem}
        Bla bla bla.
    \end{theorem}
    
    \begin{proof}
        Bla bla bla bla.
        
        \fbox{(1) \(\implies (2)\)} Bla bla bla.
    \end{proof}
    
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .