[Orgmode] Backslash in a table breaks export to Docbook

2010-11-18 Thread Nigel Beck
I have a variety of org docs that tend to get infected with latex over
time.  Occasionally I'll export them to other formats, with different
kinds of cleanup.  Along the way I noticed this...  Create the following
doc:

* Change History

| \rowcolor[gray]{.8}Updated By | Date | Changes Made |
|---+--+--|
| / |||
| Check | Nov 18, 2010 | Test |


Export to docbook via C-c C-e D

Get Invalid use of '\' in replacement text

The above is the minimum set to reproduce it  - obviously the first doc
had all the relevant latex includes to make rowcolor[gray] actually work


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-babel-gnuplot broken today?

2010-10-27 Thread Nigel Beck
Thanks all - problem gone over here too! (Tested in a few other
permutations on the original convoluted doc that I hit the error in). 

Btw on the latest pull I get an error on the make doc part

(cd doc; makeinfo --html --number-sections --no-split -o org.html org.texi)
org.texi:1330: Unknown command `Vindex'.
makeinfo: Removing output file `org.html' due to errors; use --force to 
preserve.
*** Error code 1

Stop in /home/nigel/Installation/org-mode (line 245 of Makefile).


I'll move to another post if its unrelated to this commit; just thought
that if it was introduced somehow in this fix, perhaps its easiest to
address here.

Thanks again!

Nick Dokos nicholas.do...@hp.com writes:

 Eric Schulte schulte.e...@gmail.com wrote:

 It seems there are *two* ways to pass variables into gnuplot.  One uses
 user variables [1], and the other directly replaces variables in the
 code block [2].  You've been using the former, and I've been using the
 latter.  The bug only existed in the former, but I believe I've now
 fixed that issue, and in fact I think I'll start using user variables as
 in your example below.
 
 Please let me know if the problem persists after a fresh pull of the
 repository.
 

 Problem gone with Nigel's (actually John's, iiuc) original example. I didn't
 try your examples, but somehow I'm pretty sure that those will work
 too!

 Thanks,
 Nick

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


-- 
Nigel Beck
http://www.nigelbeck.com
+1-323-NDUGU-ME (323-638-4863)

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-babel-gnuplot broken today?

2010-10-26 Thread Nigel Beck
I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
plot anymore: data from a table within the org file is no longer
digested nicely by gnuplot.

To test, I used the snippet below from the worg
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php:


** Data Table Plot

Plotting data points from a table could look like this:
#+tblname: basic-plot
|   x | y1 | y2 |
|-++|
| 0.1 |  0.425 |  0.375 |
| 0.2 | 0.3125 | 0.3375 |
| 0.3 | 0.2493 | 0.2838 |
| 0.4 |  0.275 |0.28125 |
| 0.5 |   0.26 |   0.27 |
| 0.6 | 0.2588 | 0.2493 |
| 0.7 | 0.24642845 | 0.23928553 |
| 0.8 |0.23125 | 0.2375 |
| 0.9 | 0.2323 |  0.232 |
|   1 | 0.2225 |   0.22 |

#+begin_src gnuplot :var data=basic-plot :exports code :file basic-plot.png
set title Putting it All Together

set xlabel X
set xrange [0:1]
set xtics 0,0.1,1


set ylabel Y
set yrange [0.2:0.5]
set ytics 0.2,0.05,0.5


plot data u 1:2 w p lw 2 title 'x vs. y1', \
 data u 1:3 w lp lw 1 title 'x vx. y2'
#+end_src

#+results:
[[file:basic-plot.png]]



Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
 level 1) complains:

gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \
 data u 1:3 w lp lw 1 title 'x vx. y2'
 warning: Skipping unreadable file ((0.1 0.425 0.375) (0.2
 0.3125 0.3375)
 (0.3 0.2493 0.2838) (0.4 0.275 0.28125) (0.5 0.26 0.27) (0.6
 0.2588 0.2493) (0.7 0.24642845 0.23928553) (0.8 0.23125 0.2375)
 (0.9 0.2323 0.232) (1 0.2225 0.22))
 warning: Skipping unreadable file ((0.1 0.425 0.375) (0.2
 0.3125 0.3375) 
(0.3 0.2493 0.2838) (0.4 0.275 0.28125) (0.5 0.26 0.27) (0.6
0.2588 0.2493) (0.7 0.24642845 0.23928553) (0.8 0.23125 0.2375)
(0.9 0.2323 
0.232) (1 0.2225 0.22))
 No data in plot


So of course no basic-plot.png is created

As far as I know, my gnuplots were happy sometime within the past week
refreshing org-mode from git basically daily...


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-babel-gnuplot broken today?

2010-10-26 Thread Nigel Beck
John - thanks for the quick reply (and, btw, the very useful tutorial).

I ought to have noted that the example works fine when invoked directly
from the command line, with the only change being that I move the data
into a file (mainly because I don't know the correct gnuplot syntax for
putting table data into a variable!).

