New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next manual, 2.20++ #36
Comments
|
Stan User's Guide: Stan Language Functions Reference: |
Thanks, @jaehyunjoo. We'll get those fixed. |
docs/docs/2_19/functions-reference/multivariate-normal-distribution-precision-parameterization.html Line 573 in 90cb5fd
I think that the above section should be changed from |
OK - @bertcarnell - absolutely correct - I made same mistake as whoever wrote this. |
This line in the Custom Probability Functions chapter of the User Manual doesn't show correctly in the HTML output
Additionally, to have a more consistent format in the LaTeX PDF output, it's possible that the use of |
These 4 equations don't render correctly in the LaTeX PDF version of the User Guide and all show up on the same line without linebreaks between the 4 equations docs/src/stan-users-guide/latent-discrete.Rmd Lines 42 to 50 in 90cb5fd
This code works in LaTeX but I'm not sure how a LaTeX
If the docs/src/stan-users-guide/latent-discrete.Rmd Lines 79 to 87 in 90cb5fd
produces an unreadably-long line in the PDF output because its all on one line. Replacing it with
would help immensely with readability. |
There are scattered lines that show up in both the HTML and PDF outputs as cryptic references to something like docs/src/stan-users-guide/latent-discrete.Rmd Line 175 in 90cb5fd
|
@enbrown - many thanks for all of the above. will investigate and try to address. |
Here's another table that's present in the LaTeX PDF output that seems to be missing from the HTML files docs/src/stan-users-guide/latent-discrete.Rmd Lines 534 to 556 in 90cb5fd
|
Here are some small typos in the
docs/src/stan-users-guide/latent-discrete.Rmd Line 897 in 90cb5fd
In a few places the LaTeX nonbreaking space docs/src/stan-users-guide/latent-discrete.Rmd Line 577 in 90cb5fd
docs/src/stan-users-guide/latent-discrete.Rmd Line 788 in 90cb5fd
docs/src/stan-users-guide/latent-discrete.Rmd Line 1002 in 90cb5fd
docs/src/stan-users-guide/latent-discrete.Rmd Line 1064 in 90cb5fd
The two figures in section 7.2 seem to result in broken links on the HTML website (possibly due to them being PDF images): docs/src/stan-users-guide/latent-discrete.Rmd Lines 277 to 279 in 90cb5fd
docs/src/stan-users-guide/latent-discrete.Rmd Lines 284 to 286 in 90cb5fd
|
@enbrown Thanks so much for all the careful comments on doc. Rather than \mbox{foo_cdf}, we should be using
I'm OK with this, but it would be a huge change throughout the doc. WARNING: For words, we need to use |
Yup, its massive. I've forked the repository, made a ton of changes, and I hope created a pull request correctly. There were random typos, tables and pictures that were missing from the HTML version, text that was missing from the HTML version (but present in the LaTeX version), and fixes to the formatting of the equations (the vast majority.) |
Thanks. It's a huge help to reviewing if you can break the pull requests into bite-sized chunks. If not, it's no big deal. I'll volunteer to review a mega-PR for any number of doc fixes.
… On Jun 30, 2019, at 3:18 AM, Eric N. Brown ***@***.***> wrote:
I'm OK with this, but it would be a huge change throughout the doc.
Yup, its massive. I've forked the repository, made a ton of changes, and I hope created a pull request correctly. There were random typos, tables and pictures that were missing from the HTML version, text that was missing from the HTML version (but present in the LaTeX version), and fixes to the formatting of the equations (the vast majority.)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
this looks totally awesome - happy to review your PR as is - many thanks for doing this! |
No problem. Procrastinating with typography! Is there a Stan code highlighting style that is used by other people? Its not too difficult to add syntax highlighting (4 line change to an |
what kind of style and theme files? latex? css? |
Pandoc-based syntax highlighting: The Finally, Stan code blocks need to be identified:
|
I thought RMarkdown compiled Stan models when it saw them in markdown. We don't want to try to be compiling these things as a lot of them are just program fragments. |
RMarkdown shows code annotated like this without actually compiling anything, but it can highlight the syntax in them: make the different program blocks one color, control flow (if/then/for) another color, known functions a different color, and distributions bold. Its purely formatting like this: When I annotated all Stan blocks in the user guide (375 I think), I didn't notice it take any longer to make the HTML and PDF outputs, but it could add a few seconds overall to the processing time. |
Processing time's no big deal. It already takes a long time to generate HTML and PDF. Thanks much for looking into this and pasting in an example. I've never been crazy about this level of syntax highlighting. I turn on the lightest mode possible in anything I'm doing as I find all the colors and fonts distracting. I'm curious what others think on this, as I'm not the dictator of this thing. Green and red won't work as color choices due to color blindness. Any idea why "normal" is set in the same color as "lower"? The block names should probably be a more distinct color, too. I like the lighter color for ocmments, but I'm not crazy about the italic typewriter font. At least the font's fixed width. |
These were completely arbitrary choices (that I made based on the defaults which were worse) that can be modified at will. The font color and background color can be set to any RGB color. Then they can be bold or not, italicized or not, and underlined or not. These are the things that can be changed in the Pandoc theme. It might be possible to delve deeper into the CSS and overwrite these choices (because the Stan codeblocks are actually in HTML |
We shouldn't hold up this PR for color choices in Stan programs. Just please choose something relatively low contrast, with matching darknesses, and don't let users adjust it. We can fix it later, but discussing it ad nauseum now would literally be an instance of a classic bikeshed issue. Let me outline some guidelines from standard book design practice:
Together, these let you read the marked-up text like regular text much more easily and will make the text in code look more seamlessly like part of the rest of the book. Darkness is what typographers call "color". It has to match for things to be readable. And for them to be projectable. That's really the main consideration here---can people read them in print and on screen and when projected. In the end, we want to move to a situation where we have code in actual functional program contexts that we can check for syntax, etc., then cut into the doc. P.S. CSS would be problematic as none of the components have |
the documentation is correct - this statement is relating the MultiNormalPrecision to the MultiNormal - the precision parameter Omega is related to the variance parameter Sigma. |
would like to close this for 2.20 release but would also like to get @enbrown's fixes in - where does this discussion stand? |
Sorry for missing your disagreement with my comment. I don't think that you are correct. Think about the mathematical statement that is being made, If K is an integer, and mu is a real vector, and Omega is a real square matrix, then for y as a real vector is distributed as multivariate normal using the Omega precision matrix, or equivalent, it is distributed as multivariate normal using the variance matrix (which is the Omega inverse). If you introduce the Sigma matrix here, then you haven't defined it. See the multivariate normal Cholesky parameterization as an equivalent. |
See: #71 |
Current Version:v2.20.0 |
good catch, many thanks, will fix! |
|
good catch - thanks - will fix! |
|
that's funny! |
Summary:
This is the place to record typos and brainos or suggestions for the Stan manuals: User's Guide, Reference Manual, Functions Reference. Please report broken links, incorrect code or math as well as questions and corrections to discussion and modeling advice.
Current Version:
v2.19.0
The text was updated successfully, but these errors were encountered: