Skip to content

dufferzafar/src2tex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

src2tex

screenshot

samples

why?

I wanted to read some source code on my iPad. After trying a few plain text editors and source viewing apps and not liking any of them, I decided to experiment with the PDFs.

how?

Get a .tex file:

src2tex /path/to/root/source/folder > project.tex

Convert to pdf:

This requires a full LaTeX installation with packages like minted etc. Have a look at the template.tex file for which packages are used.

latexmk -silent -pdf -shell-escape -pdflatex='pdflatex -interaction=nonstopmode' project.tex

todo

  • Use more nesting
    • \chapter, \subsubsection etc.