Math & Science ⇒ include math theorems
-
- Posts: 26
- Joined: Wed Sep 30, 2009 7:04 pm
include math theorems
Hello all,
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.
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.
NEW: TikZ book now 40% off at Amazon.com for a short time.

include math theorems
Hi,
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.
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.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
include math theorems
Build a small, complete and compilable, in other words a minimal working example (MWE). Beforehand you can take a look at the amsmath or ntheorem package for the setup of theorem environments.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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
Hello again,
Thank for your reply. That was very quick
Here you have what you asked for (I hope):
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: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
include math theorems
You could use \[ ... \] instead of $ ... $, like
Stefan
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} \]
LaTeX.org admin
- 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?
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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
Thank, that really helped. I have one more thing to ask you guys. When making a footnote, how does one remove the indent which appears ?
Thanks.
Thanks.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- 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}
LaTeX.org admin
-
- Posts: 26
- Joined: Wed Sep 30, 2009 7:04 pm
Re: include math theorems
Hello again again,
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.
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.