#using #link(<heading>)[heading] to reference another typ file

1 messages · Page 1 of 1 (latest)

narrow flower
#

hi everyone, im writing my thesis, and i have "inherited" a template. it has a single file for every chapter (pic is the structure). When i try to link to a chapter, it says that the lable doesnt exists. Does anybody have the same problem or had and fixed it?

thesis.typ:

#import "./config/variables.typ": *
#import "./config/thesis-config.typ": *

#show: config.with(
  myAuthor: myName,
  myTitle: myTitle,
  myNumbering: "1.1",
  myLang: myLang,
)

#include "structure.typ"

structure.typ:

// Frontmatter

#include "./appendix/entries.typ"
#include "./preface/1-firstpage.typ"
#include "./preface/2-copyright.typ"
#include "./preface/3-summary.typ"
#include "./preface/4-acknowledgements.typ"
#include "./preface/5-table-of-contents.typ"

// Mainmatter

#counter(page).update(1)

#include "./chapters/1-business-context.typ"
#include "./chapters/2-stage-purpose.typ"
#include "./chapters/3-stage-description.typ"
#include "./chapters/4-conclusions.typ"

// Appendix
#include "./appendix/1-glossary.typ"

#include "./appendix/2-bibliography.typ"

chapter1.typ (its empty for now lol)

= Il contesto
<business-context>
#v(1em)
#text(
  style: "italic",
  [ ],
)
#v(1em)
== subtitle

summary.typ:

[...]
In questo documento, espongo il lavoro che ho svolto con la seguente suddivisione:

-Nel #link(<business-context>)[primo capitolo] descrivo il contesto
all'interno del quale ho svolto il mio tirocinio, fornendo una panoramica degli strumenti e dei processi adottati.
- Nel #link(<stage-purpose>)[secondo capitolo] espongo lo
scopo dello stage, i prodotti attesi, il #glossary("Way of Working") e gli obiettivi personali.
- Nel #link(<stage-description>)[terzo capitolo] descrivo nel dettaglio le attività svolte e metodi di approccio a
problemi. Alla fine presento brevemente il prodotto finale.

[...]

also update: if i manually compile the typst, it shows the changes

dawn falcon
#

Have you pinned thesis.typ as the main file in tinymist?