Giter Site home page Giter Site logo

latex-team's Introduction

LaTeX 团队协作写作

本项目将演示如何使用Git+Vim (vim-fugitive in fact) 来实现LaTeX团队协作.

##环境的搭建

###Vim配置

  1. 需要安装VIM并配置_vimrc
  2. 安装包管理器vim-Plug
  3. 安装vim-tex, vim-fugitive

###项目配置

###协作流程

由于本模板仓库包含有LaTeX写作模板以及文件结构. 你可以以此为模板进行协作.

  1. 准备工作

    • 新建一个团队协作目录(例如TEAM), 并在cygwin-shell下切换到该目录

       $ cd /path/to/TEAM
    • Fork 模板仓库LaTeX-TEAM

  2. 克隆自己的模板仓库到本地

    $git clone [email protected]:<yourname>/LaTeX-TEAM.git
    
  3. 编辑文件

    gvim main.tex subs/test.tex
  4. 提交编辑

    最好使用Gstatus来可视化

    1. 查看状态::Gstatus, 可以输入g?来获得快捷帮助

    2. 加入文件:-, 将光标定位到文件所在行(ctrl+p, ctrl+n), 然后按-即可加入该文件(会自动保存文件), Gstatus状态会自动更新

       > 加入文件也可使用`:Gwrite`
      
    3. 提交文件::Gcommit, 此时会在Gstatus窗口顶部要求输入提交的_注释_(不能为空, 我在windows上的gvim不能输入, cygwin下正常). 输入完毕后用:x保存并退出, 此时会自动提交

  5. 推送本地到Git

    推送到Git:Gpush, 如果有密码, 此时会要求输入密码. 成功后可以在Git仓库中查看.

###参考链接

  1. vim插件介绍-Fugitive
  2. Github的多人协作

latex-team's People

Contributors

vanabel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.