paulremo / NRPMHandbook

Repository to store and track the development on the ADS/Matrisk project for developing a jupyter book of the NRPM handbook.
Other
1 stars 1 forks source link

Duplicate labels #55

Closed paulremo closed 2 years ago

paulremo commented 2 years ago

Throughout the handbook, duplicate labels are assigned to figures, tables, and equations. As an example, the following defines two different labels for the same object (syst_equation4_26 and Equation_7_26):

(syst_equation4_26)=
````{admonition} Equation
:class: equation
``
``  
```{math}
:label: Equation_7_26
P\left(B=S_{B_{1}}\right) = P\left(B=S_{B_{1}}|A=S_{A_{1}}\right)P\left(A=S_{A_{1}}\right) + P\left(B=S_{B_{1}}|A=S_{A_{2}}\right)P\left(A=S_{A_{2}}\right)

This practice is confusing and creates problems in the LaTeX typesetting (#38). As a fix, the label should only be defined inside the equation, i.e. remove the (syst_equation4_26)= and check that all references to syst_equation4_26 are replaced with Equation_7_26.

To find ocurrences of this, you can search for the following regex: =\r\n```

csxADS commented 2 years ago

@paulremo Can you confirm there's no duplicate label issues anymore ?