Code Monkey home page Code Monkey logo

kallipos's Introduction

kallipos version of pibook

The workflow (source files, pandoc filters) for kallipos brings together several submodules and builds the content of the markdown version of the book.

Files are edited at their respective repos and then imported here:

After cloning this repo run: git submodule update --init --recursive

After editing a file in a submodule run: git submodule update --remote --merge

The source files are read from the text folder, which is a git submodule, ie a link to another repo.

You might need to edit the figure lua filter to point at the current folder .

There is a bash script make_latex.sh which can be modified in order to prepare the desired output format.

The bash file has been prepared for MacOS X cli. It has also been tested succesfully in Arch Linux by editing the syntax (or simply removing) the sed command

In order to prepare a PDF with the LaTeX toolchain, just add a latex folder with a template and master file.

Have a look at indicative latex template and output PDF

It is strongly advised to use the official latex install, instead of the latex version in your *nix distribution, and install packages as needed with tlmgr

Source files preprocessing

The source files in the text folder are formated with custom tags for figures, epigraphs, and file inclusion:

  • The include filter needs to be called again if there are nested includes.
  • The figure filter should be called after everything has been included.
  • The custom tags are translated with lua filters to the desired output format (e.g., latex, html, docx), with pandoc.
  • Remove filters enable to clear unwanted tags and features.
  • The pandoc-fignos filter has not been updated yet to work with pandoc 3, but it does work with previous versions.
pandoc --lua-filter=extras.lua text/mi-ch02.md --to markdown | pandoc --lua-filter=extras.lua --to markdown | pandoc --lua-filter=epigraph.lua --to markdown | pandoc --lua-filter=figure.lua --to markdown | less

Some of the include files provide cross-references to figures and to bibliography and should be processed last.

pandoc --filter pandoc-fignos text/mi-ch02.md --to markdown | pandoc --citeproc --bibliography=biblio.bib --to latex | less

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.