[O] links to id:

2017-08-31 Thread kevinbanjo
I've moved my .org-id-locations file into cloud storage (similar to a
dropbox folder).   I set the org-id-locations-file to point to that file.
I set up a link to the id.  It works fine for that one session of emacs.
After I quit and restart, then I click on the link it says it can't be
found and asks me if I want to create a new header.  It won't find the link
again until I run the function

(org-id-update-id-locations)

Then its all good again for the session.

Any idea why?

Also after it jumps to the link its REAL slow.   It just hangs for maybe 30
seconds.

Help!


[O] recreating .org-id-locations file

2017-08-31 Thread kevinbanjo
is there a utility to do this if it gets messed up?


Re: [O] Conditional summing in column-mode?

2017-08-31 Thread Stig Brautaset

Nicolas Goaziou  writes:

>> Is there a hook I can use that is called before the property values
>> are extracted? (I wasn't able to find one.)
>
> There isn't.
>
> But here is an idea: `org-columns-summary-types' could also accept
> entries like:
>
>   (LABEL SUMMARIZE COLLECT)
>
> where COLLECT is a function called on each summarized entry. SUMMARIZE
> is applied on the values returned by COLLECT. When not provided, COLLECT
> default to `org-entry-get' as it is the case already.
>
> WDYT?

I think I like it. So I could then do something like:

(defun sb/org-collect-confirmed-days ()
  "Return `DAYS' for `CONFIRMED' entries, otherwise return 0"
  (let ((days (org-entry-get nil "DAYS"))
(confirmed (org-entry-get nil "CONFIRMED")))
(if (and days (string= "[X]" confirmed))
days
  "0")))

(setq org-columns-summary-types
  '(("X+" org-columns--summary-sum sb/org-collect-confirmed-days)))


That seems quite elegant! I guess the COLLECT function would be called
in `org-agenda-colview-summarize' such that the existing summary
functions would not need to change?

Though, there will then be a tight coupling between the "X+" label and
the column name, which is not ideal. Perhaps the COLLECT function could
(optionally?) take the column name (or the whole column spec) as an
argument so we could do something like:

(defun sb/org-collect-confirmed-things (thing)
  "Return `THING for `CONFIRMED' entries, otherwise return 0"
  (let ((thing (org-entry-get nil thing))
(confirmed (org-entry-get nil "CONFIRMED")))
(if (and thing (string= "[X]" confirmed))
thing
  "0")))

Then we could use =X+= to calculate both confirmed Days and Bananas:

#+COLUMNS: %TIMESTAMP(When) %ITEM(What) %CONFIRMED(Confirmed?){X/} 
%Days(X+) %Bananas(X+)

Does this make sense?

I don't mind having a go at adding support for this, though I admit I'm
slightly terrified of the code in `org-agenda-colview-summarize' :-)


Stig



[O] org-babel-expand-src-block v.s. org-babel-execute-src-block with Python

2017-08-31 Thread edgar

Hello,

I have noticed that doing C-c C-v v (org-babel-expand-src-block) and C-c 
C-c (org-babel-execute-src-block) yield different results in Python. I 
have attached a file with a MWE and a couple of questions to avoid 
clutter in the mailing list. Thank you in advance :) .


-

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!

Commercial and Bulk Mail Options!  I open emacs with ~emacs -Q~

#+BEGIN_SRC emacs-lisp :results none
  (org-babel-do-load-languages
 'org-babel-load-languages
 '((python . t)
   (emacs-lisp . t)
   (org . t)))
#+END_SRC

* This block works all the time
#+BEGIN_SRC python :python python3 :session
  import numpy as np
  for i in [1, 2, 3]:
  a = i

  print(a)
  a
#+END_SRC

#+RESULTS:
: 3


* My Python 3 block:
#+BEGIN_SRC python :python python3 :session
  import numpy as np
  for i in [1, 2, 3]:
  # Comment

  a = i

  print(a)
  a
#+END_SRC

#+RESULTS:

* What happens with C-c C-c:
If I do C-c C-c in the block, I get this in the *Python* buffer:
#+BEGIN_EXAMPLE
  >>> import numpy as np
  >>> for i in [1, 2, 3]:
  ... # Comment
  ... 
File "", line 3

  ^
  IndentationError: expected an indented block
  a = i
  >>> 
File "", line 1
  a = i
  ^
  IndentationError: unexpected indent
  >>> print(a)
  >>> 
  Traceback (most recent call last):
File "", line 1, in 
  NameError: name 'a' is not defined
  >>> open('/tmp/babel-112622VJ/python-112621jw', 'w').write(str(_))
  >>> 
  20
  >>> 
  >>> 'org_babel_python_eoe'
  >>> 'org_babel_python_eoe'
  >>> 
