If you already have LaTeX code bits inside your texts, the MathType Integrations will show you the actual formulas, và MathType will allow you to edit them in WYSIWYG mode.

Bạn đang xem: Latex support


Caution

LaTeX is disabled in the MathType integration for Moodle if Moodle"s TeX Filter is enabled. This is to lớn avoid conflicts.


If you type LaTeX equations between 2 sets of double dollar signs – $$…$$ – in your HTML editor và you save the page, you will get a page with the math rendered as a readable equation. This behavior means the MathType integration is installed & works behind the scenes to lớn manage the LaTeX.

If you want lớn use MathType to create the LaTeX, place the insertion point between 2 sets of double dollar signs – $$…$$ – then click the toolbar icon to mở cửa MathType you can create the equation graphically within MathType When you close MathType to lớn insert the equation, MathType will insert LaTeX into the page.


Editing existing equations: When you re-edit the page, you will see the $$LaTeX$$ again (that is, not the word LaTeX, but the LaTeX code for the equation). Thus, during editing you see LaTeX, & when displaying the rendered page, you see the image of the formula.


To edit the equation, click inside the LaTeX code và either edit the LaTeX directly or click the toolbar icon to mở cửa MathType then edit it in MathType


Imagine in your course there is a line lượt thích this:

Since $$psi=-frac1varphi$$, this formula can also be written asAfter installing the MathType plugin, students will see:


*

*

If the instructor clicks inside the $$…$$ marks, then clicks the MathType icon to edit the expression, he or she will see:


*

*

Alternatively, the instructor could have simply typed +pi directly into the editor, without opening MathType Either way, after publishing the page, this is what the student will see:


*

So users see formulas and editors see LaTeX most of the time. Editors can edit visually a formula if they want.

This is a great feature, but please be aware that:


You must disable any other plugins that render LaTeX. For example, both Moodle và WordPress come with another TeX filter by default. You must choose which one you want; you cannot use both.

You cannot copy LaTeX documents directly lớn the application"s editor. As a minimum, you must convert all single $ khổng lồ double $$, và previously all double $$ to lớn a centered paragraph. This is the standard format for embedded LaTeX, và most plugins expect this.

Not all LaTeX is supported. There are dozens of LaTeX commands, many of them dealing text formatting & unrelated to lớn math. Therefore, MathType doesn"t support these. Technically, we tư vấn the LaTeX instructions which have a MathML equivalent.


Above, we describe the user experience, but what is important to lưu ý is that formulas are stored & displayed using MathML.

When the author or editor submits the nội dung in the HTML editor (generally when previewing or publishing the page or module), MathType Integrations will search all $$ và convert the LaTeX into MathML. During this process, the plugin stores the MathML and the original LaTeX text written by the author. Thus, when displaying formulas the MathML conversion takes place.


LaTeX is stored inside MathML using the và elements. Using a simple example, the fraction 1212 frac12, we have this MathML code block:

12 frac12 When the HTML editor has been opened again, the stored LaTeX is recovered from the tag & is displayed in the HTML editor area for further editing. What it is important to cảnh báo is that this works even when the LaTeX cannot be converted into MathML. In that case, it is possible to lớn edit the erroneous LaTeX to lớn fix any potential error.


The supported LaTeX is dependent on how well it can be translated from/to MathML. The limits are due khổng lồ the following facts:


Some formulas have no MathML equivalent.

LaTeX is an extensible language with many non-official packages. To add to the difficulty, consider that it is possible in LaTeX to define custom characters & other adjustments.


You might want khổng lồ disable the interpretation of LaTeX, while continuing to lớn use MathType In this case, you will need to edit the JavaScript configuration file và change the line

var _wrs_conf_parseModes = <"latex">;to

var _wrs_conf_parseModes = <>; It is possible to use LaTeX in our integrations as described on this page. Formulas by mặc định are stored in the database as MathML with a LaTeX annotation, but you can control this behavior with the hijadobravoda.comeditorparselatex variable.


If set lớn true, LaTeX is parsed (i.e. Stored in the database) as MathML with a LaTeX annotation.

Xem thêm: Công Thức Tính Lực Tác Dụng Lên Vật Lý Lớp 10, Công Thức Tính Lực Tác Dụng Lên Vật

Example: 1+2LaTeX 1+2 will be parsed/stored as 1+21+2 MathType will render this MathML as a formula image.