I'm trying to stylize my definitions/examples etc. a bit to have a more simple overview once finished. Im specifically trying to achieve this: But don't really know how to achieve it. I can only think of a thin vertically stretched box aligned to the left of the whole environment but failed at implementing it since I'm fairly new to tex.
MWE:
\pdfminorversion=7
\documentclass[a4paper, 12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amsthm, amssymb, amsfonts}
\usepackage{thmtools}
\usepackage{lipsum}
% Theorem styles
\newtheoremstyle{customDefinition}
{} % Space above, empty = `usual value'
{} % Space below
{\itshape} % Body font
{} % Indent amount (empty = no indent, \parindent = para indent)
{\bfseries} % Thm head font
{} % Punctuation after thm head
{\newline} % Space after thm head: \newline = linebreak
{Definition \thmnumber{#2}\thmname{\hfill#1}} % Thm head spec
\begin{document}
\theoremstyle{customDefinition}
\newtheorem{definition}{Matrix}[section]
\begin{definition}
\lipsum[2]
\end{definition}
\end{document}
amsmath
has nothing to do with theorems; you meanamsthm
. Please fix the title.