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

integrate support for minted.sty #291

Closed
holtzermann17 opened this issue Jun 30, 2012 · 9 comments
Closed

integrate support for minted.sty #291

holtzermann17 opened this issue Jun 30, 2012 · 9 comments

Comments

@holtzermann17
Copy link

[Originally Ticket 1615]

http://code.google.com/p/minted/ has been making my day all week (running under pdflatex).

This would be lovely to have working within LaTeXML.

@dginev
Copy link
Collaborator

dginev commented Jan 25, 2013

Unless we get some extra time to look into this soon, moving into the Future milestone.

@brucemiller
Copy link
Owner

For the record: since it uses an external python program/library,
I assume the only practical way to make this work would be to
call that external code and interpret whatever TeX that (I assume) they produce.

@dginev
Copy link
Collaborator

dginev commented Jun 3, 2016

We have, unsurprisingly, received a request for minted at Authorea. And it turns out even pandoc "supports" it already by writing out a verbatim code block. Probably something to consider as a stop gap, I'm unsure if a partial implementation is better than no implementation here.

@brucemiller
Copy link
Owner

Writing out a code block probably works in many cases, but will fail if there are user defined macros inside; likewise it isn't really correct to attempt to "partially" expand only those user defined macros, although it might work occasionally.

Anyway, I guess it's time to admit that this binding isn't going to happen any time in the near future. Sorry.l

@dginev dginev modified the milestones: Future (if), LaTeXML-0.8.3 Mar 1, 2018
@dginev
Copy link
Collaborator

dginev commented Mar 2, 2022

cross-referencing an author's comment for 2109.04981 in ar5iv, where minted support was mentioned explicitly.

I won't reopen the issue yet, but maybe we'll revisit it eventually...

@eric-wieser
Copy link

Is a partial implementation of minted.sty possible that just outputs a Verbatim block?

For the record: since it uses an external python program/library,

For the purpose of ar5iv, minted never needs to execute python anyway, and runs on cached latex output from pygments consisting of a handful of style commands.

@dginev
Copy link
Collaborator

dginev commented May 22, 2022

@eric-wieser appropriate that you mention ar5iv - there is a stub implementation for minted.sty already available there, which tries to emulate minted blocks via listings.sty listings.

I'm now nearing 50 additional .ltxml files for ar5iv, which mostly just try to do basic damage mitigation, until the mainline LaTeXML repository can integrate fully fleshed out support.

@eric-wieser
Copy link

Ah, then perhaps my diagnosis of dginev/ar5iv#143 was incorrect; I assumed it was a lack of support for minted!

@dginev
Copy link
Collaborator

dginev commented Oct 3, 2022

Another high-profile use of minted (if one day we are looking for real-life tests) can be found recommended in Lean 4's user manual, particularly Syntax Highlighting Lean in LaTeX .

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

4 participants