* ebookstyle.css for epub and html in md source
@ 2022-08-20 23:37 ivo....-xwz7R8GQi1g@public.gmane.org
[not found] ` <446473cb-a6d8-4b06-9128-b71730b48d95n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: ivo....-xwz7R8GQi1g@public.gmane.org @ 2022-08-20 23:37 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1064 bytes --]
What is the recommended way to generate both html and epub output from a
markdown document with my own style file? I would like both `$ pandoc -o
test.html test.md` and `$ pandoc -o test.epub test.md` work?
For example, let's say that I want to make my h1 headings appear in
MyWebFont.
```
@font-face { font-family: 'MyWebFont'; src: url('myfont.woff2') format(
'woff2'); }
h1 { font-family: 'MyWebFont', Fallback, sans-serif; color:blue; }
```
how should I stick this css into my markdown .md file? should I include it
via a <style> command directly or via a reference to an external css file
or ... ?
advice appreciated.
/iaw
--
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/446473cb-a6d8-4b06-9128-b71730b48d95n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2568 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ebookstyle.css for epub and html in md source
[not found] ` <446473cb-a6d8-4b06-9128-b71730b48d95n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-08-22 16:43 ` John MacFarlane
[not found] ` <EFF770A8-2A10-4883-9ADA-5234A849164B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2022-08-22 16:43 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Use the `--css` option (together with `-s/--standalone`).
> On Aug 20, 2022, at 4:37 PM, ivo....-xwz7R8GQi1g@public.gmane.org <ivo.welch-xwz7R8GQi1g@public.gmane.org> wrote:
>
>
> What is the recommended way to generate both html and epub output from a markdown document with my own style file? I would like both `$ pandoc -o test.html test.md` and `$ pandoc -o test.epub test.md` work?
>
> For example, let's say that I want to make my h1 headings appear in MyWebFont.
>
> ```
> @font-face { font-family: 'MyWebFont'; src: url('myfont.woff2') format('woff2'); }
> h1 { font-family: 'MyWebFont', Fallback, sans-serif; color:blue; }
> ```
>
> how should I stick this css into my markdown .md file? should I include it via a <style> command directly or via a reference to an external css file or ... ?
>
> advice appreciated.
>
> /iaw
>
>
>
>
>
> --
> 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/446473cb-a6d8-4b06-9128-b71730b48d95n%40googlegroups.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ebookstyle.css for epub and html in md source
[not found] ` <EFF770A8-2A10-4883-9ADA-5234A849164B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2022-08-22 18:03 ` mr vicky
0 siblings, 0 replies; 3+ messages in thread
From: mr vicky @ 2022-08-22 18:03 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 2390 bytes --]
can you show me your css style file ?
i am looking to find also for my epub file
On Mon, 22 Aug 2022 at 9:43 pm, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Use the `--css` option (together with `-s/--standalone`).
>
> > On Aug 20, 2022, at 4:37 PM, ivo....-xwz7R8GQi1g@public.gmane.org <ivo.welch-xwz7R8GQi1g@public.gmane.org>
> wrote:
> >
> >
> > What is the recommended way to generate both html and epub output from a
> markdown document with my own style file? I would like both `$ pandoc -o
> test.html test.md` and `$ pandoc -o test.epub test.md` work?
> >
> > For example, let's say that I want to make my h1 headings appear in
> MyWebFont.
> >
> > ```
> > @font-face { font-family: 'MyWebFont'; src: url('myfont.woff2')
> format('woff2'); }
> > h1 { font-family: 'MyWebFont', Fallback, sans-serif; color:blue; }
> > ```
> >
> > how should I stick this css into my markdown .md file? should I include
> it via a <style> command directly or via a reference to an external css
> file or ... ?
> >
> > advice appreciated.
> >
> > /iaw
> >
> >
> >
> >
> >
> > --
> > 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/446473cb-a6d8-4b06-9128-b71730b48d95n%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/EFF770A8-2A10-4883-9ADA-5234A849164B%40gmail.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/CAH8MJH_9GotXH1j9s8nFsqAvq6v3J7GLd2J5RO-ysGMyk3uq%3Dg%40mail.gmail.com.
[-- Attachment #2: Type: text/html, Size: 3954 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-22 18:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-20 23:37 ebookstyle.css for epub and html in md source ivo....-xwz7R8GQi1g@public.gmane.org
[not found] ` <446473cb-a6d8-4b06-9128-b71730b48d95n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-08-22 16:43 ` John MacFarlane
[not found] ` <EFF770A8-2A10-4883-9ADA-5234A849164B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-08-22 18:03 ` mr vicky
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).