Text FormattingTheorem enclosed by Brackets

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
Mohsen Avaji
Posts: 16
Joined: Mon Aug 27, 2012 12:06 am

Theorem enclosed by Brackets

Post by Mohsen Avaji »

Hi,

I want put brackets at the beginning and end of a theorem similar following example.
[Hint: The eigenvectors of A can be used to determine two columns of C.]
But I don't know what changes must be done in following code.

Code: Select all

‎\documentclass[12pt,a4paper]{book}‎
‎\usepackage{mathtools}
\usepackage{amssymb,amsthm}‎

‎‎\newtheoremstyle{Hint}‎
‎{3pt}‎
‎{3pt}‎
{‎}
{1‎cm}
‎{\bf}‎
‎{:}‎
‎{0.5em}‎
{}
‎\theoremstyle{Hint}‎

‎\newtheorem*{Hint}{Hint}‎

‎\begin{document}‎
  \begin{Hint}‎
    The eigenvectors of A can be used to determine two columns of C.
  ‎\end{Hint}‎
‎\end{document}
I would be really grateful if you could help me.
Yours faithfully,
Mohsen Avaji.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply