From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33385 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Hodgson Newsgroups: gmane.text.pandoc Subject: Re: To use style sheet from the same directory as input file Date: Fri, 24 Nov 2023 07:33:25 -0800 (PST) Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_18730_1121127784.1700840005949" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2485"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARBR4EQOVQMGQEQ6MJTDA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 24 16:33:31 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r6YBP-0000Nk-1Y for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 24 Nov 2023 16:33:31 +0100 Original-Received: by mail-ot1-f59.google.com with SMTP id 46e09a7af769-6cd0a9b5a90sf2308203a34.0 for ; Fri, 24 Nov 2023 07:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1700840010; x=1701444810; 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=b4vnAVgNaLYQTx6IaxqgAxkmp/SwISvIdayLOmSSL3I=; b=i4MqISjsqNshZeizIHrmwAwK2IMb/OkxysW9fUCbKtPq+oBsQ/du740VkfSpWxLpFf WeNWDddBqWYya1Sro9G4+Cn3MrdishERk7GGCQ3nDOTJ/XTtDMWMZSxAsDAqZg7Ej30u YCpCRZ/9pR2jRVx1bOyPERfbPe1dmR2eE/LexAqQwzIfL44Z5XEzn0luePxYhoLMaDQn pPipPQGzJYQkBU/GymSuc6cX2KYa4ZapccmgGCFoJDu2dOV0Xnqr46XHE3KF1EBfDnoY aPoy1csDySaGcX8V98dURSnsehWwEoQCuEBkILcNyNByBym0kopF8x3lSTgIVd9yJwUe 5Uzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700840010; x=1701444810; 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=b4vnAVgNaLYQTx6IaxqgAxkmp/SwISvIdayLOmSSL3I=; b=ibL6dulUzZfcMqCAZypot5LYBlmGkZr/bUFBa86yIkrydYNl3U26LE+BlO3t5lSsyy JyZyacekMjybouHCjofzuvxy751AZtefgFo7yXuyWuUTzl5EAWllQwxdkg1UyEaO+Aug vy5dbd5q7aFojjNL/250aIMWTokH1Y0sy7IgvYCGvkh5GtXOQThog9Y9sd9WfAaMGak0 vuZLfiVc+HKgXXaBey7a3VufieJZEY9m1qsbcvELgtt2oki2wG3YnlJIQw7+nuQcNUCb H5zSYv5uQfWp6MTEZg0bzlDwXxiwN9pI8fDjQLNp4d1ki3IybcLhLDpYL0JbSk6kZcob cm8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700840010; x=1701444810; 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=b4vnAVgNaLYQTx6IaxqgAxkmp/SwISvIdayLOmSSL3I=; b=Q7p43MgbbU+HrvKMpGcbLc/llrZEPVqEoI35it3jdT63Qfhr5PblJlwC0Y6bU9pwEw HsqBmyMiYWFKVCr8wwn1+1fxtE72Ec2Wp/bxwbJtvGDth+wSbhGDXcDD8cnEbSeObZvN XxK7fxbRa/SipfEXt31JT3KdkNB4In5dmC9FD3HGNKVE5IDPbNBwpYdobnN+/9hrX96i xG7b1JEcbh6CLJn8+Jd2Bt1ZFv2Z4g9gjI07tbvwEGAWDpc5SR85JJkXCPsBMstWoLr1 muQUDfsZqDyATfFZP7PbhHKPxEGOC+yMuunUdem4gZ10PQV5Ke Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YwCQFii72vsYUlKlUxdOb+2UFn6sN0Vat/8CVqBWNetW8CkbMa0 kVO+0fcrqm+pVWsM1EGfeHY= X-Google-Smtp-Source: AGHT+IHrZ8Ao03R+d35SsDQtCQhbfO6uXKcyeAo1wTh/HpHhCp1N0JonjofBEnRYEq/9D9kxmAqE2w== X-Received: by 2002:a9d:68c9:0:b0:6d3:1e5a:d927 with SMTP id i9-20020a9d68c9000000b006d31e5ad927mr3701409oto.5.1700840009858; Fri, 24 Nov 2023 07:33:29 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:613:b0:58a:74b1:929b with SMTP id e19-20020a056820061300b0058a74b1929bls406827oow.1.-pod-prod-08-us; Fri, 24 Nov 2023 07:33:27 -0800 (PST) X-Received: by 2002:a05:6830:1201:b0:6b9:cf90:87a6 with SMTP id r1-20020a056830120100b006b9cf9087a6mr103395otp.1.1700840006651; Fri, 24 Nov 2023 07:33:26 -0800 (PST) In-Reply-To: X-Original-Sender: thomas.hodgson-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:33385 Archived-At: ------=_Part_18730_1121127784.1700840005949 Content-Type: multipart/alternative; boundary="----=_Part_18731_970668069.1700840005949" ------=_Part_18731_970668069.1700840005949 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_18731_970668069.1700840005949 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
To use a css file you should use `--css`, not `--template`: https://pa= ndoc.org/MANUAL.html#option--css

I also don't th= ink that you need to specify a data dir for this use. By default, Pandoc wi= ll look for a CSS file in the same directory.

<= div>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" 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"st= yle.css" --toc=3Dtrue

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 "st= yle.css" in the same directory as "input.md"?

--
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/d6d720da-bd22-484f-87c4-059c4bc5db07n%40googlegroups.= com.
------=_Part_18731_970668069.1700840005949-- ------=_Part_18730_1121127784.1700840005949--