Re: [Orgmode] Problem with publishing to html

2010-10-30 Thread Nick Dokos
Noorul Islam noo...@noorul.com wrote:

 On Sat, Oct 30, 2010 at 4:23 AM,  marksc...@gmail.com wrote:
  I updated to 7.02 today and now am unable to publish a project to
  html.  This is the error reported in *Messages*
 
  Publishing file /home/mark/teach/10fall/metaphysics/notes/index.org using 
  `org-publish-org-to-html'
  Exporting...
  tramp-convert-file-attributes: Wrong type argument: numberp,
  1288383678\.599600284\.0
 
  Here's my setting of org-publish-project-alist:
 
   (setq org-publish-project-alist '((metaphysics
                                      :base-directory 
  ~/teach/10fall/metaphysics/notes/
                                      :publishing-directory 
  /ssh:metaphys...@192.168.2.100:~/metaphysics
                                      :recursive t
                                      :section-numbers nil
                                      :table-of-contents nil
                                      :base-extension org
                                      :publishing-function 
  org-publish-org-to-html
                                      :author-info nil
                                      :creator-info nil)))
 
 I tried to re-create this on my machine using
 
 (setq org-publish-project-alist '((metaphysics
 :base-directory /tmp/notes/
 :publishing-directory
 /ssh:noo...@127.0.0.1:/tmp/publish
 :recursive t
 :section-numbers nil
 :table-of-contents nil
 :base-extension org
 :publishing-function 
 org-publish-org-to-html
 :author-info nil
 :creator-info nil)))
 
 I got the project published without any issues.
 
 I have
 
 Org-mode version 7.01trans (release_7.01h.880.gba6b6)
 GNU Emacs 23.2.2 (i686-pc-linux-gnu)
  of 2010-06-08 on sajida
 
I tried with just-pulled 7.02 and could not reproduce it either. It
looks like a tramp problem.

Mark, try evaluating the following form (but note that the IP address
looks like a DHCP address assigned by your router, so you should make
sure that it is still correct):

(file-attributes 
/ssh:metaphys...@192.168.2.100:/home/mark/metaphysics/index.html)

You can evaluate it by placing the cursor after the closing paren
of the form and pressing ``C-x C-e''. Do you get the same error?
Either way it probably has nothing to do with org, but if you do
get the same error, then it *definitely* has nothing to do with org.

HTH,
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


[Orgmode] options for non-breaking space

2010-10-30 Thread sebastien-listes
Hi,

I'm recent user of orgmode and I must say I'm quite impressed.

As a French typesetter, using orgmode as a source format to provide both
pdf and html output to the books I'm asked to typeset might be the
begining of the solution I'm looking for to satisfy people who want to
provide ebooks to their readers.  Hence, the need of having fine-tuning
for the typographic details for both html and latex export is an
important point.

The following question occured to me: how can I have a non-breaking
space before ; : ! ? and betweend « and », but only for the HTML export?
(the LaTeX French package manages spaces for these signs automatically,
inserting not only a non-breaking space but a thinner non-breaking
space, which is better in regard of our typographic choices).

Thanks in advance for your help!

PS: I don't know if a thin-nonbreaking-space is supported in HTML but,
if it was the case, I'd be interested in this solution, too.

-- 
Sébastien Mengin
Édition et logiciels libres
 Mise en page avec LaTeX 
http://edilibre.net
tél. : 06 84 88 49 17
jid. : sebastien-men...@jabber.org


___
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] options for non-breaking space

2010-10-30 Thread Sébastien Mengin
Hi,

I'm recent user of orgmode and I must say I'm quite impressed.

As a French typesetter, using orgmode as a source format to provide both
pdf and html output to the books I'm asked to typeset might be the
begining of the solution I'm looking for to satisfy people who want to
provide ebooks to their readers.  Hence, the need of having fine-tuning
for the typographic details for both html and latex export is an
important point.

The following question occured to me: how can I have a non-breaking
space before ; : ! ? and betweend « and », but only for the HTML export?
(the LaTeX French package manages spaces for these signs automatically,
inserting not only a non-breaking space but a thinner non-breaking
space, which is better in regard of our typographic choices).

Thanks in advance for your help!

PS: I don't know if a thin-nonbreaking-space is supported in HTML but,
if it was the case, I'd be interested in this solution, too.

-- 
Sébastien Mengin
Édition et logiciels libres
 Mise en page avec LaTeX 
http://edilibre.net
tél. : 06 84 88 49 17
jid. : sebastien-men...@jabber.org


___
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] Two minor issues

2010-10-30 Thread Jambunathan K

1. Improper fontification of Babel blocks

   With babel native fontification on, I see that the commented elisp
   code down below is not fontified. The problem persists if I kill the
   buffer and find it again.

#+begin_src emacs-lisp
  ;; (message Hello World)
#+end_src  


2. C-c C-v C-M-h and C-c C-v C-x interaction

   In the block below do

   1. C-c C-v C-M-h, C-c C-v C-x C-M-\
   2. Mark (just) the code-block with C-SPC etc etc. C-c C-v C-x C-M-\

   See the difference in behaviour.

#+begin_src xml
text:p text:style-name=StandardThis is a xref to
text:bookmark-ref text:reference-format=text
text:ref-name=__RefHeading__1669_1684552201Heading8
/text:bookmark-ref./text:p
#+end_src

I have transient mark mode on.

Jambunathan K.
















___
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] C-v C-v M-x?

2010-10-30 Thread Jambunathan K

Is there a C-c C-v M-x? Can this be made available. I will find it
useful.

Jambunathan K.

___
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] Reverse inheritance of active region?

2010-10-30 Thread Jambunathan K

I am trying to mark a xml sexp (for later copying) as below

1. C-SPC
2. C-c C-v C-x C-M-n

I would like the sexp to be offered as a marked region in the Org-mode
buffer. 

Note that In (2) the cursor moves as expected. May be point and mark
should round-trip?

#+begin_src xml
  text:h text:style-name=Heading_20_8
  text:outline-level=8text:bookmark
  text:name=__RefHeading__1669_1684552201/Heading8
  text:bookmark-end
  text:name=__RefHeading__1669_1684552201//text:h
#+end_src

I have transient mark mode on.

Jambunathan K.

___
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: General question on dealing with Latex to word conversion

2010-10-30 Thread Marvin Doyley
On Thu, Oct 28, 2010 at 8:23 PM, Matt Lundin m...@imapmail.org wrote:

 Marvin Doyley marvin...@gmail.com writes:

  Org mode is now a part of my daily work-flow, not only do I use it for
  teaching, scheduling my time, but I also use it to store my research
  notes. The only snag is several of my collaborators is tied to
  microsoft word, and thus my only work around is to  export my notes and
  draft from Org to plain text and then reformat everything in word,
  which real time sync., especially when I have to retype equations in
  Mathtype.  I know there are bunch of commercial software that claim to
  be able to convert latex files to word, but most are far from perfect.
  Is there a more efficient way of tacking this  problem ?  Is there is
  any plans of developing a org-export-rtf or org-export-docx  function ?

 There is now an FAQ on converting to odt/rtf/doc, since there have been
 several threads on this question recently:

 http://orgmode.org/worg/org-faq.php#convert-to-open-office

 The FAQ is based largely on the helpful discussion of this issue late
 last month:

 http://comments.gmane.org/gmane.emacs.orgmode/31168

 Please feel free to suggest other methods you'd like to see in the FAQ.

 Marvin: I'm not sure whether the methods in the FAQ address the problem
 of math equations. I believe that some exporters (such as latex2rtf)
 convert equations to images, while others (such as ttf) try to render
 them in html, etc. Might I ask which converters[1] you have tried? I
 might be helpful for the org community to know what does *not* work.
 I've had great success with tex4ht and latex2rtf, but my documents don't
 include math equations. :)

 Best,
 Matt

 Footnotes:
 [1] http://www.tug.org/applications/tex4ht/mn.html#QQ1-1-83

Hi Matt,

This is fantastic. I have used latex2rtf, but not with the best results. The
best solution on the mac seem to be html to .doc via textutils

Best.
M
___
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: General question on dealing with Latex to word conversion

2010-10-30 Thread Marvin Doyley
tex4ht is awesome, it even does a good job with equations.
My new workflow is org -  tex - html (via tex4ht) -  doc or docx
(textutil)

thanks everybody
cheers
M
On Thu, Oct 28, 2010 at 8:23 PM, Matt Lundin m...@imapmail.org wrote:

 Marvin Doyley marvin...@gmail.com writes:

  Org mode is now a part of my daily work-flow, not only do I use it for
  teaching, scheduling my time, but I also use it to store my research
  notes. The only snag is several of my collaborators is tied to
  microsoft word, and thus my only work around is to  export my notes and
  draft from Org to plain text and then reformat everything in word,
  which real time sync., especially when I have to retype equations in
  Mathtype.  I know there are bunch of commercial software that claim to
  be able to convert latex files to word, but most are far from perfect.
  Is there a more efficient way of tacking this  problem ?  Is there is
  any plans of developing a org-export-rtf or org-export-docx  function ?

 There is now an FAQ on converting to odt/rtf/doc, since there have been
 several threads on this question recently:

 http://orgmode.org/worg/org-faq.php#convert-to-open-office

 The FAQ is based largely on the helpful discussion of this issue late
 last month:

 http://comments.gmane.org/gmane.emacs.orgmode/31168

 Please feel free to suggest other methods you'd like to see in the FAQ.

 Marvin: I'm not sure whether the methods in the FAQ address the problem
 of math equations. I believe that some exporters (such as latex2rtf)
 convert equations to images, while others (such as ttf) try to render
 them in html, etc. Might I ask which converters[1] you have tried? I
 might be helpful for the org community to know what does *not* work.
 I've had great success with tex4ht and latex2rtf, but my documents don't
 include math equations. :)

 Best,
 Matt

 Footnotes:
 [1] http://www.tug.org/applications/tex4ht/mn.html#QQ1-1-83

___
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: General question on dealing with Latex to word conversion

2010-10-30 Thread Jambunathan K

Hello Marvin,

 There is now an FAQ on converting to odt/rtf/doc, since there have
 been several threads on this question recently:

 http://orgmode.org/worg/org-faq.php#convert-to-open-office

 The FAQ is based largely on the helpful discussion of this issue late
 last month:

 http://comments.gmane.org/gmane.emacs.orgmode/31168

 Please feel free to suggest other methods you#39;d like to see in the FAQ.
 [1] http://www.tug.org/applications/tex4ht/mn.html#QQ1-1-83

 Hi Matt,This is fantastic. I have used latex2rtf, but not with the
 best results. The best solution on the mac seem to be html to .doc via
 textutils

Could you be more specific? What aspects of latex2rtf did you find
unsatisfactory - the equations aspect or something else ...

Thanks for the referring us to textutils. IIRC, this hasn't surfaced in
the list (atleast in recent times).

Jambunathan K.

___
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] Git pull has merge conflict

2010-10-30 Thread Greg Troxel

Noorul Islam noo...@noorul.com writes:

 I am not sure why this conflict is arising even after resetting to
 head and then doing a pull

 $ noo...@sajida:~/emacs/org-mode$ git reset --hard
 HEAD is now at ba6b6f3 Merge branch 'master' of git://repo.or.cz/org-mode

 $ noo...@sajida:~/emacs/org-mode$ git pull
 Auto-merging ORGWEBPAGE/index.org
 CONFLICT (content): Merge conflict in ORGWEBPAGE/index.org
 Automatic merge failed; fix conflicts and then commit the result.

Because you reset to master, which is your copy, rather than resetting
to origin/master, which would discard local changes.


pgpqYlQ5YlXgx.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] Git pull has merge conflict

2010-10-30 Thread Noorul Islam
On Sat, Oct 30, 2010 at 7:02 PM, Greg Troxel g...@ir.bbn.com wrote:

 Noorul Islam noo...@noorul.com writes:

 I am not sure why this conflict is arising even after resetting to
 head and then doing a pull

 $ noo...@sajida:~/emacs/org-mode$ git reset --hard
 HEAD is now at ba6b6f3 Merge branch 'master' of git://repo.or.cz/org-mode

 $ noo...@sajida:~/emacs/org-mode$ git pull
 Auto-merging ORGWEBPAGE/index.org
 CONFLICT (content): Merge conflict in ORGWEBPAGE/index.org
 Automatic merge failed; fix conflicts and then commit the result.

 Because you reset to master, which is your copy, rather than resetting
 to origin/master, which would discard local changes.


Thank you!

Thanks and Regards
Noorul

___
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] Git pull has merge conflict

2010-10-30 Thread Noorul Islam
On Sat, Oct 30, 2010 at 7:02 PM, Greg Troxel g...@ir.bbn.com wrote:

 Noorul Islam noo...@noorul.com writes:

 I am not sure why this conflict is arising even after resetting to
 head and then doing a pull

 $ noo...@sajida:~/emacs/org-mode$ git reset --hard
 HEAD is now at ba6b6f3 Merge branch 'master' of git://repo.or.cz/org-mode

 $ noo...@sajida:~/emacs/org-mode$ git pull
 Auto-merging ORGWEBPAGE/index.org
 CONFLICT (content): Merge conflict in ORGWEBPAGE/index.org
 Automatic merge failed; fix conflicts and then commit the result.

 Because you reset to master, which is your copy, rather than resetting
 to origin/master, which would discard local changes.


Btw I did not have any local changes/commits. But still the merge failed.

Thank you!

Noorul

___
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] COMMENTed Radio Targets: Any comments?

2010-10-30 Thread Jambunathan K

I am noticing Some inconsistencies with commented out 'Radioed
Targets'. Example is down below. Comments are welcome ...

In the generated HTML,

1. The section titled 'Radioed Target' is not exported because it is
   commented out.
2. References to 'Radioed Target' still get exported as link. It
   points to self.
   
I am not sure what the right behaviour should be ...

I see two options (that I think are consistent):

1. In the Org file, references to 'Radioed Target' is still linkified
   and clicking on it takes me to the right heading (although it is
   COMMENTed out)
   
   The corresponding thing for the HTML exporter is to 'ignore' the
   COMMENT tag on the headline and (still) export it with refrences to
   that headline as internal links.

2. The exported HTML doesn't contain the radioed headline. So
   references to radioed text shouldn't be linkified.
   
Btw, does the behaviour in (1) surprise anyone? 

# Input Org file

#+begin_src emacs-lisp
  (org-link-search-must-match-exact-headline nil)
#+end_src

* Links
** Targets
*** COMMENT Radioed Target
** References
*** References to Radioed Links
This section has references to Radioed Target.


# Output HTML file
# Shows interesting sections

#+begin_src html
  div id=text-table-of-contents
ul
  li
a href=#sec-1
  1 Links 
/a
ul
  li
a href=#sec-1_1
  1.1 Targets 
/a
  /li
  li
a href=#sec-1_2
  1.2 References 
/a
ul
  li
a href=#sec-1_2_1
  1.2.1 References to Radioed Links 
/a
  /li
/ul
  /li
/ul
  /li
/ul
  /div
#+end_src


#+begin_src html
  div id=outline-container-1 class=outline-2
h2 id=sec-1
  span class=section-number-2
1
  /span
  Links 
/h2
div class=outline-text-2 id=text-1
/div
div id=outline-container-1_1 class=outline-3
  h3 id=sec-1_1
span class=section-number-3
  1.1
/span
Targets 
  /h3
  div class=outline-text-3 id=text-1_1
  /div
/div
div id=outline-container-1_2 class=outline-3
  h3 id=sec-1_2
span class=section-number-3
  1.2
/span
References 
  /h3
  div class=outline-text-3 id=text-1_2
  /div
  div id=outline-container-1_2_1 class=outline-4
h4 id=sec-1_2_1
  span class=section-number-4
1.2.1
  /span
  References to Radioed Links 
/h4
div class=outline-text-4 id=text-1_2_1
  p
This section has references to 
a href=#sec-1_2_1
  Radioed Target
/a
.
  /p
/div
  /div
/div
  /div
#+end_src

Jambunathan K.

___
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] options for non-breaking space

2010-10-30 Thread Jeff Horn
 The following question occured to me: how can I have a non-breaking
 space before ; : ! ? and betweend « and », but only for the HTML export?
 (the LaTeX French package manages spaces for these signs automatically,
 inserting not only a non-breaking space but a thinner non-breaking
 space, which is better in regard of our typographic choices).

I didn't realize HTML had a non-breaking space character. Rather I
supposed all spaces were non-breaking with the overflow property
turned off for a div.

I can't imagine when I'd use it, but a non-breaking space in HTML
would definitely be worth knowing about.

I thought breaking of lines was left mainly to browser, the br /
tag, and CSS...

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
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] Problem with publishing to html

2010-10-30 Thread Mark Scala
On Sat, Oct 30, 2010 at 1:25 AM, Nick Dokos nicholas.do...@hp.com wrote:

 Noorul Islam noo...@noorul.com wrote:

  On Sat, Oct 30, 2010 at 4:23 AM,  marksc...@gmail.com wrote:
   I updated to 7.02 today and now am unable to publish a project to
   html.  This is the error reported in *Messages*
  
   Publishing file /home/mark/teach/10fall/metaphysics/notes/index.orgusing 
   `org-publish-org-to-html'
   Exporting...
   tramp-convert-file-attributes: Wrong type argument: numberp,
   1288383678\.599600284\.0
  
   Here's my setting of org-publish-project-alist:
  
(setq org-publish-project-alist '((metaphysics
   :base-directory
 ~/teach/10fall/metaphysics/notes/
   :publishing-directory
 /ssh:metaphys...@192.168.2.100:~/metaphysics
   :recursive t
   :section-numbers nil
   :table-of-contents nil
   :base-extension org
   :publishing-function
 org-publish-org-to-html
   :author-info nil
   :creator-info nil)))
 
  I tried to re-create this on my machine using
 
  (setq org-publish-project-alist '((metaphysics
  :base-directory /tmp/notes/
  :publishing-directory
  /ssh:noo...@127.0.0.1:/tmp/publish
  :recursive t
  :section-numbers nil
  :table-of-contents nil
  :base-extension org
  :publishing-function
 org-publish-org-to-html
  :author-info nil
  :creator-info nil)))
 
  I got the project published without any issues.
 
  I have
 
  Org-mode version 7.01trans (release_7.01h.880.gba6b6)
  GNU Emacs 23.2.2 (i686-pc-linux-gnu)
   of 2010-06-08 on sajida
 
 I tried with just-pulled 7.02 and could not reproduce it either. It
 looks like a tramp problem.

 Mark, try evaluating the following form (but note that the IP address
 looks like a DHCP address assigned by your router, so you should make
 sure that it is still correct):

 (file-attributes /ssh:metaphys...@192.168.2.100:
 /home/mark/metaphysics/index.html)

 You can evaluate it by placing the cursor after the closing paren
 of the form and pressing ``C-x C-e''. Do you get the same error?
 Either way it probably has nothing to do with org, but if you do
 get the same error, then it *definitely* has nothing to do with org.

 HTH,
 Nick



 Nick, you were right. This problem doesn't arise from Org at all.  It had
