dangom / org-thesis

Writing a Ph.D. thesis with Org Mode
498 stars 54 forks source link

Single file or multiple files? #5

Open hummuscience opened 3 years ago

hummuscience commented 3 years ago

I got the impression that you wrote the thesis by splitting the big chapters of your thesis into multiple files (or am I mistaken?)

If so, how did you deal with section reference completion with org-ref across multiple files?

dangom commented 3 years ago

Hey Cumol,

sorry I never saw this message because my email changed and I wasn't notified.

The whole proposition of my setup was that each chapter of my thesis was a single file that could be independently exported. Because they were independent projects, there was no cross-referencing between them. This is something that I didn't think too much about, but I see how other thesis styles would benefit from chapter cross-referencing. I also saw you already asked this over at org-ref's repo, so I throw back the question at you? Did you find a solution?!

If not, I'm sure you can solve the problem by breaking out some LaTeX instead of using org-ref's functionality. Place labels where you need them (use the CUSTOM_ID property for org-headings), and then call \ref{CUSTOM_ID}. Without further modifications you will have to keep track of existing CUSTOM_IDs by yourself, and the references will break on the single file export, which defeats the purpose of my method. You can work around that by having a shim file with alternative references for the single file export, should you need that.

But honestly, if your thesis requires a lot of cross-referencing, then I'd write it in a single file.