add appendix hyperlink
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Jun 2022 15:01:08 +0000 (16:01 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Jun 2022 15:01:08 +0000 (16:01 +0100)
openpower/pandoc_img.py
openpower/simple_v_spec.tex

index c2071276c5c579e789d567e74f99864345afc507..23de6a2717221d4cdef86d83b8ec4662db89e672 100755 (executable)
@@ -48,10 +48,18 @@ def inlinenotes(k, v, f, meta):
         # link page
         if v.startswith("[[") and v.endswith("]]"):
             link = v[2:-2]
+            if '|' in link:
+                link, ref = link.split("|")
+                return Link(['', [], []],
+                            [Str(link)],
+                            [ref, ''])
+            out.write("     link %s\n" % link)
             lookups = {'sv/overview': 'Overview Chapter',
                        'sv/svp64': 'SVP64 Chapter',
+                       'svp64/appendix': 'SVP64 Appendix',
                       }
             if link in lookups:
+                out.write("     found %s\n" % lookups[link])
                 return Link(['', [], []],
                             [Str(lookups[link])],
                             ['#%s' % link, ''])
index 4cca725e0a87e873c19d436f0d56180391482a93..52a23bb51f55382b9275e3f99500c02c76e5411e 100644 (file)
@@ -123,7 +123,7 @@ EU Grants 871528 and 957073.
 \input{tex_out/mv_vec.tex}
 
 \begin{appendices}
-\chapter{SVP64 Appendix}
+\chapter{SVP64 Appendix}\hypertarget{svp64ux2fappendix}{SVP64 Appendix}
 \input{tex_out/svp64_appendix.tex}
 \chapter{SVP64 Quirks}
 \input{tex_out/svp64_quirks.tex}