Re: [O] why prepend "file://" to abs paths in html output?
Hello, Tim Cross writes: > Perhaps we need a way to easily set a context for web exports. If the > context is set, then use it, otherwise, use file:/// (actually, I > thought this was already there, but it has been a while since I did html > exports where links were necessary). The following patch implements `org-html-root', which allows to export file links as root-relative URL. I'm not sure the docstring is clear enough, tho. Also, HTML publishing process always bind the above to publishing directory, without user intervention. So, basically, upon exporting the following document to HTML: #+html_link_root: /tmp/ [[/tmp/unicorn.jpg]] the link becomes WDYT? Regards, -- Nicolas Goaziou
[O] How to paginate Babel Lisp output?
Hello, I have a very simple lisp output within Org Mode file, and it delivers list of lists with 4-5 elements, and it displays nicely as a text. #+BEGIN_SRC lisp :exports results (load #P"/home/data1/protected//lisp/load-some-files.lisp" :verbose nil :print nil) (sku-list-values-by-location :location 1369) #+END_SRC But when exporting LaTeX I get the result that the table is basically too long, even being printed over the page number and below, and does not even continue on the next page. Is there a way or customization to make it break pages automatically when there is long output from source blocks? Jean
[O] Tip: using Orgzly app on Android phones
Just a tip: when Orgzly application is downloaded from www.f-droid.org it represents Org Mode on Android which is good for notes, planning, and all files created in Orgzly can be then imported to GNU Emacs. I find it very usable. It is here: http://www.orgzly.com/help Jean
Re: [O] Android sync client
On Sat, 01 Jul 2017 11:59:35 +0100 Eric S Fraga wrote: > Do you need full 2-way synchronisation or would you want more one way > versus the other? I ask because I am more concerned about retrieving > items from other places to put in my org files as I live in emacs most > of the time. For that use case, I use an awk script to convert ICS > format files to org. I can send you that if you wish. Well, there are certain items which I have to do 'on-the-road', so I'd like to be able to mark them as done on my phone. Sincerely, Gour -- Even if you are considered to be the most sinful of all sinners, when you are situated in the boat of transcendental knowledge you will be able to cross over the ocean of miseries.
Re: [O] Android sync client
On Fri, 30 Jun 2017 12:51:04 +0200 Michael Ax wrote: > git-annex! Hmmm...I heard about but in the other contextl...as an option for a full-backup solution for my old multimedia collection, so have to investigate it again... Sincerely, Gour -- The spirit soul bewildered by the influence of false ego thinks himself the doer of activities that are in actuality carried out by the three modes of material nature.
Re: [O] org-plus-contrib, where is library-of-babel.org?
"Thomas S. Dye" writes: > Aloha ed...@openmail.cc, > > ed...@openmail.cc writes: > >>> Date: Thu, 06 Jul 2017 05:55:01 -1000 >>> From: "Thomas S. Dye" >>> Subject: Re: [O] org-plus-contrib, where is library-of-babel.org? >>> Message-ID: >>> >>> I'm wondering where to find library-of-babel.org in the ELPA >>> distribution of Org mode, org-plus-contrib. >> The only thing that I could do was create a file and load it every time >> with ~org-babel-lob-ingest~. I hope that helps you, and that you get >> your answer. I am also interested to know. > > Thanks for your response. > > Apparently, library-of-babel.org is not distributed with the Org mode > that ships with emacs. Not sure why that is. I'm guessing it's a > license issue? It will be in the next release (in /emacs/etc/org/). If there's a license issue it needs to be removed. http://git.savannah.gnu.org/cgit/emacs.git/tree/etc/org Rasmus -- What will be next?
Re: [O] org-plus-contrib, where is library-of-babel.org?
Rasmus writes: > "Thomas S. Dye" writes: [...] >> Apparently, library-of-babel.org is not distributed with the Org mode >> that ships with emacs. Not sure why that is. I'm guessing it's a >> license issue? > > It will be in the next release (in /emacs/etc/org/). If there's a license > issue it needs to be removed. > > http://git.savannah.gnu.org/cgit/emacs.git/tree/etc/org On the Emacs list, Glenn asked us to add a license to library-of-babel.org: https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00169.html At the time, I wondered whether that file had any contributors without copyright assignment. I briefly looked through the list of authors touching library-of-babel.org in the Org repo and the worg repo, and I didn't find any contributors that aren't included in the assignment list at http://orgmode.org/worg/org-contribute.html -- Kyle
Re: [O] How to paginate Babel Lisp output?
Hi Jean, Jean Louis writes: I have a very simple lisp output within Org Mode file, and it delivers list of lists with 4-5 elements, and it displays nicely as a text. (Do you mean: as a table?) #+BEGIN_SRC lisp :exports results (load #P"/home/data1/protected//lisp/load-some-files.lisp" :verbose nil :print nil) (sku-list-values-by-location :location 1369) #+END_SRC But when exporting LaTeX I get the result that the table is basically too long, even being printed over the page number and below, and does not even continue on the next page. Is there a way or customization to make it break pages automatically when there is long output from source blocks? If you are already getting your results as an Org table, try adding #+ATTR_LATEX: :environment longtable to that table. This will use the LaTeX longtable package and environment to format the table, which should take care of breaking it across pages. Best, Richard
Re: [O] Android sync client
On Sun, 02 Jul 2017 15:33:16 +0200 Pier wrote: > I use termux with emacs and org installed in it. I use a hosting > server and sync org files to-from there. That's interesting and worth exploring... Sincerely, Gour -- As a blazing fire turns firewood to ashes, O Arjuna, so does the fire of knowledge burn to ashes all reactions to material activities. pgp2U9xnGTwmb.pgp Description: OpenPGP digital signature
Re: [O] How to paginate Babel Lisp output?
On Sun, Jul 09, 2017 at 09:24:11AM -0700, Richard Lawrence wrote: > Hi Jean, > > Jean Louis writes: > > > I have a very simple lisp output within Org Mode file, and it delivers > > list of lists with 4-5 elements, and it displays nicely as a text. > > (Do you mean: as a table?) > > > #+BEGIN_SRC lisp :exports results (load > > #P"/home/data1/protected//lisp/load-some-files.lisp" :verbose nil :print > > nil) (sku-list-values-by-location :location 1369) #+END_SRC > > > > But when exporting LaTeX I get the result that the table is basically > > too long, even being printed over the page number and below, and does > > not even continue on the next page. > > > > Is there a way or customization to make it break pages automatically > > when there is long output from source blocks? > > If you are already getting your results as an Org table, try adding > > #+ATTR_LATEX: :environment longtable > > to that table. This will use the LaTeX longtable package and > environment to format the table, which should take care of breaking it > across pages. > > Best, > Richard That worked well, thank you!
[O] Babel support for Vala
Hi there, I have written a minimal Babel mode supporting the Vala[1][2] language based on both ob-template.el and ob-C.el. I would like to contribute it to lisp/contrib if you deem it useful. ob-vala.el is available here: https://github.com/mmitch/babel-vala so long Mitch [1] https://wiki.gnome.org/Projects/Vala [2] https://wiki.gnome.org/Projects/Vala/About PS: I'm neither fluent in Vala, Lisp or Orgmode - I stumbled across Vala and wanted to document how I write a simple Vala example, decided to try doing that Literate Programming style with Orgmode and then found out I had to write a Babel mode first ;-) -- Christian.Garbshttps://www.cgarbs.de Experience varies directly with equipment ruined.
Re: [O] org-plus-contrib, where is library-of-babel.org?
Kyle Meyer writes: > Rasmus writes: > >> "Thomas S. Dye" writes: > > [...] > >>> Apparently, library-of-babel.org is not distributed with the Org mode >>> that ships with emacs. Not sure why that is. I'm guessing it's a >>> license issue? >> >> It will be in the next release (in /emacs/etc/org/). If there's a license >> issue it needs to be removed. >> >> http://git.savannah.gnu.org/cgit/emacs.git/tree/etc/org > > On the Emacs list, Glenn asked us to add a license to > library-of-babel.org: > > https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00169.html Thanks, I missed that. Should I add the copyright header to Emacs repo and we backport it from there, or is it better to add it via a forthcoming 9.0.10 update? > At the time, I wondered whether that file had any contributors without > copyright assignment. I briefly looked through the list of authors > touching library-of-babel.org in the Org repo and the worg repo, and I > didn't find any contributors that aren't included in the assignment list > at http://orgmode.org/worg/org-contribute.html Great. Thanks. Rasmus -- El Rey ha muerto. ¡Larga vida al Rey!
[O] Bug: clocktable interprets tstart/tend incorrectly, maybe? [9.0.9 (9.0.9-636-gd39ccc-elpaplus @ /tmp/emacs/.emacs.d/elpa/org-plus-contrib-20170709/)]
Hi! I think clocktables may be parsing time zones incorrectly in :tstart and :tend, leading to incorrect output. Steps to reproduce: 1. Start a fresh Emacs within that same along the lines of: ~~ mkdir /tmp/emacs TZ=America/Chicago HOME=/tmp/emacs /path/to/emacs ~~ I *think* setting TZ to a non-UTC time zone is important to reproduce this. 2. Install latest org-mode from Git. I did this via package-install-file on a package I built from a Git checkout of the org-mode repository. 3. Open an org-mode buffer, e.g. C-x C-f ~/test.org RET. 4. Insert: ~~ #+BEGIN: clocktable :maxlevel 2 :scope file :step day :tstart "<2017-07-02 Sun>" :tend "<2017-07-09 Sun>" #+END: ~~ 5. Save the buffer. 6. Move point to the start of that dblock and C-c C-c to update it. Expected results: First step is "Daily report: [2017-07-02 Sun]" which matches the :tstart. Actual results: First step is "Daily report: [2017-07-01 Sat]", the day before the :tstart date. The last step is also 2017-07-07, not 2017-07-08 as I was expecting. I notice that as of 112c5ba479d, org-clocktable-steps parses :tstart and :tend with the ZONE argument to org-parse-time-string as T. I think this is causing org-parse-time-string to parse these user-entered dates as UTC rather than the user's local time as I would have expected. Changing org-clocktable-steps from doing (org-parse-time-string ts nil t) to (org-parse-time-string ts nil nil), and then the same for te as well, seems to fix this problem. But time/date math is hard, and this is just a guess as to where the problem might lie. Emacs : GNU Emacs 25.2.1 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G1421)) of 2017-04-24 Package: Org mode version 9.0.9 (9.0.9-636-gd39ccc-elpaplus @ /tmp/emacs/.emacs.d/elpa/org-plus-contrib-20170709/) current state: == (setq org-src-lang-modes '(("sclang" . sclang) ("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental) ("sqlite" . sql) ("calc" . fundamental) ("C" . c) ("cpp" . c++) ("C++" . c++) ("screen" . shell-script) ("shell" . sh) ("bash" . sh)) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(closure (htmlize-buffer-places org-html-format-table-no-css htmlize-css-name-prefix htmlize-output-type htmlize-output-type htmlize-css-name-prefix t) (_name contents) contents) org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-format-headline-function 'org-latex-format-headline-default-function org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(closure (t) (_ contents) contents) org-odt-format-headline-function 'org-odt-format-headline-default-function org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] (closure (org-inlinetask-min-level buffer-face-mode-face org-mode-map org-tbl-menu org-org-menu org-struct-menu org-entities org-last-state org-id-track-globally org-clock-start-time texmathp-why remember-data-file org-agenda-tags-todo-honor-ignore-options iswitchb-temp-buflist align-mode-rules-list org-emphasis-alist org-emphasis-regexp-components org-export-registered-backends org-modules org-babel-load-languages ffap-url-regexp t) nil (add-hook (quote change-major-mode-hook) (quote org-show-block-all) (quote append) (quote local)) ) (closure (org-bracket-link-regexp org-src-window-setup *this* org-babel-confirm-evaluate-answer-no org-src-preserve-indentation org-src-lang-modes org-edit-src-content-indentation org-babel-library-of-babel t) nil (add-hook (quote change-major-mode-hook) (quote org-babel-show-result-all) (quote append) (quote local)) ) org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-bibtex-headline-format-function '(closure (org-agenda-search-view-always-boolean org-agenda-overr
Re: [O] org-plus-contrib, where is library-of-babel.org?
Rasmus writes: > Kyle Meyer writes: [...] >> On the Emacs list, Glenn asked us to add a license to >> library-of-babel.org: >> >> https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00169.html > > Thanks, I missed that. > > Should I add the copyright header to Emacs repo and we backport it from > there, or is it better to add it via a forthcoming 9.0.10 update? Please make the change directly in the Emacs repo. That way the Emacs developers know it's been addressed, and we minimize the time that the file is in the Emacs tree without a copyright header. Thanks. -- Kyle
Re: [O] sideways table
Date: Fri, 07 Jul 2017 18:20:27 +0100 From: Sharon Kimble Subject: [O] sideways table Message-ID: <87k23kgo4k@skimble.plus.com> So how can I use 'sideways' with a table please? Its not clear exactly what to do from the org-mode manual, and google doesn't provide any solutions either. Thanks Sharon. I know that this is not your question, but I suggest that you take another approach. You will eventually have a long table which is longer than a single page, and combining that with :float sideways is not going to help you (did not work for me in the past). I attach a working example that you might find useful. It includes the implementation with booktabs, if you want. I think that the only thing that you are missing is loading booktabs: #+LATEX_HEADER: \usepackage{booktabs} - ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options! #+STARTUP: indent #+LATEX_HEADER: \usepackage{tabu} * Long portrait table #+CAPTION: Long portrait table. #+ATTR_LATEX: :environment longtabu :align cXX | Symbol | Meaning | Expression | |+---+| |+---+| || *General* | | | $\Psi$ | Helmholtz free energy density | $\Psi_{m}\left(D_{m},I_{1},I_{3}\right) + \Psi_{f}\left(D_{f},D_{int},I_{4}\right) + \Psi_{m}\left(I_{1}, I_{2}, I_{3}, I_{4}, I_{5}, D_{int}\right) + \Psi_{D}\left(a\right)$ | * Long landscape table #+LATEX_HEADER: \usepackage{pdflscape} #+BEGIN_landscape #+CAPTION: Long landscape table #+ATTR_LATEX: :environment longtabu :align cXX | Symbol | Meaning | Expression | |+---+| |+---+| || *General* | | | $\Psi$ | Helmholtz free energy density | $\Psi_{m}\left(D_{m},I_{1},I_{3}\right) + \Psi_{f}\left(D_{f},D_{int},I_{4}\right) + \Psi_{m}\left(I_{1}, I_{2}, I_{3}, I_{4}, I_{5}, D_{int}\right) + \Psi_{D}\left(a\right)$ | #+END_landscape * table with colors # https://emacs.stackexchange.com/a/30306 #+LATEX_HEADER: \usepackage[table]{xcolor} #+CAPTION: Table with colors. | hi | there | |--+| | this | @@latex:\cellcolor{blue!25}@@ that | | one | two| * Sideways table with colors Note that, by itself, you would need the header from [[*table with colors][table with colors]] #+CAPTION: Sideways table with colors. #+ATTR_LATEX: :float sideways | hi | there | |--+| | this | @@latex:\cellcolor{blue!25}@@ that | | one | two| * Booktabs table #+LATEX_HEADER: \usepackage{booktabs} #+CAPTION: Booktabs table. #+ATTR_LATEX: :booktabs t | hi | there | |--+| | this | @@latex:\cellcolor{blue!25}@@ that | | one | two| * Sideways table with booktabs Remember to load booktabs as in [[*Booktabs table][Booktabs table]] #+CAPTION: Sideways table with booktabs. #+ATTR_LATEX: :float sideways :booktabs t | hi | there | |--+| | this | @@latex:\cellcolor{blue!25}@@ that | | one | two| * Longtabu with sideways
[O] Fixing mailto and irc links in ox-md.el
Hi! I would like to submit a patch to org mode, which fixes the behavior of mailto and irc links in markdown export. Previously, these org mode snippets: [[mailto:some.em...@server.net][Jane Doe]] [[irc:/irc.com/#emacs/bob][bob]] would export to: [Jane Doe](some.em...@server.net) [bob](/irc.com/#emacs/bob) which causes broken links in browsers when they try to view exported markdown. The new behavior exports them to: [Jane Doe](mailto:some.em...@server.net) [bob](irc:/irc.com/#emacs/bob) so that browsers can open the proper respective application when opening said links. The patch that I have made is very small (only one line), and is attached. There is an external report of this bug here: https://github.com/larstvei/ox-gfm/issues/17 This is my first time submitting a patch to anything big like org mode, so please let me know if I've done anything wrong or if anything seems amiss. Thanks for looking at this, and thanks for making/developing on org mode (it's changed my life completely)! -Jay Kamat From 0ef21fcd6394b3551a94a5878d414f2e7d17e372 Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Sun, 9 Jul 2017 17:50:09 -0700 Subject: [PATCH] ox-md.el: Fix export of irc and mailto links * lisp/ox-md.el (org-md-link): Add mailto and irc to links that pass their types through to markdown export See: https://github.com/larstvei/ox-gfm/issues/17 for an external bug report TINYCHANGE --- lisp/ox-md.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-md.el b/lisp/ox-md.el index e2b3d29e1..08e385282 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -448,7 +448,7 @@ a communication channel." (t (let* ((raw-path (org-element-property :path link)) (path (cond - ((member type '("http" "https" "ftp")) + ((member type '("http" "https" "ftp" "mailto" "irc")) (concat type ":" raw-path)) ((string= type "file") (org-export-file-uri (funcall link-org-files-as-md raw-path))) -- 2.11.0