Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-09 Thread Joseph Vidal-Rosset

#multipart type=alternative#part type=text/plain#+OPTIONS: latex:t
#multipart type=alternative#part type=text/plain#+OPTIONS: latex:t
#multipart type=alternative#part type=text/plain#+OPTIONS: latex:t
Le jeu.  09 janv. 2014  à 12:41:48 ,  Bastien b...@gnu.org a  envoyé ce
message:
 Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 My gnus works now. But I'm still using Gmail at the moment.

 As Nick wisely said: one thing at a time!

 The good new is that you'll get good support
 for both Gnus and Org.



Yes, you are right Bastien.



Good news: I have finally the explanation  of the "bug". Here is, and it
could be a lesson for all Debian users.



All the problems that I had theses times came from the same cause: I had
decided to  install some  very useful packages  not via  Debian aptitude
system, but  via direct sources  in usr/local  just in order  to avoid
boring and long re-installation of texlive-full for example.



But it has certainly created some  confusion, probably my .bashrc is not
correctly written, I do not know.



This morning I have removed and purge all what could be in relation with
latex and re-installed bibtex2html, texlive, and so on. And now it works
fine.



Here is Peirce formula:









End of this thread. I am going to  open another one about Gnus - Org and
$ $



Best wishes,



Jo.



Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Nick Dokos
Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 Dear Eric (cc. the list),

 I apologize to insist with this problem that I meet with org-mime-htmize in 
 the gnus on my PC. 

 On my laptop, with the same OS and I believe the same configuration, it runs 
 perfectly. Here I meet always this sort of message: 

 Creating LaTeX Image...
 Failed to create dvi file from /tmp/orgtex11506Npy.tex
 Auto-saving...

 I have tried to run latex /tmp/orgtex11506Npy.tex - as adviced Nick -  and 
 the dvi file was created. 

 I  understand neither what happens nor how I can fix this problem. Do you see 
  an possible explanation ? 


Not enough information: post the procedure you follow and a minimal org
file that exhibits the problem.

-- 
Nick




Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Joseph Vidal-Rosset
2014/1/8 Nick Dokos ndo...@gmail.com

 Not enough information: post the procedure you follow and a minimal org
 file that exhibits the problem.


Hi Nick,  I apolgize, it's difficult for me to be more complete that I was.
It is not org, but gnus with org. M-x  org-mime-htmlize creates the html
email, but fails to make access to /temp/image.png . That's it.

Best wishes,

Jo.


Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Nick Dokos

Table of Contents


1. Org fragment for org-mime-htmlize to chew on.




Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:



 2014/1/8 Nick Dokos ndo...@gmail.com

 Not enough information: post the procedure you follow and a minimal org
 file that exhibits the problem.

 Hi Nick,  I apolgize, it's difficult for me to be more complete that I was.



You are kidding, right? Here, let me start and maybe you can see where
I'm going.



In gnus, I was reading your message and did "f" to follow up. I then
entered this org fragment:



8cut herestart-8


1 Org fragment for org-mime-htmlize to chew on.


Does this work?
8cut hereend8



I then called org-mime-htmlize. That added the html part and I then sent
it with C-c C-c. How hard is that?



BTW, just in case I made you feel bad: I've been ranting about things
like this for years, e.g.



http://article.gmane.org/gmane.emacs.orgmode/32130/match=ask+questions



You are not the first, and you are not going to be the last: asking good
questions is learned, so there is hope :-)



BTW, I think the reference to ESR's "smart questions" paper has been
added somewhere in Worg, but a few minutes search did not uncover it.
Anybody know where it is?



Nick





Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Josiah Schwab

Nick Dokos writes:

 BTW, I think the reference to ESR's smart questions paper has been
 added somewhere in Worg, but a few minutes search did not uncover it.
 Anybody know where it is?

There is a link to it on the front page.  Second to last line in the
Documentation and Literature section.

http://orgmode.org/#sec-2

Of course, it may be linked elsewhere too.

Best,
Josiah



Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Joseph Vidal-Rosset
2014/1/8 Nick Dokos ndo...@gmail.com

  Hi Nick,  I apolgize, it's difficult for me to be more complete that I
 was.

 You are kidding, right?

Hi Nick,

No, I did not kidding, unfortunately.

I'm replying with gmail, and I am afraid I will give up the project to use
Gnus. From yesterday evening, suddenly I have on my two computers an error
message with gnus:

'smtp-server'  not defined.

I've of course tried to solve this new problem, with help of archives of
mailing lists given by Google, all my tentative are at the moment
unsuccessful...

It's both boring and irritating.

The least that I expect from an email client is to work correctly. Gnus
worked, for sending and receiving emails, and suddenly without clear
reason, it does not work no more... It is not stable because I have not
changed .gnus.el ...

