[O] lots of CLOCK lines displayed when opening a TODO

2015-03-04 Thread Rainer Stengele
Hi!

I have lots of weekly reoccuring meetings and do collect the clocked time for 
each meeting.
After a while I have lots of CLOCK lines. Opening the TODO shows all the CLOCK 
lines shown, but my focus is on text below the CLOCK lines.
I started to use multiple LOGBOOK blocks in order to hide older CLOCK lines. 
Seems to work fine with clocking etc.
My requirement would be to only open the first LOGBOOK block when opening the 
headline (TODO).
That way I could hide older entries from using screen space and instead see the 
text below immediately.

Anybody else uses multiple LOGBOOK blocks that way? Other ideas how to work?
Any chance to get this regarded as an enhancement idea?

Thank you.
Regards, Rainer


* TODO [#A] Weekly Services - Action Items
:LOGBOOK:
CLOCK: [2015-03-04 Mi 10:15]--[2015-03-04 Mi 11:30] =  1:15
CLOCK: [2015-03-02 Mo 11:00]--[2015-03-02 Mo 12:15] =  1:15
:END:
:LOGBOOK:
CLOCK: [2015-02-25 Mi 10:00]--[2015-02-25 Mi 11:00] =  1:00
CLOCK: [2015-02-16 Mo 10:00]--[2015-02-16 Mo 11:15] =  1:15
CLOCK: [2015-02-06 Fr 09:30]--[2015-02-06 Fr 09:45] =  0:15
CLOCK: [2015-02-06 Fr 10:00]--[2015-02-06 Fr 11:00] =  1:00
CLOCK: [2015-01-23 Fr 13:45]--[2015-01-23 Fr 14:00] =  0:15
CLOCK: [2015-01-22 Do 14:30]--[2015-01-22 Do 14:45] =  0:15
CLOCK: [2015-01-22 Do 13:45]--[2015-01-22 Do 14:00] =  0:15
CLOCK: [2015-01-21 Mi 09:45]--[2015-01-21 Mi 10:45] =  1:00
CLOCK: [2015-01-20 Di 09:45]--[2015-01-20 Di 10:00] =  0:15
CLOCK: [2015-01-19 Mo 16:30]--[2015-01-19 Mo 16:45] =  0:15
CLOCK: [2015-01-19 Mo 13:15]--[2015-01-19 Mo 15:00] =  1:45
CLOCK: [2015-01-19 Mo 10:00]--[2015-01-19 Mo 11:15] =  1:15
CLOCK: [2014-12-15 Mo 10:00]--[2014-12-15 Mo 10:30] =  0:30
CLOCK: [2014-12-03 Mi 10:30]--[2014-12-03 Mi 11:15] =  0:45
CLOCK: [2014-12-01 Mo 09:45]--[2014-12-01 Mo 10:45] =  1:00
CLOCK: [2014-11-03 Mo 10:00]--[2014-11-03 Mo 11:00] =  1:00
CLOCK: [2014-11-10 Mo 09:45]--[2014-11-10 Mo 10:45] =  1:00
CLOCK: [2014-11-19 Mi 10:30]--[2014-11-19 Mi 11:15] =  0:45
CLOCK: [2014-11-24 Mo 10:00]--[2014-11-24 Mo 11:00] =  1:00
CLOCK: [2014-11-25 Di 08:00]--[2014-11-25 Di 10:45] =  2:45
:END:

- text I would like to see without having to scroll over all the CLOCK lines




Re: [O] Missing org-mode manual page: Validating OpenDocument XML

2015-03-04 Thread Vaidheeswaran C

In your init.el search for undo-tree and remove it (temporarily) Or do
M-x list-packages and uninstall the undo-tree elpa package.

loext:contextual-spacing comes from your styles file.  Find out where
the style file comes from.

If you are using Org package from non-GNU repositories, I would
strongly recommend that you install from official GNU repositories.
i.e., C-h v package-archives and remove all the non-GNU or non-Orgmode
repos.



On Wednesday 04 March 2015 07:07 PM, Will Monroe wrote:
 Thanks so much for your reply!  I think I'm getting closer to
 understanding what's happening.
 
 On 03/03/2015 10:27 PM, Vaidheeswaran C wrote:
 I am not sure what is happening.  Some suggestions:

 1. C-h v temporary-file-directory.  Check this variable, particularly
 if your are on Windows machine.

 2. Load Emacs without your custom settings.

 a) emacs -Q -L /path/to/org/library

(`-L' option not needed if org comes from your Emacs
installation.)

 b) Once Emacs is loaded, do

M-x load-library ox-odt

Note where the styles and schema files come from.
 
 After following these instructions, I got the following results in Message:
 
 ,
 | For information about GNU Emacs and the GNU system, type C-h C-a.
 | Loading ox-odt...
 | Debug (ox-odt): Searching for OpenDocument styles files...
 | Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times]
 | Debug (ox-odt): Trying /home/will/.emacs.d/etc/styles/...
 | Debug (ox-odt): Trying
 /home/will/.emacs.d/elpa/org-20150223/etc/styles/...
 | Debug (ox-odt): Using styles under
 /home/will/.emacs.d/elpa/org-20150223/etc/styles/
 | Debug (ox-odt): Searching for OpenDocument schema files...
 | Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
 | Debug (ox-odt): No OpenDocument schema files installed
 | Loading ox-odt...done
 `
 
 These style files are the same ones I've used in prior exports in which
 I've seen the errors that I reported in my earlier emails.  I note the
 absence of OpenDocument schema files. As I understand it, they're aren't
 essential for the export to ODT process but are used for troubleshooting
 instead.  Perhaps I've misunderstood that though.
 
 c) Proceed with export
 
 I opened the same .org file that I'd had trouble exporting and used `C-c
 o O' to invoke export to ODT and then to prompt the file to be opened in
 LibreOffice Writer 4.2.7.2.  It opened without any of the problems I'd
 seen previously.  The Messages output is below.
 
 ,
 | LaTeX to MathML converter not available.
 | Formatting LaTeX using verbatim
 | Embedding /home/will/Dropbox/org/panopto-create-recording.png as
 Images/0001.png...
 | Wrote /tmp/odt-3818xsy/meta.xml
 | Using vacuous schema [2 times]
 | Saving file /tmp/odt-3818xsy/styles.xml...
 | Wrote /tmp/odt-3818xsy/styles.xml
 | Using vacuous schema
 | Wrote /tmp/odt-3818xsy/mimetype
 | Using vacuous schema
 | Saving file /tmp/odt-3818xsy/META-INF/manifest.xml...
 | Wrote /tmp/odt-3818xsy/META-INF/manifest.xml
 | Saving file /tmp/odt-3818xsy/content.xml...
 | Wrote /tmp/odt-3818xsy/content.xml
 | (No changes need to be saved)
 | Creating ODT file...
 | Running zip -mX0 work.odt mimetype
 | Running zip -rmTq work.odt .
 | Created /home/will/Dropbox/org/work.odt
 | Parsing archive file...done.
 | Running soffice --nologo --writer /home/will/Dropbox/org/work.odt...done
 `
 
 I noted that none of the undo-tree duplicate xml files that were cited
 as errors in the OpenDocument validator showed up.
 
 3.  I will focus on XML errors like loext:contextual-spacing etc.

  The style file used by the exporter comes from `OrgOdtStyles.xml'
  (Check messages buffer for where this file comes from).  This file
  has no such attributes.

  Which version of LibreOffice you are using?  Where did you get
  style files from?  Are you using #+ODT_STYLES_FILE option etc
 
 I'm using LibreOffice 4.2.7.2.  Although I've used style options--I
 think I just had them listed as #+OPTIONS--I removed them in earlier
 tests to see if they were causing problems.
 
 After running this test, I tried it out again with my usual
 configuration.  I got the same LibreOffice input/output errors and saw
 this in Messages:
 
 ,
 | Formatting LaTeX using verbatim
 | Embedding /home/will/Dropbox/org/panopto-create-recording.png as
 Images/0001.png...
 | Wrote /tmp/odt-37886-H/meta.xml
 | Using vacuous schema
 | Local Ispell dictionary set to american
 | Using vacuous schema
 | Local Ispell dictionary set to american
 | Saving file /tmp/odt-37886-H/styles.xml...
 | Wrote /tmp/odt-37886-H/.styles.xml.~undo-tree~
 | Wrote /tmp/odt-37886-H/styles.xml
 | Using vacuous schema
 | Local Ispell dictionary set to american
 | Wrote /tmp/odt-37886-H/mimetype
 | Using vacuous schema
 | Local Ispell dictionary set to american
 | Saving file /tmp/odt-37886-H/META-INF/manifest.xml...
 | Wrote /tmp/odt-37886-H/META-INF/.manifest.xml.~undo-tree~
 | Wrote 

