Re: [O] [babel] Working dir incorrect

2017-03-14 Thread numbch...@gmail.com
Yes, it seems like this, I have a similar question at here:
https://lists.gnu.org/archive/html/emacs-orgmode/2017-03/msg00283.html

[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Tue, Mar 14, 2017 at 3:28 PM, Eric S Fraga  wrote:

> On Monday, 13 Mar 2017 at 15:42, Nick Dokos wrote:
>
> [...]
>
> > Can I make a plea for an ECM? If you provide one, I can spend five
> > minutes testing it, but without it I'll have to do real work to get an
> > example together and that's much more unlikely to happen.
>
> I've found that babel languages that start specific buffers that
> persist (e.g. octave, gnuplot) will be started in a particular
> directory based on a given org file.  If subsequently another org file,
> in a different directory, is visited, babel won't change the directory
> for existing babel buffers (and probably cannot easily do so in some
> cases?).
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8
>


[O] special blocks

2017-03-14 Thread Marvin Doyley
Does anybody know how to set the foreground color of special blocks ?

Cheers,
M



Re: [O] Tags completion with Helm

2017-03-14 Thread aaermolov

followup:

Further debugging revealed that helm-hide-minibuffer-maybe is not guilty
of anything. But for some reason, helm-mode-fuzzy-match /
helm-completion-in-region-fuzzy-match fix the problem, but only using 2+
chars queries. Maybe some other customizations are responsible for that.


aaermo...@gmail.com writes:

> Yes, with some some config fiddling I've seen this crm-based tagging
> wotkflow you describe, but problems were the same.
>
> Suddenly, I tried to remove some customization code for Helm (namely
> this -
> https://github.com/search?q=helm-hide-minibuffer-maybe=Code=✓)
> and it seems proper completion starts working to some extent.
>
> Anyway, thanks for prompt reply and mind seeding! :)
>
>
> John Kitchin  writes:
>
>> I can't reproduce that behavior on my end. I see different behavior though.
>> My helm window is titled crm-complete, and the buffer is called
>> *helm-mode-crm-complete*
>>
>> This seems to be the helm core package I am using.
>>
>> helm-core-20170112.917
>>
>> John
>>
>> ---
>> Professor John Kitchin
>> Doherty Hall A207F
>> Department of Chemical Engineering
>> Carnegie Mellon University
>> Pittsburgh, PA 15213
>> 412-268-7803
>> @johnkitchin
>> http://kitchingroup.cheme.cmu.edu
>>
>>
>> On Tue, Mar 14, 2017 at 12:24 PM,  wrote:
>>
>>> Hi John,
>>>
>>> no, these do not seem to fix anything. :(
>>>
>>> Namely, the following is still happens:
>>>
>>> 1) I'm pressing C-c C-q then TAB to select freeform input
>>> 2) then there is "org-set-tags" above candidates list and buffer title
>>>is "*helm-mode-org-set-tags*"
>>> 3) after any input candidates list looks like "[?]"
>>>(initial candidates disappeared)
>>>
>>> regards,
>>> Alex
>>>
>>> John Kitchin  writes:
>>>
>>> > have you tried these settings:
>>> >
>>> > (setq helm-mode-fuzzy-match t
>>> >   helm-completion-in-region-fuzzy-match t)
>>> >
>>> > According to https://github.com/emacs-helm/helm/wiki/Fuzzy-matching, the
>>> > make fuzzy matching work everywhere.
>>> >
>>> > It seems to work ok for me.
>>> >
>>> > aaermo...@gmail.com writes:
>>> >
>>> >> Hi,
>>> >>
>>> >> I've spotted a problem with completing Org tags with Helm. While Helm is
>>> >> not at least about [fuzzy] completion, when I try to input any
>>> >> completion subsequence, all candidates are gone and variants are
>>> >> shrinked to whatever will be typed.
>>> >>
>>> >> Is there any widely known mistake, that I've stepped into with this
>>> >> case? Can anyone point me to some comprehensible direction?
>>> >>
>>> >> regards,
>>> >> Alex
>>> >
>>> >
>>> > --
>>> > Professor John Kitchin
>>> > Doherty Hall A207F
>>> > Department of Chemical Engineering
>>> > Carnegie Mellon University
>>> > Pittsburgh, PA 15213
>>> > 412-268-7803
>>> > @johnkitchin
>>> > http://kitchingroup.cheme.cmu.edu
>>>


signature.asc
Description: PGP signature


Re: [O] [bug, ox-latex] Parsed keywords and export with subscript

2017-03-14 Thread Nicolas Goaziou
Hello,

Rasmus  writes:

> It would seem that parse doesn't behave correctly when
> org-export-with-sub-superscripts is turned off via #+options.
>
> Example:
>
> #+options: ^:nil
> #+date: a_b
>
> * test
> a_b
>
> Exported result with ox-latex:
>
> %% ...
> \date{a\(\_b\)}
> %% ...
> \section{test}
> a\_b
> %% ...
>
> Expected result 
>
> %% ...
> \date{a\_b}
> %% ...
> \section{test}
> a\_b
> %% ...

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Tags completion with Helm

