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
AS a side note, notice that your example (and mine also, since I don't know the meaning of your expressions) is inconsistent: on the left-hand-side you typeset TP and FP in text mode, but on the right-hand-side they are typeset in math mode; they should be treated consistently on both sides.
Thank you very much! This package is really brilliant.
Since formulas become counted on the right side, is there any way to list all these formulas? I think on a "list of formulas". Currently I put a figure around, in order to capture it. May there is a better way for this purpose?
gmedina wrote:
AS a side note, notice that your example (and mine also, since I don't know the meaning of your expressions) is inconsistent: on the left-hand-side you typeset TP and FP in text mode, but on the right-hand-side they are typeset in math mode; they should be treated consistently on both sides.
May I'm wrong. I thought (normal) text must be treated with the \text instruction. When I remove the \text then I lose white-spaces in between. What should I use instead of \text?
mabe83 wrote:...Since formulas become counted on the right side, is there any way to list all these formulas? I think on a "list of formulas". Currently I put a figure around, in order to capture it. May there is a better way for this purpose?
Should the formulae receive captions?
mabe83 wrote:...
gmedina wrote:
AS a side note, notice that your example (and mine also, since I don't know the meaning of your expressions) is inconsistent: on the left-hand-side you typeset TP and FP in text mode, but on the right-hand-side they are typeset in math mode; they should be treated consistently on both sides.
May I'm wrong. I thought (normal) text must be treated with the \text instruction. When I remove the \text then I lose white-spaces in between. What should I use instead of \text?
What I meant is that you should use either always text mode for FP and TN or always use math mode for FP and TN:
gmedina wrote:
In your example, they are typeset both in text and math mode and that is inconsistent.
Ah, ok, I see... Sounds more consequent. Thanks for advising me.
gmedina wrote:
Should the formulae receive captions?
Yes, would be great. Additionally, the caption should be defined for "the listing" purpose only. In my text I already explain the meaning of each formula, while referring its number. Therefore, the description should appear on the formula-listing-site only.
In the following example code I did the preparations needed to create a List of Formulas and defined the command \CFormula to create an entry in the List of Formulas:
\documentclass{article}
\usepackage{empheq}
% this command will write its argument to the List of Formulas
\newcommand{\CFormula}[1]{%
\stepcounter{equation}%
\addcontentsline{lofo}{figure}{\protect\makebox[2em][l]{\theequation}#1}%
\addtocounter{equation}{-1}%
}
\makeatletter
\newcommand\listformulaname{List of Formulas}
\newcommand\listofformulas{%
\section*{\listformulaname}\@starttoc{lofo}}% change to \chapter* in book and report
\makeatother
\begin{document}
\listofformulas
\begin{empheq}[box=\fbox]{equation}
a=b
\CFormula{A really interesting formula}%
\end{empheq}
text text text
\begin{empheq}[box=\fbox]{equation}
a=b
\CFormula{Another really interesting formula}
\end{empheq}
text text text
\end{document}
Feel free to modify my example to suit your needs.
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