Math & Sciencehow to use \tag command?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

how to use \tag command?

Post by bkarpuz »

Dear all,

I can't make the following code work, help me please.

Code: Select all

\documentclass[12pt,reqno]{article}

\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{amsmath}

\begin{document}
$$x^{2}+y^{2}<1\tag{*}$$
\end{document}
Please let me know what is missing/superfluous.

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

how to use \tag command?

Post by Stefan Kottwitz »

Hi,

use the equation environment instead of $$...$$:

Code: Select all

\begin{equation}
  x^{2}+y^{2}<1\tag{*}
\end{equation}
Stefan
LaTeX.org admin
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Re: how to use \tag command?

Post by bkarpuz »

Hmm, ty but isn't it possible to use something with $$...$$ to obtain a similar output?

Thanks.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

how to use \tag command?

Post by localghost »

bkarpuz wrote:Hmm, ty but isn't it possible to use something with $$...$$ to obtain a similar output? [...]
Take a look at l2tabu (Section 1.6 - Separating maths formulae from continuous text using $$...$$) to learn why not to use this kind of math mode.


Best regards
Thorsten
Post Reply