pandoc github.css,GitHub - jez/tufte-pandoc-css: Starter files for using Pandoc Markdown with Tufte ...

Tufte Pandoc CSS

Starter files for using Pandoc Markdown with Tufte CSS

This project aims to provide a standard set of project starter files for working

with Pandoc and Tufte CSS. It features:

extra CSS styles for things like tables and syntax highlighted code

tweaks to the CSS to get HTML produced by Pandoc to play nicely with Tufte CSS

an optional Solarized light color scheme for code blocks

a modular separation of these components--you can select which you want

an HTML5 template file that sets up the document the way Tufte CSS expects

support for lots of Pandoc markdown features, including

footnotes as side notes

footnotes as margin notes

metadata like title, subtitle, date, and author

LaTeX using MathJax or KaTeX

Apart from projects like Tufte CSS & Pandoc, the main project that enables this

project is pandoc-sidenote, a project which converts Pandoc Markdown-style

footnotes ([^1]) into side notes.

Looking to use this with Jekyll?

You might be interested in Tufte Pandoc Jekyll, which wraps the files

distributed here into a Jekyll gem-based theme.

Looking for the same features, but a different look?

You might be interested in Pandoc Markdown CSS Theme, a theme with much of

the same features as this theme, but with a more easily customizable look.

Table of Contents

Background

If you haven't already, I encourage you to explore the projects that have been

built on top of here:

Pandoc - a universal document converter

Tufte CSS - style your webpage like Edward Tufte's handouts

pandoc-sidenote - convert Pandoc Markdown-style footnotes into sidenotes

Installation

Dependencies

This project is always tested relative to:

the most recent master commit of tufte-css.

the latest release version of pandoc

In particular, you'll need at least Pandoc version 2.0.

This project is meant to be a set of starter files for your next project. What

that ultimately means is that you should use these files however your heart sees

fit. In practice, here are some tips for some things you may want to do to get

set up.

First, install pandoc-sidenote to your PATH.

This lets pandoc compile footnotes into sidenotes.

Instructions are on the pandoc-sidenote homepage.

Second, download tufte.css and the et-book/ font folder.

Head over to tufte-css to download these.

You should be able to work with any version of Tufte CSS, assuming things

haven't changed too much.

If things don't seem to be working, try using the version stashed in the

tufte-css/ folder in this repo (it's a submodule).

Third, there are a number of static files you can download and place where you

see fit:

tufte.html5

This is an HTML5 compatible template for use with Pandoc's --template

flag.

It sets up the document structure in a way Tufte CSS expects.

pandoc.css

This CSS file has styles for things like sections, author & date

information, highlighted code blocks, and tables.

pandoc-solarized.css (optional)

This sets up highlighted code blocks to use the Solarized Light color theme

tufte-extra.css (optional)

This makes some "personal preference" tweaks to Tufte CSS. It is NOT

required.

Finally, you'll want the Makefile.

The Makefile usage is explained below.

Usage

The best way to learn to use this project is to read the documentation--both

online and in the source code. You'll probably want to look through things in

this order

Remember to read the source!

The Tufte Pandoc CSS homepage, which documents the additional features

specific to this project.

Remember to read the source!

The included [Makefile], which compiles *.md files into *.html files

using pandoc with the correct options.

The Pandoc homepage. Not everything you see here will work with this

project, but if you think something should work that doesn't, open an issue.

You'll probably want to just skim this... it's lengthy!

Once you have an understanding of what Markdown features are available, you can

use the Makefile to compile your Markdown files.

For example, this is how we build the homepage for this site:

make docs/index.md

and here's how we build all the site files:

make docs

make

Assuming you've laid out your directory identically to this repo, you can pass

the name of any *.md file to convert it into an appropriately named *.html

file.

make my-pandoc-markdown-file.md

License

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值