Math & Sciencetheorem / proof alignment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
abu aasiyah
Posts: 26
Joined: Wed Sep 30, 2009 7:04 pm

theorem / proof alignment

Post by abu aasiyah »

Hello all,

I have a theorem inside a grey box and beneath this I have the prrof. The thing is that I am tryin to align the theorem and the proof. Can someone assist me in this.

The code is:

Code: Select all

Code, edit and compile here:
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[danish]{babel} % danske overskrifter
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{ulem}
\usepackage{textcomp}
\usepackage{tikz}
\usepackage{color}
\usepackage{arcs}
\usepackage{amsthm}
\newtheorem{startthe}{Sætning}
\newtheorem{defn}{Definition}
\makeatletter
\renewcommand{\paragraph}{\@startsection{paragraph}{4}{0ex}%
{-3.25ex plus -1ex minus -0.2ex}%
{1.5ex plus 0.2ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
\stepcounter{secnumdepth}
\stepcounter{tocdepth}
\begin{document}
\fcolorbox{black}{lightgray}{
\begin{minipage}{0.90\linewidth}
\begin{startthe}
\hspace{1cm}\newline
Idet $k_{n}$ betegner sidelængden i den omskrevne $n$-kant i enhedsvirklen, så gælder at:
\begin{equation*}
k_{2n}=\sqrt{2-\sqrt{4-k_{n}^{2}}}'
\end{equation*}
\end{startthe}
\end{minipage}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: theorem / proof alignment

Post by daleif »

There are some examples about how to do this in my Danish latex book, simply search my name and latexbog in google
Post Reply