emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thierry Banel <tbanelwebmin@free.fr>
To: emacs-orgmode@gnu.org
Subject: Re: text-only plots
Date: Mon, 9 Dec 2013 22:48:22 +0000 (UTC)	[thread overview]
Message-ID: <loom.20131209T232727-687@post.gmane.org> (raw)
In-Reply-To: F4371A10-8436-4327-A6DC-5666F41D3C47@gmail.com

Ivan Andrus <darthandrus <at> gmail.com> writes:

> 
> On Dec 9, 2013, at 5:19 AM, Suvayu Ali <fatkasuvayu+linux <at> gmail.com>
wrote:
> > Technically speaking, it is not exported as a table since you put it as
> > part of example block.  However a quick test tells me, html export will
> > work fine (screenshot attached).  However LaTeX export is an entirely
> > different story.  Unicode support in normal pdflatex is quite
> > non-trivial.  If you use XeLaTeX, I think you could get it to work with
> > some appropriate choice of fonts.  I tried libertine and dejavu without
> > any luck.
> 
> Would it be possible to export it to \rule when using LaTeX?  It wouldn't
be text then and you couldn't copy it,
> but it should work with any TeX engine regardless of fonts etc.  Just a
thought.
> 
> -Ivan
> 
> 

Right, Suvayu, Unicodes are not universally supported.
So, what about coming back to basics ?
Just Ascii like that:

|  x |    sin(x/4) | Ascii        |
|----+-------------+--------------|
|  0 |           0 | WWWWWh       |
|  1 |  0.32719470 | WWWWWWWV     |
|  2 |  0.61836980 | WWWWWWWWWl   |
|  3 |  0.84147098 | WWWWWWWWWWW  |
|  4 |  0.97193790 | WWWWWWWWWWWV |
|  5 |  0.99540796 | WWWWWWWWWWWW |
|  6 |  0.90929743 | WWWWWWWWWWW; |
|  7 |  0.72308588 | WWWWWWWWWW-  |
|  8 |  0.45727263 | WWWWWWWWl    |
|  9 |  0.14112001 | WWWWWWl      |
| 10 | -0.19056796 | WWWWl        |
| 11 | -0.50127705 | WWl          |
| 12 | -0.75680250 | W            |
#+TBLFM: $3='(orgtbl-ascii-draw $2 -0.9290145 0.99540796 12)

We remove Unicodes until someone comes with an idea.

Ivan, the LaTex \rule might be a (pretty) solution for the LaTex exporter.
But then we should also take care of all past and future exporters...

Thierry

  reply	other threads:[~2013-12-09 22:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-07 19:48 text-only plots Thierry Banel
2013-12-08 11:00 ` Suvayu Ali
2013-12-08 11:27 ` Michael Brand
2013-12-08 12:28   ` Michael Brand
2013-12-08 12:58     ` Thierry Banel
2013-12-08 17:43       ` Thierry Banel
2013-12-08 19:48         ` Carsten Dominik
2013-12-08 23:10           ` Thierry Banel
2013-12-09 12:19             ` Suvayu Ali
2013-12-09 14:30               ` Ivan Andrus
2013-12-09 22:48                 ` Thierry Banel [this message]
2013-12-09 23:55                   ` Suvayu Ali
2013-12-10 22:24                     ` Thierry Banel
2013-12-08 22:16         ` Michael Brand
2013-12-08 23:15           ` Thierry Banel
2013-12-08 13:34   ` Achim Gratz

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.20131209T232727-687@post.gmane.org \
    --to=tbanelwebmin@free.fr \
    --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).