Wiki-Quellcode von Formeln einbinden

Version 140.1 von Carina Enke am 02.08.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 (% style="text-align: center;" %)
215 //Abb.: Formel-Eingabe mit MyScript
216 //
217
218 Im oberen rechten Seitenbereich wird die LaTeX-Notation zur eingegebenen Formel angezeigt. Diese können Sie markieren, kopieren und anschließend in die ONYX HTML-Eingabefelder einfügen.
219
220 \\
221
222 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.
223 {{/layout-cell}}
224 {{/layout-section}}
225
226 {{layout-section ac:type="two_equal"}}
227 {{layout-cell}}
228 (% style="text-align: center;" %)
229 [[image:attach:Matheretter_de.png]]//Abb.: Formel-Eingabe im Matheretter LaTeX-Assisstent//
230 {{/layout-cell}}
231
232 {{layout-cell}}
233 (% style="text-align: center;" %)
234 [[image:attach:LaTeX-Formeleditor_de.png]]//Abb.: Formel-Eingabe im Zahlenkern LaTeX-Formeleditor//
235 {{/layout-cell}}
236 {{/layout-section}}
237
238 {{layout-section ac:type="single"}}
239 {{layout-cell}}
240 == Formelbeispiele ==
241
242 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"]].
243 {{/layout-cell}}
244 {{/layout-section}}
245
246 {{layout-section ac:type="single"}}
247 {{layout-cell}}
248 [[image:attach:Beispiel - Formel in einer Zeile_de.png]]
249
250 (% style="text-align: center;" %)
251 //Abb.: Beispiel für die Formeldarstellung innerhalb einer Zeile//
252
253 [[image:attach:Beispiel - Formel in eigener Zeile_de.png]]
254
255 (% style="text-align: center;" %)
256 //Abb.: Beispiel für die zentrierte Formeldarstellung in einer separaten Zeile//
257
258 \\
259
260 //
261 //
262
263 \\
264 {{/layout-cell}}
265 {{/layout-section}}
266 {{/layout}}
267 {{/sv-translation}}
268
269 {{sv-translation language="en"}}
270 {{layout}}
271 {{layout-section ac:type="two_right_sidebar"}}
272 {{layout-cell}}
273 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.
274
275 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.
276
277 [[image:attach:Beispiel - Formel_de.png]]
278 {{/layout-cell}}
279
280 {{layout-cell}}
281 {{scroll-ignore}}
282 {{panel title="Content"}}
283
284
285 {{toc/}}
286
287 **Related topics**
288
289 * [[LaTeX help: LaTeX compendium for mathematicians>>url:https://de.wikibooks.org/wiki/LaTeX-Kompendium:_F%C3%BCr_Mathematiker||shape="rect"]]
290 * [[MathML help: Official specification of MathML 3.0>>url:https://www.w3.org/TR/MathML3/||shape="rect"]]
291 * [[Formula presentation: MathJax>>url:https://www.bps-system.de/help/display/ONYXintern/Testen+in+OPAL||shape="rect"]]
292 * [[Formula editor: Daum Equation Editor>>url:http://s1.daumcdn.net/editor/fp/service_nc/pencil/Pencil_chromestore.html||shape="rect"]]
293 * [[Formula editor: MyScript>>url:https://webdemo.myscript.com/||shape="rect"]]
294 {{/panel}}
295 {{/scroll-ignore}}
296 {{/layout-cell}}
297 {{/layout-section}}
298
299 {{layout-section ac:type="single"}}
300 {{layout-cell}}
301 == Formula creation with LaTeX ==
302
303 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.
304
305 \\
306
307 (% class="wrapped" %)
308 |(((
309 (% class="content-wrapper" %)
310 (((
311 [[image:attach:Editor - Aufgabenstellung mit Formel_de.png]]
312
313 (% style="text-align: center;" %)
314 //Fig.: LaTeX input in the ONYX Editor//
315 )))
316 )))|(((
317 (% class="content-wrapper" %)
318 (((
319 [[image:attach:Testrun - Aufgabenstellung mit Formel_de.png]]
320
321 (% style="text-align: center;" %)
322 //Fig.: Formula presentation in a test situation//
323 )))
324 )))
325
326 In order to present mathematical formulas in LaTeX, you need to integrate the formula into your text. This can be done as follows:
327
328 * \( Formula \)
329 * \[ Formula \]
330 * $$ Formula $$
331
332 The LaTeX syntax $formula$ is not supported in ONYX.
333
334 {{info}}
335 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).
336 {{/info}}
337
338 (% style="margin-right: 3.05pt;" %)
339 == Formula creation with the formula dialogue ==
340
341 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.
342
343 === Creating a formula in the text editor ===
344
345 (% class="wrapped" %)
346 |(% class="numberingColumn" %)(% class="numberingColumn" %)
347 (((
348 1
349 )))|(((
350 (% class="content-wrapper" %)
351 (((
352 Select the formula icon [[image:attach:Icon_Formeleditor.png]] form the text editor.
353 )))
354 )))|(((
355 (% class="content-wrapper" %)
356 (((
357 [[image:attach:Editor - Formeldialog aufrufen_de.png]]
358 )))
359 )))
360 |(% class="numberingColumn" %)(% class="numberingColumn" %)
361 (((
362 2
363 )))|(((
364 In the dialogue, enter your formula into the text field in MathML or LaTeX notation.
365
366 Below the input field, you will be given a preview of the formula.
367
368 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.
369 )))|(((
370 (% class="content-wrapper" %)
371 (((
372 [[image:attach:Editor - Formeldialog_de.png]]
373 )))
374 )))
375 |(% class="numberingColumn" %)(% class="numberingColumn" %)
376 (((
377 3
378 )))|(((
379 Add the formula to the test content by clicking on "Finish".
380 )))|(((
381 (% class="content-wrapper" %)
382 (((
383 [[image:attach:Editor - Formeldarstellung_de.png]]
384 )))
385 )))
386
387 \\
388
389 === Editing an existing formula ===
390
391 (% style="letter-spacing: 0.0px;" %)To edit existing formula content using the formula plugin, proceed as follows:
392
393 (% class="wrapped" %)
394 |(% class="numberingColumn" %)(% class="numberingColumn" %)
395 (((
396 1
397 )))|(((
398 (% class="content-wrapper" %)
399 (((
400 Click on the formula placeholder [[image:attach:Icon_Formel.png]]or mark the entire formula in LaTeX notation.
401 )))
402 )))|(% rowspan="2" %)(% rowspan="2" %)
403 (((
404 (% class="content-wrapper" %)
405 (((
406 [[image:attach:Editor - Formel bearbeiten_de.png]]
407 )))
408 )))
409 |(% class="numberingColumn" %)(% class="numberingColumn" %)
410 (((
411 2
412 )))|(((
413 (% class="content-wrapper" %)
414 (((
415 Select the formula icon  [[image:attach:Icon_Formeleditor.png]] from the text editor.
416 )))
417 )))
418 |(% class="numberingColumn" %)(% class="numberingColumn" %)
419 (((
420 3
421 )))|(((
422 The formula will open in the formula dialogue, allowing you to edit the formula in the text field.
423 )))|(% rowspan="2" %)(% rowspan="2" %)
424 (((
425 (% class="content-wrapper" %)
426 (((
427 [[image:attach:Editor - Dialog Formel eingeben_de.png]]
428 )))
429 )))
430 |(% class="numberingColumn" %)(% class="numberingColumn" %)
431 (((
432 4
433 )))|(((
434 Confirm your changes with a click on "Finished" at the end of the dialogue.
435 )))
436
437 \\
438
439 {{info}}
440 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"]].
441 {{/info}}
442
443 == Formula creation with a formula editor ==
444
445 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.
446
447 [[image:attach:Daum Formeleditor_de.png]]
448
449 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.
450
451 == Formula examples ==
452
453 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"]].
454
455 (% style="text-align: center;" %)
456 [[image:attach:Beispiel - Formel in einer Zeile_de.png]]
457
458 (% style="text-align: center;" %)
459 //Fig.: Example of an inlined formula//
460
461 (% style="text-align: center;" %)
462 [[image:attach:Beispiel - Formel in eigener Zeile_de.png]]
463
464 (% style="text-align: center;" %)
465 //Fig.: Example of a formula centred on a separate line//
466 {{/layout-cell}}
467 {{/layout-section}}
468 {{/layout}}
469 {{/sv-translation}}