I haven't updated gnuplot since installing it, so I believe the org-mode
- gnuplot unfriendliness lies in some effect that a recent pull of
7.01trans has had. (I did updated emacs-w3m from cvs the other day, so I
suppose thats another possible source of error, but it seems unlikely).

I agree that it appears that the table data being handed to gnuplot
from org-mode is somehow being formatted in a way that gnuplot does not 
understand.

John Hendy jw.he...@gmail.com writes:

 On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck m...@nigelbeck.com wrote:

 I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
 plot anymore: data from a table within the org file is no longer
 digested nicely by gnuplot.

 That's odd. I wrote the tutorial and thus my heart skipped a beat for a 
 moment!
  

 To test, I used the snippet below from the worg
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php:

 ** Data Table Plot

 Plotting data points from a table could look like this:
 #+tblname: basic-plot

  8 
  

 Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
  level 1) complains:

 gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \

  8 
  

         No data in plot

 So of course no basic-plot.png is created

 As far as I know, my gnuplots were happy sometime within the past week
 refreshing org-mode from git basically daily...

 That's odd indeed. I copied and pasted your exact table and code from the 
 email and was able to generate the plot. The error is
 quite odd. It almost makes me wonder if something is different about how 
 gnuplot is receiving the data. Like a syntax error or
 something. I would say that at this point it's not the table or code, per se, 
 since I can generate the plot. Hopefully someone will
 chime in with more experience who may have seen this error?

 One thing to try in the meantime... Gather up some gnuplot test data file and 
 try to run it from the command line perhaps? It would
 at least be one way to see if it's working outside of org-mode?

 Best regards,
 John
  

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Nigel Beck
http://www.nigelbeck.com
+1-323-NDUGU-ME (323-638-4863)

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: org-babel-gnuplot broken today?

2010-10-26 Thread Nigel Beck
Eric - thanks.  I'm using 4.4 as well.  Up until today, the gnuplot code
blocks using data from org-mode tables worked fine.  As of today, the
data from the org-mode tables appears to come through to gnuplot in a
format that gnuplot cannot understand.   I guessing thats why gnuplot is
complaining that data, the variable containing the data from the
org-mode table, is a bad file.  Running the aforementioned example
from the worg, the *gnuplot* output is

gnuplot data = ((0.1 0.425 0.375) (0.2 0.3125 0.3375) (0.3 0.2493
 0.2838) (0.4 0.275 0.28125) (0.5 0.26 0.27) (0.6 0.2588
 0.2493) (0.7 0.24642845 0.23928553) (0.8 0.23125 0.2375) (0.9 
 0.2323 0.232) (1 0.2225 0.22))
gnuplot set term png
Terminal type set to 'pngcairo'
Options are ' size 640, 480 '
gnuplot set output basic-plot.png
gnuplot set title Putting it All Together
gnuplot 
gnuplot set xlabel X
gnuplot set xrange [0:1]
gnuplot set xtics 0,0.1,1
gnuplot 
gnuplot 
gnuplot set ylabel Y
gnuplot set yrange [0.2:0.5]
gnuplot set ytics 0.2,0.05,0.5
gnuplot 
gnuplot 
gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \
 data u 1:3 w lp lw 1 title 'x vx. y2'
 warning: Skipping unreadable file ((0.1 0.425 0.375) (0.2
 0.3125 0.3375) (0.3 0.2493 0.2838) (0.4 0.275 
 0.28125) (0.5 0.26 0.27) (0.6 0.2588 0.2493) (0.7 
 0.24642845 0.23928553) (0.8 0.23125 0.2375) (0.9 0.2323 
 0.232) (1 0.2225 0.22))
 warning: Skipping unreadable file ((0.1 0.425 0.375) (0.2 
 0.3125 0.3375) (0.3 0.2493 0.2838) (0.4 0.275 0.28125) 
 (0.5 0.26 0.27) (0.6 0.2588 0.2493) (0.7 0.24642845 
 0.23928553) (0.8 0.23125 0.2375) (0.9 0.2323 0.232) 
 (1 0.2225 0.22))
 No data in plot


I've not regenerated the plots for a few days - maybe a week - so I
cannot be confident that only something today broke this. I'm fairly
confident that only org-mode (and as aforementioned emacs-w3m) have
changed in my emacs setup.


