LyXHow to manually number equations in LYX?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
cphfynbo
Posts: 2
Joined: Wed Mar 04, 2015 11:22 am

How to manually number equations in LYX?

Post by cphfynbo »

I have been a Scientific Workplace user for years but I have recently decided to opt for LyX instead. The transition has been much smoother than I had expected, but I am left with one very annoying problem; I cannot figure out how to manually number equations in LyX.

So, imagine that I would – for some reason – number my first equation “1”, the next one “B” and the third one “mythirdequation” – that is, “numbers” that are in no way related to the sections nor the title of the document, but just completely manually chosen. How would I do that? I have searched a lot, but without finding the solution. It is very easily done in Scientific Workplace.

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to manually number equations in LYX?

Post by Johannes_B »

Hi and welcome,

i am not a LyX user mmyself, so cannot tell you the LyX-way. With LaTeX and amsmath, which should always be loaded when dealing with maths, you can use \tag.

Code: Select all

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{equation}a\end{equation}
\begin{equation}b\tag{B}\end{equation}
\begin{equation}c\tag{something}\end{equation}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
cphfynbo
Posts: 2
Joined: Wed Mar 04, 2015 11:22 am

Re: How to manually number equations in LYX?

Post by cphfynbo »

Dear Johannes_B,

I tried adding a "\tag{text}" field in the display. And it works perfectly well. Thank your very much! :-)
Post Reply