Refactor runlatex javascript to fully merge with the fork used at latex.org and texwelt.de #155
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a new
runlatexconfiguration object extending the originalbuttonsobject.buttonsgets essentially renamed torunlatex.textsand has some additional fields not used at learnlatex but for example used to comment default preambles added in the forums.additional paramteters
The
runlatex-skfork 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 lualatexis not used thenpdflatexis 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 examplechanging the buttons object requires changes in buttons.js in all translations and moving the
preincludesobject insiderunlatexinvolves editing lessons 12 and 13 in all translations.