Math & Scienceamsart | Equation Formatting

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
newbie123
Posts: 1
Joined: Mon Jan 14, 2013 2:03 am

amsart | Equation Formatting

Post by newbie123 »

I added an equation into at list, but for some reason a (1) shows up before the equation. Also, the equation gets moved to the middle of the line. How do I fix this?

If it helps, my document reads:

Code: Select all

\documentclass[11pt]{amsart}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\title{SATMathII}
\author{Cathy}
%\date{}                                           % Activate to display a given date or no date

\begin{document}
\maketitle
\section{Conic Sections}
\subsection{Parabolas}
	\begin{itemize}
	\item equidistant from \textbf{point} and \textbf{directrix}
	\item \begin{equation}(y-k)^2=4p(x-h) \end{equation}
	\item focus: (h+p, k)
	\item directrix x=h-p
	\item distance from parabola to focus and directrix: |p| 
	\end{itemize}





\end{document}
Last edited by localghost on Mon Jan 14, 2013 10:04 am, edited 2 times in total.

Recommended reading 2024:

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

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

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

amsart | Equation Formatting

Post by mas »

newbie123 wrote:I added an equation into at list, but for some reason a (1) shows up before the equation.
It is the equation number. The class amsart puts the number on the left side. If you change the amsart to article, you get it on the right side.
Also, the equation gets moved to the middle of the line. How do I fix this?
The equation is always centered unless you want it otherwise. What do you want to fix? Please give some more detail about what you want.


Regards.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

amsart | Equation Formatting

Post by svend_tveskaeg »

Welcome to the board.

This is not a MWE so it will be a lot easier to help if you provide a such in the future.

Regarding your problem, this is how it is defined in the [url=http://mirrors.ctan.org/macros/latex/required/amslatex/amscls/doc/amsclass.pdf]amsart[/url] class. (See page 7.)
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

amsart | Equation Formatting

Post by Stefan Kottwitz »

Hi,

welcome to the board!

amsart is a class for publishing for the AMS (American Mathematical Society) in their specific style. If you publish for AMS, it's probably required to use exactly this formatting. If you don't, you don't need to choose amsart and "fix" that style. You could use the AMS math features by loading the amsmath package with other classes, such as article, recommended by mas:

Code: Select all

\documentclass[11pt]{article}
\usepackage{amsmath}
Stefan
LaTeX.org admin
alainremillard
Posts: 45
Joined: Fri Mar 16, 2012 8:22 pm

amsart | Equation Formatting

Post by alainremillard »

newbie123 wrote:I added an equation into at list, but for some reason a (1) shows up before the equation. Also, the equation gets moved to the middle of the line. How do I fix this?
It will help if you tell us what you want. How exactly should it look.

Judging by your code, your nametag is well chosen. Here is a few pointer to get you started. There are diffenrent way to write mathematical formula with latex. When you use

Code: Select all

some text
\begin{equation}
    f(x) = x^2
\end{equation}
more text
latex create un numbered equation, centered on a new line, with a number for future reference. Use it when the equation to put emphasis on important formula.

If you want your formula to act like normal text, you can use inline math by putting it between dollar signs, like this

Code: Select all

some text $f(x) = x^2$ more text
There are many others depending on the situation. Have a look at this pdf file which describe it with more details

ftp://ftp.ams.org/pub/tex/doc/amsmath/s ... -guide.pdf

Here is a modified version of your code. I've added inline math to each of your formula.

Code: Select all

\documentclass[11pt]{amsart}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\title{SATMathII}
\author{Cathy}
%\date{}                                           % Activate to display a given date or no date

\begin{document}
\maketitle
\section{Conic Sections}
\subsection{Parabolas}
	\begin{itemize}
	\item equidistant from \textbf{point} and \textbf{directrix}
	\item $(y-k)^2=4p(x-h)$
	\item focus: $(h+p, k)$
	\item directrix $x=h-p$
	\item distance from parabola to focus and directrix: $|p|$ 
	\end{itemize}

\end{document}
Post Reply