Skip to content

Commit

Permalink
Refresh targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jdutant committed Feb 1, 2023
1 parent 5ad793e commit b970228
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ DIFF ?= diff --strip-trailing-cr -u
.PHONY: test

test: test_html test_latex
@echo Test complete.

recreate: expected.html expected.tex

test_html: README.md columns.lua
@pandoc --lua-filter columns.lua --standalone --to=html $< \
Expand Down
16 changes: 9 additions & 7 deletions expected.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<title>Columns - Multiple columns support in Pandoc’s markdown</title>
<style>
html {
line-height: 1.5;
font-family: Georgia, serif;
font-size: 20px;
color: #1a1a1a;
background-color: #fdfdfd;
}
Expand All @@ -29,13 +26,16 @@
@media (max-width: 600px) {
body {
font-size: 0.9em;
padding: 1em;
padding: 12px;
}
h1 {
font-size: 1.8em;
}
}
@media print {
html {
background-color: white;
}
body {
background-color: transparent;
color: black;
Expand Down Expand Up @@ -85,9 +85,10 @@
color: #606060;
}
code {
font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace;
font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
font-size: 85%;
margin: 0;
hyphens: manual;
}
pre {
margin: 1em 0;
Expand Down Expand Up @@ -158,6 +159,8 @@
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
/* CSS for syntax highlighting */
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
Expand Down Expand Up @@ -221,7 +224,6 @@
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<style>
/* Styles added by the columns.lua pandoc filter */
Expand All @@ -240,7 +242,7 @@ <h1 class="title">Columns - Multiple columns support in Pandoc’s
</header>
<h1 id="columns">Columns</h1>
<p>Multiple columns support in Pandoc’s markdown.</p>
<p>v1.1.2. Copyright: © 2021 Julien Dutant <a
<p>Copyright: ©2021-23 Julien Dutant <a
href="mailto:julien.dutant@kcl.ac.uk"
class="email">julien.dutant@kcl.ac.uk</a> License: MIT - see LICENSE
file for details.</p>
Expand Down
11 changes: 7 additions & 4 deletions expected.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@
\documentclass[
]{article}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\usepackage{unicode-math} % this also loads fontspec
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
% xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
Expand Down Expand Up @@ -81,7 +84,7 @@
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\urlstyle{same}
\hypersetup{
pdftitle={Columns - Multiple columns support in Pandoc's markdown},
pdfauthor={Julien Dutant},
Expand All @@ -100,7 +103,7 @@ \section{Columns}\label{columns}}

Multiple columns support in Pandoc's markdown.

v1.1.2. Copyright: © 2021 Julien Dutant
Copyright: ©2021-23 Julien Dutant
\href{mailto:julien.dutant@kcl.ac.uk}{\nolinkurl{julien.dutant@kcl.ac.uk}}
License: MIT - see LICENSE file for details.

Expand Down

0 comments on commit b970228

Please sign in to comment.