Skip to content

Markdown modeling#47

Open
bqpd wants to merge 10 commits into1682masterfrom
1682literate
Open

Markdown modeling#47
bqpd wants to merge 10 commits into1682masterfrom
1682literate

Conversation

@bqpd
Copy link
Contributor

@bqpd bqpd commented Mar 5, 2016

@whoburg, @mjburton11, @pgkirsch, curious for your feedback on this proposed documentation technique.

@mjburton11
Copy link

@bqpd, could you briefly explain to me what you're doing here and how default.latex and gas_hale.md interact with the model?

@bqpd
Copy link
Contributor Author

bqpd commented Mar 5, 2016

@mjburton11, sure thing!

gas_hale.md is all the code from gas_hale_rebuild3.py plus all the documentation in documentation/. It's a markdown file that can be:

default.latex is a latex template with \usepackage{bigtable} so that the solution table can be compiled in the pdf.

@mjburton11
Copy link

I think this is very useful. How are you pulling the data from documentation? I'm having trouble running pandoc error: pandoc: command not found

@bqpd
Copy link
Contributor Author

bqpd commented Mar 5, 2016

Whoops, you'll have to install pandoc first.

The idea is that instead of maintaining separate models and model documentation, they can be combined into a single file, so I copied the assumptions from documentation/ by hand.

The rest of what was in there were constraint and variables lists, which I think we can (and should) be generating automatically. Special python comments in code blocks can skip that block or replace it with generated latex in the PDF, so all that remains is writing the python to generate the right latex.

@bqpd
Copy link
Contributor Author

bqpd commented Mar 5, 2016

I could imagine incremently replacing the code with generated latex such that the final result is a lovely codeless PDF

@bqpd
Copy link
Contributor Author

bqpd commented Mar 7, 2016

From @whoburg:

  • I think the latex template should \usepackage{fullpage} -- right now many code blocks are running off to the right. An 80 char block should look good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants