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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
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