Generate a PDF from a markdown note file via pandoc + xelatex with mermaid diagram support.
When the user asks to generate a PDF from a markdown note file, follow this workflow:
Determine the input file: The user will provide a path or dendron note name. Resolve it to a filename relative to notes/ (e.g., swanki.processing.pdf_processor.md).
Determine the output filename: Strip the .md extension from the input filename to use as the output name (e.g., swanki.processing.pdf_processor).
Run the PDF generation script:
bash notes/assets/publish/scripts/bib_tex_pdf.sh <input_filename> . <output_filename>
notes/). (output dir, relative to notes/ after the script's internal cd ./notes)Verify the output: Check that notes/assets/pdf-output/<output_filename>.pdf exists.
Report the result: Tell the user the path to the generated PDF and note any warnings (e.g., missing citations).
SCRIPT_DIR to derive NOTES_DIR, so all paths are resolved automaticallymermaid-filter for diagram rendering -- if mermaid diagrams produce empty PNGs, the env vars MERMAID_FILTER_LOC, MERMAID_FILTER_SCALE, MERMAID_FILTER_WIDTH may need to be set (the script handles this)