Wiki-Quellcode von Formeln einbinden

Version 144.1 von Carina Enke am 14.07.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 (% class="sv-pt-link confluence-link" %)[[MyScript Math>>url:https://webdemo.myscript.com/views/math/index.html||shape="rect" class="external-link"]](%%) oder die LaTeX-Formeleditoren von (% class="sv-pt-link confluence-link" %)[[Matheretter>>url:https://www.matheretter.de/rechner/latex||shape="rect" class="external-link"]](%%) und (% class="sv-pt-link confluence-link" %)[[Zahlenkern>>url:https://www.zahlen-kern.de/editor/||shape="rect" class="external-link"]](%%).
17
18 [[image:attach:Beispiel - Formel_de.png]]
19 {{/layout-cell}}
20
21 {{layout-cell}}
22 {{scroll-ignore}}
23 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Inhalt"}}
24
25
26 {{toc/}}
27
28 **Verwandte Themen**(% class="sv-pt-link confluence-link" %)
29
30
31 * (% 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"]]
32 * (% 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"]]
33 * (% class="sv-pt-link confluence-link" %)[[Formeldarstellung: MathJax>>doc:Testen in OPAL]]
34
35 (% class="sv-pt-link confluence-link" %)**Externe Formeleditoren**
36
37 * (% class="sv-pt-link confluence-link" %)[[MyScript Math>>url:https://webdemo.myscript.com/views/||shape="rect"]]
38 * (% class="sv-pt-link confluence-link" %)[[Matheretter LaTeX-Assisstent>>url:https://www.matheretter.de/rechner/latex||shape="rect"]]
39 * (% class="sv-pt-link confluence-link" %)[[Zahlenkern LaTeX-Formeleditor>>url:https://www.zahlen-kern.de/editor/||shape="rect"]]
40 {{/panel}}
41 {{/scroll-ignore}}
42 {{/layout-cell}}
43 {{/layout-section}}
44
45 {{layout-section ac:type="single"}}
46 {{layout-cell}}
47 == Formelerstellung mit LaTeX ==
48
49 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.
50
51 \\
52 {{/layout-cell}}
53 {{/layout-section}}
54
55 {{layout-section ac:type="two_equal"}}
56 {{layout-cell}}
57 (% style="text-align: center;" %)
58 [[image:attach:Editor - Aufgabenstellung mit Formel_de.png]]//Abb.: LaTeX-Eingabe im ONYX Editor//
59 {{/layout-cell}}
60
61 {{layout-cell}}
62 (% style="text-align: center;" %)
63 [[image:attach:Testrun - Aufgabenstellung mit Formel_de.png]]//Abb.: Formeldarstellung in der Testdurchführung//
64
65 \\
66 {{/layout-cell}}
67 {{/layout-section}}
68
69 {{layout-section ac:type="single"}}
70 {{layout-cell}}
71 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:
72
73 * (((
74 \( Formel \)
75 )))
76 * \[ Formel \]
77 * $$ Formel $$
78
79 Die LaTeX-Syntax $Formel$ wird in ONYX nicht unterstützt.
80
81 {{info}}
82 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"]].
83 {{/info}}
84 {{/layout-cell}}
85 {{/layout-section}}
86
87 {{layout-section ac:type="single"}}
88 {{layout-cell}}
89 == Formelerstellung mit dem Formel-Dialog ==
90
91 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.
92
93 === Eine Formel im Texteditor erstellen ===
94
95 (% class="wrapped" %)
96 |(% class="numberingColumn" %)(% class="numberingColumn" %)
97 (((
98 1
99 )))|(((
100 (% class="content-wrapper" %)
101 (((
102 Klicken Sie im Text-Editor auf die Option Formel [[image:attach:Onyx Icons und Buttons@Icon_Formeleditor.png]].
103 )))
104 )))|(% colspan="2" %)(% colspan="2" %)
105 (((
106 (% class="content-wrapper" %)
107 (((
108 [[image:attach:Editor - Formeldialog aufrufen_de.png]]
109 )))
110 )))
111 |(% class="numberingColumn" %)(% class="numberingColumn" %)
112 (((
113 2
114 )))|(((
115 (% class="content-wrapper" %)
116 (((
117 Geben Sie im Dialog Ihre Formel in das Textfeld in MathML- oder LaTeX-Notation ein.
118
119 Unterhalb des Eingabefeldes wird Ihnen eine Formelvorschau der angegebenen Formel angezeigt.
120
121 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.
122 )))
123 )))|(% colspan="2" %)(% colspan="2" %)
124 (((
125 (% class="content-wrapper" %)
126 (((
127 [[image:attach:Editor - Formeldialog_de.png]]
128 )))
129 )))
130 |(% class="numberingColumn" %)(% class="numberingColumn" %)
131 (((
132 3
133 )))|(((
134 (% class="content-wrapper" %)
135 (((
136 Fügen Sie die Formel mit Klick auf den Button //**Fertig** //in den Testinhalt ein.
137 )))
138 )))|(% colspan="2" %)(% colspan="2" %)
139 (((
140 (% class="content-wrapper" %)
141 (((
142 [[image:attach:Editor - Formeldarstellung_de.png]]
143 )))
144 )))
145
146
147 \\
148 {{/layout-cell}}
149 {{/layout-section}}
150
151 {{layout-section ac:type="single"}}
152 {{layout-cell}}
153 === Bearbeiten einer bestehenden Formel ===
154
155 Möchten Sie bestehende Formel-Inhalte mit dem Formel-Plugin bearbeiten, gehen Sie wie folgt vor:
156
157 (% class="wrapped" %)
158 |(((
159 1
160 )))|(((
161 (% class="content-wrapper" %)
162 (((
163 Klicken Sie auf den Formel-Platzhalter [[image:attach:Icon_Formel.png]] oder markieren Sie die gesamte Formel in LaTeX-Notation.
164 )))
165 )))|(% rowspan="2" %)(% rowspan="2" %)
166 (((
167 (% class="content-wrapper" %)
168 (((
169 [[image:attach:Editor - Formel bearbeiten_de.png]]
170 )))
171 )))
172 |(((
173 2
174 )))|(((
175 (% class="content-wrapper" %)
176 (((
177 Klicken Sie im Text-Editor auf die Option Formel [[image:attach:Icon_Formeleditor.png]].
178 )))
179 )))
180 |(((
181 3
182 )))|(((
183 Die Formel öffnet sich im Formel-Dialog und Sie können die Formel im Textfeld bearbeiten.
184 )))|(% rowspan="2" %)(% rowspan="2" %)
185 (((
186 (% class="content-wrapper" %)
187 (((
188 [[image:attach:Editor - Dialog Formel eingeben_de.png]]
189 )))
190 )))
191 |(((
192 4
193 )))|(% colspan="1" %)(% colspan="1" %)
194 (((
195 Bestätigen Sie Ihre Änderung mit Klick auf den Button //**Fertig**// am Ende des Dialogs.
196 )))
197
198 {{info}}
199 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).
200 {{/info}}
201 {{/layout-cell}}
202 {{/layout-section}}
203
204 {{layout-section ac:type="single"}}
205 {{layout-cell}}
206 == Formelerstellung mit einem Formeleditor ==
207
208 Im Internet finden Sie zahlreiche LaTeX-Formeleditoren, welche eine Unterstützung zur Erstellung von LaTeX-Formeln bieten.
209
210 Eine einfache Bedienung bietet die Webseite [[MyScript>>url:https://webdemo.myscript.com/||shape="rect"]]. Schreiben Sie die gewünschte Formel mittels Maus oder Eingabestift in die Freifläche. Der Formeleditor übersetzt die dargestellte Formel in LaTeX-Schreibweise und zeigt, wenn zur Formel passend, auch einen Graph der erstellten Funktion an.
211
212 [[image:attach:MyScript_de.png]]
213
214 Rechts oben wird die LaTeX-Notation zur eingegebenen Formel angezeigt. Diese können Sie markieren, kopieren und anschließend in die ONYX HTML-Eingabefelder einfügen.
215
216 \\
217
218 Mit den Editoren von (% class="sv-pt-link confluence-link" %)[[Matheretter LaTeX-Assisstent>>url:https://www.matheretter.de/rechner/latex||shape="rect"]] oder der [[Zahlenkern LaTeX-Formeleditor>>url:https://www.zahlen-kern.de/editor/||shape="rect"]] (%%)können Sie Formeln durch vorgefertigte, grafische Formelsymbole zusammenstellen und diese anpassen. Die Formeleditoren übersetzt die dargestellte Formel ebenfalls in LaTeX-Schreibweise, die anschließend in die ONYX HTML-Eingabefelder eingefügt werden kann.
219 {{/layout-cell}}
220 {{/layout-section}}
221
222 {{layout-section ac:type="two_equal"}}
223 {{layout-cell}}
224 (% style="text-align: center;" %)
225 [[image:attach:Matheretter_de.png]]//Abb.: Formel-Eingabe im Matheretter LaTeX-Assisstent//
226 {{/layout-cell}}
227
228 {{layout-cell}}
229 (% style="text-align: center;" %)
230 [[image:attach:LaTeX-Formeleditor_de.png]]//Abb.: Formel-Eingabe im Zahlenkern LaTeX-Formeleditor//
231 {{/layout-cell}}
232 {{/layout-section}}
233
234 {{layout-section ac:type="single"}}
235 {{layout-cell}}
236 == Formelbeispiele ==
237
238 ONYX verwendet das Framework MathJax zur Formeldarstellung. Auf den Demo-Seiten von [[MathJax>>url:http://www.mathjax.org/||shape="rect"]] finden Sie verschiedene [[Beispiele zur Formeleingabe>>url:http://www.mathjax.org/demos/||title="Zur MathJax Demo-Seite" shape="rect"]].
239 {{/layout-cell}}
240 {{/layout-section}}
241
242 {{layout-section ac:type="single"}}
243 {{layout-cell}}
244 [[image:attach:Beispiel - Formel in einer Zeile_de.png]]
245
246 (% style="text-align: center;" %)
247 //Abb.: Beispiel für die Formeldarstellung innerhalb einer Zeile//
248
249 [[image:attach:Beispiel - Formel in eigener Zeile_de.png]]
250
251 (% style="text-align: center;" %)
252 //Abb.: Beispiel für die zentrierte Formeldarstellung in einer separaten Zeile//
253
254 \\
255
256 //
257 //
258
259 \\
260 {{/layout-cell}}
261 {{/layout-section}}
262 {{/layout}}
263 {{/sv-translation}}
264
265 {{sv-translation language="en"}}
266 {{layout}}
267 {{layout-section ac:type="two_right_sidebar"}}
268 {{layout-cell}}
269 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.
270
271 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.
272
273 [[image:attach:Beispiel - Formel_de.png]]
274 {{/layout-cell}}
275
276 {{layout-cell}}
277 {{scroll-ignore}}
278 {{panel title="Content"}}
279
280
281 {{toc/}}
282
283 **Related topics**
284
285 * [[LaTeX help: LaTeX compendium for mathematicians>>url:https://de.wikibooks.org/wiki/LaTeX-Kompendium:_F%C3%BCr_Mathematiker||shape="rect"]]
286 * [[MathML help: Official specification of MathML 3.0>>url:https://www.w3.org/TR/MathML3/||shape="rect"]]
287 * [[Formula presentation: MathJax>>url:https://www.bps-system.de/help/display/ONYXintern/Testen+in+OPAL||shape="rect"]]
288 * [[Formula editor: Daum Equation Editor>>url:http://s1.daumcdn.net/editor/fp/service_nc/pencil/Pencil_chromestore.html||shape="rect"]]
289 * [[Formula editor: MyScript>>url:https://webdemo.myscript.com/||shape="rect"]]
290 {{/panel}}
291 {{/scroll-ignore}}
292 {{/layout-cell}}
293 {{/layout-section}}
294
295 {{layout-section ac:type="single"}}
296 {{layout-cell}}
297 == Formula creation with LaTeX ==
298
299 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.
300
301 \\
302
303 (% class="wrapped" %)
304 |(((
305 (% class="content-wrapper" %)
306 (((
307 [[image:attach:Editor - Aufgabenstellung mit Formel_de.png]]
308
309 (% style="text-align: center;" %)
310 //Fig.: LaTeX input in the ONYX Editor//
311 )))
312 )))|(((
313 (% class="content-wrapper" %)
314 (((
315 [[image:attach:Testrun - Aufgabenstellung mit Formel_de.png]]
316
317 (% style="text-align: center;" %)
318 //Fig.: Formula presentation in a test situation//
319 )))
320 )))
321
322 In order to present mathematical formulas in LaTeX, you need to integrate the formula into your text. This can be done as follows:
323
324 * \( Formula \)
325 * \[ Formula \]
326 * $$ Formula $$
327
328 The LaTeX syntax $formula$ is not supported in ONYX.
329
330 {{info}}
331 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).
332 {{/info}}
333
334 (% style="margin-right: 3.05pt;" %)
335 == Formula creation with the formula dialogue ==
336
337 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.
338
339 === Creating a formula in the text editor ===
340
341 (% class="wrapped" %)
342 |(% class="numberingColumn" %)(% class="numberingColumn" %)
343 (((
344 1
345 )))|(((
346 (% class="content-wrapper" %)
347 (((
348 Select the formula icon [[image:attach:Icon_Formeleditor.png]] form the text editor.
349 )))
350 )))|(((
351 (% class="content-wrapper" %)
352 (((
353 [[image:attach:Editor - Formeldialog aufrufen_de.png]]
354 )))
355 )))
356 |(% class="numberingColumn" %)(% class="numberingColumn" %)
357 (((
358 2
359 )))|(((
360 In the dialogue, enter your formula into the text field in MathML or LaTeX notation.
361
362 Below the input field, you will be given a preview of the formula.
363
364 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.
365 )))|(((
366 (% class="content-wrapper" %)
367 (((
368 [[image:attach:Editor - Formeldialog_de.png]]
369 )))
370 )))
371 |(% class="numberingColumn" %)(% class="numberingColumn" %)
372 (((
373 3
374 )))|(((
375 Add the formula to the test content by clicking on "Finish".
376 )))|(((
377 (% class="content-wrapper" %)
378 (((
379 [[image:attach:Editor - Formeldarstellung_de.png]]
380 )))
381 )))
382
383 \\
384
385 === Editing an existing formula ===
386
387 (% style="letter-spacing: 0.0px;" %)To edit existing formula content using the formula plugin, proceed as follows:
388
389 (% class="wrapped" %)
390 |(% class="numberingColumn" %)(% class="numberingColumn" %)
391 (((
392 1
393 )))|(((
394 (% class="content-wrapper" %)
395 (((
396 Click on the formula placeholder [[image:attach:Icon_Formel.png]]or mark the entire formula in LaTeX notation.
397 )))
398 )))|(% rowspan="2" %)(% rowspan="2" %)
399 (((
400 (% class="content-wrapper" %)
401 (((
402 [[image:attach:Editor - Formel bearbeiten_de.png]]
403 )))
404 )))
405 |(% class="numberingColumn" %)(% class="numberingColumn" %)
406 (((
407 2
408 )))|(((
409 (% class="content-wrapper" %)
410 (((
411 Select the formula icon  [[image:attach:Icon_Formeleditor.png]] from the text editor.
412 )))
413 )))
414 |(% class="numberingColumn" %)(% class="numberingColumn" %)
415 (((
416 3
417 )))|(((
418 The formula will open in the formula dialogue, allowing you to edit the formula in the text field.
419 )))|(% rowspan="2" %)(% rowspan="2" %)
420 (((
421 (% class="content-wrapper" %)
422 (((
423 [[image:attach:Editor - Dialog Formel eingeben_de.png]]
424 )))
425 )))
426 |(% class="numberingColumn" %)(% class="numberingColumn" %)
427 (((
428 4
429 )))|(((
430 Confirm your changes with a click on "Finished" at the end of the dialogue.
431 )))
432
433 \\
434
435 {{info}}
436 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"]].
437 {{/info}}
438
439 == Formula creation with a formula editor ==
440
441 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.
442
443 [[image:attach:Daum Formeleditor_de.png]]
444
445 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.
446
447 == Formula examples ==
448
449 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"]].
450
451 (% style="text-align: center;" %)
452 [[image:attach:Beispiel - Formel in einer Zeile_de.png]]
453
454 (% style="text-align: center;" %)
455 //Fig.: Example of an inlined formula//
456
457 (% style="text-align: center;" %)
458 [[image:attach:Beispiel - Formel in eigener Zeile_de.png]]
459
460 (% style="text-align: center;" %)
461 //Fig.: Example of a formula centred on a separate line//
462 {{/layout-cell}}
463 {{/layout-section}}
464 {{/layout}}
465 {{/sv-translation}}