Equations: Difference between revisions

From ICAR Wiki
mNo edit summary
mNo edit summary
Line 9: Line 9:
For LibreOffice users there are LaTex "addons".  Google "LibreOffice LaTex addons" for options.
For LibreOffice users there are LaTex "addons".  Google "LibreOffice LaTex addons" for options.


The visual editor ("Edit" tab upper right) has a relatively simple equation editor that can be accessed by Insert->More->Math Formula. However, more complex equations such as those involved in matrix algebra will be more successfully marked up using tools such as MSWord or LyX, and copied/pasted.
The visual editor ("Edit" tab upper right) has a relatively simple equation editor that can be accessed by Insert->More->Math Formula. However, more complex equations such as those involving matrix algebra will be more successfully marked up using tools such as MSWord or LyX, and copied/pasted.


= <nowiki><Math></math></nowiki> tags =
= <nowiki><Math></math></nowiki> tags =

Revision as of 01:11, 16 September 2023

Equations in Mediawiki are rendered using the very powerful markup language in LaTex. Standardizing on LaTex creates a uniformly supported protocol by many software platforms. This facilitates the collaboration between multiple authors by eliminating translation errors and providing consistent procedures with minimal impact on markup software choices between authors.

Many modern equation editors, including MSWord, will convert equations to LaTex, and this conversion can be copied/pasted into the wiki article using the source editor ("Edit source" tab upper right). Here is a link to a video showing how to convert equations in MSWord to LaTex.

Alternatively, authors can create equations in the free LaTex editor LyX. The equation markup can then be copied/pasted into a wiki article using the source editor ("Edit source" tab upper right).

For LibreOffice users there are LaTex "addons". Google "LibreOffice LaTex addons" for options.

The visual editor ("Edit" tab upper right) has a relatively simple equation editor that can be accessed by Insert->More->Math Formula. However, more complex equations such as those involving matrix algebra will be more successfully marked up using tools such as MSWord or LyX, and copied/pasted.

<Math></math> tags

The equation markup in LaTex must appear in between the <Math> and </math> tags. For example,

was rendered with,

<math>
R_W = \frac{W_t - W_B}{A_t}\times200 + W_B
</math>

Inline equations

Equations can be rendered in a line of text simply by beginning the part of the sentence with the equation with <math> and ending the equation part with </math>. For example,

  • let be the age at weighing in days
  • let be the weight in kilograms
  • let be the recorded birth weight or a breed standard,

was rendered by,

*let <math>A_t</math> be the age at weighing in days
*let <math>W_t</math> be the weight in kilograms
*let <math>W_B</math> be the recorded birth weight or a breed standard,

Labeling equations

Equations should be numbered and labeled in italics.

Equation 1. Age adjusted weaning weight.