Math & Scienceinclude math theorems

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

include math theorems

Post by abu aasiyah »

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.

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

include math theorems

Post by gmedina »

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.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

include math theorems

Post by localghost »

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
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

include math theorems

Post by gmedina »

localghost wrote:...take a look at the amsmath...
Obviously you meant the amsthm package?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
abu aasiyah
Posts: 26
Joined: Wed Sep 30, 2009 7:04 pm

include math theorems

Post by abu aasiyah »

Hello again,

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}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

include math theorems

Post by Stefan Kottwitz »

You could use \[ ... \] instead of $ ... $, like

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} \]
Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

include math theorems

Post by localghost »

gmedina wrote:Obviously you meant the amsthm package?
Yes. Unwanted automatism when it comes to packages for mathematics.
abu aasiyah
Posts: 26
Joined: Wed Sep 30, 2009 7:04 pm

Re: include math theorems

Post by abu aasiyah »

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.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

include math theorems

Post by Stefan Kottwitz »

abu aasiyah wrote:When making a footnote, how does one remove the indent which appears ?
You could use the footmisc package:

Code: Select all

\usepackage[flushmargin]{footmisc}
Stefan
LaTeX.org admin
abu aasiyah
Posts: 26
Joined: Wed Sep 30, 2009 7:04 pm

Re: include math theorems

Post by abu aasiyah »

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.
Post Reply