Math & Science ⇒ include math theorems
-
- Posts: 26
- Joined: Wed Sep 30, 2009 7:04 pm
include math theorems
I am writing a math report (in danish). I would like to add theorems in my report. It seems to be ok, but the mathematical formula does not appear centered on a new line. I have typed the following:
\framebox[0.95\linewidth]{
\begin{minipage}{0.90\linewidth}
\begin{startthe}
Opløsning efter søjle \\
Determinanten af en kvadratisk matrix kan udregnes ved at opløse langs en vilkårlig søjle. Dvs. hvis \textbf{A} er en $n\times n$ matrix og c=1,2,3,\ldots, så er \\
\text{det}\textbf{A}=$\sum_{i}^n(-1)^{i+c} a_{ic} \text{det}\textbf{a}_{ic}$
\end{startthe}
\end{minipage}
}
Can someone assist me in this matter ?
Thank you in advance.
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
include math theorems
in order to provide effective help, we will need some complete, compilable code (in the sense of a minimal working example) that allows us to quickly detect the problem and offer solutions.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
include math theorems
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 26
- Joined: Wed Sep 30, 2009 7:04 pm
include math theorems
Thank for your reply. That was very quick

Here you have what you asked for (I hope):
Code: Select all
\documentclass[12pt,a4paper,danish]{report}
\usepackage[latin1]{inputenc}
\usepackage[danish]{babel} % danske overskrifter
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{ulem}
\usepackage{footmisc}
\title{Projekt 1}
\newtheorem{startthe}{Theorem}
\begin{document}
\framebox[0.95\linewidth]{
\begin{minipage}{0.90\linewidth}
\begin{startthe}
Opløsning efter søjle \\
Determinanten af en kvadratisk matrix kan udregnes ved at opløse langs en vilkårlig søjle. Dvs. hvis \textbf{A} er en $n\times n$ matrix og c=1,2,3,\ldots, så er \\
\text{det}\textbf{A}=$\sum_{i}^n(-1)^{i+c} a_{ic} \text{det}\textbf{a}_{ic}$
\end{startthe}
\end{minipage}
}
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
include math theorems
Code: Select all
Determinanten af en kvadratisk matrix ... så er
\[ \det\boldsymbol{A}=\sum_{i}^n(-1)^{i+c} a_{ic} \det\boldsymbol{a}_{ic} \]
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
include math theorems
Yes. Unwanted automatism when it comes to packages for mathematics.gmedina wrote:Obviously you meant the amsthm package?
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 26
- Joined: Wed Sep 30, 2009 7:04 pm
Re: include math theorems
Thanks.
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
include math theorems
You could use the footmisc package:abu aasiyah wrote:When making a footnote, how does one remove the indent which appears ?
Code: Select all
\usepackage[flushmargin]{footmisc}
-
- Posts: 26
- Joined: Wed Sep 30, 2009 7:04 pm
Re: include math theorems
I must apologize for posting all these questions. I hope you guys won't mind.
Can someone tell me how to move the theorem box a bit to the left so it is aligned to the left.
thanks.