Re: [O] [ANN] Bibliography support ODT + JabRef

2013-07-30 Thread Jambunathan K

Nicolas, just jump to the last para.

Feng Shu

Please CC the mailing list.  I don't mind receiving or replying to
one-to-one mails but things that we exchange will be of interest to
other members.

feng shu tuma...@gmail.com writes:

 1. When I add (setq org-odt-data-dir ~/project/org-mode/etc/) to my .
 emacs file, it works properly, Thanks!

 2. Two question:
 1. How can I get uppercite: test^[1] instead of test[1]?
 2. How can I get compressed cite,like: test^[3, 5, 7-10, 16]

Thanks for the requests.  

Numbering is done by ox-jabref.el and not by JabRef application, so
these requests can indeed be met with 5-15 minute of effort.  But I
hesitate to 

The main problem is there are just too many styles a Bibliographic
Reference can be typeset - right from what some standard says, to what
my university wants to what I prefer myself.  

This is where some sort of common agreement - even just among the
members of the community - will help.  I will keep listening to the
conversation and hopefully an opinion will emerge during the course of
time.

 Forgot to mention:

 The speed of converting bib to xml is slow, may be we should introduce
 a cache system.

If you use Numbered transcoders, then the citekeys are processed one
by one.  So if there are 10 citekeys, then there will be 20 invocations
of command line.

One way of dealing with this is to choose a transcoder, that doesn't
enumerate.  In that case the Bibliographic Reference is created enbloc.
So the number of command line invocations will reduce to 11 = 10 + 1.
The ASCII document that I circulated gives examples of such transcoders.

 just like previewing latex snippet.

Caching of citekey-XML or whatever transformation is one option.
Another option is to just disable citations for casual exports and
enable it one for the final output.

Something like

   cite:t 

for #+OPTIONS.

For now you can customize `org-odt-citation-transcoders' so that
citation processing is disabled.






[O] Reading books with org-mode

2013-07-30 Thread Kyle Sexton
Just wanted to share a tip I've been using that is pretty nice.  Convert
any epub/mobi technical books you are reading to org-mode files and read
them in Emacs.  Then you can do nice things like easily cut and paste
portions of the book to org-drill for flash cards or into capture
templates.

The conversion process is different for every book (imagine that), but
not too horrible.  Basically, Calibre - htmlz - unzip - pandoc:

#+BEGIN_EXAMPLE
$ cp ~/Calibre\ Library/Metz*/Practi*/*.htmlz ./book.htmlz
$ unzip -q book.htmlz 
$ pandoc ./index.html -o book.org   
#+END_EXAMPLE

After that I usually have to global convert [[image/foo.png]] to
[[file:image/foo.png]] and add inlineimages to a start-up option on the
file.

--
Kyle Sexton



Re: [O] [ANN] Bibliography support ODT + JabRef

2013-07-30 Thread Rasmus
Jambunathan K kjambunat...@gmail.com writes:

 feng shu tuma...@gmail.com writes:

 1. When I add (setq org-odt-data-dir ~/project/org-mode/etc/) to my .
 emacs file, it works properly, Thanks!

 2. Two question:
 1. How can I get uppercite: test^[1] instead of test[1]?
 2. How can I get compressed cite,like: test^[3, 5, 7-10, 16]

 Thanks for the requests.  

 Numbering is done by ox-jabref.el and not by JabRef application, so
 these requests can indeed be met with 5-15 minute of effort.  But I
 hesitate to 

 The main problem is there are just too many styles a Bibliographic
 Reference can be typeset - right from what some standard says, to what
 my university wants to what I prefer myself.  

 This is where some sort of common agreement - even just among the
 members of the community - will help.  I will keep listening to the
 conversation and hopefully an opinion will emerge during the course of
 time.

Aren't these just a question of the style file used from Jabref (but
currently written by Jambunathan)?  More to the point, can someone
with reasonable effort write a new style?  If that's the case a less
styles can shipped and more styles can be user-submission
(e.g. org-cite-styles in elpa?).

IMO authordate, numeric (using names from table below) should be
included.  I agree with Feng that comp variations are nice.
Alphabetic, verbose and authortitle are nice to have, but I wouldn't
use them.

Also, what are the limitations of the complexity that can be handled
by this scheme?  Can one have a distinction between style and type of
citation, e.g. combine a inline-citation style with a bibliography
citation style?

Is something like footcite a property of the citation or of the style?

Just for the reference, these are the default in-text citation styles
of biblatex (section 3.3.1).  So in Biblatex-terms Feng is asking for
numeric-comp with \supercite{·}.

NAME STYLE

numeric  [8, 3, 1, 7, 2]
numeric-comp [1–3, 7, 8]
numeric-verb [2]; [5]; [6]
alphabetic   [Doe92; Doe95; Jon98]
alphabetic-verb  [Doe92]; [Doe95]; [Jon98]
authoryear   Doe 1995b; Doe 1992; Jones 1998; Doe 1995a
authoryear-comp  Doe 1992, 1995a,b; Jones 1998
alphabetic-verb  Doe 1992, 1995a,b; Jones 1998
authoryear-ibid  replaces repeated citations by the abbreviation 
 ibidem
authortitle  Doe, First title; Doe, Second title
authortitle-comp Doe,First title, Second title
authortitle-ibid replaces repeated citations by the abbreviation
 ibidem
authortitle-icompA style combining the features
authortitle-terseauthortitle but only prints the title 
 if the bibliography contains more than one work
authortitle-tcompauthortitle-comp and authortitle-terse. 
authortitle-ticomp   authortitle-tcomp style with an ibidem feature.
verbose  full citation as bibliography entry then short 
 citation in footnote
verbose-ibid replaces repeated citations by the abbreviation
 ibidem
verbose-note short citation is a pointer to the footnote with 
 the full citation
verbose-inoteverbose-note with ibidem
verbose-trad1:   verbose butt uses the scholarly abbreviations
 ibidem, idem, op. cit., and loc. cit. 
verbose-trad2ibidem and idem in repeated citations. 
verbose-trad3useses op. cit. in a slightly different way.
draftentry keys in citations



-- 
There are known knowns; there are things we know that we know.




Re: [O] [ANN] Bibliography support ODT + JabRef

2013-07-30 Thread feng shu
On Tue, Jul 30, 2013 at 1:07 PM, Jambunathan K kjambunat...@gmail.comwrote:


 Nicolas, just jump to the last para.

 Feng Shu

 Please CC the mailing list.  I don't mind receiving or replying to
 one-to-one mails but things that we exchange will be of interest to
 other members.

 feng shu tuma...@gmail.com writes:

  1. When I add (setq org-odt-data-dir ~/project/org-mode/etc/) to my .
  emacs file, it works properly, Thanks!
 
  2. Two question:
  1. How can I get uppercite: test^[1] instead of test[1]?
  2. How can I get compressed cite,like: test^[3, 5, 7-10, 16]

 Thanks for the requests.

 Numbering is done by ox-jabref.el and not by JabRef application, so
 these requests can indeed be met with 5-15 minute of effort.  But I
 hesitate to

 The main problem is there are just too many styles a Bibliographic
 Reference can be typeset - right from what some standard says, to what
 my university wants to what I prefer myself.

 This is where some sort of common agreement - even just among the
 members of the community - will help.  I will keep listening to the
 conversation and hopefully an opinion will emerge during the course of
 time.


We don't need include all the styles, but we should make the feature easy
hack for end users. we can introduce hook and filter!



  Forgot to mention:

  The speed of converting bib to xml is slow, may be we should introduce
  a cache system.

 If you use Numbered transcoders, then the citekeys are processed one
 by one.  So if there are 10 citekeys, then there will be 20 invocations
 of command line.

 One way of dealing with this is to choose a transcoder, that doesn't
 enumerate.  In that case the Bibliographic Reference is created enbloc.
 So the number of command line invocations will reduce to 11 = 10 + 1.
 The ASCII document that I circulated gives examples of such transcoders.

  just like previewing latex snippet.

 Caching of citekey-XML or whatever transformation is one option.
 Another option is to just disable citations for casual exports and
 enable it one for the final output.

 Something like

cite:t

 for #+OPTIONS.

 For now you can customize `org-odt-citation-transcoders' so that
 citation processing is disabled.






