Re: [O] hyperlink to customize

2013-12-09 Thread Brady Trainor
> elisp:customize

> 

> should also work as a link, even without the brackets. 



> [...] so the question

> is why it does not work for you.





It does work, I was wrong. 



That is, `elisp:customize` does in fact work for me. 



Not sure if I should start a new thread for the following. 



--- 

synopsis: want (clickable) customize to open in a new frame  



---



I am currently having most of my links open in a new frame, a la



 '(org-link-frame-setup (quote ((vm . vm-visit-folder-other-frame) (vm-
imap . vm-visit-imap-folder-other-frame) (gnus . org-gnus-no-new-news) 
(file . find-file-other-frame) (wl . wl-other-frame



I have tried to get my link to customize to open in a new frame, but do not 
know how to code, in particular in Emacs Lisp. 



I have considered the following elements that may play a role in a 
solution, but am not sure how to combine them, or what else to look for. 



I've considered the elisp manual, and looked at lists, macros, functions, 
in-line functions, creating frames, input focus and lamda calculus. 





This is probably my most complex attempt:



  [[elisp:(make-frame after-make-frame customize)]]



But it does not work. 





http://www.gnu.org/software/emacs/manual/html_node/elisp/index.html#Top

http://www.gnu.org/software/emacs/manual/html_node/elisp/Lists.html#Lists

http://www.gnu.org/software/emacs/manual/html_node/elisp/Macros.html#Macros

http://www.gnu.org/software/emacs/manual/html_node/elisp/Creating-
Frames.html#Creating-Frames

http://www.gnu.org/software/emacs/manual/html_node/elisp/Input-
Focus.html#Input-Focus






Re: [O] how to print org-element of type paragraph as a string?

2013-12-09 Thread Nick Dokos
Myles English  writes:

> Hello,
>
> This should be an easy question for someone.  Given the org file
> content below, how would you get the result or the source block to be
> "here are the contents"?
>
> Thanks,
> Myles
>
> * heading
> here are the contents
>
> #+begin_src elisp :results output
> (dolist
>   (job (org-element-map (org-element-parse-buffer) 'paragraph 'identity))
> (print (car (org-element-contents job
> #+end_src
>
> #+RESULTS:
> :
> : #("here are the contents
> : " 0 22 (:parent (paragraph (:begin 11 :end 34 :contents-begin 11
> :contents-end 33 :post-blank 1 :post-affiliated 11 :parent (section
> (:begin 11 :end 225 :contents-begin 11 :contents-end 224 :post-blank 1
> :parent (headline (:raw-value "heading" :begin 1 :end 225 :pre-blank 0
> :contents-begin 11 :contents-end 224 :level 1 :priority nil :tags nil
> :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil
> :archivedp nil :commentedp nil :quotedp nil :CATEGORY nil :title
> (#("heading" 0 7 (:parent #6))) :parent (org-data nil #6)) #4)) #2
> (src-block (:language "elisp" :switches nil :parameters ":results
> output" :begin 34 :end 207 :number-lines nil :preserve-indent nil
> :retain-labels t :use-labels t :label-fmt nil :value "(dolist
> :   (job (org-element-map (org-element-parse-buffer) 'paragraph 
> 'identity))
> : (print (car (org-element-contents job
> : " :post-blank 1 :post-affiliated 34 :parent #4)) (fixed-width
> (:begin 207 :end 224 :value "nil
> : " :post-blank 0 :post-affiliated 218 :results ("") :parent #4 #0)))
>
>

Use substring-no-properties omitting the bounds:

,
| substring-no-properties is a built-in function in `C source code'.
| 
| (substring-no-properties STRING &optional FROM TO)
| 
| Return a substring of STRING, without text properties.
| It starts at index FROM and ends before TO.
| TO may be nil or omitted; then the substring runs to the end of STRING.
| If FROM is nil or omitted, the substring starts at the beginning of STRING.
| If FROM or TO is negative, it counts from the end.
| 
| With one argument, just copy STRING without its properties.
`

-- 
Nick




[O] how to print org-element of type paragraph as a string?

2013-12-09 Thread Myles English
Hello,

This should be an easy question for someone.  Given the org file
content below, how would you get the result or the source block to be
"here are the contents"?

Thanks,
Myles

* heading
here are the contents

#+begin_src elisp :results output
(dolist
  (job (org-element-map (org-element-parse-buffer) 'paragraph 'identity))
(print (car (org-element-contents job
#+end_src

#+RESULTS:
:
: #("here are the contents
: " 0 22 (:parent (paragraph (:begin 11 :end 34 :contents-begin 11
:contents-end 33 :post-blank 1 :post-affiliated 11 :parent (section
(:begin 11 :end 225 :contents-begin 11 :contents-end 224 :post-blank 1
:parent (headline (:raw-value "heading" :begin 1 :end 225 :pre-blank 0
:contents-begin 11 :contents-end 224 :level 1 :priority nil :tags nil
:todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil
:archivedp nil :commentedp nil :quotedp nil :CATEGORY nil :title
(#("heading" 0 7 (:parent #6))) :parent (org-data nil #6)) #4)) #2
(src-block (:language "elisp" :switches nil :parameters ":results
output" :begin 34 :end 207 :number-lines nil :preserve-indent nil
:retain-labels t :use-labels t :label-fmt nil :value "(dolist
:   (job (org-element-map (org-element-parse-buffer) 'paragraph 'identity))
: (print (car (org-element-contents job
: " :post-blank 1 :post-affiliated 34 :parent #4)) (fixed-width
(:begin 207 :end 224 :value "nil
: " :post-blank 0 :post-affiliated 218 :results ("") :parent #4 #0)))



Re: [O] text-only plots

2013-12-09 Thread Suvayu Ali
Hi Thiery,

On Mon, Dec 09, 2013 at 10:48:22PM +, Thierry Banel wrote:
> Ivan Andrus  gmail.com> writes:
> > On Dec 9, 2013, at 5:19 AM, Suvayu Ali  gmail.com>
> wrote:
> > > Technically speaking, it is not exported as a table since you put it as
> > > part of example block.  However a quick test tells me, html export will
> > > work fine (screenshot attached).  However LaTeX export is an entirely
> > > different story.  Unicode support in normal pdflatex is quite
> > > non-trivial.  If you use XeLaTeX, I think you could get it to work with
> > > some appropriate choice of fonts.  I tried libertine and dejavu without
> > > any luck.
> > 
> > Would it be possible to export it to \rule when using LaTeX?  It
> > wouldn't be text then and you couldn't copy it, but it should work
> > with any TeX engine regardless of fonts etc.  Just a thought.
> 
> Right, Suvayu, Unicodes are not universally supported.
> So, what about coming back to basics ?
> Just Ascii like that:

 [...chomp...chomp...chomp...]

> We remove Unicodes until someone comes with an idea.
> 
> Ivan, the LaTex \rule might be a (pretty) solution for the LaTex exporter.
> But then we should also take care of all past and future exporters...

Firstly, I think the unicode bit is a terrific improvement; specially
the two options: grid and continuous.  I think there are two distinct
problems here: the plot as shown in org, and export.  We should not
confuse the two.

I will suggest for the moment having the plotting bits is enough.  HTML
export works, plain text export sort of works[1].  As you see, getting
it right for all (most) exporters is non-trivial, so I would say no need
for worrying about supporting past exporters.

Handling this needs some conditional behaviour: plain text -> backend,
or unicode -> backend.  You could use a standardised column title to
selectively choose/ignore columns.  So ASCII export would ignore unicode
columns.  LaTeX export would replace the chars with appropriate symbols
(e.g. \rule, as suggested by Ivan).  Texinfo and markdown supports
unicode, so that should be fine (like HTML).

When we have something that is acceptable, you can publish the exporter
code and the plotting code as part of the same module, say
org-ascii-plot.el (or something along those lines).  Which could then go
in contrib.

WDYT?

Footnotes:

[1] Sort-of, because it "lies" by including unicode chars even if you
export to ASCII only.


-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] text-only plots

2013-12-09 Thread Thierry Banel
Ivan Andrus  gmail.com> writes:

> 
> On Dec 9, 2013, at 5:19 AM, Suvayu Ali  gmail.com>
wrote:
> > Technically speaking, it is not exported as a table since you put it as
> > part of example block.  However a quick test tells me, html export will
> > work fine (screenshot attached).  However LaTeX export is an entirely
> > different story.  Unicode support in normal pdflatex is quite
> > non-trivial.  If you use XeLaTeX, I think you could get it to work with
> > some appropriate choice of fonts.  I tried libertine and dejavu without
> > any luck.
> 
> Would it be possible to export it to \rule when using LaTeX?  It wouldn't
be text then and you couldn't copy it,
> but it should work with any TeX engine regardless of fonts etc.  Just a
thought.
> 
> -Ivan
> 
> 

Right, Suvayu, Unicodes are not universally supported.
So, what about coming back to basics ?
Just Ascii like that:

|  x |sin(x/4) | Ascii|
|+-+--|
|  0 |   0 | Wh   |
|  1 |  0.32719470 | WWWV |
|  2 |  0.61836980 | Wl   |
|  3 |  0.84147098 | WWW  |
|  4 |  0.97193790 | WWWV |
|  5 |  0.99540796 |  |
|  6 |  0.90929743 | WWW; |
|  7 |  0.72308588 | WW-  |
|  8 |  0.45727263 | l|
|  9 |  0.14112001 | WWl  |
| 10 | -0.19056796 | l|
| 11 | -0.50127705 | WWl  |
| 12 | -0.75680250 | W|
#+TBLFM: $3='(orgtbl-ascii-draw $2 -0.9290145 0.99540796 12)

We remove Unicodes until someone comes with an idea.

Ivan, the LaTex \rule might be a (pretty) solution for the LaTex exporter.
But then we should also take care of all past and future exporters...

Thierry






Re: [O] hyperlink to customize

2013-12-09 Thread Nick Dokos
Brady Trainor  writes:

> However, I am curious why I get away with 
>   file:~/.emacs, 
> but not 
>   elisp:(customize)
>
> That is, I can get away with not using square brackets for the file, but we 
> need
>
>   [[elisp:(customize)]]
>
> Not a priority, just a mild curiosity. 

Actually, I took a look through the code and found out that

elisp:customize

should also work as a link, even without the brackets. The assumption is
that the name following the ``elisp:'' part is the name of an
interactive function (a "command"). Following the link just executes the
command (without arguments - you can't use plain links for function
calls with arguments).  I tried it and it works for me - so the question
is why it does not work for you.

Nick




Re: [O] hyperlink to customize

2013-12-09 Thread Brady Trainor
Nick Dokos  gmail.com> writes:



> 

> Brady Trainor  uw.edu> writes:

> 

> >

> > So, my naïve attempt is to use 

> >

> >

> >

> > elisp:customize

> >

> >

> 

> so to call it from an elisp link, you say

> 

> [[elisp:(customize)]]





Thank you for the speedy reply and solution! 

















P.S. 



However, I am curious why I get away with 



  file:~/.emacs, 



but not 



  elisp:(customize)



That is, I can get away with not using square brackets for the file, but we 
need



  [[elisp:(customize)]]



Not a priority, just a mild curiosity. 



(Now that I think about it, in my troubleshooting, I had tried elisp:(...), 
but the linking broke so I should have thought to add the brackets. Drat.) 














[O] emphasis inside source block?

2013-12-09 Thread David Rogoff
Sorry if this has been discussed but I wasn’t able to find info on it.
I have lots of source blocks in my org files (tcl, verilog, shell-script, etc). 
 I want to be able to highlight (e.g. *bold*) text in the code but this doesn’t 
work since it’s using the specified language mode instead of org mode.  Is 
there some way to use a minor mode within source blocks that would allow this?  
It’s become a big problem in generating documentation.

Thanks,

 David


Re: [O] hyperlink to customize

2013-12-09 Thread Nick Dokos
Brady Trainor  writes:

> As I climb the org-mode (and Emacs) learning curve, I like to have things 
> like hyperlinks to frequently visited places available. 
>
>
>
> I can link to info, but not sure how to link to the customize, er, mode? 
> buffer? 
>
>
>
> I assume I should consider it an external link, or anyways assume I should 
> use the elisp:blah method from http://orgmode.org/manual/External-
> links.html#External-links. 
>
>
>
> So, my naïve attempt is to use 
>
>
>
> elisp:customize
>
>
>
> This does not work, any ideas? Custom links? 

In Lisp, the form

   (foo bar baz)

says: call the function foo with arguments bar and baz.  To call the
customize function without arguments, you say

(customize)

so to call it from an elisp link, you say

[[elisp:(customize)]]

Calling arbitrary functions hidden behind links is potentially
dangerous, so org-babel will nag you before evaluating the form and only
carry out the evaluation if you answer the question positively.

Nick




[O] hyperlink to customize

2013-12-09 Thread Brady Trainor


As I climb the org-mode (and Emacs) learning curve, I like to have things 
like hyperlinks to frequently visited places available. 



I can link to info, but not sure how to link to the customize, er, mode? 
buffer? 



I assume I should consider it an external link, or anyways assume I should 
use the elisp:blah method from http://orgmode.org/manual/External-
links.html#External-links. 



So, my naïve attempt is to use 



elisp:customize



This does not work, any ideas? Custom links? 




Re: [O] how to adjust vertical spacing between lines in a simple list, pdflatex export

2013-12-09 Thread John Hendy
On Mon, Dec 9, 2013 at 2:12 PM, Christopher W. Ryan
 wrote:
> Thanks, but I'm still having trouble.

[ snip ]

> \title{Review of our system for assessing students' clinical performance}
> \author{Christopher w. Ryan, MD MS}
> \date{\today}
> \hypersetup{
>   pdfkeywords={},
>   pdfsubject={},
>   pdfcreator={Emacs Org-mode version 7.9.3f}}

Note Org-mode version.

[ snip ]

>
> #+ATTR_LATEX: :options itemsep=1pt
>
> before a simple list in my org-mode subtree does not change the vertical
> spacing between list items at all.
>
> And a relevant exerpt from my .tex exported file is
>
> \begin{itemize}
> \item Don't fill out a form that the student has signed, blank, ahead of
> time
> \item Don't fill out a second form after you have already submitted one
> \item Don't mention any suggested grade for the clerkship. Performance
> in your office counts for half the final grade; the other half is based
> on other activities
> \end{itemize}
>
> Note no [itemsep= ] option.
>

I think the ability to pass #+attr_latex options to plain lists was a
more recent feature, > Org 8.0 with the new export framework. Unless
you're manually accessing that exporter via the sort of "trial period"
methods that used to exist while it was in heavy development, I'm
going to assume you're using the old exporter and thus don't have this
feature.

Here's the announcement/upgrade info if you'd like to update things to Org 8+:
- http://orgmode.org/worg/org-8.0.html

Here's my output:


 Org file 
#+latex_header: \usepackage{enumitem}

* Test

** normal

- item 1
- item 2
- item 3

** with enumitem

#+attr_latex: :options itemsep=1pt
- item 1
- item 2
- item 3
==


 LateX output 
\section{Test}
\label{sec-1}

\subsection{normal}
\label{sec-1-1}

\begin{itemize}
\item item 1
\item item 2
\item item 3
\end{itemize}
\subsection{with enumitem}
\label{sec-1-2}

\begin{itemize}[itemsep=1pt]
\item item 1
\item item 2
\item item 3
\end{itemize}
=

In inspecting the PDF output, the spacing is, indeed, different
between the two lists (less in the second case).

I didn't comment on your per-headline latex setup/properties/issues,
as I don't really do that. I typically just put everything in the main
document. I'm sure someone else can chime in, though.


Best regards,
John

> --Chris
>
>
> Christopher W. Ryan, MD, MS
> SUNY Upstate Medical University Clinical Campus at Binghamton
> 425 Robinson Street, Binghamton, NY  13904
> cryanatbinghamtondotedu
>
> "Once we recognize that we do not err out of laziness, stupidity, or
> evil intent, we can liberate ourselves from the impossible burden of
> trying to be permanently right. We can take seriously the proposition
> that we could be in error, without deeming ourselves idiotic or
> unworthy." [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]
>
>
> Thomas S. Dye wrote:
>> #+ATTR_LATEX: :options itemsep=1pt
>



Re: [O] how to adjust vertical spacing between lines in a simple list, pdflatex export

2013-12-09 Thread Christopher W. Ryan
Thanks, but I'm still having trouble.

If the beginning of my org subtree looks like this:

** Review of assessment system for preceptors
:PROPERTIES:
:EXPORT_FILE_NAME: ReviewOfAssessmentSystemForPreceptors-12-02-2013
:EXPORT_TITLE: Review of our system for assessing students' clinical
performance
:EXPORT_AUTHOR: Christopher w. Ryan, MD MS
:EXPORT_EMAIL: cr...@binghamton.edu
:EXPORT_LATEX_HEADER: \usepackage{enumitem}
:END:

*** Introduction

Then I get a Latex preamble looks like this:

% Created 2013-12-09 Mon 15:02
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage[margin=0.75in]{geometry}
\usepackage{charter}
\usepackage{pdfpages}
\usepackage{charter}
\usepackage{pdfpages}
\providecommand{\alert}[1]{\textbf{#1}}

\title{Review of our system for assessing students' clinical performance}
\author{Christopher w. Ryan, MD MS}
\date{\today}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs Org-mode version 7.9.3f}}

The enumitem package is not loaded. Also, I'm puzzled by the appearance
of \usepackage{charter} twice, when I did not even call it once in the
org subtree.


If, on the other hand, my org subtree looks like this:

** Review of assessment system for preceptors
:PROPERTIES:
:EXPORT_FILE_NAME: ReviewOfAssessmentSystemForPreceptors-12-02-2013
:EXPORT_TITLE: Review of our system for assessing students' clinical
performance
:EXPORT_AUTHOR: Christopher w. Ryan, MD MS
:EXPORT_EMAIL: cr...@binghamton.edu
:END:
#+LATEX_HEADER: \usepackage{enumitem}

Then my Latex preamble looks like this:

% Created 2013-12-09 Mon 15:07
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage[margin=0.75in]{geometry}
\usepackage{enumitem}
\usepackage{charter}
\usepackage{pdfpages}
\usepackage{charter}
\usepackage{pdfpages}
\providecommand{\alert}[1]{\textbf{#1}}

\title{Review of our system for assessing students' clinical performance}
\author{Christopher w. Ryan, MD MS}
\date{\today}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs Org-mode version 7.9.3f}}


Note that enumitem is indeed loaded. But including

#+ATTR_LATEX: :options itemsep=1pt

before a simple list in my org-mode subtree does not change the vertical
spacing between list items at all.

And a relevant exerpt from my .tex exported file is

\begin{itemize}
\item Don't fill out a form that the student has signed, blank, ahead of
time
\item Don't fill out a second form after you have already submitted one
\item Don't mention any suggested grade for the clerkship. Performance
in your office counts for half the final grade; the other half is based
on other activities
\end{itemize}

Note no [itemsep= ] option.

--Chris


Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

"Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy." [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]


Thomas S. Dye wrote:
> #+ATTR_LATEX: :options itemsep=1pt



Re: [O] publishuing in html5

2013-12-09 Thread Nicolas Goaziou
Hello,

Catonano  writes:

> I tried to both include the directive in the "group" in the project
> definition AND using
>
> #+HTML_HTML5_FANCY: t
>
> in level-0.org

There is no such keyword. Use:

  #+OPTIONS: html5-fancy:t

or set `org-html-html5-fancy' to a non-nil value.


Regards,

-- 
Nicolas Goaziou



Re: [O] Org mode and "shunt" exporters?

2013-12-09 Thread Nicolas Goaziou
Hello,

Brett Viren  writes:

> Eric Schulte  writes:
>
>> You can use `org-element-parse-buffer' to convert an Emacs Buffer to a
>> structured Emacs Lisp object.  At that point you can use existing tools
>> for converting lisp to JSON or YAML.  I've used cl-json for Common Lisp,
>> I would imagine something similar exists for Emacs Lisp.
>
> Thanks for the suggestion.  I pursued that a bit this weekend.  The
> resulting data structure is a Circular Object[1] due to the ":parent"
> references.  It seems dealing with this kind of data structure is
> somewhat uncommon (or my search-fu lacking), although I do find a recent
> reference to it on this mailing list[2].  I also found a "cust-print"[3]
> feature from Emacs 19 which has since been removed.  It shows a way to
> deal with Circular Objects.  So far it has strongly taxed my poor elisp
> skills but I plan to pursue this direction a bit more.
>
> I did try throwing a JSON parser/generator[4] at the output of
> org-element-parse-buffer but this failed due to exceeding emacs's
> recursion limits.  I think this must be from the ":parent" references
> getting recursed on forever.

You can walk the tree, e.g. with `org-element-map', and remove
all :parent references if you don't need them.


Regards,

-- 
Nicolas Goaziou



Re: [O] publishuing in html5

2013-12-09 Thread Nick Dokos
Catonano  writes:

> I' m trying to follow the examples at this page
>
> http://orgmode.org/manual/HTML-doctypes.html#HTML-doctypes
>
> to transform
>
>      #+BEGIN_ASIDE
>      Lorem ipsum
>      #+END_ASIDE
>
> in
>
>      
>        Lorem ipsum
>      
>
> but it doesn't work, I still get
>
> 
> 
> Lorem ipsum
> 
>
> 
>
> I tried to both include the directive in the "group" in the project
> definition AND using
>
> #+HTML_HTML5_FANCY: t
>

Try

--8<---cut here---start->8---
#+HTML_DOCTYPE: html5
#+OPTIONS: html5-fancy:t

#+BEGIN_ASIDE
Lorem Ipsum
#+END_ASIDE
--8<---cut here---end--->8---

> in level-0.org
>
> What am I missing ?

Nick




Re: [O] publishuing in html5

2013-12-09 Thread Catonano
now I see that html5 is mentioned in the exporting section but not in the
publishing section.

I mistakenly identified the 2.

Does org-mode publish to html5 ?


2013/12/9 Catonano 

> I forgot: my org-mode version is 8.2.4
>
>
> 2013/12/9 Catonano 
>
>> I' m trying to follow the examples at this page
>>
>> http://orgmode.org/manual/HTML-doctypes.html#HTML-doctypes
>>
>> to transform
>>
>>  #+BEGIN_ASIDE
>>  Lorem ipsum
>>  #+END_ASIDE
>>
>>
>> in
>>
>>
>>  
>>Lorem ipsum
>>  
>>
>> but it doesn't work, I still get
>>
>> 
>> 
>> Lorem ipsum
>> 
>>
>> 
>>
>> I tried to both include the directive in the "group" in the project
>> definition AND using
>>
>> #+HTML_HTML5_FANCY: t
>>
>> in level-0.org
>>
>> What am I missing ?
>>
>
>


Re: [O] Cdlatex and ELPA

2013-12-09 Thread Achim Gratz
Rasmus writes:
> Since I use multiple computers I'd like to cdlatex in GNU ELPA.  An
> outdated version is currently on Marmelade, but I think that version
> doesn't work with current Org (v4.0 vs. v4.6).  Also, cdlatex deserves
> to be in GNU ELPA IMO.

Don't you think that emacs-devel would be a better place for this
discussion?


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

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables




Re: [O] publishuing in html5

2013-12-09 Thread Catonano
I forgot: my org-mode version is 8.2.4


2013/12/9 Catonano 

> I' m trying to follow the examples at this page
>
> http://orgmode.org/manual/HTML-doctypes.html#HTML-doctypes
>
> to transform
>
>  #+BEGIN_ASIDE
>  Lorem ipsum
>  #+END_ASIDE
>
>
> in
>
>
>  
>Lorem ipsum
>  
>
> but it doesn't work, I still get
>
> 
> 
> Lorem ipsum
> 
>
> 
>
> I tried to both include the directive in the "group" in the project
> definition AND using
>
> #+HTML_HTML5_FANCY: t
>
> in level-0.org
>
> What am I missing ?
>


[O] publishuing in html5

2013-12-09 Thread Catonano
I' m trying to follow the examples at this page

http://orgmode.org/manual/HTML-doctypes.html#HTML-doctypes

to transform

 #+BEGIN_ASIDE
 Lorem ipsum
 #+END_ASIDE


in


 
   Lorem ipsum
 

but it doesn't work, I still get



Lorem ipsum




I tried to both include the directive in the "group" in the project
definition AND using

#+HTML_HTML5_FANCY: t

in level-0.org

What am I missing ?


Re: [O] Org mode and "shunt" exporters?

2013-12-09 Thread Brett Viren
Eric Schulte  writes:

> You can use `org-element-parse-buffer' to convert an Emacs Buffer to a
> structured Emacs Lisp object.  At that point you can use existing tools
> for converting lisp to JSON or YAML.  I've used cl-json for Common Lisp,
> I would imagine something similar exists for Emacs Lisp.

Thanks for the suggestion.  I pursued that a bit this weekend.  The
resulting data structure is a Circular Object[1] due to the ":parent"
references.  It seems dealing with this kind of data structure is
somewhat uncommon (or my search-fu lacking), although I do find a recent
reference to it on this mailing list[2].  I also found a "cust-print"[3]
feature from Emacs 19 which has since been removed.  It shows a way to
deal with Circular Objects.  So far it has strongly taxed my poor elisp
skills but I plan to pursue this direction a bit more.

I did try throwing a JSON parser/generator[4] at the output of
org-element-parse-buffer but this failed due to exceeding emacs's
recursion limits.  I think this must be from the ":parent" references
getting recursed on forever.


-Brett.


[1] one must (setq print-circle t) to avoid emacs reader errors
http://www.gnu.org/software/emacs/manual/html_node/elisp/Circular-Objects.html

[2] http://comments.gmane.org/gmane.emacs.orgmode/65999

[3] http://web.mit.edu/dosathena/sandbox/emacs-19.28/lisp/cust-print.el

[4] http://edward.oconnor.cx/2006/03/json.el


pgpvW01zMgjgz.pgp
Description: PGP signature


Re: [O] Cdlatex and ELPA

2013-12-09 Thread Rasmus

Rasmus  writes:

> Perhaps AUCTeX is a too heavy dependency which might 'talk' in favor
> of distributing textmathp.el separately.  However, I'm not sure if
> package.el supports some kind of either (i) an "or" statement in
> 'Package-Requires' or (ii) a 'Package-Provides' for people who have
> AUCTeX installed.  Of course texmathp.el could be required by AUCTeX,
> but that's a bit imposing. . .

BTW: I more or less choose a random minimum version for AUCTeX.
Probably an older version could be specified. In other words, I don't
know the "true" minimum version.

–Rasmus

-- 
Hvor meget poesi tror De kommer ud af et glas isvand?




[O] Cdlatex and ELPA

2013-12-09 Thread Rasmus
Hi,

Since I use multiple computers I'd like to cdlatex in GNU ELPA.  An
outdated version is currently on Marmelade, but I think that version
doesn't work with current Org (v4.0 vs. v4.6).  Also, cdlatex deserves
to be in GNU ELPA IMO.

There's this snip in cdlatex.el:

;; CDLaTeX requires texmathp.el which is distributed with AUCTeX.
;; Starting with Emacs 21.3, texmathp.el will be part of Emacs.


It seems texmathp never made it to Emacs-core, but AUCTeX is in ELPA
so it could be required.

(On a side note, it says cdlatex.el is part of Emacs, but I have
always had to install it separately. . .)

I have attached a tiny patch that makes cdlatex compatible with ELPA
so that I can just do package-install-from-buffer on the file.  I
think this is enough for distributing it via ELPA.

–Rasmus

The rest is not essential:

Perhaps AUCTeX is a too heavy dependency which might 'talk' in favor
of distributing textmathp.el separately.  However, I'm not sure if
package.el supports some kind of either (i) an "or" statement in
'Package-Requires' or (ii) a 'Package-Provides' for people who have
AUCTeX installed.  Of course texmathp.el could be required by AUCTeX,
but that's a bit imposing. . .


-- 
If you can mix business and politics wonderful things can happen!
diff --git a/cdlatex-orig.el b/cdlatex.el
index 05f0d91..f76ffad 100644
--- a/cdlatex-orig.el
+++ b/cdlatex.el
@@ -1,9 +1,10 @@
-;;; cdlatex.el -- Fast input methods for LaTeX environments and math
+;;; cdlatex.el --- Fast input methods for LaTeX environments and math
 ;; Copyright (c) 2010, 2011, 2012 Free Software Foundation, Inc.
 ;;
 ;; Author: Carsten Dominik 
 ;; Keywords: tex
-;; Version: 4.6
+;; Version: 4.7
+;; Package-Requires: ((auctex "11.85"))
 ;;
 ;; This file is part of GNU Emacs.
 ;;


Re: [O] text-only plots

2013-12-09 Thread Ivan Andrus
On Dec 9, 2013, at 5:19 AM, Suvayu Ali  wrote:

> Hi Thierry,
> 
> On Sun, Dec 08, 2013 at 11:10:47PM +, Thierry Banel wrote:
>> Carsten Dominik  gmail.com> writes:
>>> 
>>> This is not a lot of code - I would not mind simply integrating this into
>> org-table.el  The only hickup might be
>>> that this could be trouble for the exporters - or have you produced the
>> webpage directly from an org file?
>> 
>> I'm not sure I understand the exporters issue.
>> Do you talk about the html exporter, the Odt exporter, and so on ?
>> Well, once a plot has been added to a table, it is just text.
>> It will be exported as any other content in the table.
>> Maybe I'm missing something...
>> 
>> Yes, this webpage:
>> http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html
>> was produced by the Worg engine, from a regular Org file.
> 
> Technically speaking, it is not exported as a table since you put it as
> part of example block.  However a quick test tells me, html export will
> work fine (screenshot attached).  However LaTeX export is an entirely
> different story.  Unicode support in normal pdflatex is quite
> non-trivial.  If you use XeLaTeX, I think you could get it to work with
> some appropriate choice of fonts.  I tried libertine and dejavu without
> any luck.

Would it be possible to export it to \rule when using LaTeX?  It wouldn't be 
text then and you couldn't copy it, but it should work with any TeX engine 
regardless of fonts etc.  Just a thought.

-Ivan


Re: [O] Proposal: adjust CLOCK directly in agenda

2013-12-09 Thread Rainer Stengele
Am 02.09.2012 10:46, schrieb Bastien:
> Hi Rainer,
> 
> Rainer Stengele  writes:
> 
>> I cannot find a property which shows the start and ending time of an
>> entry, so changing the total time is useless for me as I do not see
>> where the task started or ended.
>> I still consider the ability to edit values in the normal agenda view as
>> an advantage.
> 
> The change I implemented allows you to adjust the last clock of an entry
> from the agenda column view.
> 
> Just go to such a view, S- in a CLOCKSUM field and this will add
> minutes to your clock.
> 
> I didn't implement adjusting clocks in cascade yet, as this needs to
> be clearly presented to the user, but I had a look and will suggest
> something.
> 
> Thanks,
> 
Bastien,

I still do a lot of adjustments to clocks after some time through the day
or even after checking the weeks or months past agenda.
I live in the agenda and there I find I have to adjust clocks.
For now I have to visit the org buffer, go to the clock entry, adjust the entry,
go back to agenda and reload (I work with sticky agendas).
I would very much like to stay in the agenda and simply S- or S- 
being on a clock entry.
That operation would update the clocks in the org buffer.
Any chance to get this as on a enhancement wish list?
if not could you please direct me to a way how I could possibly begin to 
program such a feature.

Thank you!

Rainer



Re: [O] text-only plots

2013-12-09 Thread Suvayu Ali
Hi Thierry,

On Sun, Dec 08, 2013 at 11:10:47PM +, Thierry Banel wrote:
> Carsten Dominik  gmail.com> writes:
> > 
> > This is not a lot of code - I would not mind simply integrating this into
> org-table.el  The only hickup might be
> > that this could be trouble for the exporters - or have you produced the
> webpage directly from an org file?
> 
> I'm not sure I understand the exporters issue.
> Do you talk about the html exporter, the Odt exporter, and so on ?
> Well, once a plot has been added to a table, it is just text.
> It will be exported as any other content in the table.
> Maybe I'm missing something...
> 
> Yes, this webpage:
> http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html
> was produced by the Worg engine, from a regular Org file.

Technically speaking, it is not exported as a table since you put it as
part of example block.  However a quick test tells me, html export will
work fine (screenshot attached).  However LaTeX export is an entirely
different story.  Unicode support in normal pdflatex is quite
non-trivial.  If you use XeLaTeX, I think you could get it to work with
some appropriate choice of fonts.  I tried libertine and dejavu without
any luck.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.
<>

Re: [O] How can I convert a org file to a flowchart

2013-12-09 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On Sat Dec  7 06:54:53 2013, Feng Shu wrote:
> Rainer M Krug  writes:
>
>> On Fri Dec  6 15:07:56 2013, Bastien wrote:
>>> Hi Feng,
>>>
>>> Feng Shu  writes:
>>>
 I have to draw a flowchart with many many nodes (about 500) and less
 construct types(only sequence construct and condition construct),

 Now I use org file record all the node labels, How can I convert this
 org to a flowchar if i use tag and link to record all the construct?
>>>
>>> AFAIK you can't.
>>
>> True - but a custom exporter to do this (export to plantuml format?)
>> would rally be great
>
> I find the new activity format of plantuml is very interesting
>
> #+begin_src plantuml :file test.png
> start
> :the first node;
> if (do you like org-mode?) then (Yes)
>   :Hello friend;
> else (I don't like it)
>   :Goodbye;
> endif
> :the last node;
> stop
> #+end_src

This looks really brilliant - have only used the original format so
far. So one just needs the time to write an exporter to plantuml creole
syntax...

Cheers,

Rainer


>
>>
>> Cheers,
>>
>> Rainer
>>
>>>
>>
>> --
>> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
>> Biology, UCT), Dipl. Phys. (Germany)
>>
>> Centre of Excellence for Invasion Biology
>> Stellenbosch University
>> South Africa
>>
>> Tel :   +33 - (0)9 53 10 27 44
>> Cell:   +33 - (0)6 85 62 59 98
>> Fax :   +33 - (0)9 58 10 27 44
>>
>> Fax (D):+49 - (0)3 21 21 25 22 44
>>
>> email:  rai...@krugs.de
>>
>> Skype:  RMkrug
>

- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSpYouAAoJENvXNx4PUvmCCxoIANdHkF+aH/+QGCZqFv4KsKIp
ZHtGNhlLVdHpJzaWJd74p7Yz68HqezrmXJda0ZpQ1DM2mt2Ps92q1eLZ7DlOUoeT
z/fptBxFjhiH0bBk0R5IjE7Swe0aflhgsVdDGusksEVNAio+TAwX6kkJdeM93U1B
5TRM4iJVA/t14dsHJk1s+B4//mGlOVBtJ6ArlRB0M4IsoU4z/atqFAOi/DuA5rBz
tn8BbSGCO8sHQ5uKspza60FPt9kwaY/BzJXgcLbhFUiW6IhUv9iNfdqzg47qQdcd
Andtx9bf6KpH2FGB5WnEoFkrM32ZqVrs/OeOQEY9bd/PJ/i7l9zHXzkG6Cc4EmE=
=/aul
-END PGP SIGNATURE-




Re: [O] [ESS] Keyboard shortcut - is there a principle behind them?

2013-12-09 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanks a lot everybody - the key bindings in emaaqcs are (a little b
it) clearer now.

Cheers

Rainer

On 12/07/13, 07:35 , Matthew Fidler wrote:
> See
> 
> http://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html
>
>  On Dec 6, 2013 3:02 AM, "Rainer M Krug"  > wrote:
> 
> Hi
> 
> one alternative subject could be "because it is Friday"...
> 
> I am using org-mode and ess regularly, and I use quite a few
> keyboard shortcuts, but each time I read about a new one, I am
> wondering: why the heck these specific (default!) keyboard
> shortcuts?
> 
> I am not asking why keyboard sequence, but e.g. why "export" in org
> is C-c e and why tangle is C-c C-v t, and so on.
> 
> In other words: I am trying to *understand* why C-c and not C-o, 
> because I have tremendous problems to remember the shortcuts - if
> I would know that there is s tree structure, where each following
> key narrows it down to further *thematically linked* commands, it
> would make it easier to learn these.
> 
> Any insight into this? Or is there a emacs function which returns
> a random keyboard shortcut for a given function (some emacs
> shortcuts really seem to be that way...).
> 
> Thanks,
> 
> Rainer
> 
> 
> 
> __ 
> ess-h...@r-project.org  mailing
> list https://stat.ethz.ch/mailman/listinfo/ess-help
> 

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSpYbxAAoJENvXNx4PUvmCknQIAOEMueFSmArfgvvn5TuEcMb1
U6K6KR1XEQvV0Z6Gh/SteJkQrOrtN6SrUBMdAjmXQ12y4sgo+47HNU/aF2IdXIVZ
1MUJBYRiXFpSlghdpA7j3VW91mGT6L+JO+vp7qNMa1NPK59xAq6tKc0rxRtvQsF2
YfMhRZwSzfhVtI72LNNvYaPzcEBmpcmQGHDA+7PT1mdRQ5csxhpESmD9h8kWz/Sn
BUq9FyTRL8616TzFL1fiHM6CBm9wBVgr+Jk7WftCq7v8VCEGSwJljbUtZlP5fNTL
VWuY4MbdfJa8GKRAYMZfGxN02d/VEffznliNm/3qTlbSA371/1obxeek2kFH8ms=
=2xQ2
-END PGP SIGNATURE-