I am sorry to have bothered you for nothing, but I am tired and
disappointed by emailing via emacs. I loose more time in trying to
configure gnus for my gmail account than in reading and replying to my
emails...

I will going to try to improve my use of org-mode, but Gnus is not made for
me...

Best wishes,

Jo.


Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Bastien
Hi Joseph,

Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 The least that I expect from an email client is to work correctly.
 Gnus worked, for sending and receiving emails, and suddenly without
 clear reason, it does not work no more... It is not stable because I
 have not changed .gnus.el ...

If you haven't changed anything in your Gnus configuration and if
you are still using the exact same setup that used to be working,
it's hardly Gnus fault... maybe gmail changed something?

Anyway, just to give you some more encouragement: it's really worth
insisting.

Remember Beckett's: fail, fail again, fail better!

-- 
 Bastien



Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Joseph Vidal-Rosset
2014/1/8 Bastien b...@gnu.org

 If you haven't changed anything in your Gnus configuration and if
 you are still using the exact same setup that used to be working,
 it's hardly Gnus fault... maybe gmail changed something?

 Anyway, just to give you some more encouragement: it's really worth
 insisting.

 Remember Beckett's: fail, fail again, fail better!


Hi Bastien,

It was FLIM's fault. The bug is here:

http://lists.gnu.org/archive/html/info-gnus-english/2010-02/msg00077.html

My gnus works now. But I'm still using Gmail at the moment.

Je boude !  :)

Best wishes

Jo.


Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Joseph Vidal-Rosset
#+OPTIONS: latex:t
Le  mer. 08  janv. 2014  à 04:29:03  , Nick  Dokos ndo...@gmail.com  a
envoyé ce message:
 Table of Contents

   * 1. Org fragment for org-mime-htmlize to chew on.

 Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 2014/1/8 Nick Dokos ndo...@gmail.com

 Not enough information: post the procedure you follow and a minimal org
 file that exhibits the problem.

 Hi Nick,  I apolgize, it's difficult for me to be more complete that I was.

 You are kidding, right? Here, let me start and maybe you can see where
 I'm going.

 In gnus, I was reading your message and did f to follow up. I then
 entered this org fragment:

 –8—cut here—start-8—

 1 Org fragment for org-mime-htmlize to chew on.

 Does this work?
 –8—cut here—end—8—

 I then called org-mime-htmlize. That added the html part and I then sent
 it with C-c C-c. How hard is that?

Hi again Nick, 

What is  easy for you in  one domain can  be hard for other  people, and
conversely for other domains. 

I'm back to Gnus  finally and I am going to give you  an example of what
works and what does not work with my org-mime-htmlize...

* This title

should work

But the following formula 

$$ \neg \neg A \nvdash_{i} A $$

should not. 

Effectively : 

 type=image/png 
filename=/tmp/ltxpng/latex3088O8b_1791543855878815db07961548d62eeeb9ad27d0.png
 disposition=inline 
id=_tmp_ltxpng_latex3088O8b_1791543855878815db07961548d62eeeb9ad27d0.png


provokes this message : mm-insert-file-contents: Opening input file: aucun 
fichier ou dossier de ce type, 
/tmp/ltxpng/latex3088O8b_1791543855878815db07961548d62eeeb9ad27d0.png

I hope that is what you expected from me...

See you soon...

Jo. 
div id=table-of-contents
h2Table of Contents/h2
div id=text-table-of-contents
ul
lia href=#sec-11. This title/a/li
/ul
/div
/div
p
Le  mer. 08  janv. 2014  à 04:29:03  , Nick  Dokos lt;ndo...@gmail.comgt;  
abr  /
envoyé ce message:br  /
gt; Table of Contentsbr  /
gt;br  /
gt;   * 1. Org fragment for org-mime-htmlize to chew on.br  /
gt;br  /
gt; Joseph Vidal-Rosset lt;joseph.vidal.ros...@gmail.comgt; writes:br  /
gt;br  /
gt;gt; 2014/1/8 Nick Dokos lt;ndo...@gmail.comgt;br  /
gt;gt;br  /
gt;gt; Not enough information: post the procedure you follow and a minimal 
orgbr  /
gt;gt; file that exhibits the problem.br  /
gt;gt;br  /
gt;gt; Hi Nick,  I apolgize, it's difficult for me to be more complete that I 
was.br  /
gt;br  /
gt; You are kidding, right? Here, let me start and maybe you can see wherebr  
/
gt; I'm going.br  /
gt;br  /
gt; In gnus, I was reading your message and did f to follow up. I thenbr  /
gt; entered this org fragment:br  /
gt;br  /
gt; –8lt;—cut here—start-gt;8—br  /
gt;br  /
gt; 1 Org fragment for org-mime-htmlize to chew on.br  /
gt;br  /
gt; Does this work?br  /
gt; –8lt;—cut here—end—gt;8—br  /
gt;br  /
gt; I then called org-mime-htmlize. That added the html part and I then 
sentbr  /
gt; it with C-c C-c. How hard is that?br  /
/p