[O] bug#14975: 24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound'

2013-07-30 Thread Bastien
Hi Oleh,

Oleh o.kre...@tue.nl writes:

 Currently, this function behaves unconditionally
 as if `org-clock-sound' was set to t.

 I attach a patch of how I fixed it for my needs:

Please send those patches to the org-mode list first.

I applied it but added a ChangeLog entry in the commit message
and the TINYCHANGE change cookie that helps us track small changes
by contributors who did not assign their copyright to the FSF (yet).

Thanks for catching this,

-- 
 Bastien





[O] bug#14975: 24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound'

2013-07-30 Thread Bastien
Bastien b...@altern.org writes:

 Please send those patches to the org-mode list first.

PS: Maybe it's just me and I did not see the initial bug
report on this list -- ignore the heads up if that's so!

-- 
 Bastien





Re: [O] Wrong Type Error When Publishing Project

2013-07-30 Thread Bastien
Nick Dokos ndo...@gmail.com writes:

 The manual is updated, but it does not mention specific publishing
 functions IIRC.

Core publishing functions are here in the manual:

  http://orgmode.org/org.html#Publishing-action

At least

  org-html-publish-to-html
  org-latex-publish-to-pdf
  org-org-publish-to-org

But yes, we could not document all of them on the manual,
people have to check their export libraries.

2 cts,

-- 
 Bastien



Re: [O] Handling Repeating events from google calendar / repeater interval

2013-07-30 Thread Stephen Eglen

 sorry the patch was incomplete. The correct one is on a branch I just 
 pushed named tz-test.

 For me it works the same but maybe it works for you.

Thanks Simon, but unfortuantely I'm still seeing [UTC].

Stephen



Re: [O] Latest Org Compatible with Emacs 23.3.1

2013-07-30 Thread Kenneth Jacker
  ng (scroll-up-line) is the same as (scroll-up 1).

I see ... simple fix!

Thanks,

  -Kenneth



Re: [O] [ANN] Bibliography support ODT + JabRef

2013-07-30 Thread Feng Shu
 Caching of citekey-XML or whatever transformation is one option.
 Another option is to just disable citations for casual exports and
 enable it one for the final output.
 
 Something like
 
 cite:t
 
 for #+OPTIONS.
 
 For now you can customize `org-odt-citation-transcoders' so that
 citation processing is disabled.
I prefer cache system, the reason may sound a bit funny:

My thesis has more than 50 reference. I use exporting and viewing reference 
output
to check  my thesis reference. this method very simple, but if exporting speed
is too slow, this method nearly useless. 

-- 



[O] bug#14975: 24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound'

2013-07-30 Thread Glenn Morris
Bastien wrote:

 Please send those patches to the org-mode list first.

 PS: Maybe it's just me and I did not see the initial bug
 report on this list -- ignore the heads up if that's so!

If by this list you mean the org-mode list:
It was initially reported to bug-gnu-emacs. Then I assigned it to the
emacs,org-mode package, so that subsequent emails went to the org-mode
list as well as the bug-gnu-emacs list. This would have happened with
the initial report if it had specified a Package: emacs,org-mode line.
(Though there seems no point in having emacs in there really.)





[O] bug#14975: 24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound'

2013-07-30 Thread Bastien
Hi Glenn,

Glenn Morris r...@gnu.org writes:

 Please send those patches to the org-mode list first.

 PS: Maybe it's just me and I did not see the initial bug
 report on this list -- ignore the heads up if that's so!

 If by this list you mean the org-mode list:
 It was initially reported to bug-gnu-emacs. Then I assigned it to the
 emacs,org-mode package, so that subsequent emails went to the org-mode
 list as well as the bug-gnu-emacs list. This would have happened with
 the initial report if it had specified a Package: emacs,org-mode line.
 (Though there seems no point in having emacs in there really.)

Thanks for the explanations.