2017-03-14 Thread aaermolov
Yes, with some some config fiddling I've seen this crm-based tagging
wotkflow you describe, but problems were the same.

Suddenly, I tried to remove some customization code for Helm (namely
this -
https://github.com/search?q=helm-hide-minibuffer-maybe=Code=✓)
and it seems proper completion starts working to some extent.

Anyway, thanks for prompt reply and mind seeding! :)


John Kitchin  writes:

> I can't reproduce that behavior on my end. I see different behavior though.
> My helm window is titled crm-complete, and the buffer is called
> *helm-mode-crm-complete*
>
> This seems to be the helm core package I am using.
>
> helm-core-20170112.917
>
> John
>
> ---
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>
> On Tue, Mar 14, 2017 at 12:24 PM,  wrote:
>
>> Hi John,
>>
>> no, these do not seem to fix anything. :(
>>
>> Namely, the following is still happens:
>>
>> 1) I'm pressing C-c C-q then TAB to select freeform input
>> 2) then there is "org-set-tags" above candidates list and buffer title
>>is "*helm-mode-org-set-tags*"
>> 3) after any input candidates list looks like "[?]"
>>(initial candidates disappeared)
>>
>> regards,
>> Alex
>>
>> John Kitchin  writes:
>>
>> > have you tried these settings:
>> >
>> > (setq helm-mode-fuzzy-match t
>> >   helm-completion-in-region-fuzzy-match t)
>> >
>> > According to https://github.com/emacs-helm/helm/wiki/Fuzzy-matching, the
>> > make fuzzy matching work everywhere.
>> >
>> > It seems to work ok for me.
>> >
>> > aaermo...@gmail.com writes:
>> >
>> >> Hi,
>> >>
>> >> I've spotted a problem with completing Org tags with Helm. While Helm is
>> >> not at least about [fuzzy] completion, when I try to input any
>> >> completion subsequence, all candidates are gone and variants are
>> >> shrinked to whatever will be typed.
>> >>
>> >> Is there any widely known mistake, that I've stepped into with this
>> >> case? Can anyone point me to some comprehensible direction?
>> >>
>> >> regards,
>> >> Alex
>> >
>> >
>> > --
>> > Professor John Kitchin
>> > Doherty Hall A207F
>> > Department of Chemical Engineering
>> > Carnegie Mellon University
>> > Pittsburgh, PA 15213
>> > 412-268-7803
>> > @johnkitchin
>> > http://kitchingroup.cheme.cmu.edu
>>


signature.asc
Description: PGP signature


Re: [O] Tags completion with Helm

2017-03-14 Thread John Kitchin
I can't reproduce that behavior on my end. I see different behavior though.
My helm window is titled crm-complete, and the buffer is called
*helm-mode-crm-complete*

This seems to be the helm core package I am using.

helm-core-20170112.917

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Tue, Mar 14, 2017 at 12:24 PM,  wrote:

> Hi John,
>
> no, these do not seem to fix anything. :(
>
> Namely, the following is still happens:
>
> 1) I'm pressing C-c C-q then TAB to select freeform input
> 2) then there is "org-set-tags" above candidates list and buffer title
>is "*helm-mode-org-set-tags*"
> 3) after any input candidates list looks like "[?]"
>(initial candidates disappeared)
>
> regards,
> Alex
>
> John Kitchin  writes:
>
> > have you tried these settings:
> >
> > (setq helm-mode-fuzzy-match t
> >   helm-completion-in-region-fuzzy-match t)
> >
> > According to https://github.com/emacs-helm/helm/wiki/Fuzzy-matching, the
> > make fuzzy matching work everywhere.
> >
> > It seems to work ok for me.
> >
> > aaermo...@gmail.com writes:
> >
> >> Hi,
> >>
> >> I've spotted a problem with completing Org tags with Helm. While Helm is
> >> not at least about [fuzzy] completion, when I try to input any
> >> completion subsequence, all candidates are gone and variants are
> >> shrinked to whatever will be typed.
> >>
> >> Is there any widely known mistake, that I've stepped into with this
> >> case? Can anyone point me to some comprehensible direction?
> >>
> >> regards,
> >> Alex
> >
> >
> > --
> > Professor John Kitchin
> > Doherty Hall A207F
> > Department of Chemical Engineering
> > Carnegie Mellon University
> > Pittsburgh, PA 15213
> > 412-268-7803
> > @johnkitchin
> > http://kitchingroup.cheme.cmu.edu
>


Re: [O] Tags completion with Helm

2017-03-14 Thread aaermolov
Hi John,

no, these do not seem to fix anything. :(

Namely, the following is still happens:

1) I'm pressing C-c C-q then TAB to select freeform input
2) then there is "org-set-tags" above candidates list and buffer title
   is "*helm-mode-org-set-tags*"
3) after any input candidates list looks like "[?]"
   (initial candidates disappeared)

regards, 
Alex

John Kitchin  writes:

