Re: [O] [wish] Execute preparation-function before getting base files

2015-10-14 Thread Arun Isaac
Nicolas Goaziou  writes:

> I made the change in master.

I think a bug has been introduced by your change.

In org-publish-projects, the variable project-plist is accessed (to get
the preparation-function) before it is bound. So, I am getting a
(void-variable project-plist) error.



Re: [O] ox-beamer and CUSTOM_ID

2015-10-14 Thread Fabrice Popineau
2015-10-14 0:18 GMT+02:00 Nicolas Goaziou :

> Fabrice Popineau  writes:
>
> > This is a pity. Things would be more straightforward.
>
> Straightforward for what? Use againframes? Or force label?
>
>
Force label. Having to explicitly state it twice :

  * Frame 1
  :PROPERTIES:
  :CUSTOM_ID: foo
  :BEAMER_opt: label=foo
  :END:

is not exactly straightforward. The following (crude) patch would avoid it.

Anyway, the BEAMER_opt label= way of setting the label is not Org-y.

Regards,

Fabrice

diff --git a/vendor/org-mode/lisp/ox-beamer.el
b/vendor/org-mode/lisp/ox-beamer.el
index 24dcf19..cc8d241 100644
--- a/vendor/org-mode/lisp/ox-beamer.el
+++ b/vendor/org-mode/lisp/ox-beamer.el
@@ -333,11 +333,13 @@ INFO is a plist used as a communication channel.
 The value is either the label specified in \"BEAMER_opt\"
 property, or a fallback value built from headline's number.  This
 function assumes HEADLINE will be treated as a frame."
