Skip to content

Instantly share code, notes, and snippets.

Avatar

John Luke Bentley JohnLukeBentley

  • Sydney
View GitHub Profile
@JohnLukeBentley
JohnLukeBentley / AtEndPreambleMWE.tex
Created Jul 3, 2021
Testing etoolbox's AtEndPreamble command to reference author, title, date declared at bottom of a preamble.
View AtEndPreambleMWE.tex
\documentclass[12pt,a4paper]{article}
\usepackage{lipsum}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Margin Start
\RequirePackage{fancyhdr}
\pagestyle{fancy}
% clears the header and footer
\fancyhf{}
View jlb-test-jm-indigobook.csl
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" page-range-format="chicago" version="1.1mlz1" year-range-format="expanded">
<info>
<title>JLB - Test - JM Indigo Book Test</title>
<id>http://juris-m.github.io/styles/jlb-test-jm-indigobook</id>
<link href="http://juris-m.github.io/styles/jlb-test-jm-indigobook" rel="self"/>
<link href="https://law.resource.org/pub/us/code/blue/IndigoBook.html" rel="documentation"/>
<author>
<name>Frank Bennett</name>
<email>biercenator@gmail.com</email>
View jlb-jm-indigobook.csl
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" page-range-format="chicago" version="1.1mlz1" year-range-format="expanded">
<info>
<title>JLB - JM Indigo Book</title>
<id>http://juris-m.github.io/styles/jlb-jm-indigobook</id>
<link href="http://juris-m.github.io/styles/jlb-jm-indigobook" rel="self"/>
<link href="http://juris-m.github.io/styles/jm-indigobook" rel="template"/>
<link href="https://law.resource.org/pub/us/code/blue/IndigoBook.html" rel="documentation"/>
<author>
<name>John Bentley</name>
View events-close-search-pane-with-escape02.xhtml
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<title>Events - close search pane with escape 02 - 2018-03-19 06:15Z</title>
<!-- events-close-search-pane-with-escape.xhtml is a gist of an earlier version of the code below -->
<style>
/* <![CDATA[ */
View events-close-search-pane-with-escape.xhtml
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<title>Events - close search pane with escape</title>
<style>
/* <![CDATA[ */
/* A comment */
View events-close-search-pane-from-anywhere.xhtml
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<title>Events - close search pane from anywhere</title>
<style>
/* <![CDATA[ */
/* A comment */
div {
View events-demo.xhtml
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<title>Events Demo</title>
<style>
/* <![CDATA[ */
/* A comment */
div {
View Gist-Biblatex-Ranges-MutlipleWorksByAuthorInSameRange.tex
\documentclass[12pt,a4paper]{article}
\usepackage{a4wide}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{adams_2001_2003_title_01,
author = {Adams, Phillip},
date = {2001/2003},
title = {Title 01 Input 2001/2003}
}
@JohnLukeBentley
JohnLukeBentley / Gist-Biblatex-Mwe.bcf
Last active Oct 30, 2017
Gist-Biblatex-Mwe.tex and Gist-Biblatex-Mwe.bcf
View Gist-Biblatex-Mwe.bcf
<?xml version="1.0" encoding="UTF-8"?>
<bcf:controlfile version="3.4" bltxversion="3.8" xmlns:bcf="https://sourceforge.net/projects/biblatex">
<!-- BIBER OPTIONS -->
<bcf:options component="biber" type="global">
<bcf:option type="singlevalued">
<bcf:key>output_encoding</bcf:key>
<bcf:value>utf8</bcf:value>
</bcf:option>
<bcf:option type="singlevalued">
<bcf:key>input_encoding</bcf:key>
View Gist-Biblatex-Tester-DateTimeSorting-Mwe-Solution.tex
\documentclass[12pt,a4paper]{article}
\usepackage{a4wide}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Demo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{filecontents}{\jobname.bib}
% Sorting multiple works by author in year
@article{barker_2016_turkey,