* Default html export css styles?
@ 2015-09-01 15:52 Lawrence Bottorff
2015-09-01 17:09 ` Eric S Fraga
2015-09-01 17:15 ` Scott Randby
0 siblings, 2 replies; 5+ messages in thread
From: Lawrence Bottorff @ 2015-09-01 15:52 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 747 bytes --]
When I do an HTML export of my org buffer, it produces a default css
section in the head:
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
. . .
The docs (http://orgmode.org/manual/CSS-support.html#CSS-support) seem to
be saying this can be overridden by a style sheet I may want to add. Is
this an accurate assumption. In other words, in my own stylesheet.css I can
make the border and drop shadow around a code block result go away by
overriding it. Correct?
What is producing this default css styling and how can I change it directly?
LB
[-- Attachment #2: Type: text/html, Size: 1092 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Default html export css styles?
2015-09-01 15:52 Default html export css styles? Lawrence Bottorff
@ 2015-09-01 17:09 ` Eric S Fraga
2015-09-01 17:15 ` Scott Randby
1 sibling, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2015-09-01 17:09 UTC (permalink / raw)
To: Lawrence Bottorff; +Cc: emacs-orgmode
On Tuesday, 1 Sep 2015 at 15:52, Lawrence Bottorff wrote:
> When I do an HTML export of my org buffer, it produces a default css
> section in the head:
[...]
> What is producing this default css styling and how can I change it directly?
It's a constant, ~org-html-style-default~, defined in ox-html.el.
Assuming you are using a recent enough org, you can override whether
this is included:
,----[ C-h v org-html-head-include-default-style RET ]
| org-html-head-include-default-style is a variable defined in ‘ox-html.el’.
| Its value is t
|
| This variable is safe as a file local variable if its value
| satisfies the predicate ‘booleanp’.
|
| Documentation:
| Non-nil means include the default style in exported HTML files.
| The actual style is defined in ‘org-html-style-default’ and
| should not be modified. Use ‘org-html-head’ to use your own
| style information.
|
| You can customize this variable.
|
| This variable was introduced, or its default value was changed, in
| version 24.4 of Emacs.
`----
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Default html export css styles?
2015-09-01 15:52 Default html export css styles? Lawrence Bottorff
2015-09-01 17:09 ` Eric S Fraga
@ 2015-09-01 17:15 ` Scott Randby
2015-09-01 19:03 ` Lawrence Bottorff
1 sibling, 1 reply; 5+ messages in thread
From: Scott Randby @ 2015-09-01 17:15 UTC (permalink / raw)
To: emacs-orgmode
On 09/01/2015 11:52 AM, Lawrence Bottorff wrote:
> When I do an HTML export of my org buffer, it produces a default css
> section in the head:
>
> <style type="text/css">
> <!--/*--><![CDATA[/*><!--*/
> .title { text-align: center;
> margin-bottom: .2em; }
> .subtitle { text-align: center;
> font-size: medium;
> font-weight: bold;
> margin-top:0; }
> . . .
>
> The docs (http://orgmode.org/manual/CSS-support.html#CSS-support) seem
> to be saying this can be overridden by a style sheet I may want to add.
> Is this an accurate assumption. In other words, in my own stylesheet.css
> I can make the border and drop shadow around a code block result go away
> by overriding it. Correct?
>
> What is producing this default css styling and how can I change it directly?
>
> LB
You can prevent org from exporting the default stylesheet by putting the
following in your initialization file:
(setq org-html-head-include-default-style nil)
Then you can include your own stylesheet by putting something like the
following into your org file:
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="style.css">
Scott Randby
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-01 19:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-01 15:52 Default html export css styles? Lawrence Bottorff
2015-09-01 17:09 ` Eric S Fraga
2015-09-01 17:15 ` Scott Randby
2015-09-01 19:03 ` Lawrence Bottorff
2015-09-01 19:57 ` Thomas S. Dye
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).