The tag has no wiki summary.

learn more… | top users | synonyms

38
votes
5answers
50k views

How to convert PDF to (La)TeX?

I know that hardly any information is passed to the PDF when a .tex file is compiled. But is there a tool that can convert a PDF document back to (La)TeX?
81
votes
3answers
4k views

Is there some way to embed LaTeX source code in a PDF file?

Several times now I have inadvertently lost the .tex file that generated a PDF file with pdflatex. Given what I know of the internal structure of PDF files, it should be possible to embed a text file ...
2
votes
1answer
2k views

How to include all files within a directory relative to the edited *.tex-file?

I am writing my reports which need to reference complete *.java files with latex. I am using the Texlipse Eclipse plugin to do the editing. Right now I am referencing the complete path to each ...
5
votes
3answers
3k views

Indentation and line wraps in TeXShop

As pointed out in this question, in TeXShop there is no way to make source paragraphs (i.e. long lines with no hard wraps) follow source indents automatically, that is, while typing. The solution ...
3
votes
2answers
394 views

Adding extra lines/spaces in source, *not* affecting semantics

I'm editing a file with quite huge interleaves of text and formulas like this lorem ipsums \begin{align} foo & bar\\ qux & rofl\\ & toto \end{align} lorem ipsums … And I face ...
10
votes
1answer
227 views

Get current source line number

How can I get the current .tex source line number? I want to use it to generate useful error messages in a package I am writing. There are some errors that can only be detected at the end of the ...
4
votes
1answer
142 views

How to create two PDFoutput from the same source

I have a very long source file. I would like to prepare from this source two PDF files: PDF contains all of the source file PDF containing only a few, marked earlier parts of the source file. How ...
7
votes
3answers
597 views

Long paragraphs follow source indents in TeXShop

How do I make long paragraphs follow the source indents in TeXShop? This what I usually get: How do I make succeeding lines follow the indent of the first line? This is so that it would be easier to ...