Re: [Orgmode] greek letters in subscripts with the export option ^:{}

2009-03-11 Thread Carsten Dominik

Fixed, thanks.

There are still problems with the in LaTeX export, but it does  work
OK now in HTML.

- Carsten

On Mar 11, 2009, at 1:42 AM, Tang, Hsiu-Khuern wrote:


Hi all,

If I export the file

--
#+OPTIONS: ^:{}

* test

 a_{\alpha}

 a_{foo}
--

as HTML, I get a_{alpha;} but asubfoo/sub: \alpha is not  
subscripted
but foo is.  I was expecting both to be subscripted, since they are  
in {}.


--
Best,
Hsiu-Khuern.


___
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




___
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


[Orgmode] date/time-prompt broken in debian lenny package?

2009-03-11 Thread Simon Campese
Hello,

I just installed emacs on debian lenny via aptitude and noticed that the
date/time prompt in org-mode doesn't work. I can enter absolute date
specifications ('2009-03-15') but all abbreviated and relative entries
like '+4d', '13' etc. are ignored, inserting the default date (all
examples were entered without the quotes of course).
As I am a totally inexperienced emacs-user this likely is a
configuration issue, seems like a helper function hasn't been loaded.

For reference my ~/.emacs file :

(keyboard-translate ?\C-h ?\C-?)
(global-set-key [(hyper h)] 'help-command)
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
(setq org-log-done t)
(setq org-agenda-files (list ~/org/work.org
~/org/study.org
~/org/home.org))
(add-hook 'org-mode-hook 'turn-on-font-lock)
(transient-mark-mode 1)

Hopefully someone can give me a quick hint on what is wrong.


Regards,

Simon

PS: Please cc me when replying, as I am not on the mailing-list


___
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


[Orgmode] SOLVED: date/time-prompt broken in debian lenny package?

2009-03-11 Thread Simon Campese
Hello again,

I solved the problem by just installing the debian org-mode package
which I hadn't done before. Necessary startup code has been integrated
into the site-wide emacs startup file and everything works fine now. I
am really sorry for bothering you all with such minor issues.


Regards,

Simon


___
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


[Orgmode] Re: done-ing a repeating scheduled task now inserts closed timestamp?

2009-03-11 Thread Carsten Dominik


On Mar 10, 2009, at 10:42 AM, Manuel Hermenegildo wrote:



Hi Carten,

OK, OK, I will try again to bend my mind around the current
behavior. ;-)


Why, if you want to have many tasks instead of one, don't
you just create many directly, with different dates.  A keyboard
macro would work for this, or a little function that does the
copying and time shifting.

I may make a function that copies a task N times
with a certain date shift.


You have a point. Such a function would indeed be great for, e.g.,
scheduling classes, where one can, after having created N tasks,
annotate each with what will be taught, eliminate those that fall on
holidays, etc.

Perhaps the function should take a parameter N (C-u N ...) and, when
called with the cursor over a repeating task, unfold it N times on
demand into N non-repeating tasks and a new repeating task starting at
the date after the last copy.


This command is now available, org-clone-subtree-with-time-shift,  
bound to

`C-c C-x c'.

Please read the docstring of the command for details.

- Carsten




___
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


Re: [Orgmode] Archiving and not archiving...

2009-03-11 Thread Carsten Dominik


On Mar 10, 2009, at 9:56 PM, Robert Goldman wrote:


[My apologies in advance if this is a FAQ.]

I have a bunch of Org files in which I have tasks some of which  
involve

doing something for work (trivial or non-trivial), and some of which
involve doing something for home (trivial like picking up laundry or
more important like doing a call to a company that needs to be  
logged).


My question has to do with archiving.  I archive my tasks to separate
archive files.  What I'd really like to be able to do is to identify
some tasks as being worth archiving (calling a company to request them
to fix a billing error, for example), and some of which are not  
(picking

up the dry cleaning, returning library books).

Does anyone have a technique for marking tasks so that they get
electively archived when one uses one of the archiving commands?


Hmm, this really seems to make sense only if you are using a command  
that scans the buffer for DONE tasks and archives all of them.  Is  
that what you do?


One possibility is to give tasks their own ARCHIVE property which  
could point to a garbage file for boring tasks.


I myself archive everything.  I don't care how big the archive gets  
because I only need to look at it if I need to find something back.   
Who cares how big this file is.


- Carsten



___
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


[Orgmode] Re: Article: Synchronizing org Files Using bzr and git

2009-03-11 Thread Yuval Hager
On Friday 06 March 2009, Ian Barton wrote:
  First of all, I do not control in any way what gets on Worg.
  Bastien set up Worg as user-edited content, and this is what
  it should be.
 
  If you aks my opinion, I think your tutorial is *exactly* what
  Worg was made for!  I have not studied it in detail, but
  it looks useful, addresses a subject that has almost become
  a FAQ.  And if it is up on Worg, bugs will be fixed
  and improvements made.
 
  So please feel free to add your tutorial to Worg.
  The best place would be the org-tutorial directory, and
  you should then make a link from the index.org in that
  same directory.  After pushing, it will take 1.5 hours or
  less to appear on the web.

 OK, it's now on Worg.


I can't find it (I'm rather new to all this).

One thing that confused me is that I tried to work with two machines, 
without a server. Figuring git is distributed, I thought I do not need a 
server, and I tried to follow the tutorial. Obviously, I got hit when I 
performed a 'git push' onto a non-bare repository (now I know what these 
things mean ;).
I now know not to use 'push' and can get along fine with just 'pull'-ing. I 
think the tutorial might be better if you either mention how to work 
without a server, or just put a big note not to push onto a non-server 
branch (There is a note there, but it was probably not big enough for me ;)

Thanks for a great tutorial. You made me cross the git barrier. Once I'm on 
the other side, nothing would take me back (same way I felt about org-mode 
after seeing Russell Adams' video).

-- 
yuval


signature.asc
Description: This is a digitally signed message part.
___
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


Re: [Orgmode] Archiving and not archiving...

2009-03-11 Thread Robert Goldman
Carsten Dominik wrote:
 
 On Mar 10, 2009, at 9:56 PM, Robert Goldman wrote:
 
 [My apologies in advance if this is a FAQ.]

 I have a bunch of Org files in which I have tasks some of which involve
 doing something for work (trivial or non-trivial), and some of which
 involve doing something for home (trivial like picking up laundry or
 more important like doing a call to a company that needs to be logged).

 My question has to do with archiving.  I archive my tasks to separate
 archive files.  What I'd really like to be able to do is to identify
 some tasks as being worth archiving (calling a company to request them
 to fix a billing error, for example), and some of which are not (picking
 up the dry cleaning, returning library books).

 Does anyone have a technique for marking tasks so that they get
 electively archived when one uses one of the archiving commands?
 
 Hmm, this really seems to make sense only if you are using a command
 that scans the buffer for DONE tasks and archives all of them.  Is that
 what you do?

I typically have all of my tasks in a top-level headline, * Tasks, and
then use the subtree archiving command.  That is really equivalent to
what you say here --- it scans the buffer and (prompting me for
agreement) archives all of the tasks.

 
 One possibility is to give tasks their own ARCHIVE property which could
 point to a garbage file for boring tasks.

Right, or (I think) I could have one archive file, with two top-level
items,

* Interesting Tasks
and
* Boring Tasks

and selectively archive to one or the other.

Probably this is too much trouble, since it would bloat up each of the
individual tasks.

Alternatively, in the org file that contains all my chores, I could have
a top-level chores headline, in addition to my top-level tasks
headline, I could put ARCHIVE properties on each one, and have two
different remember templates, one for routine chores and one for more
interesting tasks
 
 I myself archive everything.  I don't care how big the archive gets
 because I only need to look at it if I need to find something back.  Who
 cares how big this file is.

Possibly that's the right answer.  I was just concerned that I might
want something back and not be able to get it because it was surrounded
with a bunch of pick up laundry tasks...

Thank you very much for your advice,
Robert


___
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


Re: [Orgmode] Archiving and not archiving...

2009-03-11 Thread Carsten Dominik


On Mar 11, 2009, at 4:32 PM, Robert Goldman wrote:


Carsten Dominik wrote:


On Mar 10, 2009, at 9:56 PM, Robert Goldman wrote:


[My apologies in advance if this is a FAQ.]

I have a bunch of Org files in which I have tasks some of which  
involve

doing something for work (trivial or non-trivial), and some of which
involve doing something for home (trivial like picking up laundry or
more important like doing a call to a company that needs to be  
logged).


My question has to do with archiving.  I archive my tasks to  
separate

archive files.  What I'd really like to be able to do is to identify
some tasks as being worth archiving (calling a company to request  
them
to fix a billing error, for example), and some of which are not  
(picking

up the dry cleaning, returning library books).

Does anyone have a technique for marking tasks so that they get
electively archived when one uses one of the archiving commands?


Hmm, this really seems to make sense only if you are using a command
that scans the buffer for DONE tasks and archives all of them.  Is  
that

what you do?


I typically have all of my tasks in a top-level headline, * Tasks, and
then use the subtree archiving command.  That is really equivalent to
what you say here --- it scans the buffer and (prompting me for
agreement) archives all of the tasks.



One possibility is to give tasks their own ARCHIVE property which  
could

point to a garbage file for boring tasks.


Right, or (I think) I could have one archive file, with two top-level
items,

* Interesting Tasks
and
* Boring Tasks

and selectively archive to one or the other.

Probably this is too much trouble, since it would bloat up each of the
individual tasks.

Alternatively, in the org file that contains all my chores, I could  
have

a top-level chores headline, in addition to my top-level tasks
headline, I could put ARCHIVE properties on each one, and have two
different remember templates, one for routine chores and one for more
interesting tasks


I myself archive everything.  I don't care how big the archive gets
because I only need to look at it if I need to find something  
back.  Who

cares how big this file is.


Possibly that's the right answer.  I was just concerned that I might
want something back and not be able to get it because it was  
surrounded

with a bunch of pick up laundry tasks...



In this case, tag important tasks with some tag
like :important: and do a sparse tree search for
this tag in the archive file.

C-c \ important RET

Also, Org stores a lot of
context info with the task as properties.  If you remember that
the task you are looking for had the important tag and used
to be a subtask of

* Tasks
** Financial

then you can do a tag search with

C-c \ +important+OLPATH=Task/Finance RET

Archive files are org files, and all the searching facilities are  
available there.


- Carsten



___
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


Re: [Orgmode] greek letters in subscripts with the export option ^:{}

2009-03-11 Thread Hsiu-Khuern Tang
* On Wed 09:13AM +, 11 Mar 2009, Carsten Dominik (domi...@science.uva.nl) 
wrote:
 Fixed, thanks.
 
 There are still problems with the in LaTeX export, but it does  work
 OK now in HTML.

I can confirm that it works.  Thanks!

 On Mar 11, 2009, at 1:42 AM, Tang, Hsiu-Khuern wrote:
 
  Hi all,
 
  If I export the file
 
  --
  #+OPTIONS: ^:{}
 
  * test
 
   a_{\alpha}
 
   a_{foo}
  --
 
  as HTML, I get a_{alpha;} but asubfoo/sub: \alpha is not  
  subscripted
  but foo is.  I was expecting both to be subscripted, since they are  
  in {}.
 
  -- 
  Best,
  Hsiu-Khuern.
 
 
  ___
  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
 

-- 
Best,
Hsiu-Khuern.


___
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


Re: [Orgmode] Re: Article: Synchronizing org Files Using bzr and git

2009-03-11 Thread Ian Barton
One thing that confused me is that I tried to work with two machines, 
without a server. Figuring git is distributed, I thought I do not need a 
server, and I tried to follow the tutorial. Obviously, I got hit when I 
performed a 'git push' onto a non-bare repository (now I know what these 
things mean ;).
I now know not to use 'push' and can get along fine with just 'pull'-ing. I 
think the tutorial might be better if you either mention how to work 
without a server, or just put a big note not to push onto a non-server 
branch (There is a note there, but it was probably not big enough for me ;)


Thanks for a great tutorial. You made me cross the git barrier. Once I'm on 
the other side, nothing would take me back (same way I felt about org-mode 
after seeing Russell Adams' video).


Yuval,

Thanks for the comments. I want to improve the git section. One thing 
that's easy with bzr is to just push your changes to a remote server, or 
a usb stick in one operation, even if the remote repo doesn't exist.


Using git this seems to be problematic. You can't use push unless there 
is a repo already there. You can create a blank repo ready to push into, 
but for the lazy this requires two steps instead on one. It is supposed 
to be possible to use git clone to create the repo and populate in a 
single step. However, I seem to fall into a syntactic black hole here 
and just end up creating a new repo locally.


Ian.


___
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


[Orgmode] org-annotation-quicksilver, Aquamacs path and getting remember mode to stay on

2009-03-11 Thread Kevin Brubeck Unhammer
Hi,

I just tried org-annotation-quicksilver, looks like a great tool,
thanks for making it!


I should mention though that Aquamacs Emacs users who haven't changed
the file name of their app need to change the .scpt files so they say

/Applications/Aquamacs\\ Emacs.app/Contents/MacOS/bin/emacsclient ...etc

instead of

/Applications/Emacs.app/Contents/MacOS/bin/emacsclient ...etc

(Or would it be better to assume emacsclient is in PATH?)

-

Also, for some reason, the *Remember* buffer shows up in org-mode
without remember-mode turned on (only when I run it from Quicksilver);
does anyone know why this would happen? (Does it have to do with the
duplication of two org-remember functions in
org-annotation-quicksilver.el?)



best regards,
Kevin Brubeck Unhammer


___
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


[Orgmode] htmlize with one lang mode but output a different class name in HTML export

2009-03-11 Thread Saptarshi Guha
Hello Org users,
I primarily use org-mode for writing notes in the form of web sites. I have  a
question.
I wish to format some code written in the R language.

#+BEGIN_SRC R
y-function(r){
 ##do something
}
#+END_SRC

This is okay, and my css files properly formats the =src-R= css class.
However I would like to display some examples in R, but would like it to be
formatted slightly differently, say a differently colored border.
I tried wrapping the above in a DIV ,however, =src-R= draws a border, thus
over-riding the DIV's border. What I need is a pre class=src src-Rexample...
instead of pre class=src src-R

Is there a hook to outputs the pre class=... bit for a SRC region?
So if I requested
BEGIN_SRC Rexample, it would htmlize with R and insert  pre class=src
src-Rexample..


Thanks
Saptarshi


___
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


[Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Saptarshi Guha
Hello,
I assume in the BEGIN_SRC region, I cannot export the code with line
numbers, however I
came across this
 .linenrthe line number in a code example

Does this mean, there is some option to generate line numbers in the
exported BEGIN_SRC?

Thanks for your time

Saptarshi Guha


___
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


Re: [Orgmode] Feature request: preserving plain list line breaks in exporting

2009-03-11 Thread Eddward DeVilla
Does anyone know how to get something like \\ or :: to preserve line
breaks in the org file when using M-q to re format a list item?  I
don't care so much about the export.

Edd

On Tue, Mar 10, 2009 at 4:02 PM, Wanrong Lin wanrong@gmail.com wrote:

 Thanks. But :: does not as well as \\ for numbered list (the numbers
 are gone with ::).

 Actually, when I say it is not as pretty as I want in my last email, I
 meant the original .org text file is not pretty with either \\ or ::
 just for adding a line break for exporting. So ideally, I still prefer a
 configuration option to control the line break preservation.

 Wanrong

 Sebastian Rose wrote:

 Wanrong Lin wanrong@gmail.com writes:


 The double back slashes works well (although that is not as pretty as I
 want). Thank you!



 For better controle of line height and paddings, I'd suggest to use the
 `::' syntax and CSS for the dt and dd elements.


 dd {font-weight:bold;margin-top:3em;}
 dt {}



 Best,

   Sebastian



 Wanrong

 Sebastian Rose wrote:


 Try:

 * TODO Read books
  1. [ ] Book 1 \\
         Note: blah blah blah
  2. [ ] Book 2 \\
         Note: blah blah blah

 Or even:

 * TODO Read books
  1. [ ] Book 1 ::
         Note: blah blah blah
  2. [ ] Book 2 ::
         Note: blah blah blah

  plus CSS



 Regards,

  Sebastian


 Wanrong Lin wanrong@gmail.com writes:


 Hi,

 Suppose I have a plain list as the following:

 * TODO Read books
  1. [ ] Book 1
        Note: blah blah blah
  2. [ ] Book 2
        Note: blah blah blah

 When the above is exported to HTML, the line breaks after the heading
 line of
 each list item are lost, so it becomes Book1 Note: blah blah blah,
 which does
 not look very nice to me. I know I can keep the line breaks by
 inserting a blank
 line, like this:

 * TODO Read books
  1. [ ] Book 1

        Note: blah blah blah
  2. [ ] Book 2

        Note: blah blah blah

 Well, this will fix the export, but the text above looks ugly now,
 especially
 when the Note part is very short.

 Can we add some kind of option to control whether the line break after
 the first
 line of a plain list item should be preserved in exporting? Or maybe we
 can
 assume the line breaks should be preserved when
 org-cycle-include-plain-lists
 is set to t, since in that case we are treating the plain list item
 kind of
 like a heading.

 Note setting org-export-preserve-breaks does not meet my needs, since
 that
 will preserve ALL breaks.

 Thanks for giving the above a thought.

 Wanrong


 ___
 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





 ___
 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






 ___
 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