p
Hi again Nick,br  /
/p

p
What is  easy for you in  one domain can  be hard for other  people, andbr  /
conversely for other domains.br  /
/p

p
I'm back to Gnus  finally and I am going to give you  an example of whatbr  /
works and what does not work with my org-mime-htmlize#x2026;br  /
/p

div id=outline-container-sec-1 class=outline-2
h2 id=sec-1span class=section-number-21/span This title/h2
div class=outline-text-2 id=text-1
p
should workbr  /
/p

p
But the following formulabr  /
/p

p
img 
src=cid:_tmp_ltxpng_latex3088O8b_1791543855878815db07961548d62eeeb9ad27d0.png 
alt=$$ \neg \neg A \nvdash_{i} A $$ /br  /
/p

p
should not.br  /
/p

p
I hope that is what you expected from me#x2026;br  /
/p

p
See you soon#x2026;br  /
/p

p
Jo.br  /
/p
/div
/div


Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Nick Dokos
Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 2014/1/8 Nick Dokos ndo...@gmail.com

  Hi Nick,  I apolgize, it's difficult for me to be more complete that I 
 was.

 You are kidding, right?

 Hi Nick, 

 No, I did not kidding, unfortunately. 

 I'm replying with gmail, and I am afraid I will give up the project to use 
 Gnus. From yesterday evening, suddenly I have on my
 two computers an error message with gnus: 

 'smtp-server'  not defined. 


I saw your other message where FLIM (whatever that is) is identified as
the culprit. One piece of advice: do not install random software
packages without thorough testing. The best way to test is with a
minimal .emacs that just loads the package under test, start a new emacs
with it (emacs -q -l /path/to/min.emacs) and test the heck out of it
before admitting it into the set of trusted packages that you load in
your everyday emacs session. I routinely have three emacs sessions
going: my everyday emacs, a separate one that I use as an IRC client
(running erc) and a third short-lived one for tests.  My everyday emacs
runs for weeks at a time; the irc emacs gets restarted every time I
switch networks (I wish erc would maintain the connections, but they get
dropped); the short-lived one(s) lasts from a few minutes to a few
hours.

 I've of course tried to solve this new problem, with help of archives
 of mailing lists given by Google, all my tentative are at the moment
 unsuccessful... 

 It's both boring and irritating. 

 The least that I expect from an email client is to work
 correctly. Gnus worked, for sending and receiving emails, and suddenly
 without clear reason, it does not work no more... It is not stable
 because I have not changed .gnus.el ... 


... but you installed FLIM, right? That installed its own smtpmail.el
which apparently you picked up in preference to the one that came with
emacs. This is a fairly common mistake.

 I am sorry to have bothered you for nothing, but I am tired and
 disappointed by emailing via emacs. I loose more time in trying to
 configure gnus for my gmail account than in reading and replying to my
 emails... 

 I will going to try to improve my use of org-mode, but Gnus is not made for 
 me...


Bastien's channeling of Beckett was the perfect answer here, but as
usual I have a few more comments :-)

Gnus is indeed peculiar: I switched to it about 8 months ago and I'm
still not quite comfortable with it. However, although I occasionally
use gmail and thunderbird, I'll take an emacs-based mail client over
them every time: I used mh-e for many years and switched to gnus only
because I wanted an imap server at home - afaik, mh-e (and nmh underneath
it) just did not support that use case.

As a general principle however, you need to decouple your attempts to
use gnus from your attempts to use org. I recently advised somebody not
to use all the blades of the org swiss-army knife at the same time.
Trying to do that in combination with gnus is turning the knife into a
chainsaw (swiss-army chainsaw anyone?)

Do them one at a time: it may seem slow and inefficient to you now, but
it is much more efficient than the alternative - damhikt...

Nick




Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Joseph Vidal-Rosset
Dear Nick and dear all,

Sorry for my previous message. I have had to cut the html code in order to
succed to sent my message with Gnus. The result is not beautiful. But I
hope that it will help to understand the problem.

Nick, many thanks for your patience with me and for all your efforts with
the community.

Best wishes

