How can I use a pdf file as the readme in my github repo?

JRun picture JRun · Jun 15, 2016 · Viewed 23k times · Source

I have a pdf file generated by latex which has many equations and what not. I want to use this pdf as the readme.md file in my github repo. How can I do this?

Alternatively, is it possible to directly integrate the tex file in github and use that as a readme instead of the pdf version? Does github allow any integration with latex syntax as does gmail for example?

Answer

scholi picture scholi · Jul 9, 2018

You cannot import PDF as Readme, but I also don't see the point as it support the wonderful MD Language which can be seen easily with any device (also mobile).

I have fixed the equations problem by using images. There is a nice website for that: http://mathurl.com/

Just type your latex equation and click "Make Math url" (bottom left button), the copy paste the image link (in red).

I have used it in the wiki of github (but it should work the same with readme.md): https://github.com/scholi/pySPM/wiki/Mass-calibration

Enjoy!