Re: [O] How to signal end of a section or subsection

2014-01-23 Thread Sebastien Vauban
Hello Nicolas,

Nicolas Goaziou wrote:
 Sebastien Vauban writes:

 I thought that the standard way was the following:

 *** 
 :B_theorem:
 :PROPERTIES:
 :BEAMER_env: theorem
 :END:

 There is no largest prime number.

 *** End of theorem
 :B_ignoreheading:
 :PROPERTIES:
 :BEAMER_env: ignoreheading
 :END:

 Obviously, it's much less readeable...

 But more powerful. For example, you can nest blocks of the same type
 with this syntax. Not with the other one.

 Maybe that solution should be deprecated, then?

 Certainly not. See above.

OK.

Is the simpler solution valid on all types of block environments?

To enumerate them (extensively, AFAICT):

- structureenv
- alertblock
- exampleblock
- definition
- example
- proof
- beamercolorbox
- verse
- quotation
- quote

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] in LaTeX, how to start page numbering after TOC?

2014-01-23 Thread Eric S Fraga
Peter Salazar cycleofs...@gmail.com writes:

 In export to LaTeX/PDF, has anyone had success in suppressing page
 numbering on the cover page and the Table of Contents, such that the first
 text section appears as Page 1?

 I tried adding this at the beginning of my document, but it had no effect:

 #+LATEX_CMD: \cleardoublepage
 #+LATEX_CMD: \pagestyle{headings}
 #+LATEX_CMD: \setcounter{page}{1}
 #+LATEX_CMD: \pagenumbering{arabic}

I don't know the CMD specification.  You probably should use
#+LATEX_HEADER instead.

Regardless, the issue is that those LaTeX commands affect the
/following/ pages only.  To change the style for the /current/ page, in
LaTeX, you need to use \thispagestyle as well as \pagestyle.  You
probably should not have the cleardoublepage command either.

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.4-322-gece429




[O] Including Tables and Figures in TOC for org-odt-export

2014-01-23 Thread Rajat Mukherjee
Hello Org-mode users,
Can any body direct me as to how to include list of tables and figures in the 
toc when exporting to odt from orgmode.
Many thanks in advance,
Rajat.





[O] How not to show repetitive tasks in the TODO items of agenda view

2014-01-23 Thread Chaitanya Krishna
Hello there,
Maybe someone has already come across this problem. Any help is appreciated.

I have some repetitive tasks which I schedule using the deadline approach.

TODO Search for house
DEADLINE: 2014-01-26 Sun +1w

* Birthdays
TODO Abc Abc
DEADLINE: 2014-01-26 Sun +1y

The problem is that all the birthdays and repetitive tasks are cluttering
my view in agenda TODO items (C-c a t).

Is it possible to make these items show up only in the agenda view (C-c a
a) and not in the TODO items list (C-c a t)

Best regards,
Chai

--
42


Re: [O] Including Tables and Figures in TOC for org-odt-export

2014-01-23 Thread Jambunathan K
Rajat Mukherjee rajat.mukher...@cytel.com writes:

 Hello Org-mode users,
 Can any body direct me as to how to include list of tables and figures in the 
 toc when exporting to odt from orgmode.

Org cannot generate TOC of tables and figures.  You need to use
LibreOffice to insert Index of Table and Figures (by hand).

You are the first user to ask for this feature.  If I see more people
shouting out for this feature, I can consider adding it.

 Many thanks in advance,
 Rajat.




Re: [O] ox-md conforming pandoc-markdown

2014-01-23 Thread Nicolas Goaziou
Hello,

Erik Hetzner e...@e6h.org writes:

 Michel Kuhlmann wrote:
 I found these issues inconvenient:
 
 - Listings create blank-lines in between
 + Currently
 - uno
- uno
- dos-  - dos
- tres
 - tres
 + Desired
- uno- uno
- dos-  - dos
- tres   - tres

 This seems easy enough to fix, we simply need to add:

   (org-element-put-property item :post-blank nil)

 to the org-md-item function. Can anybody tell me if this is a bad
 idea? Otherwise I will send a patch.

This should be already fixed in maint branch.


Regards,

-- 
Nicolas Goaziou



Re: [O] How to signal end of a section or subsection

2014-01-23 Thread Nicolas Goaziou


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 Is the simpler solution valid on all types of block environments?

 To enumerate them (extensively, AFAICT):

 - structureenv
 - alertblock
 - exampleblock
 - definition
 - example
 - proof
 - beamercolorbox
 - verse
 - quotation
 - quote

The simpler solution is just a consequence of special blocks handling
in LaTeX export back-ends. So, it will work for any special block. You
can rule out verse, example and quote, which have their own type in Org
syntax.


Regards,

-- 
Nicolas Goaziou




Re: [O] ox-md conforming pandoc-markdown

2014-01-23 Thread Michel Kuhlmann
On Thu, Jan 23, 2014 at 12:12:30PM +0100, Nicolas Goaziou wrote:
 
  This seems easy enough to fix, we simply need to add:
 
