Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ConteXt support #66

Closed
PhML opened this issue Feb 28, 2014 · 14 comments
Closed

Add ConteXt support #66

PhML opened this issue Feb 28, 2014 · 14 comments

Comments

@PhML
Copy link

PhML commented Feb 28, 2014

ConTeXt is a TeX macro package similar to LaTeX. It is included into TeXlive although it has its own standalone installation (more often updated and "is self-contained and can happily coexist alongside another installed TeX distribution").
It is based on LuaTeX (it has the same authors) and compiles to a pdf file simply by running "context myfile".
Having the choice to run either LaTeX or ConTeXt in ShareLaTeX would be nice.

@jpallen jpallen added enhancement and removed bug labels Feb 28, 2014
@jpallen
Copy link
Contributor

jpallen commented Feb 28, 2014

This should be easy to implement. It will need to be added into sharelatex/clsi-sharelatex as a compiler option, with the appropriate command. A tricky part might be whether it can be made to run with latexmk - does anyone know if it can work with it?

Then it will need adding into sharelatex/web-sharelatex as an option alongside the other compilers. This should be trivial.

@cwoac
Copy link
Contributor

cwoac commented Mar 2, 2014

iirc context produces pdf output, so it may be as simple as calling latexmk with -pdflatex=context

@PhML
Copy link
Author

PhML commented Mar 3, 2014

@cwoac : I tried, it didn't work.
With -latex=context it compiles, but it is not made for that: latexmk do multiple passes while context already do everything needed.
In the end, it complains:

Latexmk: Did not finish processing file 'myfile.tex':
Log file 'myfile.log' appears to have wrong format.

Of course, latexmk expects LaTeX files. In fact, run context is equivalent to run latexmk except that it doesn't seem to have the -pvc option:
Continuously compile/watch source files in ConTEXt? from TeX stackexchange.

@jpallen
Copy link
Contributor

jpallen commented Mar 3, 2014

We use latexmk to make sure that latex is run enough times, that bibtex is run, etc. If context manages these things itself then running it directly should be fine.

@heitzmann
Copy link

Any news on Context support in Shalatex? It's the only feature holding me back from using it to write classroom material and share with colleagues.

@jpallen
Copy link
Contributor

jpallen commented Feb 24, 2015

This isn't as simple as we original hoped, sorry. It's unlikely that we'll implement this in ShareLaTeX in near future as there hasn't been much demand for it. Sorry.

@jpallen jpallen closed this as completed Feb 24, 2015
@ripcurldane
Copy link

I'd also love Context support. :-)

@zeigerpuppy
Copy link

zeigerpuppy commented Oct 4, 2016

one very useful feature of ConTeXt support is the external figure support (which allows images from a URL without the use of -shell-escape)

http://wiki.contextgarden.net/Using_Graphics

\externalfigure[http://tug.org/images/logobw.jpg]

@ripcurldane
Copy link

ConTeXt would be awesome!!
I use both, they are good for different things.

Jan

@ripcurldane
Copy link

I also now use sharelatex exclusively rather than my PC for Latex.
So ConText on share latex would be so good, I would pay more just for that.
If people knew how good it was many would convert.

@rosikand
Copy link

rosikand commented May 6, 2021

Any update on this in 2021? I'd particularly like to use the external figure feature (as mentioned above:

\externalfigure[http://tug.org/images/logobw.jpg]

).

How can one go about doing this with Overleaf in the current state?

@subimal
Copy link

subimal commented Feb 1, 2022

Adding ConTeXt support would be great.

@AnadeB
Copy link

AnadeB commented Sep 2, 2022

Try to setup it like this:

  1. Create a new project,
  2. rename main.tex to output.tex,
  3. set the Compiler to LaTeX (using the project menu),
  4. create a new file, name it latexmkrc and put the following line into it:
    $latex = 'context --luatex --synctex --batchmode %S'
  5. edit output.tex and put there eg.
    \starttext This is \CONTEXT. \stoptext
  6. compile

@subimal
Copy link

subimal commented Sep 3, 2022

Thank you @AnadeB, I will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants