diff options
author | Max Bolingbroke <batterseapower@hotmail.com> | 2010-04-04 16:36:37 +0800 |
---|---|---|
committer | jgm <jgm@berkeley.edu> | 2010-04-10 12:01:35 +0800 |
commit | e365c5950b1b6ee85123d4b376025a6bb0697f7d (patch) | |
tree | 4d0b653df30e29fdbc91974f8ee6af16117dc1c3 /src/Text/Pandoc/Writers/LaTeX.hs | |
parent | 15c3297ba97aa5ea7fdb74479d345242ed418772 (diff) | |
download | pandoc-e365c5950b1b6ee85123d4b376025a6bb0697f7d.tar.gz |
Give LaTeX images a maximum width using the prelude only
Diffstat (limited to 'src/Text/Pandoc/Writers/LaTeX.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 8aa028bd7..720c00ac8 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -338,7 +338,7 @@ inlineToLaTeX (Link txt (src, _)) = char '}' inlineToLaTeX (Image _ (source, _)) = do modify $ \s -> s{ stGraphics = True } - return $ text $ "\\includegraphics{" ++ source ++ "}" + return $ text $ "\\includegraphics{" ++ source ++ "}" inlineToLaTeX (Note contents) = do st <- get put (st {stInNote = True}) |