# Reference to main SWI-documentation from a package

**URL:** <https://swi-prolog.discourse.group/t/reference-to-main-swi-documentation-from-a-package/5735>\
**Category:** PlDoc\
**Tags:** bug\
**Created:** [September 1, 2022, 1:43pm UTC](https://swi-prolog.discourse.group/t/reference-to-main-swi-documentation-from-a-package/5735 "2022-09-01T13:43:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgondan1](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/mgondan1/32/803_2.png) [@mgondan1](https://swi-prolog.discourse.group/u/mgondan1)\
**Post date:** [September 1, 2022, 1:43pm UTC](https://swi-prolog.discourse.group/t/reference-to-main-swi-documentation-from-a-package/5735/1 "2022-09-01T13:43:23Z")

</div>

Below is a little error from the build of the mqi package. The messages refer to sections of the main manual using \secref{} in Latex. Is there a way to refer to sections of the main documentation from a package?

One can see the problem also online, here:  
[https://www.swi-prolog.org/pldoc/doc\_for?object=section('packages/mqi.html')](https://www.swi-prolog.org/pldoc/doc_for?object=section(%27packages/mqi.html%27))

Scroll down to Section 1.3 and check the reference to top level/quickstart, it is not being translated to a link.

```prolog
[81%] Generating mqi.html
No label for ref "sec:pengine-references"
No label for ref "sec:quickstart"
No label for ref "sec:attvar"
No label for ref "sec:chr"
No label for ref "sec:wfs-toplevel"
No label for ref "sec:threaddebug"
No label for ref "sec:attvar"
No label for ref "sec:attvar"
[81%] Built target mqi.doc.html

```

Note that the messages appear only under MSYS2, not under Linux (but the problem is the same, no link).

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [September 2, 2022, 6:24am UTC](https://swi-prolog.discourse.group/t/reference-to-main-swi-documentation-from-a-package/5735/2 "2022-09-02T06:24:09Z")

</div>

That won’t work easily because it concerns a different document ☹ Best work around is probably an explicit hyperlink to [https://www.swi-prolog.org](https://www.swi-prolog.org).
