emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* About publishing to html
@ 2010-02-13 22:25 Chao Lu
  2010-02-13 22:28 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Chao Lu @ 2010-02-13 22:25 UTC (permalink / raw)
  To: emacs-orgmode


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

Dear all,

I'm still adjusting the web publishing of org, for I got a little confused
about one line:

Here is my configuration for publishing:
--------
         :style "
         <link rel=\"icon\" href=\"theme/favicon.ico\"
type=\"image/x-icon\">
         <link rel=\"shortcut icon\" href=\"theme/favicon.ico\">
         <link rel=\"stylesheet\" href=\"./theme/org.css\"
type=\"text/css\"> </link>
         <script type=\"text/javascript\"
src=\"theme/org-info.js\"></script>
         "
-----------

But as I published foo.org to foo.html, and check the html file, I found
what is actually there is

----
<style type="text/css">
 <!--/*--><![CDATA[/*><!--*/
  html { font-family: Times, serif; font-size: 12pt; }
  .title  { text-align: center; }
  .todo   { color: red; }
  .done   { color: green; }
  .tag    { background-color: #add8e6; font-weight:normal }
  .target { }
  .timestamp { color: #bebebe; }
  .timestamp-kwd { color: #5f9ea0; }
  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; }
  div.figure { padding: 0.5em; }
  div.figure p { text-align: center; }
  .linenr { font-size:smaller }
  .code-highlighted {background-color:#ffff00;}
  .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>
         *<link rel="icon" href="theme/favicon.ico" type="image/x-icon">
         <link rel="shortcut icon" href="theme/favicon.ico">

         <link rel="stylesheet" href="./theme/org.css"  type="text/css">
</link>    ONLY This part is in my CONF file
         <script type="text/javascript" src="theme/org-info.js"></script>*

<script type="text/javascript" src="http://orgmode.org/org-info.js
"></script>
<script type="text/javascript" >
<!--/*--><![CDATA[/*><!--*/
org_html_manager.set("TOC_DEPTH", "3");
org_html_manager.set("LINK_HOME", "index.html");
org_html_manager.set("LINK_UP", "index.html");
org_html_manager.set("LOCAL_TOC", "0");
org_html_manager.set("VIEW_BUTTONS", "0");
org_html_manager.set("MOUSE_HINT", "underline");
org_html_manager.set("FIXED_TOC", "0");
org_html_manager.set("TOC", "0");
org_html_manager.set("VIEW", "overview");
org_html_manager.setup();  // activate after the parameters are set
/*]]>*///-->
</script>
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
 function CodeHighlightOn(elem, id)
 {
   var target = document.getElementById(id);
   if(null != target) {
     elem.cacheClassElem = elem.className;
     elem.cacheClassTarget = target.className;
     target.className = "code-highlighted";
     elem.className   = "code-highlighted";
   }
 }
 function CodeHighlightOff(elem, id)
 {
   var target = document.getElementById(id);
   if(elem.cacheClassElem)
     elem.className = elem.cacheClassElem;
   if(elem.cacheClassTarget)
     target.className = elem.cacheClassTarget;
 }
/*]]>*///-->
</script>
--------------------------------

So where does other part of the style come from, and is it possible to
control these styles?

All the best,

Chao

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

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: About publishing to html
  2010-02-13 22:25 About publishing to html Chao Lu
@ 2010-02-13 22:28 ` Carsten Dominik
       [not found]   ` <3cbb63d01002131453s6eb777ddyb7a5197b822ec10b@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2010-02-13 22:28 UTC (permalink / raw)
  To: Chao Lu; +Cc: emacs-orgmode

Hi Chao,

this is all coverend in the relevant section of the manual:

http://orgmode.org/manual/CSS-support.html#CSS-support

- Carsten

On Feb 13, 2010, at 11:25 PM, Chao Lu wrote:

> Dear all,
>
> I'm still adjusting the web publishing of org, for I got a little  
> confused about one line:
>
> Here is my configuration for publishing:
> --------
>          :style "
>          <link rel=\"icon\" href=\"theme/favicon.ico\" type=\"image/ 
> x-icon\">
>          <link rel=\"shortcut icon\" href=\"theme/favicon.ico\">
>          <link rel=\"stylesheet\" href=\"./theme/org.css\"  type= 
> \"text/css\"> </link>
>          <script type=\"text/javascript\" src=\"theme/org-info.js 
> \"></script>
>          "
> -----------
>
> But as I published foo.org to foo.html, and check the html file, I  
> found what is actually there is
>
> ----
> <style type="text/css">
>  <!--/*--><![CDATA[/*><!--*/
>   html { font-family: Times, serif; font-size: 12pt; }
>   .title  { text-align: center; }
>   .todo   { color: red; }
>   .done   { color: green; }
>   .tag    { background-color: #add8e6; font-weight:normal }
>   .target { }
>   .timestamp { color: #bebebe; }
>   .timestamp-kwd { color: #5f9ea0; }
>   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; }
>   div.figure { padding: 0.5em; }
>   div.figure p { text-align: center; }
>   .linenr { font-size:smaller }
>   .code-highlighted {background-color:#ffff00;}
>   .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>
>          <link rel="icon" href="theme/favicon.ico" type="image/x- 
> icon">
>          <link rel="shortcut icon" href="theme/favicon.ico">
>
>          <link rel="stylesheet" href="./theme/org.css"  type="text/ 
> css"> </link>    ONLY This part is in my CONF file
>          <script type="text/javascript" src="theme/org-info.js"></ 
> script>
>
> <script type="text/javascript" src="http://orgmode.org/org- 
> info.js"></script>
> <script type="text/javascript" >
> <!--/*--><![CDATA[/*><!--*/
> org_html_manager.set("TOC_DEPTH", "3");
> org_html_manager.set("LINK_HOME", "index.html");
> org_html_manager.set("LINK_UP", "index.html");
> org_html_manager.set("LOCAL_TOC", "0");
> org_html_manager.set("VIEW_BUTTONS", "0");
> org_html_manager.set("MOUSE_HINT", "underline");
> org_html_manager.set("FIXED_TOC", "0");
> org_html_manager.set("TOC", "0");
> org_html_manager.set("VIEW", "overview");
> org_html_manager.setup();  // activate after the parameters are set
> /*]]>*///-->
> </script>
> <script type="text/javascript">
> <!--/*--><![CDATA[/*><!--*/
>  function CodeHighlightOn(elem, id)
>  {
>    var target = document.getElementById(id);
>    if(null != target) {
>      elem.cacheClassElem = elem.className;
>      elem.cacheClassTarget = target.className;
>      target.className = "code-highlighted";
>      elem.className   = "code-highlighted";
>    }
>  }
>  function CodeHighlightOff(elem, id)
>  {
>    var target = document.getElementById(id);
>    if(elem.cacheClassElem)
>      elem.className = elem.cacheClassElem;
>    if(elem.cacheClassTarget)
>      target.className = elem.cacheClassTarget;
>  }
> /*]]>*///-->
> </script>
> --------------------------------
>
> So where does other part of the style come from, and is it possible  
> to control these styles?
>
> All the best,
>
> Chao
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

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

* Re: About publishing to html
       [not found]   ` <3cbb63d01002131453s6eb777ddyb7a5197b822ec10b@mail.gmail.com>
@ 2010-02-13 22:58     ` Chao Lu
  2010-02-15  9:52       ` Sebastian Rose
  0 siblings, 1 reply; 4+ messages in thread
From: Chao Lu @ 2010-02-13 22:58 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Carsten Dominik


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

Hey,

Another question is, when I publish, I call org-publish, then org prompt me
several project, I have to choose, how could I configure to directly publish
to certain project?

like:
(global-set-key (kbd "<f6> <f6>") '*org-publish-directly to some project*)

Best,

Chao

On Sat, Feb 13, 2010 at 5:53 PM, Chao Lu <loochao@gmail.com> wrote:

> Hey Carsten,
>
> I have read the link you gave, but still confusing...
>
> For example, I guess org automatically generate
>
> <script type="text/javascript" src="http://orgmode.org/org-info.js
> "></script>
>
> how could I tell it not to do this?
>
> Thanks,
>
> Chao
>
>
> On Sat, Feb 13, 2010 at 5:28 PM, Carsten Dominik <
> carsten.dominik@gmail.com> wrote:
>
>> Hi Chao,
>>
>> this is all coverend in the relevant section of the manual:
>>
>> http://orgmode.org/manual/CSS-support.html#CSS-support
>>
>> - Carsten
>>
>>
>> On Feb 13, 2010, at 11:25 PM, Chao Lu wrote:
>>
>>  Dear all,
>>>
>>> I'm still adjusting the web publishing of org, for I got a little
>>> confused about one line:
>>>
>>> Here is my configuration for publishing:
>>> --------
>>>         :style "
>>>         <link rel=\"icon\" href=\"theme/favicon.ico\"
>>> type=\"image/x-icon\">
>>>         <link rel=\"shortcut icon\" href=\"theme/favicon.ico\">
>>>         <link rel=\"stylesheet\" href=\"./theme/org.css\"
>>>  type=\"text/css\"> </link>
>>>         <script type=\"text/javascript\"
>>> src=\"theme/org-info.js\"></script>
>>>         "
>>> -----------
>>>
>>> But as I published foo.org to foo.html, and check the html file, I found
>>> what is actually there is
>>>
>>> ----
>>> <style type="text/css">
>>>  <!--/*--><![CDATA[/*><!--*/
>>>  html { font-family: Times, serif; font-size: 12pt; }
>>>  .title  { text-align: center; }
>>>  .todo   { color: red; }
>>>  .done   { color: green; }
>>>  .tag    { background-color: #add8e6; font-weight:normal }
>>>  .target { }
>>>  .timestamp { color: #bebebe; }
>>>  .timestamp-kwd { color: #5f9ea0; }
>>>  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; }
>>>  div.figure { padding: 0.5em; }
>>>  div.figure p { text-align: center; }
>>>  .linenr { font-size:smaller }
>>>  .code-highlighted {background-color:#ffff00;}
>>>  .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>
>>>         <link rel="icon" href="theme/favicon.ico" type="image/x-icon">
>>>         <link rel="shortcut icon" href="theme/favicon.ico">
>>>
>>>         <link rel="stylesheet" href="./theme/org.css"  type="text/css">
>>> </link>    ONLY This part is in my CONF file
>>>         <script type="text/javascript" src="theme/org-info.js"></script>
>>>
>>> <script type="text/javascript" src="http://orgmode.org/org-
>>> info.js"></script>
>>> <script type="text/javascript" >
>>> <!--/*--><![CDATA[/*><!--*/
>>> org_html_manager.set("TOC_DEPTH", "3");
>>> org_html_manager.set("LINK_HOME", "index.html");
>>> org_html_manager.set("LINK_UP", "index.html");
>>> org_html_manager.set("LOCAL_TOC", "0");
>>> org_html_manager.set("VIEW_BUTTONS", "0");
>>> org_html_manager.set("MOUSE_HINT", "underline");
>>> org_html_manager.set("FIXED_TOC", "0");
>>> org_html_manager.set("TOC", "0");
>>> org_html_manager.set("VIEW", "overview");
>>> org_html_manager.setup();  // activate after the parameters are set
>>> /*]]>*///-->
>>> </script>
>>> <script type="text/javascript">
>>> <!--/*--><![CDATA[/*><!--*/
>>>  function CodeHighlightOn(elem, id)
>>>  {
>>>   var target = document.getElementById(id);
>>>   if(null != target) {
>>>     elem.cacheClassElem = elem.className;
>>>     elem.cacheClassTarget = target.className;
>>>     target.className = "code-highlighted";
>>>     elem.className   = "code-highlighted";
>>>   }
>>>  }
>>>  function CodeHighlightOff(elem, id)
>>>  {
>>>   var target = document.getElementById(id);
>>>   if(elem.cacheClassElem)
>>>     elem.className = elem.cacheClassElem;
>>>   if(elem.cacheClassTarget)
>>>     target.className = elem.cacheClassTarget;
>>>  }
>>> /*]]>*///-->
>>> </script>
>>> --------------------------------
>>>
>>> So where does other part of the style come from, and is it possible to
>>> control these styles?
>>>
>>> All the best,
>>>
>>> Chao
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Please use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>
>> - Carsten
>>
>>
>>
>>
>

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

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: About publishing to html
  2010-02-13 22:58     ` Chao Lu
@ 2010-02-15  9:52       ` Sebastian Rose
  0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Rose @ 2010-02-15  9:52 UTC (permalink / raw)
  To: Chao Lu; +Cc: emacs-orgmode, Carsten Dominik

Chao Lu <loochao@gmail.com> writes:
> Hey,
>
> Another question is, when I publish, I call org-publish, then org prompt me
> several project, I have to choose, how could I configure to directly publish
> to certain project?
>
> like:
> (global-set-key (kbd "<f6> <f6>") '*org-publish-directly to some project*)
>
> Best,


Hi Chao Lu,


mostly, you will want to export a project after changing a file, that is
part of that project.


  C-c C-e P

publishes the project, the current buffer is part of.


You could as well write a function and bind it to a certain key: 

(defun chao-lu-publish-project-one()
  (interactive)
  (org-publish-project
    (assoc "projects-name" org-publish-project-alist)))


Best wishes

  Sebastian

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

end of thread, other threads:[~2010-02-15  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-13 22:25 About publishing to html Chao Lu
2010-02-13 22:28 ` Carsten Dominik
     [not found]   ` <3cbb63d01002131453s6eb777ddyb7a5197b822ec10b@mail.gmail.com>
2010-02-13 22:58     ` Chao Lu
2010-02-15  9:52       ` Sebastian Rose

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