public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Stephan Meijer <me-nPKYAObcRdo6Blr+0TYHagC/G2K4zDHf@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Templates
Date: Tue, 9 May 2023 03:27:11 -0700 (PDT)	[thread overview]
Message-ID: <124b5669-9443-441f-84e2-633e3d8ff9bdn@googlegroups.com> (raw)
In-Reply-To: <55ba4c16-2d9f-4ce5-9960-8fd656cec4bfn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 2135 bytes --]

Hi,

I tried sending this earlier but I failed

Pandoc default templates can be exported, e.g.:

*$ pandoc -D html*
*$ pandoc -D markdown*

See also https://github.com/jgm/pandoc/tree/main/data/templates

Pandoc templates can be included in pandoc calles, e.g:

*$ pandoc -s --from=docx --to=html --template=/path/to/template.html 
/path/to/input.docx*

the *-s* is very important as it activates standalone use (it might be 
automatically activated by using *--template*).

See attachment of an example template (I use for Docx)

Hope I was of any help.

Stephan.

On Monday, 8 May 2023 at 14:09:34 UTC+2 Ian Cornelius wrote:

> Start with
> https://pandoc.org/MANUAL.html#option--reference-doc
> and
> https://pandoc.org/MANUAL.html#templates
>
> On Sunday, May 7, 2023 at 1:41:22 PM UTC-5 Mark Pinsley wrote:
>
>> How do I create visually good looking output from a file.
>>
>> I have attached two documents a .docx and .ppt
>>
>> To create these, all I did was hit new document and choose one of the 
>> existing template
>>
>> If I have a .md file. How can I get it to physically look good and what 
>> tools are available
>>
>> 1. How do I create a template for  the output file being a .docx, a ppt, 
>> a pdf using templates
>> 2. How do I create the templates
>> 3. I am on a PC do I have to put the templates somwhere specific on my 
>> drive
>> 4. Is there a place to see existing templates
>> 5. What is the command I need to use to do that
>> 6. Same question for HTML
>>
>> If there is a video I should watch let me know. once again I am new to 
>> this and not a programmer.  I haven't found too many Pandoc videos
>>
>> Thanks
>> Mark
>>
>>

-- 
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/124b5669-9443-441f-84e2-633e3d8ff9bdn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 4060 bytes --]

[-- Attachment #2: template.html --]
[-- Type: text/html, Size: 1473 bytes --]

      parent reply	other threads:[~2023-05-09 10:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-07 18:41 Templates Mark Pinsley
     [not found] ` <ddf4e9b7-390b-4475-9e06-c689e95b1658n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-05-08 12:09   ` Templates Ian Cornelius
     [not found]     ` <55ba4c16-2d9f-4ce5-9960-8fd656cec4bfn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-05-09 10:27       ` Stephan Meijer [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=124b5669-9443-441f-84e2-633e3d8ff9bdn@googlegroups.com \
    --to=me-npkyaobcrdo6blr+0tyhagc/g2k4zdhf@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).