Skip to content

Markdown modeling#47

Open
bqpd wants to merge 10 commits into
1682masterfrom
1682literate
Open

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

Conversation

@bqpd

@bqpd bqpd commented Mar 5, 2016

Copy link
Copy Markdown
Contributor

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

@mjburton11

Copy link
Copy Markdown

@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

bqpd commented Mar 5, 2016

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown

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

bqpd commented Mar 5, 2016

Copy link
Copy Markdown
Contributor Author

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

bqpd commented Mar 5, 2016

Copy link
Copy Markdown
Contributor Author

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

@bqpd

bqpd commented Mar 7, 2016

Copy link
Copy Markdown
Contributor Author

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