public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Is it possible to pass CSS styles from the command line without using a file?
Date: Wed, 31 Aug 2022 12:48:47 -0700	[thread overview]
Message-ID: <64C736B4-9373-4326-B706-C4B368B81133@gmail.com> (raw)
In-Reply-To: <1158e1bf-63c3-4e88-94bd-da6892939c99n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

You should be able to do -Vheader-includes=‘<style>body{colums:4;}</style>’



> On Aug 31, 2022, at 12:32 PM, name name <ivan20151013-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 
> Sometimes I need to convert a document from Markdown to HTML with some minor adjustments to my default style sheet, and therefore it would be convenient to pass those adjustments directly from command line, without using a second CSS file. Something like this:
> 
> $ pandoc file.md --standalone --css="default.css" --include-in-header="<style>body{columns:4;}</style>" --output file.html
> 
> This doesn't work, but maybe there is another similar option?
> 
> -- 
> 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/1158e1bf-63c3-4e88-94bd-da6892939c99n%40googlegroups.com.

-- 
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/64C736B4-9373-4326-B706-C4B368B81133%40gmail.com.


  parent reply	other threads:[~2022-08-31 19:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-31 19:32 name name
     [not found] ` <1158e1bf-63c3-4e88-94bd-da6892939c99n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-08-31 19:48   ` John MacFarlane [this message]
     [not found]     ` <64C736B4-9373-4326-B706-C4B368B81133-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-08-31 20:06       ` name name

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=64C736B4-9373-4326-B706-C4B368B81133@gmail.com \
    --to=fiddlosopher-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).