User: Password:
|
|
Subscribe / Log in / New account

Document Collaboration

Document Collaboration

Posted Mar 22, 2014 8:07 UTC (Sat) by tnoo (subscriber, #20427)
In reply to: Document Collaboration by epa
Parent article: Using git and make for tasks beyond coding

I do that routinely with Latex docuemnts. The big problem is that Latex is not line-oriented, while code is. Simple reformatting of a paragraph will lead to big differences in git-diff, but none in the resulting Latex output.

A better diff that understands the Language being diffed should be available.


(Log in to post comments)

Document Collaboration

Posted Mar 22, 2014 9:32 UTC (Sat) by Jandar (subscriber, #85683) [Link]

If you reformat your code it will lead to big differences in git-diff, but none in the resulting compiler-output. That's no difference.

Document Collaboration

Posted Mar 22, 2014 11:43 UTC (Sat) by mathstuf (subscriber, #69389) [Link]

My solution: start each sentence on its own line and wrap sentences if they overflow. Since LaTeX will take a paragraph to mean a set of lines without a blank, the output is no different.

Document Collaboration

Posted Mar 24, 2014 19:06 UTC (Mon) by dlang (subscriber, #313) [Link]

run things through the equivalent of pretty-print before checking them in (you can even automate this)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds