4 ms·
A PDF that contains its own TeX source
- dbaupp 12y agoLink to the actual PDF: https://corkami.googlecode.com/svn-history/r1907/trunk/src/pdf/quine.pdf https://corkami.googlecode.com/svn-history/r1907/trunk/src/p...
- debe 12y agohttp://ideology.com.au/polyglot/ http://ideology.com.au/polyglot/
- taeric 12y agoWhile ridiculously awesome, that isn't really the same thing. It would be more similar to consider programs that print themselves, such as [1]. Though, even that isn't quite the same. Since I doubt you could point a compiler back at the .pdf. (Edit: Well, looks like I was wrong on that point...) [1] http://stackoverflow.com/questions/7690862/program-that-prints-itself-how-does-it-work http://stackoverflow.com/questions/7690862/program-that-prin...
- hjek 12y agohttps://en.wikipedia.org/wiki/Quine_%28computing%29 https://en.wikipedia.org/wiki/Quine_%28computing%29
- ange4771_ 12y ago(I'm the author) it's a polyglot PDF/TeX, and you can generate the PDF by directly running PDFLaTeX on it (so you distribute the source with the viewable result) the 2 tricks: - include the source unmodified in the PDF itself - modify the PDF so that it's parsed by PDFLaTeX itself.
- whitten 12y agoSo this is kind of like a quine ? (i.e. http://en.wikipedia.org/wiki/Quine_%28computing%29 http://en.wikipedia.org/wiki/Quine_%28computing%29 ) i.e. since PDFs are based on Postscript, they are effectively a program that produces certain visual effects in a PDF viewer. The source code in PDF is generated from TeX code which also has itself in the output of the program.