~cdrozak/context-template-document

A template for working with ConTeXt documents
833f7a9f — Cezary Drożak 3 years ago
Merge remote-tracking branch 'simple/main'
2e780846 — Cezary Drożak 3 years ago
docs: correct repository URL
40b4d7cb — Cezary Drożak 3 years ago
Merge remote-tracking branch 'simple/main'

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~cdrozak/context-template-document
read/write
git@git.sr.ht:~cdrozak/context-template-document

You can also use your local clone with git send-email.

#context-template-document

A template for working with ConTeXt documents. It contains boilerplate that I put in almost every ConTeXt project.

For simple documents, see context-template-simple.

#Usage

Instead of using git clone, I recommend adding the template as a secondary remote:

git remote add template https://git.sr.ht/~cdrozak/context-template-document
git fetch template main
git pull template main

To generate the PDF file, type make or make all. There are also two additional modes defined in environment.mklx:

  1. debug — enables several options for debugging the document. It can be enabled using this command:

    make MODE=debug
    
  2. doublesided — generates a double sided document. It can be enabled using this command:

    make MODE=doublesided
    

These two modes can be used together by joining modes with a comma:

make MODE=doublesided,debug

#Editor configuration

A configuration for text editors is contained in editors/ directory. As of now, it only has a single .projections.json file. Files in editors/ are ignored in the root of the repository — they are meant to be copied to root and modified individually.