emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Unicode characters export from babel code blocks ?
@ 2012-05-18 18:40 BernardH
  0 siblings, 0 replies; only message in thread
From: BernardH @ 2012-05-18 18:40 UTC (permalink / raw)
  To: emacs-orgmode

Hi, In some literate program, I'd like to generate a data file. I do
it with a shell here-document (is there a better way just to inline
some text to tangle in a file?).  It works when tangling but not when
exporting to the pdf. Because there is a catch : I wanted to use
unicode \25A0 ■ and \25A1 □ instead of '#' and ' '. With
#+LATEX_HEADER: \usepackage{xltxtra} 
#+LATEX_HEADER: \setmainfont{DejaVu Serif} 
I can get the squares in the rgular text,
however, the exported code remains blank where the squares should be
☹.


Any help greatly appreciated !
Best Regards (and thx for the great ord-mode !)

Bernard

PS: excerpt from my babel code below
…
Using =\25A0= aka «black square» (■) and =\25A1= aka «white square» (□) to
represent the wall and empty spaces of the maze.

#+begin_src sh :file maze.txt :exports code :tangle yes
cat - <<END
□□□□□□□□□
□■■□□□■■□
□□□□□□□□□
□□□■□■□□□
□□□■□■□□□
□□□■■■□□□
□□□□□□□□□
□■■□□□■■□
□□□□□□□□□
END
#+end_src
…

the pdf does not containanything

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-18 18:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-18 18:40 Unicode characters export from babel code blocks ? BernardH

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).