Re: bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week
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
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 > > 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
On Sat, Feb 24, 2018, at 7:18 PM, Peter Neilson wrote: > On Sat, 24 Feb 2018 19:01:25 -0500, Peter Davis > 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
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
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
On Thu, Oct 5, 2017, at 10:39 AM, Nicolas Goaziou wrote: > Hello, > > Peter Davis 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
> On Oct 4, 2017, at 8:48 AM, Eric S Fraga 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
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
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
On Tue, Oct 3, 2017, at 01:23 PM, Nick Dokos wrote: > Peter Davis 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
On Tue, Oct 3, 2017, at 10:37 AM, Nick Dokos wrote: > Peter Davis 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
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 :w
Re: [O] Trying to get chart from table working
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
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
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
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
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
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
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
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
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
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
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?
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?
On 9/17/17 11:38 AM, Nick Dokos wrote: Peter Davis 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?
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
Kaushal Modi writes: > On Fri, Jun 30, 2017 at 2:07 PM Peter Davis 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
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 (plain-text
Re: [O] Using org-mode via vSSH on iPad
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
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 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
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
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
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 : > > > > 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
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)
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)
Joost Kremers 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)
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
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
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
On 12/31/16 9:23 AM, Nicolas Goaziou wrote: Hello, Peter Davis 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
On 12/29/16 5:26 PM, Richard Lawrence wrote: Hi Peter, Peter Davis 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
Peter Davis 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
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
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
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
On Tue, Nov 22, 2016, at 03:00 AM, Alan Schmitt wrote: > On 2016-11-21 14:16, Peter Davis 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
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
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
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\"