#+END_EXAMPLE

* What happens with C-c C-v v C-c C-c
If I do C-c C-v v C-c C-c in the block, I get this in the *Python* buffer
#+BEGIN_EXAMPLE
  >>> 3
  >>> 
#+END_EXAMPLE

* What happens with C-c ' C-c C-c
If I do C-c ' C-c C-c in the block, I get this in the *Python* buffer
#+BEGIN_EXAMPLE
  >>> 3
  >>> 
#+END_EXAMPLE

* Question:
  1. Is this the expected behaviour?
  2. Is there a way to get ~#+RESULTS:~ with C-c C-c directly for this kind of 
blocks?


[O] How to use the list search?

2017-08-31 Thread edgar

Hello,

I have tried to use https://lists.gnu.org/archive/html/emacs-orgmode/ 
without much success. If I type, for instance 
~org-babel-expand-src-block~ and ask for /reverse chronological order/ 
the first results are from 2009, then from 2008 and later from 2014.


https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=org-babel-expand-src-block=Search%21=emacs-orgmode=20=normal=date%3Alate

Then, if I ask for /chronological order/ I get 2010, 2009, etc.

https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=org-babel-expand-src-block=Search%21=emacs-orgmode=20=normal=date%3Aearly

Thus, I am currently using a web search engine like this:
site:https://lists.gnu.org/archive/html/emacs-orgmode 
org-babel-expand-src-block, and I do get results from recent years.


What am I doing wrong? Thanks.

-

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  



Re: [O] org-refile confuses jump-to-captured

2017-08-31 Thread Nicolas Goaziou
Hello,

"Raymond Zeitler"  writes:

> Point doesn't "jump-to-captured" when org-refile changes target during 
> capture.
>
> Try:
> Invoke org-capture
> Invoke org-refile while in the capture buffer, but specify a non-default 
> location, say A.org/Tasks
> Finish with C-c C-c
>
> The new item gets created in A.org as expected.  Yet Point incorrectly jumps 
> to where the item would've gone (todo.org/Tasks) had org-refile not changed 
> its location.
>
> Details:
> org-capture-templates contains (one of many):
>  ("t" "TODO (simple)" entry
>   (file+headline "~/todo.org" "Tasks")
>   "* TODO %?  %^g" :prepend t :jump-to-captured t)
>
> org-refile-targets has:
> (quote ((org-agenda-files :regexp . "Tasks")))

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] org-refile confuses jump-to-captured

2017-08-31 Thread Raymond Zeitler
Point doesn't "jump-to-captured" when org-refile changes target during capture.

Try:
Invoke org-capture
Invoke org-refile while in the capture buffer, but specify a non-default 
location, say A.org/Tasks
Finish with C-c C-c

The new item gets created in A.org as expected.  Yet Point incorrectly jumps to 
where the item would've gone (todo.org/Tasks) had org-refile not changed its 
location.

Details:
org-capture-templates contains (one of many):
 ("t" "TODO (simple)" entry
  (file+headline "~/todo.org" "Tasks")
  "* TODO %?  %^g" :prepend t :jump-to-captured t)

org-refile-targets has:
(quote ((org-agenda-files :regexp . "Tasks")))




[O] [Patch] Hide the file column in a clock report.

2017-08-31 Thread Michaël Cadilhac
Hi there;

Not sure it's for everyone, but I really don't need the file column in
my clock report, even though I use multiple files.  Here's a patch
that allows this, if there's any interest.

M.
From f251bf0fa764e245eabe88e3959e801af5c8fd37 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Cadilhac?= 
Date: Thu, 31 Aug 2017 19:37:55 +0100
Subject: [PATCH] Add the option of hiding the file column in a clock report

* contrib/orgmanual.org: Document the change.
* doc/org.texi (The clock table): Ditto.
* lisp/org-clock.el (org-clocktable-defaults): Add default value for
  :hidefiles.
(org-dblock-write:clocktable): Do not make "multiline" true if
hidefiles is.
* lisp/org-pcomplete.el (pcomplete/org-mode/block-option/clocktable):
  Add :hidefiles to completions.

TINYCHANGE
---
 contrib/orgmanual.org | 4 
 doc/org.texi  | 1 +
 lisp/org-clock.el | 5 -
 lisp/org-pcomplete.el | 5 +++--
 4 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/contrib/orgmanual.org b/contrib/orgmanual.org
index 6cc88a86e..e184fb51d 100644
--- a/contrib/orgmanual.org
+++ b/contrib/orgmanual.org
@@ -6253,6 +6253,10 @@ but you can specify your own function using the ~:formatter~ parameter.
 
   Indent each headline field according to its level.
 
