mirror of
https://github.com/lise-henry/crowbook
synced 2024-09-29 16:31:23 +02:00
Make images' width 80% and centered in Latex rendering
This commit is contained in:
parent
156a9815fd
commit
4dedde59a1
@ -240,7 +240,9 @@ impl<'a> LatexRenderer<'a> {
|
||||
},
|
||||
Token::Image(ref url, _, _) => {
|
||||
if ResourceHandler::is_local(url) {
|
||||
format!("\\includegraphics{{{}}}", self.handler.map_image(Cow::Borrowed(url)))
|
||||
format!("\\begin{{center}}
|
||||
\\includegraphics[width=0.8\\linewidth]{{{}}}
|
||||
\\end{{center}}", self.handler.map_image(Cow::Borrowed(url)))
|
||||
} else {
|
||||
self.book.logger.warning(&format!("LaTeX: image '{}' doesn't seem to be local; ignoring it in Latex output.", url));
|
||||
String::new()
|
||||
|
Loading…
Reference in New Issue
Block a user