Wiki-Quellcode von Formeln einbinden

Version 153.1 von Yvonne Winkelmann am 20.05.2021

Zeige letzte Bearbeiter
1 {{sv-translation language="de"}}
2 {{layout}}
3 {{layout-section ac:type="single"}}
4 {{layout-cell}}
5 \\
6
7
8
9 {{/layout-cell}}
10 {{/layout-section}}
11
12 {{layout-section ac:type="two_right_sidebar"}}
13 {{layout-cell}}
14 ONYX bietet die Möglichkeit zur Integration von Formeln. Formeln können durch den Autor in MathML- oder LaTeX-Schreibweise eingegeben werden. ONYX nutzt das etablierte [[MathJax>>url:http://www.mathjax.org/||shape="rect"]] Framework zur optimalen Darstellung ihrer Formeln in allen Browseransichten.
15
16 Wünschen Sie einen Formeleditor zur einfachen Zusammenstellung Ihrer Formeln mit automatischer Umwandlung in die Auszeichnungssprache LaTeX, stehen im Internet zahlreiche LaTeX-Formeleditoren zur Verfügung. Eine einfache Bedienung trotz umfangreicher Funktionalität bietet der [[Daum Equation Editor>>url:http://s1.daumcdn.net/editor/fp/service_nc/pencil/Pencil_chromestore.html||shape="rect"]] oder [[MyScript>>url:https://webdemo.myscript.com/||shape="rect"]].
17
18 [[image:attach:Beispiel - Formel_de.png]]
19 {{/layout-cell}}
20
21 {{layout-cell}}
22 (% class="auto-cursor-target" %)
23 \\
24
25 {{scroll-ignore}}
26 (% class="auto-cursor-target" %)
27 \\
28
29 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Inhalt"}}
30
31
32 {{toc/}}
33
34 **Verwandte Themen**(% class="sv-pt-link confluence-link" %)
35
36
37 * (% class="sv-pt-link confluence-link" %)[[LaTeX-Hilfe: LaTeX-Kompendium für Mathematiker>>url:https://de.wikibooks.org/wiki/LaTeX-Kompendium:_F%C3%BCr_Mathematiker||shape="rect"]]
38 * (% class="sv-pt-link confluence-link" %)[[MathML-Hilfe: Offizielle Spezifikation von MathML 3.0>>url:http://www.w3.org/TR/MathML3/||rel="nofollow" shape="rect" class="external text"]]
39 * (% class="sv-pt-link confluence-link" %)[[Formeldarstellung: MathJax>>doc:Testen in OPAL]]
40
41 (% class="sv-pt-link confluence-link" %)**Externe Formeleditoren**
42
43 * (% class="sv-pt-link confluence-link" %)[[MyScript>>url:https://webdemo.myscript.com||shape="rect"]][[ Math>>url:https://webdemo.myscript.com/views/math/index.html||shape="rect"]]
44 * (% class="sv-pt-link confluence-link" %)[[Matheretter LaTeX-Assisstent>>url:https://www.matheretter.de/rechner/latex||shape="rect"]]
45 * (% class="sv-pt-link confluence-link" %)[[Zahlenkern LaTeX-Formeleditor>>url:https://www.zahlen-kern.de/editor/||shape="rect"]]
46 * (% class="sv-pt-link confluence-link" %)[[Daum Equation Editor>>url:http://s1.daumcdn.net/editor/fp/service_nc/pencil/Pencil_chromestore.html||shape="rect"]]
47 {{/panel}}
48
49 (% class="auto-cursor-target" %)
50 \\
51 {{/scroll-ignore}}
52
53 (% class="auto-cursor-target" %)
54 \\
55 {{/layout-cell}}
56 {{/layout-section}}
57
58 {{layout-section ac:type="single"}}
59 {{layout-cell}}
60 == Formelerstellung mit LaTeX ==
61
62 Der ONYX Editor bietet für alle Autoreneingaben eine LaTeX Unterstützung. Über den im ONYX Editor integrierten HTML Editor können Formeln mithilfe der Auszeichnungssprache LaTeX in alle Aufgabenbereiche: der Aufgabenstellung, den Antwortalternativen oder im Feedback eingefügt werden. Die Darstellung der Formeln erfolgt mit dem etablierten [[MathJax-Framework>>url:http://www.mathjax.org/||title="Weitere Informationen zu MathJax" shape="rect"]]. Ihre Formel wird dabei automatisch in eine professionell formatierte Formel konvertiert.
63
64 \\
65
66 (% class="wrapped" %)
67 |(((
68 (% class="content-wrapper" %)
69 (((
70 [[image:attach:Editor - Aufgabenstellung mit Formel_de.png]]
71
72 (% style="text-align: center;" %)
73 //Abb.: LaTeX-Eingabe im ONYX Editor
74 //
75 )))
76 )))|(((
77 (% class="content-wrapper" %)
78 (((
79 [[image:attach:Testrun - Aufgabenstellung mit Formel_de.png]]
80
81 (% style="text-align: center;" %)
82 //Abb.: Formeldarstellung in der Testdurchführung//
83 )))
84 )))
85
86 Um Mathematische Formeln in LaTeX darzustellen, muss man lediglich die Formel in seinen Text integrieren. Eine Formel kann wie folgt in den Text integriert werden:
87
88 * (((
89 \( Formel \)
90 )))
91 * \[ Formel \]
92 * $$ Formel $$
93
94 Die LaTeX-Syntax $Formel$ wird in ONYX nicht unterstützt.
95
96 {{info}}
97 Im Internet finden sich umfangreiche Materialien zur Formelerzeugung mit LaTeX. Ausführliche Beispiele finden sich u. a. im [[Wikibook: LaTeX-Kompendium für Mathematiker>>url:https://de.wikibooks.org/wiki/LaTeX-Kompendium:_F%C3%BCr_Mathematiker||shape="rect"]].
98 {{/info}}
99
100 == Formelerstellung mit dem Formel-Dialog ==
101
102 Neben der Auszeichnungssprache LaTeX können mathematische Formeln und komplexe Ausdrücke auch mit der Mathematical Markup Language (MathML) eingefügt werden. Für eine einfache Eingabe steht für den im ONYX Editor integrierten HTML-Editor ein spezielles Formel-Plugin zur Verfügung.
103
104 === Eine Formel im Texteditor erstellen ===
105
106 (% class="wrapped relative-table" style="width: 87.7012%;" %)
107 |(% class="numberingColumn" %)(% class="numberingColumn" %)
108 (((
109 1
110 )))|(((
111 (% class="content-wrapper" %)
112 (((
113 Klicken Sie im Text-Editor auf die Option Formel [[image:attach:Onyx Icons und Buttons@Icon_Formeleditor.png]].
114 )))
115 )))|(% colspan="2" %)(% colspan="2" %)
116 (((
117 (% class="content-wrapper" %)
118 (((
119 [[image:attach:Editor - Formeldialog aufrufen_de.png]]
120 )))
121 )))
122 |(% class="numberingColumn" %)(% class="numberingColumn" %)
123 (((
124 2
125 )))|(((
126 (% class="content-wrapper" %)
127 (((
128 Geben Sie im Dialog Ihre Formel in das Textfeld in MathML- oder LaTeX-Notation ein.
129
130 Unterhalb des Eingabefeldes wird Ihnen eine Formelvorschau der angegebenen Formel angezeigt.
131
132 Für LaTeX-Eingaben können Sie per Radiobutton wählen, ob die Formel in LaTeX-Notation oder als Platzhalter in den Text-Editor eingefügt werden soll.
133 )))
134 )))|(% colspan="2" %)(% colspan="2" %)
135 (((
136 (% class="content-wrapper" %)
137 (((
138 [[image:attach:Editor - Formeldialog_de.png]]
139 )))
140 )))
141 |(% class="numberingColumn" %)(% class="numberingColumn" %)
142 (((
143 3
144 )))|(((
145 (% class="content-wrapper" %)
146 (((
147 Fügen Sie die Formel mit Klick auf den Button //**Fertig** //in den Testinhalt ein.
148 )))
149 )))|(% colspan="2" %)(% colspan="2" %)
150 (((
151 (% class="content-wrapper" %)
152 (((
153 [[image:attach:Editor - Formeldarstellung_de.png]]
154 )))
155 )))
156
157 === Bearbeiten einer bestehenden Formel ===
158
159 Möchten Sie bestehende Formel-Inhalte mit dem Formel-Plugin bearbeiten, gehen Sie wie folgt vor:
160
161 (% class="wrapped" %)
162 |(% class="numberingColumn" %)(% class="numberingColumn" %)
163 (((
164 1
165 )))|(((
166 (% class="content-wrapper" %)
167 (((
168 Klicken Sie auf den Formel-Platzhalter [[image:attach:Onyx Icons und Buttons@Icon_Formel.png]] oder markieren Sie die gesamte Formel in LaTeX-Notation.
169 )))
170 )))|(% rowspan="2" %)(% rowspan="2" %)
171 (((
172 (% class="content-wrapper" %)
173 (((
174 [[image:attach:Editor - Formel bearbeiten_de.png]]
175 )))
176 )))
177 |(% class="numberingColumn" %)(% class="numberingColumn" %)
178 (((
179 2
180 )))|(((
181 (% class="content-wrapper" %)
182 (((
183 Klicken Sie im Text-Editor auf die Option Formel [[image:attach:Onyx Icons und Buttons@Icon_Formeleditor.png]].
184 )))
185 )))
186 |(% class="numberingColumn" %)(% class="numberingColumn" %)
187 (((
188 3
189 )))|(((
190 Die Formel öffnet sich im Formel-Dialog und Sie können die Formel im Textfeld bearbeiten.
191 )))|(% rowspan="2" %)(% rowspan="2" %)
192 (((
193 (% class="content-wrapper" %)
194 (((
195 [[image:attach:Editor - Dialog Formel eingeben_de.png]]
196 )))
197 )))
198 |(% class="numberingColumn" %)(% class="numberingColumn" %)
199 (((
200 4
201 )))|(% colspan="1" %)(% colspan="1" %)
202 (((
203 Bestätigen Sie Ihre Änderung mit Klick auf den Button //**Fertig**// am Ende des Dialogs.
204 )))
205
206 \\
207
208 {{info}}
209 Im Internet finden sich umfangreiche Materialien zur Formelerzeugung mit MathML. Eine ausführliche Beschreibung bietet die [[Offizielle Spezifikation von MathML 3.0>>url:http://www.w3.org/TR/MathML3/||rel="nofollow" shape="rect" class="external text"]] (englisch).
210 {{/info}}
211
212 == Formelerstellung mit einem Formeleditor ==
213
214 Im Internet finden Sie zahlreiche LaTeX-Formeleditoren, welche eine Unterstützung zur Erstellung von LaTeX-Formeln bieten. Eine einfache Bedienung trotz umfangreicher Funktionalität bietet der [[Daum Equation Editor>>url:http://s1.daumcdn.net/editor/fp/service_nc/pencil/Pencil_chromestore.html||shape="rect"]]. Hierbei handelt es sich um eine Web-Applikation, welche auch als Browser-Plugin für Google-Chrome zur Verfügung steht. Alternativ kann auch [[MyScript>>url:https://webdemo.myscript.com/||shape="rect"]] genutzt werden.
215
216 [[image:attach:Daum Formeleditor_de.png]]
217
218 Die Bedienung des Daum Formeleditors ist ähnlich der Formeleditoren von Textprogrammen. Mathematische Formeln können durch vorgefertigte, grafische Formelsymbole zusammengestellt und angepasst werden. Der Formeleditor übersetzt die dargestellte Formel in LaTeX-Schreibweise. Die LaTeX-Notation können Sie markieren, kopieren und anschließend in die ONYX HTML-Eingabefelder einfügen.
219
220 == Formelbeispiele ==
221
222 ONYX verwendet das Framework MathJax zur Formeldarstellung. Auf den Demo-Seiten von MathJax finden Sie verschiedene [[Beispiele zur Formeleingabe>>url:http://www.mathjax.org/demos/||title="Zur MathJax Demo-Seite" shape="rect"]].
223
224 [[image:attach:Beispiel - Formel in einer Zeile_de.png]]
225
226 (% style="text-align: center;" %)
227 //Abb.: Beispiel für die Formeldarstellung innerhalb einer Zeile//
228
229 [[image:attach:Beispiel - Formel in eigener Zeile_de.png]]
230
231 (% style="text-align: center;" %)
232 //Abb.: Beispiel für die zentrierte Formeldarstellung in einer separaten Zeile//
233 {{/layout-cell}}
234 {{/layout-section}}
235 {{/layout}}
236 {{/sv-translation}}
237
238 {{sv-translation language="en"}}
239 {{layout}}
240 {{layout-section ac:type="two_right_sidebar"}}
241 {{layout-cell}}
242 ONYX offers authors the possibility to integrate formulas in MathML or LaTeX notation. ONYX uses the established [[MathJax>>url:http://www.mathjax.org/||shape="rect"]] framework for optimal presentation of your formulas in all browser views.
243
244 For an easy compilation and automatic conversion of your formulas into the LaTeX markup language, several LaTeX formula editors can be downloaded from the internet. The [[Daum Equation Editor>>url:http://s1.daumcdn.net/editor/fp/service_nc/pencil/Pencil_chromestore.html||shape="rect"]] or [[MyScript>>url:https://webdemo.myscript.com/||shape="rect"]], for example, stand out due to their simplicity and extensive functionality.
245
246 [[image:attach:Beispiel - Formel_de.png]]
247 {{/layout-cell}}
248
249 {{layout-cell}}
250 {{scroll-ignore}}
251 {{panel title="Content"}}
252
253
254 {{toc/}}
255
256 **Related topics**
257
258 * [[LaTeX help: LaTeX compendium for mathematicians>>url:https://de.wikibooks.org/wiki/LaTeX-Kompendium:_F%C3%BCr_Mathematiker||shape="rect"]]
259 * [[MathML help: Official specification of MathML 3.0>>url:https://www.w3.org/TR/MathML3/||shape="rect"]]
260 * [[Formula presentation: MathJax>>url:https://www.bps-system.de/help/display/ONYXintern/Testen+in+OPAL||shape="rect"]]
261 * [[Formula editor: Daum Equation Editor>>url:http://s1.daumcdn.net/editor/fp/service_nc/pencil/Pencil_chromestore.html||shape="rect"]]
262 * [[Formula editor: MyScript>>url:https://webdemo.myscript.com/||shape="rect"]]
263 {{/panel}}
264 {{/scroll-ignore}}
265 {{/layout-cell}}
266 {{/layout-section}}
267
268 {{layout-section ac:type="single"}}
269 {{layout-cell}}
270 == Formula creation with LaTeX ==
271
272 The ONYX Editor provides LaTeX support for all author inputs. Via the HTML Editor, which is part of the ONYX Editor, you can integrate formulas into all task areas, i. e. task texts, alternative answers, or feedback, using the LaTeX markup language. The formulas will be displayed with the established [[MathJax Framework>>url:http://www.mathjax.org/||shape="rect"]]. Your formula will also be automatically converted to a professionally formatted formula.
273
274 \\
275
276 (% class="wrapped" %)
277 |(((
278 (% class="content-wrapper" %)
279 (((
280 [[image:attach:Editor - Aufgabenstellung mit Formel_de.png]]
281
282 (% style="text-align: center;" %)
283 //Fig.: LaTeX input in the ONYX Editor//
284 )))
285 )))|(((
286 (% class="content-wrapper" %)
287 (((
288 [[image:attach:Testrun - Aufgabenstellung mit Formel_de.png]]
289
290 (% style="text-align: center;" %)
291 //Fig.: Formula presentation in a test situation//
292 )))
293 )))
294
295 In order to present mathematical formulas in LaTeX, you need to integrate the formula into your text. This can be done as follows:
296
297 * \( Formula \)
298 * \[ Formula \]
299 * $$ Formula $$
300
301 The LaTeX syntax $formula$ is not supported in ONYX.
302
303 {{info}}
304 On the internet, you will find extensive material for generating formulas with LaTeX. More detailed examples can, for example, be found in the [[Wikibook: LaTeX-Kompendium für Mathematiker>>url:https://de.wikibooks.org/wiki/LaTeX-Kompendium:_F%C3%BCr_Mathematiker||shape="rect"]] (German).
305 {{/info}}
306
307 (% style="margin-right: 3.05pt;" %)
308 == Formula creation with the formula dialogue ==
309
310 Apart from the markup language LaTeX, mathematical formulas and complex expressions can also be integrated using the Mathematical Markup Language (MathML). For simple input, a special formula plugin is available for the HTML Editor integrated into the ONYX Editor.
311
312 === Creating a formula in the text editor ===
313
314 (% class="wrapped" %)
315 |(% class="numberingColumn" %)(% class="numberingColumn" %)
316 (((
317 1
318 )))|(((
319 (% class="content-wrapper" %)
320 (((
321 Select the formula icon [[image:attach:Icon_Formeleditor.png]] form the text editor.
322 )))
323 )))|(((
324 (% class="content-wrapper" %)
325 (((
326 [[image:attach:Editor - Formeldialog aufrufen_de.png]]
327 )))
328 )))
329 |(% class="numberingColumn" %)(% class="numberingColumn" %)
330 (((
331 2
332 )))|(((
333 In the dialogue, enter your formula into the text field in MathML or LaTeX notation.
334
335 Below the input field, you will be given a preview of the formula.
336
337 For LaTeX input, you can choose (by radio button) whether the formula should be inserted into the text editor in LaTeX notation or as a placeholder.
338 )))|(((
339 (% class="content-wrapper" %)
340 (((
341 [[image:attach:Editor - Formeldialog_de.png]]
342 )))
343 )))
344 |(% class="numberingColumn" %)(% class="numberingColumn" %)
345 (((
346 3
347 )))|(((
348 Add the formula to the test content by clicking on "Finish".
349 )))|(((
350 (% class="content-wrapper" %)
351 (((
352 [[image:attach:Editor - Formeldarstellung_de.png]]
353 )))
354 )))
355
356 \\
357
358 === Editing an existing formula ===
359
360 (% style="letter-spacing: 0.0px;" %)To edit existing formula content using the formula plugin, proceed as follows:
361
362 (% class="wrapped" %)
363 |(% class="numberingColumn" %)(% class="numberingColumn" %)
364 (((
365 1
366 )))|(((
367 (% class="content-wrapper" %)
368 (((
369 Click on the formula placeholder [[image:attach:Icon_Formel.png]]or mark the entire formula in LaTeX notation.
370 )))
371 )))|(% rowspan="2" %)(% rowspan="2" %)
372 (((
373 (% class="content-wrapper" %)
374 (((
375 [[image:attach:Editor - Formel bearbeiten_de.png]]
376 )))
377 )))
378 |(% class="numberingColumn" %)(% class="numberingColumn" %)
379 (((
380 2
381 )))|(((
382 (% class="content-wrapper" %)
383 (((
384 Select the formula icon  [[image:attach:Icon_Formeleditor.png]] from the text editor.
385 )))
386 )))
387 |(% class="numberingColumn" %)(% class="numberingColumn" %)
388 (((
389 3
390 )))|(((
391 The formula will open in the formula dialogue, allowing you to edit the formula in the text field.
392 )))|(% rowspan="2" %)(% rowspan="2" %)
393 (((
394 (% class="content-wrapper" %)
395 (((
396 [[image:attach:Editor - Dialog Formel eingeben_de.png]]
397 )))
398 )))
399 |(% class="numberingColumn" %)(% class="numberingColumn" %)
400 (((
401 4
402 )))|(((
403 Confirm your changes with a click on "Finished" at the end of the dialogue.
404 )))
405
406 \\
407
408 {{info}}
409 On the internet, you will find extensive material for generating formulas with MathML. A detailed description is provided by the [[Official specification of MathML 3.0>>url:https://www.w3.org/TR/MathML3/||shape="rect"]].
410 {{/info}}
411
412 == Formula creation with a formula editor ==
413
414 On the Internet, you can find numerous LaTeX formula editors which provide support for the creation of LaTeX formulas. The [[Daum Equation Editor>>url:http://s1.daumcdn.net/editor/fp/service_nc/pencil/Pencil_chromestore.html||shape="rect"]], for example, stands out due to its simplicity and extensive functionality. It comes as a web application, which is also available as a browser plugin for Google Chrome. Alternatively, [[MyScript >>url:https://webdemo.myscript.com/||shape="rect"]]can also be used.
415
416 [[image:attach:Daum Formeleditor_de.png]]
417
418 The operation of the Daum Equation Editor is similar to the formula editors of text programmes. Mathematical formulas can be compiled and adapted thanks to ready-to-use, graphical formula symbols. The formula editor translates the displayed formula into LaTeX notation, which can then be selected, copied and pasted to the ONYX HTML input fields.
419
420 == Formula examples ==
421
422 ONYX uses the MathJax framework to display formulas. On the demo pages of MathJax, you will find several [[examples on how to insert formulas>>url:https://www.mathjax.org/||shape="rect"]].
423
424 (% style="text-align: center;" %)
425 [[image:attach:Beispiel - Formel in einer Zeile_de.png]]
426
427 (% style="text-align: center;" %)
428 //Fig.: Example of an inlined formula//
429
430 (% style="text-align: center;" %)
431 [[image:attach:Beispiel - Formel in eigener Zeile_de.png]]
432
433 (% style="text-align: center;" %)
434 //Fig.: Example of a formula centred on a separate line//
435 {{/layout-cell}}
436 {{/layout-section}}
437 {{/layout}}
438 {{/sv-translation}}