+  (if org-latex-prefer-user-labels
+  (org-element-property :CUSTOM_ID headline)
   (let ((opt (org-element-property :BEAMER_OPT headline)))
(if (and (stringp opt)
 (string-match "\\(?:^\\|,\\)label=\\(.*?\\)\\(?:$\\|,\\)"
opt))
(match-string 1 opt)
-  (format "{sec:%s}" (org-export-get-reference headline info)
+ (format "{sec:%s}" (org-export-get-reference headline info))

 (defun org-beamer--frame-level (headline info)
   "Return frame level in subtree containing HEADLINE.


Re: [O] [wish] Execute preparation-function before getting base files

2015-10-14 Thread Nicolas Goaziou
Arun Isaac  writes:

> I think a bug has been introduced by your change.
>
> In org-publish-projects, the variable project-plist is accessed (to get
> the preparation-function) before it is bound. So, I am getting a
> (void-variable project-plist) error.

Oops. Fixed. Thank you.

Regards,



Re: [O] SOLVED: LaTeX equation align in orgmode?

2015-10-14 Thread Eric S Fraga
On Monday, 12 Oct 2015 at 09:34, Rasmus wrote:

[...]

> I haven't followed the thread, but ox-odt should export to mathml by
> default.  I use this to produce mathml:
>
> (setq org-latex-to-mathml-convert-command
> "latexmlmath \"%i\" --presentationmathml=%o")
>
> Rasmus

Hi Rasmus,

thanks for the above.

I don't believe the default is to export to mathml.  At least, for me,
this doesn't happen.  But, to be brutally honest, I'm more than a little
confused about what is possible or not in ODT export.  I don't use it
often, mostly because almost all of my documents have some maths in
LaTeX form, but there are indeed cases where it would be nice to have
the capability of exporting maths to ODT.

Setting the variable mentioned above doesn't work for me either.  I had
to install the latexml package (on Ubuntu) to have the command available
but I don't know where to get the jar file that may be needed
(cf. org-latex-to-mathml-jar-file).  Any help in this regard would be
welcome.  Searching the mailing list doesn't bring up anything useful.

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-161-gd2ac25



Re: [O] ox-beamer and CUSTOM_ID

2015-10-14 Thread Nicolas Goaziou
Fabrice Popineau  writes:

> 2015-10-14 0:18 GMT+02:00 Nicolas Goaziou :
>
>> Fabrice Popineau  writes:
>>
>> > This is a pity. Things would be more straightforward.
>>
>> Straightforward for what? Use againframes? Or force label?
>>
>>
> Force label. Having to explicitly state it twice :
>
>   * Frame 1
>   :PROPERTIES:
>   :CUSTOM_ID: foo
>   :BEAMER_opt: label=foo
>   :END:
>
> is not exactly straightforward. The following (crude) patch would
> avoid it.

I'm not opposed to something like it, but it is no longer related to
againframe problem, isn't it?

Out of curiosity, why do you need to force a label?

> Anyway, the BEAMER_opt label= way of setting the label is not Org-y.

It isn't, but it is possible to set labels this way nonetheless, so Org
adapts to it.


Regards,



Re: [O] ox-beamer and CUSTOM_ID

2015-10-14 Thread Fabrice Popineau
2015-10-14 13:57 GMT+02:00 Nicolas Goaziou :

> Fabrice Popineau  writes:
>
> > 2015-10-14 0:18 GMT+02:00 Nicolas Goaziou :
>
> I'm not opposed to something like it, but it is no longer related to
> againframe problem, isn't it?
>
>
Sure. I came to the problem because of againframe.


> Out of curiosity, why do you need to force a label?


At some point LaTeX reported an error on some frame heading.
I wrongly inferred it could be the label.
I tried to force my own one and I was surprised CUSTOM_ID was not honoured
as it is in other backends (html).

I switch between ox-beamer and ox-reveal at the moment.
Albeit beamer gives better looking result, it is too much time consuming.

Regards,

Fabrice


Re: [O] SOLVED: LaTeX equation align in orgmode?

2015-10-14 Thread Rasmus
Eric S Fraga  writes:

> I don't believe the default is to export to mathml.  At least, for me,
> this doesn't happen.

For me, when I eval the following from emacs -q I get odt.

(require 'ox-odt)
(setq org-latex-to-mathml-convert-command
  "latexmlmath \"%i\" --presentationmathml=%o")

E.g. export: \(x\).

> But, to be brutally honest, I'm more than a little confused about what
> is possible or not in ODT export.  I don't use it often, mostly because
> almost all of my documents have some maths in LaTeX form, but there are
> indeed cases where it would be nice to have the capability of exporting
> maths to ODT.

It’s getting better.  I exported a large document recently, and Nicolas
fixed a lot of bugs.

> Setting the variable mentioned above doesn't work for me either.  I had
> to install the latexml package (on Ubuntu) to have the command available
> but I don't know where to get the jar file that may be needed
> (cf. org-latex-to-mathml-jar-file).

None.  At least two methods are supported: latexmlmath and some .jar file,
perhaps mathtoweb.jar or something like that?

> Any help in this regard would be welcome.  Searching the mailing list
> doesn't bring up anything useful.

Run from emacs -q and check your *messages*.  You should see something
like this in the buffer:

 Formatting LaTeX using mathml
 Creating MathML snippet 1...
 Wrote /tmp/ltxmathml-in5102GLn
 Running latexmlmath "\(x\)" --presentationmathml=ltxmathml-out5102TVt
 Using vacuous schema
 Wrote 
/tmp/ltxmathml/test-formula-27f4fea30995c43e0894e19929353bf9fa8957cb.mathml
 Embedding 
/tmp/ltxmathml/test-formula-27f4fea30995c43e0894e19929353bf9fa8957cbm.

Rasmus

-- 
Spil noget med Slayer!



Re: [O] SOLVED: LaTeX equation align in orgmode?

2015-10-14 Thread Eric S Fraga
On Wednesday, 14 Oct 2015 at 14:58, Rasmus wrote:
> Eric S Fraga  writes:
>
>> I don't believe the default is to export to mathml.  At least, for me,
>> this doesn't happen.
>
> For me, when I eval the following from emacs -q I get odt.
>
> (require 'ox-odt)
> (setq org-latex-to-mathml-convert-command
>   "latexmlmath \"%i\" --presentationmathml=%o")
>
> E.g. export: \(x\).

I get:

,
| LaTeX to MathML converter not available.
| Formatting LaTeX using verbatim
`

I do not get:

> Run from emacs -q and check your *messages*.  You should see something
> like this in the buffer:
>
>  Formatting LaTeX using mathml
>  Creating MathML snippet 1...
>  Wrote /tmp/ltxmathml-in5102GLn
>  Running latexmlmath "\(x\)" --presentationmathml=ltxmathml-out5102TVt
>  Using vacuous schema
>  Wrote
> /tmp/ltxmathml/test-formula-27f4fea30995c43e0894e19929353bf9fa8957cb.mathml
>  Embedding
> /tmp/ltxmathml/test-formula-27f4fea30995c43e0894e19929353bf9fa8957cbm.

I am using org from git, fairly recent version.

There must be some other configuration setting, maybe something outside
org that enables latexml to work?

thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-161-gd2ac25



Re: [O] SOLVED: LaTeX equation align in orgmode?

2015-10-14 Thread Rasmus
Eric S Fraga  writes:

> On Wednesday, 14 Oct 2015 at 14:58, Rasmus wrote:
>> Eric S Fraga  writes:
>>
>
>>> I don't believe the default is to export to mathml.  At least, for me,
>>> this doesn't happen.
>>
>> For me, when I eval the following from emacs -q I get odt.
>>
>> (require 'ox-odt)
>> (setq org-latex-to-mathml-convert-command
>>   "latexmlmath \"%i\" --presentationmathml=%o")
>>
>> E.g. export: \(x\).
>
> I get:
>
> ,
> | LaTeX to MathML converter not available.
> | Formatting LaTeX using verbatim
> `

This is triggered if (org-format-latex-mathml-available-p) returns nil.
Go through each step of this function (in org.el).  My guess is that
latexmlmath is not in your PATH, at least according to Emacs...

-- 
Together we will make the possible totay impossible!



Re: [O] Recursive formulaes in org-mode tables

2015-10-14 Thread Basil Komboz
Thanks to both of you for the solutions!

Best

Eric> On Tuesday, 13 Oct 2015 at 17:35, michael.zom...@googlemail.com wrote:
Eric> [...]

>> After reading a related SO question I tried the formula
>> 
>> #+TBLFM: @<<<..>$2=@<<..>>$2+2*$3

Eric> This worked for me:

Eric> #+TBLFM: @<<<$2..@>$2=@-1+2*@-1$+1

Eric> HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org
Eric> release_8.3.2-161-gd2ac25





Re: [O] Clock table quarterly block doesn't work anymore

2015-10-14 Thread L.C. Karssen
Dear all,

On 13-10-15 14:43, L.C. Karssen wrote:
> Dear list,
> 
> I tried to generate a report on my activities of this year using org
> clock tables, and found out that the 'quarterly block option' doesn't
> seem to work any more.
> 
> This is what I do:
> #+begin_src org
> #+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives :block
> 2015-Q1 :tags "ProjectA"  :fileskip0
> #+END:
> #+end_src
> 
> Until some time ago this worked. However, when I run it now I get:
> #+begin_src org
> #+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives :block
> 2015-Q3 :tags "ProjectA"  :fileskip0
> #+CAPTION: Clock summary at [2015-10-13 di 10:51], for 4th quarter of 2015.
> | File   | Headline |   Time |  |
> |+--++--|
> || ALL *Total time* | *2:08* |  |
> |+--++--|
> | todo.org   | *File time*  | *1:34* |  |
> || Programming  |   0:36 |  |
> || \_  support forum|| 0:36 |
> || Courses  |   0:58 |  |
> || \_  school 2016  || 0:58 |
> |+--++--|
> | todo_ProjectA.org  | *File time*  | *0:34* |  |
> || Financial|   0:21 |  |
> || \_  Progress reports || 0:21 |
> || WP4  |   0:13 |  |
> || \_  User support || 0:13 |
> #+END:
> #+end_src
> 
> Notice how the caption mentions Q4 instead of Q3 like I asked. The same
> happens when I use Q1 or Q2.
> 
> Could this be related to the fact that I upgraded to org 8.3 earlier
> this year? I just upgraded to org 20151005 but that didn't fix it.

I just tried Org 8.2.10 and there things work as expected. So I guess
this is indeed a regression.

I tried to find the source of the problem by looking into the git
history, but haven't found anything yet. The most logical place, the
org-quarter-to-date function, hasn't changed since 2010.

Maybe it's in org-clock-special-range, which was changed extensively
(commit c76fef6b). Although I haven't yet grasped exactly what was
changed and how that could cause my problem.


Best,

Lennart.

> 
> 
> Any input is appreciated.
> 
> 
> Best regards,
> 
> Lennart Karssen.
> 
> --
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> L.C. Karssen
> Utrecht
> The Netherlands
> 
> lenn...@karssen.org
> http://blog.karssen.org
> GPG key ID: A88F554A
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> 

-- 
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
L.C. Karssen
Utrecht
The Netherlands

lenn...@karssen.org
http://blog.karssen.org
GPG key ID: A88F554A
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-



signature.asc
Description: OpenPGP digital signature


Re: [O] [wish] Execute preparation-function before getting base files

2015-10-14 Thread Arun Isaac

It works now. Thanks!


signature.asc
Description: PGP signature


[O] Tamil unicode table column alignment

2015-10-14 Thread Shakthi Kannan
Hi,

I am using Org-mode version 8.2.10 and GNU Emacs 24.5.1, and have the
following table in an org file:

=== BEGIN ===

| எழுத்து | பெயர்  | சொல்  |
|+---+--|
| அ  | அகரம்  | அம்மா |
| ஆ  | ஆகாரம் | ஆடு  |
| இ  | இகரம்  | இலை  |
| ஈ  | ஈகாரம் | ஈட்டி |

=== END ===

The "|" are in their respective columns when I check their position
using the cursor, but, visually they are mis-aligned.

when I export to HTML the columns are neatly aligned. Is there a way
to make them aligned in the buffer itself?

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com


Re: [O] SOLVED: LaTeX equation align in orgmode?

2015-10-14 Thread Eric S Fraga
On Wednesday, 14 Oct 2015 at 16:18, Rasmus wrote:
> This is triggered if (org-format-latex-mathml-available-p) returns nil.
> Go through each step of this function (in org.el).  My guess is that
> latexmlmath is not in your PATH, at least according to Emacs...

Got it!  org-latex-to-mathml-convert-command is one of those variables
that has to be either set globally (which I don't want) or I have to use
#+bind:.  Setting it locally is no good!

Works very well now!

Thanks for all the help,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-161-gd2ac25



[O] how to use org-lint

2015-10-14 Thread Gregor Zattler
Dear org-mode users and developers,

when I do M-x org-lint while the active cpoint is in a org-mode
buffer nothing happens.

When I do M-: (org-lint) I get for instance;

((1 ["118" "high" "Incorrect location for PROPERTIES drawer" 
[cl-struct-org-lint-checker obsolete-properties-drawer "Report obsolete syntax 
for properties drawers" ... high]]) (2 ["922" "high" "Duplicate footnote 
definition \"1\"" [cl-struct-org-lint-checker duplicate-footnote-definition 
"Report duplicate footnote definitions" ... high]]) (3 ["1018" "high" 
"Incorrect location for PROPERTIES drawer" [cl-struct-org-lint-checker 
obsolete-properties-drawer "Report obsolete syntax for properties drawers" ... 
high]]) (4 ["1144" "low" "Misplaced planning info line" 
[cl-struct-org-lint-checker misplaced-planning-info "Report misplaced planning 
info line" ... low]]) (5 ["1257" "high" "Missing definition for footnote 
[fn:BMG]" [cl-struct-org-lint-checker undefined-footnote-reference "Report 
missing definition for footnote references" ... high]]) (6 ["1257" "high" 
"Missing definition for footnote [fn:AGHF]" [cl-struct-org-lint-checker 
undefined-footnote-reference "Report missing definition for footnote 
references" ... high]]) (7 ["1257" "high" "Missing definition for footnote 
[fn:AGHF]" [cl-struct-org-lint-checker undefined-footnote-reference "Report 
missing definition for footnote references" ... high]]) (8 ["1257" "high" 
"Missing definition for footnote [fn:AGHF]" [cl-struct-org-lint-checker 
undefined-footnote-reference "Report missing definition for footnote 
references" ... high]]) (9 ["1264" "high" "Missing definition for footnote 
[fn:BMG]" [cl-struct-org-lint-checker undefined-footnote-reference "Report 
missing definition for footnote references" ... high]]) (10 ["1268" "high" 
"Missing definition for footnote [fn:AGHF]" [cl-struct-org-lint-checker 
undefined-footnote-reference "Report missing definition for footnote 
references" ... high]]) (11 ["5201" "high" "Incorrect location for PROPERTIES 
drawer" [cl-struct-org-lint-checker obsolete-properties-drawer "Report obsolete 
syntax for properties drawers" ... high]]) (12 ["5220" "high" "Incorrect 
location for PROPERTIES drawer" [cl-struct-org-lint-checker 
obsolete-properties-drawer "Report obsolete syntax for properties drawers" ... 
high]]) ...)

in the *Message*  Buffer.

How do I interpret this message?  I would like to fix my org-mode
files but do not know how to with this messages.

I remember vaguely that thee used to be a nicely formatted
results buffer?  

This is on
GNU Emacs 25.0.50.2 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-10-14
Org-mode version 8.3.2 (release_8.3.2-175-gfa61cb 
@/home/grfz/src/org-mode/lisp/)

Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-




Re: [O] Tamil unicode table column alignment

2015-10-14 Thread Eric S Fraga
On Wednesday, 14 Oct 2015 at 20:46, Shakthi Kannan wrote:

[...]

> when I export to HTML the columns are neatly aligned. Is there a way
> to make them aligned in the buffer itself?

Unlikely unless you can find a typeface for displaying tamil glyphs that
is fixed width, i.e. where each glyph takes up the same amount of
horizontal space...
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-161-gd2ac25



Re: [O] Tamil unicode table column alignment

2015-10-14 Thread Michael Brand
Hi Shakthi

I would recommend to read this tread:
"mis-alignment in org-tables with Tibetan characters"
http://lists.gnu.org/archive/html/emacs-orgmode/2014-02/msg00072.html

Michael



Re: [O] Tamil unicode table column alignment

2015-10-14 Thread Achim Gratz
Shakthi Kannan writes:
> when I export to HTML the columns are neatly aligned. Is there a way
> to make them aligned in the buffer itself?

This works only if you use a font where all glyphs are the same width.


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




[O] source-highlight for in less pager?

2015-10-14 Thread Matt Price
Does anyone have a trick for getting syntax highlighting of org documents
in the less pager? I am not very comfortable in the emacs shell, so I spend
s fair amount of time in a standard terminal, and occasionally want to look
at a document quickly directly in the terminal.

Less normalyl uses source-highlight to perform syntax highlighting; I was
just wondering if someone already has an org.lang file kicking around for
use with source-highlight.

Thanks,
Matt


[O] two simple derived backend questions

2015-10-14 Thread Matt Price
Hi folks,

I apologize fro relying on your charity for htis question -- I ought to
figure this out myself, but am so slow that I've run out of time.

I dhave a number of lecture slides writen in org-mode. Normally I simply
export to reveal.js using org-reveal. However, I now have to share these
notes with a co-instructor who uses markdown, but not org.  This is not
fatal; I can export to markdown mode and use pandoc to create the reveal.js
slideshows.

However, there are two small difficulties:

a) add a horizontal rule

pandoc expects a horizontal rule at each slide division.  So, if possible,
I would like to add an hhr element at the end of every headline.

b) speker notes

More importantly, org-reveal allows the use of speaker notes, thus:

#+BEGIN_NOTES

whatever I put here

#+ END_NOTES

is exported as:


whaever I put here


However, these blocks are ignored by the markdown exporter.

Presumably I need to add a filter, or build a very simple derived backend,
but my attempts thus far haven't been very successful.  I would really
appreciate some suggestions! Thank you,
matt


[O] multiple cursor not working properly with org-mode

2015-10-14 Thread Jérémie Juste
Hello,

Multiple cursor is a very
handy tool. but I don't understand why it does not work properly in
org-mode.  I can delete characters but I cannot  write anything in
org-mode. For the time being when it's not too costly I've resorted
switching to text-mode make the modification and then back to org-mode.

anyone tried something better?

-- 
Jérémie Juste


Re: [O] multiple cursor not working properly with org-mode

2015-10-14 Thread Kaushal Modi
It works fine for me.

Have you tried starting an emacs -Q session and loading just
multiple-cursors (and org-mode, if you are not using the org-mode version
shipped with emacs)?

Can you replicate the problem then?

If not, then comment out your whole emacs config and uncomment it 50% at a
time between emacs restarts till you narrow down to the part in the config
causing this issue.


--
Kaushal Modi

On Wed, Oct 14, 2015 at 4:56 PM, Jérémie Juste 
wrote:

> Hello,
>
> Multiple cursor is a very
> handy tool. but I don't understand why it does not work properly in
> org-mode.  I can delete characters but I cannot  write anything in
> org-mode. For the time being when it's not too costly I've resorted
> switching to text-mode make the modification and then back to org-mode.
>
> anyone tried something better?
>
> --
> Jérémie Juste
>


Re: [O] how to use org-lint

2015-10-14 Thread Nicolas Goaziou
Hello,

Gregor Zattler  writes:

> when I do M-x org-lint while the active cpoint is in a org-mode
> buffer nothing happens.

M-x org-lint should create an "*Org lint*" buffer somewhere. Maybe it is
buried or on another frame.


Regards,

-- 
Nicolas Goaziou



Re: [O] Clock table quarterly block doesn't work anymore

2015-10-14 Thread Nicolas Goaziou
Hello,

> On 13-10-15 14:43, L.C. Karssen wrote:
>> Dear list,
>> 
>> I tried to generate a report on my activities of this year using org
>> clock tables, and found out that the 'quarterly block option' doesn't
>> seem to work any more.
>> 
>> This is what I do:
>> #+begin_src org
>> #+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives :block
>> 2015-Q1 :tags "ProjectA"  :fileskip0
>> #+END:
>> #+end_src
>> 
>> Until some time ago this worked. However, when I run it now I get:
>> #+begin_src org
>> #+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives :block
>> 2015-Q3 :tags "ProjectA"  :fileskip0
>> #+CAPTION: Clock summary at [2015-10-13 di 10:51], for 4th quarter of 2015.
>> | File   | Headline |   Time |  |
>> |+--++--|
>> || ALL *Total time* | *2:08* |  |
>> |+--++--|
>> | todo.org   | *File time*  | *1:34* |  |
>> || Programming  |   0:36 |  |
>> || \_  support forum|| 0:36 |
>> || Courses  |   0:58 |  |
>> || \_  school 2016  || 0:58 |
>> |+--++--|
>> | todo_ProjectA.org  | *File time*  | *0:34* |  |
>> || Financial|   0:21 |  |
>> || \_  Progress reports || 0:21 |
>> || WP4  |   0:13 |  |
>> || \_  User support || 0:13 |
>> #+END:
>> #+end_src
>> 
>> Notice how the caption mentions Q4 instead of Q3 like I asked. The same
>> happens when I use Q1 or Q2.
>> 
>> Could this be related to the fact that I upgraded to org 8.3 earlier
>> this year? I just upgraded to org 20151005 but that didn't fix it.

This is fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] how to use org-lint

2015-10-14 Thread Gregor Zattler
Hi Nicolas,
* Nicolas Goaziou  [14. Oct. 2015]:
> Gregor Zattler  writes:
> 
>> when I do M-x org-lint while the active cpoint is in a org-mode
>> buffer nothing happens.
> 
> M-x org-lint should create an "*Org lint*" buffer somewhere. Maybe it is
> buried or on another frame.

When I do this, nothing happens, there is no buffer *Org lint*.

When I do M-: (org-int) it takes a second or two but there is no
*Org-lint* buffer and only this info in *Messages* (I XXXed personal info):


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/grfz/src/etc/styles/...
Debug (ox-odt): Trying /home/grfz/src/org-mode/lisp/etc/styles/...
Debug (ox-odt): Trying 
/usr/local/stow/emacs-snapshot/share/emacs/25.0.50/etc/org/...
Debug (ox-odt): Using styles under 
/usr/local/stow/emacs-snapshot/share/emacs/25.0.50/etc/org/
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
((1 ["2395" "low" "Possible incomplete block \"#+BEGIN: clocktable  :tstart 
\"2015-01-01\" :tend \"\" :narrow 80! :minlevel 2 :maxlevel 14 :scope 
agenda :tags \"job\" :stepskip0 :fileskip0 :link :indent\"" 
[cl-struct-org-lint-checker invalid-block "Report invalid blocks" ... low]]) (2 
["2440" "low" "Invalid block closing line \"#+END: clocktable\"" 
[cl-struct-org-lint-checker invalid-block "Report invalid blocks" ... low]]) (3 
["2459" "low" "Misplaced planning info line" [cl-struct-org-lint-checker 
misplaced-planning-info "Report misplaced planning info line" ... low]]) (4 
["2463" "low" "Misplaced planning info line" [cl-struct-org-lint-checker 
misplaced-planning-info "Report misplaced planning info line" ... low]]) (5 
["2545" "low" "Misplaced planning info line" [cl-struct-org-lint-checker 
misplaced-planning-info "Report misplaced planning info line" ... low]]) (6 
["2736" "low" "Misplaced planning info line" [cl-struct-org-lint-checker 
misplaced-planning-info "Report misplaced planning info line" ... low]]) (7 
["3462" "high" "Unknown fuzzy location \" -e \"$envfile\" \"" 
[cl-struct-org-lint-checker invalid-fuzzy-link "Report \"fuzzy\" links with 
unknown destination" ... high]]) (8 ["3570" "high" "Unknown fuzzy location 
\"gitready.com\"" [cl-struct-org-lint-checker invalid-fuzzy-link "Report 
\"fuzzy\" links with unknown destination" ... high]]) (9 ["3589" "low" "Link to 
non-existent local file \"~/src/progit/figures/18333fig0106-tn.png\"" 
[cl-struct-org-lint-checker link-to-local-file "Report links to non-existent 
local files" ... low]]) (10 ["3603" "low" "Link to non-existent local file 
\"~/src/progit/figures/18333fig0201-tn.png\"" [cl-struct-org-lint-checker 
link-to-local-file "Report links to non-existent local files" ... low]]) (11 
["3647" "high" "Unknown fuzzy location 
\"XXX%20XXX%C3%9F%20iXX20%20X%20XXX,%20%20XXX%20XXX,%20%20%0A%20%20XX\""
 [cl-struct-org-lint-checker invalid-fuzzy-link "Report \"fuzzy\" links with 
unknown destination" ... high]]) (12 ["4907" "low" "Misplaced planning info 
line" [cl-struct-org-lint-checker misplaced-planning-info "Report misplaced 
planning info line" ... low]]) ...)


Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-




Re: [O] Clock table quarterly block doesn't work anymore

2015-10-14 Thread L.C. Karssen


On 15-10-15 00:12, Nicolas Goaziou wrote:
> Hello,
> 
>> On 13-10-15 14:43, L.C. Karssen wrote:
>>> Dear list,
>>>
>>> I tried to generate a report on my activities of this year using org
>>> clock tables, and found out that the 'quarterly block option' doesn't
>>> seem to work any more.
>>>
>>> This is what I do:
>>> #+begin_src org
>>> #+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives :block
>>> 2015-Q1 :tags "ProjectA"  :fileskip0
>>> #+END:
>>> #+end_src
>>>
>>> Until some time ago this worked. However, when I run it now I get:
>>> #+begin_src org
>>> #+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives :block
>>> 2015-Q3 :tags "ProjectA"  :fileskip0
>>> #+CAPTION: Clock summary at [2015-10-13 di 10:51], for 4th quarter of 2015.
>>> | File   | Headline |   Time |  |
>>> |+--++--|
>>> || ALL *Total time* | *2:08* |  |
>>> |+--++--|
>>> | todo.org   | *File time*  | *1:34* |  |
>>> || Programming  |   0:36 |  |
>>> || \_  support forum|| 0:36 |
>>> || Courses  |   0:58 |  |
>>> || \_  school 2016  || 0:58 |
>>> |+--++--|
>>> | todo_ProjectA.org  | *File time*  | *0:34* |  |
>>> || Financial|   0:21 |  |
>>> || \_  Progress reports || 0:21 |
>>> || WP4  |   0:13 |  |
>>> || \_  User support || 0:13 |
>>> #+END:
>>> #+end_src
>>>
>>> Notice how the caption mentions Q4 instead of Q3 like I asked. The same
>>> happens when I use Q1 or Q2.
>>>
>>> Could this be related to the fact that I upgraded to org 8.3 earlier
>>> this year? I just upgraded to org 20151005 but that didn't fix it.
> 
> This is fixed. Thank you.

Thank you for fixing it this quickly!


Lennart.


> 
> Regards,
> 

-- 
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
L.C. Karssen
Utrecht
The Netherlands

lenn...@karssen.org
http://blog.karssen.org
GPG key ID: A88F554A
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-



signature.asc
Description: OpenPGP digital signature


Re: [O] how to use org-lint

2015-10-14 Thread Nicolas Goaziou
Gregor Zattler  writes:

> When I do this, nothing happens, there is no buffer *Org lint*.

You may want to debug `org-lint', or probably
`org-lint--display-reports' then.

> When I do M-: (org-int) it takes a second or two but there is no
> *Org-lint* buffer and only this info in *Messages* (I XXXed personal
> info):

In non-interactive mode, `org-lint' spits out reports for further
processing, or nil when all lights are green. IOW, this is to be
expected.

Regards,



Re: [O] two simple derived backend questions

2015-10-14 Thread Rasmus
Hi Matt,

Matt Price  writes:

> a) add a horizontal rule
>
> pandoc expects a horizontal rule at each slide division.  So, if possible,
> I would like to add an hhr element at the end of every headline.

What’s a hhr element?

Can you just use something like
---

for a horizontal rule?  AFAIK, it’s inserted as "---".

> b) speker notes
>
> More importantly, org-reveal allows the use of speaker notes, thus:
>
> #+BEGIN_NOTES
>
> whatever I put here
>
> #+ END_NOTES
>
> is exported as:
>
> 
> whaever I put here
> 

For me it’s inserted as



whatever I put here



Cheers,
Rasmus

-- 
Don't panic!!!




Re: [O] two simple derived backend questions

2015-10-14 Thread Matt Price
On Wed, Oct 14, 2015 at 6:55 PM, Rasmus  wrote:

> Hi Matt,
>
> Matt Price  writes:
>
> > a) add a horizontal rule
> >
> > pandoc expects a horizontal rule at each slide division.  So, if
> possible,
> > I would like to add an hhr element at the end of every headline.
>
> What’s a hhr element?
>
> , I meant

> Can you just use something like
> ---
>
> for a horizontal rule?  AFAIK, it’s inserted as "---".
>
> yes.  but then I will have to take out all the "-"
elements if I want to go back to using my original org documents again.
The point is that I have lots of these lecture notes, and would prefer not
to alter them too severely if possible.

> b) speaker notes
> >
> > More importantly, org-reveal allows the use of speaker notes, thus:
> >
> > #+BEGIN_NOTES
> >
> > whatever I put here
> >
> > #+ END_NOTES
> >
> > is exported as:
> >
> > 
> > whaever I put here
> > 
>
> For me it’s inserted as
>
>
> 
> whatever I put here
>
> 
>
>
yes, that's right, I was being hasty. In any case, what I would like to do
is reproduce this behaviour in the markdown export; I have tried modifying
the md export but I am doing something wrong, clearly, and had hoped to get
some hints from the list...



> Cheers,
> Rasmus
>
> --
> Don't panic!!!
>
>
>


Re: [O] two simple derived backend questions

2015-10-14 Thread Charles C. Berry

On Wed, 14 Oct 2015, Matt Price wrote:


On Wed, Oct 14, 2015 at 6:55 PM, Rasmus  wrote:


Hi Matt,

Matt Price  writes:


a) add a horizontal rule

pandoc expects a horizontal rule at each slide division.  So, if

possible,

I would like to add an hhr element at the end of every headline.


What’s a hhr element?

, I meant



Can you just use something like
---

for a horizontal rule?  AFAIK, it’s inserted as "---".

yes.  but then I will have to take out all the "-"

elements if I want to go back to using my original org documents again.
The point is that I have lots of these lecture notes, and would prefer not
to alter them too severely if possible.



Err, what about



--8<---cut here---start->8---
#+MACRO: hhr #+MD: ---

* abc

first slide

{{{hhr}}}

* def

second slide

{{{hhr}}}

--8<---cut here---end--->8---




b) speaker notes


More importantly, org-reveal allows the use of speaker notes, thus:

#+BEGIN_NOTES

whatever I put here

#+ END_NOTES

is exported as:


whaever I put here



For me it’s inserted as



whatever I put here





yes, that's right, I was being hasty. In any case, what I would like to do
is reproduce this behaviour in the markdown export; I have tried modifying
the md export but I am doing something wrong, clearly, and had hoped to get
some hints from the list...




Ok here is a hint. You can add a menu item if you really need it.


--8<---cut here---start->8---
#+BEGIN_SRC emacs-lisp
  (org-export-define-derived-backend
   'md-plus
   'md
   :translate-alist '(
  (export-block . org-md-plus-export-block))
   :export-block'("NOTES"))

  (defun org-md-plus-export-block
  (export-block contents info)
"Transcode a EXPORT-BLOCK NOTES element from Org to md-plus.
CONTENTS is nil.  INFO is a plist holding contextual information."
(if (equal (org-element-property :type export-block) "NOTES")
(concat "\n"
(org-element-property :value export-block)
"\n")
  (let ((parent-backend (org-export-backend-parent backend)))
(if parent-backend
(org-export-with-backend
 parent-backend export-block contents info)

#+END_SRC


#+BEGIN_NOTES
just for the note takers...
#+END_NOTES

: Run like this
: M-x (org-export-to-buffer 'md-plus "***md-plus-out***")
--8<---cut here---end--->8---


HTH,

Chuck