Re: [O] org.css for mobile-friendly

2015-03-04 Thread Rasmus
OSiUX xu...@osiux.com.ar writes:

 Testing my blog [0] (org-mode publish) in
 mobile-friendly [1] obtain bad result. :(

 Same result for orgmode.org, maybe somebody have
 better CSS for org-mode export?

 thanks!

 [0] http://osiux.com
 [1] https://www.google.com/webmasters/tools/mobile-friendly/?url=orgmode.org

Did you try to add viewport?  E.g.:

meta name=viewport content=width=device-width, initial-scale=1

—Rasmus

-- 
This is the kind of tedious nonsense up with which I will not put




Re: [O] Citation syntax: a revised proposal

2015-03-04 Thread Richard Lawrence
Avram Lyon ajl...@gmail.com writes:

 I know that citeproc-js has tried to be engine-agnostic, so perhaps it can
 work with Guile. 

It looks like I was too quick.  Although the homepage makes it seem like
Guile supports JS, the manual says:

ECMAScript was not the first non-Schemey language implemented by Guile,
but it was the first implemented for Guile's bytecode compiler. The goal
was to support ECMAScript version 3.1, a relatively small language, but
the implementor was completely irresponsible and got distracted by other
things before finishing the standard library, and even some bits of the
syntax. So, ECMAScript does deserve a mention in the manual, but it
doesn't deserve an endorsement until its implementation is completed,
perhaps by some more responsible hacker.

https://www.gnu.org/software/guile/manual/html_node/ECMAScript.html#ECMAScript

...and I can't even get my local Guile to interpret var x = 2;, though
I doubt that is entirely Guile's fault.  So it looks to me like Guile's
JS support is not quite mature enough to run citeproc-js, though I'd be
happy to be wrong about this.

 If not, you may also want to look at citeproc-hs and citeproc-rb, both
 of which are quite complete (they, I believe, pass the entire test
 suite) and which may be easier to bring in as dependencies (JS engines
 are still a rarer dependency than Ruby or Haskell).

This is the citeproc-ruby you have in mind, right?

https://github.com/inukshuk/citeproc

(I found another under the name `citeproc-rb', but it doesn't look
nearly as complete.)

Both the Ruby citeproc and citeproc-hs seem to have support for reading
BibTeX databases.

Anyway, maybe a good intermediate step would be translating citation
objects and Org-bibtex data to JSON.  It looks like citeproc-hs and
citeproc-js both accept JSON as input formats (though I do not know if
these formats are compatible...).  The Ruby citeproc implementation
speaks some amount of JSON (though mostly as an output format, I think),
and I guess it could probably be taught to read JSON pretty easily.
This needs some more investigation, but if Org can produce a JSON
representations of citation data, it seems like it could be made to work
with several citeproc implementations that look reasonably complete.

Best,
Richard



[O] clocktables include \emsp - how to get rid of that?

2015-03-04 Thread Rainer Stengele
Hi,

I am getting \emsp in my clocktable reports.
I use

#+BEGIN: clocktable :maxlevel 4 :fileskip0 t :tcolumns 0 :level nil :scope 
agenda-with-archives :timestamp nil :block 2015-03 :step day :link t  
:stepskip0 t
#+END:

to create these clocktable


Daily report: [2015-03-02 Mo]
| File  | Headline  
   |   Time |
|---+--+|
|   | ALL *Total time*  
   | *9:00* |
|---+--+|
| Projectmanagement.org | *File time*   
   | *2:45* |
|   | \emsp [[..][Project Managament: Weekly meetings 
etc.]]   |   2:45 |
|   | \emsp\emsp [[..][TODO *00 - Project Managament -...]] 
   |   2:45 |

Anybody has an idea where this comes from and how to get rid of it?

Thank you.
Regards, Rainer




Re: [O] autoloads not working correctly for org-table.el?

2015-03-04 Thread Eric S Fraga
On Wednesday,  4 Mar 2015 at 17:28, Eric Abrahamsen wrote:

[...]

 I'm still seeing an issue where, if I start right off typing a big
 paragraph of text at the top of the message (no salutation or anything),
 all the lines *after* the first line are indented by one tab. Subsequent
 paragraphs are unaffected.

Hi Eric,

I had this problem for a long time.  It disappeared a some time ago now
and I have no idea why.  However, while I had the problem, I trained
myself to always start an email (that was not a response like this one)
with some form of salutation!  More polite as well as avoiding the bug
:)

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-820-gd92ef9



[O] WIP: New Citation Syntax, ODT JabRef

2015-03-04 Thread Vaidheeswaran C

This is a follow up to this message:

  http://lists.gnu.org/archive/html/emacs-orgmode/2015-03/msg00011.html



The prototype code that integrates the new Citation Syntax, ODT
exporter and JabRef citation manager is available in my personal
repo. (See http://repo.or.cz/w/org-mode/org-cv.git/)

Checkout URLs are:

  git://repo.or.cz/org-mode/org-cv.git
  http://repo.or.cz/org-mode/org-cv.git

Changes are available in master branch.  M-x find-library ox-jabref.el
and read the documentation there.



The attached files are representative of what is possible right now.

Following files are produced by varying the `:style' attribute of
#+BIBLIOGRAPHY line.

- cite-numeric.odt
- cite-chicago-full-note.odt
- cite-chicago-author-date.odt

The following file is

- cite-unfiltered-bibliography-with-abstract.odt

produced by modifying `org-jabref-citation-styles' as documented in
ox-jabref.el (and as seen in attached .emacs.)

cite.org uses the following biblatex-examples.bib:


http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib



There is no support for parenthetical citation or multikeys as yet.  I
will flesh these out as soon as I find some time.



For a beginner like me, citaitons are indeed very confusing.  I have
found the following documents very useful:

(a) http://www.dickimaw-books.com/latex/thesis/index.html

(b) Chicago_export_filters.pdf from
http://jabref.sourceforge.net/resources.php#Chicago_Manual



Nicolas, if you are seeing this message,

(1) I want APIs for

(a) `org-odt--collect-cite-keys' (see ox-odt.el)
(b) `org-jabref--read-bibliography-attribute' and
`org-jabref--get-citation-style'.

(2) How do I specify multiple keys on the same `citation' object?



I have no specific inputs in so far as the new citation syntax is
concerned.  I have shared some of my opinions (as a user) here.

  http://lists.gnu.org/archive/html/emacs-orgmode/2015-02/msg00783.html

TLDR of my argument is: A kindergartener (like me) producing his first
ever work that references other work should be able to get running
with minimal hassles.  I hope ox-jabref.el will cater to this low
end of the segment.



Btw, my copyright assignment request is in transit.


cite.org
Description: Lotus Organizer


cite-chicago-author-date.odt
Description: application/vnd.oasis.opendocument.text


cite-chicago-full-note.odt
Description: application/vnd.oasis.opendocument.text


cite-numeric.odt
Description: application/vnd.oasis.opendocument.text


cite-unfiltered-bibliography-with-abstract.odt
Description: application/vnd.oasis.opendocument.text
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(org-jabref-citation-styles
   (quote
((odt
  (Chicago (author-date) :in-text
   (:jabref-format chicago.ODF.text :formatter Simple (but strip 
braces))
   :bibliography
   (:jabref-format chicago.ODF.abstract :dont-filter t :formatter 
Bibliography))
  (Chicago (full-note) :in-text
   (:jabref-format
(chicago.ODF.footend . chicago.ODF.footend.short)
:formatter Footnote)
   :bibliography
   (:jabref-format chicago.ODF.biblio :formatter Bibliography))
  (Numeric :in-text
   (:jabref-format Numeric :formatter Simple)
   :bibliography
   (:jabref-format chicago.ODF.reference :formatter Bibliography 
(Numbered)))
 '(org-jabref-command
   (quote
(java -jar /home/cvaidheeswaran/Downloads/JabRef-2.9.2.jar -n 
true
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )


[O] Citation syntax: Underscore MUST(?) be allowed in cite keys?

2015-03-04 Thread Vaidheeswaran C
1. Visit http://www.amazon.in/How-Read-Book-Touchstone-book/dp/0671212095
2. Add it to Zotero.
3. Export My Library to BibTeX format.
4. The attached file -- My Library 1.bib -- is what I get.

When I import the above .bib file to JabRef GUI, the keys that are
reported are \cite{adler_how_1972},
\cite{center_for_history_and_new_media_zotero_}.

I am a novice comes to citation.  I had a vague impression by that `_'
is not allowed in cite keys.  If we go this way, then the above
workflow will be a nightmare.


@misc{center_for_history_and_new_media_zotero_,
	title = {Zotero {Quick} {Start} {Guide}},
	url = {http://zotero.org/support/quick_start_guide},
	author = {{Center for History and New Media}},
	annote = {Welcome to Zotero!View the Quick Start Guide to learn how to begin collecting, managing, citing, and sharing your research sources.Thanks for installing Zotero.}
}

@book{adler_how_1972,
	address = {New York},
	edition = {Revised edition edition},
	title = {How to {Read} a {Book}},
	isbn = {9780671212094},
	abstract = {With half a million copies in print, How to Read a Book is the best and most successful guide to reading comprehension for the general reader, completely rewritten and updated with new material.Originally published in 1940, this book is a rare phenomenon, a living classic that introduces and elucidates the various levels of reading and how to achieve them—from elementary reading, through systematic skimming and inspectional reading, to speed reading. Readers will learn when and how to “judge a book by its cover,” and also how to X-ray it, read critically, and extract the author’s message from the text.Also included is instruction in the different techniques that work best for reading particular genres, such as practical books, imaginative literature, plays, poetry, history, science and mathematics, philosophy and social science works.Finally, the authors offer a recommended reading list and supply reading tests you can use measure your own progress in reading skills, comprehension, and speed.},
	language = {English},
	publisher = {Simon \ Schuster},
	author = {Adler, Mortimer J. and Doren, Charles Van},
	month = aug,
	year = {1972}
}

Re: [O] clocktables include \emsp - how to get rid of that?

2015-03-04 Thread Tory S. Anderson
This effect has been discussed here: 
http://comments.gmane.org/gmane.emacs.orgmode/90292

It exports nicely, so I believe that's the reason it was made this way. You can 
replace them with spaces using `org-toggle-pretty-entities`, although it will 
throw off the width of your table. Otherwise you can edit the code that inserts 
them, which is mentioned in the linked thread.

- Tory

Rainer Stengele rainer.steng...@online.de writes:

 Hi,

 I am getting \emsp in my clocktable reports.
 I use

 #+BEGIN: clocktable :maxlevel 4 :fileskip0 t :tcolumns 0 :level nil :scope 
 agenda-with-archives :timestamp nil :block 2015-03 :step day :link t  
 :stepskip0 t
 #+END:

 to create these clocktable


 Daily report: [2015-03-02 Mo]
 | File  | Headline
  |   Time |
 |---+--+|
 |   | ALL *Total time*
  | *9:00* |
 |---+--+|
 | Projectmanagement.org | *File time* 
  | *2:45* |
 |   | \emsp [[..][Project Managament: Weekly meetings 
 etc.]]   |   2:45 |
 |   | \emsp\emsp [[..][TODO *00 - Project Managament 
 -...]]|   2:45 |

 Anybody has an idea where this comes from and how to get rid of it?

 Thank you.
 Regards, Rainer



Re: [O] WIP: New Citation Syntax, ODT JabRef

2015-03-04 Thread Rasmus
Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes:

 Btw, my copyright assignment request is in transit.

Great!  I was somehow under the impression that you retracted your
copyright a while back. . .

Thanks anyway,
Rasmus

-- 
The Kids call him Billy the Saint




Re: [O] clocktables include \emsp - how to get rid of that?

2015-03-04 Thread J. David Boyd
Rainer Stengele rainer.steng...@online.de writes:

 Hi,

 I am getting \emsp in my clocktable reports.
 I use

 #+BEGIN: clocktable :maxlevel 4 :fileskip0 t :tcolumns 0 :level nil :scope 
 agenda-with-archives :timestamp nil :block 2015-03 :step day :link t  
 :stepskip0 t
 #+END:

 to create these clocktable


 Daily report: [2015-03-02 Mo]
 | File  | Headline
  |   Time |
 |---+--+|
 |   | ALL *Total time*
  | *9:00* |
 |---+--+|
 | Projectmanagement.org | *File time* 
  | *2:45* |
 |   | \emsp [[..][Project Managament: Weekly meetings 
 etc.]]   |   2:45 |
 |   | \emsp\emsp [[..][TODO *00 - Project Managament 
 -...]]|   2:45 |

 Anybody has an idea where this comes from and how to get rid of it?

 Thank you.
 Regards, Rainer

This was changed a while back so that the clocktable exports correctly.

I was fighting this for a while by modifying the source code every release,
but then I gave up.  

If you look in org-clock.el, you'll see what causes it.

This is a bit of a diff I have that shows what it now, and what it used to be 
like.


 (let ((str  ))
   (dotimes (k (1- level) str)
   (setq str (concat \\emsp str))
---
 (let ((str \\__))
   (while ( level 2)
   (setq level (1- level)
 str (concat str __)))
   (concat str  
 

Hope this helps!

Dave





[O] Citation syntax: Underscore MUST(?) be allowed in cite keys?

2015-03-04 Thread Vaidheeswaran C
1. Visit http://www.amazon.in/How-Read-Book-Touchstone-book/dp/0671212095
2. Add it to Zotero.
3. Export My Library to BibTeX format.
4. The attached file -- My Library 1.bib -- is what I get.

When I import the above .bib file to JabRef GUI, the keys that are
reported are \cite{adler_how_1972},
\cite{center_for_history_and_new_media_zotero_}.

I am a novice comes to citation.  I had a vague impression by that `_'
is not allowed in cite keys.  If we go this way, then the above
workflow will be a nightmare.


@misc{center_for_history_and_new_media_zotero_,
	title = {Zotero {Quick} {Start} {Guide}},
	url = {http://zotero.org/support/quick_start_guide},
	author = {{Center for History and New Media}},
	annote = {Welcome to Zotero!View the Quick Start Guide to learn how to begin collecting, managing, citing, and sharing your research sources.Thanks for installing Zotero.}
}

@book{adler_how_1972,
	address = {New York},
	edition = {Revised edition edition},
	title = {How to {Read} a {Book}},
	isbn = {9780671212094},
	abstract = {With half a million copies in print, How to Read a Book is the best and most successful guide to reading comprehension for the general reader, completely rewritten and updated with new material.Originally published in 1940, this book is a rare phenomenon, a living classic that introduces and elucidates the various levels of reading and how to achieve them—from elementary reading, through systematic skimming and inspectional reading, to speed reading. Readers will learn when and how to “judge a book by its cover,” and also how to X-ray it, read critically, and extract the author’s message from the text.Also included is instruction in the different techniques that work best for reading particular genres, such as practical books, imaginative literature, plays, poetry, history, science and mathematics, philosophy and social science works.Finally, the authors offer a recommended reading list and supply reading tests you can use measure your own progress in reading skills, comprehension, and speed.},
	language = {English},
	publisher = {Simon \ Schuster},
	author = {Adler, Mortimer J. and Doren, Charles Van},
	month = aug,
	year = {1972}
}

Re: [O] Embedding diagrams in Org

2015-03-04 Thread Marcin Borkowski
e
On 2015-02-18, at 13:34, Marcin Borkowski mb...@wmi.amu.edu.pl wrote:

 Hello all,

 I need to embed some diagrams (graphs of functions, for instance, or
 trees) in an Org file.  Any suggestions on how to do it?  In case of
 ditaa, I can use a source block and the results line, and see the
 image with C-c C-x C-v.  Can I do a similar thing with Asymptote?  How
 hard/time-consuming would it be to add support e.g. for tikz or other
 such tools?

 Best,

While the answers I got were helpful, and thank you all for them, my
curiosity jumped two levels up when I saw the code for
org-latex--inline-image in ox-latex today.  It seems that there are
special provisions for tikz pictures.  However, the code does seem to be
a bit weird: for instance, the tikz code seems to be wrapped in the
tikzpicture environment depending on whether any /options/ are given or
not, which seems an odd choice to me.

Did anyone use the ability to inline tikz pictures (i.e., pictures in
a file with =tikz= or =pgf= extension)?  If so, could you share some
examples, or at least success stories?

Also, org-latex--inline-image seems to provide for including svg images,
but I could not find a \usepackage{svg}, nor a provision for enabling
shell-escape (like in the case of minted).  Again: any success stories
or is there a bug?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] Citation syntax: Underscore MUST(?) be allowed in cite keys?

2015-03-04 Thread Vaidheeswaran C
On Thursday 05 March 2015 12:00 AM, Rasmus wrote:
 Hi,
 
 Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes:
 
 1. Visit http://www.amazon.in/How-Read-Book-Touchstone-book/dp/0671212095
 2. Add it to Zotero.
 3. Export My Library to BibTeX format.
 4. The attached file -- My Library 1.bib -- is what I get.

 When I import the above .bib file to JabRef GUI, the keys that are
 reported are \cite{adler_how_1972},
 \cite{center_for_history_and_new_media_zotero_}.

 I am a novice comes to citation.  I had a vague impression by that `_'
 is not allowed in cite keys.  If we go this way, then the above
 workflow will be a nightmare.
 
 Underscore is fine.  Here's the regexp that bibtex.el uses for keys:
 
\\([][[:alnum:].:;?!`'/*@+|()_^$-]+\\)
 
 See bibtex-entry-head.

I am complaining about how org-element.el behaves.

This [cite:@adler_how_1972] becomes this:

(citation
 (:key
  #(adler 0 5
(keymap
 (keymap
  (follow-link . mouse-face)
  (mouse-3 . org-find-file-at-mouse)
  (mouse-2 . org-open-at-mouse))
 face org-link mouse-face highlight htmlize-link
 (:uri cite:@adler_how_1972)
 fontified t))
  :parentheticalp nil :begin 192 :post-blank 0 :end 214 :suffix
  (#4=(underline
   (:begin 204 :end 209 :contents-begin 205 :contents-end 208
:post-blank 0 :parent #3#)
   #(how 0 3
 (:parent #4#)))
  #(1972 0 4
(:parent #3#)))
  :parent #5#))

 Jabref is pretty solid (though I'm not at fan of how handles encoding) and
 will not produce wrong keys.
 
 Cheers,
 Rasmus
 





Re: [O] Citation syntax: Underscore MUST(?) be allowed in cite keys?

2015-03-04 Thread Vaidheeswaran C
On Thursday 05 March 2015 12:31 AM, Rasmus wrote:
 Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes:
 
 I am complaining about how org-element.el behaves.

 This [cite:@adler_how_1972] becomes this:
 
 Oh, you are right.  _ is only allowed as the first character, as you
 probably saw.  See http://permalink.gmane.org/gmane.emacs.orgmode/95609.
 I would tend to agree that this is problematic, but _ is itself
 problematic since it's the subscription character...  From
 http://permalink.gmane.org/gmane.emacs.orgmode/95631 I gather that key
 support is modeled after Pandoc, but AFAIK Pandoc *does* support _ as part
 of the key cf. http://pandoc.org/README.html#citations.

My refrain on Citation syntax thread has always been:

The 3rd-Party Citation Tools are *very much* part of the what is
being proposed.  Has someone built a prototype that _actually_
interfaces with these citation tools to understand what the
practical constraints are?

The workflow question I raised is very much in tune with the above
refrain.

 So yeah, I agree with you.
 
 –Rasmus
 




Re: [O] Embedding diagrams in Org

2015-03-04 Thread Rasmus
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 Did anyone use the ability to inline tikz pictures (i.e., pictures in
 a file with =tikz= or =pgf= extension)?  If so, could you share some
 examples, or at least success stories?

 Also, org-latex--inline-image seems to provide for including svg images,
 but I could not find a \usepackage{svg}, nor a provision for enabling
 shell-escape (like in the case of minted).  Again: any success stories
 or is there a bug?

The following seem to work with pdflatex.  You need svg and tikz from
CTAN.  I use tikz frequently via matplotlib in Python and tikzDevice in R.

#+CAPTION: a svg drawing
[[file:circle.svg]]

#+CAPTION: a tikz drawing 
[[file:fig.tikz]]

* assets   :noexport:
#+BEGIN_SRC emacs-lisp
(org-babel-tangle)
#+END_SRC

#+RESULTS:
| fig.tikz | circle.svg |

#+LATEX_HEADER: \usepackage{tikz}
#+BEGIN_SRC latex :tangle fig.tikz
  \begin{tikzpicture}
  \node [draw=red,circle] at (0,0) {X};
  \end{tikzpicture}
#+END_SRC

#+LATEX_HEADER: \usepackage{svg}
#+BEGIN_SRC html :tangle circle.svg
  svg xmlns=http://www.w3.org/2000/svg; width=200 height=200
circle r=100 cx=100 cy=100/circle
  /svg
#+END_SRC


-- 
Got mashed potatoes. Ain't got no T-Bone. No T-Bone




Re: [O] Citation syntax: Underscore MUST(?) be allowed in cite keys?

2015-03-04 Thread Christian Moe

Also, Zotero items are typically identified by [library-ID]_[item-key]
hashes with an underscore separator.

Christian

Rasmus writes:

 Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes:

 I am complaining about how org-element.el behaves.

 This [cite:@adler_how_1972] becomes this:

 Oh, you are right.  _ is only allowed as the first character, as you
 probably saw.  See http://permalink.gmane.org/gmane.emacs.orgmode/95609.
 I would tend to agree that this is problematic, but _ is itself
 problematic since it's the subscription character...  From
 http://permalink.gmane.org/gmane.emacs.orgmode/95631 I gather that key
 support is modeled after Pandoc, but AFAIK Pandoc *does* support _ as part
 of the key cf. http://pandoc.org/README.html#citations.

 So yeah, I agree with you.

 –Rasmus




[O] Programatic Org Table Groups

2015-03-04 Thread Ken Mankoff

I'm generating Org tables via code and the =:results table= option. By the way 
the tabulate python package works great to convert Pandas DataFrames to Org 
Tables.

I can generate tables this way, but if I try to add groups, I cannot. The first 
column with the special / character seems to be stripped. Below I can print 
two //, but if I try to print one, the row is removed.

Is this a bug? Does anyone have a workaround for this?

Thanks,

  -k.
  

#+BEGIN_SRC python :results table
  import numpy as np
  val = np.arange(9)
  tab = np.append(np.array(['//','','']), val)
  return tab.reshape(4,3)
#+END_SRC
#+RESULTS:
| // |  |  |
|  0 | 1 | 2 |
|  3 | 4 | 5 |
|  6 | 7 | 8 |



Re: [O] Embedding diagrams in Org

2015-03-04 Thread Andreas Leha
Marcin Borkowski mb...@wmi.amu.edu.pl writes:
 e
 On 2015-02-18, at 13:34, Marcin Borkowski mb...@wmi.amu.edu.pl wrote:

 Hello all,

 I need to embed some diagrams (graphs of functions, for instance, or
 trees) in an Org file.  Any suggestions on how to do it?  In case of
 ditaa, I can use a source block and the results line, and see the
 image with C-c C-x C-v.  Can I do a similar thing with Asymptote?  How
 hard/time-consuming would it be to add support e.g. for tikz or other
 such tools?

 Best,

 While the answers I got were helpful, and thank you all for them, my
 curiosity jumped two levels up when I saw the code for
 org-latex--inline-image in ox-latex today.  It seems that there are
 special provisions for tikz pictures.  However, the code does seem to be
 a bit weird: for instance, the tikz code seems to be wrapped in the
 tikzpicture environment depending on whether any /options/ are given or
 not, which seems an odd choice to me.

 Did anyone use the ability to inline tikz pictures (i.e., pictures in
 a file with =tikz= or =pgf= extension)?  If so, could you share some
 examples, or at least success stories?


The example I posted earlier in this thread [1] uses the *.tikz version for
latex export.

I do not know, whether that helps, but I think the behaviour of the tikz
graphics has been decided in this thread [2].

The wrapping in tikzpicture if options are present is quite sensible, as
these options have to be presented somewhere.  Note, that it is fine to
nest tikzpicture environments.  So, the *.tikz file is basically
expected to bring its own tikzpicture environment.  If there are options
given in the org file, this is just wrapped into another tikzpicture
environment.  (If I understand the reasoning correctly, that is...)

Regards,
Andreas

 Also, org-latex--inline-image seems to provide for including svg images,
 but I could not find a \usepackage{svg}, nor a provision for enabling
 shell-escape (like in the case of minted).  Again: any success stories
 or is there a bug?





[1] http://permalink.gmane.org/gmane.emacs.orgmode/95197

[2] http://thread.gmane.org/gmane.emacs.orgmode/66900




Re: [O] Missing org-mode manual page: Validating OpenDocument XML

2015-03-04 Thread Monroe, Will

  
  
Removing undo-tree was all it took.  The export to ODT works without
any problems now.  Huzzah!

I take your point regarding care with repositories.  FWIW, the
org-mode Lisp I'm using is the one that arrives "built-in" to
Emacs.  I removed the MELPA and marmalade repositories and just have
the "gnu" and "org" (http://orgmode.org/elpa/) repositories now.

The bigger lesson from this for me as a beginner is to take greater
care with my init.el settings and to be cautious about the packages
that I install.

Thanks so much for your help!

Will

On 3/4/15 10:00 AM, Vaidheeswaran C
  wrote:


  
In your init.el search for undo-tree and remove it (temporarily) Or do
M-x list-packages and uninstall the undo-tree elpa package.

loext:contextual-spacing comes from your styles file.  Find out where
the style file comes from.

If you are using Org package from non-GNU repositories, I would
strongly recommend that you install from official GNU repositories.
i.e., C-h v package-archives and remove all the non-GNU or non-Orgmode
repos.



On Wednesday 04 March 2015 07:07 PM, Will Monroe wrote:

  
Thanks so much for your reply!  I think I'm getting closer to
understanding what's happening.

On 03/03/2015 10:27 PM, Vaidheeswaran C wrote:


  I am not sure what is happening.  Some suggestions:

1. C-h v temporary-file-directory.  Check this variable, particularly
if your are on Windows machine.

2. Load Emacs without your custom settings.

a) emacs -Q -L /path/to/org/library

   (`-L' option not needed if org comes from your Emacs
   installation.)

b) Once Emacs is loaded, do

   M-x load-library ox-odt

   Note where the styles and schema files come from.



After following these instructions, I got the following results in Message:

,
| For information about GNU Emacs and the GNU system, type C-h C-a.
| Loading ox-odt...
| Debug (ox-odt): Searching for OpenDocument styles files...
| Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times]
| Debug (ox-odt): Trying /home/will/.emacs.d/etc/styles/...
| Debug (ox-odt): Trying
/home/will/.emacs.d/elpa/org-20150223/etc/styles/...
| Debug (ox-odt): Using styles under
/home/will/.emacs.d/elpa/org-20150223/etc/styles/
| Debug (ox-odt): Searching for OpenDocument schema files...
| Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
| Debug (ox-odt): No OpenDocument schema files installed
| Loading ox-odt...done
`

These style files are the same ones I've used in prior exports in which
I've seen the errors that I reported in my earlier emails.  I note the
absence of OpenDocument schema files. As I understand it, they're aren't
essential for the export to ODT process but are used for troubleshooting
instead.  Perhaps I've misunderstood that though.



  c) Proceed with export



I opened the same .org file that I'd had trouble exporting and used `C-c
o O' to invoke export to ODT and then to prompt the file to be opened in
LibreOffice Writer 4.2.7.2.  It opened without any of the problems I'd
seen previously.  The Messages output is below.

,
| LaTeX to MathML converter not available.
| Formatting LaTeX using verbatim
| Embedding /home/will/Dropbox/org/panopto-create-recording.png as
Images/0001.png...
| Wrote /tmp/odt-3818xsy/meta.xml
| Using vacuous schema [2 times]
| Saving file /tmp/odt-3818xsy/styles.xml...
| Wrote /tmp/odt-3818xsy/styles.xml
| Using vacuous schema
| Wrote /tmp/odt-3818xsy/mimetype
| Using vacuous schema
| Saving file /tmp/odt-3818xsy/META-INF/manifest.xml...
| Wrote /tmp/odt-3818xsy/META-INF/manifest.xml
| Saving file /tmp/odt-3818xsy/content.xml...
| Wrote /tmp/odt-3818xsy/content.xml
| (No changes need to be saved)
| Creating ODT file...
| Running zip -mX0 work.odt mimetype
| Running zip -rmTq work.odt .
| Created /home/will/Dropbox/org/work.odt
| Parsing archive file...done.
| Running soffice --nologo --writer /home/will/Dropbox/org/work.odt...done
`

I noted that none of the "undo-tree" duplicate xml files that were cited
as errors in the OpenDocument validator showed up.



  3.  I will focus on XML errors like "loext:contextual-spacing" etc.

 The style file used by the exporter comes from `OrgOdtStyles.xml'
 (Check messages buffer for where this file comes from).  This file
 has no such attributes.

 Which version of LibreOffice you are using?  Where did you get
 style files from?  Are you using #+ODT_STYLES_FILE option etc



I'm using LibreOffice 4.2.7.2.  Although I've used style options--I
think I just had them listed as #+OPTIONS--I removed them in earlier
tests to see if they were causing problems.

After running this test, I tried it out again with my usual
configuration.  I got the same LibreOffice "input/output" errors and saw
this in Messages:


Re: [O] org.css for mobile-friendly

2015-03-04 Thread OSiUX
El mié, 04 mar 2015, Rasmus decía:

 OSiUX xu...@osiux.com.ar writes:
 
  Testing my blog [0] (org-mode publish) in
  mobile-friendly [1] obtain bad result. :(
 
  Same result for orgmode.org, maybe somebody have
  better CSS for org-mode export?
 
  thanks!
 
  [0] http://osiux.com
  [1] https://www.google.com/webmasters/tools/mobile-friendly/?url=orgmode.org
 
 Did you try to add viewport?  E.g.:
 
 meta name=viewport content=width=device-width, initial-scale=1

^ this meta is the begining for OK in mobile-friendly
I play with CSS for adapt images sizes.

thanks Rasmus!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] Citation syntax: Underscore MUST(?) be allowed in cite keys?

2015-03-04 Thread Rasmus
Hi,

Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes:

 1. Visit http://www.amazon.in/How-Read-Book-Touchstone-book/dp/0671212095
 2. Add it to Zotero.
 3. Export My Library to BibTeX format.
 4. The attached file -- My Library 1.bib -- is what I get.

 When I import the above .bib file to JabRef GUI, the keys that are
 reported are \cite{adler_how_1972},
 \cite{center_for_history_and_new_media_zotero_}.

 I am a novice comes to citation.  I had a vague impression by that `_'
 is not allowed in cite keys.  If we go this way, then the above
 workflow will be a nightmare.

Underscore is fine.  Here's the regexp that bibtex.el uses for keys:

   \\([][[:alnum:].:;?!`'/*@+|()_^$-]+\\)

See bibtex-entry-head.

Jabref is pretty solid (though I'm not at fan of how handles encoding) and
will not produce wrong keys.

Cheers,
Rasmus

-- 
One thing that is clear: it's all down hill from here 




Re: [O] Citation syntax: Underscore MUST(?) be allowed in cite keys?

2015-03-04 Thread Rasmus
Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes:

 I am complaining about how org-element.el behaves.

 This [cite:@adler_how_1972] becomes this:

Oh, you are right.  _ is only allowed as the first character, as you
probably saw.  See http://permalink.gmane.org/gmane.emacs.orgmode/95609.
I would tend to agree that this is problematic, but _ is itself
problematic since it's the subscription character...  From
http://permalink.gmane.org/gmane.emacs.orgmode/95631 I gather that key
support is modeled after Pandoc, but AFAIK Pandoc *does* support _ as part
of the key cf. http://pandoc.org/README.html#citations.

So yeah, I agree with you.

–Rasmus

-- 
ツ




Re: [O] agenda folding/hiding of sections?

2015-03-04 Thread Samuel Wales
the agenda also shows the tasks that have active timestamps that do
not have times.

a time, to me, is a sub-unit of a day.


On 3/4/15, Sebastien Vauban sva-n...@mygooglest.com wrote:
 Samuel Wales wrote:
 great idea, but that only toggles the grid, not the entries.

 You mean you want to remove the timed (i.e., the ones with a time
 component) entries from your agenda?  That's against the purpose of the
 agenda view, which shows you all the entries for today, this week, this
 month, etc.

 If you need that, you must make your own agenda view.

 Best regards,
   Seb

 --
 Sebastien Vauban





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

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

Denmark: free Karina Hansen NOW.



[O] Status of MobileOrg for iOS?

2015-03-04 Thread David Masterson
I had MobileOrg setup and *mostly* working, but I went away for awhile
and seem to be not how to get it to work now.  My main problem seems to
be that everytime I start to use MobileOrg, it captures a new item
whether I want it to or not.  I have it configured to use Dropbox and it
appears to work with my Emacs via org-mobile-push and org-mobile-pull.
MobileOrg itself, though, constantly captures new items and adds empty
items to the capture list.  A push/pull doesn't seem to change that.  I
guess I'm missing something.

What is the status of MobileOrg for iOS?

-- 
David Masterson
Programmer At Large




Re: [O] Status of MobileOrg for iOS?

2015-03-04 Thread Ken Mankoff
Is AutoCapture enabled in settings? Turn it off. 

  -k.

Please excuse brevity. Sent from pocket computer with tiny non-haptic feedback 
keyboard. 

 On Mar 4, 2015, at 22:11, David Masterson dsmaster...@gmail.com wrote:
 
 I had MobileOrg setup and *mostly* working, but I went away for awhile
 and seem to be not how to get it to work now.  My main problem seems to
 be that everytime I start to use MobileOrg, it captures a new item
 whether I want it to or not.  I have it configured to use Dropbox and it
 appears to work with my Emacs via org-mobile-push and org-mobile-pull.
 MobileOrg itself, though, constantly captures new items and adds empty
 items to the capture list.  A push/pull doesn't seem to change that.  I
 guess I'm missing something.
 
 What is the status of MobileOrg for iOS?
 
 -- 
 David Masterson
 Programmer At Large
 
 


Re: [O] [RFC] [PATCH] Changes to Tag groups - allow nesting and regexps

2015-03-04 Thread Gustav Wikström
Hi, and thanks for the extensive comments!

I've fixed the issues raised (IMO), and new patches are attached. I've
added a patch for documentation also.

 ,
 | #+TAGS: { group : include1 include2 }
 `

 will only allow one of the tags on any specific headline. [ ] solves
 this. Note that grouptags doesn't care if { } or [ ] is used. The only
 difference is the exclusiveness. I.e both

 ,
 | #+TAGS: [ group : include1 include2 ]
 | #+TAGS: { group : include1 include2 }
 `

 will work. With some limitations on the second example due to the way {
 } works since before.

 OK, but is it really needed? What is the point of having two tags of the
 same group (or, if we consider nested group tags, the same set of
 siblings) at the same time?

I'd say it's an unnecessary limitation if group tags have to be
exclusive on a headline. The more general case should be allowed and I
can see use-cases for it.

If you, for example, want to create a taxonomy of your tags and a part
of your taxonomy is this:

#+TAGS: [ CS : DB OS Software Versioning Programming BI ]

What reason is there for Org mode to limit me to only choosing one of
the above? Lets say I find an article on the web and want to create a
node in my org-mode repository about it. Maybe linking the article and
adding a few thoughts. The fictive article may be called the
importance of good database-design in Business intelligence. It seems
two tags of the above would fit just fine; DB  BI.

Best regards
Gustav


0001-org-Grouptags-not-unique-and-can-contain-regexp.patch
Description: Binary data


0002-org-agenda-Filtering-in-the-agenda-on-grouptags.patch
Description: Binary data


0003-org-Nesting-grouptags.patch
Description: Binary data


0004-org.texi-Complement-info-for-group-tags.patch
Description: Binary data


Re: [O] autoloads not working correctly for org-table.el?

2015-03-04 Thread Eric Abrahamsen
Eric S Fraga e.fr...@ucl.ac.uk writes:

 On Wednesday,  4 Mar 2015 at 17:28, Eric Abrahamsen wrote:

 [...]

 I'm still seeing an issue where, if I start right off typing a big
 paragraph of text at the top of the message (no salutation or anything),
 all the lines *after* the first line are indented by one tab. Subsequent
 paragraphs are unaffected.

 Hi Eric,

 I had this problem for a long time.  It disappeared a some time ago now
 and I have no idea why.  However, while I had the problem, I trained
 myself to always start an email (that was not a response like this one)
 with some form of salutation!  More polite as well as avoiding the bug
 :)

Well, sure :) I guess I'll try being politer!

I just poked around a little bit, edebugging
`org-adaptive-fill-function'. I looked at the call to
`fill-context-prefix' two-thirds of the way down. I tested this with the
last email I sent, and I see that calling `org-adaptive-fill-function'
on the first paragraph results in `fill-context-prefix' being called
with the arguments 1 (the post-affiliated arg), and 447 (the end
position of the first paragraph). The result of that call is a tab.

If I move to the second paragraph and do the same thing, the
post-affiliated arg was 447, and the end position is 475. The result of
that call was nil, which is probably what I wanted.

My value of adaptive-fill-regexp, in this case is:

\\(\\([]*[_.[:word:]]++\\|[   ]*[]|]\\)+\\)[ ]*\\|[
]*\\([-–!|#%;*·•‣⁃◦]+[ ]*\\)*

I will poke further as time allows. I don't know much about filling (and
have never understood what post-affiliated actually means), but assume
I can eventually get to the bottom of it...

E





[O] Making 'mailto' org links use gnus styles

2015-03-04 Thread Bob Newell
Aloha kakou,

I have some 'mailto' links in an org file in the expected form:

[[mailto:bobnew...@bobnewell.net]]

C-c C-o also does as expected, bringing up a blank email to the
addressee in question. But it uses 'browse-url' to do so, and just
brings up a simple mail interface, when I'd like to have my gnus
interface (with my BCCs, sig, etc.). I am able to get this to work (and
at the same time work with mailto links in w3m buffers) with the
following kludge that I threw together this afternoon (coded below and
yes, it's a horror story).

It just seems like there should be an easier/better way. Haved I failed
to find something simple?

I'm posting here as I encountered this with org-mode. Unsure if it
should (also) go in the 'gnus' groups.


(setq browse-url-mailto-function 'rjn-browse-url-mailto)

(defvar rjn-mail-addr)
(defvar rjn-mail-subject)
(defun rjn-browse-url-mailto (messy-mail-addr optional whatever)
Fix for url-browse and w3m mailto to work with gnus styles
 (setq rjn-mail-addr (replace-regexp-in-string mailto:;  messy-mail-addr))
 (string-match ?subject=.* rjn-mail-addr)
 (setq rjn-mail-subject (match-string 0 rjn-mail-addr))
 (setq rjn-mail-subject (replace-regexp-in-string ?subject=  
rjn-mail-subject))
 (setq rjn-mail-addr (replace-regexp-in-string ?subject=.*  rjn-mail-addr))
 (gnus-msg-mail rjn-mail-addr rjn-mail-subject)
)


Bob Newell
Honolulu, Hawai`i
* Sent via Ma Gnus 0.12-Emacs 24.3-Linux Mint 17 *



Re: [O] lots of CLOCK lines displayed when opening a TODO

2015-03-04 Thread Richard Lawrence
Hi Rainer,

Rainer Stengele rainer.steng...@online.de writes:

 Opening the TODO shows all the CLOCK lines shown, but my focus is on
 text below the CLOCK lines. ...
 Anybody else uses multiple LOGBOOK blocks that way? Other ideas how to work?
 Any chance to get this regarded as an enhancement idea?

I don't use multiple LOGBOOKs this way, but I guess one simple solution
would be moving the old LOGBOOK drawer *below* the text you want to see.

By the way, my LOGBOOKs don't open when I open a headline, even if there
are multiple drawers.  Do you need (any of) them to open?  If not, there
is probably a variable you can tweak in your configuration so they stay
closed, although I don't know what it is.

Best,
Richard




Re: [O] refiling with helm

2015-03-04 Thread Xebar Saram
thank you all, most of the code here was overkill for me (im very
un-technical :)) but i found the last bit of code:
 (setq org-outline-path-complete-in-steps nil)

 (require 'helm)
 (require 'helm-config)
 (helm-mode 1)

to work great for me

the only problem remaining is that it seems it does not give me refile
option for all my agenda files just a few (which i cant understand why it
chooses these). i have this in my refile config:

(setq org-goto-max-level 10)

also i have this in my config

(setq org-agenda-files '(~/org/files/agenda/))

what am i missing here?

thx alot!

z



On Wed, Mar 4, 2015 at 4:54 PM, Stefan-W. Hahn stefan.h...@s-hahn.de
wrote:

 Mail von Kyle Meyer, Sun, 01 Mar 2015 at 11:17:47 -0500:
  Stefan-W. Hahn stefan.h...@s-hahn.de wrote:

  So, given the default values, I think the only setup needed to get
  generic helm completion is
 
  (setq org-outline-path-complete-in-steps nil)
 
  (require 'helm)
  (require 'helm-config)
  (helm-mode 1)

 Yes, you are right. I tested it and it worked.

 Thanks
 Stefan

 --
 Stefan-W. Hahn  It is easy to make things.
 It is hard to make things simple.



Re: [O] Citation syntax: Underscore MUST(?) be allowed in cite keys?

2015-03-04 Thread Richard Lawrence
Hi Rasmus and all,

Rasmus ras...@gmx.us writes:

 Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes:

 I am complaining about how org-element.el behaves.

 Oh, you are right.  _ is only allowed as the first character, as you
 probably saw.  See http://permalink.gmane.org/gmane.emacs.orgmode/95609.
 I would tend to agree that this is problematic, but _ is itself
 problematic since it's the subscription character...  From
 http://permalink.gmane.org/gmane.emacs.orgmode/95631 I gather that key
 support is modeled after Pandoc, but AFAIK Pandoc *does* support _ as part
 of the key cf. http://pandoc.org/README.html#citations.

Yep, that's my bad, sorry.

Pandoc says: The citation key must begin with a letter or _, and may
contain alphanumerics, _, and internal punctuation characters
(:.#$%-+?~/).

I dropped the second underscore when I was writing the grammar.  Thanks,
Vaisheeswaran, for noticing.  Nicolas, IMO we should update the parser
to allow underscores in keys (including at the final character, I
guess).

Best,
Richard




Re: [O] autoloads not working correctly for org-table.el?

2015-03-04 Thread Eric Abrahamsen
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Hello,

 Nicolas Richard theonewiththeevill...@yahoo.fr writes:

 Eric Abrahamsen e...@ericabrahamsen.net writes:
 I don't actually know what the right thing to do is. Maybe just a
 (require 'org-table) inside `orgstruct++-mode'? Autoload doesn't seem to
 work for variables, nor is there a `declare-variable'...

 Either (require 'org-table) in org-adaptive-fill-function or applying
 the following patch should fix your problem.

 Thank you. However, I eventually applied a different patch.

I'm still seeing an issue where, if I start right off typing a big
paragraph of text at the top of the message (no salutation or anything),
all the lines *after* the first line are indented by one tab. Subsequent
paragraphs are unaffected.

Sorry, I should be hunting down these bugs myself, but it's been an ugly
couple of days writing work emails all day long, and with nearly every
one I write I am reminded of the problem...

 I don't know what is the right thing either © e.g. I have no idea why
 this function has special-casing for 'message-mode (it should perhaps
 have special casing for when orgstruct++-mode is active, instead ?)

 Ideally, we should extract all orgstruct code from Org core
 (org-footnote.el also contains code related to Message mode) and move
 it to an org-struct.el or some such library.


 Regards,




Re: [O] Escape individual underscore?

2015-03-04 Thread Sebastien Vauban
Hi Nick,

Nick Dokos wrote:
 FWIW, I always set

 #+OPTIONS: ^:{}

 in my files.

You could set the following, then:

--8---cut here---start-8---
  ;; Interpret _ and ^ for export when braces are used.
  (setq org-export-with-sub-superscripts '{})
--8---cut here---end---8---

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] agenda folding/hiding of sections?

2015-03-04 Thread Sebastien Vauban
Samuel Wales wrote:
 great idea, but that only toggles the grid, not the entries.

You mean you want to remove the timed (i.e., the ones with a time
component) entries from your agenda?  That's against the purpose of the
agenda view, which shows you all the entries for today, this week, this
month, etc.

If you need that, you must make your own agenda view.

Best regards,
  Seb

-- 
Sebastien Vauban




[O] (org-element-property :title ...) not returning a string

2015-03-04 Thread James Harkins
I've got:

(defun org-scdoc-headline (headline contents info)
  Transcode a HEADLINE element from Org to ASCII.
CONTENTS holds the contents of the headline.  INFO is a plist
holding contextual information.
  ;; Don't export footnote section, which will be handled at the end
  ;; of the template.
  (unless (org-element-property :footnote-section-p headline)
(let* ((title (org-element-property :title headline))
   (allcaps (upcase title))
... blah blah

It's choking on (upcase...) because 'title' ends up being an element object, 
and *not* the value of the :title property.

Why?

http://orgmode.org/worg/dev/org-export-reference.html is not helpful in 
answering this question.

hjh





Re: [O] refiling with helm

2015-03-04 Thread Stefan-W. Hahn
Mail von Kyle Meyer, Sun, 01 Mar 2015 at 11:17:47 -0500:
 Stefan-W. Hahn stefan.h...@s-hahn.de wrote:

 So, given the default values, I think the only setup needed to get
 generic helm completion is
 
 (setq org-outline-path-complete-in-steps nil)
 
 (require 'helm)
 (require 'helm-config)
 (helm-mode 1)

Yes, you are right. I tested it and it worked.

Thanks
Stefan

-- 
Stefan-W. Hahn  It is easy to make things.
It is hard to make things simple.



Re: [O] Missing org-mode manual page: Validating OpenDocument XML

2015-03-04 Thread Will Monroe
Thanks so much for your reply!  I think I'm getting closer to 
understanding what's happening.


On 03/03/2015 10:27 PM, Vaidheeswaran C wrote:

I am not sure what is happening.  Some suggestions:

1. C-h v temporary-file-directory.  Check this variable, particularly
if your are on Windows machine.

2. Load Emacs without your custom settings.

a) emacs -Q -L /path/to/org/library

   (`-L' option not needed if org comes from your Emacs
   installation.)

b) Once Emacs is loaded, do

   M-x load-library ox-odt

   Note where the styles and schema files come from.


After following these instructions, I got the following results in Message:

,
| For information about GNU Emacs and the GNU system, type C-h C-a.
| Loading ox-odt...
| Debug (ox-odt): Searching for OpenDocument styles files...
| Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times]
| Debug (ox-odt): Trying /home/will/.emacs.d/etc/styles/...
| Debug (ox-odt): Trying 
/home/will/.emacs.d/elpa/org-20150223/etc/styles/...
| Debug (ox-odt): Using styles under 
/home/will/.emacs.d/elpa/org-20150223/etc/styles/

| Debug (ox-odt): Searching for OpenDocument schema files...
| Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
| Debug (ox-odt): No OpenDocument schema files installed
| Loading ox-odt...done
`

These style files are the same ones I've used in prior exports in which 
I've seen the errors that I reported in my earlier emails.  I note the 
absence of OpenDocument schema files. As I understand it, they're aren't 
essential for the export to ODT process but are used for troubleshooting 
instead.  Perhaps I've misunderstood that though.



c) Proceed with export


I opened the same .org file that I'd had trouble exporting and used `C-c 
o O' to invoke export to ODT and then to prompt the file to be opened in 
LibreOffice Writer 4.2.7.2.  It opened without any of the problems I'd 
seen previously.  The Messages output is below.


,
| LaTeX to MathML converter not available.
| Formatting LaTeX using verbatim
| Embedding /home/will/Dropbox/org/panopto-create-recording.png as 
Images/0001.png...

| Wrote /tmp/odt-3818xsy/meta.xml
| Using vacuous schema [2 times]
| Saving file /tmp/odt-3818xsy/styles.xml...
| Wrote /tmp/odt-3818xsy/styles.xml
| Using vacuous schema
| Wrote /tmp/odt-3818xsy/mimetype
| Using vacuous schema
| Saving file /tmp/odt-3818xsy/META-INF/manifest.xml...
| Wrote /tmp/odt-3818xsy/META-INF/manifest.xml
| Saving file /tmp/odt-3818xsy/content.xml...
| Wrote /tmp/odt-3818xsy/content.xml
| (No changes need to be saved)
| Creating ODT file...
| Running zip -mX0 work.odt mimetype
| Running zip -rmTq work.odt .
| Created /home/will/Dropbox/org/work.odt
| Parsing archive file...done.
| Running soffice --nologo --writer /home/will/Dropbox/org/work.odt...done
`

I noted that none of the undo-tree duplicate xml files that were cited 
as errors in the OpenDocument validator showed up.



3.  I will focus on XML errors like loext:contextual-spacing etc.

 The style file used by the exporter comes from `OrgOdtStyles.xml'
 (Check messages buffer for where this file comes from).  This file
 has no such attributes.

 Which version of LibreOffice you are using?  Where did you get
 style files from?  Are you using #+ODT_STYLES_FILE option etc


I'm using LibreOffice 4.2.7.2.  Although I've used style options--I 
think I just had them listed as #+OPTIONS--I removed them in earlier 
tests to see if they were causing problems.


After running this test, I tried it out again with my usual 
configuration.  I got the same LibreOffice input/output errors and saw 
this in Messages:


,
| Formatting LaTeX using verbatim
| Embedding /home/will/Dropbox/org/panopto-create-recording.png as 
Images/0001.png...

| Wrote /tmp/odt-37886-H/meta.xml
| Using vacuous schema
| Local Ispell dictionary set to american
| Using vacuous schema
| Local Ispell dictionary set to american
| Saving file /tmp/odt-37886-H/styles.xml...
| Wrote /tmp/odt-37886-H/.styles.xml.~undo-tree~
| Wrote /tmp/odt-37886-H/styles.xml
| Using vacuous schema
| Local Ispell dictionary set to american
| Wrote /tmp/odt-37886-H/mimetype
| Using vacuous schema
| Local Ispell dictionary set to american
| Saving file /tmp/odt-37886-H/META-INF/manifest.xml...
| Wrote /tmp/odt-37886-H/META-INF/.manifest.xml.~undo-tree~
| Wrote /tmp/odt-37886-H/META-INF/manifest.xml
| Saving file /tmp/odt-37886-H/content.xml...
| Wrote /tmp/odt-37886-H/.content.xml.~undo-tree~
| Wrote /tmp/odt-37886-H/content.xml
| (No changes need to be saved)
| Creating ODT file...
| Running zip -mX0 work.odt mimetype
| Running zip -rmTq work.odt .
| Created /home/will/Dropbox/org/work.odt
| Parsing archive file...done.
| Running soffice --nologo --writer /home/will/Dropbox/org/work.odt...done
`

Just as i have with every other attempt using my normal configuration 
from my custom init.el, these messages about undo-tree xml files 

Re: [O] (org-element-property :title ...) not returning a string

2015-03-04 Thread James Harkins

On March 4, 2015 7:18:11 PM James Harkins jamshar...@qq.com wrote:


I've got:

(defun org-scdoc-headline (headline contents info)
  (unless (org-element-property :footnote-section-p headline)
(let* ((title (org-element-property :title headline))
   (allcaps (upcase title))
... blah blah

It's choking on (upcase...) because 'title' ends up being an element 
object, and *not* the value of the :title property.


Never mind, I needed to wrap the org-element-property call inside 
org-export-data.


That much is working now! Next question... maybe tomorrow.

hjh

Sent with AquaMail for Android
http://www.aqua-mail.com





[O] org.css for mobile-friendly

2015-03-04 Thread OSiUX
Testing my blog [0] (org-mode publish) in
mobile-friendly [1] obtain bad result. :(

Same result for orgmode.org, maybe somebody have
better CSS for org-mode export?

thanks!

[0] http://osiux.com
[1] https://www.google.com/webmasters/tools/mobile-friendly/?url=orgmode.org

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] org.css for mobile-friendly

2015-03-04 Thread Grant Rettke
https://github.com/fniessen/org-html-themes

On Wed, Mar 4, 2015 at 9:01 AM, OSiUX xu...@osiux.com.ar wrote:
 Testing my blog [0] (org-mode publish) in
 mobile-friendly [1] obtain bad result. :(

 Same result for orgmode.org, maybe somebody have
 better CSS for org-mode export?

 thanks!

 [0] http://osiux.com
 [1] https://www.google.com/webmasters/tools/mobile-friendly/?url=orgmode.org

 --

 ::

   Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
   DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
   http://www.osiux.com.ar http://www.altermundi.net



-- 
Grant Rettke
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson