New on CTAN: hook-pre-commit-pkg

CTAN Announcements ctan-ann at
Mon Feb 23 10:38:34 CET 2015

Maïeul Rouquette submitted the



Version number: 1.1.0
License type: gpl3

Summary description: Pre-commit git hook for LaTeX package developpers.

Announcement text:
 Pre-commit hook for LaTeX package developpers

 === What it is ?

 A pre-commit hook to check basic LaTeX syntax for package developers.

 ==== How to install

 Copy pre-commit in the .git/.hooks file

 Add execution right (chmod +x)

 Enjoy !

 ====Checked files

     - .sty
     - .dtx
     - .bbx
     - .cbx
     - .lbx

 ====What is checked

 Only for new line, these properties are checked:

     - All lines must finish by a %, without space before.
       Empty lines are allowed, but not lines with blank space.

     - \begin{macro} and \end{macro} must be paired.

     - \begin{macrocode} and \end{macrocode} must be paired.

     - \begin{macro} must have a second argument.

     - 1 space must be printed between % and \begin{macro} or
       % Must be the first line character.

     - 4 spaces must be printed between % and \begin{macrocode}
       or \end{macrocode}.

     - \cs argument must NOT start by an \

 === Licence and copyright

 Maïeul Rouquette 2014-....
 v 1.1.0
 Licence GPl3

 === Help and github repository
 Open an issue for any needs.


This package is located at

More information is at

We are supported by the TeX Users Group .
Please join a users group; see .


   Thanks for the upload.

     For the CTAN Team
    Petra Rübe-Pugliese

More information about the Ctan-ann mailing list