All Projects → thomaspark → Pubcss

thomaspark / Pubcss

Licence: mit
Format academic publications in HTML & CSS

Labels

Projects that are alternatives of or similar to Pubcss

Waffle Grid
An easy to use flexbox grid system.
Stars: ✭ 602 (-15.92%)
Mutual labels:  scss
Engineering Best Practices
10up Engineering Best Practices
Stars: ✭ 653 (-8.8%)
Mutual labels:  scss
Boilerform
Boilerform is a little HTML and CSS boilerplate to take the pain away from working with forms.
Stars: ✭ 679 (-5.17%)
Mutual labels:  scss
Vue Chat
📲 A web chat application. Vue + node(koa2) + Mysql + socket.io
Stars: ✭ 617 (-13.83%)
Mutual labels:  scss
True
Sass unit tests
Stars: ✭ 638 (-10.89%)
Mutual labels:  scss
Stylelint Scss
A collection of SCSS specific linting rules for stylelint
Stars: ✭ 655 (-8.52%)
Mutual labels:  scss
Theme Machine
A collection of stylized Bootstrap Themes
Stars: ✭ 585 (-18.3%)
Mutual labels:  scss
Forty Jekyll Theme
A Jekyll version of the "Forty" theme by HTML5 UP.
Stars: ✭ 695 (-2.93%)
Mutual labels:  scss
Scout App
Scout-App - The simplest Sass processor
Stars: ✭ 639 (-10.75%)
Mutual labels:  scss
Uswds
The U.S. Web Design System helps the federal government build fast, accessible, mobile-friendly websites.
Stars: ✭ 5,912 (+725.7%)
Mutual labels:  scss
Blunt
A CSS framework that helps with layouts and leaves your styling alone.
Stars: ✭ 627 (-12.43%)
Mutual labels:  scss
Honoka
Honoka is one of the original Bootstrap theme.
Stars: ✭ 634 (-11.45%)
Mutual labels:  scss
Universal
Seed project for Angular Universal apps featuring Server-Side Rendering (SSR), Webpack, CLI scaffolding, dev/prod modes, AoT compilation, HMR, SCSS compilation, lazy loading, config, cache, i18n, SEO, and TSLint/codelyzer
Stars: ✭ 669 (-6.56%)
Mutual labels:  scss
Auryo
Auryo - Unofficial Soundcloud Desktop App
Stars: ✭ 611 (-14.66%)
Mutual labels:  scss
Sleek Dashboard
Sleek Dashboard - Free Bootstrap 4 Admin Template and UI Kit
Stars: ✭ 690 (-3.63%)
Mutual labels:  scss
Typora Theme Ursine
A Typora theme, inspired by Bear
Stars: ✭ 598 (-16.48%)
Mutual labels:  scss
Vue Light Bootstrap Dashboard
Vue Light Bootstrap Dashboard - FREE BOOTSTRAP 4 VUEJS ADMIN TEMPLATE
Stars: ✭ 654 (-8.66%)
Mutual labels:  scss
Moving
A clean and minimalist theme for Jekyll.
Stars: ✭ 701 (-2.09%)
Mutual labels:  scss
Wenk
😉 Lightweight pure CSS tooltip for the greater good
Stars: ✭ 694 (-3.07%)
Mutual labels:  scss
Nicefish
NiceFish(美人鱼) 是一个系列项目,目标是示范前后端分离的开发模式:前端浏览器、移动端、Electron 环境中的各种开发模式;后端有两个版本:SpringBoot 版本和 SpringCloud 版本。
Stars: ✭ 671 (-6.28%)
Mutual labels:  scss

PubCSS

PubCSS is a library of CSS stylesheets and HTML templates for formatting academic publications for print and the web.

Currently, the following formats are supported:

Check out sample output here.

Quick Start

  1. Create an HTML file, or modify the relevant template, to add your content
  2. Link your HTML to the relevant pub.css stylesheet
  3. Build to PDF using Prince with the command prince input.html output.pdf

The only dependency is Prince, which is free for non-commercial use.

Reference

Sections

Sections and subsections are automatically numbered by following this pattern.

<h1>Section Header</h1>
<section>
  <h2>Subsection Header</h2>
  <p>Lorem ipsum</p>
</section>

Tables and Figures

Figures and tables are also numbered if you include a caption.

<table>
  <tr><td>1</td><td>2</td></tr>
  <caption>Example Table</caption>
<table>

<figure>
  <img src="graph.png">
  <figcaption>Example Figure</figcaption>
</figure>

References and Citations

References are also numbered. Be sure to assign them unique IDs.

<cite id="nicole">Nicole. 2015. Title of paper. <em>Journal</em>, 4(3), 1-10.</cite>

Citations to the references make use of these IDs.

<a href="#nicole"></a>

Multiple citations can be made in one set of brackets.

<span class="cites"><a href="#beeker"></a><a href="#jackie"></a><a href="#kiwi"></a></span>

Sections, tables, and figures can also be referenced by adding a class.

<a href="#intro" class="section"></a>
<a href="#example-table" class="table"></a>
<a href="#example-figure" class="figure"></a>

Equations

Equations are also numbered. MathML is well-supported by Prince. For the web, you’ll need MathJax to render MathML properly in Chrome and Internet Explorer.

<div class="equation">
  <math xmlns="http://www.w3.org/1998/Math/MathML">
    <mi>E</mi>
    <mo>=</mo>
    <mi>m</mi>
    <msup>
      <mi>c</mi>
      <mn>2</mn>
    </msup>
  </math>
</div>

Footnotes

Footnotes are made within the body text, and are automatically moved to the bottom of the current page.

<p>This is text.<span class="footnote">And this is a footnote.</span></p>

Smart Quotes

Smart quotes can be used in lieu of straight quotes by enclosing the text like so. You can nest quotes within quotes.

<q>To be or not be.</q>

Utility Classes

Utility classes are also available to modify layout and counter behavior.

  • col-2: divide the element into 2 columns
  • col-3: divide the element into 3 columns
  • col-4: divide the element into 4 columns
  • col-span: span all of the columns of parent
  • col-break-before: force column break before element
  • col-break-after: force column break after element
  • page-break-before: force page break before element
  • page-break-after: force page break after element
  • counter-skip: do not count this header
  • counter-reset: reset counter to 0

Customization

One of the major advantages of PubCSS is that you can use CSS to customize the style. All of the usual rules apply.

To create a new theme, you’ll want to dig into the LESS source. The most common changes can be made through variables.less, such as toggling page numbers and setting counter styles. The rest can be included in custom.less.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].