Git Product home page Git Product logo

synctex's Introduction

synctex

集成服务端部署tex编译器、文件同步、自动编译、打开网站拓展文件编译

目前该服务部署在我的服务器上,学生服务器,轻点 http://119.23.70.249:5000/

特性

  • 可以只在服务端部署,可以通过访问网站上传文件进行编译
  • 可以同时在本地和服务端部署,通过监听文件变动,会自动进行上传、编译、下载,配合SumatraPDF,可以实现“本地Overleaf”
  • 项目下有Linux环境下的部署脚本(目前Ubuntu16.04下无问题),可以一键部署
  • 和我的项目MarkTex结合,同时可以直接转换Markdown到PDF

使用方法

git clone https://github.com/sailist/synctex
cd synctex

部署Linux

如果未部署Texlive,可以通过installatexlive目录下的脚本部署

cd installlatexlive
sudo bash ./install.bash 

如果已经部署Texlive,需要安装texliveonfly来确保遇到未安装的包时可以自动安装

cd installlatexlive
tlmgr install texliveonfly
sudo cp texliveonfly.py /usr/local/texlive/2019/texmf-dist/scripts/texliveonfly/texliveonfly.py

最后一步复制是我更改后的脚本文件,增添了自动删除编译过程文件和多文件同时编译以及在目录下生成编译结果文件的命令,在本项目中需要用到,否则可能运行过程会出错

所有步骤完成后,尝试运行

cd installlatexlive
texliveonfly test.tex -r True

如果能在目录下生成pdf,则说明一切安装成功

服务端使用方法

安装依赖:

pip install flask

在确保部署TexLive和texliveonfly成功,并且运行上一步最后的测试无误后,在config.py中,更改服务器的连接url,随后运行

python3 run_server.py

客户端使用方法

安装依赖:

pip install watchdog

在config.py中修改连接服务器的ip和端口,然后运行

python3 run_client.py

synctex's People

Contributors

sailist avatar

Stargazers

liww avatar  avatar Yigong Hu avatar Amber Zhang avatar

Watchers

James Cloos avatar

Forkers

mu-l

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.