-
Notifications
You must be signed in to change notification settings - Fork 482
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
Switch or at least support code listings in LaTeX using the listings
package instead of minted
#2309
Comments
I'm not opposed to using |
I've had a lot of trouble with
My idea is more generally that people that will run |
I guess Docker is also out of the question for you? You could also try Tectonic though, but I am not sure if it handles the Python / pygments installation for you or not. |
Yes, unfortunately, both Docker and Tectonic are out of my scope. |
Yeah, let's make this an opt-in option via a kwarg. |
I haven't benchmarked, but I think the |
@mortenpi I'm wondering what would be the correct way to configure Documenter.jl/src/latex/LaTeXWriter.jl Lines 490 to 519 in 77f0bdd
LaTeX(...) .
I've added an option with struct LaTeX <: Documenter.Writer
platform::String
version::String
tectonic::Union{Cmd,String,Nothing}
code_listings::String
function LaTeX(;
platform = "native",
version = get(ENV, "TRAVIS_TAG", ""),
tectonic = nothing,
code_listings = "minted")
code_listings ∈ ("minted", "listings") || throw(ArgumentError("unknown code formatting package: $platform"))
platform ∈ ("native", "tectonic", "docker", "none") || throw(ArgumentError("unknown platform: $platform"))
return new(platform, string(version), tectonic, code_listings)
end
end but since the Side note, Documenter.jl/src/latex/LaTeXWriter.jl Line 90 in 77f0bdd
While latexmk may be used by a lot of people, I think detecting a tex distro with that is a bit restrictive, though I guess you impose this due to the platform setting. If you are insterested, I think I can propose an arara -based equivalent compilation chain.
|
linstings
package instead of minted
lintings
package instead of minted
lintings
package instead of minted
listings
package instead of minted
@mortenpi I've started really working on this, and I was wondering what the pdf output should look like. Would you mind sharing it (I can't generate it). |
Hi, I'm currently trying to build a PDF version of the documentation of one of my packages, and unfortunately, this has been really painful due to
minted
andpygments
. I'm pretty sure there is a very good reason for using this package, but unfortunately, because of the external dependency, I simply cannot use the PDF output.I was wondering if using
listings
instead ofminted
was ever considered ? I know thatlistings
does not officially supportjulia
as a language, but this repo contains a language specification forjulia
: https://github.com/wg030/jlcodeThe text was updated successfully, but these errors were encountered: