[Orgmode] Minor bug: Calendar buffer with Lucida Grande

2010-02-10 Thread Livin Stephen Sharma
non-fixed width fonts like Lucida Grande render the Calendar buffer 
unreadable/unusable; specifically, the dates [numerals] don't line up properly 
under the days ['Su', 'Mo'... 'Sa']
Is this a known fact?

Perhaps a fixed-width 'calendar-face' should be added in org-mode to handle 
this?

I don't know lisp to create such a calendar-face and perhaps a calendar-mode 
hook that would apply it


Livin Stephen Sharma




___
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


[Orgmode] [babel] unnecessary loading of info files?

2010-02-10 Thread Eric S Fraga
Hi,

recently (not sure exactly when) I have noticed that, for some reason,
the python info files are loaded by Emacs when initialising org-babel
specifically (I think) when loading org-babel-python.  I get messages
of the form:

,
| uncompressing python2.5-lib.info.gz...done
`

On my netbook, this is rather annoying as it slows down the
initialisation of Emacs significantly.  I don't understand why the
info files are necessary for org-babel?

I'm happy to do some debugging if necessary but I thought I'd email
this now in case it's something trivial for the code authors...

Thanks,
eric


___
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


Re: [Orgmode] setting org-export-latex-image-default-option on a per file basis?

2010-02-10 Thread Carsten Dominik


On Feb 10, 2010, at 3:23 AM, Nick Dokos wrote:


Dan Davison davi...@stats.ox.ac.uk wrote:


Lee Hinman hin...@gmail.com writes:


Hi all,

I'm using org-babel-ditaa to insert a picture into a document I am
writing. This works great, except the inserted image is too  
small.  By

changing the -s option to ditaa I was able to modify the size of the
image for the HTML export but not for the LaTeX.  I did a little  
looking

at the .tex file and found this:

\includegraphics[width=10em]{before1.png}

the width=10em is controlled by org-export-latex-image-default- 
option.

Ideally I'd like to change this value for this file only, something
like an entry in the #+OPTIONS line.  But org-export-plist-vars  
has that

element set to nil so it isn't configurable via that method.  Does
anyone have a suggestion of how I could tweak this variable on a per
file basis?


Hi Lee,

I was just having the same problem. We can use a file-local variable,
for now.

# Local Variables:
# org-export-latex-image-default-option: width=30em
# End:

This goes near the end of the file according to
http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables 
.


Dan



You should also be able to use BIND for this:

#+BIND: org-export-latex-image-default-option width=30em

should do it. I think this should work but I have not tested it.


You can also, on a per image basis, use

#+ATTR_LaTeX: width=30em

just before the ditaa block.

HTH

- Carsten



___
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


[Orgmode] Another blog written with org-mode with org-jekyll

2010-02-10 Thread Rick Moynihan
Hi all,

I thought some of you might like to know that my blog is now up and
running.  I write my posts in org-mode, and export with org-jekyll.
You can find it here:

http://sourcesmouth.co.uk/

I have to say that I really like this combination; using jekyll for
the managing the basic page templates etc, and org-mode for writing
the posts.

Importing my old blog posts was trivial as it was previously written
in blorg.  The org-jekyll combination seems to be an excellent
solution, and so far seems to be very solid.  I'd definitely recommend
it to those wanting to blog from org.

Anyway, I'd just like to once again say thanks to everyone in the
org-mode community.  This time for making org-mode a killer static
blogging solution!

--
Rick Moynihan
http://twitter.com/RickMoynihan
http://delicious.com/InkyHarmonics
http://sourcesmouth.co.uk/


___
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


[Orgmode] org-babel interpreter prompts

2010-02-10 Thread Rick Moynihan
Hi all,

I'm wondering if it's possible to get org-babel to output the
interpreter prompts and sessions, as if each expression in the src
block had been entered into the repl... e.g. something like:

#+begin_src ruby :output repl
10 + 10
puts hello world
[1,2,3,4,5,6,7,8,9,10].map do |i|
  i * i
end
#+end_src

Yielding:

#+results
: irb(main):001:0 10 + 10
: = 20
: irb(main):002:0 puts Hello World
: Hello World
: = nil
: irb(main):003:0 [1,2,3,4,5,6,7,8,9,10].map do |i|
: irb(main):004:1*   i * i
: irb(main):005:1 end
: = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
: irb(main):006:0

The rational for this is that it lets you provide examples of being at
the prompt and write better documentation.  I'd imagine that in this
mode, you wouldn't want the original src block to be rendered, rather
just the output as if it had been run interactively.

I'd personally find this useful and would like to see this for ruby,
shell and clojure modes...  Though it'd be nice to have it work for
all the other languages and modes that support a REPL or interactive
prompt too.

-- 
Rick Moynihan
http://twitter.com/RickMoynihan
http://delicious.com/InkyHarmonics
http://sourcesmouth.co.uk/


___
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


[Orgmode] Re: Another blog written with org-mode with org-jekyll

2010-02-10 Thread Juan Reyero
On Wed, Feb 10, 2010 at 11:41 AM, Rick Moynihan rick.moyni...@gmail.com wrote:
 Hi all,

 I thought some of you might like to know that my blog is now up and
 running.  I write my posts in org-mode, and export with org-jekyll.
 You can find it here:

 http://sourcesmouth.co.uk/

This is great!  I am really glad that org-jekyll is useful for
somebody other than me :-).  One caveat, though, for those of you who
blog in languages with accented characters: the way jekyll constructs
permalinks doesn't deal properly with them and it fails in some
browsers.  I haven't figured it out yet.

Best,

jm
-- 
http://juanreyero.com/
http://unarueda.com


___
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


[Orgmode] Re: search for DEADLINE in warning period

2010-02-10 Thread Carsten Dominik


On Feb 9, 2010, at 3:48 PM, Matt Lundin wrote:


Interesting. The docstring for org-agenda-todo-ignore-deadlines  
seems to

suggest otherwise. Is this documentation inaccurate?

,
| Documentation:
| Non-nil means don't show near deadline entries in the global todo  
list.

| Near means closer than `org-deadline-warning-days' days.
| The idea behind this is that such items will appear in the agenda  
anyway.

