From: Diogo Ramos <dfsr@riseup.net>
To: emacs-orgmode@gnu.org
Subject: How do I format numbers to an exported table to latex, produced by a code block?
Date: Sat, 27 Feb 2016 19:44:45 -0300 [thread overview]
Message-ID: <87d1rhvkma.fsf@riseup.net> (raw)
I have the following org file:
--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC python :exports both
import numpy as np
return np.matrix([[.123456789, 2], [3, 4]])
#+END_SRC
#+RESULTS:
| 0.12345679 | 2 |
| 3 | 4 |
--8<---------------cut here---------------end--------------->8---
I want to export it to latex to produce a pdf but I want to format the
numbers of the table so I get, say
| 123.456e-3 | 2.000 |
| 3.000 | 4.000 |
on the exported pdf.
How can I do it?
next reply other threads:[~2016-02-27 22:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-27 22:44 Diogo Ramos [this message]
2016-02-28 11:51 ` How do I format numbers to an exported table to latex, produced by a code block? Rasmus
2016-02-28 23:55 ` Diogo Ramos
2016-02-29 17:32 ` John Kitchin
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=87d1rhvkma.fsf@riseup.net \
--to=dfsr@riseup.net \
--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).