General ⇒ Terms beside equations
Terms beside equations
Hi there,
I need to write the term of my equations beside the equation number, like [Hz] (Eq. 2.20).
The alignment of the equations must not be affected.
Any ideas?
Thanks
I need to write the term of my equations beside the equation number, like [Hz] (Eq. 2.20).
The alignment of the equations must not be affected.
Any ideas?
Thanks
NEW: TikZ book now 40% off at Amazon.com for a short time.
Terms beside equations
Is this what you are searching for?
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{amsmath}\makeatletter\def\tagform@#1{\maketag@@@{(\ignorespaces Eq.~#1\unskip\@@italiccorr)}}\makeatother\begin{document}\begin{gather}a=b+c \\d=e+f\end{gather}\end{document}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Re: Terms beside equations
Actually no, it's not the Eq.-thing but the [Hz] thing
I'll just attach an example
I'll just attach an example
- Attachments
-
- help.jpg (4.38 KiB) Viewed 5337 times
Terms beside equations
A simple hack could be
Anyway, this has side-effects if you use \eqref to cite equations. Your query is not clear enough, so perhaps there are bettter ways to proceed. Has [Hz] to appear in all equations? What is really that? By the way, which is the code you used to get the attached jpg? Why that code is not good enough?
Code: Select all
Code, edit and compile here:
\makeatletter\def\tagform@#1{\maketag@@@{[Hz]\ (\ignorespaces Eq.~#1\unskip\@@italiccorr)}}\makeatother
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Re: Terms beside equations
The picture is made in MS Paint (shows what I want the final result to look like). I need help designing the code, so a can place such a term, the ['term'], after an equation, as I like.
Terms beside equations
OK about the picture, but you should still complete your answer. Does that term vary from equation to equation? Do you require to control it somehow?rasole wrote:The picture is made in MS Paint (shows what I want the final result to look like). I need help designing the code, so a can place such a term, the ['term'], after an equation, as I like.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Terms beside equations
Yes I need to supply a different unit to every of my equations. The following code works, but makes errors, why I don't know
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Terms beside equations
There is an interesting document you should take a look at [1]. Seems to be written by our member daleif. A search in the forum may yield other suitable results.
[1] The PracTeX Journal - TeX Users Group | Lars Madsen: Avoid eqnarray!
Best regards
Thorsten¹
[1] The PracTeX Journal - TeX Users Group | Lars Madsen: Avoid eqnarray!
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Terms beside equations
Sorry, I'm not that good at this yet, so if I could get some kind of example. Maybe it's something about making a 3 column table (not actually a table because of the missing equation number then).
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Terms beside equations
You can get a lot of examples by using the search function of the forum. Use the align environment provided by the amsmath package.
Do some basic reading with lshort and l2tabu.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10