Math & Sciencehow i write align without parentheses?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
mshj
Posts: 12
Joined: Tue Jul 15, 2014 3:41 pm

how i write align without parentheses?

Post by mshj »

i need to remove parentheses from align numbering and use dot (.) for that. for example i need to see:

Code: Select all

my formul           .1
how i can do this? pleas help me :roll:

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

how i write align without parentheses?

Post by Stefan Kottwitz »

You could redefine the internal macro \tagform@. Here I modify the original version, removing parentheses and inserting the dot:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\makeatletter
\renewcommand*{\tagform@}[1]{\maketag@@@{.\ignorespaces#1\unskip\@@italiccorr}}
\makeatother
\begin{document}
\begin{align}
y = f(x)
\end{align}
\end{document}
It will change the tag for all displayed formulas, but I think that's desirable for consistent numbering.

Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

how i write align without parentheses?

Post by cgnieder »

Here's an alternative method using the mathtools package and its \newtagform{<name>}{<left>}{<right>} macro which maybe is a little bit more intuitive:

Code: Select all

\documentclass{article}
\usepackage{mathtools}% loads `amsmath'

\newtagform{leftdot}{.}{}
\usetagform{leftdot}

\begin{document}

\begin{align}
  y = f(x)
\end{align}

\end{document}
Regards
site moderator & package author
Post Reply