| See also `org-agenda-todo-ignore-with-date'.
| See also the variable `org-agenda-tags-todo-honor-ignore-options'.
`


This ist just to explain what near means in the sentence before.
I have improved the docstring, thanks.

- Carsten



___
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


Re: [Orgmode] Atomized completion list for multi-value property keys

2010-02-10 Thread Carsten Dominik


On Feb 5, 2010, at 11:09 PM, Harald Weis wrote:


For example, the key sequence C-c / p key-string TAB
yields the following completion list:

colon   colon_rss   oesoph colon_colosc
prost_echogrvitdvitd prost_psa
vitd prost_tr

In _addition_ to this, I need a completion list where all
multi-values are atomized:

colon   colon_colosccolon_rss
oesoph  prost_echogrprost_psa
prost_trvitd

A practical key sequence could use S-TAB instead of TAB.

Is there an ``easy'' way to achieve this or is it a major job ?


Well, it is not implemented current, and it would he hard to implement  
in the current C-c C-x C-p command - because Org- does not know which  
properties are multivalued and which are not.  So a special command  
would be needed.


I don't think it is hard to make, using the multivalued property API.
But I also don't think many people use it, so I am not going to do it  
right now.  WOuld you like to try?


- Carsten




___
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


Re: [Orgmode] Atomized completion list for multi-value property keys

2010-02-10 Thread Harald Weis
On Wed, Feb 10, 2010 at 01:56:54PM +0100, Carsten Dominik wrote:
 
 On Feb 5, 2010, at 11:09 PM, Harald Weis wrote:
 
 For example, the key sequence C-c / p key-string TAB
 yields the following completion list:
 
 coloncolon_rss   oesoph colon_colosc
 prost_echogr vitdvitd prost_psa
 vitd prost_tr
 
 In _addition_ to this, I need a completion list where all
 multi-values are atomized:
 
 coloncolon_colosccolon_rss
 oesoph   prost_echogrprost_psa
 prost_tr vitd
 
 A practical key sequence could use S-TAB instead of TAB.
 
 Is there an ``easy'' way to achieve this or is it a major job ?
 
 Well, it is not implemented current, and it would he hard to implement  
 in the current C-c C-x C-p command - because Org- does not know which  
 properties are multivalued and which are not.  So a special command  
 would be needed.
 
 I don't think it is hard to make, using the multivalued property API.
 But I also don't think many people use it, so I am not going to do it  
 right now.  WOuld you like to try?

Thank you for this message.
Yes, I will try and report if I can find a way (or not). It may take
some time for me, but I certainly will try.

Harald


___
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


[Orgmode] Org-mode and searching for multiple occurances

2010-02-10 Thread evita moreno

Hello to everyone!

I am a teacher trying to teach young people how to use org-mode for writing. We 
have created a database with notes on literature review outlined in org-mode in 
the following format:

* jones2000
blah blah blah keyword1 keyword2
*jones2007
blah blah keyword2

and so on. I was wondering whether there is a way where one can search for a 
keyword in the database (more than 350 papers up to now) and can get in an 
automatic fashion in which of the jones' entries these keywords occur (pretty 
much like using MS Access and running a query). Is this possible? Maybe what I 
am asking for is outright crazy/impossible but I thought I should give it a go!

Evita

  
_
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969___
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


Re: [Orgmode] Tables in ASCII export

2010-02-10 Thread Carsten Dominik


On Feb 6, 2010, at 8:15 PM, Michael Gauland wrote:

When I export tables to ASCII, I'd like the rows to expand as  
necessary so the
full contents is visible. I've has a look at org-exp.el, but I'm at  
a bit of a
loss as to where to start mucking in. Any pointers would be greatly  
appreciated!


Hi Michael,

right now I only have a dirty trick, and even that is untested :-(

(add-hook 'org-export-preprocess-hook
  (lambda ()
(let (org-format-transports-properties-p)
  (org-table-map-tables 'org-table-align

I will make a varaible for this, I think it would be useful to have,  
or even should be the default for ASCII export.


- Carsten



___
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


Re: [Orgmode] Org-mode and searching for multiple occurances

2010-02-10 Thread Stephan Schmitt

Hello Evita,

you may want to try M-x org-occur:


org-occur is an interactive compiled Lisp function in `org.el'.

(org-occur regexp optional keep-previous callback)

Make a compact tree which shows all matches of regexp.
The tree will show the lines where the regexp matches, and all higher
headlines above the match.  It will also show the heading after the match,
to make sure editing the matching entry is easy.
If keep-previous is non-nil, highlighting and exposing done by a previous
call to `org-occur' will be kept, to allow stacking of calls to this
command.
If callback is non-nil, it is a function which is called to confirm
that the match should indeed be shown.


But this only shows the matching entries, it doesn't generate a list of the 
entries (like running a query on a database).


Hth,
Stephan


Also sprach evita moreno:

Hello to everyone!

I am a teacher trying to teach young people how to use org-mode for 
writing. We have created a database with notes on literature review 
outlined in org-mode in the following format:


* jones2000
blah blah blah keyword1 keyword2
*jones2007
blah blah keyword2

and so on. I was wondering whether there is a way where one can search 
for a keyword in the database (more than 350 papers up to now) and can 
get in an automatic fashion in which of the jones' entries these 
keywords occur (pretty much like using MS Access and running a query). 
Is this possible? Maybe what I am asking for is outright 
crazy/impossible but I thought I should give it a go!


Evita



Hotmail: Free, trusted and rich email service. Get it now. 
https://signup.live.com/signup.aspx?id=60969





___
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



___
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


Re: [Orgmode] Leading stars not always hidden

2010-02-10 Thread Carsten Dominik

I have never seen this eeffect

- Carsten

On Feb 10, 2010, at 4:13 PM, Christer Enfors wrote:

I use org-indent-mode and (setq org-hide-leading-stars t). This  
mostly works, but sometimes the supposedly hidden stars are visible  
as white (my default foreground color) on some headlines. I'm not  
sure, but I think it's always the first and / or the last sibling  
headline that show this problem. The middle headings are never  
affected, if I remember correctly.


Does anybody else have this problem? Is it a known bug?

I've attached a screenshot (in a Word document, because my work  
computer doesn't have MS Paint or similar for some bizarre reason).


- AIX 5.3
- Emacs 23.1.2
- Org-mode 6.34c

--
Christer Enfors

org-picture.doc___
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





___
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


Re: [Orgmode] [babel] unnecessary loading of info files?

2010-02-10 Thread Dan Davison
Eric S Fraga ucec...@ucl.ac.uk writes:

 Hi,

 recently (not sure exactly when) I have noticed that, for some reason,
 the python info files are loaded by Emacs when initialising org-babel
 specifically (I think) when loading org-babel-python.  I get messages
 of the form:

 ,
 | uncompressing python2.5-lib.info.gz...done
 `

 On my netbook, this is rather annoying as it slows down the
 initialisation of Emacs significantly.  I don't understand why the
 info files are necessary for org-babel?

Hi Eric,

They aren't, but perhaps they are loaded when we (require 'python)?  If
so then I guess it's out of babel's control; maybe a partial solution
would be to not activate python as a babel langage until necessary
(maybe by adding (require 'org-babel-python) to an appropriate hook?).

On my ubuntu 9.10 netbook I don't seem to have any the python info files
even after installing python2.6-doc. Are you using a debian-based linux
system and if so could you tell me how to install the python info files
so that I can investigate?

Dan


 I'm happy to do some debugging if necessary but I thought I'd email
 this now in case it's something trivial for the code authors...

 Thanks,
 eric


 ___
 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


___
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


[Orgmode] [org-clock] default clock for non-org-mode buffers

2010-02-10 Thread Austin Frank
Hello--

Sometimes I want to clock in but I'm not in an org-mode buffer.  Would
it be possible to either provide a function or hook that uses the
current buffer to add a selection to the destinations provided by
`org-clock-select-task'?

I can see two possible functions I would add to an
`org-clock-prepare-selections-hook'.  First, a version with remember
that would create a new task to clock into based on the current buffer

#v+
(defun au-clock-in-to-new-task ()
  (if (fboundp org-remember)
;; use one of my remember templates that creates a TODO entry under
;; the heading uncategorized tasks.  it includes a link to the
;; current buffer
(org-remember nil (kbd t)))
  ;;
  ;; then either clock in to the task right away,
  ;; or add the new task to the selection buffer somehow
  ;; ...
)
#v-

And second, a version that lets you browse to an existing task.

#v+
;; I think this one doesn't work as written, but only because I don't
;; know what I am doing
(defun au-clock-in-go-to-task ()
  ;; use the org-refile interface to go to an existing task
  (org-refile t)
  ;;
  ;; then do something with link to buffer we clocked in on
  ;; ...
)
#v-

Does a hook or some other way of introducing this functionality already
exist?  If not, would other people use it?

Thanks,
/au
  
-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgpVzm5iTVPy3.pgp
Description: PGP signature
___
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


Re: [Orgmode] Leading stars not always hidden

2010-02-10 Thread Carsten Dominik


On Feb 10, 2010, at 6:54 PM, Christer Enfors wrote:

Could it be a problem with my terminal? I'm using GLink, and I think  
the TERM environment variable is set to dtterm, if that's of any  
relevance.


Unfortunately, I have no idea.

If you go to the incorrectly visible stars and execute M-x describe- 
face RET, do you then get something different from when you do it on  
the normal hidden stars?


- Carsten




--
Christer Enfors


From: Carsten Dominik carsten.domi...@gmail.com
To: Christer Enfors cenf...@yahoo.com
Cc: Emacs org-mode emacs-orgmode@gnu.org
Sent: Wed, February 10, 2010 6:03:18 PM
Subject: Re: [Orgmode] Leading stars not always hidden

I have never seen this eeffect

- Carsten

On Feb 10, 2010, at 4:13 PM, Christer Enfors wrote:

 I use org-indent-mode and (setq org-hide-leading-stars t). This  
mostly works, but sometimes the supposedly hidden stars are visible  
as white (my default foreground color) on some headlines. I'm not  
sure, but I think it's always the first and / or the last sibling  
headline that show this problem. The middle headings are never  
affected, if I remember correctly.


 Does anybody else have this problem? Is it a known bug?

 I've attached a screenshot (in a Word document, because my work  
computer doesn't have MS Paint or similar for some bizarre reason).


 - AIX 5.3
 - Emacs 23.1.2
 - Org-mode 6.34c

 --Christer Enfors

 org-picture.doc___
 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







- Carsten





___
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


[Orgmode] Re: search for DEADLINE in warning period

2010-02-10 Thread Łukasz Stelmach
Carsten Dominik carsten.domi...@gmail.com writes:

 On Feb 9, 2010, at 3:48 PM, Matt Lundin wrote:

 Interesting. The docstring for org-agenda-todo-ignore-deadlines
 seems to
 suggest otherwise. Is this documentation inaccurate?

 ,
 | Documentation:
 | Non-nil means don't show near deadline entries in the global todo
 list.
 | Near means closer than `org-deadline-warning-days' days.
 | The idea behind this is that such items will appear in the agenda
 anyway.
 | See also `org-agenda-todo-ignore-with-date'.
 | See also the variable `org-agenda-tags-todo-honor-ignore-options'.
 `

 This ist just to explain what near means in the sentence before.
 I have improved the docstring, thanks.

And I've made it work with 'near and 'far symbols.

Now org-agenda-todo-ignore-with-date can be set to:

nil - to show (not ignore) notes with deadline timestamps
'far- to ignore notes which are further than the warning period
'near   - to hide deadlines that are really close, good for an ostrich ;-)
non-nil - do not show *any* notes with deadline timestamps on a todo
  list

Check it out

http://github.com/steelman/steelman-org-mode/tree/org-agenda-todo-ignore-close-deadlines
http://github.com/steelman/steelman-org-mode.git


-- 
Miłego dnia,
Łukasz Stelmach



___
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


Re: [Orgmode] org-babel interpreter prompts

2010-02-10 Thread Dan Davison
Rick Moynihan rick.moyni...@gmail.com writes:

 Hi all,

 I'm wondering if it's possible to get org-babel to output the
 interpreter prompts and sessions, as if each expression in the src
 block had been entered into the repl... e.g. something like:

 #+begin_src ruby :output repl
 10 + 10
 puts hello world
 [1,2,3,4,5,6,7,8,9,10].map do |i|
   i * i
 end
 #+end_src

 Yielding:

 #+results
 : irb(main):001:0 10 + 10
 : = 20
 : irb(main):002:0 puts Hello World
 : Hello World
 : = nil
 : irb(main):003:0 [1,2,3,4,5,6,7,8,9,10].map do |i|
 : irb(main):004:1*   i * i
 : irb(main):005:1 end
 : = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
 : irb(main):006:0

 The rational for this is that it lets you provide examples of being at
 the prompt and write better documentation.  I'd imagine that in this
 mode, you wouldn't want the original src block to be rendered, rather
 just the output as if it had been run interactively.

 I'd personally find this useful and would like to see this for ruby,
 shell and clojure modes...  Though it'd be nice to have it work for
 all the other languages and modes that support a REPL or interactive
 prompt too.

Hi Rick,

I believe this should be possible when using :session by altering the
code that processes the output from the comint buffer. I had a quick
attempt at hacking that and failed, as Eric's code in that area is quite
sophisticated for me. (I still don't get how to debug macros.) So over
to Eric.

Note that when not using :session, this effect may still be possible on
a language-by-language basis. For example, with R we can control this
with arguments to the R executable:

~ echo '4+4' | R --vanilla
 4+4
[1] 8
 
~ echo '4+4' | R --vanilla --slave
[1] 8
~ 

and so a simple change to org-babel-R.el could introduce user control
over this when using external process evaluation (a.o.t. session).

I don't know whether ruby has something similar. For shell I'm also not
sure. There's bash -x, but that's not quite the same.

So perhaps we could introduce variables called something like
org-babel-ruby-args and org-babel-R-args so that the user can specify
these command line args to external interpreters.

Dan


___
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


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Daniel Martins
Someone could send me an example of the use of the org-diary-class ??

Daniel

2010/1/3 Carsten Dominik carsten.domi...@gmail.com


 On Dec 28, 2009, at 10:09 PM, Daniel Martins wrote:

   Interesting.  But too complex for now - and I actually do prefer local
 control.

 I know it is complex.

 I thought about the first steps

 I was thinking about a variable (list?) with predefined holidays

 or better omit-holidays

 such as org-omit-holidays

 we could add the omit dates in any place
  (add-to-list 'org-omit-holidays 25 Dec)
  (add-to-list 'org-omit-holidays 1 Jan)
  (add-to-list 'org-omit-holidays 1 May)
 etc.


 Hmm, this is a possibility - but I don't have the time now to implement it.
 And then the question remains: What exactly should be omitted on these
 days?
 Everything? - probably not.  So I don't see how this leads to useful
 control, unless
 we have a really fine-grained control for each entry.



 Then we could change (adapt) the

 function calendar-check-holydays from holidays.el


 I did a search-replace to something like this:

 (defun org-check-calendar-omit-holidays (date)
  Check the list of org-omit-holidays for any that occur on DATE.
 The value returned is a list of strings of relevant org-omit-holiday
 descriptions.
 The org-omit-holidays are those in the list `org-omit-holidays'.
  (let ((displayed-month (extract-calendar-month date))
(displayed-year (extract-calendar-year date))
(org-omit-holiday-list))
(dolist (h (calendar-org-omit-holiday-list))
  (if (calendar-date-equal date (car h))
  (setq org-omit-holiday-list (append org-omit-holiday-list (cdr
 h)
org-omit-holiday-list))

 with these adaptation we could use a slighly changed  version of the
 diary-schedule function  I sent before.

 I did not go further nor tested it.

 Thinking again now: I think it is better to avoid holidays than week
 numbers. The problem is that we have to decide which holidays are really
 holidays and not rely on the holidays variables that come with Emacs.



 I do not agree.  Lectures are not only skipped on holidays, but also on
 other
 days, so a more general approach is needed.




 Daniel

 2009/12/28 Carsten Dominik carsten.domi...@gmail.com
 Hi Daniel,


 On Dec 27, 2009, at 1:51 AM, Daniel Martins wrote:

 I liked the idea of org-diary-class!

 I have added the function now to org-agenda.el



 About avoiding holidays and certain weeks:

 I used remind and wyrd for a while  and they are a quite good software
 for dealing with such appts.

 There we have the OMIT function where we determine holidays and other
 non-working days including Sat and Sundays


 Normally we have an OMIT list at the beginning of file

 Some functions simply omit those dates

 Other expressions use another keyword AFTER (or BEFORE)  to change
 OMIT behaviour

 like
 23 Mar AFTER OMIT Bank payment

 eg If 23 Mar is in Saturday it will appear in Monday

 This preamble is just to say 2 things:

 1) remind/wyrd could be used as a benchmark for some of the calendar
 isuues we have

 2) I do not know if the week number in a year is a practical way of
 setting exceptions to org-diary-class

 Daniel

 PS Wyrd page is

 http://pessimization.com/software/wyrd/

 Interesting.  But too complex for now - and I actually do prefer local
 control.

 - Carsten







 2009/12/26 Carsten Dominik carsten.domi...@gmail.com:
 Hi Daniel,

 I think it is a good idea to add such a function to org-mode.  But I
 am not sure if skipping holidays is the best, because Universities
 also have lecture-free weeks etc.

 So I am more thinking about a function like this (untested)

 (defun org-diary-class (m1 d1 y1 m2 d2 y2 dayname rest skip-weeks)
  Entry applies if date is between dates on DAYNAME, but skips SKIP-WEEKS.
 Order of the parameters is M1, D1, Y1, M2, D2, Y2 if
 `european-calendar-style' is nil, and D1, M1, Y1, D2, M2, Y2 if
 `european-calendar-style' is t.  The weeks are ISO week numbers where
 the item should not apply.
  (let* ((date1 (calendar-absolute-from-gregorian
   (if european-calendar-style
   (list d1 m1 y1)
 (list m1 d1 y1
   (date2 (calendar-absolute-from-gregorian
   (if european-calendar-style
   (list d2 m2 y2)
 (list m2 d2 y2
   (d (calendar-absolute-from-gregorian date)))
  (and
   (= date1 d)
   (= d date2)
   (= (calendar-day-of-week date) dayname)
   (or (not skip-weeks)
   (progn
 (require 'cal-iso)
 (not (member (car (calendar-iso-from-absolute d)) skip-weeks
   entry)))


 What do you think?

 - Carsten

 On Dec 21, 2009, at 4:54 PM, Daniel Martins wrote:

 In fact, it helps! Thanks

 However a sentence like this:


 +# a class that meets every Monday evening between February 16 and
 April 20, 2009
 ** Class 7:00pm-9:00pm
 %%(and (= 1 (calendar-day-of-week date)) (diary-block 2 16 2009 4 20
 2009))

 is not an example of simplicity and visibility 

Re: [Orgmode] Leading stars not always hidden

2010-02-10 Thread Christer Enfors
Could it be a problem with my terminal? I'm using GLink, and I think the TERM 
environment variable is set to dtterm, if that's of any relevance.
 -- 
Christer Enfors





From: Carsten Dominik carsten.domi...@gmail.com
To: Christer Enfors cenf...@yahoo.com
Cc: Emacs org-mode emacs-orgmode@gnu.org
Sent: Wed, February 10, 2010 6:03:18 PM
Subject: Re: [Orgmode] Leading stars not always hidden

I have never seen this eeffect

- Carsten

On Feb 10, 2010, at 4:13 PM, Christer Enfors wrote:

 I use org-indent-mode and (setq org-hide-leading-stars t). This mostly works, 
 but sometimes the supposedly hidden stars are visible as white (my default 
 foreground color) on some headlines. I'm not sure, but I think it's always 
 the first and / or the last sibling headline that show this problem. The 
 middle headings are never affected, if I remember correctly.
 
 Does anybody else have this problem? Is it a known bug?
 
 I've attached a screenshot (in a Word document, because my work computer 
 doesn't have MS Paint or similar for some bizarre reason).
 
 - AIX 5.3
 - Emacs 23.1.2
 - Org-mode 6.34c
 
 --Christer Enfors
 
 org-picture.doc___
 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


  ___
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


Re: [Dan Davison] Re: [Orgmode] org-babel interpreter prompts

2010-02-10 Thread Eric Schulte
Hi Rick/Dan,

I have a suggestion below,

Dan Davison davi...@stats.ox.ac.uk writes:

 I meant to CC this to you.

 From: Dan Davison davi...@stats.ox.ac.uk
 Subject: Re: [Orgmode] org-babel interpreter prompts
 To: Rick Moynihan rick.moyni...@gmail.com
 Cc: emacs-orgmode@gnu.org
 Date: Wed, 10 Feb 2010 13:44:59 -0500

 Rick Moynihan rick.moyni...@gmail.com writes:

 Hi all,

 I'm wondering if it's possible to get org-babel to output the
 interpreter prompts and sessions, as if each expression in the src
 block had been entered into the repl... e.g. something like:

 #+begin_src ruby :output repl
 10 + 10
 puts hello world
 [1,2,3,4,5,6,7,8,9,10].map do |i|
   i * i
 end
 #+end_src

 Yielding:

 #+results
 : irb(main):001:0 10 + 10
 : = 20
 : irb(main):002:0 puts Hello World
 : Hello World
 : = nil
 : irb(main):003:0 [1,2,3,4,5,6,7,8,9,10].map do |i|
 : irb(main):004:1*   i * i
 : irb(main):005:1 end
 : = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
 : irb(main):006:0

 The rational for this is that it lets you provide examples of being at
 the prompt and write better documentation.  I'd imagine that in this
 mode, you wouldn't want the original src block to be rendered, rather
 just the output as if it had been run interactively.

 I'd personally find this useful and would like to see this for ruby,
 shell and clojure modes...  Though it'd be nice to have it work for
 all the other languages and modes that support a REPL or interactive
 prompt too.

 Hi Rick,

 I believe this should be possible when using :session by altering the
 code that processes the output from the comint buffer. I had a quick
 attempt at hacking that and failed, as Eric's code in that area is quite
 sophisticated for me. (I still don't get how to debug macros.) So over
 to Eric.


I actually went through great length to keep from including the shell
prompts in command output.  Also there is the issue of knowing when and
how much of the resulting buffer to return... Rather than add this as
org-babel functionality could I propose that you use a combination
of :session execution and a small Emacs helper function like the
following untested function?

UNTESTED
--8---cut here---start-8---
(defun babel-execute-w-transcript ()
  Execute the current source-code block, and copy the activated
portion of the results buffer to the kill ring.
  (interactive)
  (let* ((session-buffer (cdr (assoc :session (third 
org-babel-get-src-block-info
 (beginning (save-excursion (set-buffer session-buffer)
(process-mark (get-buffer-process 
(current-buffer)
 ending)
(call-interactively org-babel-execute-src-block)
(save-excursion
  (setq ending (process-mark (get-buffer-process (current-buffer
  (kill-ring-save beginning ending
--8---cut here---end---8---

if you bind the above to a key w/`local-key-binding' then you can use it
to execute all of your source-code blocks and then paste the resulting
transcript wherever you like.


 Note that when not using :session, this effect may still be possible on
 a language-by-language basis. For example, with R we can control this
 with arguments to the R executable:

 ~ echo '4+4' | R --vanilla
 4+4
 [1] 8
 
 ~ echo '4+4' | R --vanilla --slave
 [1] 8
 ~ 

 and so a simple change to org-babel-R.el could introduce user control
 over this when using external process evaluation (a.o.t. session).

 I don't know whether ruby has something similar. For shell I'm also not
 sure. There's bash -x, but that's not quite the same.

 So perhaps we could introduce variables called something like
 org-babel-ruby-args and org-babel-R-args so that the user can specify
 these command line args to external interpreters.


The introduction of those variables does sound like a good idea, as does
holding the names of the executable commands in user-customizable
variables.

Best -- Eric


 Dan
 --


___
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


Fwd: Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread John Rakestraw
Sorry -- neglected to cc the list.

---BeginMessage---
 Daniel Martins writes:

 Someone could send me an example of the use of the org-diary-class ?? 

*** 12:15-13:05 Class 
%%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)
%%(org-diary-class 1 13 2010 5 3 2010 3 10)
%%(org-diary-class 1 13 2010 5 3 2010 5 10 13)

Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
holidays as indicated. Friday's class, for example, doesn't meet in weeks
10 and 13.

--
John Rakestraw
---End Message---
___
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


[Orgmode] agenda display dates

2010-02-10 Thread Brody, William (Buck)
How can I display dates in the agenda without using the Agenda for current day 
or week.  I want to use another view because I don't want my tasks sorted or 
grouped by dates and I want to be able to see unscheduled tasks.

Thanks

___
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


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Daniel Martins
Thank you very much John. Incredibly fast answer !!!


BTW Is there an easy /practical  way to convert holidays dates to number of
weeks?

daniel

2010/2/10 John Rakestraw li...@johnrakestraw.com

  Daniel Martins writes:

  Someone could send me an example of the use of the org-diary-class ??

 *** 12:15-13:05 Class
%%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)
%%(org-diary-class 1 13 2010 5 3 2010 3 10)
%%(org-diary-class 1 13 2010 5 3 2010 5 10 13)

 Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
 holidays as indicated. Friday's class, for example, doesn't meet in weeks
 10 and 13.

 --
 John Rakestraw

___
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


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Stephan Schmitt

Hi Daniel,

Also sprach Daniel Martins:

BTW Is there an easy /practical  way to convert holidays dates to number
of weeks?


the only way I'm aware of:
M-x calendar
navigate to the holiday date (type ? for the info node)
type p c (print the ISO date in the message area)

or take a look in your filofax...

Hth,
Stephan



  Someone could send me an example of the use of the org-diary-class ??

*** 12:15-13:05 Class
   %%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)
   %%(org-diary-class 1 13 2010 5 3 2010 3 10)
   %%(org-diary-class 1 13 2010 5 3 2010 5 10 13)

Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
holidays as indicated. Friday's class, for example, doesn't meet in
weeks
10 and 13.

--
John Rakestraw





___
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


Re: [Orgmode] agenda display dates

2010-02-10 Thread Jan Böcker
On 10.02.2010 20:13, Brody, William (Buck) wrote:
 
 
 How can I display dates in the agenda without using the “Agenda for
 current day or week”.  I want to use another view because I don’t want
 my tasks sorted or grouped by dates and I want to be able to see
 unscheduled tasks.

Try creating a custom agenda view which lists all the items you want,
then switch the agenda view to column mode with C-c C-x C-c.

This displays a SCHEDULED column. I don't know if you can further
customize the column view of an agenda buffer.

HTH, Jan


___
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


[Orgmode] Re: Org-mode and searching for multiple occurances

2010-02-10 Thread Matt Lundin
evita moreno evitamoren...@live.com writes:

 I am a teacher trying to teach young people how to use org-mode for
 writing. We have created a database with notes on literature review
 outlined in org-mode in the following format:

 * jones2000
 blah blah blah keyword1 keyword2
 *jones2007
 blah blah keyword2

 and so on. I was wondering whether there is a way where one can search
 for a keyword in the database (more than 350 papers up to now) and can
 get in an automatic fashion in which of the jones' entries these
 keywords occur (pretty much like using MS Access and running a query).
 Is this possible? Maybe what I am asking for is outright crazy/
 impossible but I thought I should give it a go!

You can use org-search-view (C-c a s).

Best,
Matt


___
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


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Daniel Martins
Thanks Stephan,

I still miss a lot the OMIT function of remind/wyrd ...

Daniel

2010/2/10 Stephan Schmitt drmab...@cs.tu-berlin.de

 Hi Daniel,

 Also sprach Daniel Martins:

  BTW Is there an easy /practical  way to convert holidays dates to number
 of weeks?


 the only way I'm aware of:
 M-x calendar
 navigate to the holiday date (type ? for the info node)
 type p c (print the ISO date in the message area)

 or take a look in your filofax...

 Hth,
Stephan



  Someone could send me an example of the use of the org-diary-class
 ??

*** 12:15-13:05 Class
   %%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)
   %%(org-diary-class 1 13 2010 5 3 2010 3 10)
   %%(org-diary-class 1 13 2010 5 3 2010 5 10 13)

Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
holidays as indicated. Friday's class, for example, doesn't meet in
weeks
10 and 13.

--
John Rakestraw



___
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


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Nick Dokos
Daniel Martins daniel...@gmail.com wrote:

 2010/2/10 John Rakestraw li...@johnrakestraw.com
 
  Daniel Martins writes:

  Someone could send me an example of the use of the org-diary-class ??

 *** 12:15-13:05 Class
    %%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)
    %%(org-diary-class 1 13 2010 5 3 2010 3 10)
    %%(org-diary-class 1 13 2010 5 3 2010 5 10 13)

 Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
 holidays as indicated. Friday's class, for example, doesn't meet in weeks
 10 and 13.

 Thank you very much John. Incredibly fast answer !!!
 
 BTW Is there an easy /practical  way to convert holidays dates to number of 
 weeks?

Not sure I read this right, but if you are talking about converting a
date to a week-number (as e.g. exhibited at the top of the weekly
agenda), this should do the trick:

;;; date is a three-element list (month day year)
;;; (calendar-current-date) returns the date in this format.
(defun week-number (date)
   (org-days-to-iso-week
(calendar-absolute-from-gregorian date)))

but I guess the more difficult question is a user interface that allows
you to construct such elaborate org-diary-class constructs.

Nick




___
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


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Carsten Dominik


On Feb 10, 2010, at 11:20 PM, Nick Dokos wrote:


Daniel Martins daniel...@gmail.com wrote:


2010/2/10 John Rakestraw li...@johnrakestraw.com


Daniel Martins writes:


Someone could send me an example of the use of the org-diary- 
class ??


   *** 12:15-13:05 Class
  %%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)
  %%(org-diary-class 1 13 2010 5 3 2010 3 10)
  %%(org-diary-class 1 13 2010 5 3 2010 5 10 13)

   Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to  
13:05, with
   holidays as indicated. Friday's class, for example, doesn't meet  
in weeks

   10 and 13.

Thank you very much John. Incredibly fast answer !!!

BTW Is there an easy /practical  way to convert holidays dates to  
number of weeks?


Not sure I read this right, but if you are talking about converting a
date to a week-number (as e.g. exhibited at the top of the weekly
agenda), this should do the trick:

;;; date is a three-element list (month day year)
;;; (calendar-current-date) returns the date in this format.
(defun week-number (date)
  (org-days-to-iso-week
   (calendar-absolute-from-gregorian date)))

but I guess the more difficult question is a user interface that  
allows

you to construct such elaborate org-diary-class constructs.


You can also navigate the agenda to the corresponding days, and it  
will show the week number.


HTH

- Carsten



___
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


Re: [Orgmode] [babel] unnecessary loading of info files?

2010-02-10 Thread Eric S Fraga
On Wed, 10 Feb 2010 12:19:08 -0500, Dan Davison davi...@stats.ox.ac.uk wrote:
 
 Eric S Fraga ucec...@ucl.ac.uk writes:
 
  Hi,
 
  recently (not sure exactly when) I have noticed that, for some reason,
  the python info files are loaded by Emacs when initialising org-babel
  specifically (I think) when loading org-babel-python.  I get messages
  of the form:
 
  ,
  | uncompressing python2.5-lib.info.gz...done
  `
 
  On my netbook, this is rather annoying as it slows down the
  initialisation of Emacs significantly.  I don't understand why the
  info files are necessary for org-babel?
 
 Hi Eric,
 
 They aren't, but perhaps they are loaded when we (require 'python)?  If
 so then I guess it's out of babel's control; maybe a partial solution
 would be to not activate python as a babel langage until necessary
 (maybe by adding (require 'org-babel-python) to an appropriate hook?).
 
 On my ubuntu 9.10 netbook I don't seem to have any the python info files
 even after installing python2.6-doc. Are you using a debian-based linux
 system and if so could you tell me how to install the python info files
 so that I can investigate?

Hi Dan,

I am using a Debian testing/unstable mix on the netbook and the info
files are from:

,
| $ dpkg --search python2.5-lib.info.gz
| python2.5-doc: /usr/share/info/python2.5-lib.info.gz
`

Strange that the info files are not in the 2.6 version.

I may simply remove this package as I don't use python much and, even
when I do, I can wait until I'm at one of my desktop systems to read
the documentation...

Thanks,
eric


___
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


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Daniel Martins
It helps!

It is silly how I never noticed  the (W06) in top of agenda!

Anyway Nick comments

but I guess the more difficult question is a user interface that allows
 you to construct such elaborate org-diary-class constructs.


are quite pertinent.

Daniel

2010/2/10 Carsten Dominik carsten.domi...@gmail.com


 On Feb 10, 2010, at 11:20 PM, Nick Dokos wrote:

  Daniel Martins daniel...@gmail.com wrote:

  2010/2/10 John Rakestraw li...@johnrakestraw.com

  Daniel Martins writes:


  Someone could send me an example of the use of the org-diary-class ??


   *** 12:15-13:05 Class
  %%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)
  %%(org-diary-class 1 13 2010 5 3 2010 3 10)
  %%(org-diary-class 1 13 2010 5 3 2010 5 10 13)

   Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
   holidays as indicated. Friday's class, for example, doesn't meet in
 weeks
   10 and 13.

 Thank you very much John. Incredibly fast answer !!!

 BTW Is there an easy /practical  way to convert holidays dates to number
 of weeks?


 Not sure I read this right, but if you are talking about converting a
 date to a week-number (as e.g. exhibited at the top of the weekly
 agenda), this should do the trick:

 ;;; date is a three-element list (month day year)
 ;;; (calendar-current-date) returns the date in this format.
 (defun week-number (date)
  (org-days-to-iso-week
   (calendar-absolute-from-gregorian date)))

 but I guess the more difficult question is a user interface that allows
 you to construct such elaborate org-diary-class constructs.


 You can also navigate the agenda to the corresponding days, and it will
 show the week number.

 HTH

 - Carsten


___
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


[Orgmode] Renumber HTML ordered lists from org-mode?

2010-02-10 Thread Uriel Avalos
In HTML, one way of renumbering OL lists is to use start. (Ex: ol
start=13.../ol restarts the numbering at 13.) 

Is there anyway to do that from within org-mode without hacking the
exported HTML file? 

Is there a +ATTR_HTML:  planned for OL and UL lists?


___
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


[Orgmode] Org-publish: adding a new format?

2010-02-10 Thread Bill Powell

Hi all,

Does anyone have any suggestions for adding a new format to
org-publish? Any articles, or threads on the mailing list? I've
looked around but haven't found anywhere to start.

I want to convert an org file to a tab-separated format, so that it
can be imported into a flashcard program called Anki
[[http://ichi2.net/anki/]]. The basic idea is that each *** header is
a prompt, and the following text is the answer.

*** Who wrote /War and Peace/?

Leo Tolstoy.

*** What is the preferred editor for using Org-mode?

Windows Notepad.


and so on.

The catch is, I'd also like to preserve the *bold* and /italic/ formatting.
Not to mention those awesome org-tables.

Now, Anki understands HTML formatting. So, ideally, I can use the
excellent export to HTML that org-publish already does. That's 95% of
the work right there.

In fact, I have already written a Perl script that takes an exported
HTML file and chomps it into a .tsv. (Almost.)

But although my elisp is pretty rudimentary, I have a couple reasons
I'd like to implement this within org-publish instead:

1) I could share my work (at least by posting it on my web site; my elisp
isn't ready for official contributions yet), and

2) It might make it easier to access the different org-elements
directly. For instance, I use *** headers as prompts, so that I can
use * and ** to organize the flashcards in the org-file. But, I would
like to be able to save the * and ** headers, and use them as tags in
the final Anki flashcard. (Anki lets you tag your flashcard.)
Similarly, I'd like to convert org-mode :tags: as well.

I can do all this in Perl, but it feels messy and inelegant, not to
mention brittle.

On the other hand, those who know org-publish may feel that this is a
tall order for org-export-html-final-hook, and just the sort of job
that Perl does best.

Any thoughts?

Thanks,
Bill Powell






___
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


[Orgmode] Bold text beginning line produces empty PDF

2010-02-10 Thread Raffi R
If I begin a line with bolded text, like so:

*Case 1:*

it produces the following LaTeX:

\textbf{Case 1:\}

Exporting with C-c C-e d produces an empty LaTeX document.

Is this reproducible? Is it a bug?

Thank you,
 - Raffi.


___
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


Re: [Orgmode] Org-publish: adding a new format?

2010-02-10 Thread Carsten Dominik

Hi Bill,

the best approach might be to write an elisp program to do the post  
processing you do now in perl, and then to hook this function into  
`org-publish-after-export-hook'.


- Carsten

On Feb 11, 2010, at 5:43 AM, Bill Powell wrote:



Hi all,

Does anyone have any suggestions for adding a new format to
org-publish? Any articles, or threads on the mailing list? I've
looked around but haven't found anywhere to start.

I want to convert an org file to a tab-separated format, so that it
can be imported into a flashcard program called Anki
[[http://ichi2.net/anki/]]. The basic idea is that each *** header is
a prompt, and the following text is the answer.

*** Who wrote /War and Peace/?

Leo Tolstoy.

*** What is the preferred editor for using Org-mode?

Windows Notepad.


and so on.

The catch is, I'd also like to preserve the *bold* and /italic/  
formatting.

Not to mention those awesome org-tables.

Now, Anki understands HTML formatting. So, ideally, I can use the
excellent export to HTML that org-publish already does. That's 95% of
the work right there.

In fact, I have already written a Perl script that takes an exported
HTML file and chomps it into a .tsv. (Almost.)

But although my elisp is pretty rudimentary, I have a couple reasons
I'd like to implement this within org-publish instead:

1) I could share my work (at least by posting it on my web site; my  
elisp

isn't ready for official contributions yet), and

2) It might make it easier to access the different org-elements
directly. For instance, I use *** headers as prompts, so that I can
use * and ** to organize the flashcards in the org-file. But, I would
like to be able to save the * and ** headers, and use them as tags  
in

the final Anki flashcard. (Anki lets you tag your flashcard.)
Similarly, I'd like to convert org-mode :tags: as well.

I can do all this in Perl, but it feels messy and inelegant, not to
mention brittle.

On the other hand, those who know org-publish may feel that this is a
tall order for org-export-html-final-hook, and just the sort of job
that Perl does best.

Any thoughts?

Thanks,
Bill Powell






___
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





___
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