]> mj.ucw.cz Git - ucwmac.git/commitdiff
ucw-link: Turn off clickable links when not producing a PDF
authorMartin Mares <mj@ucw.cz>
Wed, 6 Jun 2018 09:55:15 +0000 (11:55 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 6 Jun 2018 09:55:15 +0000 (11:55 +0200)
ucw-link.tex

index ef8959353a94d68725ef985e3c2f9df7e5925475..58a1c67c9253c91e55406728a956611119cabaf5 100644 (file)
@@ -6,7 +6,11 @@
 
 % Should clickable links be produced?
 \newif\ifclickable
-\clickabletrue
+\ifpdf
+       \clickabletrue
+\else
+       \clickablefalse
+\fi
 
 % Common style of all clickable links
 \pdflinkmargin=1pt