quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.93k stars 325 forks source link

Document renders correctly in linux but not in windows #1288

Open SolarDifference opened 2 years ago

SolarDifference commented 2 years ago

Bug description

I developed a qmd document in linux (popOS 22.10) but recently switched to a windows machine. On linux, the qmd document renders without issue. When running the same document in windows, the following issues don't work:

  1. Title does not appear
  2. Table of contents does not appear
  3. Font styles from the styling template are not correct
  4. Bibliography (.bib) and csl documents do not generate a references page.

The text and figures within the quarto document work as expected. Is there something specific I should be doing in windows that I didn't have to do in linux?

title: "Project Title"
format: 
  docx:
    reference-doc: styling_template.docx
    toc: true
    toc-title: Table of Contents
fig-cap-location: bottom
tbl-cap-location: top
bibliography: references.bib
csl: apa.csl

Checklist

cscheid commented 2 years ago

Thanks for the report. Can you give us a full .qmd file to help reproduce the issue? Also, can you please provide the output of quarto check as requested?

SolarDifference commented 2 years ago

Unfortunately I can't provide the full document as it's IP related to my job. Here are the results of quarto check; apologies for leaving that out at first:

[>] Checking Quarto installation......OK
      Version: 0.9.640
      Path: C:\Program Files\Quarto\bin\
      CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
      Version: 4.2.1
      Path: C:/PROGRA~1/R/R-42~1.1
      LibPaths:
        - C:/Users/zacha/AppData/Local/R/win-library/4.2
        - C:/Program Files/R/R-4.2.1/library
      rmarkdown: 2.14

[>] Checking Knitr engine render......OK
cscheid commented 2 years ago

If you create a small version that redacts the proprietary parts, does the problem persist?

SolarDifference commented 2 years ago

If you create a small version that redacts the proprietary parts, does the problem persist?

Yes it does. I just tried running the default quarto document with the options I listed at the top. One error I just noticed was this:

pandoc.exe: styling_template.docx: openBinaryFile: does not exist (No such file or directory)
SolarDifference commented 2 years ago

If you create a small version that redacts the proprietary parts, does the problem persist?

Yes it does. I just tried running the default quarto document with the options I listed at the top. One error I just noticed was this:

pandoc.exe: styling_template.docx: openBinaryFile: does not exist (No such file or directory)

Upon further investigation, that error does not appear when I render the main quarto document. In fact, I can't find any specific error or warning messages that might suggest what the issue is.

cderv commented 2 years ago

@SolarDifference if you remove the styling from your document, does the issue persist ?

Commenting this line in you YAML I mean

    #reference-doc: styling_template.docx

It is possible that the specific style file to use as template is creating the issue.

Anyway, to reproduce on my Windows with default Quarto document, I would need this file.

Thanks