(org-element-put-property item :post-blank nil)
 
  to the org-md-item function. Can anybody tell me if this is a bad
  idea? Otherwise I will send a patch.
 
 This should be already fixed in maint branch.
 

Great, thanks



[O] lost in tables syntax

2014-01-23 Thread Joseph Vidal-Rosset
Hello the list,

I am lost in the syntax for tables. I've seen that of course, building
syntax in org-mode is more simple than with LateX. But I have spent time to
learn the LaTeX syntax of tabular, with multicol and now I do not succeed
to get in html tables with multicolumns without vertical lines nor
horizontal lines.

Paradoxically, it is for me now more simple to write the LaTeX code with
tabular environment.

I am not reluctant to learn the org-syntax, but I need help.

Best wishes

Jo.


Re: [O] lost in tables syntax

2014-01-23 Thread Bastien
Hi Joseph,

Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 I am not reluctant to learn the org-syntax, but I need help.

Then we need to know more on how to help you :)

If you want multi-columns Org tables, alas, that's not
supported.

-- 
 Bastien



Re: [O] lost in tables syntax

2014-01-23 Thread Joseph Vidal-Rosset
Le jeu.  23 janv. 2014  à 01:18:35 ,  Bastien b...@gnu.org a  envoyé ce
message:
 Hi Joseph,

 Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 I am not reluctant to learn the org-syntax, but I need help.

 Then we need to know more on how to help you :)

 If you want multi-columns Org tables, alas, that's not
 supported.

Many thanks Bastien  for your quick reply.  The best for me  would be to
use the  LaTeX syntax with  tabular, multicol ,  ect. and to  succeed in
html export too. But 
with in the headers the following line: 

#+STYLE: SCRIPT SRC=/usr/share/jsmath/easy/load.js/SCRIPT

and in the .tex file the following code:

\begin{center}
 \begin{tabular}[tb]{cc}
\multicolumn{2}{c}{$ ((p \to q) \to p) \to p $} \\
$ ((\bot \to q) \to \bot) \to \bot $  $ ((\top \to q) \to \top) \to \top $ \\
$ (\top \to \bot) \to \bot $  $ \top $ \\
$ \neg \neg \top $  \\
$ \top $\\
\end{tabular}
\end{center}

I get in iceweasel (i.e. the Firefox of Debian): 


Unknown environment center 
Unknown environment tabular

... 

I have also tried to use imagemagick, it does not work correctly... 

Again, thanks for your kind help. 

Jo. 




Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Alan Schmitt
Hello Drew,

