To use a css file you should use `--css`, not `--template`: https://pandoc.org/MANUAL.html#option--css I also don't think that you need to specify a data dir for this use. By default, Pandoc will look for a CSS file in the same directory. This should work: pandoc input.md -o output.html -s --css=style.css --toc On Thursday, 23 November 2023 at 18:50:14 UTC+1 name name wrote: > I want to convert "input.md" to "output.html" using my own "style.css" > which is in the same directory as the input file. > > Here's what I tried: > > pandoc input.md -o output.htm -s --data-dir="./" --template="style.css" > --toc=true > > But Pandoc says "Could not find data file templates/style.css" so it seems > like it is trying to find "style.css" somewhere else. > > How can I make it look for "style.css" in the same directory as "input.md"? > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d6d720da-bd22-484f-87c4-059c4bc5db07n%40googlegroups.com.