> have you tried these settings:
>
> (setq helm-mode-fuzzy-match t
>   helm-completion-in-region-fuzzy-match t)
>
> According to https://github.com/emacs-helm/helm/wiki/Fuzzy-matching, the
> make fuzzy matching work everywhere.
>
> It seems to work ok for me.
>
> aaermo...@gmail.com writes:
>
>> Hi,
>>
>> I've spotted a problem with completing Org tags with Helm. While Helm is
>> not at least about [fuzzy] completion, when I try to input any
>> completion subsequence, all candidates are gone and variants are
>> shrinked to whatever will be typed.
>>
>> Is there any widely known mistake, that I've stepped into with this
>> case? Can anyone point me to some comprehensible direction?
>>
>> regards,
>> Alex
>
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu


signature.asc
Description: PGP signature


Re: [O] "wrong=type-argument listp" on publish

2017-03-14 Thread Nick Dokos
Matt Price  writes:

> On Mon, Mar 6, 2017 at 3:51 PM, Nick Dokos  wrote:
>
> Matt Price  writes:
>
> > Anyone else getting this? I'm unable to publish.  I don't see what is 
> unlist-like about the first
> > argument to plist-put. 
> > --
> > Debugger entered--Lisp error: (wrong-type-argument listp 
> (:base-directory "~/RLG231/Lectures/"
> > :base-extension "org" :publishing-directory 
> "/ssh:matt@shimano:/var/www/sandbox/RLG231/Lectures/Slides"
> > :recursive nil :publishing-function mwp-org-reveal-publish-to-html 
> :headline-levels 4 :exclude
> > "AllLectures.org" :exclude-tags note noexport :auto-preamble t))
> >   plist-put((:base-directory "~/RLG231/Lectures/" :base-extension "org" 
> :publishing-directory "/
> > ssh:matt@shimano:/var/www/sandbox/RLG231/Lectures/Slides" :recursive 
> nil :publishing-function
> > mwp-org-reveal-publish-to-html :headline-levels 4 :exclude 
> "AllLectures.org" :exclude-tags note noexport
>
> I think it's complaining about :exclude-tags - maybe try ("note" 
> "noexport") as the value?
>
> ah, thank you so much Nick. I missed this response last week and only just 
> now saw it -- you've solved my problem completely. Thank you!!
>

Glad it helped!

-- 
Nick




Re: [O] Reproducing a table

2017-03-14 Thread Christian Moe

Jarmo Hurri writes:

> In some earlier version of Org the following
> used to work:
>
>   #+name: my-table
>   | row 1 | 1 | 2 |
>   | row 2 | 3 | 4 |
>   |---+---+---|
>   |   | col 1 | col 2 |
>
>   #+call: my-table() :hlines yes
>
> That is, in the past the table name used to sort of define a function
> which could then be called to reproduce the table. But this produced
> errors in the current version, so I started to figure out ways to
> achieve the same end result.

I see! I had no idea that this was possible, but it does indeed work for
me (I'm still on version 8.3.4).

Yours,
Christian



Re: [O] "wrong=type-argument listp" on publish

2017-03-14 Thread Matt Price
On Mon, Mar 6, 2017 at 3:51 PM, Nick Dokos  wrote:

> Matt Price  writes:
>
> > Anyone else getting this? I'm unable to publish.  I don't see what is
> unlist-like about the first
> > argument to plist-put.
> > --
> > Debugger entered--Lisp error: (wrong-type-argument listp
> (:base-directory "~/RLG231/Lectures/"
> > :base-extension "org" :publishing-directory "/ssh:matt@shimano:/var/www/
> sandbox/RLG231/Lectures/Slides"
> > :recursive nil :publishing-function mwp-org-reveal-publish-to-html
> :headline-levels 4 :exclude
> > "AllLectures.org" :exclude-tags note noexport :auto-preamble t))
> >   plist-put((:base-directory "~/RLG231/Lectures/" :base-extension "org"
> :publishing-directory "/
> > ssh:matt@shimano:/var/www/sandbox/RLG231/Lectures/Slides" :recursive
> nil :publishing-function
> > mwp-org-reveal-publish-to-html :headline-levels 4 :exclude
> "AllLectures.org" :exclude-tags note noexport
>
> I think it's complaining about :exclude-tags - maybe try ("note"
> "noexport") as the value?
>
> ah, thank you so much Nick. I missed this response last week and only just
now saw it -- you've solved my problem completely. Thank you!!


Re: [O] Complex conversion of text to org table

2017-03-14 Thread John Kitchin
See my solution here:
http://emacs.stackexchange.com/questions/31417/function-to-paste-text-as-a-orgmode-table/31425#31425

Vicente Vera writes:

> OK that's a nice trick. Very useful for CSV files. Thanks!
>
> 2017-03-12 16:52 GMT+00:00 Scott Randby :
>
>> On 03/12/2017 11:35 AM, Xebar Saram wrote:
>> > Thx Vicente!
>> >
>> > Thats a decent idea. can this be all wrapped in a function (i have zero
>> > coding skills :)) ? i have hundreds of these tables to convert :)
>> >
>> > best!
>> >
>> > Z
>>
>> OR
>>
>> 3/4, cup, milk
>> 2, tablespoons, white vinegar
>> 1, cup, all-purpose flour
>> 2, tablespoons, white sugar
>> 1, teaspoon, baking powder
>> 1/2, teaspoon, baking soda
>> 1/2, teaspoon, salt
>> 1,, egg
>> 2, tablespoons, butter melted
>> ,, cooking spray
>>
>> | 3/4 | cup | milk  |
>> |   2 | tablespoons | white vinegar |
>> |   1 | cup | all-purpose flour |
>> |   2 | tablespoons | white sugar   |
>> |   1 | teaspoon| baking powder |
>> | 1/2 | teaspoon| baking soda   |
>> | 1/2 | teaspoon| salt  |
>> |   1 | | egg   |
>> |   2 | tablespoons | butter melted |
>> | | | cooking spray |
>>
>> Scott
>>
>> >
>> > On Sun, Mar 12, 2017 at 5:26 PM, Vicente Vera > > > wrote:
>> >
>> > Hello. In this case Org splits into columns everytime it sees a
>> > space, so "baking soda" ends up in two columns. A brute force
>> > solution: replace the spaces between words that shouldn't be put
>> > into separated columns with an underscore:
>> >
>> > 1_cup all-purpose_flour
>> >
>> > Convert it to an Org table and then do a quick M-x replace-string to
>> > replace '_' with ' '.
>> >
>> > 2017-03-12 15:14 GMT+00:00 Xebar Saram > > >:
>> >
>> > Hi list
>> >
>> > so im trying to use orgmode to collect food recepies. i have one
>> > issue which is to convert text based ingridents list into org
>> > tables.
>> >
>> > for example take this list
>> >
>> > 3/4 cup milk
>> > 2 tablespoons white vinegar
>> > 1 cup all-purpose flour
>> > 2 tablespoons white sugar
>> > 1 teaspoon baking powder
>> > 1/2 teaspoon baking soda
>> > 1/2 teaspoon salt
>> > 1 egg
>> > 2 tablespoons butter, melted
>> > cooking spray
>> >
>> > if i mark this as a region and issue
>> > `org-table-create-or-convert-from-region` this is the result
>> >
>> > | 3/4 | cup | milk| |  |
>> >  | |   | |
>> > |   2 | tablespoons | white   | vinegar | (%or | better
>> > | yet | lemon | juice%) |
>> > |   1 | cup | all-purpose | flour   |  |
>> >  | |   | |
>> > |   2 | tablespoons | white   | sugar   |  |
>> >  | |   | |
>> > |   1 | teaspoon| baking  | powder  |  |
>> >  | |   | |
>> > | 1/2 | teaspoon| baking  | soda|  |
>> >  | |   | |
>> > | 1/2 | teaspoon| salt| |  |
>> >  | |   | |
>> > |   1 | egg | | |  |
>> >  | |   | |
>> > |   2 | tablespoons | butter, | melted  |  |
>> >  | |   | |
>> > | cooking | spray   | | |  |
>> >  | |   | |
>> >
>> >
>> > as you can see it got the amount (1/2) and the unit (cup) right
>> > yet the actual ingredients is cut into several columns
>> >
>> > i dont really know how to deal with this. is there a more
>> > intelligent way of auto directing the conversion to split it the
>> > correct way?
>> >
>> > if not any suggestions on how to convert it in a better way?
>> > perhaps a command to quick delete the separator (|) across all
>> > the column?
>> >
>> > thx alot in advance
>> >
>> > Z
>> >
>> >
>> >
>>
>>


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Tags completion with Helm

2017-03-14 Thread John Kitchin
have you tried these settings:

(setq helm-mode-fuzzy-match t
  helm-completion-in-region-fuzzy-match t)

According to https://github.com/emacs-helm/helm/wiki/Fuzzy-matching, the
make fuzzy matching work everywhere.

It seems to work ok for me.

aaermo...@gmail.com writes:

> Hi,
>
> I've spotted a problem with completing Org tags with Helm. While Helm is
> not at least about [fuzzy] completion, when I try to input any
> completion subsequence, all candidates are gone and variants are
> shrinked to whatever will be typed.
>
> Is there any widely known mistake, that I've stepped into with this
> case? Can anyone point me to some comprehensible direction?
>
> regards,
> Alex


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] org-ref and the minibuffer

