aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-08-16 20:48:51 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-08-16 20:48:51 -0700
commitfe312b0a7a0e63e307162da47dc9f1ca8f47737f (patch)
tree0ee1e8e4fb57fc56a0f43aa498065bb9979f728f /src/Text/Pandoc/Writers
parent13dea94a9128a4caf3fb820bb21cd8176465c82e (diff)
downloadpandoc-fe312b0a7a0e63e307162da47dc9f1ca8f47737f.tar.gz
LaTeX writer/template: be sensitive to `filecolor` variable.
`linkcolor` only affects internal links, and `urlcolor` only affects linked URLs. For external links, the option to use is `filecolor`. Closes #4822.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index a3be5ecb7..3db643503 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -248,7 +248,8 @@ pandocToLaTeX options (Pandoc meta blocks) = do
defField "biblatex" True
_ -> id) $
defField "colorlinks" (any hasStringValue
- ["citecolor", "urlcolor", "linkcolor", "toccolor"]) $
+ ["citecolor", "urlcolor", "linkcolor", "toccolor",
+ "filecolor"]) $
(if null dirs
then id
else defField "dir" ("ltr" :: String)) $