Open fred-atherden opened 4 years ago
@NickDuf, as discussed earlier, we presumably also need an interface with which authors can add/edit certain parts of an equation - it would be unreasonable to expect them to know LaTeX (which is what Texture currently assumes).
@joelsummerfield, also noting that mathpix is an interesting tool which we could make use of - but it's not (completely) open source - there might be some open source equivalents out there.
Maths in articles can be captured within 'inline equations' that run on with the surrounding text in a paragraph and 'display equations', which are shown on a new line and can be labelled (e.g. (1), (2), etc).
User Stories
Author
Production staff
-
SciELO/Érudit
But what if . . . ?
Considerations
disp-formula-group
are covered in ticket #90.XML requirements
Equations can be captured as
disp-formula
orinline-formula
. Bothinline-formula
anddisp-formula
should be treated as inline content (i.e. not block content), and therefore should always be a child of content container elements, such asp
,title
,td
orth
.Display formulae are semantically inline formulae which have been pulled out for extended display (and possibly labelled), therefore it does not make any sense to treat them as block content (i.e. to be captured as a child of
sec
or similar).For example, for this content, the display formula is placed in the middle of a paragraph. Some renderers output indents for new paragraphs, so this is why it is necessary to capture display formulae inside content containers (so that those renderers do not erroneously output indents).
As shown above, the element
tex-math
(rather thanmml:math
) should be used for formulae.The element
alternatives
should be used in the event that there are two renditions of the same equation (say image as well as tex):We also need to account for cases where the equation content is only represented with an image. For
inline-formula
these could be treated simply asinline-graphic
(if necessary), however fordisp-formula
these need to be captured as a formula since these can have labels:The following elements should be allowed as children of
inline-formula
:alternatives
tex-math
The following elements should be allowed as children of
disp-formula
:label
alternatives
tex-math
eLife allows
disp-formula
in the following elements:p
td
th
eLife allows
inline-formula
as a child of following elements:p
td
th
title
article-title
Note that both
disp-formula
andinline-formula
should be allowed as a descendant of lists (i.e. in alist-item/p
element).Taken from: https://github.com/elifesciences/TextureRequirements/issues/44