diff --git a/doc/synopsis/Makefile b/doc/synopsis/Makefile
index 1ba341c9c..87d0d2b11 100644
--- a/doc/synopsis/Makefile
+++ b/doc/synopsis/Makefile
@@ -43,12 +43,15 @@ index.html: index.txt $(TEMPLATE)
$@
mv $(TMP) $@
sed -i.bak "s/
//" $@ && rm "$@.bak"
+ sed -i.bak -e '/img src="categories.png"/r categories-imagemap.html' -e '/img src="categories.png"/d' $@ && rm "$@.bak"
categories.png: categories.dot
dot -Tpng $^ > $@
categories-imagemap.html: categories.dot
- dot -Tcmapx $^ > $@
+ rm -f $@
+ echo '
' > $@
+ dot -Tcmapx $^ >> $@
api-examples.gfs: api-examples.txt MkExx.hs
runghc MkExx.hs < $< > $@
diff --git a/doc/synopsis/categories-intro.txt b/doc/synopsis/categories-intro.txt
index 324cec3dc..2017648f5 100644
--- a/doc/synopsis/categories-intro.txt
+++ b/doc/synopsis/categories-intro.txt
@@ -8,7 +8,6 @@ of //C// that takes //D// as an argument. What the constructors exactly are,
and what other arguments they take, is described by separate tables for
each category.
-[categories.png]
%!include(html): ''categories-imagemap.html''
diff --git a/doc/synopsis/intro.txt b/doc/synopsis/intro.txt
index bf0ff72db..fea2adbbc 100644
--- a/doc/synopsis/intro.txt
+++ b/doc/synopsis/intro.txt
@@ -64,15 +64,14 @@ use the resource modules.
Other relevant documents:
-- [The RGL Status Document ./status.html]: the current status of different languages
+- [The RGL Status Document ../status.html]: the current status of different languages
and the authors of each grammar
- [The Resource Grammar Library coverage map http://www.postcrashgames.com/gf_world/]
-- [RGL Documentation and Publications ./rgl-publications.html]: links to publications and other documentation
+- [RGL Documentation and Publications ../rgl-publications.html]: links to publications and other documentation
- [More modules gfdoc/sources.html]: extra modules, dictionaries, and
the internals of the resource grammar
-- [Internal abstract syntax ./absfuns.html]: synopsis of internal
+- [Internal abstract syntax ../absfuns.html]: synopsis of internal
abstract functions and their Universal Dependency labels
-- [RGL Source Browser ./browse]: look up functions and their source code
- [Minibar http://cloud.grammaticalframework.org/minibar/minibar.html]:
find resource grammar expressions by parsing (select Grammar: LibraryBrowser)
or test translations between all languages (select Grammar: ResourceDemo)