OthersTrouble while executing

Information and discussion about other tools not listed above.
Post Reply
abu aasiyah
Posts: 26
Joined: Wed Sep 30, 2009 7:04 pm

Trouble while executing

Post by abu aasiyah »

Hello all,

I have the following code:

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}{Sætning}
\newtheorem{cor}{Korollar}
\newtheorem{defn}{Definition}


\begin{document}

\tableofcontents

\newpage

\section{Abstract}

In this Paper I will try do examine the various methods in defining the number pi. I will start by giving a history background of the development in the antique Greek society especially focusing on what kind of relationship there was between the society and the field of mathematics. I will then go through the Greek mathematical culture and understanding of the letter as well as looking a bit further at the great scientist Archimedes, who was one of the first men in the old Greece to take an insight look into the most mysterious never-ending number of pi. Before dwelling into the definition of pi and Archimedes, I will try to examine the calculus in Greek math with the focus on commensurable and incommensurable groups.  So in short I will be going through out time, to find out and solve the number pi. I will also involve some of the other mathematicians who were key figures in the development of the letter itself. \newline
The conclusion that has been drawn in this assignment is that there are many methods which can be used to approximate pi, all of them are effective in their very own way, but one thing is certain; all of them are very time-consuming. 

\newpage

\section{Indledning}

\newpage

\section{Samfundsmæssige udvikling i det antikke Grækenland i forbindelse med matematik}

\subsection{Matematik i det antikke Grækenland}

Meget af det matematik vi kender stammer oprindelig fra det antikke Grækenland. En af det største og måske første matematiker i Grækenland var Thales fra Milet. En af de kendte historier som er nedskrevet af om Thales, er at han ved hjælp af nogle matematiske beregninger kunne fastslå og forudsige en solformørkelse i år 585 f.kr. De vigtige grundlæggende betegnelser i matematik, såsom at diameteren som deler en cirkel i to og alle vinkler i en ligesidet trekant har samme længde, menes at være Thales’ opdagelser.

\end{document}

For some reason Texmaker does not execute correctly. Could someone help me find the problem.

Thanks in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Trouble while executing

Post by frabjous »

When I first tried to compile your code, I got the error:

! LaTeX Error: Command \textbrokenbar unavailable in encoding T1.

Weird, I thought, since you don't use a command \textbrokenbar. I assumed it had something to do with one of the special Danish symbols (e.g, æ) you use getting interpreted that way, because of using the wrong input encoding.

I changed the line:

\usepackage[latin1]{inputenc}

to

\usepackage[utf8]{inputenc}

And it compiled just fine.

I don't know whether or not that's the problem you were having. I copied and pasted your code from this website, and this website is encoded with UTF-8. How the file you're actually trying to compile is encoded, well, I have no way of knowing.
Post Reply