From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: How to remove the automatically generated css codes from exported HTML file? Date: Thu, 23 Oct 2008 11:45:40 +0200 Message-ID: <3B195CE1-EF6B-43CC-A077-8C24EEEBCF0A@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: multipart/mixed; boundary="===============2079811061==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KswlN-0001Wg-14 for emacs-orgmode@gnu.org; Thu, 23 Oct 2008 05:45:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KswlM-0001WM-33 for emacs-orgmode@gnu.org; Thu, 23 Oct 2008 05:45:52 -0400 Received: from [199.232.76.173] (port=54573 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KswlL-0001WF-Td for emacs-orgmode@gnu.org; Thu, 23 Oct 2008 05:45:51 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]:36537) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KswlI-0001dR-U1 for emacs-orgmode@gnu.org; Thu, 23 Oct 2008 05:45:49 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Larry.Liu" Cc: emacs-orgmode@gnu.org --===============2079811061== Content-Type: multipart/alternative; boundary=Apple-Mail-32--512678429 --Apple-Mail-32--512678429 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit If you must, (setq org-export-html-style-default "") But I would recommend to simply overwrite everything you need with your own style. - Carsten On Oct 23, 2008, at 11:23 AM, Larry.Liu wrote: > Hi, > > On Thu, Oct 23, 2008 at 11:51 AM, Manish > wrote: > This thread might help. > http://thread.gmane.org/gmane.emacs.orgmode/7156 > > The variable org-export-html-style-extra works fine, customized css > contents can be added to the html file, but Org-mode will not remove > the automatically generated style codes, what I am wondering is how > can I remove the style part added by Org-mode, it will append the > follow css definition always. I think it is added by the org-info-js > extension, because we can see such name in the style definition below. > > > > On Thu, Oct 23, 2008 at 10:25 AM, Larry. Liu wrote: > > Hi, > > > > I want to remove the css style codes generated automatically by > Org-mode in > > the exported html file, I have set the variable style for html > export and > > itself works fine, but the css definition generated by Org-mode > > automatically doesn't get removed, and it affects the display of > exported > > file, how can I remove it? > > > > Thanks :) > > > > -- > > -------------------------------------- > > Larry.Liu > > Mobile: 13911483964 > > --------------------------------------- > > > > -- > -------------------------------------- > Larry.Liu > Mobile: 13911483964 > --------------------------------------- > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-32--512678429 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable

If you = must, 

   (setq = org-export-html-style-default "")

But I would = recommend to simply overwrite everything you need with your own = style.

- Carsten

On Oct = 23, 2008, at 11:23 AM, Larry.Liu wrote:

Hi,

On Thu, Oct 23, = 2008 at 11:51 AM, Manish <mailtomanish.sharma@gmail.com> = wrote:
This thread might help.
http://thread.gmane.org/gmane.emacs.orgmode/7156

The = variable org-export-html-style-extra works fine, custo= mized css contents can be added to the&= nbsp;html file, but Org-mode will not remove=  the automatically generated style codes, what = I am wondering is how can I remove the style part added by Org-mode, it = will append the follow css definition always. I think it is added by the = org-info-js extension, because we can see such name in the style = definition below. 
<style =
type=3D"text/css">
= html { font-family: Times, serif; font-size: 12pt; }
.title { text-align: center; }
.todo { color: red; }
= .done { color: green; }
.tag { background-color:lightblue; = font-weight:normal }
.target { }
.timestamp { color: grey = }
.timestamp-kwd { color: CadetBlue }
p.verse { margin-left: 3% }
pre {
border: 1pt solid = #AEBDCC;
background-color: #F3F5F7;
padding: 5pt;
= font-family: courier, monospace;
font-size: 90%;
= overflow:auto;
}
table { border-collapse: collapse; }
td, th { vertical-align: = top; }
dt { font-weight: bold; }

= .org-info-js_info-navigation { border-style:none; }
= #org-info-js_console-label { font-size:10px; font-weight:bold;
white-space:nowrap; }
= .org-info-js_search-highlight {background-color:#ffff00; = color:#000000;
font-weight:bold; = }


</style>
=


On Thu, Oct 23, = 2008 at 10:25 AM, Larry. Liu wrote:
>  Hi,
>
> I want = to remove the css style codes generated automatically by Org-mode in
= > the exported html file, I have set the variable style for html export = and
> itself works fine, but the css definition generated by = Org-mode
> automatically doesn't get removed, and it affects the = display of exported
> file, how can I remove it?
>
> Thanks = :)
>
> --
> --------------------------------------
> = Larry.Liu
> Mobile: 13911483964
> = ---------------------------------------
=



-- =
--------------------------------------
Larry.Liu     =                     =
Mobile: 13911483964     =
---------------------------------------
= _______________________________________________
Emacs-orgmode mailing = list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.= gnu.org/mailman/listinfo/emacs-orgmode

= --Apple-Mail-32--512678429-- --===============2079811061== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2079811061==--