协作编辑 LaTeX 文档的提示 [英] Tips for collaboratively editing a LaTeX document

查看:39
本文介绍了协作编辑 LaTeX 文档的提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的默认设置是将 tex 源代码放在 subversion 存储库中,并在更改其他人的内容时在源代码中插入注释作为注释.这一切都感觉不太理想,尤其是当存在颠覆冲突时,它只会告诉你这个巨大段落的这两个版本存在冲突."

My default setup is to put the tex source in a subversion repository and insert notes to each other as comments in the source when making changes to other people's content. It all feels pretty sub-optimal, especially when there are subversion conflicts where all it tells you is "these two versions of this huge paragraph are in conflict."

我想出了一些技巧,但我确信那里有更好的想法(或我的想法的更好版本).

I've come up with a few tricks but I'm sure there are much better ideas (or better versions of my ideas) out there.

有关代码协作,请参阅以下问题:

For collaborating on code, see this question:

您如何与其他编码人员实时协作?

(其中一些答案也适用于 LaTeX 文档的协作.)

(Some of those answers will apply to collaboration on LaTeX documents as well.)

推荐答案

总是用换行符结束每个句子.从不重新格式化段落.这些规则不仅可以最大限度地减少虚假冲突,还可以让您的协作编辑的论文更容易修改.

Always end each sentence with a newline. Never reformat paragraphs. These rules not only minimize spurious conflicts but also make your collaboratively edited paper easier to revise.

对于作者评论,我使用边缘评论:

For author commentary I use marginal comments:

longdefauthornote#1{%
        leavevmodeunskip
aisebox{-3.5pt}{
lap{$scriptstylediamond$}}%
        marginpar{
aggedrighthbadness=10000
        defaselinestretch{0.8}	iny
        it #1par}}

ewcommand{simon}[1]{authornote{SLPJ: #1}}

ewcommand{
orman}[1]{authornote{NR: #1}}

ewcommand{john}[1]{authornote{JD: #1}}

我们将这些放在页边空白处是因为我们经常按照严格的长度限制准备论文,并且我们希望页边注不会改变论文的长度.然后边注被关闭

We put these in the margin because frequently we're preparing a paper to strict length limits, and we want the marginal notes not to change the length of the paper. Marginal notes are then turned off by

longdefauthornote#1{
elax}

我还发明了 nbibtex 工具(现在在 Debian 中!),这样您就可以使用来自您的合著者的不同 .bib 文件,而无需就任意 BibTeX 密钥达成一致.nbibtex 的工作方式与 BibTeX 类似,只是它使用来自作者、标题和其他字段的关键字.每个作者的 BibTeX 文件可以不一样,但是如果有论文,nbibtex 会找到.

I also invented the nbibtex tool (now in Debian!) so that you can use different .bib files from your coauthors without having to agree on arbitrary BibTeX keys. nbibtex works like BibTeX except that it uses key words from author, title and other fields. Each author's BibTeX file can be different, but if the paper is there, nbibtex will find it.

这篇关于协作编辑 LaTeX 文档的提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