Eric Schulte schulte.e...@gmail.com writes:

 Hi Nigel,

 Org-mode gnuplot code blocks do make use of user variables [1] for
 passing arguments into gnuplot.  I believe that this feature may only be
 available in later versions of gnuplot.  I'm using gnuplot 4.4 locally
 and I've had no problems using gnuplot from Org-mode code blocks which I
 do most every day.

 the syntax for defining variables is fairly simple, try the following
 directly in the gnuplot terminal, if your gnuplot does have variable
 support it should graph a straight line of y=10
 #+begin_src gnuplot
   a=10
   plot a
 #+end_src

 Best -- Eric

 Nigel Beck m...@nigelbeck.com writes:

 John - thanks for the quick reply (and, btw, the very useful tutorial).

 I ought to have noted that the example works fine when invoked directly
 from the command line, with the only change being that I move the data
 into a file (mainly because I don't know the correct gnuplot syntax for
 putting table data into a variable!).

 I haven't updated gnuplot since installing it, so I believe the org-mode
 - gnuplot unfriendliness lies in some effect that a recent pull of
 7.01trans has had. (I did updated emacs-w3m from cvs the other day, so I
 suppose thats another possible source of error, but it seems unlikely).

 I agree that it appears that the table data being handed to gnuplot
 from org-mode is somehow being formatted in a way that gnuplot does not 
 understand.

 John Hendy jw.he...@gmail.com writes:

 On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck m...@nigelbeck.com wrote:

 I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
 plot anymore: data from a table within the org file is no longer
 digested nicely by gnuplot.

 That's odd. I wrote the tutorial and thus my heart skipped a beat for a 
 moment!
  

 To test, I used the snippet below from the worg
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php:

 ** Data Table Plot

 Plotting data points from a table could look like this:
 #+tblname: basic-plot

  8 
  

 Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
  level 1) complains:

 gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \

  8 
  

         No data in plot

 So of course no basic-plot.png is created

 As far as I know, my gnuplots were happy sometime within the past week
 refreshing org-mode from git basically daily...

 That's odd indeed. I copied and pasted your exact table and code from the 
 email and was able to generate the plot. The error is
 quite odd. It almost makes me wonder if something is different about how 
 gnuplot is receiving the data. Like a syntax error or
 something. I would say that at this point it's not the table or code, per 
 se, since I can generate the plot. Hopefully someone will
 chime in with more experience who may have seen this error?

 One thing to try

[Orgmode] Re: orgtbl mode puzzle

2010-10-18 Thread Nigel Beck
Carsten - thanks for the reply.  I had thought of using radio tables to
splice in the table details while putting some nice handiwork around the
table column headers (for example, having a column header span multiple
columns in the final draft(s) of a doc).

Is there an alternative approach you'd recommend?  I understand the
notion is to avoid infecting org-mode docs overly much with the
details of different export targets; at the same time, as a doc moves to
final draft at times such things appear unavoiding to get the desired layout.


Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Nigel,

 radio tables and list are not supposed to work in org-mode,
 only in other buffers with orgtbl-mode (for tables) and
 orgstruct-mode (for lists) activated.

 Things work OK for tables, but there is a new bug in the list part.
 I have asked Nicolas to take a look.

 - Carsten

 On Oct 15, 2010, at 12:44 PM, Nigel Beck wrote:

 I'm not sure if I'm understanding orgtbl mode correctly per
 http://orgmode.org/manual/Tables-in-arbitrary-syntax.html#Tables-in-arbitrary-syntax
 ,
 but here is my experience (using the latest code from git).

 1) Make something.org, cut and paste in the table from the latex
 example
 http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example, hit
 C-c
 C-c = nothing happens
 2) Make something.txt, do M-x orgtbl-mode, cut and paste in the table
 from the latex example, hit C-c C-c = latex table is inserted.
 3) Make something.org, cut and paste a list from the list example
 http://orgmode.org/manual/Radio-lists.html#Radio-lists, hit C-c C-c =
 latex list is inserted.
 4) Make something.txt, do M-x orgtbl-mode, cut and paste in the list
 example, hit C-c C-c = wrong type argument: commandp, nil

 So I get: tables work, but only with minor mode orgtbl-mode and not
 in org-mode.
 Lists work, but only in orgmode and not with minor mode orgtbl-mode.

 Is this as intended?  Or, does it even work this way for anyone else?


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


-- 
Nigel Beck
http://www.nigelbeck.com
+1-323-NDUGU-ME (323-638-4863)

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] orgtbl mode puzzle

2010-10-15 Thread Nigel Beck
I'm not sure if I'm understanding orgtbl mode correctly per
http://orgmode.org/manual/Tables-in-arbitrary-syntax.html#Tables-in-arbitrary-syntax,
but here is my experience (using the latest code from git).

1) Make something.org, cut and paste in the table from the latex example
http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example, hit C-c
C-c = nothing happens
2) Make something.txt, do M-x orgtbl-mode, cut and paste in the table
from the latex example, hit C-c C-c = latex table is inserted.
3) Make something.org, cut and paste a list from the list example
http://orgmode.org/manual/Radio-lists.html#Radio-lists, hit C-c C-c =
latex list is inserted.
4) Make something.txt, do M-x orgtbl-mode, cut and paste in the list
example, hit C-c C-c = wrong type argument: commandp, nil

So I get: tables work, but only with minor mode orgtbl-mode and not in org-mode.
Lists work, but only in orgmode and not with minor mode orgtbl-mode.

Is this as intended?  Or, does it even work this way for anyone else?


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode