From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Marek Subject: Virtualenv and HTML5 Help Date: Wed, 7 May 2014 14:17:19 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_17815bf1-6c3b-494d-89da-7ef22519d625_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi8HQ-0005w3-1R for emacs-orgmode@gnu.org; Wed, 07 May 2014 16:17:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wi8HI-0003r2-GH for emacs-orgmode@gnu.org; Wed, 07 May 2014 16:17:27 -0400 Received: from blu0-omc1-s20.blu0.hotmail.com ([65.55.116.31]:64626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi8HI-0003qi-D1 for emacs-orgmode@gnu.org; Wed, 07 May 2014 16:17:20 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --_17815bf1-6c3b-494d-89da-7ef22519d625_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I just have a few questions that I couldn't figure out from the FAQ's= and manual. Virtualenv: I'm trying to execute a python script within a SRC block using a virtual en= vironment instead of my system's python implementation. I have a number of = libraries in this virtual environment that I don't have on my system's pyth= on (e.g. Matplotlib). Now=2C I set [ python-shell-virtualenv-path ] to my v= irtualenv's root directory. When I run [ M-x run-python ] the shell runs fr= om my virtual environment. That is=2C I can import Matplotlib with no probl= ems. But when I import Matplotlib within a SRC block I get an import error.= =20 How can I have it so the SRC block uses the python in my virtual environmen= t and not my system's python? Is there any way I can set the path to a given virtual environment automati= cally when I load an org file? HTML5 Export: I'm trying to export my org-files in 'html5'=2C as opposed to the default '= xhtml-strict'. The manual says to set [ org-html-html5-fancy ] to t. I trie= d searching for [ org-html-html5-fancy ] in [ M-x org-customize ] but I cou= ldn't find it. I tried adding [ (setq org-html-html5-fancy t) ] to my init.= el=2C but nothing happened. I'm not at all proficient in emacs-lisp so my s= yntax may be wrong. The manual also says I can set [ html5-fancy ] in an op= tions line. I'm not really sure how to do this. I tried [ #+OPTIONS html5-f= ancy: t ] but it didn't do anything. How can I export to 'html5' instead of 'xhtml-strict' in org version 7.9.3f= and Emacs version 24.3.1? Is there any way I can view and customize the back-end that parses the org = file to produce the html? I appreciate any help you can offer. - M = --_17815bf1-6c3b-494d-89da-7ef22519d625_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=2C I just have a few questions that I couldn't figure out from the = FAQ's and manual.

Virtualenv:

I'm tr= ying to execute a python script within a SRC block using a virtual environm= ent instead of my system's python implementation. I have a number of librar= ies in this virtual environment that I don't have on my system's python (e.= g. Matplotlib). Now=2C I set [ =3Bpython-shell-virtualenv-path =3B] to my virtualenv's = root directory. When I run [ M-x run-python ] the shell runs from my virtua= l environment. That is=2C I can import Matplotlib with no problems. But whe= n I import Matplotlib within a SRC block I get an import error. =3B

  1. How can I have it so the SRC block uses the python in my v= irtual environment and not my system's python?
  2. Is there any way= I can set the path to a given virtual environment automatically when I loa= d an org file?

<= /div>
HTML5 Export:

I'm trying to export my org-files in 'html5'=2C as opposed to the def= ault 'xhtml-strict'. The manual says to set [ org-html-html5-fancy ] to t. = I tried searching for [ org-html-html5-fancy ] in [ M-x org-customize ] but= I couldn't find it. I tried adding [ (setq org-html-html5-fancy t) ] to my= init.el=2C but nothing happened. I'm not at all proficient in emacs-lisp s= o my syntax may be wrong. The manual also says I can set [ html5-fancy ] in= an options line. I'm not really sure how to do this. I tried [ #+OPTIONS h= tml5-fancy: t ] but it didn't do anything.

  1. How can I ex= port to 'html5' instead of 'xhtml-strict' in org version 7.9.3f and Emacs v= ersion 24.3.1?
  2. Is there any way I can view and customize the ba= ck-end that parses the org file to produce the html?

=
I appreciate any help you can offer.

- = M
= --_17815bf1-6c3b-494d-89da-7ef22519d625_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Randby Subject: Re: Virtualenv and HTML5 Help Date: Wed, 07 May 2014 16:38:48 -0400 Message-ID: <536A99D8.3020701@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi8cI-00021s-JW for emacs-orgmode@gnu.org; Wed, 07 May 2014 16:39:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wi8c8-000251-Lz for emacs-orgmode@gnu.org; Wed, 07 May 2014 16:39:02 -0400 Received: from mail-ig0-x22c.google.com ([2607:f8b0:4001:c05::22c]:44451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi8c8-00024u-H4 for emacs-orgmode@gnu.org; Wed, 07 May 2014 16:38:52 -0400 Received: by mail-ig0-f172.google.com with SMTP id uy17so8201712igb.5 for ; Wed, 07 May 2014 13:38:51 -0700 (PDT) Received: from [192.168.1.111] (cpe-24-165-203-246.neo.res.rr.com. [24.165.203.246]) by mx.google.com with ESMTPSA id m8sm255102igx.9.2014.05.07.13.38.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 13:38:50 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 05/07/2014 04:17 PM, Thomas Marek wrote: > > *HTML5 Export:* > * > * > I'm trying to export my org-files in 'html5', as opposed to the default > 'xhtml-strict'. The manual says to set [ org-html-html5-fancy ] to t. I > tried searching for [ org-html-html5-fancy ] in [ M-x org-customize ] > but I couldn't find it. I tried adding [ (setq org-html-html5-fancy t) ] > to my init.el, but nothing happened. I'm not at all proficient in > emacs-lisp so my syntax may be wrong. The manual also says I can set [ > html5-fancy ] in an options line. I'm not really sure how to do this. I > tried [ #+OPTIONS html5-fancy: t ] but it didn't do anything. > > 1. How can I export to 'html5' instead of 'xhtml-strict' in org version > 7.9.3f and Emacs version 24.3.1? > 2. Is there any way I can view and customize the back-end that parses > the org file to produce the html? > I believe you need to upgrade your org to version 8 for (setq org-html-html5-fancy t) to work. Scott Randby > > I appreciate any help you can offer. > > - M From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Virtualenv and HTML5 Help Date: Thu, 08 May 2014 09:59:30 +0800 Message-ID: <87mwethvy5.fsf@ericabrahamsen.net> References: <536A99D8.3020701@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiDd7-0004vF-1D for emacs-orgmode@gnu.org; Wed, 07 May 2014 22:00:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiDcz-0007Jn-I3 for emacs-orgmode@gnu.org; Wed, 07 May 2014 22:00:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:34623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiDcz-0007FG-C1 for emacs-orgmode@gnu.org; Wed, 07 May 2014 22:00:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WiDcx-0004Oq-Kg for emacs-orgmode@gnu.org; Thu, 08 May 2014 04:00:03 +0200 Received: from 114.248.31.91 ([114.248.31.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 May 2014 04:00:03 +0200 Received: from eric by 114.248.31.91 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 May 2014 04:00:03 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Scott Randby writes: > On 05/07/2014 04:17 PM, Thomas Marek wrote: >> >> *HTML5 Export:* >> * >> * >> I'm trying to export my org-files in 'html5', as opposed to the default >> 'xhtml-strict'. The manual says to set [ org-html-html5-fancy ] to t. I >> tried searching for [ org-html-html5-fancy ] in [ M-x org-customize ] >> but I couldn't find it. I tried adding [ (setq org-html-html5-fancy t) ] >> to my init.el, but nothing happened. I'm not at all proficient in >> emacs-lisp so my syntax may be wrong. The manual also says I can set [ >> html5-fancy ] in an options line. I'm not really sure how to do this. I >> tried [ #+OPTIONS html5-fancy: t ] but it didn't do anything. >> >> 1. How can I export to 'html5' instead of 'xhtml-strict' in org version >> 7.9.3f and Emacs version 24.3.1? >> 2. Is there any way I can view and customize the back-end that parses >> the org file to produce the html? >> > > I believe you need to upgrade your org to version 8 for (setq > org-html-html5-fancy t) to work. Also, the variable that really controls this is 'org-html-doctype, which you set to html5. 'org-html-html5-fancy just controls whether or not, when you're exporting to html5, Org will try to use some of the new element types from the html5 spec. Eric