Math & Sciencebecause, therefore

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
User avatar
drpartha
Posts: 43
Joined: Wed Dec 02, 2009 1:41 am

because, therefore

Post by drpartha »

I have problems getting symbols for therefore, because, degree to work.

I tried the followinga nd got nowhere::


\documentclass[a4paper,12pt]{article}

\usepackage[latin1]{inputenc}
%\usepackage{babel}
%\usepackage{fontenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\therefore x = y \\
\because z \neq x \\
In an equilateral triangle, all angles are equal to 60 \degree
\end{document}


Can someone help , please ?

partha

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

because, therefore

Post by gmedina »

Hi,

for the degrees issue, you can use something like the following:

Code: Select all

\documentclass[a4paper,12pt]{article}

\begin{document}

In an equilateral triangle, all angles are equal to $60^\circ$

\end{document}
Regarding the other two symbols, can you please post (a link to) an image showing how exactly those symbols should look like?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
magicmoose
Posts: 90
Joined: Fri Nov 06, 2009 7:29 am

because, therefore

Post by magicmoose »

Hi partha,

For therefore and because you have the right commands, just you have to be in math mode to use them. Also, \degree isn't a LaTeX command - to get a degree sign use $^\circ$, or you can make a degree command to put in your preamble like this:

Code: Select all

\newcommand{\degree}{\ensuremath{^\circ}}
Using these changes, your file will look like this:

Code: Select all

\documentclass[a4paper,12pt]{article}

\usepackage[latin1]{inputenc}
%\usepackage{babel}
%\usepackage{fontenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}

\newcommand{\degree}{\ensuremath{^\circ}}

\begin{document}

$\therefore x = y \\
\because z \neq x \\$
In an equilateral triangle, all angles are equal to 60\degree
\end{document}
Hope that helps
User avatar
drpartha
Posts: 43
Joined: Wed Dec 02, 2009 1:41 am

Re: because, therefore

Post by drpartha »

Thank you all, for guiding me to the correct answer.

I had to tweak the solutions suggested. Using math mode renders the text "In an equilateral ...." also in math mode and makes it look ugly. The line feeds are also lost. Also, \degree is not a valid command. The right one to use would be \textdegree.

The corrected code looks like this ::

\documentclass[a4paper,12pt]{article}

\usepackage[latin1]{inputenc}
%\usepackage{babel}
%\usepackage{fontenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}

\date{01.12.2009}

\begin{document}
% using a global displaymath environment causes the text ``In an equilateral...to'' to be displayed in math mode (looks ugly) and line breaks to disappear
\newcommand{\degree}{{^\circ}}
$ \therefore x = y $ \\
$ \because z \neq x $\\
In an equilateral triangle, all angles are equal to $60 \degree$ \\
In a right angled triangle there is one angle which is exactly 90 \textdegree
\end{document}


Thanks agin,

partha
Post Reply