+- :hidefiles ::
+
+  Hide the file column when multiple files are used to produced the table.
+
 - :tcolumns ::   
 
   Number of columns to be used for times.  If this is smaller than
diff --git a/doc/org.texi b/doc/org.texi
index a74f967f5..2c2f8d0cc 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -6689,6 +6689,7 @@ but you can specify your own function using the @code{:formatter} parameter.
  @r{the org table.  If you write it like @samp{50!}, then the}
  @r{headline will also be shortened in export.}
 :indent  @r{Indent each headline field according to its level.}
+:hidefiles   @r{Should the file column be hidden when multiple files are parsed?}
 :tcolumns@r{Number of columns to be used for times.  If this is smaller}
  @r{than @code{:maxlevel}, lower levels will be lumped into one column.}
 :level   @r{Should a level number column be included?}
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 6b967c673..05c46e18c 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -298,6 +298,7 @@ string as argument."
:link nil
:narrow '40!
:indent t
+   :hidefiles nil
:formula nil
:timestamp nil
:level nil
@@ -2391,6 +2392,7 @@ the currently selected interval size."
 	   (ws (plist-get params :wstart))
 	   (ms (plist-get params :mstart))
 	   (step (plist-get params :step))
+	   (hide-files (plist-get params :hidefiles))
 	   (formatter (or (plist-get params :formatter)
 			  org-clock-clocktable-formatter
 			  'org-clocktable-write-default))
@@ -2445,7 +2447,8 @@ the currently selected interval size."
 	 ;; Even though `file-with-archives' can consist of
 	 ;; multiple files, we consider this is one extended file
 	 ;; instead.
-	 (and (consp files) (not (eq scope 'file-with-archives)
+	 (and (not hide-files)
+		  (consp files) (not (eq scope 'file-with-archives)
 
 	(funcall formatter
 		 origin
diff --git a/lisp/org-pcomplete.el b/lisp/org-pcomplete.el
index 61ec5fad4..a92b44cb2 100644
--- a/lisp/org-pcomplete.el
+++ b/lisp/org-pcomplete.el
@@ -374,8 +374,9 @@ Complete a language in the first field, the header arguments and switches."
 			   ":tstart" ":tend" ":block" ":step"
 			   ":stepskip0" ":fileskip0"
 			   ":emphasize" ":link" ":narrow" ":indent"
-			   ":tcolumns" ":level" ":compact" ":timestamp"
-			   ":formula" ":formatter" ":wstart" ":mstart"
+			   ":hidefiles" ":tcolumns" ":level" ":compact"
+			   ":timestamp" ":formula" ":formatter"
+			   ":wstart" ":mstart"
 
 (defun org-pcomplete-case-double (list)
   "Return list with both upcase and downcase version of all strings in LIST."
-- 
2.14.1



Re: [O] [ANN] Agenda speed up

2017-08-31 Thread Nicolas Goaziou
Hello,

Samuel Wales  writes:

> On 8/27/17, Nicolas Goaziou  wrote:
>> I expect to see some interesting improvements when viewing the agenda
>> with a span larger than one day, or when generating an agenda view
>> without having touched most of the agenda files since last view.
>
> wow, great!  i have long wanted this.
>
>> The only thing that is expected to be defective is
>> `org-agenda-include-inactive-timestamps'. It has no effect at the
>> moment. I can activate it again, but I'm wondering if it's worth the
>> overhead. It is already possible to display clocks and closed timestamps
>> in the agenda. Other inactive timestamps could be ignored from the
>> agenda altogether. This is their sole purpose, after all. WDYT?
>
> totally disagree.  i totally rely on showing inactive timestamps.
>
> in fact, i created a face for inactive timestamps.
>
> i also do this:
>
> (setq org-agenda-inactive-leader "Inactive:  ")
>
> to better match Closed: and Clocked:.
>
> i keep logs like this:
>
> * CONVERSATION [#C] [2017-01-28 Sat 20:16] org changed its
> coloring for nokori, so past due shows tomorrow
>
> which show up nicely.  in fact, sometimes i do:
>
> * DONEKEEP [2017-08-27 Sun 12:52] sent email
>
> instead of doneifying.  showing closed tasks and donekeep at the same
> time makes sense to me.
>
> all of this keeps a record and can be sorted nicely in the outline
> with visual binary search, much better than date trees for me.
>
> i quite often will run agenda agenda on a restricted file, so that i
> can get all active timestamps, and closed timestamps, and clocking
> timestamps, and inactive timestamps for inside the restriction.  this
> gets sorted correctly, by timestamp.
>
> so i can see the active, closed, and clocking timestamps in context
> with my notes.  that is totally key for me.  missing inactive
> timestamps would violate the idea that i can bounce around the agenda
> agenda at various dates to see what i did on those dates.  for
> example, i go back 4 days to see what i did 4 days ago, and i see a
> record of everything, including random insertions of inactive
> timestamps, donekeep, conversation, closed, and clocked.  this feels
> like an essential org feature to me.
>
> i run agenda search also, to find relevant timestamps.  inactive are
> much more common than active.
>
> being able to see my logs with inactive timestamps in context with
> active timestamps and closed timestamps and clocking is useful.

The inactive time stamps are available again in the "wip-agenda-speedup"
branch.

Make sure to delete any local branch and start anew if you tried it
already. Also make sure to clear the cache, e.g., restarting the Emacs
session.

>From now on, there will be no more rebasing on that branch, only regular
commits.

Feedback still very welcome.

Regards,

-- 
Nicolas Goaziou



Re: [O] Ag (the Silver Searcher) knows about Org files now

2017-08-31 Thread Tim Visher
It's worth noting that you can already achieve that behavior using [-G |
--file-search-regex .*.org

```
ag -G '.*\.org'
```

The emacs ag package is also quite good. https://github.com/Wilfred/ag.el

On Thu, Aug 31, 2017 at 12:36 PM, William Denton  wrote:

> A recent commit means that the very useful tool ag recognizes --org as an
> option to let you search just Org files.
>
> Ag: https://github.com/ggreer/the_silver_searcher
>
> It'll take a while for that to make its way into package updates on
> different operating systems, but it's good news.
>
> Bill
> --
> William Denton :: Toronto, Canada   ---   Listening to Art:
> https://listeningtoart.org/
> https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
> Caveat lector.  ---   STAPLR: http://staplr.org/
>
>


[O] Ag (the Silver Searcher) knows about Org files now

2017-08-31 Thread William Denton
A recent commit means that the very useful tool ag recognizes --org as an option 
to let you search just Org files.


Ag: https://github.com/ggreer/the_silver_searcher

It'll take a while for that to make its way into package updates on different 
operating systems, but it's good news.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] visualization of org-todo-list

2017-08-31 Thread Pdj

Dear All,

in Org-Agenda(t) aka org-todo-list,

1) is it possible to get rid of the top lines
"Global list of TODO items of type: ALL
Available with ‘N r’: (0)[ALL] (1)TODO (2)WAIT ..." ?

2a) I would like to either fontify different categories with different 
faces, or change the background of the heading accorging to the 
category. Is this something doable?


2b) As an alternative to 2a, it would be great to fontify the heading 
according to the TODO tag. Is this any easier?


