Rendered Rust Book example #121
-
The README has a link to a rendered PDF of the Rust Book. This ouput doesn’t very LaTeX-y, unlike e.g. the Cargo Book one. How was this result achieved? Also, the Ferris images on page 8 don’t appear. Not sure whose fault it is, so I didn’t file an issue for it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi Alexandre, the sample books are rendered by Lines 1596 to 1607 in 24b1beb
Lines 512 to 540 in 24b1beb It probably makes sense to point to this config from the README but I wasn't sure of the best way to do so without having the link/config go stale eventually. |
Beta Was this translation helpful? Give feedback.
-
Could you elaborate on this? |
Beta Was this translation helpful? Give feedback.
-
I think the issue here is that the Ferris images are in |
Beta Was this translation helpful? Give feedback.
Hi Alexandre, the sample books are rendered by
#[test]
s inlib.rs
-- in particular, this one for the Rust book:mdbook-pandoc/src/lib.rs
Lines 1596 to 1607 in 24b1beb
Config::pdf()
mainly just configures fonts and page margins, which may be what makes it not look very "LaTeX-y":mdbook-pandoc/src/lib.rs
Lines 512 to 540 in 24b1beb