ftilmann / latexdiff

Compares two latex files and marks up significant differences between them. Releases on www.ctan.org and mirrors
GNU General Public License v3.0
514 stars 72 forks source link

Parse file '-' as read from stdin #11

Open pisto opened 9 years ago

pisto commented 9 years ago

Many unix tools interpret the filename '-' as stdin, including diff. Would be handy to have that here too.

ftilmann commented 8 years ago

It is an old issue, but maybe I should comment on why I did not act on this. The proposal is more complicated to implement than it sounds because every input file is read twice, and the second time potentially with a different encoding. So the only quick way to implement this would be to pipe standard input into a temporary file, and then take that as input. But that's nearly trivial to implement as a wrapper for the user, and latexdiff is overloaded enough with special cases as it is. I might still look at this eventually but it is not high priority.