liffiton / code2tex Goto Github PK
View Code? Open in Web Editor NEWConvert source code to a LaTeX document / PDF with syntax highlighting and line numbers.
License: MIT License
Convert source code to a LaTeX document / PDF with syntax highlighting and line numbers.
License: MIT License
Hi I have a problem...
When i compile:
python .\code2tex.py C:\urlruta\Main.java > main.tex
,throw this:
File ".\code2tex.py", line 103
''', file=output)
^
SyntaxError: invalid syntax
What is the error? Is the Version of Python dont work in 2.x ... :D
Plz add a JS Hello world example.
document.write("Hello world");
Just thought it'd be nice to have an optional feature which shows invisible characters (for example, tabs, spaces, etc.), so that we don't need to open a text editor to check the consistence of indentation or whatever. This would be particularly useful for the languages that use indentation to indicate the blocks of code.
Please add the GitHub tag code highlight to the repository.
This would ensure that more people would be able to discover it.
Dear @liffiton @alanrussian ,
First of all, thank you for making this wonderful repository.
Before stumbling on to this repository, I had to upload the code files to a Github private repository and then print the webpage as a pdf.
Is there any way to add an option to select a different code highlighting?
I’ve got some utf8 characters in my files such as Ë
which fail to print in the pdf.
ORIËNTATIE
turns into ORI NTATIE
In the exts dictionary, "ml" is mapped to "ML". So I think the syntax highlighting wouldn't work quite well for OCaml... And I have found OCaml.ml in the hello_world folder, maybe you meant OCaml in the first place? I'm not sure when loading "ML" in the syntax package what LaTeX would actually give you, but it seems to fail in my case where I tried to convert an OCaml script into a tex file.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.