From: name name <ivan20151013-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: To use style sheet from the same directory as input file
Date: Fri, 24 Nov 2023 08:36:52 -0800 (PST) [thread overview]
Message-ID: <fa24d217-1fd4-40bb-b99d-a9e29ff96bf8n@googlegroups.com> (raw)
In-Reply-To: <d6d720da-bd22-484f-87c4-059c4bc5db07n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1412 bytes --]
Thanks!
On Friday, November 24, 2023 at 6:33:26 PM UTC+3 Thomas Hodgson wrote:
> 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/fa24d217-1fd4-40bb-b99d-a9e29ff96bf8n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2523 bytes --]
prev parent reply other threads:[~2023-11-24 16:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-23 17:50 name name
[not found] ` <af2ed26d-ae7a-4101-a7bc-fb1e59a1d099n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-11-24 15:33 ` Thomas Hodgson
[not found] ` <d6d720da-bd22-484f-87c4-059c4bc5db07n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-11-24 16:36 ` name name [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fa24d217-1fd4-40bb-b99d-a9e29ff96bf8n@googlegroups.com \
--to=ivan20151013-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).