Thank you!




Re: [O] org-icalendar--combine-files aggressively releases buffers

2017-08-31 Thread Michaël Cadilhac
Hi there;

On 31 August 2017 at 15:00, Nicolas Goaziou  wrote:

> After a cursory look I think we should:
>
> 1. Remove (org-agenda-prepare-buffers files), which doesn't seem to be
>useful and can lead to errors (it can throw `nextfile') but nothing
>catches it.
>
> 2. let-bind `org-agenda-new-buffers' to nil around the unwind protect.
>
> I pushed it in master branch. Does it solve your issue?

Certainly does, thank you.  Took me some time: it's always a bit of a
nightmare to install git org together with some melpa packages that
depend on org.

Cheers;
M.



Re: [O] LaTeX > PDF blocked by extender chars in filename

2017-08-31 Thread Eduardo Mercovich

Hello Nicolas.

[...]
Nicolas, does this means we should modify these little things 
in Org?


Unfortunately these are not "little things". 


Sorry, it was my ignorance of the infrastructure on which this 
depends...


First, I assume "filenameencoding" is not necessarily utf8, so 
it cannot be a default value.


Ah, super clear.

More importantly, there is an ongoing issue with link encoding, 
which is debated in another (moribund) thread. IOW, "insert the 
filename as it is" is not easy, because Org needs to encode file 
names, but doesn't know for sure when a file name has been 
encoded.


Ok, got it. So, what should we do?
Here are some possible things to discuss... 

+ One thing that may be relatively simple to do (I won't assume 
"little things" anymore) is to warn in the documentation that for 
the moment, it's preferable to avoid extended chars in filenames.


+ Other point: is it logical to warn the User in the moment when 
the link is created, that we found extended chars and that may 
complicate things on the export? (I wouldn't recomend to change 
the filename even if from the HCI POV seems logical, since we 
don't know the origin of this filename, among other reasons, and 
could even be re-writed).


+ Does it make sense to check the files in the moment we write the 
latex file, and change the filename/s in that instant? Or at least 
to warn the User then?  

+ Farther in the future is that decision about to encode or not 
the links, in which I can't emit any opinion since it is far from 
my domain.


+ Other possibilities? 


--
eduardo mercovich

Donde se cruzan tus talentos 
con las necesidades del mundo, 
ahí está tu vocación. 
(Anónimo)




Re: [O] Automatic mtime and ctime on all or select group of trees?

2017-08-31 Thread Tim Visher
On Thu, Aug 31, 2017 at 9:44 AM, Eric S Fraga  wrote:

> On Thursday, 31 Aug 2017 at 07:55, Tim Visher wrote:
> > I would like to track the time I created a tree and the last time it was
> > edited, like ctime and mtime on a filesystem. Is that possible to have
> > happen automatically?
>
> I don't know of any org mechanism for handling this, especially the
> modified time element.  However, I would suggest you consider using a
> revision control system (mercurial, git) which would allow even finer
> tracking than this...
>

Thanks for the suggestion. It doesn't really meet my needs here in that I'm
really looking for org to behave more like a filesystem, not something that
I have to manually commit changes to.

If this doesn't already exist, does org already provide hooks or something
that I can plug in to? I would assume a heading-created and
heading-modified hook of some kind would allow me to implement my own
solution fairly cleanly.


[O] EXPORT_FILE_NAME property default to heading content?

2017-08-31 Thread Tim Visher
I like the filename of the exported file to always match the content of the
heading being exported. Is that possible? At the moment I basically
duplicate it like:

** Foo Heading
   :PROPERTIES:
   :EXPORT_FILE_NAME: Foo Heading
   :END:

Thanks in advance!

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail


Re: [O] LaTeX > PDF blocked by extender chars in filename

2017-08-31 Thread Nicolas Goaziou
Hello,

Eduardo Mercovich  writes:

> Rounding up:
> + if we include the grffilesetup options "{filenameencoding = utf8,
> space}", and
> + insert the filename as it is,
> + the pdf is exported and the referenced file is correctly included.
>
> Nicolas, does this means we should modify these little things in Org?

