Skip to content

Instantly share code, notes, and snippets.

View JohnLukeBentley's full-sized avatar

John Luke Bentley JohnLukeBentley

View GitHub Profile
@JohnLukeBentley
JohnLukeBentley / AtEndPreambleMWE.tex
Created July 3, 2021 19:06
Testing etoolbox's AtEndPreamble command to reference author, title, date declared at bottom of a preamble.
\documentclass[12pt,a4paper]{article}
\usepackage{lipsum}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Margin Start
\RequirePackage{fancyhdr}
\pagestyle{fancy}
% clears the header and footer
\fancyhf{}
<?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>
<?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>
<!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[ */
<!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 */
<!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 {
<!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 {
\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 October 30, 2017 23:43
Gist-Biblatex-Mwe.tex and 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>
\documentclass[12pt,a4paper]{article}
\usepackage{a4wide}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Demo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{filecontents}{\jobname.bib}
% Sorting multiple works by author in year
@article{barker_2016_turkey,