Computer Scientist here, with 5 years experience as a Systems Administrator. Collaborative authorship is one of those hard-to-solve problems. git was invented for source code collaboration, where all code is text. I know everyone is eager to use git for anything and everything, but it was never meant to store binary files such as .pdfs. “Binary” here is Unix-speak for “files which are not plain text files”
I suggest you don’t output to .pdf until a text is finished its draft phase. Like the final .pdf is just that - a final step. Not done all along the way.
Here’s an inelegant, but experience-informed method I would use. As to collaboration: if a paper is very long - too long for an Office suite like LibreOffice to handle without bogging down - then create several LibreOffice files, one per chapter. So a lot of familiar WYSIWYG is leveraged for fast content creation, at first. Formatting is not cared about, or done in the LibreOffice chapter files - that will be Typst’s job later. But what LibreOffice can do is annotate with comments, as collaborators see what they like and don’t like.
Each collaborator agrees to a filename convention, where a version number is appended on the end. There can be many versions of such a chapter file. our_essay_ch01_v01.odt, our_essay_ch01_v02.odt, etc. Don’t delete the old versions. One possible example might be: one collaborator might make even-numbered version files, and another makes odd-numbered version numbers, as they “hand over” control of edits, back and forth.
If you want to get more serious, consider storing the files on a server in a filesystem which has native snapshotting, like BTRFS, using a snapshot tool like “snapper”, to make periodic snapshots of these files.
So how do these LibreOffice chapter docs get shared around for collaboration? You might be tempted to share them around by email. You can do better. There are many good possible filesharing methods, which have privacy built-in (where you retain custody and ownership of all the files):
- CopyParty
- SFTP (in an SSH server)
- Syncthing, if everyone using it is a geek
- a Deltachat group
I have expertise in all of these (setting them up in a LAN, or in the cloud) and more. Of course, Typst Gmbh also has their own cloud offering as well.