This PR introduces a new runlatex configuration object extending the original buttons object.
buttons gets essentially renamed to runlatex.texts and has some additional fields not used at learnlatex but for example used to comment default preambles added in the forums.
The runlatex-sk fork is equivalent to setting these to:
runlatex.editorlines=40;
Smaller editor pane
runlatex.adddefaultpreamble=true;
Fragments that look like TeX get the run latex button but a default preamble is "guessed" based on commands used in the content.
runlatex.adddefaultengine=true;
at learnlatex, if a comment such as % !TeX lualatex is not used then pdflatex is assumed, if this is true the default engine is guessed based on packages or commands used.
runlatex.usecaptions=true;
If this is true and the runlatex.texts object has a caption entry, the caption is added above each code fragment that has a button to submit the example, can be used for texts such as edit and run this example
changing the buttons object requires changes in buttons.js in all translations and moving the preincludes object inside runlatex involves editing lessons 12 and 13 in all translations.
This PR introduces a new
runlatex
configuration object extending the originalbuttons
object.buttons
gets essentially renamed torunlatex.texts
and has some additional fields not used at learnlatex but for example used to comment default preambles added in the forums.additional paramteters
The
runlatex-sk
fork is equivalent to setting these to:runlatex.editorlines=40;
Smaller editor panerunlatex.adddefaultpreamble=true;
Fragments that look like TeX get the run latex button but a default preamble is "guessed" based on commands used in the content.runlatex.adddefaultengine=true;
at learnlatex, if a comment such as% !TeX lualatex
is not used thenpdflatex
is assumed, if this is true the default engine is guessed based on packages or commands used.runlatex.usecaptions=true;
If this is true and the runlatex.texts object has a caption entry, the caption is added above each code fragment that has a button to submit the example, can be used for texts such asedit and run this example
changing the buttons object requires changes in buttons.js in all translations and moving the
preincludes
object insiderunlatex
involves editing lessons 12 and 13 in all translations.