2017-03-14 Thread John Kitchin
You can get that for articles like this:

#+BEGIN_SRC emacs-lisp
(setf (cdr (assoc "article" (cdr (assoc "text" 
org-ref-formatted-citation-formats "${title}")
#+END_SRC


Julian M. Burgos writes:

> Dear list,
>
> It is possible to customize the information shown in the minibuffer when
> the cursor (or the mouse pointer) is on top of an org-ref bibliography link?
> The default seems to be a formatted version of the citation, which
> includes authors (all of them), title, etc.  I would like just to see
> the title.
> Thanks!
>
> Julian


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] How do you store web pages for reference?

2017-03-14 Thread Adonay Felipe Nogueira
Note 1: You might need to load "org-bibtex".

Note 2: "org-bibtex" only accepts some properties to be exposed to
org-capture, it's not an exact parser like "bibtex" package. As a future
suggestion: I would like to suggest "org-bibtex" to be improved so as to
take all fields parsed by the "bibtex" package, but I don't know how to
do that yet. This would allow non-default BibTeX entries and fields such
as the "url" field (which is already supported), and other ones such as
"urlaccessdate" (this one is used by ABNTeX) and "note" to be made
available transparently through org-capture templates.

Note 3: Each time a reference entry is found in a refere file, such
entry should be removed from the references list, so as to avoid such
reference key being matched twice, even if there is a repeated reference
file. This is currently the only control mechanism that exists for this
hack.

Note 4: As an improvement, I still have to find a way to use an
org-capture template without being required to bind such template to a
key, as this can conflict with other templates or keys. I'm accepting
suggestions for such as long as I can figure out how it exactly works.

Note 5: I'm not a programmer, so I'm slow on picking up programming
concepts or languages' syntax.

Note 6: You must evaluate the first source code block once for the first
time the file is openned and everytime you adapt/change/modify the
source code block (for both cases: unless you preset the
"org-capture-templates" to reflect the same behavior in your overall
Emacs setup. For the last case: you must also make sure that there are
no old duplicates of such items in "org-capture-templates" otherwise
they might cause obsolete results or always raise an error).

Note 7: You must evaluate the second source code block
(import-references) once before exporting if either the "Reference" headline is
empty, if the references inside "References" headline is outdated, and
if the overall document contains a broken link (this one will already
cause an error that will stop exporting if broken-links #+OPTION is set
to nil).

Having read the notes above, I do the following:

# Begin of Org file
#+OPTIONS: d:(not "BibTeX_Importer")

:BibTeX_Importer:
#+BEGIN_SRC emacs-lisp :results silent
  (add-to-list 'org-capture-templates
   '("B" "BibTeX references"
 item (file+headline
   reference-parent-file
   "References")
 "<<%:key>> %:author. *%:title*. %:year. %:annote. 
_[[%:url][Source]]_."
 :immediate-finish t))
#+END_SRC

#+NAME: reference-files
- /home/adfeno/Publico/Referencias_BibTeX.bib

#+NAME: references
- Stallman-2015-Free_Software_and_Your_Freedom

#+NAME: import-references
#+BEGIN_SRC emacs-lisp :var reference-parent-file=(buffer-file-name) :var 
reference-files=reference-files :var referenced-entries=references
  (dolist (current-reference-file reference-files)
(find-file (car current-reference-file))
(let ((reference-file-buffer (buffer-name)))
  (dolist (current-entry referenced-entries)
(set-buffer reference-file-buffer)
(when (bibtex-find-entry (car current-entry))
  (org-capture nil "B")
  (setq referenced-entries (delete current-entry 
referenced-entries))
#+END_SRC
:END:

* References
# End of Org file

Respectfully, Adonay.
-- 
* https://libreplanet.org/wiki/User:Adfeno
* Palestrante e consultor sobre software livre (não confundir com
  gratis).
* "WhatsApp"? Ele não é livre, por isso não uso. Iguais a ele prefiro
  Ring, ou Tox. Quer outras formas de contato? Adicione o vCard que
  está no endereço acima aos teus contatos.
* Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
  aceito, mas não repasso. Entrego apenas em formatos favoráveis ao
  software livre. Favor entrar em contato em caso de dúvida.
* "People said I should accept the world. Bullshit! I don't accept the
  world."
 --- Richard Stallman



Re: [O] [babel] Working dir incorrect

2017-03-14 Thread Eric S Fraga
On Monday, 13 Mar 2017 at 15:42, Nick Dokos wrote:

[...]

> Can I make a plea for an ECM? If you provide one, I can spend five
> minutes testing it, but without it I'll have to do real work to get an
> example together and that's much more unlikely to happen.

I've found that babel languages that start specific buffers that
persist (e.g. octave, gnuplot) will be started in a particular
directory based on a given org file.  If subsequently another org file,
in a different directory, is visited, babel won't change the directory
for existing babel buffers (and probably cannot easily do so in some
cases?).

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8


signature.asc
Description: PGP signature


[O] org-ref and the minibuffer

2017-03-14 Thread Julian M. Burgos
Dear list,

It is possible to customize the information shown in the minibuffer when
the cursor (or the mouse pointer) is on top of an org-ref bibliography link?
The default seems to be a formatted version of the citation, which
includes authors (all of them), title, etc.  I would like just to see
the title.
Thanks!

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnun, rannsókna- og ráðgjafarstofnun hafs og vatna/
Marine and Freshwater Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: julian.bur...@hafogvatn.is



Re: [O] Reproducing a table

2017-03-14 Thread Jarmo Hurri
Christian Moe  writes:

Greetings.

> You can simplify it even further to
>
> #+begin_src elisp :var data=my-table :hlines yes
>   data  
> #+end_src
>
> which is sane enough for me.
>
> To get simpler than that, I think you need #+INCLUDE and a separate
> file.

I think that would be the best approach.

> I can't tell from the example why you need to define it in one place
> and reproduce it in another, though, instead of just giving it a name
> right where you want it to appear.

The table contains a bivariate probability distribution, which I need to
reproduce at multiple locations in a document, and from which I need to
calculate a few things (which is why I need to pass the data part to
functions).

This is part of a process of fixing an old Org file which no longer
exports into LaTeX PDF. In some earlier version of Org the following
used to work:

  #+name: my-table
  | row 1 | 1 | 2 |
  | row 2 | 3 | 4 |
  |---+---+---|
  |   | col 1 | col 2 |

  #+call: my-table() :hlines yes

That is, in the past the table name used to sort of define a function
which could then be called to reproduce the table. But this produced
errors in the current version, so I started to figure out ways to
achieve the same end result.

Thanks!

Jarmo




[O] [bug, ox-latex] Parsed keywords and export with subscript

2017-03-14 Thread Rasmus
Hi,

It would seem that parse doesn't behave correctly when
org-export-with-sub-superscripts is turned off via #+options.

Example:

#+options: ^:nil
#+date: a_b
* test
a_b

Exported result with ox-latex:

%% ...
\date{a\(\_b\)}
%% ...
\section{test}
a\_b
%% ...

Expected result 

%% ...
\date{a\_b}
%% ...
\section{test}
a\_b
%% ...

Perhaps I'm misunderstanding how a parsed keyword is supposed to do...

Thanks,
Rasmus

-- 
And I faced endless streams of vendor-approved Ikea furniture. . .




[O] HTTPS support of Org ELPA?

2017-03-14 Thread Chunyang Xu
Hi.

Can someone add HTTPS support for Org ELPA? Github user @thblt
complained about lacking HTTPS support via
https://github.com/melpa/melpa/issues/4554#issuecomment-278638944

Thanks.





Re: [O] org-mime-buffer-htmlize with BEGIN_EXPORT latex

2017-03-14 Thread Jérémie Juste
The previous latex codes don't run. My apologies should have checked the
latex code first. Now it does.

#+BEGIN_EXPORT latex
\begin{table}[!htbp]
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r }

  1 & 2 & 3 \\

  4 & 5 & 6 \\
  7 & 8 & 9 \\
\end{tabluar}

\end{table}
#+END_EXPORT

work

\begin{table}[!htbp]
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r }

  1 & 2 & 3 \\

  4 & 5 & 6 \\
  7 & 8 & 9 \\
\end{tabular}

\end{table}

work as well

#+BEGIN_latex
\begin{table}
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r
}

  1 & 2 & 3
\\

  4 & 5 & 6 \\
  7 & 8 & 9
\\

\end{tabular}
\end{table}
#+END_latex

Best,

Jeremie


On Tue, Mar 14, 2017 at 10:35 AM, Jérémie Juste 
wrote:

>
> Hello,
>
> I'm trying the org-mime-buffer-htmlize function but notice that it does
> not convert latex codes to image if they are in between export blocks.
> It is possible to have this feature enabled ?
>
> #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t tex:imagemagick
> #+LATEX_HEADER: \usepackage [margin=1in]{geometry}
> #+LATEX_CLASS: myclass
> #+LATEX_HEADER: \newcommand\numberEq{\addtocounter{equation}{1}\tag{
> \theequation}}
> #+LATEX_HEADER:\usepackage{setspace}
> #+LATEX_HEADER: \usepackage{tikz}
> #+LATEX_HEADER: \usepackage{longtable}
> #+LATEX_HEADER: \usepackage{bbm}
> #+LATEX_HEADER: \usepackage{rotating}
> #+LATEX_HEADER: \doublespace
>
> Does not work
>
> #+BEGIN_EXPORT latex
> \begin{table}[!htbp]
> \centering
> \caption{Descriptive statistics}
> \begin{tabular}{ l c r }
>
>   1 & 2 & 3 \\
>
>   4 & 5 & 6 \\
>   7 & 8 & 9 \\
>
> \end{table}
> #+END_EXPORT
>
> work
>
> \begin{table}[!htbp]
> \centering
> \caption{Descriptive statistics}
> \begin{tabular}{ l c r }
>
>   1 & 2 & 3 \\
>
>   4 & 5 & 6 \\
>   7 & 8 & 9 \\
>
> \end{table}
>
>
> Best regards,
> Jeremie
>
>


-- 
Jérémie Juste


[O] org-mime-buffer-htmlize with BEGIN_EXPORT latex

2017-03-14 Thread Jérémie Juste
Hello,

I'm trying the org-mime-buffer-htmlize function but notice that it does
not convert latex codes to image if they are in between export blocks.
It is possible to have this feature enabled ?

#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t tex:imagemagick
#+LATEX_HEADER: \usepackage [margin=1in]{geometry}
#+LATEX_CLASS: myclass
#+LATEX_HEADER:
\newcommand\numberEq{\addtocounter{equation}{1}\tag{\theequation}}
#+LATEX_HEADER:\usepackage{setspace}
#+LATEX_HEADER: \usepackage{tikz}
#+LATEX_HEADER: \usepackage{longtable}
#+LATEX_HEADER: \usepackage{bbm}
#+LATEX_HEADER: \usepackage{rotating}
#+LATEX_HEADER: \doublespace

Does not work

#+BEGIN_EXPORT latex
\begin{table}[!htbp]
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r
}

  1 & 2 & 3
