ilm icon indicating copy to clipboard operation
ilm copied to clipboard

Included files

Open mescobal opened this issue 1 year ago • 3 comments

When working with included files, the page number doesn't show in them.

mescobal avatar May 06 '24 02:05 mescobal

I just tested by including a file (#include "file.typ"). It seems to work for me.

Can you give me an example so that I can reproduce the issue that you're facing?

talal avatar May 06 '24 13:05 talal

Found the problem. When i use set heading(numbering: none) the page number disappears. Don't know if is a bug or not.

mescobal avatar May 07 '24 23:05 mescobal

I tried with #set heading(numbering: none) and the page numbering still shows as expected.

Try the following:

  1. Create a new folder, e.g. test.

  2. Create a document in the new folder called main.typ with the following content:

    #import "@preview/ilm:1.1.1": *
    
    #show: ilm.with(
      title: [Test Document],
      author: "Max Mustermann",
      date: datetime(year: 2024, month: 03, day: 19),
      abstract: [ #lorem(50) ],
    )
    
    #set heading(numbering: none)
    
    = Heading on main document
    #lorem(50)
    
    #include "external-page.typ"
    
  3. Create another document called external-page.typ with the following content:

    = Heading on external document
    #lorem(50)
    
    #lorem(50)
    
  4. Compile main.typ. You should see page numbering on all pages.

talal avatar May 08 '24 14:05 talal