[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Babel, Python and UTF-8
From: |
Sébastien Vauban |
Subject: |
[Orgmode] Re: Babel, Python and UTF-8 |
Date: |
Fri, 03 Dec 2010 12:27:55 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt) |
Hi Vincent,
Vincent Beffara wrote:
> "preamble" sounds fine (and it would be excellent to allow for a code
> block as a preamble, instead of a string in the header or as an
> alternative, because preambles once they are allowed tend to grow
> uncontrollably ;->)
If you want a bigger preamble, just use noweb expansion:
#+begin_src python :noweb yes
<<preamble>>
...
my code
...
#+end_src
and have somewhere:
#+srcname: preamble
#+begin_src python
-*- coding-system: utf-8 -*-
...
rest of my preamble
...
#+end_src
Best regards,
Seb
--
Sébastien Vauban
- [Orgmode] Re: Babel, Python and UTF-8, (continued)
- [Orgmode] Re: Babel, Python and UTF-8, Vincent Beffara, 2010/12/01
- Re: [Orgmode] Re: Babel, Python and UTF-8, Eric Schulte, 2010/12/02
- [Orgmode] Re: Babel, Python and UTF-8, Vincent Beffara, 2010/12/02
- [Orgmode] Re: Babel, Python and UTF-8, Dan Davison, 2010/12/02
- [Orgmode] Re: Babel, Python and UTF-8, Eric Schulte, 2010/12/02
- [Orgmode] Re: Babel, Python and UTF-8, Sébastien Vauban, 2010/12/02
- [Orgmode] Re: Babel, Python and UTF-8, Sébastien Vauban, 2010/12/02
- Re: [Orgmode] Re: Babel, Python and UTF-8, Eric Schulte, 2010/12/02
- [Orgmode] Re: Babel, Python and UTF-8, Sébastien Vauban, 2010/12/02
- [Orgmode] Re: Babel, Python and UTF-8, Vincent Beffara, 2010/12/03
- [Orgmode] Re: Babel, Python and UTF-8,
Sébastien Vauban <=
- Re: [Orgmode] Re: Babel, Python and UTF-8, Eric Schulte, 2010/12/03
- [Orgmode] Re: Babel, Python and UTF-8, Vincent Beffara, 2010/12/03
- Re: [Orgmode] Re: Babel, Python and UTF-8, Eric Schulte, 2010/12/05
- [Orgmode] Re: Babel, Python and UTF-8, Dan Davison, 2010/12/06
- Re: [Orgmode] Re: Babel, Python and UTF-8, Eric S Fraga, 2010/12/06
- Re: [Orgmode] Re: Babel, Python and UTF-8, Thomas S. Dye, 2010/12/06
- [Orgmode] Re: Babel, Python and UTF-8, Achim Gratz, 2010/12/06
- Re: [Orgmode] Re: Babel, Python and UTF-8, Thomas S. Dye, 2010/12/06
- [Orgmode] Re: Babel, Python and UTF-8, Dan Davison, 2010/12/06
- [Orgmode] Re: Babel, Python and UTF-8, Sébastien Vauban, 2010/12/02