public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Paul <paulschillinger93-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Change default template for .docx output
Date: Wed, 24 Nov 2021 10:05:09 -0800 (PST)	[thread overview]
Message-ID: <a31ea32d-35a0-4efa-8735-e475b9c6a8b4n@googlegroups.com> (raw)
In-Reply-To: <20008b51-bd5a-456e-a16e-0e5212398a88n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


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

Ok, great, I figured it out! I followed this https://pandoc.org/MANUAL.html 
and put a "reference.docx" in ~/.pandoc/ and then Pandoc apparently does 
the rest and it works :) Thanks for the help!

On Wednesday, November 24, 2021 at 6:55:59 p.m. UTC+1 Alan wrote:

> Yes, you should put them, but as I said, pandoc plugin is strange so you 
> have to experiment with or without quotes, with or without "=" etc
>
> Something like this
>
> --reference-doc my-reference.docx -- --citeproc --csl sage-harvard.csl 
> --bibliography yourbibtexfile.bib
>
> I don't remember, but I think that I change something just use trial and 
> error. :-)
>
> On Wednesday, November 24, 2021 at 6:43:55 PM UTC+1 paulschi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 
> wrote:
>
>>
>> Thanks! I'm not sure I understand all of that. Are you saying to put 
>> those commands in the "Extra Pandoc arguments" field in the Obsidian 
>> plugin? Because that didn't work for me. Or did I do that wrong?
>> On Wednesday, November 24, 2021 at 5:07:02 p.m. UTC+1 Alan wrote:
>>
>>> My pandoc command md to word
>>>
>>> pandoc --reference-doc my-reference.docx -s input.md --citeproc --csl 
>>> sage-harvard.csl -o output.docx
>>>
>>> --citeproc for process citations
>>>
>>> --csl sage-harvard.csl  use specific bibliography format download from 
>>> here https://www.zotero.org/styles 
>>>
>>> my bibtex file is referenced in yaml header of md file or
>>>
>>> --bibliography yourbibtexfile.bib
>>>
>>> Obsidian pandoc plugin is - well, let's say, not ideal, so you have try 
>>> various command with or without quotes etc. I don't remember how I set up, 
>>> I give up from Obsidian because of pandoc problems. Of course, you can 
>>> always use terminal, but it's more convenient to use pandoc from app
>>>
>>>
>>> On Wednesday, November 24, 2021 at 4:58:32 PM UTC+1 Alan wrote:
>>>
>>>> --reference-doc my-reference.docx
>>>> or
>>>> --reference-doc=my-reference.docx
>>>>
>>>> Presume my-reference.docx is in the same folder your Obsidian vault is.
>>>>
>>>>
>>>> On Wednesday, November 24, 2021 at 3:30:38 PM UTC+1 
>>>> paulschi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
>>>>
>>>>> I'm on Linux and using Obsidian.md for taking notes. Someone from the 
>>>>> Obsidian community created a plugin that uses Pandoc so you can output your 
>>>>> notes to a desired format. For me that's .docx files. I'm trying to find a 
>>>>> way to change the default template.
>>>>>
>>>>> Specfically I'd like to change the font color for headings and the 
>>>>> default line spacing. I have a file I called "default.docx" but that didn't 
>>>>> work. So I found the thing on the "about" page "--reference-doc=*FILE 
>>>>> *
>>>>> but I don't understand how to tell Pandoc that I want it to use the 
>>>>> reference for .docx *always*.
>>>>>
>>>>> Thanks!
>>>>>
>>>>

-- 
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/a31ea32d-35a0-4efa-8735-e475b9c6a8b4n%40googlegroups.com.

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

      parent reply	other threads:[~2021-11-24 18:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 14:30 Paul
     [not found] ` <39fde55d-6ab2-4012-840d-50c6f3eba98dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-24 15:58   ` Alan
     [not found]     ` <af7ea85c-a799-43ab-aa06-e2969d79ecadn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-24 16:07       ` Alan
     [not found]         ` <f46e4d65-0fdf-4be2-949b-2f4f7a68ac99n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-24 17:43           ` Paul
     [not found]             ` <9cb5a927-345d-42e8-b671-e733b2d6f739n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-24 17:55               ` Alan
     [not found]                 ` <20008b51-bd5a-456e-a16e-0e5212398a88n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-24 18:05                   ` Paul [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=a31ea32d-35a0-4efa-8735-e475b9c6a8b4n@googlegroups.com \
    --to=paulschillinger93-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).