emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: BernardH <gmane.emacs.orgmode@bernard-hugueney.org>
To: emacs-orgmode@gnu.org
Subject: Unicode characters export from babel code blocks ?
Date: Fri, 18 May 2012 18:40:14 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120518T195949-872@post.gmane.org> (raw)

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

                 reply	other threads:[~2012-05-18 18:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20120518T195949-872@post.gmane.org \
    --to=gmane.emacs.orgmode@bernard-hugueney.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).