This is what I expected, but I don't find the bug in the org-mode
mailing list.  The only reference I can find is my reply:
http://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg01094.html

Does anyone receive this bug on the first place?  Or someone can
browse the archives better than me?

-- 
 Bastien





[O] bug#14975: 24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound'

2013-07-30 Thread Glenn Morris
Bastien wrote:

 It was initially reported to bug-gnu-emacs. Then I assigned it to the
 emacs,org-mode package, so that subsequent emails went to the org-mode
 list as well as the bug-gnu-emacs list. This would have happened with
 the initial report if it had specified a Package: emacs,org-mode line.
 (Though there seems no point in having emacs in there really.)

 Thanks for the explanations.

 This is what I expected, but I don't find the bug in the org-mode
 mailing list.

That's what I'm saying. It was sent to bug-gnu-emacs ONLY. Because that
list is coupled to debbugs.gnu.org, and because I reassigned the bug
after it was received, subsequent replies went to both lists. But the
initial report is only on bug-gnu-emacs.






Re: [O] import R data frame into org-mode table

2013-07-30 Thread Cook, Malcolm

  Indeed, thanks, and, my worked out example follows using emacs 2.18.9 and 
  org-mode version 8.0.6
 
 
 2.18.9?

oops, that was the GTK_ Version number.  My emacs is 24.3.1.

 #+LATEX: \listoftables
  #+LaTeX_HEADER: \usepackage{longtable}
  #+name: longtabletest
  #+CAPTION: test of longtable caption
  #+begin_src R :results value :colnames yes
  data.frame(num=1:260,alpha=rep(LETTERS,10))
  #+end_src
 
  #+RESULTS:
  #+attr_latex: :environment longtable
  | num | alpha |
  |-+---|
  |   1 | A |
  |   2 | B |
  ...
 
 Does this really produce a table caption for you when you export to
 latex?
 And does the attr_latex line stay there at the top of the table
 when the code block is evaluated?  

Yes and Yes.  At least, I swear it worked in my hands yesterday, but today the 
answer is No and No.  !!  I can't explain what has changed.

 For me, the answers are no and
 no. 
 I have to rewrite it as follows in order for it to work:
 
  #+begin_src R :results value :colnames yes
  data.frame(num=1:260,alpha=rep(LETTERS,10))
  #+end_src
 
  #+CAPTION: test of longtable caption
  #+attr_latex: :environment longtable
  #+RESULTS:
  | num | alpha |
  |-+---|
  |   1 | A |
  |   2 | B |

In my hands, both the #+CAPTION and the #+att_latex as you place them are 
deleted upon source block evaluation. 

Are you sure your placement works for you?

Summary: In my hands today, there is no placement of them that both survives 
source block re-evaluation and works.  And, they can both be placed immediately 
above or below the #+RESULTS: line and are respected on export.

