Re: org-ref 3 setup

2022-07-20 Thread Joseph Vidal-Rosset


Le 20/07/2022 à 16:20, Joseph Vidal-Rosset a écrit :
>
>
> Le 20/07/2022 à 15:38, John Kitchin a écrit :
>
>>     (let  ((org-export-with-broken-links t)
>>        (org-latex-pdf-process
>>          '("pdflatex -interaction nonstopmode -shell-escape
>>     -output-directory %o %f"
>>           "bibtex %b"
>>           "makeindex %b"
>>           "pdflatex -interaction nonstopmode -shell-escape
>>     -output-directory %o %f"
>>           "pdflatex -interaction nonstopmode -shell-escape
>>     -output-directory %o
>>     %f")))
>>     (org-open-file (org-latex-export-to-pdf)))
>>
>>
>> this doesn't do anything in your init file to change anything. it only
>> temporarily (let) defines some variables, and then tries to export the
>> current buffer (an elisp file) to pdf and open it. that is a mistake
>> to try.
>
> You are certainly right. I believe that these lines block a
> configuration file that is responsible for the fact that the export via
> pdflatex does not work correctly. This file is therefore loaded after
> myorgexport.el, like mysnippets.el  that is not loaded, for example. It
> is also possible that myorgexport.el itself is somewhere incorrect.
>
> I will go to make tests, I'll keep you informed.

The BIG advantage of launching Emacs Prelude with emacs --daemon is that
it is possible to identify (with your help in this case, John) the
reason of  a problem in such or such setup, every personal setup being
located in possible several small files  ~/.emacs.d/personal/myfile1.el,
  ~/.emacs.d/personal/myfile2.el, etc.
(I am really thankful to Bozhidar Batsov - hence this cc. to his email
address - and to all the contributors of Prelude Emacs, and I recommend
this nice starter kit for Emacs.)

John, you kindly gave me a solution to get the bibliography in an html
email exported via gnus and orgmode, and in my
.emacs.d/personal/myorgmime.el I had this line of code:

> (setq org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer))  ;; to 
> get the bibliography in email (thanks to John Kitchin)

Deactivated, the export in pdflatex works correctly for the
bibliography... I now have to find a coherent way to get both exports of
bibliography...

Many thanks John for your so kind, so constant, and so patient help !

All the best,

Jo.




Re: org-ref 3 setup

2022-07-20 Thread Joseph Vidal-Rosset
Le 20/07/2022 à 14:15, John Kitchin a écrit :
> I assume you are trying something new here?

Not really; my setup worked to export to pdf via latex with org-ref, but
it is no longer the case, and I do not know why.

> the problem is that block is executed and it should not be. That is a
> temporary bit of code for export within an org-file. the error comes
> from it trying to export an elisp file to pdf.
>
> The only correct thing you could do is this:
>
> (setq org-export-with-broken-links t
>        org-latex-pdf-process
>          '("pdflatex -interaction nonstopmode -shell-escape
> -output-directory %o %f"
>           "bibtex %b"
>           "makeindex %b"
>           "pdflatex -interaction nonstopmode -shell-escape
> -output-directory %o %f"
>           "pdflatex -interaction nonstopmode -shell-escape
> -output-directory %o
> %f"))

Thanks ! now emacs --deamon works smoothly, but unfortunately I get this
message when I try to export my org file via pdflatex:

> Wrote 
> /home/joseph/Dropbox/Mes_articles_soumis/jvr-bivalence-futurs-contingents-intuitionnisme-smfart-fr.tex
> Processing LaTeX file 
> jvr-bivalence-futurs-contingents-intuitionnisme-smfart-fr.tex...
> This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) 
> (preloaded format=pdflatex)
>  \write18 enabled.
> **
> ! End of file on the terminal... why?
> /bin/bash: ligne 2: -output-directory : commande introuvable
> This is BibTeX, Version 0.99d (TeX Live 2020/Debian)
> The top-level auxiliary file: 
> jvr-bivalence-futurs-contingents-intuitionnisme-smfart-fr.aux
> The style file: smfplain.bst
> I found no \citation commands---while reading file 
> jvr-bivalence-futurs-contingents-intuitionnisme-smfart-fr.aux
> I found no \bibdata command---while reading file 
> jvr-bivalence-futurs-contingents-intuitionnisme-smfart-fr.aux
> (There were 2 error messages)
> Couldn't find input index file 
> jvr-bivalence-futurs-contingents-intuitionnisme-smfart-fr nor 
> jvr-bivalence-futurs-contingents-intuitionnisme-smfart-fr.idx.
> Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 
> ...]
> PDF file produced with errors.

The pdf file indeed is not what that could be expected.

