LaTeX.css is a CSS library that makes your website look like a LaTeX document
Go to file
2020-05-24 08:25:36 +02:00
fonts Add Latin Modern typeface 2020-05-20 18:15:57 +02:00
elements.html Use Unsplash (https) instead of placekitten 2020-05-23 13:55:50 +02:00
index.html Make abstract h5 instead of h4, complete toc 2020-05-23 17:33:14 +02:00
LICENSE Add LICENSE 2020-05-21 10:22:00 +02:00
package-lock.json Add minified version using uglifycss 2020-05-24 07:58:26 +02:00
package.json Add minified version using uglifycss 2020-05-24 07:58:26 +02:00
README.md Add fancy badges & instructions on how to install 2020-05-24 08:25:36 +02:00
style.css Add attribution 2020-05-23 17:35:07 +02:00
style.min.css Add minified version using uglifycss 2020-05-24 07:58:26 +02:00
vercel.json Fix license link, add vercel config for clean URLs 2020-05-23 13:34:35 +02:00

LaTeX.CSS

License: MIT latex.css on NPM

LaTeX.css is a minimal, almost class-less CSS library which makes any website look like a LaTeX document. It is based on @davidrzs' latexCSS.

Getting Started

Add the following code in the head of your project.

<link rel="stylesheet" href="https://latex.now.sh/style.css" />

or use a CDN like Unpkg:

<link rel="stylesheet" href="https://unpkg.com/latex.css/style.min.css" />

Using NPM/Yarn

NPM:

npm install latex.css

Yarn:

yarn add latex.css

Add any optional classnames to elements with special styles (author subtitle, abstract, lemmas, theorems, etc.). A list of supported class-based elements can be found here.

Contributing

Contributions, feedback and issues are welcome. Feel free to fork, comment, critique, or submit a pull request.

Acknowledgements

This project is based on David Zollikofer's project latexCSS.

Most of the CSS reset is based on Andy Bell's Modern CSS Reset.

The sample HTML5 markup test page is based on html5-test-page by @cbracco.

License

This project is open source and available under the MIT License.