-
Notifications
You must be signed in to change notification settings - Fork 83
Support for minted #193
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
base: master
Are you sure you want to change the base?
Support for minted #193
Conversation
This require "VERBATIMLINEENV=(?:verbatim[*]?|lstlisting|minted)" when executing latexdiff.
It seems minted is only designed for syntax coloring. For example, it is difficult to remove latexdiff syntax.
|
Thanks, this looks interesting but I would need to test that it does not break the other verbatim environments. I have also a few other suggestions:
in the set up phase, and add minted at that stage programmatically to VERBATIMLINEENV
If you are able to do this things, it would greatly accelerate acceptance of your patch (I still would plan to eventually look into it but it might be much longer until I get round to that). |
|
@ftilmann no problem, I'll do according to your suggestions |
|
Note to myself: Indeed this PR is breaking the standard verbatim environment so will put this on hold for now. minted seems quite a popular package, so still worth keeping open. Probably the easiest would be to hardcode dedicated processing for minted environment, adapting the current processing for the verbatim environments. Not so great because it would lead to some code repetition, but avoiding overly complex RegEx. Note to others: The original author of PR @nikAizuddin never provided testing examples. I am not sure if he or others are still interested as the PR is >4 yrs old. If yes, ping this thread, and ideally provide working examples of old and new files using minted (MWE or could be more complex). |
|
I can't believe I implemented this patch myself before looking for this 😭 |
This patch will allow minted environment to be properly marked up. However, I haven't test this patch with
verbatimandlistingsenvironments.