kevboh / longform

A plugin for Obsidian that helps you write and edit novels, screenplays, and other long projects.
Other
610 stars 30 forks source link

Bug: footnotes dropped or missing after compiling #255

Closed aarontimo closed 2 months ago

aarontimo commented 2 months ago

Versions Longform version: 2.0.7 Obsidian version: 1.5.12 OS [e.g. macOS, Windows, iOS, Android]: macOS Theme: Things Other plugins that you think might be relevant here:

Describe the bug When using footnote citations, some footnotes are omitted when compiling. Also, footnotes appear at the end of the document (i.e. endnotes, rather than footnotes).

To Reproduce Steps to reproduce the behavior:

  1. insert multiple footnotes using Footnote Shortcut plugin across multiple scene.
  2. Click compile

Expected behavior These are the footnote references in scene 1: image these are the footnote references in scene 2: image after compiling, the footnotes become endnotes and are missing references from scene 1:

image

Additional context

aarontimo commented 2 months ago

Sorry - not a bug. The issue was with the export to pdf in obsidian.

To convert a Markdown file to a Word document (.docx) using Pandoc with footnotes at the bottom of each page, you can use the following command in the terminal:

pandoc input.md -o output.docx --reference-doc=reference.docx

Here's a breakdown of the command:

Make sure you have Pandoc installed on your system. If you haven't installed it yet, you can download it from the official Pandoc website: https://pandoc.org/installing.html

Once you have Pandoc installed and have created the reference.docx file with the desired footnote settings, navigate to the directory containing your Markdown file in the terminal and run the provided command. Pandoc will convert the Markdown file to a Word document with footnotes placed at the bottom of each page.

Note: If your Markdown file contains complex formatting or specific styling requirements, you may need to customize the reference document further or use additional Pandoc options to achieve the desired output.