mitocw / latex2edx Goto Github PK
View Code? Open in Web Editor NEWlatex2edx system for creating edX courses
License: GNU Affero General Public License v3.0
latex2edx system for creating edX courses
License: GNU Affero General Public License v3.0
A GitHub issue isn't exactly the right forum for this, but I figured it would be helpful to link a Docker-based installer in case anyone is struggling to get the right dependencies installed these days:
https://github.com/msegado/l2e-docker
(ODL, feel free to roll all/part of the above into this repo if it would be helpful)
Hi All, has anyone given any thought to supporting incremental builds to help speed up build times?
I am trying to install latex2edx on ubuntu (18.04), but I am having difficulties.
Which OS are you using? I am trying to actually create a docker container, so it is easier to use another os. I tried your documentation and seem to fail succeding.
Would be great to post a concrete example that shows how to do it. The README, somehow does not work.
There should be an option for the /includegraphics
command to include alt
and longdesc
attributes.
Dear,
I am preparing a Calculus course, and I would like to adapt some resources from the course MITx: 18.01.1x Calculus 1A.
Here I am wondering whether it is possible to convert files in the other direction, i.e., from a web page from edx into a LaTeX file.
Thank your very much,
Best,
Hongying
PS: Greeting from Sichuan University, Chengdu, China.
The LaTeX non-breaking space character, ~, is presently not handled by the abox script.
When I try to convert a file using latex2edx on my MacOSX, I see the following errors. What am I missing?
$ latex2edx filename.tex
WARNING: Cannot find unidecode lib. Expect issues with index sorting
WARNING: No Python version of xcolor.sty was found
WARNING: Could not find any file named: xcolor.sty
WARNING: unrecognized command/environment: color
/bin/sh: dvipng: command not found
/bin/sh: dvi2bitmap: command not found
/bin/sh: gs: command not found
/bin/sh: gs: command not found
/bin/sh: cgpdfpng: command not found
If x1 is the number of variable in python,
[ \lim_{\x \to $x1} f(x)]
does not convert $x1 properly.
Is there any way to show it correctly?
Several content creators have mentioned issues with their LaTeX not generating xml without first appending and prepending newlines to their latex2edx specific commands.
During the installation process, plastex 2.0 is installed automatically, which is dependent on Python3, whereas latex2edx depends on python 2.7. While the installation completes without an error (with ptyhon 2.7, plastex 2.0), there is a runtime error coming from the version mismatch.
By installing an earlier version of plastex (e.g., 1.0), the package runs as expected. However, we have not checked if there are bugs fixed in the plastex package between 1.0 and 2.0, and if running an earlier version of plastex could affect latex2edx performance.
The function set_about
has a variable xabout
. Inside the function, there is a typo, xbout
. However, this function is never called (at least within xbundle
), even in tests.
Should the function be removed, or the typo fixed? Also, this same typo exists in all versions of xbundle I've seen (xbundle, latex2edx, edx2course_axis).
From one of our users:
It seems that latex2edx cannot handle any package name other than edXpsl. I modified this package and renamed it, but I was unable to use the renamed package. Even when I copied the original package and simply renamed it, I was unable to use the renamed package that was identical to edXpsl. It may be convenient to allow users to use a package name that differs from edXpsl. Note that pdflatex worked fine regardless of the package name, but latex2edx did not.
My own edx https://sandbox.etu.ru uses xblocks with latex https://studio-input-filter.mitx.mit.edu/latex2edx?raw=1 to compile mathcode. What can I do to make compilation on the local server? After installing repo mitocw/latex2edx what should I do?
$.ajax({
url: "https://studio-input-filter.mitx.mit.edu/latex2edx?raw=1",
type: "POST",
data: "" + hlsdata,
crossDomain: true,
processData: false,
success: function(data) {
xml = data.xml;
if (xml.length == 0) {
alert('Conversion failed! error:' + data.message);
} else {
// If a parent CodeMirror editor is open (LaTeX problem being edited), set the text
// there. Otherwise, set the text in the active TinyMCE Editor for the case
// of an HTML component being edited.
var parentCodemirrorEditor = el.closest('.xblock-studio_view').find('.CodeMirror-wrap');
if (parentCodemirrorEditor.length > 0) {
parentCodemirrorEditor[0].CodeMirror.setValue(xml);
}
else if (window.tinyMCE !== undefined && window.tinyMCE.activeEditor !== undefined) {
window.tinyMCE.activeEditor.setContent(xml);
}
save_hls(el);
}
},
error: function() {
alert('Error: cannot connect to latex2edx server');
}
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.