From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31535 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gianluca Carbone Newsgroups: gmane.text.pandoc Subject: Re: Use custom template for markdown Date: Thu, 13 Oct 2022 03:26:35 -0700 (PDT) Message-ID: <8c51680f-f2e8-452d-8a2e-2fd3a8657b16n@googlegroups.com> References: <83207291-1220-4357-9ce3-6bfe591322b1n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_750_2143750841.1665656795566" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24082"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDYLVBUDZEBBBXGPT6NAMGQENHZ5C4Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 13 12:26:40 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f64.google.com ([209.85.161.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oivQF-000622-Re for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 13 Oct 2022 12:26:39 +0200 Original-Received: by mail-oo1-f64.google.com with SMTP id o2-20020a4a3842000000b004808060499dsf798810oof.5 for ; Thu, 13 Oct 2022 03:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=zZLyoJJmShapSTlZgeEzNEQum9VzeSO4CLGuHVv15XA=; b=oxBt/QwNvdxBVG/AcjLAfoFEDA7JATozixPEgx8CZm78gy2JzdWND2/cbkg/1aD5Ff nQO5lvp1KIUnHtd0o2odFQvYqtRgSJEGakGoEVWm+knrRsTpgYeZmvFBb2FULrU26av3 mNHuMvuGl2Zm6qY7BwsIweXT5djK4fdrGGEtVNcMA5Xbv2Bni6lBxq1AsMRwHzp2ulTy BpddmASmucV7YjnE6BC4bBewBrWNsKmNVDxhbvCJSx04H7JW/dlGAV3j6grHI1mulgZp J3Z3oqjAIznfCRjqt/leaEFghtZw5HBtW7GFQDyTbGNgYeShFzDLm3Ueas6Cv1SJik4i msOw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=zZLyoJJmShapSTlZgeEzNEQum9VzeSO4CLGuHVv15XA=; b=gIT6yet6nNcYOMkm5cjn+C9glmZ4HzC113VTpc3wlUNXtMWVki/umcr9aLDh17xr7y YhO3z2nl051g0LmzGUXW32Z//4VuI2mXGp8DuXPW0KUveMBXSe35qSUg7HUToiXChIcK rEctubjSAM/hDegD7R3IUku+dsa/LC8sgC1SGAHL9w9t4jc7zQA793ML5RXg++Gz6seY 5X1IdvvHcMQ+k8/Q32xU/GFHhZHxlZDu3c28XDBzGkjzycKTx3z9fwRNflwEcyx2r4u4 rY6s+cim5NA4n+HWWl5jyHGG19i2es1BbhD7TD2Y413yCi66ZwWmmGibJK5N8AkxzFEy 0tBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=zZLyoJJmShapSTlZgeEzNEQum9VzeSO4CLGuHVv15XA=; b=TVt7q1QI9AcEuSCXoREdLJv0uuVwo3RhLPgfBYQTgjxSNQF2FpxTcE9sL1bMrSC3Jq OJvX1iVpN+O8byFT+iEjlMUUw11561DdkgW+VsA2W/jvna/BanDuaXwEqbFjO3uVJttX LnClofxZKsfh71GwBN4iiB9sTm3/A3cEIQawPZ1JbiUMg93kM4zV42fLnsLKg+AurpAx 8ZkVY2S+bK7oUBF7RcHlxkqfZgnmknf7fQDiZk+PvWmN7XtPqJhlMi9jeN+Y6Ea82l2Q zY3AIL2/cjVQfIX063pJO37v3N3S/g0GBqYwWynP7rwHVt0/RtJpRtQcdjMVUuh0LtgT f/pQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf0KHgUQ/6oJtJLSuvxBe7xnO1YqwG6utTIMB+lNAP4OrVsuVgnw hKQnT6BKBNAzVHneFQY3gUQ= X-Google-Smtp-Source: AMsMyM7j9kOMIavMw6Nk7rsMFGXomHZDzbLm8azRNCOTk/ZYqD/qgZVczVKwx6otpXQbeiTXuoe18Q== X-Received: by 2002:a05:6808:1392:b0:350:5244:e181 with SMTP id c18-20020a056808139200b003505244e181mr4104915oiw.226.1665656798740; Thu, 13 Oct 2022 03:26:38 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:546:b0:354:6639:a1f with SMTP id i6-20020a056808054600b0035466390a1fls392846oig.0.-pod-prod-gmail; Thu, 13 Oct 2022 03:26:36 -0700 (PDT) X-Received: by 2002:a05:6808:1392:b0:350:53a7:b9db with SMTP id c18-20020a056808139200b0035053a7b9dbmr4204238oiw.63.1665656796366; Thu, 13 Oct 2022 03:26:36 -0700 (PDT) In-Reply-To: X-Original-Sender: gianlucarbone96-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:31535 Archived-At: ------=_Part_750_2143750841.1665656795566 Content-Type: multipart/alternative; boundary="----=_Part_751_80767690.1665656795566" ------=_Part_751_80767690.1665656795566 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you! I made this mistake because I'm new with the tool! Thank you for= =20 the help! Il giorno mercoled=C3=AC 12 ottobre 2022 alle 13:42:47 UTC+2 Bastien Dumont= ha=20 scritto: > -D stands for --print-default-template, not =E2=80=9Cprint the template s= pecified=20 > in your command=E2=80=9D! Specifying your template file via --template wh= en=20 > converting a file to markdown should work (but I don't know if you can=20 > strip the extension as you did). > > Le Wednesday 12 October 2022 =C3=A0 03:16:49AM, Gianluca Carbone a =C3=A9= crit : > > Hello guys, > >=20 > > I tried to use a custom template written by me coping the content of th= e > > command: > > pandoc -D markdown > >=20 > > Next I add some markdown lines as static text that I want in the output= =20 > of my > > markdown file. > >=20 > > I put this file in the folder /home/ubuntu/.pandoc/templates/ > > nameproject.markdown, and I check the path of pandoc with the command: > > pandoc --version > >=20 > > When i want to see if pandoc use the correct template, I use: > > pandoc -D markdown --template nameproject > >=20 > > But it prints always the same default.markdown file > >=20 > > How can I use a custom markdown file? > >=20 > > Thanks in advance! > >=20 > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [2] > https://groups.google.com/d/msgid/ > > pandoc-discuss/83207291-1220-4357-9ce3-6bfe591322b1n%40googlegroups.com= . > >=20 > > References: > >=20 > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [2]=20 > https://groups.google.com/d/msgid/pandoc-discuss/83207291-1220-4357-9ce3-= 6bfe591322b1n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > > --=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/8c51680f-f2e8-452d-8a2e-2fd3a8657b16n%40googlegroups.com. ------=_Part_751_80767690.1665656795566 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you! I made this mistake because I'm new with the tool! Thank you for= the help!

Il giorno mercoled=C3=AC 12 ottobre 2022 alle 13:42:47 UTC+2 Basti= en Dumont ha scritto:
-D stands for --print-default-template, not =E2=80=9Cprint the tem= plate specified in your command=E2=80=9D! Specifying your template file via= --template when converting a file to markdown should work (but I don't= know if you can strip the extension as you did).

Le Wednesday 12 October 2022 =C3=A0 03:16:49AM, Gianluca Carbone a =C3= =A9crit :
> Hello guys,
>=20
> I tried to use a custom template written by me coping the content = of the
> command:
> pandoc -D markdown
>=20
> Next I add some markdown lines as static text that I want in the o= utput of my
> markdown file.
>=20
> I put this file in the folder /home/ubuntu/.pandoc/templates/
> nameproject.markdown, and I check the path of pandoc with the comm= and:
> pandoc --version
>=20
> When i want to see if pandoc use the correct template, I use:
> pandoc -D markdown --template nameproject
>=20
> But it prints always the same default.markdown file
>=20
> How can I use a custom markdown file?
>=20
> Thanks in advance!
>=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 email
> to [1]pandoc-discus...@= googlegroups.com.
> To view this discussion on the web visit [2]https://groups.google.com/d/msgid/
> pandoc-discuss/83207291-1220-4357-9ce3-6bfe591322b1n%40googlegroups.com.
>=20
> References:
>=20
> [1] mailto:pandoc-discu= s...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] https://groups= .google.com/d/msgid/pandoc-discuss/83207291-1220-4357-9ce3-6bfe591322b1n%40= googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter

--
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/8c51680f-f2e8-452d-8a2e-2fd3a8657b16n%40googlegroups.= com.
------=_Part_751_80767690.1665656795566-- ------=_Part_750_2143750841.1665656795566--