to do with an upgrade to coreutils (in my case, on Arch Linux).  In case
anyone else encounters this, I solved the  problem by applying the patch at
this link:

http://osdir.com/ml/tramp-devel-gnu/2010-10/msg9.html

Best,
Mark
___
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: clocktable: maximum level 0 does not only avoid listing items but also does not calculate items

2010-10-30 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Rainer, hi Bernt,

 On Jul 22, 2010, at 9:16 AM, Rainer Stengele wrote:

 #+BEGIN: clocktable :maxlevel 0 :scope (file1.org file2)
 :timestamp t :tstart 2010-05-01 Sa 00:00 :tend   2010-07-31 Sa
 23:55
 Clock summary at [2010-07-22 Do 09:11]

 | File | L | Timestamp | Headline | Time |
 |--+---+---+--+--|
 |  |   | Timestamp | *Total time* | *232:17* |
 |--+---+---+--+--|
 #+END:


 I would like to get the same results!
 Is :maxlevel 0 intended to not include the sublevel clocks?

 I think I have finally fixed this bug.  Please verify.

 Bernt, I made a change to clock tables which I think I understand.
 But can you please watch out for inconsistencies with the newest
 version?  Maybe run some tests with old and new version, to make sure
 clock tables deliver the same results?

 Thanks!

 - Carsten

Hi Carsten,

I've been at a commit before the clock tables change until today.  I've
update to the current master and reviewed my agenda clock table results
for every day in October and the results are identical for me before and
after this change.

Thanks,
Bernt

___
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] Last workday of the month

2010-10-30 Thread Chris Maier
I'm trying to come up with a sexp diary entry that shows my payday,
which is the last weekday of the month, in my Org agenda.  I've tried
to adapt the example given in the Emacs manual and this is what I came
up with:

%%(let ((month (car date))
(day (cadr date))
(dayname (calendar-day-of-week date)))
(or
 ;; months with 31 days
 (and (memq month '(1 3 5 7 8 10 12))
 (or (and (= day 31)
  (memq dayname '(1 2 3 4 5)))
 (and (memq day '(29 30))
  (= dayname 5
 ;; months with 30 days
 (and (memq month '(4 6 9 11))
  (or (and (= day 30)
   (memq dayname '(1 2 3 4 5)))
  (and (memq day '(28 29))
   (= dayname 5
 ;; February (the weird one)
 (and (= month 2)
  (or (and (memq day '(28 29))
   (memq dayname '(1 2 3 4 5)))
  (and (memq day '(26 27 28))
   (= dayname 5)) Chris' Paycheck Deposited

It appears to work so far.  However, I'm certain there's got to be a
more concise way of coding this, but I can't seem to find any
pre-existing calendar functions that might help.  Am I missing
something?

To make this even better, is there some way to consult another file of
diary entries containing all the holidays at my workplace, so the
diary entry would show up on the last weekday of the month that is not
a company holiday?

Thanks!

Chris

___
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] options for non-breaking space

2010-10-30 Thread Sébastien Mengin
Le sam. 30/10/10 (10:18:02 -0400), Jeff Horn a écrit :
  The following question occured to me: how can I have a non-breaking
  space before ; : ! ? and betweend « and », but only for the HTML export?
  (the LaTeX French package manages spaces for these signs automatically,
  inserting not only a non-breaking space but a thinner non-breaking
  space, which is better in regard of our typographic choices).
 
 I didn't realize HTML had a non-breaking space character. 

Yes, it has, that is: nbsp;

 Rather I supposed all spaces were non-breaking with the overflow
 property turned off for a div.

My turn: I was unaware of such a property -- but I'm not sure it fits
my need.

 I can't imagine when I'd use it, but a non-breaking space in HTML
 would definitely be worth knowing about.

Orgmode is aware of it (just in case you don't know, type C-x 8
space). 

But, I'd need more granularity at the export time: don't keep
the non-breaking spaces into the latex export for the following symbols,
as mentioned earlier:

: ; ? ! « »

Thanks in advance,
Sébastien

-- 
Sébastien Mengin
Édition et logiciels libres
 Mise en page avec LaTeX 
http://edilibre.net
tél. : 06 84 88 49 17
jid. : sebastien-men...@jabber.org


___
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: Internal links in LaTeX export

2010-10-30 Thread suvayu ali
Hi Jambunathan

On 29 October 2010 03:17, Jambunathan K kjambunat...@gmail.com wrote:
 wish there was a way to say this:

 - do bisection on the revisions where org-latex.el changed (as opposed
   to revisions where HEAD moved)

 The candidate commits then would have reduced to 30 odd commits rather
 than 851 that one had to contend with.


I see in `man git-bisect' a form like this is shown as valid,

git bisect start [bad [good...]] [--] [paths...]

Wouldn't that do the job?

PS: I haven't tried this, just referring to the docs.

-- 
Suvayu

Open source is the future. It sets us free.

___
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] Last workday of the month

2010-10-30 Thread Nick Dokos
Chris Maier christopher.ma...@gmail.com wrote:

 I'm trying to come up with a sexp diary entry that shows my payday,
 which is the last weekday of the month, in my Org agenda.  I've tried
 to adapt the example given in the Emacs manual and this is what I came
 up with:
 
 %%(let ((month (car date))
 (day (cadr date))
 (dayname (calendar-day-of-week date)))
 (or
  ;; months with 31 days
  (and (memq month '(1 3 5 7 8 10 12))
  (or (and (= day 31)
   (memq dayname '(1 2 3 4 5)))
  (and (memq day '(29 30))
   (= dayname 5
  ;; months with 30 days
  (and (memq month '(4 6 9 11))
   (or (and (= day 30)
(memq dayname '(1 2 3 4 5)))
   (and (memq day '(28 29))
(= dayname 5
  ;; February (the weird one)
  (and (= month 2)
   (or (and (memq day '(28 29))
(memq dayname '(1 2 3 4 5)))
   (and (memq day '(26 27 28))
(= dayname 5)) Chris' Paycheck Deposited
 
 It appears to work so far.  However, I'm certain there's got to be a
 more concise way of coding this, but I can't seem to find any
 pre-existing calendar functions that might help.  Am I missing
 something?
 

This is based on the same idea and example from the manual, but it
precalculates what it needs in order to simplify the decision at
the end:

(let* ((dayname (calendar-day-of-week date))
  (day (calendar-extract-day date))
  (month (calendar-extract-month date))
  (year (calendar-extract-year date))
  (lastday (calendar-last-day-of-month month year))
  (last-two-days-before-last-day (list (- lastday 2) (- lastday 
1
   (or (and (= day lastday) (memq dayname '(1 2 3 4 5)))
   (and (memq day last-two-days-before-last-day) (= dayname 5)))
  )

Very lightly tested, so use with caution.

 To make this even better, is there some way to consult another file of
 diary entries containing all the holidays at my workplace, so the
 diary entry would show up on the last weekday of the month that is not
 a company holiday?
 

I'm sure there is - simplest is probably to set a variable in your
.emacs with all the holidays - schedule that with org for Dec. 31 :-) -
but you are on your own for that. I just don't think it's worth it: at
least for me, there are only three holidays during a year that might
interfere with that pay schedule.

HTH,
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] Possible Calc support for Org-Babel?

2010-10-30 Thread Eric S Fraga
Eric Schulte schulte.e...@gmail.com writes:
 alright, thanks for sticking with this.  You are definitely now using
 the latest code.  I believe the newest version of the ob-calc-eval
 function should work -- at the very least it should give a nicer error
 message.  Could you please require update again and let me know how it
 goes?

(for the list's benefit: Eric and I have had a few out-of-the-list
exchanges but as everything now seems to be working fine, I thought I'd
reconnect the thread to the list...)

Eric, 

just to confirm that it all seems to work just fine from a cold boot of
emacs without any extra (require 'ob-eval).  My babel configuration has
the following:

#+begin_src emacs_lisp
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (calc . t)
   (ditaa . t)
   ...
#+end_src

and that's about it really.  Evaluating the calc examples you sent
initially all work perfectly.

Using src_calc{5-2}, for instance, also works just fine for export.

I now wonder if it would be worthwhile discussing the choices you have
made regarding stack versus algebraic evaluation.  I would rather have
the quote mean an algebraic expression, just from the simple reason that
these will be longer than stack operations and so the overhead of a
quote is smaller as a percentage of keystrokes...

Anyway, thanks for this.  I think this is going to be quite useful but
it does mean really getting down and learning emacs calc...

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

___
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] ob-octave requires octave 3.2 or extra package

2010-10-30 Thread Eric S Fraga
Hello,

Just a comment on requirements: ob-octave assumes the presence of the
=dlmwrite= function.  This is available as standard with octave 3.2 but
requires an extra package (=octave-io=) if you have an older version
(3.0.x).  All of this is for Debian systems; I cannot speak about others
of course.

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

___
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] Last workday of the month

2010-10-30 Thread Chris Maier
Where do the functions 'calendar-extract-day',
'calendar-extract-month', 'calendar-extract-year', and
'calendar-last-day-of-the-month' come from?  I was looking for
something like those when I wrote my initial implementation, but I
don't seem to have them (hence the ugliness of the code!)  I'm running
GNU Emacs 23.2 for Mac OS X.  Searching for these functions using `C-h
f` turns up nothing for me.

Thanks for the help,
Chris

On Sat, Oct 30, 2010 at 4:19 PM, Nick Dokos nicholas.do...@hp.com wrote:
 Chris Maier christopher.ma...@gmail.com wrote:

 I'm trying to come up with a sexp diary entry that shows my payday,
 which is the last weekday of the month, in my Org agenda.  I've tried
 to adapt the example given in the Emacs manual and this is what I came
 up with:

 %%(let ((month (car date))
         (day (cadr date))
         (dayname (calendar-day-of-week date)))
     (or
      ;; months with 31 days
      (and (memq month '(1 3 5 7 8 10 12))
              (or (and (= day 31)
                       (memq dayname '(1 2 3 4 5)))
                  (and (memq day '(29 30))
                       (= dayname 5
      ;; months with 30 days
      (and (memq month '(4 6 9 11))
           (or (and (= day 30)
                    (memq dayname '(1 2 3 4 5)))
               (and (memq day '(28 29))
                    (= dayname 5
      ;; February (the weird one)
      (and (= month 2)
           (or (and (memq day '(28 29))
                    (memq dayname '(1 2 3 4 5)))
               (and (memq day '(26 27 28))
                    (= dayname 5)) Chris' Paycheck Deposited

 It appears to work so far.  However, I'm certain there's got to be a
 more concise way of coding this, but I can't seem to find any
 pre-existing calendar functions that might help.  Am I missing
 something?


 This is based on the same idea and example from the manual, but it
 precalculates what it needs in order to simplify the decision at
 the end:

 (let* ((dayname (calendar-day-of-week date))
              (day (calendar-extract-day date))
              (month (calendar-extract-month date))
              (year (calendar-extract-year date))
              (lastday (calendar-last-day-of-month month year))
              (last-two-days-before-last-day (list (- lastday 2) (- lastday 
 1
           (or (and (= day lastday) (memq dayname '(1 2 3 4 5)))
               (and (memq day last-two-days-before-last-day) (= dayname 5)))
              )

 Very lightly tested, so use with caution.

 To make this even better, is there some way to consult another file of
 diary entries containing all the holidays at my workplace, so the
 diary entry would show up on the last weekday of the month that is not
 a company holiday?


 I'm sure there is - simplest is probably to set a variable in your
 .emacs with all the holidays - schedule that with org for Dec. 31 :-) -
 but you are on your own for that. I just don't think it's worth it: at
 least for me, there are only three holidays during a year that might
 interfere with that pay schedule.

 HTH,
 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] Last workday of the month

2010-10-30 Thread Chris Maier
Never mind... I think I had something messed up in my initialization
file; they're showing up now.

Chris

On Sat, Oct 30, 2010 at 8:03 PM, Chris Maier
christopher.ma...@gmail.com wrote:
 Where do the functions 'calendar-extract-day',
 'calendar-extract-month', 'calendar-extract-year', and
 'calendar-last-day-of-the-month' come from?  I was looking for
 something like those when I wrote my initial implementation, but I
 don't seem to have them (hence the ugliness of the code!)  I'm running
 GNU Emacs 23.2 for Mac OS X.  Searching for these functions using `C-h
 f` turns up nothing for me.

 Thanks for the help,
 Chris

 On Sat, Oct 30, 2010 at 4:19 PM, Nick Dokos nicholas.do...@hp.com wrote:
 Chris Maier christopher.ma...@gmail.com wrote:

 I'm trying to come up with a sexp diary entry that shows my payday,
 which is the last weekday of the month, in my Org agenda.  I've tried
 to adapt the example given in the Emacs manual and this is what I came
 up with:

 %%(let ((month (car date))
         (day (cadr date))
         (dayname (calendar-day-of-week date)))
     (or
      ;; months with 31 days
      (and (memq month '(1 3 5 7 8 10 12))
              (or (and (= day 31)
                       (memq dayname '(1 2 3 4 5)))
                  (and (memq day '(29 30))
                       (= dayname 5
      ;; months with 30 days
      (and (memq month '(4 6 9 11))
           (or (and (= day 30)
                    (memq dayname '(1 2 3 4 5)))
               (and (memq day '(28 29))
                    (= dayname 5
      ;; February (the weird one)
      (and (= month 2)
           (or (and (memq day '(28 29))
                    (memq dayname '(1 2 3 4 5)))
               (and (memq day '(26 27 28))
                    (= dayname 5)) Chris' Paycheck Deposited

 It appears to work so far.  However, I'm certain there's got to be a
 more concise way of coding this, but I can't seem to find any
 pre-existing calendar functions that might help.  Am I missing
 something?


 This is based on the same idea and example from the manual, but it
 precalculates what it needs in order to simplify the decision at
 the end:

 (let* ((dayname (calendar-day-of-week date))
              (day (calendar-extract-day date))
              (month (calendar-extract-month date))
              (year (calendar-extract-year date))
              (lastday (calendar-last-day-of-month month year))
              (last-two-days-before-last-day (list (- lastday 2) (- lastday 
 1
           (or (and (= day lastday) (memq dayname '(1 2 3 4 5)))
               (and (memq day last-two-days-before-last-day) (= dayname 5)))
              )

 Very lightly tested, so use with caution.

 To make this even better, is there some way to consult another file of
 diary entries containing all the holidays at my workplace, so the
 diary entry would show up on the last weekday of the month that is not
 a company holiday?


 I'm sure there is - simplest is probably to set a variable in your
 .emacs with all the holidays - schedule that with org for Dec. 31 :-) -
 but you are on your own for that. I just don't think it's worth it: at
 least for me, there are only three holidays during a year that might
 interfere with that pay schedule.

 HTH,
 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