From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33387 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: name name Newsgroups: gmane.text.pandoc Subject: Re: To use style sheet from the same directory as input file Date: Fri, 24 Nov 2023 08:36:52 -0800 (PST) Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_21684_1735155549.1700843812267" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11676"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD35HTOSWYHRBJVCQOVQMGQE4LLQHUY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 24 17:36:59 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f183.google.com ([209.85.210.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r6ZAp-0002j8-21 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 24 Nov 2023 17:36:59 +0100 Original-Received: by mail-pf1-f183.google.com with SMTP id d2e1a72fcca58-6cbbb97200dsf2210962b3a.0 for ; Fri, 24 Nov 2023 08:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1700843817; x=1701448617; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=TjJhYmRIx95cFzrb4JyuGxVP7eecAc7Cxgpl1DnnJMs=; b=BftyN2Enk4Hnctf6onWx7r1WtuLVYi5E/lBA+ogoTO8R/HyBSJ2uZR3DbFXNu1kQvj q+/gYo7a7a8fb34eSqYjwOwphmtZPFrYVxmmidAdli7FYyt7EgQqiKGhmpmvZkiDwt9g AQQBbtSwkLEIkTcS/0CQGWhXFHnPsQr9MTqG8v4CSnjyBg/mPaC/XU7hp+51whkTMSN2 BAH4pq9t8zdZ0MohQjrKTBD8Z/UOU8JqL2he5Rn7dvue3N5gjfkCUCFv2SaWqNmhcalO tk08Lt7EhsCBeKlB3A5RAkDix5JiqiG5hP1TyD44aaiy9W4E0OG2nc5wFyLW6quj4diJ qYvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700843817; x=1701448617; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=TjJhYmRIx95cFzrb4JyuGxVP7eecAc7Cxgpl1DnnJMs=; b=hqFrZyet4Cv1HE5qeBebEf8zP0be/jomHYT5FBtT22gMorTdNdIUqOKHGgeQxD8+qf eUPa9SsmAfcMaEWQSQlFcDcIca5JJl7ZCj4HPoNSNYNPGoldjVZqcQ31hEwrN9xlWpoj gCbOeiOuBLvVWNg63AOrMX4bXJ1j54HhyUZvfKFefCQY23MoE0nvMI7AoylkAiSMUwuD iEIEJfcUrJFCYfJedwOWIPamVF2LwKp8PmUzQE54X7THWjQ8rbESaq0zw+XvnrOXmgWs V6bn8fwcl3k+W5669JweUHPvZzFxpDWFuF49h80pxqAA3hf2kP6XxRLhrbaTLUzFc7Bs Qg/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700843817; x=1701448617; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=TjJhYmRIx95cFzrb4JyuGxVP7eecAc7Cxgpl1DnnJMs=; b=qyEIyB4fqb8RkhZsqEaZ7JnzdSFxda9Qy+pqIzTWzeFKISmixte/4b05DXvxUFdSo1 Wz0fjRXGO2DVA2ovok1xC6WyU7dieYxReVb3n/eTO6/1JetuFsHj0Wi85dV1ZCStaZuC 69i4Cwg7UI1K7uQtzv5KJk3u0U/clCDpzK0a5TFTbrdoLy8yqesnzf3EIaDxw4pQFcrO rBymFjwDaSrMqh0hzg7AMDPVZ/67gYyRtbo+hjyhBH1kLO1FeEF9KeWIwMLBkKdjWMpL 20iMmVdWV7f4ExrtMQWIdHOXYj/XPl6FWH/N2Ok6dJdpQXR2Bi Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YxE4j02IsuKazdwU1w94YrWFmObtIFpclJ0JQ/Or3WKwX9hRIf/ 8PfsAutbbQWH1Uus+waZXMM= X-Google-Smtp-Source: AGHT+IHCUnnBTh2xCo7npNuPThRfqXt3EoAAhU46YccXJQJfz/lGf9gvpJgPzqRq0d+nD3Ai/H4cJQ== X-Received: by 2002:a05:6a20:daa7:b0:186:555e:bc80 with SMTP id iy39-20020a056a20daa700b00186555ebc80mr3859910pzb.25.1700843817595; Fri, 24 Nov 2023 08:36:57 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:c14b:b0:1cf:5872:3b63 with SMTP id 11-20020a170902c14b00b001cf58723b63ls404672plj.0.-pod-prod-06-us; Fri, 24 Nov 2023 08:36:53 -0800 (PST) X-Received: by 2002:a17:902:bf07:b0:1cf:7962:657c with SMTP id bi7-20020a170902bf0700b001cf7962657cmr610901plb.11.1700843813217; Fri, 24 Nov 2023 08:36:53 -0800 (PST) In-Reply-To: X-Original-Sender: ivan20151013-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33387 Archived-At: ------=_Part_21684_1735155549.1700843812267 Content-Type: multipart/alternative; boundary="----=_Part_21685_1511199928.1700843812267" ------=_Part_21685_1511199928.1700843812267 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks! On Friday, November 24, 2023 at 6:33:26=E2=80=AFPM UTC+3 Thomas Hodgson wro= te: > To use a css file you should use `--css`, not `--template`:=20 > https://pandoc.org/MANUAL.html#option--css > > I also don't think that you need to specify a data dir for this use. By= =20 > default, Pandoc will look for a CSS file in the same directory. > > This should work: > > pandoc input.md -o output.html -s --css=3Dstyle.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"= =20 >> which is in the same directory as the input file. >> >> Here's what I tried: >> >> pandoc input.md -o output.htm -s --data-dir=3D"./" --template=3D"style.c= ss"=20 >> --toc=3Dtrue >> >> But Pandoc says "Could not find data file templates/style.css" so it=20 >> 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=20 >> "input.md"? >> > --=20 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 e= mail 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. ------=_Part_21685_1511199928.1700843812267 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks!

On Friday, November 24, 2023 at 6:33:26=E2=80=AFPM UTC+3 Thomas H= odgson 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.

Thi= s should work:

pandoc input.md -o output.html -s -= -css=3Dstyle.css --toc

<= div dir=3D"auto" class=3D"gmail_attr">On Thursday, 23 November 2023 at 18:5= 0:14 UTC+1 name name wrote:
I want to convert "input.md" to "output.html" usi= ng 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=3D"./" --template=3D"style.css" --toc=3D= true

But Pandoc says "Could not find data file templates/style.= css" so it seems like it is trying to find "style.css" somew= here else.

How can I make it look for "style.css" in the s= ame directory as "input.md"?
<= /div>

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.
------=_Part_21685_1511199928.1700843812267-- ------=_Part_21684_1735155549.1700843812267--