public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc option to show full path of css file being used?
@ 2019-05-01 14:34 CR
       [not found] ` <cc96d9f0-7ba1-4974-b642-b418ebad70dd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: CR @ 2019-05-01 14:34 UTC (permalink / raw)
  To: pandoc-discuss


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

Pandoc 2.2.1 on Windows 7

I'm having trouble getting the size of headers to change. I've specified my 
css file on the command line with `--css=style.css`. Contents of the css 
file are as follows:

````
/* HTML tags */
h1 {text-align:left;
   font-size:160%;}
h2 {text-decoration:underline;
text-align:left;
font-size:150%;
font-style:italic;
}
h3 {text-align:left;
font-size:130%;
font-weight:bold;}

h4 {
text-align:left;
font-weight:normal;
font-style:italic;
font-size:120%;
}

p {text-align:left;
}

/* blockquote > p */
blockquote  {border-left:2px solid black;
background-color:#e0e0e0 !important; /* Grayish color */
margin:3pt 5pt 5pt 5pt; /* TOP RIGHT BOTTOM LEFT */
padding-left:5pt;
padding-top:none;
padding-bottom:none;
}

div,li,span { text-align:left;
}

div.poem {
    margin-left:8px;
    background-color:#e0e0e0;
    white-space:pre-line; /* First line of poem must be same line as <div 
class="poem">First line of poem*/
}

.caption {text-align:left;
}

code {background-color:#e0e0e0; /* Grayish color */
/*border:1px black solid;*/
text-decoration:none;
}

pre {background-color:#e0e0e0; /* Grayish color */
border:1px black solid;
text-decoration:none;
}

/* .Classes, usage: <p class="myclass"> */

````

But when I open the EPUB in the Firefox addon EPUBReader the fonts for 
headers still look too big. Is there an option for Pandoc 2.2.1 (or later) 
for Pandoc showing the complete drive letter and path of the css file being 
used? It can say "CSS file: f:\pandoc\style01.css" or simply "CSS file: 
none".

Thank you.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/cc96d9f0-7ba1-4974-b642-b418ebad70dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pandoc option to show full path of css file being used?
       [not found] ` <cc96d9f0-7ba1-4974-b642-b418ebad70dd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-05-01 14:36   ` CR
       [not found]     ` <fa434e17-9522-496e-af1d-ee85b081c6b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: CR @ 2019-05-01 14:36 UTC (permalink / raw)
  To: pandoc-discuss


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

Sorry. I'm converting Markdown to an EPUB. The file `style.css` is in the 
same dir as all the markdown files and the batch file. Markdown files are 
all on the F: drive in the same dir as the `style.css` file.

Here's my full command line for pandoc in a batch file. 

````
@echo off
set outfile=test.epub
c:\chuck\ebook\pandoc\pandoc 
--from=markdown_mmd+backtick_code_blocks+yaml_metadata_block+line_blocks+auto_identifiers 
--css=style.css --to=epub -o %outfile% ch000.md ch001.md ch002.md ch003.md 
ch004.md ch005.md ch006.md ch007.md ch008.md ch009.md ch010.md ch011.md 
ch012.md ch013.md ch014.md ch015.md ch016.md ch017.md ch018.md ch019.md 
ch020.md ch021.md ch022.md ch023.md ch024.md ch025.md ch026.md ch027.md 
ch028.md ch029.md ch030.md

echo Done.
````

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fa434e17-9522-496e-af1d-ee85b081c6b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pandoc option to show full path of css file being used?
       [not found]     ` <fa434e17-9522-496e-af1d-ee85b081c6b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-05-01 16:16       ` John MacFarlane
  0 siblings, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2019-05-01 16:16 UTC (permalink / raw)
  To: CR, pandoc-discuss


Unzip the epub and see if your CSS file is properly included.

CR <chuckr69-Wuw85uim5zDR7s880joybQ@public.gmane.org> writes:

> Sorry. I'm converting Markdown to an EPUB. The file `style.css` is in the 
> same dir as all the markdown files and the batch file. Markdown files are 
> all on the F: drive in the same dir as the `style.css` file.
>
> Here's my full command line for pandoc in a batch file. 
>
> ````
> @echo off
> set outfile=test.epub
> c:\chuck\ebook\pandoc\pandoc 
> --from=markdown_mmd+backtick_code_blocks+yaml_metadata_block+line_blocks+auto_identifiers 
> --css=style.css --to=epub -o %outfile% ch000.md ch001.md ch002.md ch003.md 
> ch004.md ch005.md ch006.md ch007.md ch008.md ch009.md ch010.md ch011.md 
> ch012.md ch013.md ch014.md ch015.md ch016.md ch017.md ch018.md ch019.md 
> ch020.md ch021.md ch022.md ch023.md ch024.md ch025.md ch026.md ch027.md 
> ch028.md ch029.md ch030.md
>
> echo Done.
> ````
>
> -- 
> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fa434e17-9522-496e-af1d-ee85b081c6b2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-01 16:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-01 14:34 pandoc option to show full path of css file being used? CR
     [not found] ` <cc96d9f0-7ba1-4974-b642-b418ebad70dd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-05-01 14:36   ` CR
     [not found]     ` <fa434e17-9522-496e-af1d-ee85b081c6b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-05-01 16:16       ` John MacFarlane

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).