Drew Adams drew.ad...@oracle.com writes:

 1d. By default only.  It is trivial to customize user option
 `icicle-top-level-keybindings', to bind `icicle-occur' to a
 different key or to give it no key binding at all.

 (And no, you do not need to fiddle with Lisp to do that - not
 even `define-key'.  `M-x customize-option' is your friend -
 just get yourself a separate `custom-file', for sanity.)

 1e. The same holds for `C-`', which Icicles binds by default
 to `icicle-search'.  And it holds for any other top-level
 keys.

 If you think that Icicles is clobbering any key bindings
 that you prefer from another package (such as Org), it is
 simple to change keys (in Icicles anyway; dunno about Org).
 Icicles does not clobber any keys without your permission
 - just customize `icicle-top-level-keybindings'.

Thanks a lot for this suggestion. I'm just not used to the customize
system so I did not think of looking there.

I have an additional question: where does one ask for help about icicle?
I don't know how to make it work with bbdb, and searching online didn't
clarify things.

Thanks again,

Alan



[O] [ANN] ELPA package for ODT and JabRef exporters

2014-01-23 Thread Jambunathan K

I have prepared an ELPA package

org-odt-*.tar

for easy distribution of bug fixes from private git repository [fn:1].

The package contains both ODT exporter and JabRef exporter.  You need to
make sure that you are using

1. org  8.0
2. Emacs  24.3.50



Steps for installing ODT + JabRef ELPA package
=

1. Clear out your .emacs.  (Not needed, if you know what you are doing)

2. Visit http://repo.or.cz/w/org-mode/org-kjn.git/tree/master and
   download the a tar file named org-odt-MMDD.tar.  (Click on the
   raw link)

   As of now, the file is available at:
   
   
http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/org-odt-20140123.tar

3. M-x package-install-file RET path-to-org-odt-*.tar RET

4. Goto start of .emacs and add the following line.  (It should be the
   first line in your .emacs)

   (setq org-odt-data-dir nil)

5. Check the ODT option under

M-x customize-variable RET org-export-backends RET

6. Restart Emacs

7. Make sure that the following commands point to the ELPA directory

   M-x locate-library RET ox-odt RET
   M-x locate-library RET ox-jabref RET
   C-h v org-odt-styles-dir
   C-h v org-odt-schema-dir

8. Visit test.org and export it. Enjoy.



Some existing gotchas and bugs
=

(4) above is needed to work around a bug in Emacs snapshot and Org build
system.


Wrt (2) and (3), I would have expected that the following

(custom-set-variables
 '(package-archives
   (quote
((gnu . http://elpa.gnu.org/packages/;)
 (org-odt
  . http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/;)

would suffice to do install via

  M-x list-packages.

Unfortunately for some reasons package.el refuses to download the
archive-contents located at
http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/archive-contents.
Any one interested in investigating this and if necessary file a bug
report against Emacs.



How to host the above files on your own ELPA server
==

If someone wants to distribute the above files, please put the following
files in your web-server.

1. Copy org-odt-MMDD.tar
2. Copy archive-contents

See directory structure of http://orgmode.org/elpa/

1. Various tar files are under that directory.
2. archive-contents points to the very latest tar file.

   http://orgmode.org/elpa/archive-contents



ODT exporter and Copyright Issues and a Note to the Users
=

[fn:1] http://repo.or.cz/w/org-mode/org-kjn.git

The above repo. contains many bug-fixes and enhancements that are NOT
available with Emacs-24.4 or Orgmode git repo.

For some reasons, emacs-devel, org developers and I don't meet eye to
eye. See
http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00509.html.  So
the above fixes are unlikely to be avaible with Emacs or Org git repo.

To the people who rely on ODT exporter for their day to day use and want
it as part of Emacs

1. Find someone with Copyright Assignment to fix the critical issue(s).

2. Write to Gnu/Linux distributors - Debian, Gentoo etc - and persuade
   them to apply patches from my private repo before building the
   org-mode or Emacs deb packages.

Note to Org developers
==

If anyone comes this far, let me note that Bastien's latest change to
ox-odt.el resembles very much fix on my Org private repo.  I would argue
that this fix borrows very liberally from my un-assigned changes.  So
fill-in-the-blanks.




Re: [O] Aligned glosses in orgmode (for export to odt/doc)

2014-01-23 Thread Jambunathan K
Benjamin Slade sl...@jnanam.net writes:

 Can anyone suggest how this (or some other solution to producing
 interlinear glosses) might be implemented in an orgmode-odt/doc/docx
 setup? One potential solution would be an orgmode setup which produces
 borderless tables with an optimal width column setting. I don't know
 how to do this in orgmode though (or if it can be done currently).

Feel free to use my ELPA package. I have documented the procedure here

http://permalink.gmane.org/gmane.emacs.orgmode/81347

Going forward, I will release my packages - ox-odt and org-jabref - via
ELPA tarball.  So, ELPA installation will be the recommended method for
accessing my private package.



You can ignore my earlier message at:

http://permalink.gmane.org/gmane.emacs.orgmode/81301




Re: [O] How not to show repetitive tasks in the TODO items of agenda view

2014-01-23 Thread Alexander Baier
On 2014-01-23 12:03 Chaitanya Krishna wrote:
 * Birthdays
 TODO Abc Abc
 DEADLINE: 2014-01-26 Sun +1y

 Is it possible to make these items show up only in the agenda view (C-c a
 a) and not in the TODO items list (C-c a t)

You could just take a normal active timestamp instead of a DEADLINE for
the birthdays. Something like this:

* Birthdays
TODO Abc Abc
2014-01-26 Sun +1y

HTH,
-- 
 Alexander Baier



Re: [O] Citations and references in ODT

2014-01-23 Thread Jambunathan K


Try out the org-odt-* ELPA package and let me know how things go.


Aric Gregson aorc...@mac.com writes:

 --On January 19, 2014 11:16:53 AM +0530 Jambunathan K
 kjambunat...@gmail.com wrote:

 Are you still stuck here or you made some repairs and stuck elsewhere.
 ...
 IMO, starting from scratch (i.e., an empty .emacs) and installing Org
 via M-x list-packages is a sure way to have a working setup with minimal
 fuss.

 Yes, still stuck here. All works fine so long as I don't try to use
 your modified files, thus I imagined it was due to some error when
 installing your modified files for org, which it must be. I will look
 through and reinstall again and see what I can find. Otherwise, works
 well enough now without the ox-jabref.el.

 Aric




[O] org-export and browse-url-browser-function

2014-01-23 Thread henry atting
When exporting some org file to html with `C-c C-e h o' orgmode always
wants to open the html file with `sensible-browser'. Since my two
(graphic) browsers reside in ~/bin I have no alternatives for
sensible-browser. Which is fine by me. I don't want to change this.

What I really would appreciate is if orgmode took care of
`browse-url-browser-function' (which is set to `browse-url-firefox'.)
Which it usually does (in *.org files) but not while exporting.






Re: [O] Citations and references in ODT

2014-01-23 Thread Jambunathan K
Jambunathan K kjambunat...@gmail.com writes:

 Try out the org-odt-* ELPA package and let me know how things go.

See

http://permalink.gmane.org/gmane.emacs.orgmode/81347




Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Drew Adams
 I have an additional question: where does one ask for help about icicle?

1. `M-x icicle-send-bug-report' or menu Icicles  Send Icicles Bug Report
or `M-x customize-group Icicles'  click Send Bug Report