\\

  4 & 5 & 6 \\
  7 & 8 & 9
\\

\end{table}
#+END_EXPORT

work

\begin{table}[!htbp]
\centering
\caption{Descriptive statistics}
\begin{tabular}{ l c r
}

  1 & 2 & 3
\\

  4 & 5 & 6 \\
  7 & 8 & 9
\\

\end{table}


Best regards,
Jeremie


[O] Bug: http://orgmode.org/worg/org-configs/org-hooks.php 404 [9.0.5 (release_9.0.5-347-g2f4860 @ /Users/xcy/src/org-mode/lisp/)]

2017-03-14 Thread Chunyang Xu
Hi.

The URL  is mentioned
at (info "(org) Hooks"), when I open it in web browser, it says "404 Not
Found"





Re: [O] ox-epub

2017-03-14 Thread Rasmus
Hi Mark,

Thanks for your email.

Mark Meyer  writes:

> I'm the author of ox-epub, which is a very recent extension to org-mode
> to author EPUB files directly via the org export layer.

Thanks.  People have asked about direct epub exporting in the past.

> Pank (Rasmus) asked on Github, whether this could be part of org-mode.
> I'm all for it. I gather this would be added to the lisp/contrib directory?

Perhaps it could start in "contrib" until you, and others, are comfortable
with the quality of the code.  On the other hand, it might get more
testing if added directly to "lisp".