:(

If I come back to

(let  ((org-export-with-broken-links t)
  (org-latex-pdf-process
'("pdflatex -interaction nonstopmode -shell-escape
-output-directory %o %f"
 "bibtex %b"
 "makeindex %b"
 "pdflatex -interaction nonstopmode -shell-escape -output-directory %o 
%f"
 "pdflatex -interaction nonstopmode -shell-escape -output-directory %o
%f")))
   (org-open-file (org-latex-export-to-pdf)))

in ~/.emacs.d/personal/myorgexport.el

then emacs --daemon protests, but the export works correctly...

All the best,

Jo.





org-ref 3 setup

2022-07-20 Thread Joseph Vidal-Rosset


Hello John, (cc. list emacs-orgmode)

I have a problem with my emacs setup that is in relation with org-ref 3.

My emacs version is  29.0.50, via Prelude emacs, and my emacs is
launched with "emacs --daemon" .

Here is the error:

> Loading /home/joseph/.emacs.d/personal/myorgexport.el (source)...
> Output file:
> Warning (initialization): An error occurred while loading 
> ‘/home/joseph/.emacs.d/init.elc’:
>
> Wrong type argument: stringp, nil
>
> To ensure normal operation, you should investigate and remove the
> cause of the error in your initialization file.

With emacs --debug-init, emacs asks also an output file.

the following last lines of (i.e. the end of my orgexport.el)  are
necessary to org-ref :

(let  ((org-export-with-broken-links t)
  (org-latex-pdf-process
'("pdflatex -interaction nonstopmode -shell-escape
-output-directory %o %f"
 "bibtex %b"
 "makeindex %b"
 "pdflatex -interaction nonstopmode -shell-escape -output-directory %o 
%f"
 "pdflatex -interaction nonstopmode -shell-escape -output-directory %o
%f")))
   (org-open-file (org-latex-export-to-pdf)))

It also seems obvious that "org-open-file" is the cause of my (small)
problem.

Your help will be welcome.

All the best,

Jo.




Re: Mathjax and org-mime-htmlize

2022-07-09 Thread Joseph Vidal-Rosset
Thanks for your reply.

This problem is not very important. If I find a solution (I mean how including 
Mathjax in html emails) I will be back to report it on this list.

Thanks for org-mime, it is a very useful tool !

Best whises,

Jo.

---
https://www.vidal-rosset.net

Envoyé avec la messagerie sécurisée Proton Mail.

--- Original Message ---
Le samedi 9 juillet 2022 à 05:47, Ihor Radchenko  a écrit :


> Joseph Vidal-Rosset jos...@vidal-rosset.net writes:
>
> > Is there a way to include Mathjax in html emails produced via M-x
> > org-mime-htmlize ?
> >
> > I would be glad to find a solution to this (small) problem.
>
>
> Note that org-mime is not a part of Org. It is hosted and developed at
> https://github.com/org-mime/org-mime
>
> Searching inside the org-mime repo, I can see
> https://github.com/org-mime/org-mime/issues/34 where a user complained
> that MathJax simply cannnot be used inside emails and thus it has been
> deliberately disabled my org-mime.
>
> Best,
> Ihor



Mathjax and org-mime-htmlize

2022-07-08 Thread Joseph Vidal-Rosset


Hello,

Is there a way to include Mathjax in html emails produced via M-x
org-mime-htmlize ?

I would be glad to find a solution to this (small) problem.

All the best,

Jo.




Re: Bug: org-mime-htmlize generates unwanted equations numbers in mail [

2022-07-06 Thread Joseph Vidal-Rosset


https://lists.gnu.org/archive/html/emacs-orgmode/2019-11/msg00016.html

Hello,

I would be glad to apply this patch. But I do not succeed in finding in
org-mode documentation how applying a patch.

Many thanks for your help .

Jo.




Re: Fw: org-mime-htmlize

2022-07-05 Thread Joseph Vidal-Rosset
Many thanks John. It  works perfectly now, as you can see it in my first
reply. I cc. this second reply to the list, it can be useful for others.

All the best, and again thanks for your generous help !

Jo.

Le 05/07/2022 à 18:39, John Kitchin a écrit :
> you probably have to do this via CSL now:
>
> (setq  org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer))
>
>
> John

> --- Original Message ---
> Le lundi 4 juillet 2022 à 09:55, Joseph Vidal-Rosset
> mailto:jos...@vidal-rosset.net>> a écrit :
>
>> Hello,
>>
>> I noticed that org-mime-htmlize that I use sometimes with Gnus to
>> send email with formulas in .png format and bibliographical
>> references does no longer work for bibliographical references as
>> it did before.
>>
>> Example of citation :  <http://>
>>
>> I do not know why it does not work, and I try to get and export
>> with bibliographical references inside an email. I’m using org-ref 3.
>>
>> Your help is welcome,
>>
>> All the best,
>>
>> Jo.
>>
>> /home/joseph/Dropbox/myblog/blog.bib
>> <http:///home/joseph/Dropbox/myblog/blog.bib>
>>
>




org-mime-htmlize

2022-07-04 Thread Joseph Vidal-Rosset
Hello,

I noticed that org-mime-htmlize that I use sometimes with Gnus to send email 
with formulas in .png format and bibliographical references does no longer work 
for bibliographical references as it did before.

Example of citation : 

I do not know why it does not work, and I try to get and export with 
bibliographical references inside an email. I’m using org-ref 3.

Your help is welcome,

All the best,

Jo.

/home/joseph/Dropbox/myblog/blog.bib

Re: Re : Re: org-ref3 export html with references of pages

2022-06-26 Thread Joseph Vidal-Rosset
Hi John, hello everyone,

For your information, the numerical style that produces perfectly that I wanted 
is

oil-shale.csl

https://www.zotero.org/styles?fields=geology=numeric

the code

[[first_author_key, 80]] is exported into [1, p. 80]

and

[[second_author_key, 81-86] , [2, pp. 81-86]

url links are given in the bibliography, etc. A really good numeric cls style, 
still better in my opinion than american-medical-association-brackets.csl and 
many others.

All the best,

Jo.

---
https://www.vidal-rosset.net

Envoyé avec la messagerie sécurisée [Proton Mail](https://proton.me/).

--- Original Message ---
Le dimanche 26 juin 2022 à 09:17, Joseph Vidal-Rosset  
a écrit :

> Hi John,
>
> I am ashamed for having not understood this solution by myself !
>
> It works perfectly also with my csl style.
>
> Many thanks again for your so kind and very efficient help.
>
> Best wishes,
>
> Jo.
>
> ---
> https://www.vidal-rosset.net
>
> Envoyé avec la messagerie sécurisée [Proton Mail](https://proton.me/).
>
> --- Original Message ---
> Le samedi 25 juin 2022 à 13:16, John Kitchin  a 
> écrit :
>
>> Hi Joseph,
>>
>> It looks like what I suggested (e.g. use a csl file that supports what you 
>> want)
>>
>> This org file:
>>
>> #+csl-style: american-medical-association-brackets.csl
>> #+csl-locale: en-US
>>
>> See [[cite: 55-56]]
>>
>> bibliography:~/Dropbox/emacs/bibliography/references.bib
>>
>> leads to this output for me. You have to export it with C-c C-e rh to use 
>> the org-ref exporter.
>>
>> [image.png]
>>
>> John
>>
>> ---
>> Professor John Kitchin (he/him/his)
>> Doherty Hall A207F
>> Department of Chemical Engineering
>> Carnegie Mellon University
>> Pittsburgh, PA 15213
>> 412-268-7803
>> @johnkitchin
>> [https://kitchingroup.cheme.cmu.edu](https://kitchingroup.cheme.cmu.edu/)
>> https://pointbreezepubs.gumroad.com/ pycse bookstore
>>
>> On Sat, Jun 25, 2022 at 6:00 AM Joseph Vidal-Rosset 
>>  wrote:
>>
>>> Hello everyone,
>>>
>>> With org-ref (version 3) I meet the following (minor) problem with the
>>> html export of references when I want to give the pages of a book in
>>> numerical csl format.
>>>
>>> With LaTeX export, no difficulty: I get
>>>
>>> [1, pp. 55-56]
>>>
>>> to refer to the book 1 and pages 55-56.
>>>
>>> With html export, I get only:
>>>
>>> [1]
>>>
>>> and no mean to give the pages in this format.
>>>
>>> John Kitchin tried to help me (with downgrade to org-ref version 2), but
>>> it is not so easy to downgrade and with regular org and prelude
>>> upgrades, it is not easy always to keep the same version of org-mode.
>>>
>>> Help is welcome, if someone knows the solution.
>>>
>>> All the best,
>>>
>>> Jo.

Re : Re: org-ref3 export html with references of pages

2022-06-26 Thread Joseph Vidal-Rosset
Hi John,

I am ashamed for having not understood this solution by myself !

It works perfectly also with my csl style.

Many thanks again for your so kind and very efficient help.

Best wishes,

Jo.

---
https://www.vidal-rosset.net

Envoyé avec la messagerie sécurisée [Proton Mail](https://proton.me/).

--- Original Message ---
Le samedi 25 juin 2022 à 13:16, John Kitchin  a écrit :

> Hi Joseph,
>
> It looks like what I suggested (e.g. use a csl file that supports what you 
> want)
>
> This org file:
>
> #+csl-style: american-medical-association-brackets.csl
> #+csl-locale: en-US
>
> See [[cite: 55-56]]
>
> bibliography:~/Dropbox/emacs/bibliography/references.bib
>
> leads to this output for me. You have to export it with C-c C-e rh to use the 
> org-ref exporter.
>
> [image.png]
>
> John
>
> ---
> Professor John Kitchin (he/him/his)
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> [https://kitchingroup.cheme.cmu.edu](https://kitchingroup.cheme.cmu.edu/)
> https://pointbreezepubs.gumroad.com/ pycse bookstore
>
> On Sat, Jun 25, 2022 at 6:00 AM Joseph Vidal-Rosset  
> wrote:
>
>> Hello everyone,
>>
>> With org-ref (version 3) I meet the following (minor) problem with the
>> html export of references when I want to give the pages of a book in
>> numerical csl format.
>>
>> With LaTeX export, no difficulty: I get
>>
>> [1, pp. 55-56]
>>
>> to refer to the book 1 and pages 55-56.
>>
>> With html export, I get only:
>>
>> [1]
>>
>> and no mean to give the pages in this format.
>>
>> John Kitchin tried to help me (with downgrade to org-ref version 2), but
>> it is not so easy to downgrade and with regular org and prelude
>> upgrades, it is not easy always to keep the same version of org-mode.
>>
>> Help is welcome, if someone knows the solution.
>>
>> All the best,
>>
>> Jo.

org-ref3 export html with references of pages

2022-06-25 Thread Joseph Vidal-Rosset


Hello everyone,

With org-ref (version 3) I meet the following (minor) problem with the
html export of references when I want to give the pages of a book in
numerical csl format.

With LaTeX export, no difficulty: I get

  [1, pp. 55-56]

to refer to the book 1 and pages 55-56.

With html export, I get only:

[1]

and no mean to give the pages in this format.

John Kitchin tried to help me (with downgrade to org-ref version 2), but
it is not so easy to downgrade and with regular org and prelude
upgrades, it is not easy always to keep the same version of org-mode.

Help is welcome, if someone knows the solution.

All the best,

Jo.




Re : Re: php scripts in export html code in org-mode

2021-12-22 Thread Joseph Vidal-Rosset


>
> May you provide a step-by-step reproducer starting from emacs -Q?
>
> Best,
>
> Ihor

Thanks Ihor,

It is neither an emacs nor an org-mode issue, but it concerns the way of 
calling a php scritpt from an html file, and it is not easy, at least for me.

I admit that my email is therefore irrelevant to the list.

All the best,

Jo.



php scripts in export html code in org-mode

2021-12-21 Thread Joseph Vidal-Rosset


Hello,

Here is my problem. The code below, that is the code of the page called
"index.php" works.
< https://www.vidal-rosset.net/fCube/ >

But I would be happy to have this prover in this web page
<
https://www.vidal-rosset.net/fcube_an_efficient_prover_for_intuitionistic_propositional_logic.html
 >
that I have made from org-mode.
Unfortunately, all my efforts to integrate this code to export failed,
and finally I get a JSON.parse error, (
json-parse-unexpected-character-at-line-1-column-1-of-the-json-data )
that I suspect to be a PHP error code.

Your help is welcome.

Best wishes, and Merry Christmas !

Jo.

PS: the code to export from an org-mode file would be this one (that of
index.php file, presently):

 ['pipe','r'],
 1 => ['pipe','w'],
 //2 => null
   ];
   $proc = proc_open("swipl -g fcube -g halt $fcube", $descp, $pipes);
   if (is_resource($proc)) {

 fwrite($pipes[0], $formula);
 fclose($pipes[0]);

 $Proof = stream_get_contents($pipes[1]);
 fclose($pipes[1]);

 $return_value = proc_close($proc);

 header('Content-type: application/json');
 echo json_encode(['proof'=>$Proof,'formula'=>'TBD']);
   }
   exit;
}

?>






index





/*
@licstart  The following is the entire license notice for the
JavaScript code in this tag.

Copyright (C) 2012-2020 Free Software Foundation, Inc.

The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version.  The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.

As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.


@licend  The above is the entire license notice
for the JavaScript code in this tag.
*/








https://www.swi-prolog.org/;>
FCUBE 4.1 WITH INFIX NOTATION



   
 
 

  MathJax = {
   loader: {
 load: ['[tex]/bussproofs']
   },
   tex: {
 packages: {'[+]': ['bussproofs']},
 tags: 'ams'
   }
};

https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";>




Syntax for input formulas:  ~a ,  a & b, a | b ,a =>b , a <=> b
(for, respectively, negation, conjunction, disjunction, conditional and
biconditional . 
   
  Choose a formula in the list below, or input your one
 
   
 
 

 
 
 ? - 
   Either an intuitionistic proof or an
intuitionistic  refutation will show here
 
   
   
   


   
  ~ a | a /* Excluded Middle */ 
  ~ ~ a => a /* Double Negation Elimination */ 
 ((a => b) => a) => a /* Pierce Formula */ 
 ((~ a => b) & (a => b)) => b /* Dilemma */ 
 (a => b) | (b => a) /* Dummett Formula */ 
 ~(a & b) => (~ a | ~ b) /* Classical de Morgan Implication
*/
 (~ a | ~ b) => ~(a & b) /* Intuitionistic de Morgan
Implication */
 ~(a | b) <=> (~ a & ~ b) /* Intuitionistic De Morgan
Equivalence */
 (~ a => a) <=> ~ ~ a /* Intuitionistic Equivalence */
  ( ( p
   | ( q
 & r ) )
   <=> ( ( p
 | q )
   & ( p
 | r ) ) ) /* Pelletier Problem 13 SYN045+1 */
  ( ( ( p
 & ( q
  => r ) )
  => s )
   <=> ( ( ~ p
 | q
 | s )
   & ( ~ p
 | ~ r
 | s ) ) ) /* Pelletier Problem 17 SYN047+1 */ 
 ((a | b) => c) <=> ((a => c) & (b => b)) 
 ((a & b) => c) <=> ((a => c) | (b => c)) 
 
   
   


   
   
window.onload = () => {

   const request = (url,formula) => fetch(url,{
 method: 'POST',
 headers: { 'Content-Type':
'application/x-www-form-urlencoded;charset=UTF-8' },
 body: 'formula='+encodeURIComponent(formula)
   }).then(r => r.json())

   decide_formula.onclick = async (ev) => {
 let f = formula.value.trim()
 if (!f.endsWith('.')) f += '.'
 try {
   let result = await request("", f)
   if (result.proof)
 proof_show.textContent = result.proof
   else
 proof_show.innerHTML = 

Re: citeproc-org and org-ref 3

2021-12-04 Thread Joseph Vidal-Rosset
Dear John,

It is in fact an org cite issue. With org-ref 2, I used to write:
something like [[cite:key][page  n]]  with C-l + description .

With org-ref 3, I see that I must write now: [[cite:key page n]] and it
works with ieee csl style also.

(I still do not know how to quote directly references of pages in the
cite key when I need to quote pages.)

Best wishes, and thanks !

Jo.

Le 04/12/2021 à 16:07, John Kitchin a écrit :
> AFAICT this is also a style issue. This document:
>
> #+csl-style: apa-5th-edition.csl
>
> See [[cite: pg. 127]].
>
> bibliography:~/Dropbox/emacs/bibliography/references.bib
>
> exports to:
> image.png.
>
> This one:
> #+csl-style: apa-numeric-superscript-brackets.csl
>
> See [[cite: pg. 127]].
>
> bibliography:~/Dropbox/emacs/bibliography/references.bib
> exports to
> image.png
>
> and this one (note the extra HTML_HEAD lines which fixes the separate
> lines due to the div elements (Thank you for this tip Max!).
>
> #+csl-style: biochimica-et-biophysica-acta.csl
> #+HTML_HEAD: 
> #+HTML_HEAD:   .csl-left-margin, .csl-right-inline { display: inline; }
> #+HTML_HEAD: 
>
> See [[cite: pg. 127]].
>
> bibliography:~/Dropbox/emacs/bibliography/references.bib
>
>
> leads to
> image.png
>
>
> You can see that the first two styles show the locators, but the last
> one you use does not. I don't think that is something org-ref can or
> should fix. That would be something to fix in the styles themselves.
>
> John
>
> ---
> Professor John Kitchin (he/him/his)
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu <http://kitchingroup.cheme.cmu.edu>
>
>
>
> On Sat, Dec 4, 2021 at 9:45 AM Joseph Vidal-Rosset
> mailto:jos...@vidal-rosset.net>> wrote:
>
> Dear John,
>
> Another more important point.  It is now more probably a point where
> org-ref 3  needs to be improved: it seems to me that the format
> [numerical_reference, page] or (name_reference, page) cannot be produced
> for the html export.
>
> (The format [numerical_reference, page]  was produced with org-ref2 +
> citeproc-org , see for example:
>
> 
> https://www.vidal-rosset.net/a_logical_remark_on_swinburnes_cartesian_argument_for_substance_dualism.html
> 
> <https://www.vidal-rosset.net/a_logical_remark_on_swinburnes_cartesian_argument_for_substance_dualism.html>
>
> Swinburne’s argument is an amended version of Descartes’s in Discourse
> on the Method [1, p. 127]:
> )
>
> I hope that there is a solution.
>
> Best wishes,
>
> Jo.
>
> Le 03/12/2021 à 18:13, John Kitchin a écrit :
>  > I think this is caused by something in the style, or in how citeproc
>  > uses the style.
>  >
>  > This document:
>  >
>  > #+csl-style: biochimica-et-biophysica-acta.csl
>  >
>  > See [[cite:]].
>  >
>  > bibliography:~/Dropbox/emacs/bibliography/references.bib
>  >
>  > Leads to (as you have seen):
>  >
>  > image.png
>  >
>  > The html for that reference looks like:
>  > 
>  >    
>  >      [1]  > class="csl-right-inline">G. Scalia, C.A. Grambow, B. Pernici,
> Y.-P. Li,
>  > W.H. Green, https://doi.org/10.1021/acs.jcim.9b00975
> <https://doi.org/10.1021/acs.jcim.9b00975>
>  > <https://doi.org/10.1021/acs.jcim.9b00975
> <https://doi.org/10.1021/acs.jcim.9b00975>>">Evaluating Scalable
>  > Uncertainty Estimation Methods for Deep Learning-Based Molecular
>  > Property Prediction, Journal of Chemical Information and
> Modeling,
>  > 60 (2020) 2697-2717.
>  >    
>  > 
>  > 
>  >
>  > I don't see why there is an extra line there, I guess it is some CSS
>  > styling.
>  >
>  > if you change the csl style to apa-numeric-superscript-brackets.csl
>  >
>  > you get
>  > image.png
>  >
>  > which I think is closer to what you want. The html for this looks
> like
>  > this, and does not have some of the div elements seen above. I guess
>  > this is something in the style files themselves.
>  >
>  > 
>  >    1.
> Scalia, G.,
>  > Grambow, C. A., Pernici, B., Li, Y.-P.,  Green, W. H. (2020).
>  > Evaluating Scalable Uncertainty Estimation Methods for

Re: citeproc-org and org-ref 3

2021-12-04 Thread Joseph Vidal-Rosset
Dear John,

Another more important point.  It is now more probably a point where
org-ref 3  needs to be improved: it seems to me that the format
[numerical_reference, page] or (name_reference, page) cannot be produced
for the html export.

(The format [numerical_reference, page]  was produced with org-ref2 +
citeproc-org , see for example:

https://www.vidal-rosset.net/a_logical_remark_on_swinburnes_cartesian_argument_for_substance_dualism.html

Swinburne’s argument is an amended version of Descartes’s in Discourse
on the Method [1, p. 127]:
)

I hope that there is a solution.

Best wishes,

Jo.

Le 03/12/2021 à 18:13, John Kitchin a écrit :
> I think this is caused by something in the style, or in how citeproc
> uses the style.
>
> This document:
>
> #+csl-style: biochimica-et-biophysica-acta.csl
>
> See [[cite:]].
>
> bibliography:~/Dropbox/emacs/bibliography/references.bib
>
> Leads to (as you have seen):
>
> image.png
>
> The html for that reference looks like:
> 
>    
>      [1] class="csl-right-inline">G. Scalia, C.A. Grambow, B. Pernici, Y.-P. Li,
> W.H. Green, https://doi.org/10.1021/acs.jcim.9b00975
> <https://doi.org/10.1021/acs.jcim.9b00975>">Evaluating Scalable
> Uncertainty Estimation Methods for Deep Learning-Based Molecular
> Property Prediction, Journal of Chemical Information and Modeling,
> 60 (2020) 2697-2717.
>    
> 
> 
>
> I don't see why there is an extra line there, I guess it is some CSS
> styling.
>
> if you change the csl style to apa-numeric-superscript-brackets.csl
>
> you get
> image.png
>
> which I think is closer to what you want. The html for this looks like
> this, and does not have some of the div elements seen above. I guess
> this is something in the style files themselves.
>
> 
>    1. Scalia, G.,
> Grambow, C. A., Pernici, B., Li, Y.-P.,  Green, W. H. (2020).
> Evaluating Scalable Uncertainty Estimation Methods for Deep
> Learning-Based Molecular Property Prediction. Journal of Chemical
> Information and Modeling, 60(6), 2697–2717.  href="https://doi.org/10.1021/acs.jcim.9b00975
> <https://doi.org/10.1021/acs.jcim.9b00975>">https://doi.org/10.1021/acs.jcim.9b00975
> <https://doi.org/10.1021/acs.jcim.9b00975>
> 
> 
>
>
>
> John
>
> ---
> Professor John Kitchin (he/him/his)
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu <http://kitchingroup.cheme.cmu.edu>
>
>
>
> On Fri, Dec 3, 2021 at 11:49 AM Joseph Vidal-Rosset
> mailto:jos...@vidal-rosset.net>> wrote:
>
> Le 03/12/2021 à 16:24, John Kitchin a écrit : > I have seen this
> happen at times, and I think it is style and maybe > browser
> dependent. > > Could you send me a small example (including the csl
> file you use) that > I could look at? Dear John, In attachment, two
> small examples, the same text exported with
> biochimica-et-biophysica-acta.csl and with ieee-with-url.csl Best
> wishes, Jo.
>




Re: citeproc-org and org-ref 3

2021-12-03 Thread Joseph Vidal-Rosset
Le 03/12/2021 à 16:24, John Kitchin a écrit : > I have seen this happen at 
times, and I think it is style and maybe > browser dependent. > > Could you 
send me a small example (including the csl file you use) that > I could look 
at? Dear John, In attachment, two small examples, the same text exported with 
biochimica-et-biophysica-acta.csl and with ieee-with-url.csl Best wishes, Jo.

biochimica-et-biophysica-acta.csl
Description: application/vnd.citationstyles.style


ieee-network.csl
Description: application/vnd.citationstyles.style
Title: Another sequent calculus prover in Prolog: leanseq.pl






Joseph Vidal-Rosset - Personal Blog






Home
About
Contact
Educasup
Arguments
Provers
Code






 
Another sequent calculus prover in Prolog: leanseq.pl
 



 
2021-12-03, updated 2021-12-03 next - previous
 


A  note about the prover published by
Philip  Zucker from
Jens Otten’s lectures.



The following  Prolog code can  be considered as an  implementation of
Wang’s algorithm [1]






  
[1]H. Wang, Toward mechanical mathematics, Ibm J. Res. Dev., 4 (1960) 2–22.
  



Created: 2021-12-03 ven. 17:46
Validate



Title: Another sequent calculus prover in Prolog: leanseq.pl






Joseph Vidal-Rosset - Personal Blog






Home
About
Contact
Educasup
Arguments
Provers
Code






 
Another sequent calculus prover in Prolog: leanseq.pl
 



 
2021-12-03, updated 2021-12-03 next - previous
 


A  note about the prover published by
Philip  Zucker from
Jens Otten’s lectures.



The following  Prolog code can  be considered as an  implementation of
Wang’s algorithm [1]






  
[1]H. Wang, “Toward mechanical mathematics,” Ibm j. res. dev., vol. 4, no. 1, pp. 2–22, Jan. 1960 [Online]. Available: https://doi.org/10.1147/rd.41.0002
  



Created: 2021-12-03 ven. 17:44
Validate





Re: citeproc-org and org-ref 3

2021-12-03 Thread Joseph Vidal-Rosset
Hi John,

A detail about exporting with org-ref 3 in html when the csl style is
for numeric references. With org-ref 2 + citeproc-org, I got this:

[1] R. Descartes, Meditations on First Philosophy: with Selections from
the Objections and Replies. Oxford: OUP Oxford, 2008.

(see the references here :
https://www.vidal-rosset.net/descartess_first_proof_of_gods_existence_in_first-order_logic.html
)

With org-ref 3, with apparently any numeric style, I get this:

[1]
R. Descartes, Meditations on First Philosophy: with Selections from the
Objections and Replies. Oxford: OUP Oxford, 2008.

I mean that each bibliographical reference is below its number link, and
it is not very nice. I wonder about the reason of this difference of
output, and a possible solution.

Best wishes,

Jo.

Le 02/12/2021 à 18:35, John Kitchin a écrit :
> Glad to hear it is working again for you! Best wishes,
>
> Joseph Vidal-Rosset  writes:
>
>> Dear all,
>>
>>
>> I just succeeded in solving my problem.
>>
>> l-210-235 of myblogexporter.el, I changed the code for:
>>
>> (defun org-export-head-export-headers (directory-name backend)
>> "Exports each heading to directory-name using backend"
>> (if (equal backend "html")
>> (org-export-head--run-on-each-heading
>>  #'(lambda ()
>>  (org-set-property
>>   "EXPORT_FILE_NAME"
>>   (concat directory-name (org-export-head--escaped-headline)))
>>  (deactivate-mark)
>>  (let ((org-export-before-parsing-hook
>> '(org-ref-csl-preprocess-buffer)))
>>   (cl-letf (((symbol-function 'org-export-get-reference)
>> (symbol-function 'org-export-get-reference-custom)))
>> (if org-export-head-click-toc-h2
>> (cl-letf ((
>>;(symbol-function 'org-html-toc)
>>(symbol-function
>> 'org-export-head--custom-toc)))
>>   (org-html-export-to-html nil t)
>>  (set-buffer-modified-p t)) "-noexport-noreexport"))
>> (if (equal backend "pdf")
>> (org-export-head--run-on-each-heading
>>  #'(lambda ()
>>  (org-set-property
>>   "EXPORT_FILE_NAME"
>>   (concat directory-name (org-export-head--escaped-headline)))
>>      (deactivate-mark)
>>  (org-latex-export-to-pdf nil t)
>>  (set-buffer-modified-p t)) "-noexport-noreexport")))
>>
>> and it works with org-ref 3.
>>
>> Best wishes,  I attach myblogexporter.el
>>
>> Jo.
>>
>> Le 02/12/2021 à 14:17, Joseph Vidal-Rosset a écrit :
>>> Dear John (cc. Ivan),
>>>
>>> First, thanks for your help and for your patience, that's very kind of you.
>>>
>>> The good news is that indeed, org-ref 3 exports nicely the  html
>>> bibliography with my CSL file, it works well with your org file and your
>>> bibliography. My error was simple: I did not use the specific org-ref
>>> keys but the ordinary h-o keys.. A stupid mistake.
>>>
>>> The bad news is that this new function for exporting with org-ref 3 is
>>> not included in org-export-head, a nice org mode to blog exporter, made
>>> by Ivan Tadeu Ferreira Antunes Filho, which converts each header to a
>>> different file, I find this exporter very convenient. I had no problem
>>> with this org-ref 2 to use this blog-exporter, but it org-ref 3 is
>>> unfortunately not still adapted to its use. Nevertheless, I believe that
>>> it should be possible to find the lines to include this function
>>> (let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>>>(org-open-file  (org-html-export-to-html)))
>>> in org-export-head. I tried, but without success, because I am simply
>>> not expert enough. I see the best, that is to export both with org-ref 3
>>> (i.e. "r h") and org-export-head, but I am unable to code it.
>>>
>>> No doubt that it should be for you and Ivan a piece of cake, but please
>>> do it only if you think that it is interesting and if you find the time
>>> to do it.
>>>
>>> Best wishes,
>>>
>>> Jo.
>>>
>>> PS in attachment, myblogexporter.el in my ~/.emacs.d/personal  (usual
>>> path with Prelude Emacs).
>>>
>>> Le 01/12/2021 à 23:16, John Kitchin a écrit :
>>>>
>>>> Joseph Vidal-Rosset  writes:
>

Re: citeproc-org and org-ref 3

2021-12-02 Thread Joseph Vidal-Rosset
Dear all,


I just succeeded in solving my problem.

l-210-235 of myblogexporter.el, I changed the code for:

(defun org-export-head-export-headers (directory-name backend)
   "Exports each heading to directory-name using backend"
   (if (equal backend "html")
   (org-export-head--run-on-each-heading
#'(lambda ()
(org-set-property
 "EXPORT_FILE_NAME"
 (concat directory-name (org-export-head--escaped-headline)))
(deactivate-mark)
(let ((org-export-before-parsing-hook
'(org-ref-csl-preprocess-buffer)))
 (cl-letf (((symbol-function 'org-export-get-reference)
(symbol-function 'org-export-get-reference-custom)))
   (if org-export-head-click-toc-h2
   (cl-letf ((
  ;(symbol-function 'org-html-toc)
  (symbol-function
'org-export-head--custom-toc)))
 (org-html-export-to-html nil t)
(set-buffer-modified-p t)) "-noexport-noreexport"))
   (if (equal backend "pdf")
   (org-export-head--run-on-each-heading
#'(lambda ()
(org-set-property
 "EXPORT_FILE_NAME"
 (concat directory-name (org-export-head--escaped-headline)))
(deactivate-mark)
(org-latex-export-to-pdf nil t)
(set-buffer-modified-p t)) "-noexport-noreexport")))

and it works with org-ref 3.

Best wishes,  I attach myblogexporter.el

Jo.

Le 02/12/2021 à 14:17, Joseph Vidal-Rosset a écrit :
> Dear John (cc. Ivan),
>
> First, thanks for your help and for your patience, that's very kind of you.
>
> The good news is that indeed, org-ref 3 exports nicely the  html
> bibliography with my CSL file, it works well with your org file and your
> bibliography. My error was simple: I did not use the specific org-ref
> keys but the ordinary h-o keys.. A stupid mistake.
>
> The bad news is that this new function for exporting with org-ref 3 is
> not included in org-export-head, a nice org mode to blog exporter, made
> by Ivan Tadeu Ferreira Antunes Filho, which converts each header to a
> different file, I find this exporter very convenient. I had no problem
> with this org-ref 2 to use this blog-exporter, but it org-ref 3 is
> unfortunately not still adapted to its use. Nevertheless, I believe that
> it should be possible to find the lines to include this function
> (let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>   (org-open-file  (org-html-export-to-html)))
> in org-export-head. I tried, but without success, because I am simply
> not expert enough. I see the best, that is to export both with org-ref 3
> (i.e. "r h") and org-export-head, but I am unable to code it.
>
> No doubt that it should be for you and Ivan a piece of cake, but please
> do it only if you think that it is interesting and if you find the time
> to do it.
>
> Best wishes,
>
> Jo.
>
> PS in attachment, myblogexporter.el in my ~/.emacs.d/personal  (usual
> path with Prelude Emacs).
>
> Le 01/12/2021 à 23:16, John Kitchin a écrit :
>>
>> Joseph Vidal-Rosset  writes:
>>
>>> Dear Andras,
>>>
>>> You are very probably right. I will have a look on this entry in my
>>> default bibliography file.
>>>
>>> The code
>>>
>>> (let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>>>   (org-open-file  (org-html-export-to-html)))
>>>
>>> put in .emacs.d/personal/preload/myorgexport.el
>>>
>> This code should not go in your init file. It is executed each time, and
>> not what you want. I usually put it a src block at the end in a section
>> tagged noexport and run it from there.
>>
>> Alternatively, if this is the only preprocessing you do, I think you can
>> do C-c C-e rh to export to html (this runs the org-ref html exporter.
>>
>> Finally, if you really want something in your init file it should be
>> like this:
>>
>> (defun my-html ()
>> (interactive)
>> (let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>>   (org-open-file  (org-html-export-to-html
>>
>> and then later you run it with M-x my-html
>>
>>
>>> provokes the request of opening a html file, when emacs --daemon is
>>> started; therefore I conclude that it should not be used as I did...
>>>
>>> Anyway, every  tentative  to export in a bibliography in html fails at
>>> the moment, even with a new bibliography file...  :(
>>
>> See of the one at
>> https://github.com/jkitchin/org-ref

Re: citeproc-org and org-ref 3

2021-12-02 Thread Joseph Vidal-Rosset
Dear John (cc. Ivan),

First, thanks for your help and for your patience, that's very kind of you.

The good news is that indeed, org-ref 3 exports nicely the  html
bibliography with my CSL file, it works well with your org file and your
bibliography. My error was simple: I did not use the specific org-ref
keys but the ordinary h-o keys.. A stupid mistake.

The bad news is that this new function for exporting with org-ref 3 is
not included in org-export-head, a nice org mode to blog exporter, made
by Ivan Tadeu Ferreira Antunes Filho, which converts each header to a
different file, I find this exporter very convenient. I had no problem
with this org-ref 2 to use this blog-exporter, but it org-ref 3 is
unfortunately not still adapted to its use. Nevertheless, I believe that
it should be possible to find the lines to include this function
(let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
 (org-open-file  (org-html-export-to-html)))
in org-export-head. I tried, but without success, because I am simply
not expert enough. I see the best, that is to export both with org-ref 3
(i.e. "r h") and org-export-head, but I am unable to code it.

No doubt that it should be for you and Ivan a piece of cake, but please
do it only if you think that it is interesting and if you find the time
to do it.

Best wishes,

Jo.

PS in attachment, myblogexporter.el in my ~/.emacs.d/personal  (usual
path with Prelude Emacs).

Le 01/12/2021 à 23:16, John Kitchin a écrit :
>
> Joseph Vidal-Rosset  writes:
>
>> Dear Andras,
>>
>> You are very probably right. I will have a look on this entry in my
>> default bibliography file.
>>
>> The code
>>
>> (let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>>  (org-open-file  (org-html-export-to-html)))
>>
>> put in .emacs.d/personal/preload/myorgexport.el
>>
> This code should not go in your init file. It is executed each time, and
> not what you want. I usually put it a src block at the end in a section
> tagged noexport and run it from there.
>
> Alternatively, if this is the only preprocessing you do, I think you can
> do C-c C-e rh to export to html (this runs the org-ref html exporter.
>
> Finally, if you really want something in your init file it should be
> like this:
>
> (defun my-html ()
>(interactive)
>(let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>  (org-open-file  (org-html-export-to-html
>
> and then later you run it with M-x my-html
>
>
>> provokes the request of opening a html file, when emacs --daemon is
>> started; therefore I conclude that it should not be used as I did...
>>
>> Anyway, every  tentative  to export in a bibliography in html fails at
>> the moment, even with a new bibliography file...  :(
>
> See of the one at
> https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org
> works. The bib file is in
> https://github.com/jkitchin/org-ref/blob/master/org-ref.bib.
>
>
>
>>
>> Best wishes,
>>
>> Le 01/12/2021 à 17:33, András Simonyi a écrit :
>>> Dear Joseph,
>>>
>>> based on the error message there seems to be a problem with the
>>> 'curley-nil-on-bennet-spinoz' bibliography entry, is it possible that
>>> it contains a 'year = nil' row? If yes then I don't think that is
>>> well-formed, at least citeproc-el cannot currently parse it. Anyhow,
>>> apparently I need to improve/add citeproc-el error messages about
>>> bib(la)tex parsing, because several parsing problems have surfaced
>>> lately and the current error messages aren't helpful at all.
>>>
>>> best wishes,
>>> András
>>>
>>> On Wed, 1 Dec 2021 at 16:50, Joseph Vidal-Rosset
>>>  wrote:
>>>>
>>>> Dear John,
>>>>
>>>> I must say that to export references in html with org-ref 3, I meet a
>>>> lot of problems (with LaTeX, it's fine).
>>>>
>>>> I am using prelude emacs and  GNU Emacs 29.0.50 .
>>>>
>>>> Starting emacs --daemon, the code
>>>>
>>>> (let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>>>>(org-open-file  (org-html-export-to-html)))
>>>>
>>>> in my setup provokes this unwanting effect:
>>>>
>>>> [Prelude] Loading personal configuration files in
>>>> /home/joseph/.emacs.d/personal/preload...
>>>> Loading /home/joseph/.emacs.d/personal/preload/myorgexport.el (source)...
>>>> Output file:
>>>>
>>>> and with Enter :
>>>>
>>>> [Prelude] Loading 

Re: citeproc-org and org-ref 3

2021-12-01 Thread Joseph Vidal-Rosset
Dear Andras,

You are very probably right. I will have a look on this entry in my
default bibliography file.

The code

(let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
(org-open-file  (org-html-export-to-html)))

put in .emacs.d/personal/preload/myorgexport.el

provokes the request of opening a html file, when emacs --daemon is
started; therefore I conclude that it should not be used as I did...

Anyway, every  tentative  to export in a bibliography in html fails at
the moment, even with a new bibliography file...  :(

Best wishes,

Le 01/12/2021 à 17:33, András Simonyi a écrit :
> Dear Joseph,
>
> based on the error message there seems to be a problem with the
> 'curley-nil-on-bennet-spinoz' bibliography entry, is it possible that
> it contains a 'year = nil' row? If yes then I don't think that is
> well-formed, at least citeproc-el cannot currently parse it. Anyhow,
> apparently I need to improve/add citeproc-el error messages about
> bib(la)tex parsing, because several parsing problems have surfaced
> lately and the current error messages aren't helpful at all.
>
> best wishes,
> András
>
> On Wed, 1 Dec 2021 at 16:50, Joseph Vidal-Rosset
>  wrote:
>>
>> Dear John,
>>
>> I must say that to export references in html with org-ref 3, I meet a
>> lot of problems (with LaTeX, it's fine).
>>
>> I am using prelude emacs and  GNU Emacs 29.0.50 .
>>
>> Starting emacs --daemon, the code
>>
>> (let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>>   (org-open-file  (org-html-export-to-html)))
>>
>> in my setup provokes this unwanting effect:
>>
>> [Prelude] Loading personal configuration files in
>> /home/joseph/.emacs.d/personal/preload...
>> Loading /home/joseph/.emacs.d/personal/preload/myorgexport.el (source)...
>> Output file:
>>
>> and with Enter :
>>
>> [Prelude] Loading personal configuration files in
>> /home/joseph/.emacs.d/personal/preload...
>> Loading /home/joseph/.emacs.d/personal/preload/myorgexport.el (source)...
>> Output file:
>> Warning (initialization): An error occurred while loading
>> ‘/home/joseph/.emacs.d/init.el’:
>>
>> Wrong type argument: stringp, nil
>>
>> To ensure normal operation, you should investigate and remove the
>> cause of the error in your initialization file.  Start Emacs with
>> the ‘--debug-init’ option to view a complete error backtrace. Disable
>> showing Disable logging
>> Starting Emacs daemon.
>>
>> With --debug-init, I get:
>>
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>> string-to-number(nil)
>> citeproc-bt--to-csl-date("nil" nil)
>> citeproc-blt-entry-to-csl((("Url" .
>> "http://dx.doi.org/10.1163/9789004246638_005;) ("Doi" .
>> "10.1163/9789004246638_005") ("Date_added" . "Mon May 16 19:09:37 2016")
>> ("Booktitle" . "Spinoza: Issues and Directions") ("Series" . "Spinoza:
>> Issues and Directions") ("Year" . "nil") ("Publisher" . "Brill Academic
>> Publishers") ("Pages" . "39-52") ("Author" . "Edwin Curley") ("Title" .
>> "ON BENNETTS SPINOZA: THE ISSUE OF TELEOLOGY") ("=type=" . "InBook")
>> ("=key=" . "curley-nil-on-bennet-spinoz")) nil nil)
>> #f(compiled-function (key entry) #> -0x7fcb46b5c8e80b3>)("curley-nil-on-bennet-spinoz" (("Url" .
>> "http://dx.doi.org/10.1163/9789004246638_005;) ("Doi" .
>> "10.1163/9789004246638_005") ("Date_added" . "Mon May 16 19:09:37 2016")
>> ("Booktitle" . "Spinoza: Issues and Directions") ("Series" . "Spinoza:
>> Issues and Directions") ("Year" . "nil") ("Publisher" . "Brill Academic
>> Publishers") ("Pages" . "39-52") ("Author" . "Edwin Curley") ("Title" .
>> "ON BENNETTS SPINOZA: THE ISSUE OF TELEOLOGY") ("=type=" . "InBook")
>> ("=key=" . "curley-nil-on-bennet-spinoz")))
>> maphash(#f(compiled-function (key entry) #> -0x7fcb46b5c8e80b3>) #)
>> citeproc-hash-itemgetter-from-any(("~/Dropbox/Orgzly/reforg.bib"))
>> org-ref-process-buffer(html)
>> org-ref-csl-preprocess-buffer(html)
>> run-hook-with-args(org-ref-csl-preprocess-buffer html)
>> org-export-as(html nil nil nil (:out

Re: citeproc-org and org-ref 3

2021-12-01 Thread Joseph Vidal-Rosset
21 à 18:31, John Kitchin a écrit :
> See https://www.youtube.com/watch?v=rRR-5NSpKyE
> <https://www.youtube.com/watch?v=rRR-5NSpKyE> for an overview of what to
> do. basically you need a csl file that provides the style you want, and
> you specify it like this in the org file or in default settings. You may
> also need a locale file if you are not blogging in english.
>
> #+csl-style: apa-5th-edition.csl
>
> #+csl-locale: en-US
>
>
> You can find a basic example org file for html export with CSL at
> https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org
> <https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org>
>
> Here is a minimal way to export your blog file I suppose.
>
> (let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>(org-open-file  (org-html-export-to-html)))
>
>
> John
>
> ---
> Professor John Kitchin (he/him/his)
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu <http://kitchingroup.cheme.cmu.edu>
>
>
>
> On Tue, Nov 30, 2021 at 12:16 PM András Simonyi
> mailto:andras.simo...@gmail.com>> wrote:
>
> Dear Joseph,
>
> unfortunately, my note on the `citeproc-org` page has become kind of
> misleading and has to be updated because org-ref didn't switch to the
> new org-cite citation syntax after all, although this was the plan for
> a while. I think if you wish to use org-ref 3 then you should simply
> remove citeproc-org entirely -- if I understand correctly the latest
> version of org-ref supports the old syntax as well and is capable of
> CSL-based export (among others) on its own.
>
> best regards,
> András
>
> On Tue, 30 Nov 2021 at 18:00, Joseph Vidal-Rosset
> mailto:jos...@vidal-rosset.net>> wrote:
>  >
>  >
>  > Dear John, and dear Andras,
>  >
>  > Having updated my org-ref to the last version, I see that the html
>  > export of bibliography does not work any longer for my blog.
>  >
>  > Reading Andras's note here
>  > https://github.com/andras-simonyi/citeproc-org
> <https://github.com/andras-simonyi/citeproc-org>
>  > I confess that I am lost.
>  >
>  > What have I to do to not waste too much time with this problem?
>  >
>  > Best wishes,
>  >
>  > Jo.
>  >
>




Re: citeproc-org and org-ref 3

2021-11-30 Thread Joseph Vidal-Rosset
Many thanks John !  I will try and I will inform all of you.

Best wishes,

Jo.

Le 30/11/2021 à 18:31, John Kitchin a écrit :
> See https://www.youtube.com/watch?v=rRR-5NSpKyE
> <https://www.youtube.com/watch?v=rRR-5NSpKyE> for an overview of what to
> do. basically you need a csl file that provides the style you want, and
> you specify it like this in the org file or in default settings. You may
> also need a locale file if you are not blogging in english.
>
> #+csl-style: apa-5th-edition.csl
>
> #+csl-locale: en-US
>
>
> You can find a basic example org file for html export with CSL at
> https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org
> <https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org>
>
> Here is a minimal way to export your blog file I suppose.
>
> (let  ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer)))
>(org-open-file  (org-html-export-to-html)))
>
>
> John
>
> ---
> Professor John Kitchin (he/him/his)
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu <http://kitchingroup.cheme.cmu.edu>
>
>
>
> On Tue, Nov 30, 2021 at 12:16 PM András Simonyi
> mailto:andras.simo...@gmail.com>> wrote:
>
> Dear Joseph,
>
> unfortunately, my note on the `citeproc-org` page has become kind of
> misleading and has to be updated because org-ref didn't switch to the
> new org-cite citation syntax after all, although this was the plan for
> a while. I think if you wish to use org-ref 3 then you should simply
> remove citeproc-org entirely -- if I understand correctly the latest
> version of org-ref supports the old syntax as well and is capable of
> CSL-based export (among others) on its own.
>
> best regards,
> András
>
> On Tue, 30 Nov 2021 at 18:00, Joseph Vidal-Rosset
> mailto:jos...@vidal-rosset.net>> wrote:
>  >
>  >
>  > Dear John, and dear Andras,
>  >
>  > Having updated my org-ref to the last version, I see that the html
>  > export of bibliography does not work any longer for my blog.
>  >
>  > Reading Andras's note here
>  > https://github.com/andras-simonyi/citeproc-org
> <https://github.com/andras-simonyi/citeproc-org>
>  > I confess that I am lost.
>  >
>  > What have I to do to not waste too much time with this problem?
>  >
>  > Best wishes,
>  >
>  > Jo.
>  >
>




Re: citeproc-org and org-ref 3

2021-11-30 Thread Joseph Vidal-Rosset
Many thanks Andras for this first clarification. There is no hurry and
after John's advice, I will take the most convenient decision.

Many thanks to both of you for your very helpful works.

Best wishes,

Jo.

Le 30/11/2021 à 18:16, András Simonyi a écrit :
> Dear Joseph,
>
> unfortunately, my note on the `citeproc-org` page has become kind of
> misleading and has to be updated because org-ref didn't switch to the
> new org-cite citation syntax after all, although this was the plan for
> a while. I think if you wish to use org-ref 3 then you should simply
> remove citeproc-org entirely -- if I understand correctly the latest
> version of org-ref supports the old syntax as well and is capable of
> CSL-based export (among others) on its own.
>
> best regards,
> András
>
> On Tue, 30 Nov 2021 at 18:00, Joseph Vidal-Rosset
>  wrote:
>>
>>
>> Dear John, and dear Andras,
>>
>> Having updated my org-ref to the last version, I see that the html
>> export of bibliography does not work any longer for my blog.
>>
>> Reading Andras's note here
>> https://github.com/andras-simonyi/citeproc-org
>> I confess that I am lost.
>>
>> What have I to do to not waste too much time with this problem?
>>
>> Best wishes,
>>
>> Jo.
>>




citeproc-org and org-ref 3

2021-11-30 Thread Joseph Vidal-Rosset


Dear John, and dear Andras,

Having updated my org-ref to the last version, I see that the html
export of bibliography does not work any longer for my blog.

Reading Andras's note here
https://github.com/andras-simonyi/citeproc-org
I confess that I am lost.

What have I to do to not waste too much time with this problem?

Best wishes,

Jo.




Re: org-ref 2 vs org-ref 3

2021-10-20 Thread Joseph Vidal-Rosset
Many thanks John. It is very helpful.

All the best,

Jo

Envoyé depuis ProtonMail mobile

 Message d'origine 
Le 20 oct. 2021 à 14:48, John Kitchin a écrit :

> All the breaking changes are documented at 
> https://github.com/jkitchin/org-ref/#breaking-changes-in-version-3.
>
> You can find configuration details at 
> https://github.com/jkitchin/org-ref/#configuration.
>
> On Wed, Oct 20, 2021 at 2:59 AM Joseph Vidal-Rosset  
> wrote:
>
>> Dear John,
>>
>> I upgraded org-ref to get org-ref 3 and I met the following difficulties:
>>
>> - my shortcut to get the list of my bib file did not work, and I have to
>> use the emacs menu,
>
> If you mean keyboard shortcuts (like C-c ]), you should define these in your 
> init files as described in the configuration above. org-ref does not do this 
> automatically anymore.
>
>> - I did not get via org-ref a pdf file of any paper,
>
> I can't help you on this with so little information. is there some error?
>
>> - cite links with the page(s) via "description" show only the page but
>> the reference is hidden,
>
> I consider the syntax of pre/postnote in the description to be deprecated 
> (but still supported). I pushed a fix to show the full links with a 
> description for the version 2 syntax. The preferred way to do pre/post notes 
> now is like:
>
> version 3 syntax (keys are prefixed by &, and prenote is before the key, 
> postnote is after the key.
>
> [[cite: 45]]
>
> [[cite:see  45]]
>
> These export to:
>
> \cite[45]{xiao-2006-size-effec}
>
> \cite[see][45]{xiao-2006-size-effec}
>
> version 2 syntax still works, (the two key differences are there is no & 
> prefixing the citation key, and the pre/post note is in the description.
>
> These citations
>
> [[cite:xiao-2006-size-effec][45]]
>
> [[cite:xiao-2006-size-effec][see::45]]
>
> export to:
>
> version 2 syntax
>
> \cite[45]{xiao-2006-size-effec}
>
> \cite[see][45]{xiao-2006-size-effec}
>
>> at the moment, I downgraded to org-ref 2 and everything works fine.
>>
>> I imagine that all is in the documentation you wrote to solve these
>> problems, but I wanted to point out them, in order to solve them easily
>> and to contribute to the improvement of this terrific tool you gave to
>> us. I do not imagine now writing without org-ref.
>>
>> Thanks !
>>
>> Jo.

org-ref 2 vs org-ref 3

2021-10-20 Thread Joseph Vidal-Rosset


Dear John,

I upgraded org-ref to get org-ref 3 and I met the following difficulties:

- my shortcut to get the list of my bib file did not work, and I have to
use the emacs menu,

- I did not get  via org-ref  a pdf file of any paper,

- cite links with the page(s) via "description" show only the page but
the reference is hidden,

at the moment, I downgraded to org-ref 2 and everything works fine.

I imagine that all is in the documentation you wrote to solve these
problems, but I wanted to point out them, in order to solve them easily
and to contribute to the improvement of this terrific tool you gave to
us. I do not imagine now writing without org-ref.

Thanks !

Jo.




[SOLVED] Re: citeproc-style-parse: Symbol’s function definition is void: libxml-parse-xml-region

2021-10-18 Thread Joseph Vidal-Rosset



Le 18/10/2021 à 18:49, Joseph Vidal-Rosset a écrit :

> I just did it. But the problem is always the same... :(

I did it in a wrong way. I compiled emacs again, and it works now!
Many thanks to all !

Bonne soirée !

Jo.




Re: citeproc-style-parse: Symbol’s function definition is void: libxml-parse-xml-region

2021-10-18 Thread Joseph Vidal-Rosset



Le 18/10/2021 à 16:46, András Simonyi a écrit :
> Dear Joseph,
>
> in theory evaluating
>
> (libxml-available-p)
>
> should tell you whether your Emacs has libxml support -- most probably
> it doesn't. Maybe you should try to recompile using the --with-xml2
> switch.

Dear Andras,

I just did it. But the problem is always the same... :(





Re: citeproc-style-parse: Symbol’s function definition is void: libxml-parse-xml-region

2021-10-18 Thread Joseph Vidal-Rosset



Le 18/10/2021 à 12:54, John Kitchin a écrit :
> This could mean you have an emacs that was not compiled with libxml.
>
> Type C-h v system-configuration-options
>
> and look for --with-xml2
>
> to see if your emacs was built with it.
> John

I have this.

#ifdef HAVE_LIBXML2
   xml_cleanup_parser ();
#endif

It seems thereofre that emacs was indeed compiled with libxml .

But the message

citeproc-style-parse: Symbol’s function definition is void: libxml
parse-xml-region

when I run org-export-head persists and my blog engine fails... :(







Re: citeproc-style-parse: Symbol’s function definition is void: libxml-parse-xml-region

2021-10-18 Thread Joseph Vidal-Rosset



Le 18/10/2021 à 12:54, John Kitchin a écrit :
> This could mean you have an emacs that was not compiled with libxml.
>
> Type C-h v system-configuration-options
>
> and look for --with-xml2
>
> to see if your emacs was built with it.
> John

Thanks !

> ---
> Professor John Kitchin (he/him/his)
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu 
>
>
>
> On Mon, Oct 18, 2021 at 4:12 AM Timothy  > wrote:
>
> Hi Joseph,
>
> The function libxml-parse-xml-region has been around for a while,
> what version
> of Emacs are you running?

I just compiled emacs 29...

> All the best,
> Timothy
>




citeproc-style-parse: Symbol’s function definition is void: libxml-parse-xml-region

2021-10-18 Thread Joseph Vidal-Rosset
Hello everybody,

I get this message error with citeproc:

citeproc-style-parse: Symbol’s function definition is void:
libxml-parse-xml-region


I do not find the solution. Your help is welcome,

All the best,

Jo.




Re: org-beamer empty titles

2021-10-13 Thread Joseph Vidal-Rosset
To Eric and to Ihor, many thanks. My problem was already solved by Eric
with the LateX magic trick, so, I consider now that the problem is solved.

Best wishes,

Jo.

Le 13/10/2021 à 09:50, Ihor Radchenko a écrit :
> Joseph Vidal-Rosset  writes:
>
>> Maybe. I'm using presently Prelude Emacs and in elpa I have org-20210920/
>>
>> What can I do?
>
> I guess https://prelude.emacsredux.com/en/latest/support/
> ELPA does have the right Org mode version:
> http://elpa.gnu.org/packages/org.html
>




Re: org-beamer empty titles

2021-10-12 Thread Joseph Vidal-Rosset




Le 12/10/2021 à 17:01, Eric S Fraga a écrit :
> Ihor, thank you for this.
>
> Jo, what actual version of org are you using?  I'm using a fairly recent
> version (as of last week) so maybe what you want to do is possible now
> but was not earlier?
>
> --
> : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250
> : Latest paper written in org: https://arxiv.org/abs/2106.05096
>

Maybe. I'm using presently Prelude Emacs and in elpa I have org-20210920/

What can I do?

All the best,

Jo.




Re: org-beamer empty titles

2021-10-12 Thread Joseph Vidal-Rosset




Le 12/10/2021 à 13:51, Eric S Fraga a écrit :
> On Tuesday, 12 Oct 2021 at 08:05, Joseph Vidal-Rosset wrote:
>> More seriously, the best solution for me would be to allow saving a file
>> with a space just after **  without deleting this space... I do not know
>> which code provokes this deletion.
>
> Maybe have a look at your write-file-hooks and write-file-functions
> variables to see if there is some invocation that strips whitespace?

The file.el of which this function depends is to big and too complicated
for me.

>
> You may wish to use the whitespace package (for a little time) to see
> when a space at the end of headline disappears.  The whitespace package
> is part of Emacs.
>
> --
> : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250
> : Latest paper written in org: https://arxiv.org/abs/2106.05096
>

This problem was also described here:

https://emacs.stackexchange.com/questions/54970/preserving-the-space-immediately-after-an-org-heading-when-deleting-trailing-whi

But no solution was given.

All the best,

Jo.




Re: org-beamer empty titles

2021-10-12 Thread Joseph Vidal-Rosset



Le 12/10/2021 à 13:51, Eric S Fraga a écrit :
> On Tuesday, 12 Oct 2021 at 08:05, Joseph Vidal-Rosset wrote:
>> I just tried what you suggested to me. The result is always the same: I
>> get the following title:
>> :emptytitle:
>> but this title is not empty, contradiction. :)
>
> This is very strange.  What does the LaTeX code generated look like for
> this case?  In my case, I get:
>
> \begin{frame}[label={sec:org4b25942}]{}
> some text for the slide
> \end{frame}

I get  this :

\begin{frame}[label={sec:org89e57ca}]{:emptytitle:}
\begin{block}{test}
test
\end{block}
\end{frame}

>> More seriously, the best solution for me would be to allow saving a file
>> with a space just after **  without deleting this space... I do not know
>> which code provokes this deletion.
>
> Maybe have a look at your write-file-hooks and write-file-functions
> variables to see if there is some invocation that strips whitespace?
>
> You may wish to use the whitespace package (for a little time) to see
> when a space at the end of headline disappears.  The whitespace package
> is part of Emacs.

Thanks ! I am going to see this point, very soon.

All the best,

Jo.




Re: org-beamer empty titles

2021-10-12 Thread Joseph Vidal-Rosset




Le 12/10/2021 à 09:47, Eric S Fraga a écrit :
> Jo,
>
> I am curious to know why the second proposed solution, i.e. putting a
> tag on the headline with no actual headline text, didn't work for
> you.  It might be that you need to have
>
> #+options: tags:nil
>
> It worked for me and, at least to me, seems cleaner as you could then
> have headlines like this:
>
> **   :emptytitle:
>
> which are more clear in terms of intent.  Like I said, just curious.
>
> --
> : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250
> : Latest paper written in org: https://arxiv.org/abs/2106.05096
>

I just tried what you suggested to me. The result is always the same: I
get the following title:
:emptytitle:
but this title is not empty, contradiction. :)

More seriously, the best solution for me would be to allow saving a file
with a space just after **  without deleting this space... I do not know
which code provokes this deletion.

Best wishes,

Jo.




Re: org-beamer empty titles

2021-10-12 Thread Joseph Vidal-Rosset



Le 10/10/2021 à 23:30, Joseph Vidal-Rosset a écrit :
>
>
> Le 10/10/2021 à 22:04, Eric S Fraga a écrit :
>> On Sunday, 10 Oct 2021 at 17:44, Joseph Vidal-Rosset wrote:
>>> I reply to my question about org-bullets: the reply is no. Registering
>>> an empty title section delete the space and then the export frame does
>>> not work. :(
>>
>> I am not sure what you mean by "registering".  You can type "* "
>> directly to create an empty headline, can you not?
>>
>> In any case, you could try the following maybe:
>>
>> *   :sometag:
>>
>> or, if getting desperate, resort to some LaTeX magic:
>>
>> * @@latex:}%@@
>>
>> --
>> : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250
>> : Latest paper written in org: https://arxiv.org/abs/2106.05096
>>
>
> Many thanks Eric, the magic LaTeX solution works (but why?).

Just a word to thank again Eric Fraga for this solution and to describe
the way I have taken:

I have added to one of my personal configuration files the following code:

(global-set-key (kbd "C-c m") (lambda () (interactive) (insert
"@@latex:}%@@")))

And after each double star for beamer frame, after adding the relevant
space, I type C-c m  to insert @@latex:}%@@  when I do not want a title
for this frame, which is the most frequent case.

I hope it will help people who meet the same problem.

Best wishes,

Jo.




Re: org-beamer empty titles

2021-10-10 Thread Joseph Vidal-Rosset



Le 10/10/2021 à 22:04, Eric S Fraga a écrit :
> On Sunday, 10 Oct 2021 at 17:44, Joseph Vidal-Rosset wrote:
>> I reply to my question about org-bullets: the reply is no. Registering
>> an empty title section delete the space and then the export frame does
>> not work. :(
>
> I am not sure what you mean by "registering".  You can type "* "
> directly to create an empty headline, can you not?
>
> In any case, you could try the following maybe:
>
> *   :sometag:
>
> or, if getting desperate, resort to some LaTeX magic:
>
> * @@latex:}%@@
>
> --
> : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250
> : Latest paper written in org: https://arxiv.org/abs/2106.05096
>

Many thanks Eric, the magic LaTeX solution works (but why?).

"Registering" means "Ctrl-x-s" i.e. saving a file: when I save the org
file, the blank space disappears...

Best wishes,

Jo.




Re: org-beamer empty titles

2021-10-10 Thread Joseph Vidal-Rosset



Le 10/10/2021 à 19:28, Joseph Vidal-Rosset a écrit :
>
>
> Le 10/10/2021 à 19:22, Eric S Fraga a écrit :
>> On Sunday, 10 Oct 2021 at 17:12, Joseph Vidal-Rosset wrote:
>>> If there is no title following star(s), then the export into frame does
>>
>> If you mean that you have a headline but with nothing but the *s, what
>> happens if you add a space after the last *?  I.e. have a not empty
>> headline but one that leads to nothing to print?  This works for me in
>> that the LaTeX compiles and the frame title is empty.
>
> The problem is that, surprisingly, the space is deleted as soon as the
> file is registered. I am using org-bullets, is it the cause of this
> problem?

I reply to my question about org-bullets: the reply is no. Registering
an empty title section delete the space and then the export frame does
not work. :(






Re: org-beamer empty titles

2021-10-10 Thread Joseph Vidal-Rosset



Le 10/10/2021 à 19:22, Eric S Fraga a écrit :
> On Sunday, 10 Oct 2021 at 17:12, Joseph Vidal-Rosset wrote:
>> If there is no title following star(s), then the export into frame does
>
> If you mean that you have a headline but with nothing but the *s, what
> happens if you add a space after the last *?  I.e. have a not empty
> headline but one that leads to nothing to print?  This works for me in
> that the LaTeX compiles and the frame title is empty.

The problem is that, surprisingly, the space is deleted as soon as the
file is registered. I am using org-bullets, is it the cause of this
problem?


Thanks for your help, Eric.

All the best,

Jo.




org-beamer empty titles

2021-10-10 Thread Joseph Vidal-Rosset


Hello everybody,

With an .org file for presentation:

#+TITLE:
#+DATE:
#+OPTIONS: H:2 toc:nil author:t
#+LATEX_CLASS: beamer-fr
#+LANGUAGE:fr

I meet the following problem:

If there is no title following star(s), then the export into frame does
not work. This behavior is not convenient: often space is needed in some
frame and titles are not necessary.

I do not find the solution, hence my email to this list.

Best wishes,

Jo.




Re : Re: Capture abort: Symbol’s function definition is void: turn-on-org-provide

2021-09-23 Thread Joseph Vidal-Rosset
Le jeudi 23 septembre 2021 à 18:12, Ihor Radchenko  a écrit 
:

> Joseph Vidal-Rosset jos...@vidal-rosset.net writes:
>
> > But nowhere in this file have function " turn-on-org-provide" . :(
> >
> > A suggestion?
>
> Try to setting debug-on-error to 't and share backtrace of the error.
>
> Best,
>
> Ihor

I got the following backtrace:

#[512 \203\0  \306=\203\0\307\310\232!\311\267\202\0\312!\207\313 
\207p\314\303!\203/\0\203/\0\315\316"\202<\0\3171:\0\320\321!0\202<\0\210\321
\206C\0\322!\321@\206R\0\323 \205R\0`\324 
{\262\211;\203a\0\325\326G\327$\210;\203o\0\325\326G\330$\210\331\267\202\201\0\332\333!\202\204\334\335!\202\204\336!\210\337
 \210\340\341\342\343!\206\240\0\344\345!\205\240\0\346A"@\347\343
!\205\256\0\350\343!!\316
\351
\352\353 \354
\206\276\0\355 &\210\356\326\232\205\312\0\357!\210\3601\331\0\340\361\362 
"0\202\353\0\363\364!\203\343\0\365\364!\210\366\367\370!"\262\210\371\372!B\3731\374\371\375!@\376=!0\2020\377p!\203\201E\0\201F\0\201G\0
 
"\203\365p!\210\201H\0\371\352!!\210\366\201I\0\371\201J\0!\370!#\262\210\201K\0\201L\0!\203x\371\201M\0!\203x\201N\01s\201O\0
 \203\\340\201P\0\201Q\0C!"\210\201R\0 
\210\201S\0\201D\0!\210\201T\0\211D0\202w\210\202x\210\371\201U\0!\205\204\201V\0
 \207 [org-capture-use-agenda-date major-mode org-overriding-default-time 
org-capture-link-is-already-stored org-store-link-plist org-capture-entry 
org-agenda-mode org-get-cursor-date 1 #s(hash-table size 2 test equal 
rehash-size 1.5 rehash-threshold 0.8125 purecopy t data ((4) 22 (16) 26)) ...] 
21 (/home/joseph/.emacs.d/elpa/org-plus-contrib-20210920/org-capture.elc . 
24239) P]: Capture abort: Symbol’s function definition is void: 
turn-on-org-provide

If this backtrace provides some clue... please, telle me.

All the best,

Jo.



Re: Capture abort: Symbol’s function definition is void: turn-on-org-provide

2021-09-23 Thread Joseph Vidal-Rosset



Le 23/09/2021 à 18:02, John Kitchin a écrit :
> you should use describe-variable on org-capture-templates. Maybe some
> other package has added to it.
> John

Many thanks John, I am going to try this way!

Best wishes,

Jo.




Re: Capture abort: Symbol’s function definition is void: turn-on-org-provide

2021-09-23 Thread Joseph Vidal-Rosset



Le 23/09/2021 à 17:28, Daniel Fleischer a écrit :
> Joseph Vidal-Rosset  writes:
>
>> To capture an email and to link this message for gnus, I get now this
>> error message:
>>
>> Capture abort: Symbol’s function definition is void: turn-on-org-provide
>
> What is your capture template?
>
> --
>
> Daniel Fleischer

In myagenda.el  I have this function:

(setq org-capture-templates
   '(
("t" "todo" entry (file+headline "~/Dropbox/Orgzly/todo.org" "Tasks")
  "* TODO [#A] %?\n
[[~/Dropbox/Orgzly/links.org::%(org-insert-time-stamp (org-read-date nil
t \"%:date\"))]] \n* %(org-insert-time-stamp (org-read-date nil t
\"%:date\")) %a "
 )
("n"  ; key
 "note"   ;name
 entry;type
 (file+headline "~/Dropbox/Orgzly/notes.org" "Notes")  ;target
  "* NOTE du %(org-insert-time-stamp (org-read-date nil t
\"%:date\")) \n Voir %a " ; template
 )
("H" "HOWTO: C-c C-s : schedule ; C-c C-d : deadline ; C-c C-w :
org-refile at a point; last: C-c C-t : DONE - F11-a: org-archive"
  entry (file+headline "" "") ""
 )
)
   )

But nowhere in this file have function " turn-on-org-provide" . :(

A suggestion?

Many thanks,

Jo.




Re : Capture abort: Symbol’s function definition is void: turn-on-org-provide

2021-09-23 Thread Joseph Vidal-Rosset
I did not say that I'm using Prelude Emacs. Maybe it can be useful to solve my 
problem.

‐‐‐ Original Message ‐‐‐

Le jeudi 23 septembre 2021 à 14:38, Joseph Vidal-Rosset 
 a écrit :

> Hello,
>
> My problem is already explained in the subject of this email.
>
> To capture an email and to link this message for gnus, I get now this
>
> error message:
>
> Capture abort: Symbol’s function definition is void: turn-on-org-provide
>
> I've tried to Google this bug, getting no result. Your help is welcome.
>
> Thanks,
>
> Best wishes,
>
> Jo.



Capture abort: Symbol’s function definition is void: turn-on-org-provide

2021-09-23 Thread Joseph Vidal-Rosset
Hello,

My problem is already explained in the subject of this email.

To capture an email and to link this message for gnus, I get now this
error message:

Capture abort: Symbol’s function definition is void: turn-on-org-provide

I've tried to Google this bug, getting no result. Your help is welcome.

Thanks,

Best wishes,

Jo.




Re: creating png images in emails with org-mode

2020-09-16 Thread Joseph Vidal-Rosset
Hello,

My problem has just been  solved with substituting dvipng for imagemagick:

(setq org-latex-create-formula-image-program 'dvipng)

; (setq org-latex-create-formula-image-program 'imagemagick)

Le mer. 16 sept. 2020 à 12:03, Joseph Vidal-Rosset <
joseph.vidal.ros...@gmail.com> a écrit :

> Hello,
>
> One more time, my setup to create png image via LaTeX in email in org-mode
> is broken.
>
> I get this error message:
>
> Creating LaTeX preview...
> org-compile-file: File "/tmp/orgtex2wp50c.png" wasn’t produced.  Please
> adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.
>
> Your help is welcome, because I do not understand what I have to do, how I
> have to "adjust" imagemagick.
>
> Best wishes,
>
> Jo.
>


creating png images in emails with org-mode

2020-09-16 Thread Joseph Vidal-Rosset
Hello,

One more time, my setup to create png image via LaTeX in email in org-mode
is broken.

I get this error message:

Creating LaTeX preview...
org-compile-file: File "/tmp/orgtex2wp50c.png" wasn’t produced.  Please
adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.

Your help is welcome, because I do not understand what I have to do, how I
have to "adjust" imagemagick.

Best wishes,

Jo.


Re: org-mode 9.3 links gnus

2020-07-29 Thread Joseph Vidal-Rosset
Hi Eric,

You are probably right, I guess a change between 9.1 and 9.3 on this point.
I just downgraded to emacs 26.1 and to org-mode 9.1 because I also noticed
that org-export-head https://github.com/itf/org-export-head i.e. the org
blog exporter that I am using does not work with org-mode 9.3,
unfortunately, and Ivan has no time to adapt this tool to the last release
of org-mode. That's too bad...

Best wishes,

Jo.

Le mer. 29 juil. 2020 à 13:37, Eric S Fraga  a écrit :

> On Wednesday, 29 Jul 2020 at 12:01, Joseph Vidal-Rosset wrote:
> >  (replace-match "gnus:\\[Gmail\\]/Tous les messages#"))
>
> I wonder whether you have too many \\ (or even any) in this and the
> similar replace-string that comes later?  Why do you have these at all?
> The string argument to both replace-match and replace-string [1] is not
> a regexp so [] do not mean anything special.
>
> Have you tried with just "gnus:[Gmail]/..."?
>
> eric
>
> Footnotes:
> [1] and according to the documentation, replace-string should only be
>  used interactively and you should use replace-match instead.
>
> --
> : Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-682-geac255
>


org-mode 9.3 links gnus

2020-07-29 Thread Joseph Vidal-Rosset
Hello,

With org-mode  9.3 I have  not solved the  problem of links  for getting
emails in the Archives messages ("Tous les messages");

The following  function in my setup  provide a link that  fails. I quote
it:

;; Merci à  Bob Newell , avec ce code, le lien de l'email est modifié 
correctement dès l'usage de la fonction refile C-c C-w
  (defun jr/fix-the-link ( args)
 (interactive)
 (save-excursion
   (find-file "~/Dropbox/Orgzly/todo.org")
   (goto-char (point-min))
   (while (search-forward "gnus:INBOX#" nil t)
 (replace-match "gnus:\\[Gmail\\]/Tous les messages#"))
   (save-buffer)))
(advice-add 'org-capture-finalize :after #'jr/fix-the-link)

;; si cela échoue, cette fonction peut prendre le relai:

(defun hs/replace ()
   (interactive)
   (goto-char 1)
   (let ((search-invisible t)) (replace-string "gnus:INBOX#" 
"gnus:\\[Gmail\\]/Tous les messages#")))
(define-key global-map (kbd "C-c r") 'hs/replace)

I get this error message:

gnus-select-newsgroup: Couldn’t activate group \[Gmail\]/Tous les messages: NO 
(NONEXISTENT) Unknown Mailbox: \[Gmail\]/Tous les messages (Failure) [2 times]


I had not this problem with org-mode 9.1,  and I do not know if there is
a solution, in spite of this message:

https://lists.gnu.org/archive/html/emacs-orgmode/2019-12/msg00065.html

Your help is welcome !

Best wishes,

Jo.



Re: Waiting for refresh to finish...

2020-07-27 Thread Joseph Vidal-Rosset
Le lun.  07/27/20 juil. 2020 à  08:28:03 , to...@tuxteam.de a  envoyé ce
message:
>  Try to remove that milkbox entry.
>
> Cheers
> -- t
>

I dit it immediately and it works now !

Many thanks Tomas ! You really just helped me very efficiently !

Best wishes, 
-- 
Joseph 



Re: Waiting for refresh to finish...

2020-07-27 Thread Joseph Vidal-Rosset
Hi again,

Many thanks for your reply. Here are the details requested. 

Le lun.  07/27/20 juil. 2020 à  07:27:42 , to...@tuxteam.de a  envoyé ce
message:
> On Mon, Jul 27, 2020 at 07:13:42PM +0200, Joseph Vidal-Rosset wrote:
>> Thanks  for your  help,  Tomas,  here is  the  beginning  of my  init.el
>> (suggestions to improve it are of course welcome):
>
> Caveat: as I said, I'm most probably not the right guy to answer that, but
> hey.
>
> [...]
>
>> ;; Configure Emacs package manager. Not required anymore on Emacs > 27
>> (if (version< emacs-version "27")
>> (package-initialize)  )
>> (require 'package)
>> (setq package-archives
>>   '(("melpa" . "https://melpa.org/packages/;)
>> ("melpa-stable" . "https://stable.melpa.org/packages/;)
>> ("org" . "https://orgmode.org/elpa/;)
>>; ("gnu" . "https://elpa.gnu.org/packages/;)
>>  ))
>
> This might be the relevant tidbit. But still, we don't know what version
> your Emacs is, and thus whether this code is actually relevant or not.

joseph@mx:~$ emacs --version
GNU Emacs 26.1


>
> What is the actual value of your variable `package-archives' in your
> Emacs   running   instance?  Try   doing   C-h   v  and   then   enter
> `package-archives'.

package-archives’s value is
(("melpa" . "https://melpa.org/packages/;)
 ("melpa-stable" . "https://stable.melpa.org/packages/;)
 ("org" . "https://orgmode.org/elpa/;)
 ("melpa" . "http://melpa.milkbox.net/packages/;))
Original value was 
(("gnu" . "https://elpa.gnu.org/packages/;))

  This variable may be risky if used as a file-local variable.

Documentation:
An alist of archives from which to fetch.
The default value points to the GNU Emacs package repository.

Each element has the form (ID . LOCATION).
 ID is an archive name, as a string.
 LOCATION specifies the base location for the archive.
  If it starts with "http(s):", it is treated as an HTTP(S) URL;
  otherwise it should be an absolute directory name.
  (Other types of URL are currently not supported.)

Only add locations that you trust, since fetching and installing
a package can run arbitrary code.

You can customize this variable.

This variable was introduced, or its default value was changed, in
version 26.1 of Emacs.


> Are those sites reachable from your place? I.e. try something like
>
>   curl -I https://stable.melpa.org/packages/
> in a shell (likewise for the other URLs). For me, they are all four.
> We still don't know whether those are the ones your Emacs is trying
> to reach (and the hunch with networking is just that, a hunch).

joseph@mx:~$  curl -I https://stable.melpa.org/packages/
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 27 Jul 2020 17:58:28 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 306
Last-Modified: Fri, 14 Dec 2018 04:45:09 GMT
Connection: keep-alive
Vary: Accept-Encoding
ETag: "5c133555-132"
Strict-Transport-Security: max-age=15768000
Accept-Ranges: bytes


> Cheers
> -- t

Thanks for your kind help !

Jo. 

-- 
Joseph 



Re: Waiting for refresh to finish...

2020-07-27 Thread Joseph Vidal-Rosset
Thanks  for your  help,  Tomas,  here is  the  beginning  of my  init.el
(suggestions to improve it are of course welcome):

(defvar last-file-name-handler-alist file-name-handler-alist)
(setq gc-cons-threshold  602653184
  gc-cons-percentage 0.6
  file-name-handler-alist nil)

;;; General configuration section

;; Dumped Emacs
;; (when (boundp 'galactic-emacs-pdumper-dumped)
;;  ;; Restore `load-path'
;;  (setq load-path galactic-emacs-pdumper-load-path)
  ;; When Emacs starts from dump file, some default modes are not
  ;; enabled
;;  (global-font-lock-mode)
;;  (transient-mark-mode))

(when (> emacs-major-version 23)
   (require 'package)
  (package-initialize)
  (add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/;)
 'APPEND))

;; Configure Emacs package manager. Not required anymore on Emacs > 27
(if (version< emacs-version "27")
(package-initialize)  )
(require 'package)
(setq package-archives
  '(("melpa" . "https://melpa.org/packages/;)
("melpa-stable" . "https://stable.melpa.org/packages/;)
("org" . "https://orgmode.org/elpa/;)
   ; ("gnu" . "https://elpa.gnu.org/packages/;)
))

;; Some combination of GNU TLS and Emacs fail to retrieve archive
;; contents over https.
;; 
https://www.reddit.com/r/emacs/comments/cdei4p/failed_to_download_gnu_archive_bad_request/etw48ux
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341
(if (and (version< emacs-version "26.3") (>= libgnutls-version 30600))
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))

;; Enable packages signature verification only if GPG is installed
(setq package-check-signature (when (executable-find "gpg") 'allow-unsigned))

;; Change the below priorities if you prefer melpa-stable packages.
;; Higher is better.
(setq package-archive-priorities
  '(
("melpa" .  4)
("melpa-stable" . 3)
("org" . 2)
("gnu" . 1)
)
   )

;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile
  (require 'use-package))
(use-package use-package-ensure-system-package
  :ensure t)
(setq package-enable-at-startup nil)


;; addendum from scimax

(require 'package)
(add-to-list 'package-archives
 '("melpa" . "http://melpa.milkbox.net/packages/;) t)
(package-initialize)



(when (not package-archive-contents)
  (package-refresh-contents))
-- 
Joseph 



Waiting for refresh to finish...

2020-07-27 Thread Joseph Vidal-Rosset
Hello everybody,

"Waiting for refresh to finish..." is the message that I get with U command
after package-list-packages, but the refresh is never finished and I cannot
upgrade the packages.

Help is welcome.

Best wishes,

Jo.


Re: org-ref for html and blog ?

2020-06-09 Thread Joseph Vidal-Rosset
Le   mar.   06/09/20   juin   2020   à   07:40:06   ,   András   Simonyi
 a envoyé ce message:
> Dear Joseph,
>
> strangely enough, using the same Emacs version with no customisations,
> and only the packages you listed (and their dependencies) with exactly
> the same versions I still can't reproduce any problem with the
> standard Org html export (C-c C-e and "Export to HTML") after running
> citeproc-org-setup. The only suspicious thing I noticed was that
> ox-pandoc does not seem to play totally nicely with citeproc-org --
> the references are not formatted correctly. Were you perhaps referring
> to ox-pandoc's html export? If not then I would still need a detailed
> minimal example I'm afraid.
>
> best regards,
> András

Dear Andras,

Thanks for having tried. I am sorry to be unable to give you an example,
because emacs do not reply with this "bug" (that comes from in fact from
my emacs setup, but  where exactly, I do not know)  and therefore I have
to kill it.

I will try to get a simpler setup and I will inform you.

Best wishes,

-- 
Jo.



Re: org-ref for html and blog ?

2020-06-09 Thread Joseph Vidal-Rosset
Dear Andras,

I just made test with less packages and the problem is not linked at
all with org-export-head. In fact html export is no more possible with
my emacs as soon as

M-x citeproc-org-setup

is done.

Here are the list of packages:

Emacs 26.3
 org9.1.9 built-in (but the problem is the
same with a more recent version of org).
 org-bullets20200317.1740 installed
  org-context20200418.1540 installed
  org-mime   20200520.1100 installed
  org-plus-contrib   20200608  installed
  outorg 20190720.2002 installed
  ox-pandoc  20180510.1338 installed
 org-ref20200606.1848 dependency
  citeproc-org   0.2.2 installed
 citeproc   20200305.2126 dependency

Best wishes,

Jo.

Le lun. 8 juin 2020 à 14:13, András Simonyi  a écrit :
>
> Hi Joseph,
>
> this is rather mysterious. I tried to reproduce the bug: Downloaded
> the ieee-with-url.csl style you are using and cloned the
> org-export-head repository. Added some bibliographic references to the
> blog entries in the example blog.org file, and... the whole export
> with org-export-head ran without errors and the references and
> bibliographies were formatted properly in the resulting html files.
>
> So I guess first we should try to find a minimal working example for
> the bug that I can reproduce. Could you send an example where you add
> just a single citation to the example blog.org file without any other
> modifications and the org-export-head export hangs because of this?
> It'd be also helpful if you could send the corresponding BibTeX entry
> plus perhaps the Emacs and Org version numbers. Also, perhaps it'd be
> worth trying out whether switching to other csl styles (e.g., the
> Chicago style shipped with citeproc-org) make any difference.
>
> best regards,
>
> András
>
>
> On Sun, 7 Jun 2020 at 16:23, Joseph Vidal-Rosset
>  wrote:
> >
> > Hi again,
> >
> > I just discovered that my problem came from citeproc-org
> >
> > More exactly I had these lines in my init.el
> >
> > (require 'citeproc)
> > (require 'citeproc-org)
> > (citeproc-org-setup)
> > (setq citeproc-org-html-bib-header "References\n")
> > (setq citeproc-org-default-style-file "~/Dropbox/Orgzly/ieee-with-url.csl")
> >
> > The function (citeproc-org-setup) is the responsible of this new problem.
> >
> > Sorry Andras to bother you with this problem with your package. I hope
> > that you will have a solution.
> >
> > Best wishes,
> >
> > Jo.
> >
> > Le dim. 7 juin 2020 à 15:12, Joseph Vidal-Rosset
> >  a écrit :
> > >
> > > Hi everybody,
> > >
> > > The package org-ref  is a wonderful tool and I do not imagine working
> > > without its helps now (again many thanks to John Kitchin).
> > >
> > > But for some days now I meet a problem with bibliography html export
> > > with org-ref and I cannot no more use org-export-head that I used for
> > > my blog (https://github.com/itf/org-export-head thanks again to Ivan)
> > > : as soon as there is a bibliographical reference, emacs loops.
> > >
> > > I guess that the problem is very probably in my emacs setup but I do
> > > not find the solution.
> > >
> > > I would be happy to find help with html export with bibliographical
> > > references, and advices for the best solution for blogging with emacs
> > > (I've just tried Jekyll with org, but the problem with export
> > > bibliographical reference is the same, my emacs loops.)
> > >
> > > In advance, thanks for your help, because I am lost.
> > >
> > > Jo.



Re: org-ref for html and blog ?

2020-06-07 Thread Joseph Vidal-Rosset
Hi again,

I just discovered that my problem came from citeproc-org

More exactly I had these lines in my init.el

(require 'citeproc)
(require 'citeproc-org)
(citeproc-org-setup)
(setq citeproc-org-html-bib-header "References\n")
(setq citeproc-org-default-style-file "~/Dropbox/Orgzly/ieee-with-url.csl")

The function (citeproc-org-setup) is the responsible of this new problem.

Sorry Andras to bother you with this problem with your package. I hope
that you will have a solution.

Best wishes,

Jo.

Le dim. 7 juin 2020 à 15:12, Joseph Vidal-Rosset
 a écrit :
>
> Hi everybody,
>
> The package org-ref  is a wonderful tool and I do not imagine working
> without its helps now (again many thanks to John Kitchin).
>
> But for some days now I meet a problem with bibliography html export
> with org-ref and I cannot no more use org-export-head that I used for
> my blog (https://github.com/itf/org-export-head thanks again to Ivan)
> : as soon as there is a bibliographical reference, emacs loops.
>
> I guess that the problem is very probably in my emacs setup but I do
> not find the solution.
>
> I would be happy to find help with html export with bibliographical
> references, and advices for the best solution for blogging with emacs
> (I've just tried Jekyll with org, but the problem with export
> bibliographical reference is the same, my emacs loops.)
>
> In advance, thanks for your help, because I am lost.
>
> Jo.



org-ref for html and blog ?

2020-06-07 Thread Joseph Vidal-Rosset
Hi everybody,

The package org-ref  is a wonderful tool and I do not imagine working
without its helps now (again many thanks to John Kitchin).

But for some days now I meet a problem with bibliography html export
with org-ref and I cannot no more use org-export-head that I used for
my blog (https://github.com/itf/org-export-head thanks again to Ivan)
: as soon as there is a bibliographical reference, emacs loops.

I guess that the problem is very probably in my emacs setup but I do
not find the solution.

I would be happy to find help with html export with bibliographical
references, and advices for the best solution for blogging with emacs
(I've just tried Jekyll with org, but the problem with export
bibliographical reference is the same, my emacs loops.)

In advance, thanks for your help, because I am lost.

Jo.



Re: Inserting org-mode heading links the org-refile way

2020-05-04 Thread Joseph Vidal-Rosset
Le   lun.   05/04/20   mai   2020à   03:11:57   ,   Ihor   Radchenko
 a envoyé ce message:
> Can you try the following simplified code?

Hello,

I confirm that the  simplified code below does not break  the code of my
setup and that org-links for gnus work.  Thanks ! 


> (defun org-id-prompt-id ()
>   "Prompt for the id during completion of id: link."
>   (let ((org-refile-history nil)
>   (org-refile-cache nil)
>   (org-refile-target-verify-function nil))
> (let ((prompt-ans (org-refile-get-location "Select org entry")))
>   (prog1
> (or (org-id-get (seq-find #'markerp
>   prompt-ans)
> 'create)
>   (user-error "Cannot find ID of the entry: %s" prompt-ans))
>   (setq org-id-history org-refile-history)
>   (setq org-id-cache org-refile-cache)
>
> (defun org-id-link-complete ( arg)
>   "Completion function for id: link."
>   (let* ((id (org-id-prompt-id)))
> (format "id:%s" id)))
>
> (org-link-set-parameters "id"
>:complete #'org-id-link-complete)
>
> P.S. You can use %^t instead of %(org-insert-time-stamp ...).
>
> From org-capture-templates docstring:
>>  %^t Like %t, but prompt for date.  Similarly %^T, %^u, %^U.
>>  You may define a prompt like: %^{Please specify birthday}t.
>>  The default date is that of %t, see above.
>
> Best,
> Ihor



Re: Inserting org-mode heading links the org-refile way

2020-05-04 Thread Joseph Vidal-Rosset
Le   lun.   05/04/20   mai   2020à   01:09:53   ,   Ihor   Radchenko
 a envoyé ce message:
> If I understand you correctly, the following code should achieve what
> you want. The code reuses org-refile interface to complete id: links.  
>
> (defun org-id-prompt-id ()
>   "Prompt for the id during completion of id: link."
>   (let ((org-refile-history nil)
>   (org-refile-cache nil)
>   (org-refile-target-verify-function nil))
> (let ((prompt-ans (org-refile-get-location "Select org entry")))
>   (prog1
> (or (org-id-get (seq-find #'markerp
>   prompt-ans)
> 'create)
>   (user-error "Cannot find ID of the entry: %s" prompt-ans))
>   (setq org-id-history org-refile-history)
>   (setq org-id-cache org-refile-cache)
>
> (defun org-id-link-complete ( arg)
>   "Completion function for id: link."
>   (let* ((id (org-id-prompt-id)))
> (format "id:%s" id)))
>
> (defun org-id-link-desk (link desk)
>   "Description function for id: link."
>   (or desk
>   (let ((id (cadr (split-string link ":"
>   (org-with-point-at (org-id-find id 'marker)
> (org-get-heading 'strip 'all 'the 'extra)
>
> (org-link-set-parameters "id"
>:complete #'org-id-link-complete
>  :desk #'org-id-link-desk)

Hi,

Always interested in  org-links, I have tested your code.  It will maybe
interesting that  I point out  that, even if  I am unable  to understand
why, I  have checked that  it breaks  the function for  org-linking from
emails in gnus, at least in my setup i.e. with the following code: 

(setq org-agenda-custom-commands
  '(("t" "Agenda and Email-links tasks"
 ((agenda "")
  (tags-todo "email")
  (tags "link")))
))

;; (global-set-key (kbd " c") 'org-capture)
;; capture todo items using C-c c t
;; (define-key global-map (kbd "C-c c") 'org-capture)
(setq org-capture-templates
  '(
("t" "todo" entry (file+headline "~/Dropbox/Orgzly/todo.org" "Tasks")
 "* TODO [#A] %?\n 
[[~/Dropbox/Orgzly/links.org::%(org-insert-time-stamp (org-read-date nil t 
\"%:date\"))]] \n* %(org-insert-time-stamp (org-read-date nil t \"%:date\")) %a 
"
 )
("n"  ; key
 "note"   ;name
 entry;type
 (file+headline "~/Dropbox/Orgzly/notes.org" "Notes")  ;target 
 "* NOTE du %(org-insert-time-stamp (org-read-date nil t \"%:date\")) 
\n Voir %a " ; template
 )
("H" "HOWTO: C-c C-s : schedule ; C-c C-d : deadline ; C-c C-w : 
org-refile at a point; last: C-c C-t : DONE - F11-a: org-archive"
  entry (file+headline "" "") ""
 )
)
  )
;; Merci à  Bob Newell , avec ce code, le lien de l'email est modifié 
correctement dès l'usage de la fonction refile C-c C-w  
  (defun jr/fix-the-link ( args)
 (interactive)
 (save-excursion
   (find-file "~/Dropbox/Orgzly/todo.org")
   (goto-char (point-min))
   (while (search-forward "gnus:INBOX#" nil t)
 (replace-match "gnus:\\[Gmail\\]/Tous les messages#"))
   (save-buffer)))
(advice-add 'org-capture-finalize :after #'jr/fix-the-link)

Best wishes,

Jo. 



Re: how to get an org-link to open a program in eshell

2020-04-25 Thread Joseph Vidal-Rosset
Many thanks Kyle for your reply,

In fact  I have  succeeded to  open directly  some programs  with eshell
thanks to org-links like the following one:

[[eshell:program_name]]

If I put these org-links into an  org file and if I have bookmarked this
file.

Nevertheless, I do  not find that this solution is very elegant. In
my bookmark file I have this part of code:

#1=(#("eshell-launcher" 0 15
  (bmkp-full-record #1#))
(buffer-name . "*dashboard*")
(visits . 2)
(time 24213 34946 832780 22000)
(created 24213 34859 529449 8000)
(position . 0)
(function . eshell)
(handler . bmkp-jump-function))

and it  works correctly: via  the bookmark in  my dashboard, I  can open
eshell . But I have not succeed to write a code in this bookmark file to
get a program that is opened  directly via eshell, hence org-links in an
org file.  All that I wrote in this bookmark file failed. Any suggestion
is welcome,  even if it  is not  a serious problem  to open an  org file
first. It is just an elegance issue.  

Best wishes, and again, thanks,

Jo. 




-- 
Joseph 



Re: Overleaf equivalent for org-babel users?

2020-04-16 Thread Joseph Vidal-Rosset
Hello Johanna,

Your project is  very interesting. Overleaf is a very  good tool to help
students to learn LaTeX,  and it would be nice to  provide the same tool
for emacs-org-mode. 

Have a look on the following links:

https://www.reddit.com/r/emacs/comments/3ql5ga/online_orgmode_editor/

https://www.rollapp.com/app/emacs

https://repl.it/languages/elisp


At  the  moment, I  cannot  help  more, but  in  my  opinion, getting  a
dedicated server would be probably necessary.

Best wishes, 

-- 
Joseph 



Re: what is the "stock value of org-modules" (Was Re: Gnus org-mode link problems in org 9.3)

2020-04-08 Thread Joseph Vidal-Rosset
Hi Gijs, hi the list,


I am  interested in this  question because I  met a similar  problem few
weeks ago, whenI tried to useDoom Emacs:
https://github.com/hlissner/doom-emacs/issues/2708  where   ol-gnus  are
used.

Now I'm back  with a simple version  of emacs (26.3) and it  seems to me
that there  is mention in my  setup neither of "org-gnus"  nor "ol-gnus"
and my org-links work smoothly for gnus articles. 


Best wishes, 
-- 
Jo. 



how to get an org-link to open a program in eshell

2020-04-08 Thread Joseph Vidal-Rosset
Hi everybody,

I'm trying to get something via an org-link. I suspect that it is
possible, but the documentation is not clear enough for me to get it.

I want to make an org-link that get me directly in eshell a program,
and if it is possible to do it, I will bookmark this org-link.

To explain precisely what I want to do: I have an executable in
/usr/local/bin that I  have called SMinlog , in a shell, the command
SMinlog -p -i open directly the following output:
SEQUENT:
and in the my Linux desktop xfce I have also an icon that is a
shortcut to open directly this program in a xfce4-terminal.

I suspect that an org-link could provide the same function directly in eshell.
If I am right, I would be happy to find the solution, but I am afraid
that I need help.

Best wishes,

Jo.



Re: org-link containing square brackets

2020-03-10 Thread Joseph Vidal-Rosset
Le   mar.   03/10/20   mars   2020  à   10:47:03   ,   Nicolas   Goaziou
 a envoyé ce message:
> Hello,
>
> Joseph Vidal-Rosset  writes:
>
>> I sent this email to this list:
>>
>> https://lists.gnu.org/archive/html/emacs-orgmode/2019-07/msg00123.html
>>
>> Unfortunately, the code of hs/replace function that contains
>>
>> %5BGmail%5D/
>
> See ORG-NEWS for Org 9.3. I think this should be \[Gmail\]/

Hello Nicolas,

Many thanks for your very helpful email. In fact,
 \[Gmail\]/
 broke the link, but
  \\[Gmail\\]/
  works (very logically, it is related with the syntax of org-export).

Now, I meet a new problem that is not an org-mode issue, but gnus's: the
link works, but gnus  declare that the article has expired.  :( and I do
not  understand why.  I wonder  more and  more if  gnus in  imap is  the
adequate tool to  keep tracks of email via org-mode  links. All opinions
of this topic are welcome, of course, because I have to take a decision:
to gnus or not  to gnus... :) But I will not open  a new thread for this
question. 
 
All the best, et encore merci Nicolas !

Jo. 



org-link containing square brackets

2020-03-10 Thread Joseph Vidal-Rosset
Hi everybody,

I sent this email to this list:

https://lists.gnu.org/archive/html/emacs-orgmode/2019-07/msg00123.html

Unfortunately, the code of hs/replace function that contains

%5BGmail%5D/

to get [Gmail]/   in the link does not work anymore for few months
now: in the org-link  the square brackets do not appear and of course
gnus does not find the email ... :(

I have searched but I do not find the solution. (Maybe trying
wanderlust or mu4e, but I remain reluctant for various reasons...)

If you can help me, thanks in advance,

Best wishes,

Jo.



Re: [O] helm problem on MELPA ?

2019-10-06 Thread Joseph Vidal-Rosset
The helm problem on MELPA is solved.. Many thanks for this quick and good work !

Best wishes,

Jo.

Le dim. 6 oct. 2019 à 19:30, Joseph Vidal-Rosset
 a écrit :
>
> Hi everybody,
>
> After an upgrade, I meet a problem that is probably a helm problem on
> MELPA. Here are the warnings:
>
> Error (use-package): Cannot load helm-bibtex
> Error (use-package): Cannot load helm-projectile
> Error (use-package): org-ref/:catch: Cannot open load file: Aucun
> fichier ou dossier de ce type, helm-config
> Error (use-package): scimax-org/:init: Cannot open load file: Aucun
> fichier ou dossier de ce type, helm-config
> Error (use-package): scimax-journal/:catch: Cannot open load file:
> Aucun fichier ou dossier de ce type, helm-config
>
> The result is almost nothing work in my emacs, the agenda does not
> load, and so on. :(
>
> That is the first time that I see such a problem.
>
> Best wishes,
>
> Jo.
>
> PS: I'm using John Kitchin scimax, and John just told me that he saw
> the same thing.



[O] helm problem on MELPA ?

2019-10-06 Thread Joseph Vidal-Rosset
Hi everybody,

After an upgrade, I meet a problem that is probably a helm problem on
MELPA. Here are the warnings:

Error (use-package): Cannot load helm-bibtex
Error (use-package): Cannot load helm-projectile
Error (use-package): org-ref/:catch: Cannot open load file: Aucun
fichier ou dossier de ce type, helm-config
Error (use-package): scimax-org/:init: Cannot open load file: Aucun
fichier ou dossier de ce type, helm-config
Error (use-package): scimax-journal/:catch: Cannot open load file:
Aucun fichier ou dossier de ce type, helm-config

The result is almost nothing work in my emacs, the agenda does not
load, and so on. :(

That is the first time that I see such a problem.

Best wishes,

Jo.

PS: I'm using John Kitchin scimax, and John just told me that he saw
the same thing.



Re: [O] blogging wih org-mode

2019-09-30 Thread Joseph Vidal-Rosset
Many thanks to all for your replies, I am very thankful to your help.

I have to make  a choice, but of course I than  everybody who replied to
me. It is a wonderful list. 


Best wishes, 
-- 
Joseph 



[O] blogging wih org-mode

2019-09-29 Thread Joseph Vidal-Rosset
Hi the list,

I would be glad to know what is, according to the majority, the best
tool to blog with org-mode. I'm searching something simple to use and
to install in order to blog with emacs, and, ideally, with emacs and
org-mode only.

(I met  difficulties with lazyblorg, for example. I did not succeed to
understand how it works.)

Thanks for your help.

Jo.



Re: [O] org-mode vs pandoc export

2019-09-27 Thread Joseph Vidal-Rosset
Hello,

Many thanks Emmanuel for your help.

Indeed, I'm  using org-ref and scimax, all the  nice tools that
John offers very  generously to the community; org-ref  is so convenient
that  now I  cannot  imagine to  work  without it.  Maybe  John has  the
solution for future exports. (I did not succeed to export in odt because
of links, bibliography links.)

Finally the best result was done directly via pandoc, via a command line
like this one:

pandoc -s --filter pandoc-crossref --bibliography=reforg.bib --csl=ieee.csl -o 
mydocument.odt mydocument.org

But pandoc-crossref never  worked and I had also to  make png images for
tables.

The best  solution that I  found was to install  libreoffice-texmaths. I
just had  to enter "sudo  aptitude install libreoffice-texmaths"  via my
GNU/Linux Debian sid, but for other OS, the package is here

https://extensions.libreoffice.org/extensions/texmaths-1

and it works.

Of course the output is less pretty than the pdf via the tex life

I hope that it will help other people.

Best wishes,

Jo.

PS: The publisher is in philosophy... 



[O] org-mode vs pandoc export

2019-09-26 Thread Joseph Vidal-Rosset
Hello,

Does someone succeeds to export scientific paper with numbering
formulas from LateX to odt or docx?

I have tried to use pandoc, but pandoc-crossref does not work...

(I hate these publishers that do not know LaTeX... )

Best wishes,

Jo.



Re: [O] tikz and org-mode to export into html and odt

2019-09-23 Thread Joseph Vidal-Rosset
Again, you helped me a lot Eric. I am very thankful to you.

The solution is to delete the lines :  #+BEGIN_src  latex ... #+END_src
and to adde \begin{table}  ... \end{table}  for each tikz-picture  and
it works for html and also for odt !

Many thanks !

Best wishes

Jo.

Le lun. 23 sept. 2019 à 16:33, Fraga, Eric  a écrit :
>
> On Monday, 23 Sep 2019 at 13:30, Joseph Vidal-Rosset wrote:
> > Here  is the  code of  minimal-example.org and  I attach  the file.  The
> > export into latex work, but it fails  both to export into odt as well as
> > html.
>
> Can you create a smaller example, i.e. one with just a single tikz
> diagram and specifically one that does have other dependencies?  I don't
> have venndiagram2 as a LaTeX package...
>
> Or, maybe the problem is that you need to tell org to use the
> venndiagram2 package when creating images from the LaTeX?  Maybe
> customizing org-latex-packages-alist or related variables will
> help.  For instance, as I use the mhchem package for chemical formulas,
> I have
>
>   (add-to-list 'org-latex-packages-alist '("version=3" "mhchem"))
>
> in my Emacs org mode customization.
>
> --
> : Professor Eric S Fraga, http://www.homepages.ucl.ac.uk/~ucecesf
> : PGP/GPG key: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
> : Use plain text email when possible: https://useplaintext.email/



Re: [O] tikz and org-mode to export into html and odt

2019-09-23 Thread Joseph Vidal-Rosset
Le dim. 22  sept. 2019 à 12:35:30 , "Fraga,  Eric"  a
envoyé ce message:
> On Thursday, 19 Sep 2019 at 15:58, Joseph Vidal-Rosset wrote:
>> I have a source org file that uses tikz (and venndiagram.sty based on
>> tikz). No problem to export into .tex, but the export into odt and
>> html fails.
>>
>> OpenDocument export failed: Wrong type argument: listp, 71
>
> Could you give a minimal example that fails?

Yes, of  course, and sorry for  the delay of  my reply, I just  saw your
reply few hours ago. 

Here  is the  code of  minimal-example.org and  I attach  the file.  The
export into latex work, but it fails  both to export into odt as well as
html.

Best wishes,

Jo.
-

#+OPTIONS: ':t 
#+OPTIONS: tex:t
#+LaTeX_HEADER: \usepackage{venndiagram2}
#+OPTIONS: tex:imagemagick
 # #+HTML_MATHJAX:   align:"center"   mathml:t
 # 
path:"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMM;
#+HTML_HEAD: 
#+TITLE:A minimal example
#+AUTHOR: Joseph Vidal-Rosset
#+OPTIONS: toc:2
#+OPTIONS: author:t date:t email:t
#+CSL_STYLE: ieee.csl<

#+BEGIN_src  latex  
\begin{venndiagram2sets}
[tikzoptions={scale=1.6,thick},labelA={$JTB$},labelB={$K$},labelOnlyA={$q$},labelOnlyAB={$p$},showframe={false}]
 
\fillOnlyB
\end{venndiagram2sets}
#+END_src

 
#+BEGIN_src  latex  
\begin{table}[htbp] 
\caption{Légende} \label{tableone}
\begin{venndiagram3sets}[tikzoptions={scale=2.8,thick},labelOnlyA={\AxiomC{$Gj$}\noLine\UnaryInfC{$\vdots$}\DisplayProof},labelOnlyB={},labelOnlyC={\AxiomC{}\noLine\UnaryInfC{}\noLine\UnaryInfC{$\lnot
 Gj, Gs, Ps$}\DisplayProof},
labelOnlyAC={$\infer*{\scriptsize{\exists x(Gx\land 
Px)}}{}$},labelOnlyAB={\AxiomC{$Pj$}\noLine\UnaryInfC{$\vdots$}\noLine\UnaryInfC{}\DisplayProof},labelOnlyBC={},labelABC={},
labelNotABC={},overlap={1.1cm},showframe={false}, 
labelA={$J$},labelB={$K$},labelC={$N$}]
\setpostvennhook
{
\draw[<-] (labelA) -- ++(135:0.5cm) node[above] {$J$ = S \dots};
\draw[<-] (labelB) -- ++(45:0.3cm) node[above] {$K$ = S' \dots};
\draw[<-] (labelC) -- ++(-90:0.5cm) node[below] {$N$ = S''  \dots};
}
\fillOnlyB ; \fillBCapC
\end{venndiagram3sets}
\end{table}
#+END_src 

#+OPTIONS: ':t 
#+OPTIONS: tex:t
#+LaTeX_HEADER: \usepackage{venndiagram2}
#+OPTIONS: tex:imagemagick
 # #+HTML_MATHJAX:   align:"center"   mathml:t
 # path:"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMM;
#+HTML_HEAD: 
#+TITLE:A minimal example
#+AUTHOR: Joseph Vidal-Rosset
#+OPTIONS: toc:2
#+OPTIONS: author:t date:t email:t
#+CSL_STYLE: ieee.csl<


#+BEGIN_src  latex  
\begin{venndiagram2sets}
[tikzoptions={scale=1.6,thick},labelA={$JTB$},labelB={$K$},labelOnlyA={$q$},labelOnlyAB={$p$},showframe={false}] 
\fillOnlyB
\end{venndiagram2sets}
#+END_src

 

#+BEGIN_src  latex  
\begin{table}[htbp] 
\caption{Légende} \label{tableone}
\begin{venndiagram3sets}[tikzoptions={scale=2.8,thick},labelOnlyA={\AxiomC{$Gj$}\noLine\UnaryInfC{$\vdots$}\DisplayProof},labelOnlyB={},labelOnlyC={\AxiomC{}\noLine\UnaryInfC{}\noLine\UnaryInfC{$\lnot Gj, Gs, Ps$}\DisplayProof},
labelOnlyAC={$\infer*{\scriptsize{\exists x(Gx\land Px)}}{}$},labelOnlyAB={\AxiomC{$Pj$}\noLine\UnaryInfC{$\vdots$}\noLine\UnaryInfC{}\DisplayProof},labelOnlyBC={},labelABC={},
labelNotABC={},overlap={1.1cm},showframe={false}, labelA={$J$},labelB={$K$},labelC={$N$}]
\setpostvennhook
{
\draw[<-] (labelA) -- ++(135:0.5cm) node[above] {$J$ = S \dots};
\draw[<-] (labelB) -- ++(45:0.3cm) node[above] {$K$ = S' \dots};
\draw[<-] (labelC) -- ++(-90:0.5cm) node[below] {$N$ = S''  \dots};
}
\fillOnlyB ; \fillBCapC
\end{venndiagram3sets}
\end{table}
#+END_src 

-- 
Joseph 


[O] tikz and org-mode to export into html and odt

2019-09-19 Thread Joseph Vidal-Rosset
Hello,

I have a source org file that uses tikz (and venndiagram.sty based on
tikz). No problem to export into .tex, but the export into odt and
html fails.

OpenDocument export failed: Wrong type argument: listp, 71

(One more time, I'm working for a publisher who do not knows LaTeX
No comment.)

I need help, if possible.

Best wishes,

Jo.



Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-08-11 Thread Joseph Vidal-Rosset
Le sam. 27 juil. 2019  à 11:32:01 , Bob Newell 
a envoyé ce message:
> Bonjour Josef,
>
> Je ne suis pas assez doué avec org-mode pour donner des conseils
> expertes. Mais j'ai quand même une idée. Peut-être vous pouviez utiliser
> 'advice' au lieu d'un 'hook' sur org-capture-finalize
>
> Par exemple (attention! pas verifié!)
>
> (defun jr/fix-the-link ( args)
>  (interactive)
>  (save-excursion
>(find-file "~/Dropbox/Orgzly/links.org")
>(goto-char (point-min))
>(while (search-forward "INBOX" nil t)
>  (replace-match "Tous les messages"))
>(save-buffer)))
> (advice-add 'org-capture-finalize :after #'jr/fix-the-link)
>
> Bonne chance ... !

Dear Bob,

In fact, I just realized that this code works as I wanted:

  (defun jr/fix-the-link ( args)
 (interactive)
 (save-excursion
   (find-file "~/Dropbox/Orgzly/todo.org")
   (goto-char (point-min))
   (while (search-forward "gnus:INBOX#" nil t)
 (replace-match "gnus:%5BGmail%5D/Tous les messages#"))
   (save-buffer)))
(advice-add 'org-capture-finalize :after #'jr/fix-the-link)

after C-c c t  the link is in todo.org, and with C-c C-w , once refiled
in links.org, the email link is  correctly changed! I do not understand
this magic trick, but many many  thanks for your kind and very efficient
help !


Best wishes, 
-- 
Joseph 



Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-28 Thread Joseph Vidal-Rosset
Le sam. 27 juil. 2019  à 11:32:01 , Bob Newell 
a envoyé ce message:
> Bonjour Josef,
>
> Je ne suis pas assez doué avec org-mode pour donner des conseils
> expertes. Mais j'ai quand même une idée. Peut-être vous pouviez utiliser
> 'advice' au lieu d'un 'hook' sur org-capture-finalize
>
> Par exemple (attention! pas verifié!)
>
> (defun jr/fix-the-link ( args)
>  (interactive)
>  (save-excursion
>(find-file "~/Dropbox/Orgzly/links.org")
>(goto-char (point-min))
>(while (search-forward "INBOX" nil t)
>  (replace-match "Tous les messages"))
>(save-buffer)))
> (advice-add 'org-capture-finalize :after #'jr/fix-the-link)
>
> Bonne chance ... !

Merci vivement Bob,  c'est vraiment très gentil de me  répondre et de le
faire en français!

I feel free  now to speak in English  and to cc. the email  to the list,
because it is interesting.

If I understand the code above, Bob suggested to me to define a function
that replace a definite string in a definite file just with saving it. I
do  not doubt  that it  is possible  for  an expert.  Even if  I am  not
desperate, it's  like a  message in  a bottle thrown  into the  sea: can
someone help me to do that?

(It would be also possible to change the string at refiling, because the
link in todo.org must be refiled to links.org)

Best wishes, 

-- 
Joseph 



Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-27 Thread Joseph Vidal-Rosset
Le ven. 26 juil. 2019  à 07:30:38 , Bob Newell 
a envoyé ce message:
> Aloha,
>
> I too came across this long ago. I like a 'zero inbox' and so I archive
> (or delete!) my gmail after reading. And indeed, when you move from
> INBOX to "All Mail" an org-link to INBOX will no longer function.
>
> I use Gnus and do something rather simple and easy:
>
> (defun changegroupinemaillink (args)
>   (setcar args
> (replace-regexp-in-string
>  "gmail.com:INBOX"
>  "gmail.com:[Gmail]/All Mail" (car args)))
>   args
> )
> (advice-add 'org-gnus-article-link :filter-args #'changegroupinemaillink)
>
> After this, links point to All Mail and the mail will always be found.

Many thanks for your message Bob (I know your impressive website that is
helpful for org-mode, thanks also for that).

My problem is how can I change the following code:

(setq org-capture-templates
  '(
("t" "todo" entry (file+headline "~/Dropbox/Orgzly/todo.org" "Tasks")
 "* TODO [#A] %?\n 
[[~/Dropbox/Orgzly/links.org::%(org-insert-time-stamp (org-read-date nil t 
\"%:date\"))]] \n* %(org-insert-time-stamp (org-read-date nil t \"%:date\")) %a 
"
 )
)
  )

in order to get  All Mail (or Tous les messages in  my case) directly in
the produced link once "t" key is entered?

I have tried to do it with  the function hs/replace that I have defined,
without success. I  guess that it is  of course possible, but  it is not
easy for me.

Your help will be again very welcome.

 Best wishes,
-- 
Jo.



Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-26 Thread Joseph Vidal-Rosset
Le   jeu.   07/25/19   juil.   2019   à   04:47:14   ,   "Fraga,   Eric"
 a envoyé ce message:
> On Thursday, 25 Jul 2019 at 18:24, Joseph Vidal-Rosset wrote:
>> But for  gnus-imap-gmail users, it is  more difficult to get  the same
>> thing. 
>
> [...]
>
>> But  I need  to change  the mention  of INBOX  in the  link to  John's
>> email. 
>
> Why is that?  If I create a link to an email from gmail using %a, this
> seems to work (having just tested it).  Am I missing something?

Hi again Eric and everybody,

Considering the code:

#+BEGIN_SRC 
;;capture todo items using C-c c t
(define-key global-map (kbd "C-c c") 'org-capture)
(setq org-capture-templates
  '(
("t" "todo" entry (file+headline "~/Dropbox/Orgzly/todo.org" "Tasks")
 "* TODO [#A] %?\n 
[[~/Dropbox/Orgzly/links.org::%(org-insert-time-stamp (org-read-date nil t 
\"%:date\"))]] \n* %(org-insert-time-stamp (org-read-date nil t \"%:date\")) %a 
"
 )
)
  )

(defun hs/replace ()
   (interactive)
   (goto-char 1)
   (let ((search-invisible t)) (replace-string "gnus:INBOX#" 
"gnus:%5BGmail%5D/Tous les messages#")))
(define-key global-map (kbd "C-c r") 'hs/replace)
(add-hook 'org-capture-prepare-finalize-hook 'hs/replace)
(defun my/refile (file headline  arg)
  (let ((pos (save-excursion
   (find-file file)
   (org-find-exact-headline-in-buffer headline
(org-refile arg nil (list headline file nil pos)))
  (switch-to-buffer (current-buffer)))
#+END_SRC

a better option  would be to get in only one function org-capture-template
and hs/replace :  if string "gnus/INBOX" exists,  hs/replace works and
replaces the  string, if not,  the link  is given without  change. The
idea is simple, but  I do not succeed to realize it,  because I do not
know enough  the syntax.  But I  would be surprised  if this  would be
impossible to make it. 


Best wishes,
 

-- 
Joseph 


Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-26 Thread Joseph Vidal-Rosset
Le ven. 07/26/19 juil. 2019 à 03:24:52 , Ken Mankoff 
a envoyé ce message:
> On 2019-07-26 at 03:14 -04, Joseph Vidal-Rosset 
>  wrote...
>> Did you want to suggest that it is not difficult to adapt such a
>> function for gnus by replacing the mention of mu4e by gnus' in the
>> code?
>
> I wasn't suggesting anything, just letting you/others know that the
> functionality you described exists elsewhere, and hoping that that
> information would be useful and not noise.

Thanks again.  I just tried  to replace in this  part of code  "mu4e" by
"gnus", but it  would have been too  much simple. Of course  it does not
work. Maybe  someone will find a  far better solution than  that is mine
presently. I hope so.


 Best wishes,
-- 
Jo.



Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-26 Thread Joseph Vidal-Rosset
Le jeu. 07/25/19 juil. 2019 à 03:15:49 , Ken Mankoff 
a envoyé ce message:
> On 2019-07-25 at 12:24 -04, Joseph Vidal-Rosset 
>  wrote...
>> Documentation to create a todo.org list  that provides links to email as
>> tasks   is  not   seldom  on   the  web.   I  recommend   for  example
>> [[http://pragmaticemacs.com/]]. 
>>
>> But for gnus-imap-gmail users, it is more difficult to get the same
>> thing.
>
> FYI, here is the mu4e implementation defined so that the standard 
> org-store-link properly work based on msgid:
>
> https://github.com/djcb/mu/blob/master/mu4e/org-mu4e.el#L117
>
> When viewing email I use the same keybindings as elswhere, C-l to store link, 
> and C-c C-l to paste it and I get:
>
> [[mu4e:msgid:325foo...@mx.google.com][SUBJECT OF EMAIL]]
>
>   -k.

Many thanks for this information Ken. Did you want to suggest that it is
not difficult to adapt such a function for gnus by replacing the mention
of mu4e by gnus' in the code?

I would be a good thing indeed  to avoid this need of updating link that
is presently necessary with gnus working with imap.gmail.com .


 Best wishes,
-- 
Jo.



Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-25 Thread Joseph Vidal-Rosset
Le   jeu.   07/25/19   juil.   2019   à   05:33:57   ,   "Fraga,   Eric"
 a envoyé ce message:

> Okay, yes, if you move it, the link needs to be updated.  I wonder if
> the gnus registery could help with this?  But that's well beyond my
> gnus-fu.

The only mention of gnus registry in my setup is the following one:

(setq gnus-registry-max-entries 5)

and, by the way, it is maybe inconsistent with

(setq gnus-newsgroup-maximum-articles 7)

But  without the  trick that  I just  gave, I  had no  solution, and  my
knowledge of gnus is too weak to reply about gnus-registry.


 Best wishes,
-- 
Jo.



Re: [O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-25 Thread Joseph Vidal-Rosset
Le   jeu.   07/25/19   juil.   2019   à   04:47:14   ,   "Fraga,   Eric"
 a envoyé ce message:
> On Thursday, 25 Jul 2019 at 18:24, Joseph Vidal-Rosset wrote:
>> But for  gnus-imap-gmail users, it is  more difficult to get  the same
>> thing. 
>
> [...]
>
>> But  I need  to change  the mention  of INBOX  in the  link to  John's
>> email. 
>
> Why is that?  If I create a link to an email from gmail using %a, this
> seems to work (having just tested it).  Am I missing something?  I don't
> often link to gmail messages as they are mostly junk emails (in my
> case).  I know that gmail does not really have imap folders but uses
> tags (of a sort) to make it look like emails are in different folders
> (or in more than one folder simultaneously) but INBOX seems to work for
> me.
>
> Just curious.

Thanks for your question Eric. :)

Of course, INBOX works  for you if you do not archive  the message in All
emails folder or elsewhere. If you move it from INBOX, in case where you
like to have the cleanest INBOX that  is the empty one, you won't get no
more the email via this link.

I wanted to have in IMAP the  shortest list to see only three folders in
my Gnus 
INBOX
[Gmail]/Tous les messages
[Gmail]/Corbeille

I have defined shortucts: key "Inser" archives email into
[Gmail]/Tousles   messagesand   "Suppr"sends   emailinto
[Gmail]/Corbeille. 

The most  tricky is to  get the Summary  [Gmail]/Tous les messages  in a
reasonable time, because with  a lot of emails, Gnus in  imap can be too
slow. My solution is in this line: 

(setq gnus-newsgroup-maximum-articles 7)

and it works. 

For  people who  are  reluctant to  use offlineimap  or  mbsync and  who
therefore prefer  Gnus over  mu4e ,  it makes almost  the same  job, via
imap.

I can share  of course all my  setup and I am also  curious of improving
it.

 Best wishes,
-- 
Jo.



[O] org-links for Gnus in imap with Gmail (for a convenient todo.org list)

2019-07-25 Thread Joseph Vidal-Rosset
Hello,

Documentation to create a todo.org list  that provides links to email as
tasks   is  not   seldom  on   the  web.   I  recommend   for  example
[[http://pragmaticemacs.com/]]. 

But for  gnus-imap-gmail users, it is  more difficult to get  the same
thing. 

Here is a the lines of code  in my setup (user.el in Kitchin's scimax)
that work for gnus in imap:

 #+BEGIN_SRC elisp
 
;;capture todo items using C-c c t
(define-key global-map (kbd "C-c c") 'org-capture)
(setq org-capture-templates
  '(("t" "todo" entry (file+headline "~/Dropbox/Orgzly/todo.org" "Tasks")
 "* TODO [#A] %?\n 
[[~/Dropbox/Orgzly/links.org::%(org-insert-time-stamp (org-read-date nil t 
\"%:date\"))]] \n* %(org-insert-time-stamp (org-read-date nil t \"%:date\")) %a 
")))


(defun hs/replace ()
   (interactive)
   (goto-char 1)
   (let ((search-invisible t)) (replace-string "gnus:INBOX#" 
"gnus:%5BGmail%5D/Tous les messages#")))
(define-key global-map (kbd "C-c r") 'hs/replace)
(add-hook 'org-capture-prepare-finalize-hook 'hs/replace)
(defun my/refile (file headline  arg)
  (let ((pos (save-excursion
   (find-file file)
   (org-find-exact-headline-in-buffer headline
(org-refile arg nil (list headline file nil pos)))
  (switch-to-buffer (current-buffer)))

(defhydra jo/org-refile-hydra (:foreign-keys run) 
  "Refile"
  ("l" (my/refile "~/Dropbox/Orgzly/links.org" "Links") "Links")
  ("j" org-refile-goto-last-stored "Jump to last refile")
  ("q" nil "cancel"))
;; Or whatever you want your keybinding to be
(global-set-key (kbd " r") 'jo/org-refile-hydra/body)

(global-set-key (kbd " a") 'org-archive-subtree)

;;refile  
https://blog.aaronbieber.com/2017/03/19/organizing-notes-with-refile.html
(setq org-refile-targets '((org-agenda-files :maxlevel . 2)))
(setq org-refile-use-outline-path 'file)
(setq org-outline-path-complete-in-steps nil)
(setq org-refile-allow-creating-parent-nodes 'confirm)

(setq org-refile-targets '((nil :maxlevel . 2)
(org-agenda-files :maxlevel . 2)))
(setq org-outline-path-complete-in-steps nil) ; Refile in a single go
(setq org-refile-use-outline-path t)  ; Show full paths for 
refiling

(setq org-refile-targets (quote (("todo.org" :maxlevel . 2)
("links.org" :level . 2)
 )))
#+END_SRC  

with any  file open  in emacs, like  for example this  email, C-c  c t
gives the following result that I paste below: 

 #+BEGIN_SRC elisp
 
** TODO [#A] 
  [[~/Dropbox/Orgzly/links.org::<2019-07-25 jeu.>]] 
** <2019-07-25 jeu.> [[file:~/News/drafts/drafts/129]]

#+END_SRC

Because I  like to  see my  todo list  with conky  on my  wallpaper, I
refile  the second  link into  links.org  and it  is now  easy to  get
immediately from todo.org the correct  entry that have the appropriate
link in links.org. 

In Gnus, it is the same thing. For example C-c c t in reading the last
email that I received from John Kitchin provides:

 #+BEGIN_SRC elisp
 
** TODO [#A] 
  [[~/Dropbox/Orgzly/links.org::<2019-07-25 jeu.>]] 
** <2019-07-25 jeu.> 
[[gnus:INBOX#caj51etqlcftezvpyg0auzzl2hgwvgcoewkem8okznll-es5...@mail.gmail.com][Email
 from John Kitchin: Re: scimax question]] 
#+END_SRC

But  I need  to change  the mention  of INBOX  in the  link to  John's
email. Hence the function hs/replace via  C-c r with the cursor on the
link that gives the wanted result: 

 #+BEGIN_SRC elisp   
** TODO [#A] 
  [[~/Dropbox/Orgzly/links.org::<2019-07-25 jeu.>]] 
** <2019-07-25 jeu.> [[gnus:%5BGmail%5D/Tous les
messages#caj51etqlcftezvpyg0auzzl2hgwvgcoewkem8okznll-es5...@mail.gmail.com][Email
from John Kitchin: Re: scimax question]]

#+END_SRC 

and then  the email can  be archived in  Tous les messages,  Gnus will
find it, via imap.gmail.com . 

That's it.  I hope  some of  you will find  this useful.  Let me know. Of
course the code  must be adapted according to the  language of the gmail
user, it goes without saying. 

(In refiling,  I do not  succeed to get other  level that level  one for
sections, but it is a detail. )

 Best wishes,
-- 
Jo.



Re: [O] pdf files with openwith only, and only this.

2019-07-05 Thread Joseph Vidal-Rosset
Dear Tim, John and Colin,

You are right Tim, for Gnus, the solution to my problem was here :

https://www.emacswiki.org/emacs/MimeTypesWithGnus

and here:

https://lists.gnu.org/archive/html/info-gnus-english/2016-04/msg2.html

But I just realize that Gnus gives the choice to open "internally", or
"externally"... :S

Best wishes and many thanks for your very kind help,

Jo.

Le ven. 5 juil. 2019 à 01:16, Tim Cross  a écrit :
>
>
> Joseph Vidal-Rosset  writes:
>
> > Le   jeu.   07/04/19   juil.   2019à   07:44:08   ,   John   Kitchin
> >  a envoyé ce message:
> >> I don't think org-ref is responsible, except that it installs pdf-tools. 
> >> When I click on a link like
> >> [[./2019-07-04.pdf]] it opens in acrobat for me.
> >>
> >> I don't have anything fancy
> >> org-file-apps is a variable defined in `org.el'.
> >> Its value is
> >> ((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default)
> >>  ("\\.pdf\\'" . default))
> >>
> >> which I guess means on osx that it gets opened with "open".
> >>
> >> It looks like you can do this
> >>
> >> #+BEGIN_SRC emacs-lisp
> >> (setf (cdr (assoc "\\.pdf\\'" org-file-apps)) "evince %s")
> >> #+END_SRC
> >>
> >> to make it open in evince.
> >
> > Dear John,
> >
> > Thanks for  your reply. In  fact my problem is  only at the  moment with
> > pdf links  in gnus, not  in usual org files.  (Maybe I should  switch for
> > mu4e, but I  hesitate and I would be  happy to find a tutorial  to do it
> > with gmail.)
> >
> > Ihavesolvedtemporarilythe   problemwitheimp:
> > https://emacs.stackexchange.com/questions/2433/shrink-zoom-scale-images-in-image-mode
> >
> > and the pdf in emacs are now more easily readable for me.
> >
> > Best wishes, and again, to Colin and to you, many thanks.
>
> My guess is the problem is with doc-view mode and possibly guns setup. I
> had a similar issue some years back, but cannot quite remember how I
> resolved it. My problem was that I had elisp I wrote which would use
> external viewers for various document types (e.g. word doc, pdf, etc),
> but when I tried to use it, Emacs would jump in the middle and use
> docView mode to display it inside emacs itself.
>
> From memroy, the basic fix was to turn off doc-view-mode (posibly check
> out the customization group). With respect to gnus (and other mailers),
> most of them include some sort of variable which sets which mime types
> can be displayed internally. If you don't want to completely disable
> doc-view-mode, you should be able to change this setting to say that
> PDFs are tro be displayed externally using whatever program is
> associated with that mime type.
>
> hth
>
> Tim
>
> --
> Tim Cross
>



Re: [O] pdf files with openwith only, and only this.

2019-07-04 Thread Joseph Vidal-Rosset
Le   jeu.   07/04/19   juil.   2019à   07:44:08   ,   John   Kitchin
 a envoyé ce message:
> I don't think org-ref is responsible, except that it installs pdf-tools. When 
> I click on a link like 
> [[./2019-07-04.pdf]] it opens in acrobat for me.
>
> I don't have anything fancy
> org-file-apps is a variable defined in `org.el'.
> Its value is
> ((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default)
>  ("\\.pdf\\'" . default))
>
> which I guess means on osx that it gets opened with "open".
>
> It looks like you can do this
>
> #+BEGIN_SRC emacs-lisp
> (setf (cdr (assoc "\\.pdf\\'" org-file-apps)) "evince %s")
> #+END_SRC
>
> to make it open in evince.

Dear John,

Thanks for  your reply. In  fact my problem is  only at the  moment with
pdf links  in gnus, not  in usual org files.  (Maybe I should  switch for
mu4e, but I  hesitate and I would be  happy to find a tutorial  to do it
with gmail.)

Ihavesolvedtemporarilythe   problemwitheimp:
https://emacs.stackexchange.com/questions/2433/shrink-zoom-scale-images-in-image-mode

and the pdf in emacs are now more easily readable for me. 

Best wishes, and again, to Colin and to you, many thanks. 

-- 
Jo



Re: [O] pdf files with openwith only, and only this.

2019-07-04 Thread Joseph Vidal-Rosset
Dear Colin (cc. John),

Many thanks ! Unfortunately, I have always the same result. Here is the message:

Viewing with pdf-view-mode
pdf-info-encrypted-p: pdf-info-epdfinfo-program is not executable

is org-ref the culprit? I cc. to John Kitchin.

Best wishes,

Jo.

Le jeu. 4 juil. 2019 à 13:00, Colin Baxter  a écrit :
>
> Dear Joseph,
> >>>>> Joseph Vidal-Rosset  writes:
>
> > Hi the list, I do not want to use pdf-tools to view pdf in emacs,
> > I want only to use an external program (evince) to view pdf
> > files. Unfortunately, links to pdf do not work with openwith and
> > my emacs open on a pdf. I cannot delete pdft-tools that is a
> > dependency of org-ref that I am using. A solution for my setup
> > would be welcome.
>
> Try this:
>
> (add-hook 'org-mode-hook
>'(lambda ()
> (delete '("\\.pdf\\'" . default) org-file-apps)
> (add-to-list 'org-file-apps '("\\.pdf\\'" . "evince %s"
>
> Best wishes,
>
> Colin Baxter
> www.Colin-Baxter.com



[O] pdf files with openwith only, and only this.

2019-07-04 Thread Joseph Vidal-Rosset
Hi the list,

I do not want to use pdf-tools to view pdf in emacs, I want only to
use an external program (evince) to view pdf files. Unfortunately,
links to pdf do not work with openwith and my emacs open on a pdf. I
cannot delete pdft-tools that is a dependency of org-ref that I am
using. A solution for my setup would be welcome.

Best wishes,

Jo.



[O] Mathjax AND imagemagick when it is necessary ?

2019-06-25 Thread Joseph Vidal-Rosset
Hello the list,

The html export with Mathjax works and the results are nice. But
sometimes, with some LaTeX macros, imagemagick is needed.
Unfortunately, there seems to be a choice: export either with Mathjax
or the imagemagick option.  But maybe I'm wrong.
Would it be possible to get the option imagemagick * only for some
parts of the file *, for this or that latex macros that does not work
with Mathjax? If the answer is "yes", I can not wait to know how.

Best wishes,

Jo.



Re: [O] html export with imagemagick

2019-05-23 Thread Joseph Vidal-Rosset
Many thanks Ivan. In reading the log file in /tmp I understood the problem
that is not an org-mode issue, but a latex one: some parts needed '$$'
tags.
Anyway, thanks for your reply.

Best wishes,

Jo.

Le mer. 22 mai 2019 à 21:46, Ivan Tadeu Ferreira Antunes Filho <
iva...@mit.edu> a écrit :

> I was having the same problem on some latex previews. It seems that
> imagemagick expects the file to be in the /tmp/ directory while latex
> itself was putting the file in the same directory.
>
> My workaround was to use 'dvisvgm instead of 'imagemagick.
>
> (setq org-preview-latex-default-process 'dvisvgm)
>
> And when generating latex from a source block, to save the image as svg
> instead of png.
>
> I think the same can be done for org-latex-create-formula-image-program
>
> Not a solution, just a simple workaround.
>
> On Wed, May 22, 2019, 15:39 Joseph Vidal-Rosset <
> joseph.vidal.ros...@gmail.com> wrote:
>
>> Hello the list,
>>
>> I try desperately to export an org file to html with imagemagick option
>> (an not mathjax), and I have this error message:
>>
>> convert-im6.q16: no images defined `/tmp/orgtexlyqPro.png' @
>>> error/convert.c/ConvertImageCommand/3258.
>>> org-compile-file: File "/tmp/orgtexlyqPro.png" wasn’t produced.  Please
>>> adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.
>>>
>>
>> I have in my user.el  (= init file)  :
>>
>> (setq org-latex-create-formula-image-program 'imagemagick)
>>
>> Any help is welcome,
>>
>> Best wishes,
>>
>> Jo.
>> ___
>> Ita mailing list
>> i...@mit.edu
>> http://mailman.mit.edu/mailman/listinfo/ita
>>
>


[O] html export with imagemagick

2019-05-22 Thread Joseph Vidal-Rosset
Hello the list,

I try desperately to export an org file to html with imagemagick option (an
not mathjax), and I have this error message:

convert-im6.q16: no images defined `/tmp/orgtexlyqPro.png' @
> error/convert.c/ConvertImageCommand/3258.
> org-compile-file: File "/tmp/orgtexlyqPro.png" wasn’t produced.  Please
> adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.
>

I have in my user.el  (= init file)  :

(setq org-latex-create-formula-image-program 'imagemagick)

Any help is welcome,

Best wishes,

Jo.


[O] excluding lines from the export to latex

2019-03-14 Thread Joseph Vidal-Rosset
Hello, 

I meet a small problem that  org-mode or lisp code could probably solve,
but again I need help. 

Here is  my question. In  my gnus setup,  via selecting identity,  I get
the following sample: 

#+BEGIN_SRC emacs-lisp

From: Joseph Vidal-Rosset 
To: 
Subject: 
Gcc: nnfolder+archive:sent.2019-03
Organization: Université de Lorraine :noexport:
X-Url: http://philo.shs-nancy.univ-lorraine.fr/131/membre/joseph-vidal-rosset
--text follows this line--
#+LaTeX_CLASS: smfart-fr 
#+CSL_STYLE: ~/MEGA/org/bjps.csl



[[bibliography:/home/joseph/MEGA/org/reforg.bib]]
[[bibliographystyle:apalike]]
-- 
Joseph Vidal-Rosset

#+END_SRC

Now, I would be happy to export into latex the part that is below "--text 
follows this
line--",  excluding from  the  export into latex what  is  above this  line:
i.e. the mention of "From: ... X-Url: "

If  you see  quickly how  I  can get  this  result, your  help would  be
welcome. 


Thanks, 
-- 
Jo.



Re: [O] scrlttr2 class and org-mode

2019-03-13 Thread Joseph Vidal-Rosset
Hello Nick, hello everybody,

I do not understand how printing the bibliography with the koma class. The
examples with filecontents lead me to think that it is not very convenient.
Usually, with other latex classes, I use org-ref and it works smoothly. It
is not the case with this class. I guess that I do not get something.

Best wishes,

Jo.

Le mer. 13 mars 2019 à 09:55, Joseph Vidal-Rosset <
joseph.vidal.ros...@gmail.com> a écrit :

> Many thanks Nick for this help. I am going to inspect my user.el file, in
> order to correct it, and I will inform you about the result.
>
> Best wishes,
>
> Jo.
>
> Le mar. 12 mars 2019 à 22:34, Nick Dokos  a écrit :
>
>> Joseph Vidal-Rosset  writes:
>>
>> > ...
>> > it  is also  possible to  get sections  in a
>> > letter with scrlttr2 class. Nevertheless, I have to write the latex code
>> > \section{}  and I  ignore how  getting  sections via  org-mode for  this
>> > class. Is it possible to get an org-mode translation for section in this
>> > class?
>> >
>>
>> C-h v org-latex-classes RET
>>
>> Briefly, you need to add a new element to it, describing what you want org
>> to do with this class.
>>
>> Here's a snippet from my init file that adds two latex classes to this
>> variable. Hope this makes the process clear:
>>
>> --8<---cut here---start->8---
>>
>> ;;;
>> ;;; latex export
>> (setq revtex-class
>>   '("revtex" "\\documentclass[11pt]{revtex4-1}"
>> ("\\section{%s}" . "\\section*{%s}")
>> ("\\subsection{%s}" . "\\subsection*{%s}")
>> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>> ("\\paragraph{%s}" . "\\paragraph*{%s}")
>> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>>
>> (setq koma-article-class
>>   '("koma-article" "\\documentclass[11pt]{scrartcl}"
>> ("\\section{%s}" . "\\section*{%s}")
>> ("\\subsection{%s}" . "\\subsection*{%s}")
>> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>> ("\\paragraph{%s}" . "\\paragraph*{%s}")
>> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>>
>> (progn
>> (require 'ox-latex)
>> (add-to-list 'org-latex-classes revtex-class t)
>> (add-to-list 'org-latex-classes koma-article-class t)))
>> --8<---cut here---end--->8---
>>
>> --
>> Nick
>>
>> "There are only two hard problems in computer science: cache
>> invalidation, naming things, and off-by-one errors." -Martin Fowler
>>
>>
>>


Re: [O] scrlttr2 class and org-mode

2019-03-13 Thread Joseph Vidal-Rosset
Many thanks Nick for this help. I am going to inspect my user.el file, in
order to correct it, and I will inform you about the result.

Best wishes,

Jo.

Le mar. 12 mars 2019 à 22:34, Nick Dokos  a écrit :

> Joseph Vidal-Rosset  writes:
>
> > ...
> > it  is also  possible to  get sections  in a
> > letter with scrlttr2 class. Nevertheless, I have to write the latex code
> > \section{}  and I  ignore how  getting  sections via  org-mode for  this
> > class. Is it possible to get an org-mode translation for section in this
> > class?
> >
>
> C-h v org-latex-classes RET
>
> Briefly, you need to add a new element to it, describing what you want org
> to do with this class.
>
> Here's a snippet from my init file that adds two latex classes to this
> variable. Hope this makes the process clear:
>
> --8<---cut here---start->8---
> ;;;
> ;;; latex export
> (setq revtex-class
>   '("revtex" "\\documentclass[11pt]{revtex4-1}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> (setq koma-article-class
>   '("koma-article" "\\documentclass[11pt]{scrartcl}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> (progn
> (require 'ox-latex)
> (add-to-list 'org-latex-classes revtex-class t)
> (add-to-list 'org-latex-classes koma-article-class t)))
> --8<---cut here---end--->8---
>
> --
> Nick
>
> "There are only two hard problems in computer science: cache
> invalidation, naming things, and off-by-one errors." -Martin Fowler
>
>
>


[O] scrlttr2 class and org-mode

2019-03-12 Thread Joseph Vidal-Rosset
Hello, 

Thanks   tothe   documentation
https://orgmode.org/worg/exporters/koma-letter-export.html
I have succeeded to export in scrlttr2 class. 

Thanks to this lco files,

https://tex.stackexchange.com/questions/63085/adding-sectioning-support-in-scrlttr2-class
 

it  is also  possible to  get sections  in a
letter with scrlttr2 class. Nevertheless, I have to write the latex code
\section{}  and I  ignore how  getting  sections via  org-mode for  this
class. Is it possible to get an org-mode translation for section in this
class? 

Another problem is the bibiography .  I am a fan of org-ref (many
thanks again to John  Kitchin) and I would be happy to  use org-ref in a
letter with scrlttr2 class. 

My  goal is to be  able to write  emails in
gnus and org-mode and optionally to export the content of the email in a
nice letter to attach it. I guess that it is possible, but I need help.

Your help would be very welcome. 

Best wishes, 
-- 
Joseph Vidal-Rosset



Re: [O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-09 Thread Joseph Vidal-Rosset
Le ven.  08 mars 2019 à  05:19:13 , Eric S  Fraga  a
envoyé ce message:
> On Friday,  8 Mar 2019 at 17:53, Joseph Vidal-Rosset wrote:
>> I have reinstalled the current version of ox-koma-letter.el to compile
>> the example given here
>
>> https://code.orgmode.org/bzg/worg/raw/master/exporters/koma-letter-new-example.org
>>  
>
>> and here is the result with M-x toggle-debug-on-error: 
>
> This is very strange.  That file works just fine for me.
>
> What version of org are you using?  (I apologise if you already told us.)
>
> I have no special customization for ox-koma-letter.

I'm using the elpa version, both for org-plus-contrib and org: 

joseph@debian ~ $ cat 
MEGA/git/scimax/elpa/org-plus-contrib-20190304/ox-koma-letter.el
;;; ox-koma-letter.el --- KOMA Scrlttr2 Back-End for Org Export Engine

;; Copyright (C) 2007-2018 Free Software Foundation, Inc.

joseph@debian ~ $ cd MEGA/git/scimax/elpa/org-20190304/

I'm going to  install the older version of  ox-koma-letter.el that works
in my setup,  because I am unable to understand  why the current version
fails presently. 

Best wishes, 
-- 
Jo. 



Re: [O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-08 Thread Joseph Vidal-Rosset
Le ven.  08 mars 2019 à  09:36:51 , Eric S  Fraga  a
envoyé ce message:
> On Friday,  8 Mar 2019 at 09:11, Joseph Vidal-Rosset wrote:
>> Hello,
>>
>> I'm trying to export to koma class,  and especially to get the export to
>> koma letter but I meet always the same message: 
>
> Two things:
>
> 1. could you post a minimal example?
>
> 2. what do you see if you M-x toggle-debug-on-error RET first.

Hello, 

I have reinstalled  the current version of  ox-koma-letter.el to compile
the  example given  here
https://code.orgmode.org/bzg/worg/raw/master/exporters/koma-letter-new-example.org
 
and here is the result with M-x toggle-debug-on-error: 

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
  format-spec(nil ((116 . #("Mis-shapen chaos of well-seeming forms!" 0 39 
(:parent (#("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent #7)) 
(97 . #("Romeo" 0 5 (:parent (#("Romeo" 0 5 (:parent #8)) (116 . 
#("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent (#("Mis-shapen chaos 
of well-seeming forms!" 0 39 (:parent #9)) (107 . "") (100 . "") (99 . 
"Emacs 27.0.50 (Org mode 9.2.2)") (108 . "french") (76 . "French") (68 #("1580" 
0 4 (:parent #12)
  org-koma-letter-template(#("\n\n\\begin{verse}\nThen plain..." 16 61 (:parent 
(verse-block ... ...)) 64 101 (:parent (verse-block ... ...)) 104 144 (:parent 
(verse-block ... ...)) 147 192 (:parent (verse-block ... ...)) 195 237 (:parent 
(verse-block ... ...)) 240 283 (:parent (verse-block ... ...)) 286 329 (:parent 
(verse-block ... ...)) 332 369 (:parent (verse-block ... ...)) ...) 
(:export-options nil :back-end #s(org-export-backend :name koma-letter :parent 
latex :transcoders (... ... ... ... ...) :options (... ... ... ... ... ... ... 
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 
...) :filters nil :blocks nil :menu (107 "Export with KOMA Scrlttr2" ...)) 
:translate-alist ((export-block . org-koma-letter-export-block) (export-snippet 
. org-koma-letter-export-snippet) (headline . org-koma-letter-headline) 
(keyword . org-koma-letter-keyword) (template . org-koma-letter-template) (bold 
. org-latex-bold) (center-block . org-latex-center-block) (clock . 
org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) 
(dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) 
(example-block . org-latex-example-block) (export-block . 
org-latex-export-block) (export-snippet . org-latex-export-snippet) 
(fixed-width . org-latex-fixed-width) (footnote-definition . 
org-latex-footnote-definition) (footnote-reference . 
org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule 
. org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) 
(inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . 
org-latex-item) (keyword . org-latex-keyword) (latex-environment . 
org-latex-latex-environment) ...) :exported-data # :input-buffer "koma-letter-new-example.or..." :input-file 
"/home/joseph/MEGA/lettre/k..." :latex-class "my-letter" :lco "DINmtext" 
:author (#("Romeo" 0 5 ...)) :author-changed-in-buffer-p "Romeo" :from-address 
"" :phone-number "" :url "" ...))
  org-export-as(koma-letter nil nil nil (:output-file 
"koma-letter-new-example.tex"))
  org-export-to-file(koma-letter "koma-letter-new-example.tex" nil nil nil nil 
nil #f(compiled-function (file) #))
  org-koma-letter-export-to-pdf(nil nil nil nil)
  (org-open-file (org-koma-letter-export-to-pdf nil s v b))
  (if a (org-koma-letter-export-to-pdf t s v b) (org-open-file 
(org-koma-letter-export-to-pdf nil s v b)))
  (lambda (a s v b) (if a (org-koma-letter-export-to-pdf t s v b) 
(org-open-file (org-koma-letter-export-to-pdf nil s v b(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)


I hope it helps (because I am unable to understand this output). 

Best wishes, 

-- 
Joseph 



Re: [O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-08 Thread Joseph Vidal-Rosset
Hello,

There was a problem with the last version of ox-koma-letter.el  , I have
replaced it with an old version:

;;; ox-koma-letter.el --- KOMA Scrlttr2 Back-End for Org Export Engine

;; Copyright (C) 2007-2012, 2014  Free Software Foundation, Inc.

and now the export works.

I hope that it will be helpful.

Best wishes,

Jo.

Le ven. 8 mars 2019 à 09:11, Joseph Vidal-Rosset <
joseph.vidal.ros...@gmail.com> a écrit :

> Hello,
>
> I'm trying to export to koma class,  and especially to get the export to
> koma letter but I meet always the same message:
>
> "org-koma-letter-template: Wrong type argument: char-or-string-p, nil"
>
> and I do  not succeed to see  what is wrong in my  setup. Therefore your
> help is welcome.
>
> Best wishes,
>
> Jo.
>


[O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-08 Thread Joseph Vidal-Rosset
Hello,

I'm trying to export to koma class,  and especially to get the export to
koma letter but I meet always the same message: 

"org-koma-letter-template: Wrong type argument: char-or-string-p, nil"

and I do  not succeed to see  what is wrong in my  setup. Therefore your
help is welcome. 

Best wishes, 

Jo. 



Re: [O] Dual document export slides and lecture notes title slide issue

2019-01-31 Thread Joseph Vidal-Rosset
Sorry, the quotation of the file content beamer-fr.org missed. Here is:

#+TITLE:
#+DATE:
#+OPTIONS: H:2 toc:nil author:t
#+LATEX_CLASS: beamer-ahp-ul
#+LANGUAGE:fr




**
:PROPERTIES:
 :BEAMER_opt: allowframebreaks,label=
:END:
bibliography:/home/joseph/MEGA/org/reforg.bib
bibliographystyle:apalike
Best wishes,

Jo.


Le jeu. 31 janv. 2019 à 12:08, Joseph Vidal-Rosset <
joseph.vidal.ros...@gmail.com> a écrit :

> Hello Johanna,
>
> I am using scimax from John Kitchin https://github.com/jkitchin/scimax
> <https://github.com/jkitchin/scimax%20>and I recommend it to you warmly.
>
> In my /user/user.el, here is what is about beamer :
>
> (add-to-list 'org-latex-classes
>  '("beamer-ahp-ul"
>"\\documentclass\[10pt,svgnames,fragile]\{beamer\} 
>[NO-DEFAULT-PACKAGES][PACKAGES]
> [NO-EXTRA]\\theoremstyle{plain}% 
> default\\newtheorem{thm}{Theorem}[section]\\newtheorem{theo}{Théorème}[section]\\newtheorem{lem}[thm]{Lemma}\\newtheorem{prop}[thm]{Proposition}\\newtheorem*{cor}{Corollary}\\theoremstyle{definition}\\newtheorem{defi}{Definition}[section]\\newtheorem{rema}[thm]{Remarque}\\newtheorem{Conjecture}[theorem]{Conjecture}\\newtheorem{exa}{Example}[section]\\newtheorem{exem}{Exemple}[section]\\\hypersetup{colorlinks,citecolor=blue,linkcolor=.,menucolor=white,filecolor=pink,
>
> anchorcolor=yellow}\\AtBeginSection\[\]\{\\begin\{frame\}\\frametitle\{\}\\tableofcontents\[currentsection,hideothersubsections\]\\end\{frame\}\}\\subtitle\{\}\\institute\[Université
>  de Lorraine\]\{Département de philosophie  Archives Henri Poincaré - UMR 
> 7117 du CNRS  Université de Lorraine  91 bd Libération, 54000 Nancy 
>  France 
> \}\\titlegraphic\{\\includegraphics\[height=1cm\]\{ahp\}\\includegraphics\[height=1cm\]\{udl\}\\includegraphics\[height=1cm\]\{cnrs\}\}\\usetheme\{CambridgeUS\}\\usepackage\{beamer_udl_theme\}\\setbeamertemplate\{navigation
>  symbols\}{%%insertslidenavigationsymbol%
> %insertframenavigationsymbol%%insertsubsectionnavigationsymbol%   
>  %insertsectionnavigationsymbol%%insertdocnavigationsymbol%
> %insertbackfindforwardnavigationsymbol%}\\setbeamertemplate{theorems}[numbered]"
>("\\section\{%s\}" . "\\section*\{%s\}")
>("\\subsection\{%s\}" . "\\subsection*\{%s\}")
>("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
>
> (require 'autoinsert)
> (auto-insert-mode)  ;;; Adds hook to find-files-hook
> (setq auto-insert-directory "~/MEGA/org/my_org-templates/") ;;; Or use 
> custom, *NOTE* Trailing slash important
> (setq auto-insert-query nil) ;;; If you don't want to be prompted before 
> insertion
> (define-auto-insert "\.beamer-fr.org" "beamer-fr.org")
>
>
> in my folder ~/MEGA/org/my_org-templates/ there is the file
> beamer-fr.org:
>
> #+BEGIN_SRC lisp
>
> /home/joseph/MEGA/org/reforg.bib
>
> #+END_SRC
>
> I have also defined a theme that corresponds to my institution and
> that is located in
> /home/joseph/texmf/tex/latex/local/beamer_udl_theme.sty
>
> Now, as soon as I write a file that ends with the expression
> « beamer-fr.org », it is immediately with this template and the export
> beamer works smoothly.
>
> I have nothing with notes, but I hope it helps.
>
> Best wishes,
>
> Jo.
>


  1   2   3   4   >