Unfortunately these are not "little things". 

First, I assume "filenameencoding" is not necessarily utf8, so it cannot
be a default value.

More importantly, there is an ongoing issue with link encoding, which is
debated in another (moribund) thread. IOW, "insert the filename as it
is" is not easy, because Org needs to encode file names, but doesn't
know for sure when a file name has been encoded.


Regards,

-- 
Nicolas Goaziou



Re: [O] org-icalendar--combine-files aggressively releases buffers

2017-08-31 Thread Nicolas Goaziou
Hello,

Michaël Cadilhac  writes:

> I have an idle timer that uses org-icalendar-combine-agenda-files to
> publish my agenda.  It may well be that I hadn't saved one of the Org
> files used in there, hence when  org-icalendar--combine-files uses :
>
> (org-release-buffers org-agenda-new-buffers)
>
> …I'm prompted to save before closing some buffers.  Worst, I'm even
> asked to clock-out if I actually say yes to that question.
>
> Personally, I now expect org to leave quite a lot of .org files open
> (namely, my inbox, my todo file, my 3 gmail agendas), so I'd be fine
> with simply not having any of these closed for me.  The right thing to
> do, however, is probably to check org-agenda-new-buffers before and
> after the files are processed, and close the new ones.
>
> Opinions?

After a cursory look I think we should:

1. Remove (org-agenda-prepare-buffers files), which doesn't seem to be
   useful and can lead to errors (it can throw `nextfile') but nothing
   catches it.

2. let-bind `org-agenda-new-buffers' to nil around the unwind protect.

I pushed it in master branch. Does it solve your issue?


Regards,

-- 
Nicolas Goaziou



Re: [O] Automatic mtime and ctime on all or select group of trees?

2017-08-31 Thread Eric S Fraga
On Thursday, 31 Aug 2017 at 07:55, Tim Visher wrote:
> I would like to track the time I created a tree and the last time it was
> edited, like ctime and mtime on a filesystem. Is that possible to have
> happen automatically?

I don't know of any org mechanism for handling this, especially the
modified time element.  However, I would suggest you consider using a
revision control system (mercurial, git) which would allow even finer
tracking than this...

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-723-g23eba9


signature.asc
Description: PGP signature


[O] org-icalendar--combine-files aggressively releases buffers

2017-08-31 Thread Michaël Cadilhac
Hi there;

I have an idle timer that uses org-icalendar-combine-agenda-files to
publish my agenda.  It may well be that I hadn't saved one of the Org
files used in there, hence when  org-icalendar--combine-files uses :

(org-release-buffers org-agenda-new-buffers)

…I'm prompted to save before closing some buffers.  Worst, I'm even
asked to clock-out if I actually say yes to that question.

Personally, I now expect org to leave quite a lot of .org files open
(namely, my inbox, my todo file, my 3 gmail agendas), so I'd be fine
with simply not having any of these closed for me.  The right thing to
do, however, is probably to check org-agenda-new-buffers before and
after the files are processed, and close the new ones.

Opinions?

M.



Re: [O] LaTeX > PDF blocked by extender chars in filename

2017-08-31 Thread Eduardo Mercovich

Aló Felipe.

The grffile package is already included, in: 
[[help:org-latex-default-packages-alist]] The text above is an 
Org hyperlink describing the "org-latex-default-packages-alist" 
variable.


Beautiful, loved the link inclusion in the mail, thanks. :)

However, grffile, as it is included, doesn't have any options 
(this is indicated with the empty quote-unquote next to the 
"grffile").



So, for now, in your LaTeX document, do:
#+LATEX_HEADER: grffilesetup{}
... and insert the options for grffile between "{" and "}". For 
example:

#+LATEX_HEADER: grffilesetup{filenameencoding = utf8, space}


It seems that you found the origin... :)

(I had to add a backslash before grffilesetup, as in 
"#+LATEX_HEADER: \grffilesetup{filenameencoding = utf8, space}")


I added this to the file options and tried the experiment again.

+ With the defaul tex file export 
"{img/ProcesoDeDise%C3%B1oDeInteraccion.pdf}" there is no diagram 
in the pdf. 

+ With a small change in the reference 
"{img/ProcesoDeDiseñoDeInteraccion.pdf}" now the pdf includes the 
diagram as it's supposed to be. 

I'm also not a programmer, but I did notice this odd behavior. 
:)


My friend, it seems you can see far and clear. :D

Rounding up:
+ if we include the grffilesetup options "{filenameencoding = 
utf8, space}", and

+ insert the filename as it is,
+ the pdf is exported and the referenced file is correctly 
included.


Nicolas, does this means we should modify these little things in 
Org? 



--
eduardo mercovich

Donde se cruzan tus talentos 
con las necesidades del mundo, 
ahí está tu vocación. 
(Anónimo)




Re: [O] Scheme output results

2017-08-31 Thread Neil Jerram
Hi Bastien,

Thanks for checking this. I've written to ass...@gnu.org to kick off sorting 
out the additional assignment.

Regards - Neil


  Original Message  
From: Bastien Guerry
Sent: Sunday, 27 August 2017 13:07
To: Nicolas Goaziou
Cc: Neil Jerram; emacs-orgmode@gnu.org
Subject: Re: [O] Scheme output results

Hi Neil,

Nicolas Goaziou  writes:

> I cannot, I'm not the maintainer. I'm Cc'ing Bastien. I'll apply your
> patch as soon as it is sorted out.

Thanks for contributing.

I’ve found your copyright assignment for GUILE but it does not cover
changes for GNU Emacs, you would need another copyright assignment for
this.

Thanks in advance,

-- 
Bastien




[O] org-to-odt src code blocks, customize listings-like

2017-08-31 Thread Uwe Brauer

Following 
http://orgmode.org/manual/Literal-examples-in-ODT-export.html#Literal-examples-in-ODT-export

I want to convert the following

#+begin_src matlab 
intv=[0,1.5];
y0=0;
N=40;
N2=80;
l=-2000;
[teul, yeul]=miimplement1(l,intv,y0,N);  
[teul2, yeul2]=miimplement1(l,intv,y0,N2);
yeulend=yeul(end);  
yeul2end=yeul2(end);  
disp('\begin{align*}')
fprintf('yeulend = %g  \n', yeulend)
fprintf('yeul2end = %g  \n', yeul2end)
disp('\end{align*}')
#+end_src

However the standard converted odt file is not as nice as the conversion
to latex using the listings package.

So the question is how to do that the documentation talks about 
org-odt-create-custom-styles-for-srcblocks which is set to t, in my
case, but how can I customize it to a more listings setting?




Re: [O] org --> odt with math

2017-08-31 Thread Nicolas Goaziou
Hello,

Uwe Brauer  writes:

> Using org (git version) GNU emacs 26 on Ubuntu 14.04,
> following
> http://orgmode.org/manual/Working-with-LaTeX-math-snippets.html#fn-2
> I have set
> (setq org-latex-to-mathml-convert-command
> "/usr/bin/latexmlmath \"%i\" --presentationmathml=%o")
>
> Latexmlmath is installed of course.
>
> I try to convert the following file to odt with mathml
>
> #+OPTIONS: LaTeX:t

There is no such thing.

It is #+options: tex:t

Regards,

-- 
Nicolas Goaziou



Re: [O] org-->odt math with mathtoweb fails also

2017-08-31 Thread Uwe Brauer
>>> "Uwe" == Uwe Brauer  writes:

   > Now I tried


   > (setq org-latex-to-mathml-convert-command
   > "java -jar %j -unicode -force -df %o %I"
   > org-latex-to-mathml-jar-file
   > "/home/oub/ALLES/src/MathWeb/mathtoweb.jar")

It seems the culprit is the math expression, the converter can only
dealy with very simple ones such as \[ \].




[O] Automatic mtime and ctime on all or select group of trees?

2017-08-31 Thread Tim Visher
I would like to track the time I created a tree and the last time it was
edited, like ctime and mtime on a filesystem. Is that possible to have
happen automatically?

Thanks in advance!

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail


[O] Is it possible to use footnote style links in PDF export?

2017-08-31 Thread Tim Visher
I have been exporting PDFs of my trees lately to print. I would like the
exported PDFs to not include hot links but instead to use footnote style
links. Is that possible?

Ideally, I would like to be able to export these footnote style links
directly to the print spool as a latex formatted document. That'd be even
better.

Thanks in advance!

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail


[O] org-->odt math with mathtoweb fails also

2017-08-31 Thread Uwe Brauer

Now I tried


(setq org-latex-to-mathml-convert-command
"java -jar %j -unicode -force -df %o %I"
org-latex-to-mathml-jar-file
"/home/oub/ALLES/src/MathWeb/mathtoweb.jar")

When I run org-odt-export-as-odf

I obtain

Saving file /home/oub/ALLES/tex/vorlesungen/HG/ExIng/neu.org...
Wrote /home/oub/ALLES/tex/vorlesungen/HG/ExIng/neu.org
Using vacuous schema
Wrote /tmp/odf-2719OWE/ltxmathml-in2719bgK
Running java -jar /home/oub/ALLES/src/MathWeb/mathtoweb.jar -unicode -force -df 
ltxmathml-out2719oqQ ltxmathml-in2719bgK
LaTeX to MathML conversion failed

* No LaTeX math environments were found, such as $...$ or 
\begin{equation}...\end{equation}. An output file will still be created 
containing your original text.

-- Conversion process completed successfully.


I am puzzled
--
The following File was created:  ltxmathml-out2719oqQ
** It contains your original text. **
--

Its full path is: /tmp/odf-2719OWE/ltxmathml-out2719oqQ
 [2 times]
OpenDocument export failed: No Math formula created
pabbrev scavenging...




[O] [details] (was: org --> odt with math)

2017-08-31 Thread Uwe Brauer
>>> "Uwe" == Uwe Brauer  writes:

   > Hi
   > Using org (git version) GNU emacs 26 on Ubuntu 14.04,
   > following
   > http://orgmode.org/manual/Working-with-LaTeX-math-snippets.html#fn-2
   > I have set
   > (setq org-latex-to-mathml-convert-command
   > "/usr/bin/latexmlmath \"%i\" --presentationmathml=%o")

   > Latexmlmath is installed of course.

   > I try to convert the following file to odt with mathml

   > #+OPTIONS: LaTeX:t

   > This 
   > \begin{equation}
   > \label{eq:aned-ex:1}
   > \begin{cases}
   >   y^{\prime}&= -2000(y-\cos(t))\\
   >y_0&=0 \qquad 0\leq t \leq 1.5
   >  \end{cases}
   > \end{equation}

   > But the equation is just exported as ASCII code. What do I miss?



-  I exported it via org-export-dispatch and then I chose odt.

-  then I tried org-odt-export-as-odf and obtained

Using vacuous schema
Wrote /tmp/odf-2719bZW/ltxmathml-in2719ojc
Running /usr/bin/latexmlmath "" --presentationmathml=ltxmathml-out27191ti
LaTeX to MathML conversion failed
XPath error : Undefined namespace prefix
 error : xmlXPathCompiledEval: evaluation failed at 
/usr/share/perl5/LaTeXML/Common/XML.pm line 326.

OpenDocument export failed: No Math formula created
Updating buffer list...done

This is bad, but I am not sure who is the culprit here.




[O] org --> odt with math

2017-08-31 Thread Uwe Brauer
Hi

Using org (git version) GNU emacs 26 on Ubuntu 14.04,
following
http://orgmode.org/manual/Working-with-LaTeX-math-snippets.html#fn-2
I have set
(setq org-latex-to-mathml-convert-command
"/usr/bin/latexmlmath \"%i\" --presentationmathml=%o")

Latexmlmath is installed of course.

I try to convert the following file to odt with mathml
#+OPTIONS: LaTeX:t

This 
\begin{equation}
\label{eq:aned-ex:1}
\begin{cases}
  y^{\prime}&= -2000(y-\cos(t))\\
   y_0&=0 \qquad 0\leq t \leq 1.5
 \end{cases}
\end{equation}

But the equation is just exported as ASCII code. What do I miss?

Regards

Uwe Brauer 







Re: [O] keyboard scrolling with inline images

2017-08-31 Thread Kaushal Modi
On Thu, Aug 31, 2017, 3:01 AM Nicolas Goaziou 
wrote:

> Hello,
>
> kevinbanjo  writes:
>
> > Hi, I have an orgfile with some inlined images.   They aren't really big.
> > I mean they are only about 1/2 or less the size of my emacs frame, but I
> > can't seem to scroll past them with the keyboard.  I start with the
> cursor
> > on the top of the file and I hit down arrow and it goes down to the
> image,
> > seems to get just past it then snaps right back up to the top of it.
>  If I
> > cursor right it makes it past it.   I'm using spacemacs if that helps.
>
> It sounds like an Emacs issue more than an Org one. You may want to
> report it to Emacs dev.
>

It would be better to email help-gnu-em...@gnu.org.

If you can recreate the issue in emacs -Q, you can even file a bug report
with steps to recreate the issue (M-x report-emacs-bug).

> --

Kaushal Modi


Re: [O] help with beamer and org: pictures alignment and size

2017-08-31 Thread Eric S Fraga
On Thursday, 31 Aug 2017 at 09:44, Luca Ferrari wrote:

[...]

> Thanks, it provided me a good hint, so that now my slide is as follows
> (I nuked the list):
>
> ** My slide
> #+ATTR_LATEX: :width 0.2\textwidth
>  [[./images/debian.png]]
>  [[./images/redhat.png]]
> [[./images/cisco.png]]
> [[./images/skype.png]]
>
> The above applies to all the images at once (I can confirm in the case
> of a list you have to apply it to every item).

So, does this do what you wanted or not?  The other thing you can do is
globally set org-latex-image-default-width, for instance.

> Anyway, I suspect I'm running a quite old org-mode: 9.0.2.
> Try to update it now.

No need as such; 9.0 is new enough for this type of situation.  I was
concerned you were using 8.x or even older.

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-716-g7a247b


signature.asc
Description: PGP signature


Re: [O] help with beamer and org: pictures alignment and size

2017-08-31 Thread Luca Ferrari
On Wed, Aug 30, 2017 at 12:52 PM, Eric S Fraga  wrote:
> First of all, it depends on what version of org you are using.  Assuming
> you are using a recent version, your syntax here is wrong; it should be:
>
>   #+ATTR_LATEX: :width 0.1\textwidth
>
>>- [[./images/debian.png]]
>>- [[./images/redhat.png]]

Thanks, it provided me a good hint, so that now my slide is as follows
(I nuked the list):

** My slide
#+ATTR_LATEX: :width 0.2\textwidth
 [[./images/debian.png]]
 [[./images/redhat.png]]
[[./images/cisco.png]]
[[./images/skype.png]]


The above applies to all the images at once (I can confirm in the case
of a list you have to apply it to every item).

Anyway, I suspect I'm running a quite old org-mode: 9.0.2.
Try to update it now.

Thanks,
Luca



Re: [O] [PATCH] org-babel-execute-buffer "No surrounding element" error

2017-08-31 Thread Nicolas Goaziou
Hello,

Wei Tang  writes:

> I was trying to use org-babel-execute-buffer to update all org-babel
> code block results for a org document. It works fine when the code block
> is visible, but when it's hidden, I got the "user-error: No surrounding
> element" error and nothing was executed.

I cannot reproduce it.

> Adding `(outline-show-all)` fixed this issue for me. Does this look like
> a good solution?

I don't know. It sounds odd. Could you show an ECM?

Regards,

-- 
Nicolas Goaziou



Re: [O] keyboard scrolling with inline images

2017-08-31 Thread Nicolas Goaziou
Hello,

kevinbanjo  writes:

> Hi, I have an orgfile with some inlined images.   They aren't really big.
> I mean they are only about 1/2 or less the size of my emacs frame, but I
> can't seem to scroll past them with the keyboard.  I start with the cursor
> on the top of the file and I hit down arrow and it goes down to the image,
> seems to get just past it then snaps right back up to the top of it.   If I
> cursor right it makes it past it.   I'm using spacemacs if that helps.

It sounds like an Emacs issue more than an Org one. You may want to
report it to Emacs dev.

Regards,

-- 
Nicolas Goaziou



Re: [O] header spacing

2017-08-31 Thread Nicolas Goaziou
Hello,

kevinbanjo  writes:

> when I do an alt-enter to create a heading below at the same level it puts
> one space before what I type for the heading name.
>
> When I want to demote that heading with alt-right it puts two which I then
> have to go back and delete.

I cannot reproduce it. Could you update Org, if possible, and try with
a minimal configuration?

Regards,

-- 
Nicolas Goaziou