(However, another funny interaction, the caption of the longtable has multiple 
entries, one for each page, in my #+LATEX: \listoftables )

H

 
 --
 Nick
 
 




[O] bug#14975: 24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound'

2013-07-30 Thread Stefan Monnier
 That's what I'm saying. It was sent to bug-gnu-emacs ONLY. Because that
 list is coupled to debbugs.gnu.org, and because I reassigned the bug
 after it was received, subsequent replies went to both lists. But the
 initial report is only on bug-gnu-emacs.

It would be nice if some message were sent to org-mode's list when
`org-mode' is added to the Package: list.


Stefan applicable to other packages than org-mode, obviously





[O] narrowing bug when inserting a headline

2013-07-30 Thread Samuel Wales
To try to repro, narrow to two headlines.  Go up.  Insert a heading with C-RET.

Several characters will no longer be in the narrowed region.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.



[O] HTML2Org ?

2013-07-30 Thread Fabrice Popineau
Anybody tried to write an HTML to Org parser (even a crude one) ?

Best regards,

Fabrice


[O] bug#14975: 24.3; org-mode's `org-clock-notify-once-if-expired' doesn't respect `org-clock-sound'

2013-07-30 Thread Bastien
Glenn Morris r...@gnu.org writes:

 That's what I'm saying. It was sent to bug-gnu-emacs ONLY. Because that
 list is coupled to debbugs.gnu.org, and because I reassigned the bug
 after it was received, subsequent replies went to both lists. But the
 initial report is only on bug-gnu-emacs.

Got it now, thanks!

-- 
 Bastien, who agrees with Stefan's suggestion on this





Re: [O] HTML2Org ?

2013-07-30 Thread Fabrice Popineau
I was wondering about something doing the reverse of the exporter: get some
fragment of Org text
from an exported HTML fragment.
However, it won't be much easier: links, macros, babel ... I guess only the
basic markup could be reversed.

Fabrice


2013/7/31 Neil Smithline emacs-orgm...@neilsmithline.com

 How would you get the document structure our of the HTML unless it only
 used heading tags?

 Even something as simple as bold could be hidden within some monstrous
 CSS.

 From my mobile. Please excuse abbrvs, tpyos, and auto ward correction.
 On Jul 30, 2013 5:36 PM, Fabrice Popineau fabrice.popin...@gmail.com
 wrote:

 Anybody tried to write an HTML to Org parser (even a crude one) ?

 Best regards,

 Fabrice




[O] $ in paragraph -- footnote problem

2013-07-30 Thread Alan L Tyree

According to the manual (at 11.7.3):

 * Text within the usual LaTeX math delimiters.  To avoid conflicts
 with currency specifications, single `$' characters are only
 recognized as math delimiters if the enclosed text contains at
 most two line breaks, is directly attached to the `$' characters
 with no whitespace in between, and if the closing `$' is followed
 by whitespace, punctuation or a dash.  For the other delimiters,
 there is no such restriction, so when in doubt, use `\(...\)' as
 inline math delimiters.

I have a paragraph with a $120,000 in it. At any point after the $ sign, 
org will not let me insert a footnote, giving the message Cannot insert 
a footnote here. Removing the $ allows a footnote, but replacing the $ 
disables it. Adding another currency figure to the paragraph changes 
nothing.


Is this a bug or a problem with my setup?

emacs 24.3.1
org 8.0.6

Thanks for any help,
Alan

--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:typh...@iptel.org




Re: [O] HTML2Org ?

2013-07-30 Thread Thorsten Jolitz
Fabrice Popineau fabrice.popin...@gmail.com writes:

 I was wondering about something doing the reverse of the exporter: get some
 fragment of Org text
 from an exported HTML fragment.
 However, it won't be much easier: links, macros, babel ... I guess only the
 basic markup could be reversed.

do you know pandoc?

,-
| About pandoc
| 
| If you need to convert files from one markup format into another, pandoc
| is your swiss-army knife. Pandoc can convert documents in markdown,
| reStructuredText, textile, HTML, DocBook, LaTeX, or MediaWiki markup to
| 
| HTML formats: XHTML, HTML5, and HTML slide shows using Slidy,
| Slideous, S5, or DZSlides. Word processor formats: Microsoft Word
| docx, OpenOffice/LibreOffice ODT, OpenDocument XML Ebooks: EPUB
| version 2 or 3, FictionBook2 Documentation formats: DocBook, GNU
| TexInfo, Groff man pages TeX formats: LaTeX, ConTeXt, LaTeX Beamer
| slides PDF via LaTeX Lightweight markup formats: Markdown,
| reStructuredText, AsciiDoc, MediaWiki markup, Emacs Org-Mode,
| Textile
`-

http://johnmacfarlane.net/pandoc/

-- 
cheers,
Thorsten




Re: [O] HTML2Org ?

2013-07-30 Thread Neil Smithline
How would you get the document structure our of the HTML unless it only
used heading tags?

Even something as simple as bold could be hidden within some monstrous CSS.

From my mobile. Please excuse abbrvs, tpyos, and auto ward correction.
On Jul 30, 2013 5:36 PM, Fabrice Popineau fabrice.popin...@gmail.com
wrote:

 Anybody tried to write an HTML to Org parser (even a crude one) ?

 Best regards,

 Fabrice