GithubHelp home page GithubHelp logo

gkaggarwal / latex_progress_measure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cardosorapha/latex_progress_measure

0.0 0.0 0.0 459 KB

License: MIT License

Shell 8.51% Python 78.44% TeX 13.05%

latex_progress_measure's Introduction

LaTeX Progress Measure

This repository contains:

  • Sample LaTeX code for testing;
  • Scripts for LaTeX compilation and measuring some useful metadada.

At the moment, we measure days since the start, number of pages, words, and modifications. The main script is located at scripts/update_measures.py. This script has some requirements:

  • Unix operating system (Linux or Mac)
  • LaTeX (I used Texlive), poppler, awk installed
  • Python 3 with numpy and matplotlib libraries. The others should be installed by default

You can execute the python script manually, but I have also included a pre-commit hook in the scripts folder that git will execute everything automatically if you follow the instructions ahead.


How to use

  1. Clone this repository
git clone https://github.com/cardosorapha/LaTeX_Progress_Measure.git
  1. Navigate to the main repository folder
cd LaTeX_Progress_Measure
  1. Make the pre-commit hook executable
chmod +x ./scripts/pre-commit
  1. Copy the pre-commit hook to the appropriate git folder
cp ./scripts/pre-commit .git/hooks/pre-commit
  1. Change the variables in scripts/update_measures.py to adapt to your project organization.

Steps 1-5 only need to be executed once. Then, you can work with your files normally. To trigger the pre-commit hook, use

git commit

without any message. The scripts will executed and you will be prompted to write a message.

Furthermore, to avoid incorrect measurements, include logs and temporary files in .gitignore. I have already included a few.


Measurements for this repository

Measured progress


If you have any questions, feel free to ask as an Issue or email me at [email protected].

latex_progress_measure's People

Contributors

cardosorapha 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.