The source of a guide to implementing your own 2050 calculator.
Ruby HTML CSS Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
figures
public
util
.dockerignore
.gitignore
Dockerfile
Gemfile
Gemfile.lock
Japan.md
README.md
Schoolworkshop.md
South-Africa.md
Vietnam.md
balancing.md
bioenergy.md
building-the-spreadsheet.md
building-the-webtool.md
calculating-emissions.md
complex-excel-formulae.md
config.ru
contents.txt
costs.md
deploying-the-webtool-on-AWS-EC2.md
engagement-and-education.md
excel-model-structure.md
faq.csv
faq.md
faq.tsv
front.md
getting-started.md
going-further.md
how-the-webtool-works.md
industry_sector.md
influencing-policy.md
introduction.md
keeping-the-calculator-alive.md
launching-your-calculator.md
mapping-your-emissions.md
power-cuts.md
quality-assurance-checklists.md
quality-assurance.md
server.rb
stress-test.md
todo.md
transport_sector.md
units.md
vectors.md

README.md

The 2050 Calculator Book

This is a guide to implementing your own 2050 calculator. You can read it at http://book.2050.org.uk.

It is written as a series of markdown files. These are then turned into a pdf, website and an e-book by using the programs in the public folder.

Writing markdown

The files are written in the pandoc variant of markdown.

Adding a section

If you want to add a section, create a new file with the text and then add it in the right position in the contents.txt file.

Adding images

Images can be added using the 'Upload Files' button at the top of this screen.

They can then be reffered to with code like ![Description of the image](figures/filename-of-image.png)

To add them through the command line:

  1. Put the image in the figures folder
  2. Refer to the image Description of the image

Note that it is important that the image url starts figures and not /figures

Turning the markdown into somethings useful

To turn the markdown into something useful, such as a pdf, website, epub and a word document you need the following installed:

  1. Ruby
  2. pandoc

Then you need to run:

ruby public/make-outputs.rb

If all goes well, you will see the results in the public folder.