@@ -38,6 +38,10 @@
38.nr FPS (\n[PS] - 2000)
38.nr FPS (\n[PS] - 2000)
39.\" color used for strikeout
39.\" color used for strikeout
40.defcolor strikecolor rgb 0.7 0.7 0.7
40.defcolor strikecolor rgb 0.7 0.7 0.7
41+.\" color for links (rgb)
42+.ds PDFHREF.COLOUR 0.35 0.00 0.60
43+.\" border for links (default none)
44+.ds PDFHREF.BORDER 0 0 0
41.\" ***************************************************************
45.\" ***************************************************************
42.\" PDF metadata
46.\" PDF metadata
43.pdfinfo /Title "Pandoc Test Suite"
47.pdfinfo /Title "Pandoc Test Suite"
@@ -64,7 +68,10 @@ John Gruber's markdown test suite.
65.pdfhref M "headers"
69.pdfhref M "headers"
72+.pdfhref W -D "/url" -A "\c" \
67−Level 2 with an embedded link
73+ -- "embedded link"
68.pdfhref M "level-2-with-an-embedded-link"
75.pdfhref M "level-2-with-an-embedded-link"
70Level 3 with \f[I]emphasis\f[]
77Level 3 with \f[I]emphasis\f[]
@@ -597,7 +604,10 @@ This is \f[I]emphasized\f[], and so \f[I]is this\f[].
598This is \f[B]strong\f[], and so \f[B]is this\f[].
605This is \f[B]strong\f[], and so \f[B]is this\f[].
608+.pdfhref W -D "/url" -A "\c" \
600−An \f[I]emphasized link\f[].
609+ -- "emphasized link"
602\f[B]\f[BI]This is strong and em.\f[B]\f[]
612\f[B]\f[BI]This is strong and em.\f[B]\f[]
@@ -634,10 +644,10 @@ So is `pine.'
634`He said, \[lq]I want to go.\[rq]' Were you alive in the
644`He said, \[lq]I want to go.\[rq]' Were you alive in the
637−Here is some quoted `\f[C]code\f[]' and a \[lq]quoted link\**\[rq].
647+Here is some quoted `\f[C]code\f[]' and a \[lq]\c
639−http://example.com/?foo=1&bar=2
648+.pdfhref W -D "http://example.com/?foo=1&bar=2" -A "\c" \
640−.FE
649+ -- "quoted link"
642Some dashes: one\[em]two \[em] three\[em]four \[em] five.
652Some dashes: one\[em]two \[em] three\[em]four \[em] five.
@@ -746,45 +756,93 @@ Links
747.pdfhref M "explicit"
757.pdfhref M "explicit"
749−Just a URL.
759+Just a \c
760+.pdfhref W -D "/url/" -A "\c" \
765+.pdfhref W -D "/url/" -A "\c" \
751−URL and title.
766+ -- "URL and title"
770+.pdfhref W -D "/url/" -A "\c" \
753−URL and title.
771+ -- "URL and title"
775+.pdfhref W -D "/url/" -A "\c" \
755−URL and title.
776+ -- "URL and title"
780+.pdfhref W -D "/url/" -A "\c" \
757−URL and title
781+ -- "URL and title"
785+.pdfhref W -D "/url/" -A "\c" \
759−URL and title
786+ -- "URL and title"
761−with_underscore
789+\c
762−.PP
790+.pdfhref W -D "/url/with_underscore" -A "\c" \
763−Email link\**
791+ -- "with_underscore"
765−mailto:nobody\@nowhere.net
795+.pdfhref W -D "mailto:nobody@nowhere.net" -A "\c" \
766−.FE
796+ -- "Email link"
800+.pdfhref W -D "" -A "\c" \
768−Empty.
801+ -- "Empty"
771.pdfhref M "reference"
805.pdfhref M "reference"
808+.pdfhref W -D "/url/" -A "\c" \
773−Foo bar.
809+ -- "bar"
813+.pdfhref W -D "/url/" -A "\c" \
775−Foo bar.
814+ -- "bar"
818+.pdfhref W -D "/url/" -A "\c" \
777−Foo bar.
819+ -- "bar"
823+.pdfhref W -D "/url/" -A "\c" \
779−With embedded [brackets].
824+ -- "embedded [brackets]"
828+.pdfhref W -D "/url/" -A "\c" \
781−b by itself should be a link.
830+\& by itself should be a link.
783−Indented once.
832+Indented \c
833+.pdfhref W -D "/url" -A "\c" \
785−Indented twice.
837+Indented \c
838+.pdfhref W -D "/url" -A "\c" \
787−Indented thrice.
842+Indented \c
843+.pdfhref W -D "/url" -A "\c" \
789This should [not][] be a link.
847This should [not][] be a link.
@@ -794,42 +852,66 @@ This should [not][] be a link.
856+.pdfhref W -D "/url/" -A "\c" \
797−Foo bar.
857+ -- "bar"
861+.pdfhref W -D "/url/" -A "\c" \
799−Foo biz.
862+ -- "biz"
801With ampersands
865With ampersands
802.pdfhref M "with-ampersands"
866.pdfhref M "with-ampersands"
804−Here's a link with an ampersand in the URL\**.
868+Here's a \c
806−http://example.com/?foo=1&bar=2
869+.pdfhref W -D "http://example.com/?foo=1&bar=2" -A "\c" \
807−.FE
870+ -- "link with an ampersand in the URL"
809−Here's a link with an amersand in the link text: AT&T\**.
873+Here's a link with an amersand in the link text: \c
810−.FS
874+.pdfhref W -D "http://att.com/" -A "\c" \
811−http://att.com/
875+ -- "AT&T"
879+.pdfhref W -D "/script?foo=1&bar=2" -A "\c" \
814−Here's an inline link.
880+ -- "inline link"
884+.pdfhref W -D "/script?foo=1&bar=2" -A "\c" \
816−Here's an inline link in pointy braces.
885+ -- "inline link in pointy braces"
819.pdfhref M "autolinks"
889.pdfhref M "autolinks"
891+With an ampersand: \c
821−With an ampersand: http://example.com/?foo=1&bar=2
892+.pdfhref W -D "http://example.com/?foo=1&bar=2" -A "\c" \
893+ -- "http://example.com/?foo=1&bar=2"
822.IP \[bu] 2
895.IP \[bu] 2
823In a list?
896In a list?
824.IP \[bu] 2
897.IP \[bu] 2
899+.pdfhref W -D "http://example.com/" -A "\c" \
825−http://example.com/
900+ -- "http://example.com/"
826.IP \[bu] 2
902.IP \[bu] 2
827It should.
903It should.
829−An e\-mail address: nobody\@nowhere.net
905+An e\-mail address: \c
906+.pdfhref W -D "mailto:nobody@nowhere.net" -A "\c" \
907+ -- "nobody\@nowhere.net"
912+.pdfhref W -D "http://example.com/" -A "\c" \
832−Blockquoted: http://example.com/
913+ -- "http://example.com/"
835Auto\-links should not occur here: \f[C]<http://example.com/>\f[]
917Auto\-links should not occur here: \f[C]<http://example.com/>\f[]
@@ -846,9 +928,15 @@ Images
847From \[lq]Voyage dans la Lune\[rq] by Georges Melies (1902):
929From \[lq]Voyage dans la Lune\[rq] by Georges Melies (1902):
849−[IMAGE: lalune]
931+[IMAGE: \c
932+.pdfhref W -D "lalune.jpg" -A "\c" \
851−Here is a movie [IMAGE: movie] icon.
936+Here is a movie [IMAGE: \c
937+.pdfhref W -D "movie.jpg" -A "\c" \
@@ -885,7 +973,10 @@ contains a space.[^my note] Here is an inline note.\**
886is \f[I]easier\f[] to type.
974is \f[I]easier\f[] to type.
887Inline notes may contain
975Inline notes may contain
977+.pdfhref W -D "http://google.com" -A "\c" \
888−links (http://google.com) and \f[C]]\f[] verbatim characters,
979+\& and \f[C]]\f[] verbatim characters,
889as well as [bracketed text].
980as well as [bracketed text].