One thing that’d need to add in due course in documentation in the manual.

> Are there any technical barriers to continuing development on ox-epub to
> me? The legal stuff is not an issue to me.

I think you wrote that you are already in the process of assigning
copyright for this work to FSF, right?

> Do you find the addition worthwile?

I do.  Nicloas will probably chim in.

Thanks,
Rasmus

-- 
Er du tosset for noge' lårt!




[O] Tags completion with Helm

2017-03-14 Thread aaermolov
Hi,

I've spotted a problem with completing Org tags with Helm. While Helm is
not at least about [fuzzy] completion, when I try to input any
completion subsequence, all candidates are gone and variants are
shrinked to whatever will be typed. 

Is there any widely known mistake, that I've stepped into with this
case? Can anyone point me to some comprehensible direction?

regards,
Alex


signature.asc
Description: PGP signature


Re: [O] [babel] Working dir incorrect

2017-03-14 Thread Loris Bennett
Hi John,

John Hendy  writes:

> On Mon, Mar 13, 2017 at 9:32 AM, Loris Bennett
>  wrote:
>> Hi,
>>
>> In a file that used to work, when I now try to run some R code which
>> generates an image, I get the error:
>>
>>   cannot open file './usage_users_historical_facet.pdf'
>>
>> If I check the working directory for the R session I see
>>
>>   getwd()
>>   [1] "/usr/share/emacs/site-lisp/ess"
>>
>> instead of the directory in which my org file is located.
>>
>> I am now running Org 9.0.5 on Emacs 25.1.1.  The last time things worked
>> I was definitely using an older version of Org and possibly Emacs 24.
>>
>> Any thoughts?
>
> I agree with Nick on an ECM. Just to start the ball rolling:
>
> M-x org-version
> Org mode version 9.0.5 (release_9.0.5-288-g4caad0 @
> /home/jwhendy/.elisp/org/lisp/)
>
> $ emacs --version
> GNU Emacs 25.1.1
>
> #+begin_src min-config
>
> ;; set load paths
> (add-to-list 'load-path "~/.elisp/org.git/lisp/")
> (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp/")
> (add-to-list 'load-path "~/.elisp/ess/lisp/")
>
> (require 'ess-site)
>
> ;; setup babel languages
> (org-babel-do-load-languages
>  'org-babel-load-languages
>  '((R . t)))
>
> #+end_src
>
>
> method:
> - emacs -Q
> - M-x load-file /path/to/min-config
> - C-c C-c on both of these blocks and get the results as shown
>
>  file: ~/Desktop/test.org ;
>
> * heading
>
> #+begin_src R
>
> getwd()
>
> #+end_src
>
>
> #+RESULTS:
> : /home/jwhendy/Desktop
>
> #+begin_src R :session r
>
> getwd()
>
> #+end_src
>
> #+RESULTS:
> : /home/jwhendy/Desktop
>
> ;
>
>
> How does this go for you?

Thanks for doing most of the work for me.  Unfortunately for me, the ECM
works fine, so I'm going to have to do some work myself and debug my
crufty old .emacs.

Thanks again,

Loris

-- 
This signature is currently under construction.




Re: [O] %( in capture template

2017-03-14 Thread Nicolas Goaziou
Hello,

Samuel Wales  writes:

> ===
> * ecm
> capture literally inserts.  i was told this is not normal,
> but a bug.
>
> recent maint
>
> to reproduce, evaluate the following code, select the lines
> in the scratch buffer, and run m-x org-capture RET p.
>
> set the notes file to whatever works for you.
>
> *** code
>   (require 'org-capture)
>   (setq org-default-notes-file (substitute-in-file-name
> "$dorg/alpha-org-testcase.org"))
>   ;; (find-file org-default-notes-file)
>   (defun alpha-org-testcase--create-capture-bug ()
> (add-to-list 'org-capture-templates
>  `("p" "Protocol p" entry
>(file+headline ,org-default-notes-file "xyzzy-remember")
>"%(alpha-org-protocol-string \"%:link\"
> \"%:description\" \"%i\")"
>:prepend t :immediate-finish t :jump-to-captured t))
> (defun alpha-org-protocol-string (link description region)
>   (format "* debug org-capture
>- link %s
>- description %s
>- region %s \
>"
>   link description region)))
> *** the bug is below
> * debug org-capture
>  - link
>  - description
>  - region ;; This buffer is for notes you don't want to
> save, and for Lisp evaluation.
>   %(alpha-org-protocol-string "" "" ";; If you want to create a file,
> visit that file with C-x C-f,
>   %(alpha-org-protocol-string "" "" ";; then enter the text in that
> file's own buffer.
>   %(alpha-org-protocol-string "" "" "
>   %(alpha-org-protocol-string "" "" "
> ===

Thank you. I think it is fixed, now. Could you test maint branch and
report your result?

Regards,

-- 
Nicolas Goaziou



Re: [O] Reproducing a table

2017-03-14 Thread Christian Moe

You can simplify it even further to

#+begin_src elisp :var data=my-table :hlines yes
  data  
#+end_src

which is sane enough for me.

To get simpler than that, I think you need #+INCLUDE and a separate
file.

I can't tell from the example why you need to define it in one place and
reproduce it in another, though, instead of just giving it a name right
where you want it to appear. (One situation where it would be helpful,
obviously, is if you want the same table to appear in multiple documents
that you export from the same .org file.)

Yours,
Christian


Jarmo Hurri writes:

> Greetings (again).
>
> What is the smartest way to reproduce a table without defining the table
> as an Org source block (constraint explained below).
>
> I can do the following, but it doesn't seem very sane (need to use elisp
> or some other language just to funnel the table).
>
> # -
> * define table
>   #+name: my-table
>   | row 1 | 1 | 2 |
>   | row 2 | 3 | 4 |
>   |---+---+---|
>   |   | col 1 | col 2 |
> * reproduce entire table
>   I need to be able to reproduce the entire table in my document
>   #+BEGIN_SRC elisp :var data=my-table :hlines yes
>   (print data)
>   #+END_SRC
>
>   #+RESULTS:
>   | row 1 | 1 | 2 |
>   | row 2 | 3 | 4 |
>   |---+---+---|
>   |   | col 1 | col 2 |
> * reproduce only data
>   I also need to be able to pass only the data to functions
>   #+BEGIN_SRC elisp :var data=my-table[0:1,1:2]
>   (print data)
>   #+END_SRC
>
>   #+RESULTS:
>   | 1 | 2 |
>   | 3 | 4 |
> # -
>
> The reason I can _not_ define the table as an Org source block is the
> second example. I need to pass parts of the table as data to functions,
> and constructs like my-table()[0:1,1:2] don't work. (At least I have not
> been able to get them to work.)
>
> Jarmo




Re: [O] New markup for revising manuscripts

2017-03-14 Thread Eric S Fraga
On Monday, 13 Mar 2017 at 22:56, Doyley, Marvin M. wrote:
> Hi John and Eric,
>
> I decided to adopt your approaches, thanks for the suggestions.  So I
> can use either the response: or ++ to highlight changes in our
> manuscripts.

Let us know how you get on and which works better in practice.

-- 
Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)


signature.asc
Description: PGP signature


Re: [O] export menu

2017-03-14 Thread Eric S Fraga
On Tuesday, 14 Mar 2017 at 02:44, Seb wrote:
> Hello,
>
> Scanning the manual I don't see a hint on how to narrow the export menu
> shown by C-c C-e (`org-export-dispatch').  I'm using ox-pandoc, which
> has a lengthy export menu, which cannot display fully and gets cut off
> the screen.

Just in case you are not aware, hitting SPC will scroll that window.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8


signature.asc
Description: PGP signature


Re: [O] export menu

2017-03-14 Thread Gergely Polonkai
I just wanted to write a similar request. My problem derives from a small
screen, so even the basic set of options gets truncated. It would be nice
if I could somehow scroll the dispatch screen.

Best
Gergely

On Tue, Mar 14, 2017, 03:38 Seb  wrote:

> Hello,
>
> Scanning the manual I don't see a hint on how to narrow the export menu
> shown by C-c C-e (`org-export-dispatch').  I'm using ox-pandoc, which
> has a lengthy export menu, which cannot display fully and gets cut off
> the screen.  Ideally, it should be possible to sequentially narrow the
> options, so that for instance only the LaTeX export options are shown
> after hitting "l", but of course any tip allowing submenus to be fully
> displayed will do!
>
> Thanks,
> --
> Seb
>
>
>