___
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


Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Nick Dokos
Saptarshi Guha saptarshi.g...@gmail.com wrote:

 I assume in the BEGIN_SRC region, I cannot export the code with line
 numbers, however I
 came across this
  .linenrthe line number in a code example
 
 Does this mean, there is some option to generate line numbers in the
 exported BEGIN_SRC?
 

Read the section Literal Examples in the org manual: evaluate the
following form in emacs by pressing C-x C-e after the closing parenthesis

 (Info-goto-node (org)Literal Examples)

or on the web

 http://orgmode.org/manual/Literal-examples.html#Literal-examples

HTH,
Nick




___
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


Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Saptarshi Guha
Thank you, quite excited I tried this small org file
*Title
Some tex

#+BEGIN_SRC emacs-lisp -n
(save-excursion
(goto-char (point-min))
#+END_SRC

Only to get this in the html file (as copied from my browser):

(save-excursion (goto-char (point-min))

The corresponding html is
p(save-excursion
(goto-char (point-min))
/p

if i remove the -n it works - the exported code is formatted but no
line numbers.
(org version 6.09a)
Saptarshi Guha



On Wed, Mar 11, 2009 at 10:29 PM, Nick Dokos nicholas.do...@hp.com wrote:
 Saptarshi Guha saptarshi.g...@gmail.com wrote:

 I assume in the BEGIN_SRC region, I cannot export the code with line
 numbers, however I
 came across this
  .linenr            the line number in a code example

 Does this mean, there is some option to generate line numbers in the
 exported BEGIN_SRC?


 Read the section Literal Examples in the org manual: evaluate the
 following form in emacs by pressing C-x C-e after the closing parenthesis

     (Info-goto-node (org)Literal Examples)

 or on the web

     http://orgmode.org/manual/Literal-examples.html#Literal-examples

 HTH,
 Nick





___
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


Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Manish
On Thu, Mar 12, 2009 at 9:25 AM, Saptarshi Guha wrote:
 Thank you, quite excited I tried this small org file
 *Title
 Some tex

 #+BEGIN_SRC emacs-lisp -n
 (save-excursion
 (goto-char (point-min))
 #+END_SRC

 Only to get this in the html file (as copied from my browser):

 (save-excursion (goto-char (point-min))

 The corresponding html is
 p(save-excursion
 (goto-char (point-min))
 /p

 if i remove the -n it works - the exported code is formatted but no
 line numbers.
 (org version 6.09a)

Line numbers and references were added in 6.17.

-- 
Manish


___
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


Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Saptarshi Guha
Ok. I'll update.
Thanks

Saptarshi Guha



On Thu, Mar 12, 2009 at 12:25 AM, Manish mailtomanish.sha...@gmail.com wrote:
 On Thu, Mar 12, 2009 at 9:25 AM, Saptarshi Guha wrote:
 Thank you, quite excited I tried this small org file
 *Title
 Some tex

 #+BEGIN_SRC emacs-lisp -n
 (save-excursion
 (goto-char (point-min))
 #+END_SRC

 Only to get this in the html file (as copied from my browser):

 (save-excursion (goto-char (point-min))

 The corresponding html is
 p(save-excursion
 (goto-char (point-min))
 /p

 if i remove the -n it works - the exported code is formatted but no
 line numbers.
 (org version 6.09a)

 Line numbers and references were added in 6.17.

 --
 Manish



___
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


[Orgmode] Re: htmlize with one lang mode but output a different class name in HTML export

2009-03-11 Thread Saptarshi Guha
My work around was to create a derived mode. And #+BEGIN_SRC R-example
did the trick.
Saptarshi Guha



On Wed, Mar 11, 2009 at 8:36 PM, Saptarshi Guha
saptarshi.g...@gmail.com wrote:
 Hello Org users,
 I primarily use org-mode for writing notes in the form of web sites. I have  a
 question.
 I wish to format some code written in the R language.

 #+BEGIN_SRC R
 y-function(r){
  ##do something
 }
 #+END_SRC

 This is okay, and my css files properly formats the =src-R= css class.
 However I would like to display some examples in R, but would like it to be
 formatted slightly differently, say a differently colored border.
 I tried wrapping the above in a DIV ,however, =src-R= draws a border, thus
 over-riding the DIV's border. What I need is a pre class=src 
 src-Rexample...
 instead of pre class=src src-R

 Is there a hook to outputs the pre class=... bit for a SRC region?
 So if I requested
 BEGIN_SRC Rexample, it would htmlize with R and insert  pre class=src
 src-Rexample..


 Thanks
 Saptarshi



___
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


Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Saptarshi Guha
Lovely. One last question, is there a way to place the source in a
table of two cols one for the col numbers and one for the code? So
that the reader may easily select the code.
The emacs user does not have a problem what with C-x r k (rectangle
delete) and all, still it would be nice on the reader.

Thanks for amazing org.
Saptarshi Guha



On Thu, Mar 12, 2009 at 12:28 AM, Saptarshi Guha
saptarshi.g...@gmail.com wrote:
 Ok. I'll update.
 Thanks

 Saptarshi Guha



 On Thu, Mar 12, 2009 at 12:25 AM, Manish mailtomanish.sha...@gmail.com 
 wrote:
 On Thu, Mar 12, 2009 at 9:25 AM, Saptarshi Guha wrote:
 Thank you, quite excited I tried this small org file
 *Title
 Some tex

 #+BEGIN_SRC emacs-lisp -n
 (save-excursion
 (goto-char (point-min))
 #+END_SRC

 Only to get this in the html file (as copied from my browser):

 (save-excursion (goto-char (point-min))

 The corresponding html is
 p(save-excursion
 (goto-char (point-min))
 /p

 if i remove the -n it works - the exported code is formatted but no
 line numbers.
 (org version 6.09a)

 Line numbers and references were added in 6.17.

 --
 Manish




___
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