Re: bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week

2022-01-22 Thread Peter Davis
Hello,

Please unsubscribe my husband Peter Davis from this list.  He died 3 years ago.

Thanks,
Donna Cantera-Davis

On Thu, Jan 20, 2022, at 9:07 PM, bruce robertson wrote:
> Thanks. I’ll do that. Org-submit … that is. 
> 
> On Thu, Jan 20, 2022 at 5:35 PM Kyle Meyer  wrote:
>> [ I've reassigned this bug report so that new messages will be directed
>>   to the Org mailing list, where it's more likely to get a reply.  In
>>   the future, please consider using org-submit-bug-report or sending a
>>   message to emacs-orgmode@gnu.org directly. ]
>> 
>> Bruce E. Robertson writes:
>> 
>> > emacs -Q test.org
>> > cursor to "CLOCK:" line, C-c C-c
>> > total time updates but day of week does not change
>> > contents of test.org
>> > --
>> > * heading
>> > :LOGBOOK:
>> > CLOCK: [2022-01-17 Tue 10:29]--[2022-01-19 Tue 10:29] => 48:00
>> > :END:
>> > --
>> > typing C-c C-c does update total log time for line and recently did
>> > update the day of the week but no long does
>> 
>> I'm having trouble finding an Org version where it will update a
>> timestamp _within_ a clock line.  I tried it out with v9.1 and the day
>> of the week still isn't updated.  Outside of that context it will, as
>> org-ctrl-c-ctrl-c-hook gets through to its timestamp condition rather
>> than taking the clock branch.
>> 
>> If you can provide more details about a version where it did work,
>> showing it's a regression, I think you'll have a higher chance of
>> getting this fixed.
>> 
>> Anyway, at least for now, perhaps you could try something like this to
>> get the behavior you want:
>> 
>>   (defun my/update-clock-and-days ()
>> (when (eq (org-element-type (org-element-context)) 'clock)
>>   (let ((re (org-re-timestamp 'inactive)))
>> (save-excursion
>>   (goto-char (line-beginning-position))
>>   (while (re-search-forward re (line-end-position) t)
>> (backward-char)
>> (org-timestamp-change 0 'day))
>> 
>>   (add-hook 'org-ctrl-c-ctrl-c-hook #'my/update-clock-and-days)
>> 
>> With that, hitting `C-c C-c` on the clock line at
>> 
>> --8<---cut here---start->8---
>> * heading
>> :LOGBOOK:
>> CLOCK: [2022-01-17 Thu 10:29]--[2022-01-19 Sun 10:29] => 40:00
>> :END:
>> --8<---cut here---end--->8---
>> 
>> produces
>> 
>> --8<---cut here---start->8---
>> * heading
>> :LOGBOOK:
>> CLOCK: [2022-01-17 Mon 10:29]--[2022-01-19 Wed 10:29] => 48:00
>> :END:
>> --8<---cut here---end--->8---
> -- 
> λέγει αὐτῷ Ἰησοῦς Ἐγώ εἰμι ἡ ὁδὸς καὶ ἡ ἀλήθεια καὶ ἡ ζωή· οὐδεὶς ἔρχεται 
> πρὸς τὸν Πατέρα εἰ μὴ δι' ἐμοῦ. ΚΑΤΑ ΙΩΑΝΝΗΝ

--
  Peter Davis
  www.techcurmudgeon.com

Re: [O] Editing in two columns

2018-02-25 Thread Peter Davis

On Sat, Feb 24, 2018, at 7:26 PM, Peter Davis wrote:
> 
> On Sat, Feb 24, 2018, at 7:18 PM, Peter Neilson wrote:
> > On Sat, 24 Feb 2018 19:01:25 -0500, Peter Davis <p...@pfdstudio.com>
> > wrote:> >
> > > Is there a way to edit with two columns displayed so I’m only
> > > editing> > > and exporting the right hand column?
> > > I’m writing a parody of a poem, and I’d like to have the original
> > > in the> > > left column for reference, to make sure the rhyme scheme, 
> > > meters,
> > > etc.> > > match, but then I just want to export the right column to html.
> > > Thanks,
> > > -pd
> > >
> >
> > Have you tried ^X3 ? That's split-window-right . It'll go to one
> > column> > while it queries you during export, but exports only your current
> > window.> >
> 
> I haven’t tried it, but it sounds perfect. Thanks!

Works beautifully! I don’t know how I overlooked this. I used this all
the time to look at multiple files (usually with 4 windows open) when I
was writing code. In fact, I could really keep the reference in a
separate file for simplicity.
Thanks!

--
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Editing in two columns

2018-02-24 Thread Peter Davis

On Sat, Feb 24, 2018, at 7:18 PM, Peter Neilson wrote:
> On Sat, 24 Feb 2018 19:01:25 -0500, Peter Davis
> <p...@pfdstudio.com> wrote:>
> > Is there a way to edit with two columns displayed so I’m only
> > editing> > and exporting the right hand column?
> > I’m writing a parody of a poem, and I’d like to have the original
> > in the> > left column for reference, to make sure the rhyme scheme,
> > meters, etc.> > match, but then I just want to export the right column to 
> > html.
> > Thanks,
> > -pd
> >
>
> Have you tried ^X3 ? That's split-window-right . It'll go to
> one column> while it queries you during export, but exports only your
> current window.>

I haven’t tried it, but it sounds perfect. Thanks!

-pd

--
  Peter Davis
  www.techcurmudgeon.com



[O] Editing in two columns

2018-02-24 Thread Peter Davis
Is there a way to edit with two columns displayed so I’m only editing
and exporting the right hand column?
I’m writing a parody of a poem, and I’d like to have the original in the
left column for reference, to make sure the rhyme scheme, meters, etc.
match, but then I just want to export the right column to html.
Thanks,
-pd


--
  Peter Davis
  www.techcurmudgeon.com



Re: [O] BeOrg

2018-01-02 Thread Peter Davis

On Tue, Jan 2, 2018, at 3:43 PM, Nicolas Goaziou wrote:
>
> I think you are missing the point. Free software is primarily about
> source code (the four definitions).

I’m not well versed in the theories and arguments for or against free or
open source software. However, based on my 40 years of experience as a
software developer and UI designer, I would say ALL software, free or
otherwise, is about usability and usefulness. Otherwise, there’s no
reason for that software to exist.
If we refuse to provide useful information just because it violates some
purist idea of what is or is not acceptably unencumbered, then we’re
just denying users potential helpful capabilities that may make the
difference between using org-mode or abandoning it completely in favor
of some commercial, cross-platform solution.
--
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-05 Thread Peter Davis

On Thu, Oct 5, 2017, at 10:39 AM, Nicolas Goaziou wrote:
> Hello,
> 
> Peter Davis <p...@pfdstudio.com> writes:
> 
> > On Wed, Oct 4, 2017, at 01:36 AM, Eric S Fraga wrote:
> >> On Tuesday,  3 Oct 2017 at 15:28, Peter Davis wrote:
> >> > Yup. I deleted the source block and the results line, and now export to
> >> > HTML and PDF works with no problems.
> >> 
> >> Please post the complete file (t.org?) to this list.
> >
> > Ok. The original (t.org) is exactly what you posted a few days ago. This
> > fails to export HTML. ("Wrong type argument")
> 
> As another data point, I cannot reproduce the error with "t.org".

Thanks. It seems I have two problems:

1) Something in my emacs/org setup is causing this to fail outright,
with a "wrong type parameter" error. If I run in a shell window with no
init files, I don't get that error.

2) Something is preventing gnuplot from working. Even when I can
successfully export to HTML or PDF, I don't get any graph.

Thanks,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-04 Thread Peter Davis

> On Oct 4, 2017, at 8:48 AM, Eric S Fraga <esfli...@gmail.com> wrote:
> 
> On Wednesday,  4 Oct 2017 at 07:49, Peter Davis wrote:
> 
> [...]
> 
>> By the way, I just re-installed Org from the package manager, so I'm now
>> at
>> 
>> Org mode version 9.1.1 (9.1.1-17-g24ea1b-elpa @
>> /Users/peterdavis/.emacs.d/elpa/org-20171002/)
>> 
>> I was hoping this would fix any possible installation inconsistency
>> problems. Is there a better way to do this?
> 
> It's not so much which version has been installed but whether you are
> picking up this version as opposed to the one built-in to Emacs.  You
> have to make sure this version is picked up when org is loaded.  Do you
> have any org related aspects in your initialisation that may be invoked
> before Emacs is told about the new version?



I tried running emacs in a shell window with no initialization file, and t.org 
<http://t.org/> *did* export HTML, and PDF (although I *still* don’t get the 
graph).

So yes, I guess there’s something in my init file that’s messing this up.

Chances of finding it in my lifetime: near zero.

Meanwhile, I have discovered a Google charting function which gives me an 
annotated time series graph that comes very close to what I need. Also, I’ve 
had no problems exporting many other documents to HTML and/or PDF. So I’m 
afraid solving this has dropped on my priority list.

Thank you all for your help,

-pd



Re: [O] Trying to get chart from table working

2017-10-04 Thread Peter Davis

On Wed, Oct 4, 2017, at 07:24 AM, Peter Davis wrote:
> 
> On Wed, Oct 4, 2017, at 01:36 AM, Eric S Fraga wrote:
> > On Tuesday,  3 Oct 2017 at 15:28, Peter Davis wrote:
> > > Yup. I deleted the source block and the results line, and now export to
> > > HTML and PDF works with no problems.
> > 
> > Please post the complete file (t.org?) to this list.
> 
> Ok. The original (t.org) is exactly what you posted a few days ago. This
> fails to export HTML. ("Wrong type argument")
> 
> The other file (t2.org) has the empty table cells filled in, and has the
> SRC and RESULTS blocks removed. This exports to HTML or PDF with no
> problem.
> 

By the way, I just re-installed Org from the package manager, so I'm now
at

Org mode version 9.1.1 (9.1.1-17-g24ea1b-elpa @
/Users/peterdavis/.emacs.d/elpa/org-20171002/)

I was hoping this would fix any possible installation inconsistency
problems. Is there a better way to do this?

Thanks,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-04 Thread Peter Davis

On Wed, Oct 4, 2017, at 01:36 AM, Eric S Fraga wrote:
> On Tuesday,  3 Oct 2017 at 15:28, Peter Davis wrote:
> > Yup. I deleted the source block and the results line, and now export to
> > HTML and PDF works with no problems.
> 
> Please post the complete file (t.org?) to this list.

Ok. The original (t.org) is exactly what you posted a few days ago. This
fails to export HTML. ("Wrong type argument")

The other file (t2.org) has the empty table cells filled in, and has the
SRC and RESULTS blocks removed. This exports to HTML or PDF with no
problem.

Thanks,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com


t2.org
Description: Binary data


t.org
Description: Binary data


Re: [O] Trying to get chart from table working

2017-10-03 Thread Peter Davis

On Tue, Oct 3, 2017, at 01:23 PM, Nick Dokos wrote:
> Peter Davis <p...@pfdstudio.com> writes:
>
> > On Tue, Oct 3, 2017, at 10:37 AM, Nick Dokos wrote:
> >>
> >> can you export *anything* to html? Or maybe export anything with
> >> a table that includes a date? The backtrace seems to implicate this> >> 
> >> latter scenario.
> >>
> >> This seems like a more generic error in the export engine and since> >> 
> >> nobody else sees it (afaik), I tend to agree with Eric F. that it
> >> might be your installation that is at fault.
> >
> > Yes, I can export to both HTML and LaTeX/PDF, including tables with> > 
> > dates, etc.  However, the document Eric sent, t.org, gives me
> > the same> > 'wrong type argument' error. I'm assuming this is due to the 
> > gnuplot> > instruction block in the document.
> >
>
> So if you delete the source block from t.org, you can export the file> with 
> no problems, correct?

Yup. I deleted the source block and the results line, and now export to
HTML and PDF works with no problems.
--
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-03 Thread Peter Davis

On Tue, Oct 3, 2017, at 10:37 AM, Nick Dokos wrote:
> Peter Davis <p...@pfdstudio.com> writes:
> 
> > On Mon, Oct 2, 2017, at 11:37 AM, Eric S Fraga wrote:
> >> On Monday,  2 Oct 2017 at 10:24, Peter Davis wrote:
> >> 
> >> [...]
> >> 
> >> > I added (gnuplot . t) to my org-babel-load-languages, and now I'm back
> >> > to
> >> >
> >> > Wrong type argument: arrayp, nil
> >> 
> >> Very strange.  Try M-x toggle-debug-on-error RET and then post a
> >> backtrace?
> >
> > Attached.
> >
> >> Also maybe post your complete example.
> >
> > I'm using the same t.org file you sent a couple of days ago.
> >
> >> What versions of gnuplot and org do you have installed?
> >
> > Gnuplot says it's V5.2, patchlevel 0
> > Org version is 9.0.9
> >
> > By the way, I tried filling in a tint value in the first row, and a PSA
> > value for the middle row, but got the same error.
> >
> 
> Peter,
> 
> can you export *anything* to html? Or maybe export anything with
> a table that includes a date? The backtrace seems to implicate this
> latter scenario.
> 
> This seems like a more generic error in the export engine and since
> nobody else sees it (afaik), I tend to agree with Eric F. that it
> might be your installation that is at fault.

Yes, I can export to both HTML and LaTeX/PDF, including tables with
dates, etc.  However, the document Eric sent, t.org, gives me the same
'wrong type argument' error. I'm assuming this is due to the gnuplot
instruction block in the document.

Thank you,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-02 Thread Peter Davis

On Mon, Oct 2, 2017, at 11:37 AM, Eric S Fraga wrote:
> On Monday,  2 Oct 2017 at 10:24, Peter Davis wrote:
> 
> [...]
> 
> > I added (gnuplot . t) to my org-babel-load-languages, and now I'm back
> > to
> >
> > Wrong type argument: arrayp, nil
> 
> Very strange.  Try M-x toggle-debug-on-error RET and then post a
> backtrace?

Attached.

> Also maybe post your complete example.

I'm using the same t.org file you sent a couple of days ago.

> What versions of gnuplot and org do you have installed?

Gnuplot says it's V5.2, patchlevel 0
Org version is 9.0.9

By the way, I tried filling in a tint value in the first row, and a PSA
value for the middle row, but got the same error.

Thanks!
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  org-export-get-all-transcoders([cl-struct-org-export-backend nil org ((table 
lambda (table contents info) (concat nil contents nil)) (table-row lambda (row 
contents info) (if (eq (org-element-property :type row) (quote rule)) nil (let 
((headerp (org-export-table-row-in-header-p row info)) (lastp (not ...)) 
(last-header-p (org-export-table-row-ends-header-p row info))) (when contents 
(cond nil nil nil (t ...)) (table-cell lambda (cell contents info) (let 
((headerp (org-export-table-row-in-header-p (org-export-get-parent-element 
cell) info)) (column (1+ (cdr ... nil (when contents nil (cond nil (t (setq 
contents ... (if (or nil (plist-get info :orgtbl-ignore-sep) (not 
(org-export-get-next-element cell info))) contents (concat contents "  " 
(macro lambda (m c i) (org-element-macro-interpreter m nil))) nil nil nil nil])
  org-export-data-with-backend((table (:begin 1 :end 78 :type org :tblfm nil 
:contents-begin 1 :contents-end 78 :value nil :post-blank 0 :post-affiliated 1 
:parent (section (:begin 1 :end 78 :contents-begin 1 :contents-end 78 
:post-blank 0 :post-affiliated 1 :parent (org-data nil #2)) #0)) (table-row 
(:type standard :begin 1 :end 23 :contents-begin 2 :contents-end 22 :post-blank 
0 :post-affiliated 1 :parent #0) (table-cell (:begin 2 :end 15 :contents-begin 
3 :contents-end 13 :post-blank 0 :parent #1) #("2017-08-11" 0 10 (:parent #2))) 
(table-cell (:begin 15 :end 20 :contents-begin 15 :contents-end 18 :post-blank 
0 :parent #1) #("185" 0 3 (:parent #2))) (table-cell (:begin 20 :end 22 
:contents-begin 21 :contents-end 21 :post-blank 0 :parent #1))) (table-row 
(:type standard :begin 23 :end 49 :contents-begin 24 :contents-end 48 
:post-blank 0 :post-affiliated 23 :parent #0) (table-cell (:begin 24 :end 37 
:contents-begin 25 :contents-end 35 :post-blank 0 :parent #1) #("2017-08-21" 0 
10 (:parent #2))) (table-cell (:begin 37 :end 39 :contents-begin 38 
:contents-end 38 :post-blank 0 :parent #1)) (table-cell (:begin 39 :end 48 
:contents-begin 39 :contents-end 46 :post-blank 0 :parent #1) #("#ffdd99" 0 7 
(:parent #2 (table-row (:type standard :begin 49 :end 78 :contents-begin 50 
:contents-end 77 :post-blank 0 :post-affiliated 49 :parent #0) (table-cell 
(:begin 50 :end 63 :contents-begin 51 :contents-end 61 :post-blank 0 :parent 
#1) #("2017-09-19" 0 10 (:parent #2))) (table-cell (:begin 63 :end 68 
:contents-begin 63 :contents-end 66 :post-blank 0 :parent #1) #("854" 0 3 
(:parent #2))) (table-cell (:begin 68 :end 77 :contents-begin 68 :contents-end 
75 :post-blank 0 :parent #1) #("#ffdd99" 0 7 (:parent #2) 
[cl-struct-org-export-backend nil org ((table lambda (table contents info) 
(concat nil contents nil)) (table-row lambda (row contents info) (if (eq 
(org-element-property :type row) (quote rule)) nil (let ((headerp 
(org-export-table-row-in-header-p row info)) (lastp (not ...)) (last-header-p 
(org-export-table-row-ends-header-p row info))) (when contents (cond nil nil 
nil (t ...)) (table-cell lambda (cell contents info) (let ((headerp 
(org-export-table-row-in-header-p (org-export-get-parent-element cell) info)) 
(column (1+ (cdr ... nil (when contents nil (cond nil (t (setq contents 
... (if (or nil (plist-get info :orgtbl-ignore-sep) (not 
(org-export-get-next-element cell info))) contents (concat contents "
" (macro lambda (m c i) (org-element-macro-interpreter m nil))) nil nil nil 
nil] (:title nil :date nil :author (#("Peter Davis" 0 11 (:parent #1))) :email 
"p...@pfdstudio.com" :language "en" :select-tags ("export") :exclude-tags 
("noexport") :creator "Emacs 25.1.1 (Org mode 9.0.9)" :headline-levels 3 
:preserve-breaks nil :section-numbers t :time-stamp-file t :with-archived-trees 
headline :with-author t :with-broken-links nil :with-clocks nil :with-creator 
nil :with-date t :with-drawers (not "LOGBOOK") :with-email nil :with-emphasize 
t :with-entities t :with-fixed-width t :with-footnotes t :with-inlinetasks

Re: [O] Trying to get chart from table working

2017-10-02 Thread Peter Davis

On Mon, Oct 2, 2017, at 09:58 AM, Peter Davis wrote:
> 
> On Mon, Oct 2, 2017, at 09:54 AM, Peter Davis wrote:
> > 
> > On Mon, Oct 2, 2017, at 08:59 AM, Eric S Fraga wrote:
> > > On Monday,  2 Oct 2017 at 07:21, Peter Davis wrote:
> > > > On Mon, Oct 2, 2017, at 06:27 AM, Eric S Fraga wrote:
> > > >> On Sunday,  1 Oct 2017 at 15:06, Peter Davis wrote:
> > > >> > I do have those lines in my .org file, but no PDF was produced. I 
> > > >> > tried
> > > >> > switching to png, but still no file was produced.
> > > >> 
> > > >> Check the *gnuplot* buffer to see if there were any gnuplot errors.
> > > >> 
> > > >
> > > > There doesn't appear to be a *gnuplot* buffer.
> > > 
> > > Okay, maybe not when you export but what if you manually execute the
> > > gnuplot src block?  Do you get the PDF file generated?  If not, you
> > > should have a *gnuplot* buffer which you can then look at for errors.
> > 
> > Trying to run the table manually (C-M-g) just gives me:
> > 
> > Wrong type argument: arrayp, nil
> 
> Oh, execute C-c C-c in the block gives me
> 
> No org-babel-execute function for gnuplot!
> 
> So I guess something's not installed (correctly).

I added (gnuplot . t) to my org-babel-load-languages, and now I'm back
to

Wrong type argument: arrayp, nil

Sigh.


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-02 Thread Peter Davis

On Mon, Oct 2, 2017, at 09:54 AM, Peter Davis wrote:
> 
> On Mon, Oct 2, 2017, at 08:59 AM, Eric S Fraga wrote:
> > On Monday,  2 Oct 2017 at 07:21, Peter Davis wrote:
> > > On Mon, Oct 2, 2017, at 06:27 AM, Eric S Fraga wrote:
> > >> On Sunday,  1 Oct 2017 at 15:06, Peter Davis wrote:
> > >> > I do have those lines in my .org file, but no PDF was produced. I tried
> > >> > switching to png, but still no file was produced.
> > >> 
> > >> Check the *gnuplot* buffer to see if there were any gnuplot errors.
> > >> 
> > >
> > > There doesn't appear to be a *gnuplot* buffer.
> > 
> > Okay, maybe not when you export but what if you manually execute the
> > gnuplot src block?  Do you get the PDF file generated?  If not, you
> > should have a *gnuplot* buffer which you can then look at for errors.
> 
> Trying to run the table manually (C-M-g) just gives me:
> 
> Wrong type argument: arrayp, nil

Oh, execute C-c C-c in the block gives me

No org-babel-execute function for gnuplot!

So I guess something's not installed (correctly).


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-02 Thread Peter Davis

On Mon, Oct 2, 2017, at 08:59 AM, Eric S Fraga wrote:
> On Monday,  2 Oct 2017 at 07:21, Peter Davis wrote:
> > On Mon, Oct 2, 2017, at 06:27 AM, Eric S Fraga wrote:
> >> On Sunday,  1 Oct 2017 at 15:06, Peter Davis wrote:
> >> > I do have those lines in my .org file, but no PDF was produced. I tried
> >> > switching to png, but still no file was produced.
> >> 
> >> Check the *gnuplot* buffer to see if there were any gnuplot errors.
> >> 
> >
> > There doesn't appear to be a *gnuplot* buffer.
> 
> Okay, maybe not when you export but what if you manually execute the
> gnuplot src block?  Do you get the PDF file generated?  If not, you
> should have a *gnuplot* buffer which you can then look at for errors.

Trying to run the table manually (C-M-g) just gives me:

Wrong type argument: arrayp, nil


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-02 Thread Peter Davis

On Mon, Oct 2, 2017, at 07:22 AM, Robert Horn wrote:
> 
> Peter Davis writes:
> 
> > Basically, I want to plot a time series graph showing my PSA (prostate
> > specific antigen) over time. The PSA is measured at irregular intervals,
> > and has been for over 4 years (and hopefully will continue for many more
> > years.) That should be a simple enough graph. I've already got a
> > javascript d3 example that does this, but I'd like to embed it in a
> > document, and to be able to generate PDF.
> >
> > Further, I want to be able to show different time intervals with tinted
> > bands spanning the full range of the graph, and having specific start
> > and end dates. These would represent various medical treatments I've
> > undergone. I have a rough example I've mocked up in Photoshop, but, of
> > course, I want to be able to add new data and re-generate the chart as
> > needed. I don't know if I can attach a PNG to an email on this list.
> >
> 
> I do something similar for managing diabetes.
> 
> I use org-mode to manage some (not all) of the data tables and org-babel
> to control a graphics and statistics analysis in R.  R can also handle
> input in other formats, such as CSV, that I get from some sources. The
> results are also displayed in the org window as output from R.
> 
> This is a much heavier weight solution, since it involves learning R. 
> But
> the graphics capabilities are immensely richer than gnuplot and the
> mathematical capabilities for statistics and time series analysis are
> immensely richer in R.
> 
> If learning R benefits your work or career you might explore this.
> 

Thanks, Robert. I've had considered R as a possible tool for this
effort. I actually used it briefly for a data visualization course I
took a few years ago, but there's still a lot more learning I would have
to do to accomplish this. 

On the other hand, it seems every other path I've tried has a large
learning curve too, so I should give R another look.

Thanks,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-02 Thread Peter Davis


On Mon, Oct 2, 2017, at 06:27 AM, Eric S Fraga wrote:
> On Sunday,  1 Oct 2017 at 15:06, Peter Davis wrote:
> > I do have those lines in my .org file, but no PDF was produced. I tried
> > switching to png, but still no file was produced.
> 
> Check the *gnuplot* buffer to see if there were any gnuplot errors.
> 

There doesn't appear to be a *gnuplot* buffer.

Thanks,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-01 Thread Peter Davis
I do have those lines in my .org file, but no PDF was produced. I tried
switching to png, but still no file was produced.

Thanks,
-pd

On Sun, Oct 1, 2017, at 02:51 PM, Thierry Banel wrote:
> Do you get the following lines?
> (you can erase them, they will be recreated).
> 
>#+results:
>[[file:timeseries.pdf]]
> 
> If you click on the link, it should open okular or acrobat reader or 
> whatever displaying the plot.
> 
> Otherwise you can try a different format, PNG for instance:
> 
>#+begin_src gnuplot :var data=measurements :file timeseries.png 
> :results inline
> 
> 
> 
> 
> On 01/10/2017 15:47, Peter Davis wrote:
> > On Sat, Sep 30, 2017, at 09:25 AM, Eric S Fraga wrote:
> >> On Friday, 29 Sep 2017 at 17:32, Peter Davis wrote:
> >>> I'm sorry to belabor this, but I could use some help. I'd be willing to
> >>> pay a modest consulting fee, but I'm trying to solve a problem in a
> >>> timely way, as it would help me with healthcare decisions.
> >>>
> >>> Basically, I want to plot a time series graph showing my PSA (prostate
> >>> specific antigen) over time. The PSA is measured at irregular intervals,
> >>> and has been for over 4 years (and hopefully will continue for many more
> >>> years.) That should be a simple enough graph. I've already got a
> >>> javascript d3 example that does this, but I'd like to embed it in a
> >>> document, and to be able to generate PDF.
> >> This part is relatively straightforward.  Using your data example, you
> >> can do the following:
> >>
> > Thank you for the example, Eric. Running this gives me a page with the
> > table and the code on it, but no plot. Here's what *Messages* says:
> >
> > gnuplot-mode 0.7-beta -- determining gnuplot version ..
> > gnuplot-mode 0.7-beta (gnuplot 5.2) -- report bugs with "C-c C-u"
> > Saving file /Users/peterdavis/Dropbox/Org/t.org...
> > Wrote /Users/peterdavis/Dropbox/Org/t.org
> > Mark set
> > Saving file /Users/peterdavis/Dropbox/Org/t.org...
> > Wrote /Users/peterdavis/Dropbox/Org/t.org
> > org-babel-exp process gnuplot at position 292...
> > Saving file /Users/peterdavis/Dropbox/Org/t.tex...
> > Wrote /Users/peterdavis/Dropbox/Org/t.tex
> > Processing LaTeX file ./t.tex...
> > PDF file produced.
> > Running open /Users/peterdavis/Dropbox/Org/t.pdf...done
> >
> > Thank you.
> >
> > -pd
> >
> >
> >> The colouring bit is harder and I don't know whether it's possible or
> >> not.  I suggest you look at examples on the web, e.g.
> >>
> >> http://gnuplot.sourceforge.net/demo/
> >>
> >> to see if anything fits what you are trying to do.
> >>
> >> HTH,
> >> eric
> >>
> >> -- 
> >> : Eric S Fraga via Emacs 27.0.50, Org release_9.1.1-78-gfbf47c
> >> Email had 2 attachments:
> >> + t.org
> >>1k (text/x-org)
> >> + signature.asc
> >>1k (application/pgp-signature)
> >
> 
> 


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-10-01 Thread Peter Davis

On Sat, Sep 30, 2017, at 09:25 AM, Eric S Fraga wrote:
> On Friday, 29 Sep 2017 at 17:32, Peter Davis wrote:
> > I'm sorry to belabor this, but I could use some help. I'd be willing to
> > pay a modest consulting fee, but I'm trying to solve a problem in a
> > timely way, as it would help me with healthcare decisions.
> >
> > Basically, I want to plot a time series graph showing my PSA (prostate
> > specific antigen) over time. The PSA is measured at irregular intervals,
> > and has been for over 4 years (and hopefully will continue for many more
> > years.) That should be a simple enough graph. I've already got a
> > javascript d3 example that does this, but I'd like to embed it in a
> > document, and to be able to generate PDF.
> 
> This part is relatively straightforward.  Using your data example, you
> can do the following:
> 

Thank you for the example, Eric. Running this gives me a page with the
table and the code on it, but no plot. Here's what *Messages* says:

gnuplot-mode 0.7-beta -- determining gnuplot version ..
gnuplot-mode 0.7-beta (gnuplot 5.2) -- report bugs with "C-c C-u"
Saving file /Users/peterdavis/Dropbox/Org/t.org...
Wrote /Users/peterdavis/Dropbox/Org/t.org
Mark set
Saving file /Users/peterdavis/Dropbox/Org/t.org...
Wrote /Users/peterdavis/Dropbox/Org/t.org
org-babel-exp process gnuplot at position 292...
Saving file /Users/peterdavis/Dropbox/Org/t.tex...
Wrote /Users/peterdavis/Dropbox/Org/t.tex
Processing LaTeX file ./t.tex...
PDF file produced.
Running open /Users/peterdavis/Dropbox/Org/t.pdf...done

Thank you.

-pd


> 
> The colouring bit is harder and I don't know whether it's possible or
> not.  I suggest you look at examples on the web, e.g.
> 
> http://gnuplot.sourceforge.net/demo/
> 
> to see if anything fits what you are trying to do.
> 
> HTH,
> eric
> 
> -- 
> : Eric S Fraga via Emacs 27.0.50, Org release_9.1.1-78-gfbf47c
> Email had 2 attachments:
> + t.org
>   1k (text/x-org)
> + signature.asc
>   1k (application/pgp-signature)


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-09-29 Thread Peter Davis

I'm sorry to belabor this, but I could use some help. I'd be willing to
pay a modest consulting fee, but I'm trying to solve a problem in a
timely way, as it would help me with healthcare decisions.

Basically, I want to plot a time series graph showing my PSA (prostate
specific antigen) over time. The PSA is measured at irregular intervals,
and has been for over 4 years (and hopefully will continue for many more
years.) That should be a simple enough graph. I've already got a
javascript d3 example that does this, but I'd like to embed it in a
document, and to be able to generate PDF.

Further, I want to be able to show different time intervals with tinted
bands spanning the full range of the graph, and having specific start
and end dates. These would represent various medical treatments I've
undergone. I have a rough example I've mocked up in Photoshop, but, of
course, I want to be able to add new data and re-generate the chart as
needed. I don't know if I can attach a PNG to an email on this list.

Unfortunately, I don't have enough emacs lisp knowledge, or org-mode
knowledge, or gnuplot knowledge to know how to make this all work. I
have not even be able to get the org-plot example to work. (I have been
using org for various types of documents for a number of years, and can
generally pick things up quickly, but I'm overwhelmed by this.)

I was thinking of having a table like:


...
| *Date* | *PSA* | *Treatment* |
| 2017-08-11 | 185 | |
| 2017-08-21 | | #ffdd99 |
| 2017-09-19 | 854 | #ffdd99 |
...


So some rows would contain a PSA measurement, some a background tint,
and some both. I've never seen a visualization like this, but I think it
would be very helpful to have a single timeline that shows periods of
various treatments and the PSA value. There are probably better ways to
specify the starting and ending dates of treatments, but this seemed
amenable to simple iterative processing.

I've considered possible tools for this, including d3, PostScript, etc.,
but I think Org would be best for maintainability, allowing me to add
notes, etc.

I know this is a tall order, but it's beyond my capabilities right now.
Any recommendations or suggestions greatly appreciated.

Thanks,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-09-29 Thread Peter Davis

On Fri, Sep 29, 2017, at 11:42 AM, Peter Davis wrote:
> 
> On Fri, Sep 29, 2017, at 10:51 AM, Eric S Fraga wrote:
> > On Friday, 29 Sep 2017 at 10:16, Peter Davis wrote:
> > > I'm trying out the org-plot example, but when I enter C-M-g on a
> > > table, I get:
> > >
> > > Cannot open load file: No such file or directory, gnuplot
> > >
> > > I verified that gnuplot is installed, and that /usr/local/bin is in
> > > both the PATH and the exec-path for emacs. Is there something else I
> > > need to do?
> > 
> > It may refer to gnuplot.el (found in gnuplot-mode debian package for me)
> > as I think org uses this to execute gnuplot commands?
> > 
> 
> Thank you, Eric. I did install gnuplot-mode via the list-packages
> interface, but I can't find a gnuplot.el file on my system.
> 

Aha! Just installing gnuplot did something. Now I get

org-export-data-with-backend: Wrong type argument: arrayp, nil


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Trying to get chart from table working

2017-09-29 Thread Peter Davis

On Fri, Sep 29, 2017, at 10:51 AM, Eric S Fraga wrote:
> On Friday, 29 Sep 2017 at 10:16, Peter Davis wrote:
> > I'm trying out the org-plot example, but when I enter C-M-g on a
> > table, I get:
> >
> > Cannot open load file: No such file or directory, gnuplot
> >
> > I verified that gnuplot is installed, and that /usr/local/bin is in
> > both the PATH and the exec-path for emacs. Is there something else I
> > need to do?
> 
> It may refer to gnuplot.el (found in gnuplot-mode debian package for me)
> as I think org uses this to execute gnuplot commands?
> 

Thank you, Eric. I did install gnuplot-mode via the list-packages
interface, but I can't find a gnuplot.el file on my system.

Thanks!
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



[O] Trying to get chart from table working

2017-09-29 Thread Peter Davis
I'm trying out the org-plot example, but when I enter C-M-g on a table, 
I get:



Cannot open load file: No such file or directory, gnuplot


I verified that gnuplot is installed, and that /usr/local/bin is in both 
the PATH and the exec-path for emacs. Is there something else I need to do?



Ultimately I'm trying to figure out how to plot a time series graph, and 
then to represent different time intervals with colored bands in the 
background.



Thanks,

-pd


--

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com




Re: [O] Setting TTY location?

2017-09-18 Thread Peter Davis
Ok, this seems to have solved my problem:

(setenv "PATH" (concat "/usr/texbin:/Library/TeX/texbin:" (getenv
"PATH")))


Thank you!

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Setting TTY location?

2017-09-17 Thread Peter Davis

On 9/17/17 11:38 AM, Nick Dokos wrote:

Peter Davis <p...@pfdstudio.com> writes:


I'm trying to get LaTeX/PDF output from an Org document (I guess for
the first time on this machine), and I'm getting this error:


resize:  can't open terminal /dev/tty
pdflatex: Command not found.


These are the problems to concentrate on. Make sure to install
pdflatex, and make sure the perms on /dev/tty are correct.
Mine says

   crw-rw-rw-.  1 root tty   5,   0 Sep 14 12:19 tty


Looks like those are okay ...

[PFDStudio-Air:~] peterdavis% which pdflatex
/Library/TeX/texbin/pdflatex
[PFDStudio-Air:~] peterdavis% ls -l /dev/tty
crw-rw-rw-  1 root  wheel    2,   0 Sep 17 09:06 /dev/tty
[PFDStudio-Air:~] peterdavis%




[O] Setting TTY location?

2017-09-17 Thread Peter Davis
I'm trying to get LaTeX/PDF output from an Org document (I guess for the 
first time on this machine), and I'm getting this error:



resize:  can't open terminal /dev/tty
pdflatex: Command not found.


If I open a terminal window and type `which tty`, I get


/usr/bin/tty


Is there some setup I need to do to reconcile these?


Thank you!


-pd




Re: [O] Org now failing on HTML export

2017-06-30 Thread Peter Davis
Kaushal Modi <kaushal.m...@gmail.com> writes:

> On Fri, Jun 30, 2017 at 2:07 PM Peter Davis <p...@pfdstudio.com> wrote:
>
>  I've been using org 9.0.7/GNU Emacs 25.1.1 on Mac OS X for a while, and 
> successfully exporting HTML to copy and paste into my blog.
>  However, in the last day or so, this started failing. I'm unaware of having 
> changed anything in my configuration.
>
>  The error is ...
>
>  Here's the entire file I'm using ...
>
>  +
>  Does this work at all?
>  +
>
>  Here's the debug traceback ...
>
>  +
>  Debugger entered--Lisp error: (wrong-type-argument listp #("org test" 0 8 
> (:parent (#1
>
> You have the classic case of mixed Org installations, would be my guess.
>
> I haven't seen this issue myself but it's a well-known issue with mixed Org 
> installations.
>
> Best way that I have seen to work is to delete (M)Elpa installed Org 
> completely and install it again, but in an emacs -Q session, or do C-u M-x 
> org-reload, and then delete->reinstall Org.

Aha! I think you've hit the nail on the head.

I'm not sure how this happened, but org-reload does seem to correct the problem.

Thank you, Kaushal!

-pd



[O] Org now failing on HTML export

2017-06-30 Thread Peter Davis


I've been using org 9.0.7/GNU Emacs 25.1.1 on Mac OS X for a while, and 
successfully exporting HTML to copy and paste into my blog.
However, in the last day or so, this started failing. I'm unaware of having 
changed anything in my configuration.

The error is ...

Here's the entire file I'm using ...

+
Does this work at all?
+

Here's the debug traceback ...

+
Debugger entered--Lisp error: (wrong-type-argument listp #("org test" 0 8 
(:parent (#1
  org-element-set-contents(#("org test" 0 8 (:parent (#0
  apply(org-element-set-contents #("org test" 0 8 (:parent (#0))) nil)
  #[257 
"\211\305\306\307#\310\311\211:\204\312\202\"\n@9\203!\nAA\202\"\n)\"\210\313\314
\211:\2043\312\202@\n@9\203?\nAA\202@\n)#\210\315\211 
\n;\203V\316\317\n#\202\\\320\nA@\"*\211;\203n\321\n\312\f$\202z\nA\322\nA@\f#\240\210\n+\210
 AA@\240\210@\240*\207" [new old element property value 
replace-regexp-in-string "\n" " " mapc #[(blob) "\305 
\211;\203\306\f\307\n$\202 \fA\310\fA@\n#\240\210\f+\207" [blob old value 
property element :parent org-add-props nil plist-put] 6] nil apply 
org-element-set-contents :parent get-text-property 0 plist-get org-add-props 
plist-put] 7 "\n\n(fn S)"](#("org test" 0 8 (:parent (#0
  #[257 
"\211\211:\204\211;\205\311\262\202\211@9\205\211@\262?\206\251\301\203-\312\301\313\">\206\251\211\2049\314\310\242\"\202\251\211\315=\203]\314\310\242\211:\204N\316\262\202Y\211@9\203Y\211AA\262\"\202\251\211\304>\203~\300!\211\203}\302\203v\317\320\"\210\202}\307\307\242B\240\210\210\306\321=\203\271;\204\271\211\236A\211\203\270\211@\310\242\211;\203\247\322\323#\266\202\202\257\312A@\"\266\202!\210A\266\202\202\216\210\303\203Q\306\321=\203Q\324!\325=\203Q\211\203P\211@\211@A\211;\203\347\322\323#\266\202\202\357\312A@\"\266\202\211\203G\235\2030\235\203!\326!\211\203\211@\310\242A!\210\310\242@!\210A\266\202\202\210\202G\310\242A!\210\310\242@!\210\202G\235\203B\314\310\242\326!\"\210\202G\310\242!\210\266A\266\202\202\315\210\211\305>\206\251\211:\204c\316\262\202n\211@9\203n\211AA\262?\206\251\306\327=\203\200\211>?\206\251\306\330=\203\216\324!\331=\206\251\314\310\242\211:\204\235\316\262\202\250\211@9\203\250\211AA\262\"\207"
 [#[257 
"\211\305\306\307#\310\311\211:\204\312\202\"\n@9\203!\nAA\202\"\n)\"\210\313\314
   \211:\2043\312\202@\n@9\203?\nAA\202@\n)#\210\315\211 
\n;\203V\316\317\n#\202\\\320\nA@\"*\211;\203n\321\n\312\f$\202z\nA\322\nA@\f#\240\210\n+\210
 AA@\240\210@\240*\207" [new old element property value 
replace-regexp-in-string "\n" " " mapc #[(blob) "\305 
\211;\203\306\f\307\n$\202 \fA\310\fA@\n#\240\210\f+\207" [blob old value 
property element :parent org-add-props nil plist-put] 6] nil apply 
org-element-set-contents :parent get-text-property 0 plist-get org-add-props 
plist-put] 7 "\n\n(fn S)"] nil nil nil (plain-text) nil objects (nil) (#0) 
plain-text plist-get :ignore-list mapc org-data nil throw :--map-first-match 
objects get-text-property 0 org-element-class element reverse greater-elements 
elements object org-element-secondary-value-alist 
org-element--parsed-properties-alist org-element-dual-keywords 
org-element-multiple-keywords org-element-greater-elements] 11 "\n\n(fn 
--DATA)"](#("org test" 0 8 (:parent (#0
  mapc(#[257 
"\211\211:\204\211;\205\311\262\202\211@9\205\211@\262?\206\251\301\203-\312\301\313\">\206\251\211\2049\314\310\242\"\202\251\211\315=\203]\314\310\242\211:\204N\316\262\202Y\211@9\203Y\211AA\262\"\202\251\211\304>\203~\300!\211\203}\302\203v\317\320\"\210\202}\307\307\242B\240\210\210\306\321=\203\271;\204\271\211\236A\211\203\270\211@\310\242\211;\203\247\322\323#\266\202\202\257\312A@\"\266\202!\210A\266\202\202\216\210\303\203Q\306\321=\203Q\324!\325=\203Q\211\203P\211@\211@A\211;\203\347\322\323#\266\202\202\357\312A@\"\266\202\211\203G\235\2030\235\203!\326!\211\203\211@\310\242A!\210\310\242@!\210A\266\202\202\210\202G\310\242A!\210\310\242@!\210\202G\235\203B\314\310\242\326!\"\210\202G\310\242!\210\266A\266\202\202\315\210\211\305>\206\251\211:\204c\316\262\202n\211@9\203n\211AA\262?\206\251\306\327=\203\200\211>?\206\251\306\330=\203\216\324!\331=\206\251\314\310\242\211:\204\235\316\262\202\250\211@9\203\250\211AA\262\"\207"
 [#[257 
"\211\305\306\307#\310\311\211:\204\312\202\"\n@9\203!\nAA\202\"\n)\"\210\313\314
  \211:\2043\312\202@\n@9\203?\nAA\202@\n)#\210\315\211 
\n;\203V\316\317\n#\202\\\320\nA@\"*\211;\203n\321\n\312\f$\202z\nA\322\nA@\f#\240\210\n+\210
 AA@\240\210@\240*\207" [new old element property value 
replace-regexp-in-string "\n" " " mapc #[(blob) "\305 
\211;\203\306\f\307\n$\202 \fA\310\fA@\n#\240\210\f+\207" [blob old value 
property element :parent org-add-props nil plist-put] 6] nil apply 
org-element-set-contents :parent get-text-property 0 plist-get org-add-props 
plist-put] 7 "\n\n(fn S)"] nil nil nil 

Re: [O] Using org-mode via vSSH on iPad

2017-06-30 Thread Peter Davis

Thanks, Michael. Replies below ...

On Fri, Jun 30, 2017, at 10:16 AM, Michael Ax wrote:
> > apply: Wrong type argument: listp, #("The Age of Wonder, Part II" 0
> > 26 (:parent (#0)))>  another set of parens perhaps?
> 

I just copied what was in the *Messages* buffer. I tried the sequence

C-c C-e C-b h H

to get HTML, but I got that error.

Interestingly, this worked with the same file on a desktop Mac I have. I
thought perhaps the state of emacs had somehow gotten changed, but
exiting emacs and re-starting did not help.
>  >Then, does anyone know a way to copy the contents of the vSSH app
>  >display to the iPad clipboard>  does (setq mouse-drag-copy-region t) work?


I can copy in emacs. I guess this is more of a vSSH question ... how can
I copy to the iPad clipboard so I can paste into another app.
Thanks!
-pd


--
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Using org-mode via vSSH on iPad

2017-06-30 Thread Peter Davis

Ok, now I'm having a worse problem. Trying to get HTML output in a buffer on my 
Mac, I'm getting this error:

apply: Wrong type argument: listp, #("The Age of Wonder, Part II" 0 26 (:parent 
(#0)))

Any guesses what might cause this? It seems to be dying on this line:

#+title: The Age of Wonder, Part II

but I don't know why. I even tried changing the "," to " -", but no joy. The 
whole header looks like this:

#+STARTUP: showeverything logdone
#+options: num:nil toc:nil
#+author: Peter Davis
#+title: The Age of Wonder, Part II



Thanks,
-pd



Peter Davis <p...@pfdstudio.com> writes:

> I've been trying to find a way to use org-mode from my iPad (other than 
> MobileOrg, which seems really unwieldy), and the closest I've come is to us 
> the vSSH app to connect to my desktop Mac and run emacs there.
>
> Unfortunately, I'm running into some limitations and I'm not aware of the 
> workarounds, if any. I'm hoping someone here might know.
>
> The most obvious is that after editing my org document, I want to export to 
> an HTML buffer from which I could copy and paste to Blogger (in a browser). 
> My normal key sequence
>
> C-c C-e C-b h H
>
> doesn't work, as the C-b seems to be treated as an ordinary 'b'. I don't get 
> a window showing me the HTML export. Anyone familiar with this or how to get 
> around it?
>
> Then, does anyone know a way to copy the contents of the vSSH app display to 
> the iPad clipboard so I can paste into another app? I don't mind having to 
> edit out some amount of cruft that goes with it, as long as I can get the 
> basic HTML.
>
> Thanks very much!
>
> -pd
>
> P.S. - I've also tried using the Editorial app with md format, but I really 
> miss org's ability to format tables and lists on the fly. Editorial doesn't 
> seem to do that.
>
> --
> Peter Davis
> www.techcurmudgeon.com



[O] Using org-mode via vSSH on iPad

2017-06-29 Thread Peter Davis

I've been trying to find a way to use org-mode from my iPad (other than
MobileOrg, which seems really unwieldy), and the closest I've come is to
us the vSSH app to connect to my desktop Mac and run emacs there.
Unfortunately, I'm running into some limitations and I'm not aware of
the workarounds, if any. I'm hoping someone here might know.
The most obvious is that after editing my org document, I want to export
to an HTML buffer from which I could copy and paste to Blogger (in a
browser). My normal key sequence
C-c C-e C-b h H

doesn't work, as the C-b seems to be treated as an ordinary 'b'. I don't
get a window showing me the HTML export. Anyone familiar with this or
how to get around it?
Then, does anyone know a way to copy the contents of the vSSH app
display to the iPad clipboard so I can paste into another app? I don't
mind having to edit out some amount of cruft that goes with it, as long
as I can get the basic HTML.
Thanks very much!

-pd

P.S. - I've also tried using the Editorial app with md format, but I
 really miss org's ability to format tables and lists on the fly.
 Editorial doesn't seem to do that.
--
  Peter Davis
  www.techcurmudgeon.com



Re: [O] exporting markdown with tables

2017-06-04 Thread Peter Davis
Thanks to all for the responses here. They have opened my eyes to new
org features I can use in other ways.

For now, I think my solution to the table export question will be just
to keep everything in org mode and to heck with Editorial and Markdown.

Thanks!

-pd



-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] exporting markdown with tables

2017-06-03 Thread Peter Davis
Thanks, Vincente.

I'm specifically aiming at the Markdown syntax supported by the
Editorial app, which does include markup for tables. Unfortunately, it
looks like Editorial's Markdown doesn't use the initial '|', so simply
exporting the org markup won't work without some editing.
Thanks!
-pd

On Sat, Jun 3, 2017, at 12:31 PM, Vicente Vera wrote:
> There are several Markdown "forks" which have different sets of
> features.>
> AFAIK the markdown exporter in Org is based upon John Gruber's
> Markdown, which does not include a syntax for tables. Thus all tables> in Org 
> documents get exported as HTML.
>
> A workaround is to wrap your Org tables as:
>
> #+BEGIN_EXPORT md
> | Name   | Years |
> | Edward |44 |
> | Sylvia |45 |
> #+END_EXPORT
>
> On export to Markdown the tables will be kept unmodified as Org
> syntax.>
> It is important that you know which flavor of Markdown you're
> targeting, because not all versions accept tables in Org syntax.
> Pandoc's Markdown have a similar syntax for "pipe tables". However,
> you may type all tables in any syntax accepted by your Markdown
> version and keep them wrapped in #+BEGIN_EXPORT tags.
>
> 2017-06-03 13:41 GMT+00:00 Peter Davis <p...@pfdstudio.com>:
> >
> > I'd like to be able to move easily between org-mode and the IOS app
> > Editorial, which is mainly based around markdown syntax. I can> > easily 
> > export markdown from org-mode, but the tables seems to come
> > through as straight HTML, as opposed to markdown's table> > syntax. This 
> > makes it more difficult to edit the resulting files.
> >
> > Is there a way to get org to export to markdown using md's table
> > syntax?> >
> > (FWIW, I tried using pandoc, but this just removed the table syntax
> > altogether, so an entire table would just run together into a> > paragraph 
> > of gibberish.)
> >
> > Thanks,
> > -pd
> >
> >


--
  Peter Davis
  www.techcurmudgeon.com



[O] exporting markdown with tables

2017-06-03 Thread Peter Davis

I'd like to be able to move easily between org-mode and the IOS app Editorial, 
which is mainly based around markdown syntax. I can
easily export markdown from org-mode, but the tables seems to come through as 
straight HTML, as opposed to markdown's table
syntax. This makes it more difficult to edit the resulting files.

Is there a way to get org to export to markdown using md's table syntax?

(FWIW, I tried using pandoc, but this just removed the table syntax altogether, 
so an entire table would just run together into a
paragraph of gibberish.)

Thanks,
-pd




Re: [O] Exporting PDF (new setup)

2017-05-01 Thread Peter Davis
Nick Dokos  writes:

>
> As a first step, switch to buffer *Org PDF LaTeX Output* and check for errors.

Thanks, Nick. I found the same error I got running pdflatex in a command shell:

! LaTeX Error: File `wrapfig.sty' not found.

I had installed basictex using Homebrew (one of several Mac package managers), 
but I think I'd be better off with TeXLive or
MacTeX. I'm trying that now.

Thanks!

-pd




Re: [O] Exporting PDF (new setup)

2017-05-01 Thread Peter Davis
Joost Kremers <joostkrem...@fastmail.fm> writes:

> On Mon, May 01 2017, Peter Davis wrote:
>> I'm running Org 8.2.10 on a new MacBook with El Capitan as the OS. I can't 
>> seem to get PDF export working. I get these messages:
>>
>> Processing LaTeX file ./blahblahblah.tex...
>> /bin/bash: pdflatex: command not found [3 times]
>> org-latex-compile: PDF file ./blahblahblah.pdf wasn’t produced
>>
>> I did install basictex, and when I enter pdflatex on the command line, it 
>> works with no problems. Any clues why org export isn't
>> finding the executable?
>
> This:
>
> https://github.com/purcell/exec-path-from-shell
>
> perhaps?

Ah! Thank you. That's gotten me past the first problem.

Now I'm getting:

Wrote /Users/peterdavis/Dropbox/Org/blahblahblah.tex
Processing LaTeX file ./blahblahblah.tex...
org-latex-compile: PDF file ./blahblahblah.pdf wasn’t produced: [LaTeX error]

I suppose I have to have to debug this like any LaTeX file.

Thank you, Joost.

-pd




[O] Exporting PDF (new setup)

2017-05-01 Thread Peter Davis

I'm running Org 8.2.10 on a new MacBook with El Capitan as the OS. I can't seem 
to get PDF export working. I get these messages:

Processing LaTeX file ./blahblahblah.tex...
/bin/bash: pdflatex: command not found [3 times]
org-latex-compile: PDF file ./blahblahblah.pdf wasn’t produced

I did install basictex, and when I enter pdflatex on the command line, it works 
with no problems. Any clues why org export isn't
finding the executable?

Thanks!

-pd




Re: [O] Problems with opening a link

2017-03-31 Thread Peter Davis
It also appears that %3A gets turned into :





On Fri, Mar 31, 2017, at 05:39 AM, Carsten Dominik wrote:

> Hi everyone,

> 

> I have problems opening a link in org.

> 

> The link looks like this:

> 

> https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics
> 

> I have copied it like this from the address bar in a browser.

> 

> If I click on it in Org-mode, the link is modified to

> 

> https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics
> 

> before being sent to the browser, and the browser cannot resolve it.
> The problem seems to be that # has been turned into %23
> 

> Where does this happen, and how can I fix this?

> 

> Thank you.

> 

> Carsten



--

  Peter Davis

  www.techcurmudgeon.com


[O] org-mode <--> oddmuse

2017-03-09 Thread Peter Davis
I've used both org-mode and oddmuse as ways of storing and organizing 
personal information, technical notes, links to sites I want to refer 
to, etc. While emacs and org-mode overall have very powerful features, 
oddmuse has the advantage that I can access and update information from 
anywhere using a mobile device. (Yes, I know about MobileOrg, but that's 
still pretty cumbersome to use.)


I'm assuming there's a straightforward to publish a subset of my org 
docs as oddmuse pages, and push them to a server. Is there a reverse 
option? Can I actually edit oddmuse pages via a browser and then 
re-import them to org-mode for further editing?


Thank you!

-pd

--

Peter Davis
http://www.techcurmudgeon.com




Re: [O] Getting "Chapter" before a heading number

2016-12-31 Thread Peter Davis


On 12/31/16 9:23 AM, Nicolas Goaziou wrote:

Hello,

Peter Davis <pfda...@fastmail.fm> writes:


Yes, thanks, Richard! This will certainly work for this occasion. It
would be great to find a way to do this through org in future,

As answered by Richard, the way to do this through Org is to use
a filter.


Aha! Thank you, Nicolas and Richard. I missed this in the earlier reply. 
I'll read up on it. Looks like a very powerful feature.


Thanks!
-pd





Re: [O] Getting "Chapter" before a heading number

2016-12-31 Thread Peter Davis


On 12/29/16 5:26 PM, Richard Lawrence wrote:

Hi Peter,

Peter Davis <p...@pfdstudio.com> writes:


I'm preparing a proposed table of contents for a book, and I'd like the HTML 
output to appear like:

Chapter 1 Blah
   1.1 blah
   1.2 blah blah
   1.3 blah blah blah

Chapter 2 Blah Blah
   2.1 blah
   2.2 blah blah

etc.

Is there a way to get HTML output to do this? I'd like the "*" at the start of 
a line to denote a new chapter, and nested headings
to go inside. I haven't been able to find anything like this.


This might not be exactly what you want, but it's pretty trivial to do
this with CSS.  In your stylesheet, you want something like (untested):

span.section-number-2:before { content: "Chapter" }

Basically, this tells the browser to put the word "Chapter" before the
number of a first-level headline (which, in a default setup, is exported
as a span tag with class section-number-2).

If you'd rather that "Chapter" appears in the actual HTML, you probably
want to use a filter on headlines during export.

Hope that helps!
Yes, thanks, Richard! This will certainly work for this occasion. It 
would be great to find a way to do this through org in future, for 
documents that keep changing, but this will work for now.


Thanks!
-pd




Re: [O] Getting "Chapter" before a heading number

2016-12-30 Thread Peter Davis
Peter Davis <p...@pfdstudio.com> writes:

> I'm preparing a proposed table of contents for a book, and I'd like the HTML 
> output to appear like:
>
> Chapter 1 Blah
>   1.1 blah
>   1.2 blah blah
>   1.3 blah blah blah
>
> Chapter 2 Blah Blah
>   2.1 blah
>   2.2 blah blah
>
> etc.
>
> Is there a way to get HTML output to do this? I'd like the "*" at the start 
> of a line to denote a new chapter, and nested headings
> to go inside. I haven't been able to find anything like this.

It occurred to me that another way to get this effect might be with numbered 
lists:

#+BEGIN_SRC org
 * Chapter 1 Blah
   1. blah
   2. blah blah
   3. blah blah blah
 * Chapter 2 Blah Blah
   1. blah
   2. blah blah
#+END_SRC

and so on. Is there any way to get numbered lists to use a "." notation, where 
the path to each list item is indicated by
.-separated numbers?

 1
 1.1
 1.2
 1.2.1
 ...


Thanks, and Happy New Year!

-pd



[O] Getting "Chapter" before a heading number

2016-12-29 Thread Peter Davis

I'm preparing a proposed table of contents for a book, and I'd like the HTML 
output to appear like:

Chapter 1 Blah
  1.1 blah
  1.2 blah blah
  1.3 blah blah blah

Chapter 2 Blah Blah
  2.1 blah
  2.2 blah blah

etc.

Is there a way to get HTML output to do this? I'd like the "*" at the start of 
a line to denote a new chapter, and nested headings
to go inside. I haven't been able to find anything like this.

Thanks very much, and Happy New Year to all!

-pd




Re: [O] Bug: HTML exports issues: none not working, and issues with #+TITLE

2016-11-25 Thread Peter Davis
It turns out I somehow had org 9.0.1 on my load path. Moving this
elsewhere and restarting emacs got me back to org 8.2.10, in which
export works.

So now I have to wonder ... what's the right way to upgrade org
versions?

Thanks!

-pd


On Tue, Nov 22, 2016, at 07:21 PM, Peter Davis wrote:
> So I figured out how to do all these things, but it doesn't work.
> 
> Does anyone know how to fix this export problem?  I just installed emacs
> from <https://emacsformacosx.com/> on a new MacBook Pro.
> 
> Emacs version: GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS
> appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2016-09-20
> 
> Org version: Org mode version 9.0.1 (9.0.1-elpa @
> /Users/peterdavis/.emacs.d/elpa/org-20161118/)
> 
> Any clues?
> 
> Thank you!
> -pd
> 
> 
> On Mon, Nov 21, 2016, at 02:16 PM, Peter Davis wrote:
> > This suggests the following, but I don't know how to do any of this:
> > 
> > 
> > The full sequence of steps that worked for me:
> > 
> > From the command line:
> >  - Run emacs without loading the init file: emacs -q
> > 
> > In emacs:
> >  - run C-u M-x org-reload
> >  - Use package-list-packages to uninstall org: select it then d x
> >  - Use package-list-packages to reinstall org: select it then i x
> > 
> > After restarting emacs, everything worked.
> > 
> > I'm on a Mac, and don't know how to start the Emacs.app without loading
> > the init file.
> > 
> > Also, org-mode doesn't show up in the package list.
> > 
> > Any clues?
> > 
> > Thanks,
> > -pd
> > 
> > 
> > 
> > On Tue, Nov 8, 2016, at 08:20 AM, Frederick Giasson wrote:
> > > Hi Nicolas,
> > > 
> > > Thanks anyway, this answer led me to do some more research. What did 
> > > work for me is this:
> > > 
> > >  http://emacs.stackexchange.com/a/16616/13925
> > > 
> > > Only running C-u M-x org-reload was fixing the issue, but when I 
> > > restarted Emacs, it was restarting. Doing org-reload, uninstall and 
> > > re-install fixed the issue.
> > > 
> > > 
> > > Thanks,
> > > 
> > > Fred
> > > > Hi Nicolas,
> > > >> This seem to indicate you have a mixed installation. See, e.g.,
> > > >> <http://permalink.gmane.org/gmane.emacs.orgmode/110092>.
> > > >
> > > > I am getting a 404 error for that page, would you have another link 
> > > > for that thread?
> > > >
> > > > Thanks,
> > > >
> > > > Fred
> > > >
> > > 
> > > 
> > 
> > 
> > -- 
> >   Peter Davis
> >   www.techcurmudgeon.com
> 
> 
> -- 
>   Peter Davis
>   www.techcurmudgeon.com


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Bug: HTML exports issues: none not working, and issues with #+TITLE

2016-11-22 Thread Peter Davis
So I figured out how to do all these things, but it doesn't work.

Does anyone know how to fix this export problem?  I just installed emacs
from <https://emacsformacosx.com/> on a new MacBook Pro.

Emacs version: GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS
appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2016-09-20

Org version: Org mode version 9.0.1 (9.0.1-elpa @
/Users/peterdavis/.emacs.d/elpa/org-20161118/)

Any clues?

Thank you!
-pd


On Mon, Nov 21, 2016, at 02:16 PM, Peter Davis wrote:
> This suggests the following, but I don't know how to do any of this:
> 
> 
> The full sequence of steps that worked for me:
> 
> From the command line:
>  - Run emacs without loading the init file: emacs -q
> 
> In emacs:
>  - run C-u M-x org-reload
>  - Use package-list-packages to uninstall org: select it then d x
>  - Use package-list-packages to reinstall org: select it then i x
> 
> After restarting emacs, everything worked.
> 
> I'm on a Mac, and don't know how to start the Emacs.app without loading
> the init file.
> 
> Also, org-mode doesn't show up in the package list.
> 
> Any clues?
> 
> Thanks,
> -pd
> 
> 
> 
> On Tue, Nov 8, 2016, at 08:20 AM, Frederick Giasson wrote:
> > Hi Nicolas,
> > 
> > Thanks anyway, this answer led me to do some more research. What did 
> > work for me is this:
> > 
> >  http://emacs.stackexchange.com/a/16616/13925
> > 
> > Only running C-u M-x org-reload was fixing the issue, but when I 
> > restarted Emacs, it was restarting. Doing org-reload, uninstall and 
> > re-install fixed the issue.
> > 
> > 
> > Thanks,
> > 
> > Fred
> > > Hi Nicolas,
> > >> This seem to indicate you have a mixed installation. See, e.g.,
> > >> <http://permalink.gmane.org/gmane.emacs.orgmode/110092>.
> > >
> > > I am getting a 404 error for that page, would you have another link 
> > > for that thread?
> > >
> > > Thanks,
> > >
> > > Fred
> > >
> > 
> > 
> 
> 
> -- 
>   Peter Davis
>   www.techcurmudgeon.com


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Bug: HTML exports issues: none not working, and issues with #+TITLE

2016-11-22 Thread Peter Davis


On Tue, Nov 22, 2016, at 03:00 AM, Alan Schmitt wrote:
> On 2016-11-21 14:16, Peter Davis <p...@pfdstudio.com> writes:
> 
> > I'm on a Mac, and don't know how to start the Emacs.app without loading
> > the init file.
> 
> This is how I do it:
> open /Applications/Emacs.app -n --args -Q -l ~/tmp/emacs_debug/init.el
> 
> the '-n' says to open the application again even if it's already opened
> (i.e., you'll have two emacses running if one was already running). The
> '--args' lets you pass arguments to the application. Here I give the
> '-Q' argument and a file to use as init file. Note that files must have
> an absolute path name.
> 
> Best,
> 
> Alan


Thank you, Alan. I did finally manage to open an un-init-ialized emacs
and followed the other instructions, but I still can't get export to
work.

Thanks,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] html export fails on new setup

2016-11-21 Thread Peter Davis
Ok, I've followed the steps given here: 

http://emacs.stackexchange.com/questions/14763/exporting-org-file-breaks-when-upgrading-to-orgmode-8-3/16616#16616

but still no joy.

Any other ideas? Thanks!

-pd

On Sun, Nov 20, 2016, at 10:06 AM, Peter Davis wrote:
> I'm trying to set up a new MacBook Pro to run org-mode (among other
> things. I'm trying to export a simple file to HTML, and getting an
> error.
> 
> Here's the file:
> 
> #+begin_src org
> #+STARTUP: showeverything logdone
> #+options: num:nil toc:nil
> #+author: Peter Davis
> #+title: Test
> 
> html export test
> #+end_src
> 
> The backtrace is attached, but the error is:
> 
> Debugger entered--Lisp error: (wrong-type-argument listp #("Test" 0 4
> (:parent (#1
> 
> Any clues?
> 
> Thanks,
> -pd
> 
> -- 
>   Peter Davis
>   www.techcurmudgeon.com
> Email had 1 attachment:
> + backtrace.txt
>   26k (text/plain)


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Bug: HTML exports issues: none not working, and issues with #+TITLE

2016-11-21 Thread Peter Davis
This suggests the following, but I don't know how to do any of this:


The full sequence of steps that worked for me:

>From the command line:
 - Run emacs without loading the init file: emacs -q

In emacs:
 - run C-u M-x org-reload
 - Use package-list-packages to uninstall org: select it then d x
 - Use package-list-packages to reinstall org: select it then i x

After restarting emacs, everything worked.

I'm on a Mac, and don't know how to start the Emacs.app without loading
the init file.

Also, org-mode doesn't show up in the package list.

Any clues?

Thanks,
-pd



On Tue, Nov 8, 2016, at 08:20 AM, Frederick Giasson wrote:
> Hi Nicolas,
> 
> Thanks anyway, this answer led me to do some more research. What did 
> work for me is this:
> 
>  http://emacs.stackexchange.com/a/16616/13925
> 
> Only running C-u M-x org-reload was fixing the issue, but when I 
> restarted Emacs, it was restarting. Doing org-reload, uninstall and 
> re-install fixed the issue.
> 
> 
> Thanks,
> 
> Fred
> > Hi Nicolas,
> >> This seem to indicate you have a mixed installation. See, e.g.,
> >> <http://permalink.gmane.org/gmane.emacs.orgmode/110092>.
> >
> > I am getting a 404 error for that page, would you have another link 
> > for that thread?
> >
> > Thanks,
> >
> > Fred
> >
> 
> 


-- 
  Peter Davis
  www.techcurmudgeon.com



[O] html export fails on new setup

2016-11-20 Thread Peter Davis
I'm trying to set up a new MacBook Pro to run org-mode (among other
things. I'm trying to export a simple file to HTML, and getting an
error.

Here's the file:

#+begin_src org
#+STARTUP: showeverything logdone
#+options: num:nil toc:nil
#+author: Peter Davis
#+title: Test

html export test
#+end_src

The backtrace is attached, but the error is:

Debugger entered--Lisp error: (wrong-type-argument listp #("Test" 0 4
(:parent (#1

Any clues?

Thanks,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com
Debugger entered--Lisp error: (wrong-type-argument listp #("Test" 0 4 (:parent 
(#1
  org-element-set-contents(#("Test" 0 4 (:parent (#0
  apply(org-element-set-contents #("Test" 0 4 (:parent (#0))) nil)
  #[257 
"\211\305\306\307#\310\311\211:\204\312\202\"\n@9\203!\nAA\202\"\n)\"\210\313\314
 \211:\2043\312\202@\n@9\203?\nAA\202@\n)#\210\315\211
\n;\203V\316\317\n#\202\\\320\nA@\"*\211;\203n\321\n\312\f$\202z\nA\322\nA@\f#\240\210\n+\210
  AA@\240\210@\240*\207" [new old element property value 
replace-regexp-in-string "\n" " " mapc #[(blob) "\305 
\211;\203\306\f\307\n$\202 \fA\310\fA@\n#\240\210\f+\207" [blob old 
value property element :parent org-add-props nil plist-put] 6] nil apply 
org-element-set-contents :parent get-text-property 0 plist-get org-add-props 
plist-put] 7 "\n\n(fn S)"](#("Test" 0 4 (:parent (#0
  #[257 
"\211\211:\204\211;\205\311\262\202\211@9\205\211@\262?\206\251\301\203-\312\301\313\">\206\251\211\2049\314\310\242\"\202\251\211\315=\203]\314\310\242\211:\204N\316\262\202Y\211@9\203Y\211AA\262\"\202\251\211\304>\203~\300!\211\203}\302\203v\317\320\"\210\202}\307\307\242B\240\210\210\306\321=\203\271;\204\271\211\236A\211\203\270\211@\310\242\211;\203\247\322\323#\266\202\202\257\312A@\"\266\202!\210A\266\202\202\216\210\303\203Q\306\321=\203Q\324!\325=\203Q\211\203P\211@\211@A\211;\203\347\322\323#\266\202\202\357\312A@\"\266\202\211\203G\235\2030\235\203!\326!\211\203\211@\310\242A!\210\310\242@!\210A\266\202\202\210\202G\310\242A!\210\310\242@!\210\202G\235\203B\314\310\242\326!\"\210\202G\310\242!\210\266A\266\202\202\315\210\211\305>\206\251\211:\204c\316\262\202n\211@9\203n\211AA\262?\206\251\306\327=\203\200\211>?\206\251\306\330=\203\216\324!\331=\206\251\314\310\242\211:\204\235\316\262\202\250\211@9\203\250\211AA\262\"\207"
 [#[257 
"\211\305\306\307#\310\311\211:\204\312\202\"\n@9\203!\nAA\202\"\n)\"\210\313\314
   \211:\2043\312\202@\n@9\203?\nAA\202@\n)#\210\315\211
\n;\203V\316\317\n#\202\\\320\nA@\"*\211;\203n\321\n\312\f$\202z\nA\322\nA@\f#\240\210\n+\210
  AA@\240\210@\240*\207" [new old element property value 
replace-regexp-in-string "\n" " " mapc #[(blob) "\305 
\211;\203\306\f\307\n$\202 \fA\310\fA@\n#\240\210\f+\207" [blob old 
value property element :parent org-add-props nil plist-put] 6] nil apply 
org-element-set-contents :parent get-text-property 0 plist-get org-add-props 
plist-put] 7 "\n\n(fn S)"] nil nil nil (plain-text) nil objects (nil) (#0) 
plain-text plist-get :ignore-list mapc org-data nil throw :--map-first-match 
objects get-text-property 0 org-element-class element reverse greater-elements 
elements object org-element-secondary-value-alist 
org-element--parsed-properties-alist org-element-dual-keywords 
org-element-multiple-keywords org-element-greater-elements] 11 "\n\n(fn 
--DATA)"](#("Test" 0 4 (:parent (#0
  mapc(#[257 
"\211\211:\204\211;\205\311\262\202\211@9\205\211@\262?\206\251\301\203-\312\301\313\">\206\251\211\2049\314\310\242\"\202\251\211\315=\203]\314\310\242\211:\204N\316\262\202Y\211@9\203Y\211AA\262\"\202\251\211\304>\203~\300!\211\203}\302\203v\317\320\"\210\202}\307\307\242B\240\210\210\306\321=\203\271;\204\271\211\236A\211\203\270\211@\310\242\211;\203\247\322\323#\266\202\202\257\312A@\"\266\202!\210A\266\202\202\216\210\303\203Q\306\321=\203Q\324!\325=\203Q\211\203P\211@\211@A\211;\203\347\322\323#\266\202\202\357\312A@\"\266\202\211\203G\235\2030\235\203!\326!\211\203\211@\310\242A!\210\310\242@!\210A\266\202\202\210\202G\310\242A!\210\310\242@!\210\202G\235\203B\314\310\242\326!\"\210\202G\310\242!\210\266A\266\202\202\315\210\211\305>\206\251\211:\204c\316\262\202n\211@9\203n\211AA\262?\206\251\306\327=\203\200\211>?\206\251\306\330=\203\216\324!\331=\206\251\314\310\242\211:\204\235\316\262\202\250\211@9\203\250\211AA\262\"\207&qu

Re: [O] ditaa problems?

2016-11-15 Thread Peter Davis
Eric S Fraga <e.fr...@ucl.ac.uk> writes:

> On Tuesday, 15 Nov 2016 at 16:26, Peter Davis wrote:
>> I'm trying to include a ditaa diagram in a document, but the diagram is
>> not drawing correctly. I've attached the source file and the resulting
>> png. As you can see, the box around fieldGroup1 is not being drawn for
>> some reason. Other boxes appear to be correct.
>>
>> Any clues? Am I missing something?
>
> I don't think so.  In any case, I don't think it's an org problem.
>
> Your code doesn't work on my system either, although the resulting png
> output is different: fieldGroup1 works but some of the ones inside do
> not.  In my experience, ditaa is rather fragile.  Leaving bigger gaps
> between all edges (top, bottom, sides) and contents, I have found, often
> works better.

Thanks, Eric. I did try leaving bigger gaps, but still no joy.

I've sent the file and the png to the ditaa developer on
SourceForge. I'll report back if I find out anything.

Thanks!
-pd



[O] ditaa problems?

2016-11-15 Thread Peter Davis
I'm trying to include a ditaa diagram in a document, but the diagram is
not drawing correctly. I've attached the source file and the resulting
png. As you can see, the box around fieldGroup1 is not being drawn for
some reason. Other boxes appear to be correct.

Any clues? Am I missing something?

Thank you!
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com


containers-ditaa.org
Description: Binary data


[O] Still trying to get DocBook output

2016-11-07 Thread Peter Davis
Since DocBook XML is not supported by the new org-mode export
architecture, I tried following the recommendation here:

http://orgmode.org/worg/exporters/ox-overview.html

exporting to texi and then using makeinfo to convert to DocBook XML.
This worked reasonably smoothly, though it still required some hand
editing. In particular, there are a number of constructs that seem to be
completely different in org->makeinfo generated XML vs. the DocBook XML
my team is using. I'm not sure this is exhaustive, but here's what I've
found so far:

Effect MakeInfo XML output Desired DocBook XML id strings
Mixed_Case_Section_Title _lower_case_section_title chapter, sect
labels label="n.n" *n/a* Code example ...
... Graphic 


Definition list...
   ......
   ...
...  ... 


I hope this HTML table comes through.

I'm assuming I could create a fairly simple XSLT script to convert the
makeinfo output to the desired XML, but I'm wondering if there's a way
to pass a stylefile, DTD or schema to makeinfo to do this automatically.
Anyone know?

I looked at the help for makeinfo, but didn't see anything I recognized
as a way to do this.

Thanks,
-pd


--
  Peter Davis
www.techcurmudgeon.com


Re: [O] Graphics to HTML, LaTeX/PDF and DocBook?

2016-10-18 Thread Peter Davis
On Tue, Oct 18, 2016, at 11:13 AM, Eduardo Mercovich wrote:
> Hi Peter.
> 
> [...]
> > [...] However, LaTeX's \includesvg{} seems unable to find the .pdf_tex
> > file.
> > Interestingly, I managed to get the document to output to PDF by
> > manually running the inkscape command on each of the svg files. org-mode
> > seems to be trying to do this, but for some reason it's not working. 
> > Now, however, my text doesn't fit in the boxes. I wonder if there's a
> > way to make it all \footnotesize in the .pdf_tex files.
> 
> I'm outside that league, I'm sorry that I can't help... can you
> "intercept" somehow the middle results to help to diagnose the causes?
> 

Thanks, Eduardo. Perhaps I can get more feedback, but I don't have time
to investigate further right now. If I find anything further, I'll post
here.

Thank you.

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



[O] A few more questions

2016-10-17 Thread Peter Davis
I'm still trying to get a clear path from org-mode to DocBook, and I
have a few remaining obstacles. Any suggestions appreciated.

1) Is there any way to export syntax-highlighted source code as an SVG
or other graphics format? Converting to DocBook via texi, I lose all the
great syntax highlighting that makes the code snippets so much easier to
read.

2) Is there any way to include tables whose cells contain long lines of
text that should wrap? I can get this by manually breaking the text
across multiple rows of the table, and then re-editing in the HTML or
XML, but sheesh, that's a lot of work.

Thank you!

-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] LaTeX book export: Chapters?

2016-10-13 Thread Peter Davis

On Thu, Oct 13, 2016, at 10:15 AM, Eduardo Mercovich wrote:
> Hi Peter.
> 
> > I'm trying to export a LaTeX book (using scrbook style), but I don't
> > know how to make chapters. [...]
> 
> If you're not too tied to scrbook, the Memoir class is perfect for
> books, highly documented and very customizable.
> 

Hi, Eduardo,

No, I'm not tied to scrbook. That's just the first one I hit upon. I'll
certainly take a look at Memoir.

Thanks!

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Graphics to HTML, LaTeX/PDF and DocBook?

2016-10-13 Thread Peter Davis


On Thu, Oct 13, 2016, at 10:13 AM, Eduardo Mercovich wrote:
> Hi Peter.
> 
> >> > I have a document with a number of embedded dot graphics [...]
> 
> > I've decided to bite the bullet and install InkScape. However, I'm
> > having a hard time figuring out how to integrate this with org-mode.
> > [...]
> 
> I export from Inkscape to pdf and include the pdf file. Would that work
> for you?
> 
> HTH... 

Hi, Eduardo,

I'm creating the SVGs right in org-mode, using GraphViz dot, like this:

#+BEGIN_SRC dot :file mygraph.svg :cmdline -Kdot -Tsvg
...
#+END_SRC

org-mode then passes this through Inkscape with the command:

inkscape -z -C -f./mygraph.svg -A./mygraph.pdf --export-latex

This appears to be working, as I'm getting a .pdf_tex in the same
directory as my org file. However, LaTeX's \includesvg{} seems unable to
find the .pdf_tex file.

Interestingly, I managed to get the document to output to PDF by
manually running the inkscape command on each of the svg files. org-mode
seems to be trying to do this, but for some reason it's not working. 

Now, however, my text doesn't fit in the boxes. I wonder if there's a
way to make it all \footnotesize in the .pdf_tex files.

Thanks,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



[O] Using SVG with LaTeX/PDF output

2016-10-13 Thread Peter Davis
Is anyone familiar with using SVG in LaTeX/PDF output? I can find
information on the svg package online, but the problem I'm having may
have to do with org-mode interaction with LaTeX.

Basically, the svg package relies on inkscape to split svg graphics into
a PDF file containing the shapes, and a pdf_tex file containing the
text, with references to the PDF graphics. However, in my system, LaTeX
seems unable to find the pdf_tex file, although I've verified that it's
in the same directory, and appears to be correct. In other words, the
calls to Inkscape seem to be working, but then LaTeX is unable to find
the resulting output.

The relevent portion of the LaTeX log seems to be:


[15]
runsystem(inkscape -z -C -f./fdnpage.svg -A./fdnpage.pdf
--export-latex)...disa
bled (restricted).

 <./fdnpage.png, id=171, 675.52374pt x 148.555pt>
File: ./fdnpage.png Graphic file (type png)
 
Package pdftex.def Info: ./fdnpage.png used on input line 295.
(pdftex.def) Requested size: 422.77664pt x 92.97585pt.


! LaTeX Error: File `fdnpage.pdf_tex' not found.


Any clues on this?

Also, FWIW, here's the first line of the log:

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/W32TeX)
(preloaded format=pdflatex 2016.9.21)  13 OCT 2016 08:53


Thanks very much!

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Remaining document problems

2016-10-13 Thread Peter Davis


On Thu, Oct 13, 2016, at 04:08 AM, Eric S Fraga wrote:
> On Wednesday, 12 Oct 2016 at 16:35, Peter Davis wrote:
> 
> [...]
> 
> > Excellent!  Thanks to this, I now have great looking JavaScript
> > listings, and I can easily change the styling.
> 
> For completeness, would you please tell us your solution?  I'm sure this
> question will come up again at some point...
> 

Sure thing, Eric. Basically, I just added the following to my org file:


#+LaTeX_HEADER: \lstset{
#+LaTeX_HEADER:columns=fullflexible,
#+LaTeX_HEADER:keepspaces=true
#+LaTeX_HEADER:language=js,
#+LaTeX_HEADER:backgroundcolor=\color{lightgray},
#+LaTeX_HEADER:extendedchars=true, 
#+LaTeX_HEADER:basicstyle=\footnotesize\ttfamily,
#+LaTeX_HEADER:showstringspaces=false,
#+LaTeX_HEADER:showspaces=false,
#+LaTeX_HEADER:showtabs=false,
#+LaTeX_HEADER:numbers=left,
#+LaTeX_HEADER:numberstyle=\footnotesize,
#+LaTeX_HEADER:numbersep=9pt,
#+LaTeX_HEADER:tabsize=2,
#+LaTeX_HEADER:breaklines=true,
#+LaTeX_HEADER:   
prebreak=\mbox{\ensuremath{\color{red}\hookleftarrow}},
#+LaTeX_HEADER:   
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}},
#+LaTeX_HEADER:captionpos=b
#+LaTeX_HEADER: }
#+LaTeX_HEADER: \definecolor{lightgray}{rgb}{.9,.9,.9}
#+LaTeX_HEADER: \definecolor{darkgray}{rgb}{.4,.4,.4}
#+LaTeX_HEADER: \definecolor{purple}{rgb}{0.65, 0.12, 0.82}
#+LaTeX_HEADER: \definecolor{darkgreen}{rgb}{0.12, 0.65, 0.30}
#+LaTeX_HEADER: \lstdefinelanguage{js}{
#+LaTeX_HEADER:   keywords={typeof, new, true, false, catch, function,
return, null, catch, switch, var, if, in, while, do, else, case, break},
#+LaTeX_HEADER:   keywordstyle=\color{blue}\bfseries\footnotesize,
#+LaTeX_HEADER:   ndkeywords={class, export, boolean, throw, implements,
import, this},
#+LaTeX_HEADER:   ndkeywordstyle=\color{darkgray}\bfseries,
#+LaTeX_HEADER:   identifierstyle=\color{black},
#+LaTeX_HEADER:   sensitive=false,
#+LaTeX_HEADER:   comment=[l]{//},
#+LaTeX_HEADER:   morecomment=[s]{/*}{*/},
#+LaTeX_HEADER:   commentstyle=\color{darkgreen}\itshape,
#+LaTeX_HEADER:   stringstyle=\color{purple}\ttfamily,
#+LaTeX_HEADER:   morestring=[b]',
#+LaTeX_HEADER:   morestring=[b]"
#+LaTeX_HEADER: }


This way, I get syntax highlighting in org, in HTML output, and in
LaTeX/PDF output.

NOTE: The prebreak and postbreak definitions just add little red hooks
to the source block to show me where a line break was added. It's a
trick I picked up on this list a while ago.

Thanks!
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Remaining document problems

2016-10-12 Thread Peter Davis

On Wed, Oct 12, 2016, at 11:39 AM, Nick Dokos wrote:
> Peter Davis <p...@pfdstudio.com> writes:
> 
> > A. Source code listings
> >
> > 1) Source code blocks: Using
> >
> > #+BEGIN_SRC js
> >
> > works for HTML output, but not for LaTeX/PDF. It seems js is not
> > understood by the listings package, and I have to use java.
> >
> > 2) Even with java, the output is pretty ugly. Any way to get some color
> > in there?
> >
> >
> 
> It shouldn't take much to define a language environment for listings:
> 
> http://tex.stackexchange.com/questions/89574/language-option-supported-in-listings
> 
> Maybe that helps?
> 

Excellent!  Thanks to this, I now have great looking JavaScript
listings, and I can easily change the styling.

Thank you, Nick!

-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



[O] Remaining document problems

2016-10-12 Thread Peter Davis
After days and days of wrestling with this, I still seem to be unable to
solve some basic problems:

A. Source code listings

1) Source code blocks: Using

#+BEGIN_SRC js

works for HTML output, but not for LaTeX/PDF. It seems js is not
understood by the listings package, and I have to use java.

2) Even with java, the output is pretty ugly. Any way to get some color
in there?


B. Graphics

I've tried TikZ, GraphViz dot and ditaa. I believe TikZ has the most
potential, once I learn all the options and attributes. However, I'm
stuck on a couple of things:

1) How to I get TikZ graphics to fit on a page? The TikZ pictures are
always on a separate page in my org PDF output.

2) I'd really like to get all my graphics in SVG format, so the text
would be searchable, clickable, etc. However, I haven't found a way to
get TikZ output into SVG, or to get SVG into LaTeX. (Yes, I'm aware of
the svg package, which requires Inkscape, but even after installing
that, I can't get svg images to work in LaTeX.)

I've Googled all of these, and tried to understand the answers, though
many take a complete understanding of yet another package/tool/etc. It's
getting very discouraging. I'd really like to use org-mode, but I'm
wondering if AsciiDoc or even MarkDown might be easier.

Thanks,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Best diagram, image software?

2016-10-06 Thread Peter Davis

Ok, my problem was that the minted package was causing errors. Taking
that out lets me generate pdf.

Now to figure out how to generate other formats, to work with HTML and
LaTeX/PDF output.

Thanks, all!!

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Best diagram, image software?

2016-10-06 Thread Peter Davis

On Thu, Oct 6, 2016, at 03:25 PM, Clément Pit--Claudel wrote:
> On 2016-10-06 15:10, Peter Davis wrote:
> >> > (add-to-list 'org-latex-packages-alist
> >> >  '(("AUTO" "inputenc" t)
> >> >("" "color" t)
> >> >("" "minted" t)
> >> >("" "parskip" t)
> >> >("" "tikz" t)))
> 
> This looks wrong.  You're adding a single list to
> org-latex-package-alist, instead of adding multiple elements one-by-one.
> 

Ok, I tried changing it to:

(add-to-list 'org-latex-packages-alist '("AUTO" "inputenc" t))
(add-to-list 'org-latex-packages-alist '("" "color" t))
(add-to-list 'org-latex-packages-alist '("" "minted" t))
(add-to-list 'org-latex-packages-alist '("" "parskip" t))
(add-to-list 'org-latex-packages-alist '("" "tikz"))
(add-to-list 'org-latex-packages-alist '("" "listingsutf8"))

so now org-latex-packages-alist has the value

(("" "listingsutf8")
 ("" "tikz")
 ("" "parskip" t)
 ("" "minted" t)
 ("" "color" t)
 ("AUTO" "inputenc" t))

Still getting the failure on tikz output.

Thanks!
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Best diagram, image software?

2016-10-06 Thread Peter Davis


On Thu, Oct 6, 2016, at 02:59 PM, Nick Dokos wrote:
> Peter Davis <p...@pfdstudio.com> writes:
> 
> > On Thu, Oct 6, 2016, at 02:15 PM, Nick Dokos wrote:
> >> Peter Davis <p...@pfdstudio.com> writes:
> >> 
> >> > Since several people recommended TikZ, I decided to take a look at it.
> >> > It seems very powerful, but I'm unable to get any example to work. For
> >> > example, using the example here: 
> >> >
> >> > http://doblogit.com/posts/2015-10-23-org-graphics.html
> >> >
> >> 
> >> Did you add tikz to org-latex-packages-alist?
> >> 
> >
> > I do have:
> >
> > (add-to-list 'org-latex-packages-alist
> >  '(("AUTO" "inputenc" t)
> >("" "color" t)
> >("" "minted" t)
> >("" "parskip" t)
> >("" "tikz" t)))
> >
> > Any other setup work I need?
> >
> 
> Yes, but have you executed that? What does C-h v org-latex-pacakges-alist
> RET say?


org-latex-packages-alist is a variable defined in ‘org.el’.
Its value is (("" "tikz")
 ("" "listingsutf8")
 (("AUTO" "inputenc" t)
  ("" "color" t)
  ("" "minted" t)
  ("" "parskip" t)
  ("" "tikz" t)))



-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Best diagram, image software?

2016-10-06 Thread Peter Davis

On Thu, Oct 6, 2016, at 02:15 PM, Nick Dokos wrote:
> Peter Davis <p...@pfdstudio.com> writes:
> 
> > Since several people recommended TikZ, I decided to take a look at it.
> > It seems very powerful, but I'm unable to get any example to work. For
> > example, using the example here: 
> >
> > http://doblogit.com/posts/2015-10-23-org-graphics.html
> >
> 
> Did you add tikz to org-latex-packages-alist?
> 

I do have:

(add-to-list 'org-latex-packages-alist
 '(("AUTO" "inputenc" t)
   ("" "color" t)
   ("" "minted" t)
       ("" "parskip" t)
   ("" "tikz" t)))

Any other setup work I need?

Thanks!

-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Best diagram, image software?

2016-10-06 Thread Peter Davis

On Thu, Oct 6, 2016, at 01:59 PM, John Kitchin wrote:
> I tried this, and it worked for me. Check *Messages* for things like:
> Failed to create dvi file from
> /var/folders/5q/lllv2yf95hg_n6h6kjttbmdwgn/T/orgtex93386BIQ.tex
> 
> if you see that try manually building the tex file to see if there are
> LaTeX issues.
> 

Thanks, John. Just running pdflatex from the command line gives me:

! Undefined control sequence.
l.36 \tikz
  [remember picture]\node[coordinate,yshift=0.5em] (n1) {};

So perhaps TikZ itself is not available to some part of this.

Thanks,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Best diagram, image software?

2016-10-06 Thread Peter Davis
Since several people recommended TikZ, I decided to take a look at it.
It seems very powerful, but I'm unable to get any example to work. For
example, using the example here: 

http://doblogit.com/posts/2015-10-23-org-graphics.html

#+begin_src latex :exports results :results output raw :file
images/fsa.png
% Define block styles
\usetikzlibrary{shapes,arrows}
\tikzstyle{astate} = [circle, draw, text centered, font=\footnotesize,
fill=blue!25]
\tikzstyle{rstate} = [circle, draw, text centered, font=\footnotesize,
fill=red!25]

\begin{tikzpicture}[->,>=stealth', shorten >=1pt, auto, node
distance=2.8cm, semithick]
\node [astate] (1) at (0,0) {1};
\node [astate] (2) at (1,0) {2};
\node [rstate] (3) at (2,0) {3};
\path (1) edge [bend left] node {b} (2)
(2) edge node {b} (3)
(2) edge [bend left] node {a} (1)
(3) edge [loop above] node {(a, b)} (3);
\end{tikzpicture}
#+end_src


I get:

org-babel-exp process latex at line 6...
executing Latex code block...
org-latex-compile: PDF file
c:/Users/pdavis/AppData/Local/Temp/orgtex5448hGP.pdf wasn’t produced

I've got ImageMagick installed. I don't know how to debug this.


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Syntax highlighting for JSON/JavaScript/Java code examples

2016-10-05 Thread Peter Davis

On Wed, Oct 5, 2016, at 01:38 PM, Peter Davis wrote:
> I'm trying to include code examples in a doc. They're JSON, but 'js'
> doesn't seem to work, so I'm using 'java'. 
> 
> I just discovered that I don't have htmlize in my setup, so I added
> that. Now org is trying to do syntax highlighting, at least when
> exporting HTML, but I'm getting this:
> 
> org-babel-exp process dot at line 143...
> executing Dot code block...
> Wrote c:/Users/pdavis/AppData/Local/Temp/babel-8776xe_/ob-input-877621O
> Code block evaluation complete.
> face-attribute: Invalid face
> 
> 
> Any hints, or ideas for trouble-shooting this?

Nevermind. My bad.

I had copied the htmlize.el from an xemacs installation. Stupid.

I just installed htmlize via package manager and all seems good for now.
I'm even getting the syntax highlighting!

Thanks,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



[O] Syntax highlighting for JSON/JavaScript/Java code examples

2016-10-05 Thread Peter Davis
I'm trying to include code examples in a doc. They're JSON, but 'js'
doesn't seem to work, so I'm using 'java'. 

I just discovered that I don't have htmlize in my setup, so I added
that. Now org is trying to do syntax highlighting, at least when
exporting HTML, but I'm getting this:

org-babel-exp process dot at line 143...
executing Dot code block...
Wrote c:/Users/pdavis/AppData/Local/Temp/babel-8776xe_/ob-input-877621O
Code block evaluation complete.
face-attribute: Invalid face


Any hints, or ideas for trouble-shooting this?

Thanks!
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Misc. questions

2016-10-05 Thread Peter Davis
On Tue, Oct 4, 2016, at 03:02 PM, Peter Davis wrote:
> 
> 3) Still trying to find a way to get to DocBook XML (4, it turns out). I
> know the export page says to output texi (see #2 above) and then convert
> with makeinfo, but I have my doubts.  Of course, once I get texi working
> I'll be able to see for myself what information, if any, is lost.
> 

I now have a working routine for this on Windows 10, though it's not
pretty:

 1. Edit file in emacs org-mode
 2. Export to TeXInfo (texi) format
 3. Open Ubuntu/Bash window:
a. cp ../../../mnt/c/Users/pdavis/org/filename.texi ./
b. makeinfo --docbook filename.texi
c. cp ./filename.xml ../../../mnt/c/Users/pdavis/org
 4. Open filename.xml in emacs and replace header with db-xml-hdr.xml
 5. Open edited filename.xml in ArborText

Tedious, but it works. I can probably find ways to automate some of it,
such as a bash shell script to copy the file, run makeinfo, substitute
the header, and copy it back.

Thanks,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] [DOCS] Re: Making DocBook xml books from org mode?

2016-10-05 Thread Peter Davis

On Fri, Sep 30, 2016, at 03:37 PM, Nick Dokos wrote:
> Peter Davis <p...@pfdstudio.com> writes:
> 
> > Hi, Tom,
> >
> > On Fri, Sep 30, 2016, at 11:33 AM, Thomas S. Dye wrote:
> >> ... stuff excised ...
> >> 
> >> This was part of the old exporter.  It hasn't been ported to the new one.
> >
> > Thanks, Tom. Christian's post made me wonder if this was hiding in the
> > background somewhere.
> >
> 
> There is a footnote in the (incomplete) page
> 
> http://orgmode.org/worg/exporters/ox-overview.html
> 
> that says:
> 
> ,
> | (1) DocBook export, available in previous Org-mode versions, has not
> | currently been ported to the new exporter, however the new ox-texinfo
> | backend can generate DocBook format. Once file.texi is created via
> | ox-texinfo, simply execute:
> | 
> | makeinfo --docbook file.texi
> `
> 
> I wonder if that will meet the OP's requirements.
> 

I've been trying this, but on Windows 10, makeinfo keeps generating info
files, even with the --docbook switch specified. I can not get it to
output xml.

Thanks,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Misc. questions

2016-10-05 Thread Peter Davis


On Tue, Oct 4, 2016, at 04:21 PM, Stig Brautaset wrote:
> Peter Davis <p...@pfdstudio.com> writes:
> > 2) How does the export menu get set? 
> 
> I noticed there's a variable to control it, but whether that's the whole
> story I don't know. Anyway, try:
> 
> : M-x customize-variable RET org-export-backends
> 
> I'm afraid I can't help with the remaining questions.

Ah! The help (C-h v org-export-backends) for this variable says it must
be set before org.el is loaded. Otherwise, it can be modified with
customize, or with some code which is shown in the help.

It appears to have had the initial value (ascii html icalendar latex),
and also has md on my currently running emacs.

Thanks!

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Misc. questions

2016-10-04 Thread Peter Davis

On Tue, Oct 4, 2016, at 03:57 PM, John Hendy wrote:
> On Tue, Oct 4, 2016 at 2:02 PM, Peter Davis <p...@pfdstudio.com> wrote:
> > I apologize in advance for the flood of questions, but I'm using org in
> > new ways now for creating documentation, and running into a lot of
> > issues.
> >
> > 1) Is there a way to automatically say "yes" to all the "Evaluate code
> > block...?" questions when I export, so I don't have to keep typing "yes"
> > over and over again?
> 
> I googled "stop orgmode babel having to confirm" and got these:
> -
> http://emacs.stackexchange.com/questions/23946/how-can-i-stop-the-confirmation-to-evaluate-source-code-when-exporting-to-html
> -
> http://stackoverflow.com/questions/29952543/how-do-i-prevent-org-mode-from-executing-all-of-the-babel-source-blocks
> 
> Both refer to babel variables you can set.[1] You can put them in a
> single file (at the very top):
> 
> # -*- org-confirm-babel-evaluate: nil; -*-
> 
> Or add this to .emacs
> 
> (setq org-confirm-babel-evaluate nil)
> 
> Or use #+bind[2] within a file (similar to the first local variable
> example).
> 

Thanks, John (and others) for this! You've saved me a lot of annoying
typing.

> >
> > 2) How does the export menu get set? I'm loading, for example,
> > ox-texinfo, but I don't see the option to export texinfo when I type C-c
> > C-e.  I'm also loading ox-pandoc, which shows me a slew of export
> > formats on my Mac, but only two, file and buffer, on my Win10 machine.
> >
> 
> Guessing it's something on your side? Having never used it, I just added:
> 
> (require 'ox-texinfo)
> 
> I get an [i] option after C-e with various "Export to texinfo" options.

Interestingly, if I do M-x load-library ox-texinfo in emacs, it works
and I get the texinfo options. However, just loading it in my startup
file doesn't seem to be working. Curious.

> 
> > 4) Is json a valid language for #+BEGIN_SRC? I don't see any syntax
> > highlighting in HTML or LaTeX/PDF output, and I'm getting errors from
> > LaTeX:
> >
> > ! Package Listings Error: language json undefined.
> >
> > Come to think of it, I think the org-mode doc lists both JavaScript (js)
> > and JSON (json) as supported languages for code blocks, but the Listings
> > LaTeX package doesn't list either of these.
> >
> 
> Not sure where that was. I use this page as my reference and don't see
> it (but do see js):
> - http://orgmode.org/worg/org-contrib/babel/languages.html

Hmmm. I don't remember where I saw it offhand, but js didn't work
either. This page now tells me I need to have node.js installed.

Thanks!
-pd




-- 
  Peter Davis
  www.techcurmudgeon.com



[O] Misc. questions

2016-10-04 Thread Peter Davis
I apologize in advance for the flood of questions, but I'm using org in
new ways now for creating documentation, and running into a lot of
issues.

1) Is there a way to automatically say "yes" to all the "Evaluate code
block...?" questions when I export, so I don't have to keep typing "yes"
over and over again?

2) How does the export menu get set? I'm loading, for example,
ox-texinfo, but I don't see the option to export texinfo when I type C-c
C-e.  I'm also loading ox-pandoc, which shows me a slew of export
formats on my Mac, but only two, file and buffer, on my Win10 machine.

3) Still trying to find a way to get to DocBook XML (4, it turns out). I
know the export page says to output texi (see #2 above) and then convert
with makeinfo, but I have my doubts.  Of course, once I get texi working
I'll be able to see for myself what information, if any, is lost.

4) Is json a valid language for #+BEGIN_SRC? I don't see any syntax
highlighting in HTML or LaTeX/PDF output, and I'm getting errors from
LaTeX:

! Package Listings Error: language json undefined.

Come to think of it, I think the org-mode doc lists both JavaScript (js)
and JSON (json) as supported languages for code blocks, but the Listings
LaTeX package doesn't list either of these.

Thanks!
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] LaTeX book export: Chapters?

2016-10-04 Thread Peter Davis
On Tue, Oct 4, 2016, at 01:37 PM, Eric S Fraga wrote:
> On Tuesday,  4 Oct 2016 at 15:05, Peter Davis wrote:
> 
> [...]
> 
> > However, I'm having trouble creating a book that has no Parts ... just
> > Chapters.  If I only use '**' and lower headers, I still seem to get a
> > Part for each top level header.
> 
> How about creating your own LaTeX class entry in org-latex-classes that
> maps top level headlines to chapter, 2nd level to section, etc.?

Perfect! Thanks!

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Graphics to HTML, LaTeX/PDF and DocBook?

2016-10-04 Thread Peter Davis

On Tue, Oct 4, 2016, at 09:40 AM, Eric S Fraga wrote:
> On Tuesday,  4 Oct 2016 at 13:03, Peter Davis wrote:
> > I have a document with a number of embedded dot graphics (and one
> > ditaa). I'm trying to output these in some vector format, so they will
> > work across a wide range of devices. However I can't seem to find the
> > one true graphics format.
> 
> I don't think there is one true graphics format unfortunately.  What I
> would suggest is that you have your src block export the dot graphic to
> a specific format based on the export target.  For instance, if
> exporting to LaTeX/PDF, use PDF; if exporting to HTML, use SVG.  You can
> specify the actual destination using elisp code in the src block header.

Thanks, Eric. 

I've decided to bite the bullet and install InkScape. However, I'm
having a hard time figuring out how to integrate this with org-mode. Org
generates the \includegraphics commands, so I assume it understands the
svg package, which in turn understands inkscape, but I don't know how to
connect them.  There are bits and pieces around the Web, but I haven't
found a coherent explanation of how to set this up. Anyone know of one?

Thanks!
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] LaTeX book export: Chapters?

2016-10-04 Thread Peter Davis

On Tue, Oct 4, 2016, at 10:39 AM, Eric S Fraga wrote:
> On Tuesday,  4 Oct 2016 at 14:25, Peter Davis wrote:
> > I'm trying to export a LaTeX book (using scrbook style), but I don't
> > know how to make chapters. My book always comes out
> 
> You need to use or define an appropriate entry in org-latex-classes
> which has top level headings translated to parts and second level to
> chapters.  What have you used?

Aha! I did do this, but I just discovered I had defined this for
'article', not 'book'.

Fixing that helps a lot!

However, I'm having trouble creating a book that has no Parts ... just
Chapters.  If I only use '**' and lower headers, I still seem to get a
Part for each top level header.

Thanks!
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



[O] LaTeX book export: Chapters?

2016-10-04 Thread Peter Davis
I'm trying to export a LaTeX book (using scrbook style), but I don't
know how to make chapters. My book always comes out

Contents
0.1 First heading
0.2 Second heading

etc. I'm assuming making these headings into chapters will make the
table of contents come out right.

Clues?

Thanks,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Best diagram, image software?

2016-10-04 Thread Peter Davis

On Tue, Oct 4, 2016, at 09:11 AM, Lawrence Bottorff wrote:
> I know lots of you use Emacs and org mode to prepare scholarly books
> and papers, either doing the HTML or, more probably, the Latex export.
> Question: Let's say I want to produce a math text with Emacs/org-
> mode/Latex. What is the best way to make diagrams and images? I've
> seen things like Inkscape and LibreOffice Draw. But then there is
> Gnuplot and Tikz. Yes, what Tikz does seems optimal, but the learning
> curve is a year's sabbatical. Just wondering what you people are using
> to do your images.

I think it really depends on what kinds of diagrams and images you're
trying to use. I've been using embedded dot (GraphViz) diagrams with org
for a number of years, and I find it fantastically helpful for things
like graphs (nodes connected by arrows, optionally all labelled), data
structure diagrams, etc. ... the basic boxes and lines kind of drawing.

I also just discovered ditaa, which seems also good for boxes and lines,
but with more freedom (and more work to edit the input).

I've also used PlantUML for modelling diagrams.

I know others are using embedded R code to get data visualization
graphics automatically.

This page gives some examples:
http://ehneilsen.net/notebook/orgExamples/org-examples.html. There
should be an authoritative page on graphics formats, but I'm not
aware of one.

Most of these use separate packages to create the graphics, but there
are hooks in org to call the external programs and include the results
in the document.

-pd

--
  Peter Davis
  www.techcurmudgeon.com


[O] Graphics to HTML, LaTeX/PDF and DocBook?

2016-10-04 Thread Peter Davis
I have a document with a number of embedded dot graphics (and one
ditaa). I'm trying to output these in some vector format, so they will
work across a wide range of devices. However I can't seem to find the
one true graphics format.

png - too low-resolution
pdf - produces links on HTML output
svg - doesn't work with LaTeX (except with svg package, but I don't want
to depend on InkScape)

Are there other options? Suggestions? Can ditaa even do anything other
than png?

Thanks!
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Making DocBook xml books from org mode?

2016-10-03 Thread Peter Davis

On Sun, Oct 2, 2016, at 10:09 PM, Norman Walsh wrote:
> Joost Kremers <joostkrem...@fastmail.fm> writes:
> > There's also a `docbook' writer,
> > which has been part of Pandoc much longer and which outputs to (I
> > assume) DocBook v4. So I suspect you either need to upgrade your Pandoc
> > or make sure ox-pandoc sets the output format to `docbook'.
> 
> Depending on what your down-stream processing is like, you could
> just go with V4 DocBook from org and then convert that to V5 with
> the upgrade stylesheet.
> 

Thank you, Norm. I'll keep that in mind, but if I can get directly to
DocBook5, that seems easier and less "lossy."

Cheers,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Making DocBook xml books from org mode?

2016-10-03 Thread Peter Davis

On Sun, Oct 2, 2016, at 11:38 PM, Marcin Borkowski wrote:
> 
> On 2016-10-02, at 23:23, Peter Davis <p...@pfdstudio.com> wrote:
> 
> > I'm trying this again, on a Mac instead of Windows. I managed to get
> > ox-pandoc working. (It now displays an org export menu too big to fit on
> > my screen, and I can't figure out how to scroll it.)
> 
> Space/backspace?

I'll give it a try. Thanks, Marcin!

Now here's the real problem. I get this slew of pandoc output options on
my Mac, but on my Win10 machine, also with pandoc 1.117.2, I only get
two options:

[P] Markdown to buffer
[p] To file

I seem to be running the right ox-pandoc, so I'm not sure how to get all
the other options. 

I could run pandoc on the org file from a command line, but then the
embedded dot diagrams won't be evaluated. Perhaps export to HTML (or
some other format?) and then use pandoc to convert to docbook?

Thanks,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Making DocBook xml books from org mode?

2016-10-02 Thread Peter Davis
Joost Kremers <joostkrem...@fastmail.fm> writes:

> On Sun, Oct 02 2016, Peter Davis wrote:
>> Interesting. I just installed Pandoc on my Mac today with Homebrew, but
>> it claims to be 1.13.1. I'll try to find an update. Thanks.
>
> Check the "Installing" page on pandoc.org: there's a link to an OS X
> package on Pandoc's Github page:
>
> https://github.com/jgm/pandoc/releases/tag/1.17.2
>

Thanks again, Joost. I didn't find any installation instructions or kits, but I 
just copied the executable from the .pkg file to
/usr/local/bin on my machine, overwriting the 1.13 version that was there. That 
seems to have worked. I was able to export from org-mode to
docbook.

Thanks!
-pd




Re: [O] Making DocBook xml books from org mode?

2016-10-02 Thread Peter Davis
Joost Kremers <joostkrem...@fastmail.fm> writes:

> On Sun, Oct 02 2016, Peter Davis wrote:
>> When I try to export to docbook via pandoc (C-c C-e p d), I get
>>
>> Running pandoc with args: (-f org -t docbook5 -o 
>> /Users/peterdavis/Dropbox/HMH/my_file.dbk --parse-raw --mathjax --standalone 
>> /Users/peterdavis/Dropbox/HMH/my_file.tmp3362h9T.org)
>> Error occured.
>> pandoc: Unknown writer: docbook5
>>
>> Any guesses? Is there something additional I need to install in pandoc?
>
> The `docbook5' writer was added to Pandoc fairly recently, in version
> 1.17.1, released in June of this year.

Interesting. I just installed Pandoc on my Mac today with Homebrew, but
it claims to be 1.13.1. I'll try to find an update. Thanks.

> There's also a `docbook' writer,
> which has been part of Pandoc much longer and which outputs to (I
> assume) DocBook v4. So I suspect you either need to upgrade your Pandoc
> or make sure ox-pandoc sets the output format to `docbook'.

Well, I'm trying to output docbook5 anyway, so better to update my
installation.

Thank you.

-pd



Re: [O] Making DocBook xml books from org mode?

2016-10-02 Thread Peter Davis
Peter Davis <p...@pfdstudio.com> writes:

> To follow up ...
>
> On Thu, Sep 29, 2016, at 06:17 PM, Peter Davis wrote:
>> On Thu, Sep 29, 2016, at 03:23 PM, Joost Kremers wrote:
>> > 
>> > Pandoc can convert to Docbook, so that might be an option. Note that
>> > Pandoc also converts *from* Org, (although it cannot handle all of Org's
>> > capabilities), so depending on your needs, that might be a way to go
>> > directly from Org to Docbook.
>> >
>> 
>> Thank you. I did succeed in exporting from org to texi, and then
>> makeinfo'ing that into a DocBook xml, though a bit of hand editing was
>> necessary.
>> 
>
> I did manage to get this working. I found I had to export to Pandoc
> instead of running pandoc from a command line with the org file as
> input. Otherwise, the embedded dot code I used would not link to an
> image, but simply contain the dot code as source.
>
> Unfortunately, in trying to export to a file, I'm getting 
>
> Unable to resolve link "www.gimp.org/downloads"
>
> I don't know where this is coming from, or how to fix it.
>
> Finally, the 'Export with Pandoc' menu item only gives me two choices:
>   [P] Markdown to buffer
>   [p] To file
>
> I assume it's just generating Markdown, which would then have to be
> converted to docbook or whatever in a separate step. Any way to export
> to docbook directly, using Pandoc implicitly?

I'm trying this again, on a Mac instead of Windows. I managed to get
ox-pandoc working. (It now displays an org export menu too big to fit on
my screen, and I can't figure out how to scroll it.)

When I try to export to docbook via pandoc (C-c C-e p d), I get

Running pandoc with args: (-f org -t docbook5 -o 
/Users/peterdavis/Dropbox/HMH/my_file.dbk --parse-raw --mathjax --standalone 
/Users/peterdavis/Dropbox/HMH/my_file.tmp3362h9T.org)
Error occured. 
pandoc: Unknown writer: docbook5

Any guesses? Is there something additional I need to install in pandoc?

Thanks!

-pd




Re: [O] [DOCS] Re: Making DocBook xml books from org mode?

2016-09-30 Thread Peter Davis

On Fri, Sep 30, 2016, at 03:37 PM, Nick Dokos wrote:
> Peter Davis <p...@pfdstudio.com> writes:
> 
> > Hi, Tom,
> >
> > On Fri, Sep 30, 2016, at 11:33 AM, Thomas S. Dye wrote:
> >> ... stuff excised ...
> >> 
> >> This was part of the old exporter.  It hasn't been ported to the new one.
> >
> > Thanks, Tom. Christian's post made me wonder if this was hiding in the
> > background somewhere.
> >
> 
> There is a footnote in the (incomplete) page
> 
> http://orgmode.org/worg/exporters/ox-overview.html
> 
> that says:
> 
> ,
> | (1) DocBook export, available in previous Org-mode versions, has not
> | currently been ported to the new exporter, however the new ox-texinfo
> | backend can generate DocBook format. Once file.texi is created via
> | ox-texinfo, simply execute:
> | 
> | makeinfo --docbook file.texi
> `
> 
> I wonder if that will meet the OP's requirements.
> 

Hi, Nick,

Yes, I did see that, and I did succeed in creating a DocBook file by
exporting to texi and then converting with makeinfo. It's a bit
unwieldy, but it will do in a pinch. I'm not sure how this compares with
pandoc.

I'd really like to be able to set things like doctype, etc.
automatically, but there doesn't seem to be a way to do that in the org
file so that it would survive getting passed through texi into docbook
xml (or pandoc, for that matter).

Thanks,
-pd



-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] [DOCS] Re: Making DocBook xml books from org mode?

2016-09-30 Thread Peter Davis
Hi, Tom,

On Fri, Sep 30, 2016, at 11:33 AM, Thomas S. Dye wrote:
> ... stuff excised ...
> 
> This was part of the old exporter.  It hasn't been ported to the new one.

Thanks, Tom. Christian's post made me wonder if this was hiding in the
background somewhere.

Cheers,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Making DocBook xml books from org mode?

2016-09-30 Thread Peter Davis


On Fri, Sep 30, 2016, at 05:37 AM, Marcin Borkowski wrote:
> 
> On 2016-09-29, at 20:04, Peter Davis <p...@pfdstudio.com> wrote:
> 
> > I've started a new position in which I have to create and maintain a
> > large set of documents in DocBook xml format. For new books, I'd really
> > like to use org mode, since a) I'm already familiar with it, b) I love
> > it, and c) I believe it does (or can be made to do) nearly everything I
> > need.
> 
> Nice.  Of many things XML is ill-suited to, marking text up is a nice
> exception: it seems really good at it (definitely way better than LaTeX,
> of which I'm a great fan!).
>

I'm also a big LaTeX fan, but I don't use it often enough to remember
everything I need. I rely on copying stretches from documents I created
earlier, or constantly having to Google for solutions.

One thing I like about org-mode for creating documents (as opposed to
all its other uses), is the fact that I can easily remember the simple
mark-up, see reminders on screen while editing, and easily generate HTML
and PDF.
 
> >  3. The direct route from org to DocBook xml seems to be missing. From
> 
> Why not start with the HTML exporter and write your own one?  It's quite
> fun, and can be done in reasonable time.
>

For some definition of "reasonable." Seriously, I might want to do this
as an exercise sometime, but I can't wait for that right now.

> 
> >  4. [LONGSHOT] Is there any way to /import/ docbook xml into org mode?
> 
> XSLT?
>

Yes, that's a good option I hadn't considered.

> 
> Hth,
> 

Definitely. Thanks!

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] [DOCS] Re: Making DocBook xml books from org mode?

2016-09-30 Thread Peter Davis


On Fri, Sep 30, 2016, at 05:16 AM, Christian Moe wrote:
> 
> Peter Davis writes:
> 
> >  3. The direct route from org to DocBook xml seems to be missing.
> 
> It's gone extinct, but there is a fossil record of it in the online
> manual:
> 
>   http://orgmode.org/guide/DocBook-export.html
> 
> It's not linked to from the TOC, but turned up in a DuckDuckGo
> search. It should probably be carefully excavated and placed in the
> Museum of Paleorgology.

Thanks, Christian. This say I can use

C-c C-e D

but that gives me 'Invalid key', and it doesn't show up in the export
menu.

Thanks,
-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Making DocBook xml books from org mode?

2016-09-29 Thread Peter Davis
Dear Joost,

On Thu, Sep 29, 2016, at 03:23 PM, Joost Kremers wrote:
> 
> On Thu, Sep 29 2016, Peter Davis wrote:
> >
> > but the PDFs I'm getting still look like articles. (I copied the
> > above from some examples posted on this list a while ago. Thanks!)
> 
> Your LaTeX_CLASS is set to `koma-article', so that makes sense.
>

Ah, yes! Thanks.

> 
> >  2. Are there any advantages to considering MarkDown or AsciiDoc as
> >  opposed to org markup? (Again, my familiarity with org is a strong
> >  incentive here, but I'm willing to consider other options.)
> 
> There is a (IMHO) excellent markdown-mode available on Melpa, and if you
> use Pandoc[1] to convert your documents you have a lot of flexibility.
> There's also `pandoc-mode' (of which I'm the author), a minor mode that
> makes interacting with pandoc from within Emacs easier.
>

Bravo! Thank you again.

> 
> >  3. The direct route from org to DocBook xml seems to be missing. From
> >  what I gather, I can get there somehow via texi (but I don't even have
> >  that in org currently), or perhaps export to HTML and then convert that
> >  to db xml. Am I missing something? Is there some other route I should
> >  consider?
> 
> Pandoc can convert to Docbook, so that might be an option. Note that
> Pandoc also converts *from* Org, (although it cannot handle all of Org's
> capabilities), so depending on your needs, that might be a way to go
> directly from Org to Docbook.
>

Thank you. I did succeed in exporting from org to texi, and then
makeinfo'ing that into a DocBook xml, though a bit of hand editing was
necessary.

> 
> >  4. [LONGSHOT] Is there any way to /import/ docbook xml into org mode?
> 
> Pandoc also converts *from* Docbook, and can convert *to* Org, so again,
> that might be of help.
> 
> Of course, whether Pandoc can be useful to you really depends on your
> needs. Pandoc's internal document representation is based on Markdown,
> and by its very nature Markdown is more limited in it capabilities than
> Org. In essence, anything that cannot be handled by (Pandoc's version
> of) Markdown, cannot be handled by Pandoc in other formats.
>

Thanks. Sounds like Pandoc should really be in my toolkit.

> 
> HTH

Definitely!

Thanks,
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com



[O] Making DocBook xml books from org mode?

2016-09-29 Thread Peter Davis
I've started a new position in which I have to create and maintain a
large set of documents in DocBook xml format. For new books, I'd really
like to use org mode, since a) I'm already familiar with it, b) I love
it, and c) I believe it does (or can be made to do) nearly everything I
need.

However, after Googling around the org-mode/DocBook space, I'm left with
some questions.

1. I'm going to be creating books, as opposed to articles. My org-header
looks like this:

#+STARTUP: showeverything logdone
#+OPTIONS:   H:5 num:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
#+LaTeX_CLASS: koma-article
#+LaTeX_HEADER: \usepackage{listings}
#+LATEX_HEADER: \setlength{\parskip}{2ex plus 4pt minus 2pt}
#+LATEX_HEADER: \setlength{\parindent}{0pt}
#+LATEX_HEADER: \renewcommand{\baselinestretch}{1.0}
#+LATEX_HEADER: \setlength{\topsep}{-10pt}
#+LATEX_HEADER: \setlength{\partopsep}{0pt}
#+LaTeX_HEADER: \usepackage{xcolor}
#+LaTeX_HEADER: \lstset{
#+LaTeX_HEADER: basicstyle=\ttfamily,
#+LaTeX_HEADER: breaklines=true,
#+LaTeX_HEADER:
prebreak=\mbox{\ensuremath{\color{red}\hookleftarrow}},
#+LaTeX_HEADER:
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}},
#+LaTeX_HEADER: columns=fullflexible,
#+LaTeX_HEADER: keepspaces=true
#+LaTeX_HEADER: }
#+LaTeX_CLASS_OPTIONS:
[book,letterpaper,times,12pt,listings-bw,microtype]

but the PDFs I'm getting still look like articles. (I copied the
above from some examples posted on this list a while ago. Thanks!)

 2. Are there any advantages to considering MarkDown or AsciiDoc as
 opposed to org markup? (Again, my familiarity with org is a strong
 incentive here, but I'm willing to consider other options.)

 3. The direct route from org to DocBook xml seems to be missing. From
 what I gather, I can get there somehow via texi (but I don't even have
 that in org currently), or perhaps export to HTML and then convert that
 to db xml. Am I missing something? Is there some other route I should
 consider?

 4. [LONGSHOT] Is there any way to /import/ docbook xml into org mode?

Thank you very much.

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] ANNOUNCE: GNU Hyperbole 6.0.1 for Emacs 24.4 - 25 is released

2016-07-29 Thread Peter Davis


On Thu, Jul 28, 2016, at 01:16 PM, Charles Philip Chan wrote:
> Robert Weiner <r...@gnu.org> writes:
> 
> > GNU Hyperbole (pronounced Ga-new Hi-per-bo-lee), or just Hyperbole, is
> > an amazing programmable hypertextual information management system
> > implemented as a GNU Emacs package.  This is the first public release
> > in 2016.
> 
> Wow, blast from the past. I remember using older versions of Hyperbole
> fondly and still miss it. Thank you for updating it. I look forward to
> using it. :-)

Yes, I remember using Hyperbole years ago, and trying unsuccessfully to
resurrect it several times in recent years. I'm very glad to see it
again!

-pd

-- 
  Peter Davis
  www.techcurmudgeon.com



Re: [O] Embedded dot not compiling>

2016-05-09 Thread Peter Davis
Eric S Fraga  writes:

> By the way, newish versions of org actually report back any error
> message from the babel block.  In this case, org tells me:
>
> Error: /tmp/babel-4890lUw/dot-48901c0: syntax error in line 3 near '['
>
> i.e. the first node line.

Thanks. I'm running 8.3.3, and didn't see any error messages.

Cheers,
-pd




Re: [O] Embedded dot not compiling>

2016-05-09 Thread Peter Davis
Eric S Fraga <e.fr...@ucl.ac.uk> writes:

> On Monday,  9 May 2016 at 16:02, Peter Davis wrote:
>> I've been using org-mode for a while, in some cases with embedded dot
>> code. This has worked pretty smoothly for me in the past, but
>> for some reason, I'm not getting any png output from my graphs
>> now. The doc I'm started is included below, in its entirety since
>> it's still pretty small.
>>
>> Anything jump out? I don't see any errors, but the png file is not created.
>
>> #+BEGIN_SRC dot :file brr.png :cmdline -Kdot -Tpng
>> digraph G {
>>   node [shape=box];
>>   node ssi [label="Seller signs in"];
>>   node sca [label="Seller creates asset"];
>>   node scp [label="Seller creates app"];
>
> Should you have "node" on each node line?  I thought nodes were simply
> lines with no keyword?

D'oh! Yes, that was it. Thank you!

-pd




[O] Embedded dot not compiling>

2016-05-09 Thread Peter Davis

I've been using org-mode for a while, in some cases with embedded dot code. 
This has worked pretty smoothly for me in the past, but
for some reason, I'm not getting any png output from my graphs now. The doc I'm 
started is included below, in its entirety since
it's still pretty small.

Anything jump out? I don't see any errors, but the png file is not created.

Thanks!
-pd



#+STARTUP: showeverything logdone
#+options: toc:nil num:nil
#+title: Test Flows


* Buyer rates/reviews

#+BEGIN_SRC dot :file brr.png :cmdline -Kdot -Tpng
digraph G {
  node [shape=box];
  node ssi [label="Seller signs in"];
  node sca [label="Seller creates asset"];
  node scp [label="Seller creates app"];
  node sso [label="Seller signs out"];
  node asi [label="Admin signs in"];
  node aaa [label="Admin approves asset"];
  node aap [label="Admin approves app"];
  node aso [label="Admin signs out"];
  node bsi [label="Buyer signs in"];
  node bpa [label="Buyer purchases asset"];
  node bpp [label="Buyer purchases app"];
  node brr [label="Buyer rates and/\nor reviews"];
  node bso [label="Buyer signs out"];

  ssi -> sca -> sso;
  asi -> aaa -> aso;
  bsi -> bpa -> brr -> bso;
}
#+END_SRC




Re: [O] Composing long tables

2016-04-25 Thread Peter Davis
Peter Davis <p...@pfdstudio.com> writes:

> Peter Davis <p...@pfdstudio.com> writes:
>
>> It seems that a lot of users would like to be able to create tables
>> with multi-line cells in org-mode. Both HTML and LaTeX/PDF support
>> this, so I think it would be very useful to have a way to do this in
>> org-mode directly. One syntax that comes to mind would be to simply
>> use a number of "|" characters at the start of a line/paragraph to
>> indicate the column:
>>
>> | This is column 1
>> || This is column 2, which might consist of a very long paragraph (or
>> | even multiple paragraphs) would could automatically wrap when
>> | exporting to LaTeX/PDF or to HTML (or to other table-friendly
>> | formats.)
>> ||| This is column 3,
>>  etc.
>>
>> Admittedly this is not as readable as a table when editing in org-mode, but 
>> it seems intuitively clear, and would certainly make creating tables for 
>> export easier.
>>
>> Just an idea. I'd welcome comments on this. (Note: I have nowhere near the 
>> knowledge of lisp or org-mode implementation to be able to do this.)
>
>
> I think Thunderbird put in those extra "|" on the column 2 item. It should 
> have been:
>
> | This is column 1
> || This is column 2, which might consist of a very long paragraph (or
> | even multiple paragraphs) would could automatically wrap when
> | |exporting to LaTeX/PDF or to HTML (or to other table-friendly
> | formats.)
> ||| This is column 3,
>  etc.
>

Well crap, Gnus did the same thing. What I intended was that the entire "This 
is column 2 ... other table-friendly formats.)" be on
one line, with no hard breaks.

-pd



Re: [O] Composing long tables

2016-04-25 Thread Peter Davis
Peter Davis <p...@pfdstudio.com> writes:

> It seems that a lot of users would like to be able to create tables
> with multi-line cells in org-mode. Both HTML and LaTeX/PDF support
> this, so I think it would be very useful to have a way to do this in
> org-mode directly. One syntax that comes to mind would be to simply
> use a number of "|" characters at the start of a line/paragraph to
> indicate the column:
>
> | This is column 1
> || This is column 2, which might consist of a very long paragraph (or
> | even multiple paragraphs) would could automatically wrap when
> | exporting to LaTeX/PDF or to HTML (or to other table-friendly
> | formats.)
> ||| This is column 3,
>  etc.
>
> Admittedly this is not as readable as a table when editing in org-mode, but 
> it seems intuitively clear, and would certainly make creating tables for 
> export easier.
>
> Just an idea. I'd welcome comments on this. (Note: I have nowhere near the 
> knowledge of lisp or org-mode implementation to be able to do this.)


I think Thunderbird put in those extra "|" on the column 2 item. It should have 
been:

| This is column 1
|| This is column 2, which might consist of a very long paragraph (or even 
multiple paragraphs) would could automatically wrap when |exporting to 
LaTeX/PDF or to HTML (or to other table-friendly formats.)
||| This is column 3,
 etc.

-pd




[O] Composing long tables

2016-04-25 Thread Peter Davis
It seems that a lot of users would like to be able to create tables with 
multi-line cells in org-mode. Both HTML and LaTeX/PDF support this, so I 
think it would be very useful to have a way to do this in org-mode 
directly. One syntax that comes to mind would be to simply use a number 
of "|" characters at the start of a line/paragraph to indicate the column:


| This is column 1
|| This is column 2, which might consist of a very long paragraph (or 
even multiple paragraphs) would could automatically wrap when exporting 
to LaTeX/PDF or to HTML (or to other table-friendly formats.)

||| This is column 3,
 etc.

Admittedly this is not as readable as a table when editing in org-mode, 
but it seems intuitively clear, and would certainly make creating tables 
for export easier.


Just an idea. I'd welcome comments on this. (Note: I have nowhere near 
the knowledge of lisp or org-mode implementation to be able to do this.)


Thanks,
-pd

--
----
Peter Davis
http://www.techcurmudgeon.com




Re: [O] Several %(expression) in org-agenda-prefix-format

2016-04-15 Thread Peter Davis



On 4/15/16 12:00 PM, Ken Mankoff wrote:

What about setting ":CATEGORY: PD v. BS" in the top level :PROPERTIES: drawer. 
Then in the agenda you'd see:

PD v BS:   My first pleadings



Speaking as PD here, I want to state that I have long been opposed to BS.

-pd

--
----
Peter Davis
http://www.techcurmudgeon.com




Re: [O] [OT] A new web browser‽

2016-04-11 Thread Peter Davis


On Sat, Apr 9, 2016, at 02:09 PM, Marcin Borkowski wrote:
> 
> eww ;-)
> 

I never played with eww before. It looks interesting, but seriously, is
there any way to cancel a large download? My emacs is completely locked
up now downloading an image from a site.

I assume it's all customized with lisp, and you can set it to not
download images except on request.

Thanks!
-pd


-- 
  Peter Davis
  www.techcurmudgeon.com
  www.timebums.com



Re: [O] org-mime-org-buffer-htmlize can't find back-end

2016-04-07 Thread Peter Davis


On 4/7/16 5:23 PM, Rasmus wrote:

Peter Davis <p...@pfdstudio.com> writes:


Actually, after re-reading the old exchange more carefully, it seems
that I already had (require 'ox-org) in my startup file, but
still got the error. However, manually loading the ox-org library
avoided the error.

So it seems that:

  1) the cause of the problem was never identified,
  2) manually loading ox-org avoids the problem, and,
  3) I guess I just haven't been using org-mime-org-buffer-htmlize on
this machine for a while, so I forgot about it.

Interestingly, this all works with no problems on my other MacBook.

Could you check that it doesn't load an old version of ox-org or similar?
E.g. check that find-library finds the right version.

Also, does the backtrace reveal anything useful?

I'll try to check when I get a chance.

Thanks,
-pd


--

Peter Davis
http://www.techcurmudgeon.com




  1   2   3   4   >