2. Emacs Wiki:

 Bugs:
 http://www.emacswiki.org/emacs/IciclesIssues

 Suggestions:
 http://www.emacswiki.org/emacs/IciclesDiscussion

3. Email (see file headers).

 I don't know how to make it work with bbdb, and searching online
 didn't clarify things.

I don't use BBDB.  I've heard that they changed it a lot recently,
so the Icicles code for it (command `icicle-bbdb-complete-mail')
might need to be updated.  For that, it would be good to get some
info and perhaps some testing from a BBDB user.  If you would like
to volunteer in that regard, drop me a line.

Icicles works with older BBDB versions, at least.  The last change
I made to the Icicles BBDB command was a year ago, for BBDB version
3.02.

If you have a newer BBDB version than 3.02 and it is problematic with
Icicles, you can just remove `bbdb-complete-mail' or `bbdb-complete-name'
from the value of user option `icicle-functions-to-redefine'
(`M-x customize-option').  That will give you back the vanilla BBDB
command, instead of an Icicles version.

But if you have BBDB 3.02 or 2.35 then you should not have a problem.
The doc for Icicles + BBDB is here:
http://www.emacswiki.org/Icicles_-_Completion_in_Other_Buffers#BbdbCompletion

An extract:

  If user option `icicle-functions-to-redefine' contains an entry for
  'bbdb-complete-mail' (for BBDB version 3.02) or 'bbdb-complete-name'
  (for BBDB version 2.35), then Icicles redefines that command so that
  it uses Icicles completion when there are multiple completions.

  You can use any Icicles features, such as apropos completion and
  candidate cycling.  For this feature to take effect, you must load
  BBDB before you load Icicles.  Option 'icicle-functions-to-redefine'
  includes entries for both 'bbdb-complete-mail' and 'bbdb-complete-name'
  by default.

HTH.






Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Drew Adams
   * Sequences consisting of `C-c' followed by any other punctuation
 character are allocated for minor modes.  Using them in a major
 mode is not absolutely prohibited, but if you do that, the major
 mode binding may be shadowed from time to time by minor modes.
 
  IOW, no major mode should bind any of the latter group of keys,
  including `C-'' and `C-`', and any minor mode may do so - whether
  that mode is official or not.
 
 We are talking about C-c ' but I think that's a typo in the
 paragraph above, since the manual you quote is about C-c '.

Yes, sorry, I meant C-c ' and C-c `.

  1b. There is no global default binding for `C-'' in `emacs -Q'.
  And there should not be, since it is reserved for minor modes.
 
  I don't know whether Org binds `C-'' for a minor mode or for
  a major mode, but if it is the latter then it is in violation
  of the convention.
 
 As the manual says, this is not prohibited, just discouraged.

Binding C-c ' by a major mode defies the convention.  Whether
you want to interpret the convention as a prohibition (without
any real teeth) or just a mild discouragement is up to you.

What we can say is that any major mode that binds such keys
does not respect the GNU Emacs key-binding conventions, which
were defined to allow help modes and libraries cooperate.
There can be no disagreement about that.

We can disagree about how important it is to respect those
conventions.  Icicles, at any rate, does respect them.

 You're of course allowed to shadow C-c ' in your code.

It's not about me or my code or being allowed.  C-c ' is
reserved for minor modes.  Any minor mode can bind such keys.
No major mode should do so.



Re: [O] org-export and browse-url-browser-function

2014-01-23 Thread Bastien
Hi Henry,

henry atting s...@online.de writes:

 What I really would appreciate is if orgmode took care of
 `browse-url-browser-function' (which is set to `browse-url-firefox'.)
 Which it usually does (in *.org files) but not while exporting.

See this docstring

  C-h f org-open-file RET

and check C-h v org-file-apps RET to configure this.

-- 
 Bastien



Re: [O] lost in tables syntax

2014-01-23 Thread Bastien
Hi Joseph,

Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 Many thanks Bastien  for your quick reply.  The best for me  would be to
 use the  LaTeX syntax with  tabular, multicol ,  ect. and to  succeed in
 html export too.

Mhhh... sorry, I don't know how to do this.  But providing the Org
table you come from may help know how you could get there... (not me,
but perhaps someone else.)

-- 
 Bastien



Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Bastien
Drew Adams drew.ad...@oracle.com writes:

 No major mode should do so.

One problem is that Org uses C-c . too ... and some more.

Perhaps it's better to report this as an Emacs bug so that we can
discuss the issue with Emacs maintainers and see what's really at
stake here.  For me, the keybindings are already too deeply in my
memory to consider removing them -- but perhaps that's me.

-- 
 Bastien



Re: [O] org-export and browse-url-browser-function

2014-01-23 Thread henry atting
 Hi Henry,

 henry atting s...@online.de writes:

 What I really would appreciate is if orgmode took care of
 `browse-url-browser-function' (which is set to `browse-url-firefox'.)
 Which it usually does (in *.org files) but not while exporting.

 See this docstring

   C-h f org-open-file RET

 and check C-h v org-file-apps RET to configure this.

Thanks, Bastien; that's what I was looking for.



Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Drew Adams
  No major mode should do so.
 
 One problem is that Org uses C-c . too ... and some more.
 
 Perhaps it's better to report this as an Emacs bug so that we can
 discuss the issue with Emacs maintainers and see what's really at
 stake here.

I'm not familiar with Org mode.  As I said, I don't even know
whether it binds such keys in a minor mode (which is fine) or
in a major mode (which is not).

Since you are familiar with whatever bindings Org sets, and you
have read the key-binding conventions section of the manual,
please file a bug if you think it is appropriate.  You are well
placed to give the details.

(FWIW, I seem to recall that I pointed this out to you a few
years back.)

There is a specific list of keys reserved for users, and another
list of keys reserved for minor modes.  If a major mode is using
keys from either of these lists then that should be fixed.

 For me, the keybindings are already too deeply in my
 memory to consider removing them -- but perhaps that's me.

Consideration of whether to fix bugs should not be based on
your habits or memory.  (I am not claiming there is an Org bug
here - I don't know.  That's for you to judge.)



Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Bastien
Hi Drew,

Drew Adams drew.ad...@oracle.com writes:

 Since you are familiar with whatever bindings Org sets, and you
 have read the key-binding conventions section of the manual,
 please file a bug if you think it is appropriate.  You are well
 placed to give the details.

 [...]

 Consideration of whether to fix bugs should not be based on
 your habits or memory.  (I am not claiming there is an Org bug
 here - I don't know.  That's for you to judge.)

It is only discouraged, so it's not a bug IMO.

And I don't want to push for this change, so I won't fill a
bug report.

-- 
 Bastien



Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Drew Adams
   Perhaps it's better to report this as an Emacs bug so that
   we can discuss the issue with Emacs maintainers and see
   what's really at stake here.
 
  Since you are familiar with whatever bindings Org sets, and
  you have read the key-binding conventions section of the
  manual, please file a bug if you think it is appropriate.
  You are well placed to give the details.
 
   For me, the keybindings are already too deeply in my
   memory to consider removing them -- but perhaps that's me.
 
  Consideration of whether to fix bugs should not be based
  on your habits or memory.  (I am not claiming there is an
  Org bug here - I don't know.  That's for you to judge.)
 
 It is only discouraged,

Dunno what that means.  It's not a criminal offense, no.

But the rules as written do not say anything about only
discouraging breaking them.  You can take the rules as
only guidelines/etiquette or as rules you really do not
want to break.  No one will arrest you for disrespecting
any of them.

 so it's not a bug IMO.  And I don't want to push for this
 change, so I won't fill a bug report.

That was probably also the outcome from the last time this
came up, a few years back. ;-)

_You_ suggested (above) that this should be reported as an
Emacs bug.  But you also don't want to push for it to be
fixed or report it, yourself.  So be it.

I would encourage someone else familiar with whatever Org
actually does in this regard (which is not me) to consider
filing an Emacs bug report, _if_ Org does in fact violate
the keybinding conventions.

Perhaps such Org bindings existed before Org was added to
Emacs, and perhaps when it was added no one noticed any
disrespect of the rules (it was a big chunk to add).  Dunno.
In any case, old habits are not a good reason not to fix
incompatibilities with other packages.

At any rate, let us not hear any more about this or that
3rd-party minor-mode code clobbering such bindings, if
those bindings were created improperly by a major mode.
These are bindings reserved for _minor_ modes.

A major mode that messes with such bindings is the one doing
any clobbering.  That is the case no matter how popular
the major mode is or how much the unfortunate bindings might
be ingrained in someone's memory.



Re: [O] Org heading properties in code block?

2014-01-23 Thread Rick Frankel

On 2014-01-21 14:08, Christopher Kotfila wrote:

Is it possible to include org heading properties directly in
codeblocks on tangle?



** Some Subheading
:PROPERTIES:
:FOO: bar
:END:

#+BEGIN_SRC emacs-lisp :tangle /path/to/.dir-locals.el :noweb yes
((python-mode . ((some-var . FOO

#+END_SRC



how about:

* As a variable
:PROPERTIES:
:header-args: :var foo=bar
:END:

#+BEGIN_SRC emacs-lisp
foo
#+END_SRC
* As a noweb source block

#+name: foo
#+BEGIN_SRC emacs-lisp :exports none :eval never
bar
#+END_SRC

#+BEGIN_SRC emacs-lisp :noweb yes
(foo . foo)
#+END_SRC

rick



Re: [O] odt exporter on mixed org setup

2014-01-23 Thread Achim Gratz
Jambunathan K writes:
 I have my reservations.  With stock Emacs Snapshot (i.e., without any
 separate Org installation - git or elpa) at Bzr version 116124, at line
 16, I am seeing

 ;;;###autoload
 (defvar org-odt-data-dir /usr/share/emacs/etc/org
   The location of ODT styles.)

 I hard-coded path, on a platform-independent file, makes me cringe?

That's the result of using Emacs' build system, not Org's.  I was only
talking about the latter and if you configure it as recommended on Worg
for the various platforms then installing Org will set this up
correctly.  If you find it does not, then that's a bug I'll try to fix.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




Re: [O] odt exporter on mixed org setup

2014-01-23 Thread Jambunathan K

Achim Gratz strom...@nexgo.de writes:

 That's the result of using Emacs' build system, not Org's.

Someone has to fix it...

It should either be

nil

or
(expand-file-name ./org/ data-directory)

If that path is wrong, the ODT exporter is really not usable.  I think
nil may be a good idea.








Re: [O] Check checkbox and move to end of list

2014-01-23 Thread Cecil Westerhof
2014/1/23 Cecil Westerhof cldwester...@gmail.com

 The following function does (mostly) what I want:
 (defun dcbl-check-checkbox-and-move-to-end ()
   (interactive)
   (save-excursion
 (let* ((struct (org-list-struct))
(struct-old (copy-tree struct))
(item   (line-beginning-position))
(item-checkbox-type (org-list-get-checkbox item struct)))
   (if (not item-checkbox-type)
   (message No checkbox found)
 (if (string-equal item-checkbox-type [X])
 (message Checkbox already checked)
   (org-list-set-checkbox item struct [X])
   (org-list-write-struct struct (org-list-parents-alist struct)
 struct-old)
   (org-list-send-item item 'end struct))


Update of the count in the parent did not go correctly always. This code
does the update correct. (Only the last command is appended.)
(defun dcbl-check-checkbox-and-move-to-end ()
  (interactive)
  (save-excursion
(let* ((struct (org-list-struct))
   (struct-old (copy-tree struct))
   (item   (line-beginning-position))
   (item-checkbox-type (org-list-get-checkbox item struct)))
  (if (not item-checkbox-type)
  (message No checkbox found)
(if (string-equal item-checkbox-type [X])
(message Checkbox already checked)
  (org-list-set-checkbox item struct [X])
  (org-list-write-struct struct (org-list-parents-alist struct)
struct-old)
  (dcbl-move-item-to-end-of-list item)
  (org-update-statistics-cookies nil))


-- 
Cecil Westerhof


[O] How to not show repetitive tasks in agenda view of TODO

2014-01-23 Thread Chaitanya Krishna
Hello there,

Maybe someone has already come across this problem. Any help is appreciated.

I have some repetitive tasks which I schedule using the deadline approach.

TODO Search for house
DEADLINE: 2014-01-26 Sun +1w

* Birthdays
TODO Abc Abc
DEADLINE: 2014-01-26 Sun +1y

The problem is that all the birthdays and repetitive tasks are cluttering
my view in agenda TODO items (C-c a t).

Is it possible to make these items show up only in the agenda view (C-c a
a) and not in the TODO items list (C-c a t)

Best regards,
Chai
-- 
42


Re: [O] How to signal end of a section or subsection

2014-01-23 Thread Sebastien Vauban
Hello Nicolas,

Nicolas Goaziou wrote:
 Sebastien Vauban writes:

 Is the simpler solution valid on all types of block environments?

 To enumerate them (extensively, AFAICT):

 - structureenv
 - alertblock
 - exampleblock
 - definition
 - example
 - proof
 - beamercolorbox
 - verse
 - quotation
 - quote

 The simpler solution is just a consequence of special blocks handling
 in LaTeX export back-ends. So, it will work for any special block.

OK, thanks.

 You can rule out verse, example and quote, which have their own type
 in Org syntax.

Verse and quote give the same results in both the complex and the simple
ways.

However, it does not for example.

The following:

--8---cut here---start-8---
** =example= environment

- Behaves like the theorem environment, except that the theorem style =example=
  is used.
- A side-effect of using this theorem style is that the contents is put in an
  =exampleblock= instead of a =block=.

*** Example :B_example:
:PROPERTIES:
:BEAMER_env: example
:END:

Contents of example

*** End of example:B_ignoreheading:
:PROPERTIES:
:BEAMER_env: ignoreheading
:END:

** =example= environment

- Simpler solution:

#+begin_example
Contents of example
#+end_example
--8---cut here---end---8---

gives:

--8---cut here---start-8---
\begin{frame}[fragile,label=sec-6-8]{\texttt{example} environment}
 \begin{itemize}
\item Behaves like the theorem environment, except that the theorem style 
\texttt{example}
is used.
\item A side-effect of using this theorem style is that the contents is put in 
an
  \texttt{exampleblock} instead of a \texttt{block}.
\end{itemize}

\begin{example}[Example]
Contents of example
\end{example}
\end{frame}
\begin{frame}[fragile,label=sec-6-9]{\texttt{example} environment}
 \begin{itemize}
\item Simpler solution:
\end{itemize}

\begin{verbatim}
Contents of example
\end{verbatim}
\end{frame}
--8---cut here---end---8---

Hence, a verbatim environment in LaTeX instead of an example.

Do I miss something?  Or do I have something wrong somewhere?

Best regards,
  Seb

-- 
Sebastien Vauban




[O] Can I wrap a Babel call inside a macro?

2014-01-23 Thread Sebastien Vauban
Hello,

I did the following test, not fully successfull:

--8---cut here---start-8---
#+name: current-time
#+begin_src sh
echo $(date '+%Y%m%d.%H%M')
#+end_src

#+results: current-time
: 20140123.2339

Date/time:
#+CALL: current-time()

#+results:
: 20140123.2339

#+MACRO: ct #+CALL: current-time()

The current date and time is:
{{{ct}}}.
--8---cut here---end---8---

as the HTML export gives:

--8---cut here---start-8---
div id=outline-container-sec-1 class=outline-2
  h2 id=sec-1span class=section-number-21/span Tests/h2

  div class=outline-text-2 id=text-1
div class=org-src-container
  pre class=src src-sh id=current-time
span style=color: #006FE0;echo/span span style=
color: #036A07;$(date '+%Y%m%d.%H%M')/span
/pre
/div

pDate/time:/p
pre class=example
20140123.2338
/pre

pThe current date and time is: #+CALL: current-time()./p
  /div ^^
/div
--8---cut here---end---8---

As macros are expanded _before_ Babel calls are executed, I'd think this
is possible, but I must miss something...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Drew Adams
   * Sequences consisting of `C-c' followed by any other punctuation
 character are allocated for minor modes.  Using them in a major
 mode is not absolutely prohibited, but if you do that, the major
 mode binding may be shadowed from time to time by minor modes.
 
 That's pretty clear to me.

To me too.  It's not absolutely prohibited.  If a major mode does
not mind having its binding shadowed, it can use a key allocated
for minor modes.

So yes, it's not a bug.  It might not be a great choice, but it
doesn't break anything.  Minor-mode bindings take precedence, so it
is the major-mode binding that gets shadowed.  If that's not a
problem for the major mode, no problem.



Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Bastien
Drew Adams drew.ad...@oracle.com writes:

 Dunno what that means.  It's not a criminal offense, no.

Let me quote the manual again:

  * Sequences consisting of `C-c' followed by any other punctuation
character are allocated for minor modes.  Using them in a major
mode is not absolutely prohibited, but if you do that, the major
mode binding may be shadowed from time to time by minor modes.

That's pretty clear to me.

 _You_ suggested (above) that this should be reported as an
 Emacs bug.  But you also don't want to push for it to be
 fixed or report it, yourself.  So be it.

I suggested that *you* report it as a bug if you think it's a bug.
I don't think it is, it's that simple.

-- 
 Bastien



Re: [O] How to not show repetitive tasks in agenda view of TODO

2014-01-23 Thread Erik Hetzner
At Thu, 23 Jan 2014 11:59:31 +0100,
Chaitanya Krishna wrote:
 
 Hello there,
 
 Maybe someone has already come across this problem. Any help is appreciated.
 
 I have some repetitive tasks which I schedule using the deadline approach.
 
 TODO Search for house
 DEADLINE: 2014-01-26 Sun +1w
 
 * Birthdays
 TODO Abc Abc
 DEADLINE: 2014-01-26 Sun +1y
 
 The problem is that all the birthdays and repetitive tasks are cluttering
 my view in agenda TODO items (C-c a t).
 
 Is it possible to make these items show up only in the agenda view (C-c a
 a) and not in the TODO items list (C-c a t)

Hi Chai,

I use a special keyword, REPEATING, so that repeating tasks are
filtered out of my TODO lists. But perhaps there is a better way.

best, Erik

-- 
Sent from my free software system http://fsf.org/.



Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-23 Thread Thomas S. Dye
Aloha all,

Bastien b...@altern.org writes:

 Drew Adams drew.ad...@oracle.com writes:

 Dunno what that means.  It's not a criminal offense, no.

 Let me quote the manual again:

   * Sequences consisting of `C-c' followed by any other punctuation
 character are allocated for minor modes.  Using them in a major
 mode is not absolutely prohibited, but if you do that, the major
 mode binding may be shadowed from time to time by minor modes.

 That's pretty clear to me.

 _You_ suggested (above) that this should be reported as an
 Emacs bug.  But you also don't want to push for it to be
 fixed or report it, yourself.  So be it.

 I suggested that *you* report it as a bug if you think it's a bug.
 I don't think it is, it's that simple.

I just checked the Org mode manual and found that it has several entries
that consist of `C-c' followed by a punctuation character.

In my quick check (at the boarding gate for an airline flight) I didn't
find a note that these sequences might properly be shadowed by a minor
mode. 

Perhaps a note in the manual would be useful?

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] How not to show repetitive tasks in the TODO items of agenda view

2014-01-23 Thread Pete Ley
 The problem is that all the birthdays and repetitive tasks are cluttering my
 view in agenda TODO items (C-c a t).

 Is it possible to make these items show up only in the agenda view (C-c a a)
 and not in the TODO items list (C-c a t)

You could try define a custom agenda command to show all TODO items
except those with deadlines.

(setq org-agenda-custom-commands
  '((t TODOs without deadlines alltodo 
 ((org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline))

Try that for a start.

Pete



Re: [O] best way of customizing generated css to match bootstrap css

2014-01-23 Thread Peter Salazar
Here you go.
https://github.com/petersalazar/org-tocify

Again, it's not very bootstrapish aside from Toficy, which uses Bootstrap
colors and fonts.

That said, I have found using Tocify's auto-generated dynamic table of
contents quite helpful.

Tocify is by Greg Franco and is here:
http://gregfranko.com/jquery.tocify.js/





On Wed, Jan 22, 2014 at 4:17 PM, Mehul Sanghvi mehul.sang...@gmail.comwrote:

 Peter,

  Do you have an example of an org file in which you use it ?


 cheers,

mehul



 On Wed, Jan 22, 2014 at 3:41 PM, Peter Salazar cycleofs...@gmail.comwrote:

 I've had success exporting org to HTML and using it with
 http://gregfranko.com/jquery.tocify.js/ - which automatically generates
 a dynamically updating table of contents based on HTML headings and uses a
 Bootstrap theme and Bootstrap CSS.



 On Wed, Jan 22, 2014 at 3:35 PM, Mehul Sanghvi 
 mehul.sang...@gmail.comwrote:

 On Sat, Apr 6, 2013 at 5:37 AM, Marc Seibert o...@foogu.de wrote:

 Hi,

 After using jekyll and o-blog a while I just fiddled around more in
 depth with org-publishing.
 I must say it is starting to convince me to stop using to wrapp my org
 generated html files with a wrapper like jekyll etc.
 Org-publishing seems to have all I need to do it directly.

 But I need an advice how to get better integration with twitter
 bootstrap css which I realy like.
 I know there is HTML_CONTAINER_CLASS etc. but I don't want to define
 the class and the id once for every heading, table  etc.
 What would be the best option for setting this globally?
 Should I edit org-htmlize.el or something like this or is there a way
 of defining the different class names with an easier way?

 Regards
 Marc Seibert



 I find myself in the same situation, having gone through both o-blog and
 jekyll previously.  Were you able to find a solution ?
 What was it ?  Is there anyone using anything else than the CSS that
 ogr-mode uses ?



 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com





 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com



[O] making static mathjax work

2014-01-23 Thread Rustom Mody
Ive been trying to make the staticmathjax (in contrib) work
It appears I have a number of xulrunners -- output with -v:

Mozilla XULRunner 17.0.10 - 20131030234958
Mozilla XULRunner 24.2.0 - 20131215094009
Mozilla XULRunner 1.9b3pre - 2007122108

The last seems to run without doing anything
The other two give version mismatch issues

Does anyone have a current recipe to make it work?

Perhaps not relevant since the static mathjax stuff is independent of emacs
However just in case :-)

emacs 24.3.1 and 23.4.1
org 8.2.5e
On Debian testing

Thanks
Rusi



[O] Changing key-binding?

2014-01-23 Thread Sharon Kimble
How can I change the key-binding for correcting spelling with flyspell
and ispell from MIDDLE-click, which I find very awkward and difficult
to do, to an ergonomically better R-CLICK?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, emacs 24.3.50.1
Registered Linux user 561944


signature.asc
Description: PGP signature


[O] LaTeX export: list with non-optional argument

2014-01-23 Thread Andreas Leha
Hi all,

How can a pass a non-optional argument to a special list in LaTeX
export?

The 'currvita' LaTeX package comes with the environment 'cvlist'.  This
cvlist is to be used like this:

--8---cut here---start-8---
\begin{cvlist}{Personal Information}
  \item[Date of Birth] 01.01.2014
  \item[Place of Birth] Berlin
  \item[Nationality] German
\end{cvlist}
--8---cut here---end---8---

So, it has the title of the list as argument.  How would I create such
list from Org mode?

For that case it seems to be a little inconvenient that Org does
surround any given :options with '[ ... ]' automatically, because the
closest I get with a pure Org mode solution is

--8---cut here---start-8---
\begin{cvlist}[{Personal Information}]
\item [Date of Birth]  01.01.2014
\item [Place of Birth] Berlin
\item [Nationality]German
\end{cvlist}
--8---cut here---end---8---

produced by this Org snippet:

--8---cut here---start-8---
#+ATTR_LATEX: :environment cvlist :options {Personal Information}
- [Date of Birth]  01.01.2014
- [Place of Birth] Berlin
- [Nationality]German
--8---cut here---end---8---


Well, I am aware of two obvious solutions:
1. just include the LaTeX code (inside #+begin_latex ... #+end_latex)
2. define my own environment 'mycvlist' that translates between Org and
   'cvlist' and that takes the title as optional argument:
   \newenvironment{mycvlist}[1][]{\begin{cvlist}{#1}}{\end{cvlist}}



And I will happily go with the second solution.  Just wanted to ask,
whether that definition of mycvlist is necessary or whether I miss
something here.

Regards,
Andreas