Latex

Some BibLaTeX Tricks to remember

For creating beautiful PDFs and slides, I am a big believer of using LaTeX whenever possible. Sometimes one has to use Word, but for everything else LaTeX!

For writing documents, that is another matter.

When working with citations, LaTeX is bundled with a powerful tool called BibTeX that supports structured representation of bibliographic entries in a custom format that allows one to easily change citation style and reference style.

Now, BibTeX is rather outdated and the community has produced a tidy replacement called BibLaTeX that uses biber as a backend rather than BibTeX. BibLaTeX is the swiss-army knife of bibliographic control in your document. I won’t go into too much detail about all the things that BibLaTeX can do, but highlight some new tricks I have learned recently.

Colour Blind Aware Semantic Highlighting

Yesterday, I gave a talk about my work at SPLS Nov ‘16 at the University of Strathclyde.

In my work I have a data type:

data Session : (ty  : Ty)
            -> (old : Context)
            -> (new : ty -> Context)
            -> Type
    where

and a function that computes an instance of that type with information to popular the value old.

Session : List Role -> List (Role, Role) -> Type
Session rs ps = Model.Session....

Now I could have provided more meaningful names to these different meanings of Session. However, with semantic highlighting who needs too, right? My work involves the use of Dependent Types as seen in Idris, and we use semantic highlighting to provide developers with richer information about programming constructs. Typically the scheme and practise is often referred to as Conor’s Colours, and the default values specified in this scheme are used by Idris.