Git Product home page Git Product logo

latex2edx's People

Contributors

carsongee avatar evheubel avatar harrow avatar ichuang avatar itsbenweeks avatar jolyonb avatar krastanov avatar msegado avatar shawnmilo avatar teppojouttenus avatar vermiculus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

latex2edx's Issues

Easier install via Docker

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)

Incremental Builds?

Hi All, has anyone given any thought to supporting incremental builds to help speed up build times?

Which OS do you use?

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.

convet a edx course web page into LaTeX

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.

Missing libraries

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

python variable within an equation.

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?

plastex version 2.0 dependency

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.

typo in variable name `xbout`

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).

latex2edx cannot handle any package name other than edXpsl

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.

latex2edx local server for edX instance

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');
          }
      });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.