Jo.


Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Nick Dokos
Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 What is  easy for you in  one domain can  be hard for other  people, and
 conversely for other domains. 

 I'm back to Gnus  finally and I am going to give you  an example of what
 works and what does not work with my org-mime-htmlize...

 * This title

 should work

 But the following formula 

 $$ \neg \neg A \nvdash_{i} A $$

 should not. 

 Effectively : 

  type=image/png
 filename=/tmp/ltxpng/latex3088O8b_1791543855878815db07961548d62eeeb9ad27d0.png
 disposition=inline
 id=_tmp_ltxpng_latex3088O8b_1791543855878815db07961548d62eeeb9ad27d0.png


 provokes this message : mm-insert-file-contents: Opening input file:
 aucun fichier ou dossier de ce type,
 /tmp/ltxpng/latex3088O8b_1791543855878815db07961548d62eeeb9ad27d0.png

 I hope that is what you expected from me...


Exactly. FWIW, it works fine for me, so it's not an org-mime (or oher
org) problem.  It is probably a problem in your setup: it seems that you
cannot generate latex fragment images.

Create a file, foo.org say, and insert the above content:

--8---cut here---start-8---
* This title

should work

But the following formula 

$$ \neg \neg A \nvdash_{i} A $$

should not. 
--8---cut here---end---8---

Split the window and visit the *Messages* buffer in one of the
windows. Then do C-c C-x C-l in the foo.org window (or what amounts to
the same thing, M-x org-preview-latex-fragment). Does it fail? What does
the *Messages* buffer say?

Nick






Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Joseph Vidal-Rosset
Le  mer. 08  janv. 2014  à 08:23:02  , Nick  Dokos ndo...@gmail.com  a
envoyé ce message:

 I hope that is what you expected from me...


 Exactly. FWIW, it works fine for me, so it's not an org-mime (or oher
 org) problem.  It is probably a problem in your setup: it seems that you
 cannot generate latex fragment images.

Yes, I agree,  it is very probably a  problem in the setup of  my PC, in
the setup of gnus, 


 Create a file, foo.org say, and insert the above content:

 * This title

 should work

 But the following formula 

 $$ \neg \neg A \nvdash_{i} A $$

 should not. 

 Split the window and visit the *Messages* buffer in one of the
 windows. Then do C-c C-x C-l in the foo.org window (or what amounts to
 the same thing, M-x org-preview-latex-fragment). Does it fail? What does
 the *Messages* buffer say?

 Nick

C-c C-x C-l works fine: I see the equation image in the buffer. 

Here is the result of Messages buffer:

Loading reftex...done
Mark set
Creating images for entry...1
Process completed.
Creating images for entry...done.  Use `C-c C-c' to remove images.
byte-code: End of buffer
Auto-saving...done

Maybe the  problem came  of building  another emacs-24.3  in /usr/local/
...   I   met  another   problem   with   that.   So   I  sudo   rm   -r
/usr/local/emacs-24.3/ and I am going to  make another check. I keep you
informed. 

Soon,

Jo. 



Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Joseph Vidal-Rosset
2014/1/8 Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com

 Maybe the  problem came  of building  another emacs-24.3  in /usr/local/
 ...   I   met  another   problem   with   that.   So   I  sudo   rm   -r
 /usr/local/emacs-24.3/ and I am going to  make another check. I keep you
 informed.


Unfortunately, the same problem persists in boring me. I have even tried an
aptitude reinstall emacs24, nothing has changed.

I got this result with a formula:

#multipart type=alternative#part type=text/plain#+OPTIONS: latex:t


[image: ((p \to q) \to p) \to p]
#multipart type=related#part type=text/htmlp
img
src=cid:_tmp_ltxpng_latex55421HL_fe33fb9aa807a803acea12fbcfe6cf88056fbc6b.png
alt=[image: ((p \to q) \to p) \to p] /br  /
/p
#part type=image/png
filename=/tmp/ltxpng/latex55421HL_fe33fb9aa807a803acea12fbcfe6cf88056fbc6b.png
disposition=inline
id=_tmp_ltxpng_latex55421HL_fe33fb9aa807a803acea12fbcfe6cf88056fbc6b.png
#/part
#/multipart
#/multipart


Where you'll can see the image of Peirce Law, but I cannot send the message
via Gnus because the message error:

Creating LaTeX Image...
Failed to create dvi file from /tmp/orgtex5542CSR.tex
Auto-saving...

I do not understand.

I send this message from Gmail  (Gmail-Tex displays the image), because I
am unable to find our thread in the Group of this List  in Gnus, but it is
another problem

Best wishes and good evening,

Jo.


Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Bastien
Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 My gnus works now. But I'm still using Gmail at the moment.

As Nick wisely said: one thing at a time!

The good new is that you'll get good support
for both Gnus and Org.

-- 
 Bastien