Skip to content

Commit

Permalink
document how to customize slides
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Nov 12, 2018
1 parent 204864b commit dd9af8c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 43 deletions.
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ You can **style your slides** to your heart's content.
style/css.rst
style/images.rst
style/background.rst
style/customize.rst
style/math.rst
style/highlighting.rst


.. toctree::
Expand Down
4 changes: 4 additions & 0 deletions doc/style/background.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
Background image
================


remark
------

Setting and changing the background image is nicely documented here:
https://github.com/gnab/remark/wiki/Markdown#background-image
4 changes: 2 additions & 2 deletions doc/style/css.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


How to use own CSS
==================
How to use your own CSS
=======================

If you place a file in the same path as your talk, with the same name as your
talk, and only replace the ``.md`` suffix by ``.css``. Then the rendering engine
Expand Down
14 changes: 14 additions & 0 deletions doc/style/customize.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


How to customize everything
===========================

You want to change looks and fonts? CSS is not enough? Perhaps you need an
external JavaScript library?

You can place ``*.head.html`` and/or ``*.body.html`` alongside your ``*.md`` slides.
In these files you can do and change almost everything:
https://github.com/bast/cicero/blob/master/cicero/templates/render.html.

To get inspired of what is in these by default and what can be changed, please
browse https://github.com/bast/cicero/tree/master/cicero/static/engines.
35 changes: 0 additions & 35 deletions doc/style/highlighting.rst

This file was deleted.

7 changes: 2 additions & 5 deletions doc/style/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
Math equations
==============

Math equations are rendered using https://www.mathjax.org. Here is an example Markdown code::

$$ e = mc^2 $$

MathJax is configured here: https://github.com/bast/cicero/blob/master/cicero/static/engines/remark-0.13.0/js.html#L8-L42
Here is an example:
https://github.com/bast/cicero/tree/master/demo/remark/equations

0 comments on commit dd9af8c

Please sign in to comment.