Re: [O] src blocks not fontified
I need to download the htmlize.el from the org-mode git repos separately. After that, htmlize works magically and highlights the syntax in the resulting html without any extra markup. Thanks for the help. On Tue, Jun 3, 2014 at 11:53 AM, Nick Dokos ndo...@gmail.com wrote: Shiyuan gshy2...@gmail.com writes: I can only find htmlfontify in ELPA, but not htmlize. Which ELPA repository will have htmlize? Or I need to install the .el file manually. I can find the htmlize.el in the following link, but not sure it's up to date. http://www.emacswiki.org/emacs-ja/htmlize.el. htmlize.el is included in the contrib/lisp directory of org (but I'm not sure if contrib is part of the ELPA org distribution - it is available if you get org from the git repo or from the tarball). The one I have says: , | ;;; htmlize.el --- Convert buffer text and decorations to HTML. | | ;; Copyright (C) 1997-2013 Hrvoje Niksic | | ;; Author: Hrvoje Niksic hnik...@xemacs.org | ;; Keywords: hypermedia, extensions | ;; Version: 1.43 ` Nick
[O] inline images outside org
Hi I have recently switched from Aquamacs to railwaycat’s Emacs (https://github.com/railwaycat/emacs-mac-port) and noticed two things. First, inline images in org display really well and the erratic and jerky scrolling issues are completely gone, making inline images much more usable now. I don’t want to say anything bad about Aquamacs, which I enjoyed using but I don’t miss the more Mac-like alternative keystrokes much less than I thought I would. Perhaps it was about time to take the Emacs training wheels off. It is probably old news but railwaycat’s Emacs is really nice. But secondly I noticed that Emacs displays inline images even outside org, e.g. the splash screen contains an image that doubles as a link to www.gnu.org when clicked. How do I check the syntax of the underlying link of which I currently only see the pretty face? So far I have used Emacs really only to run org mode. This is probably where it shows that without the training wheels it is still a bumpy ride for me. Christoph
Re: [O] Babel Clojure example problems
Lawrence Bottorff borg...@gmail.com writes: I'm having trouble following the example page on babel and clojure ( http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html ). I believe I've done everything correctly, the first example works: all 3 blocks work fine for me #+begin_src clojure :results silent (+ 1 4) #+end_src #+begin_src clojure :results value [ 1 2 3 4] #+end_src #+results: | 1 | 2 | 3 | 4 | #+begin_src clojure :results value (def small-map {:a 2 :b 4 :c 8}) (:b small-map) #+end_src #+results: : 4 PS #+begin_src emacs-lisp (emacs-version) #+end_src #+results: : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7) : of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen #+begin_src emacs-lisp (call-interactively 'org-version) #+end_src #+results: : Org-mode version 8.2.6 (release_8.2.6-1123-g024a05 @ : /usr/share/emacs/24.3/lisp/org/lisp/) -- cheers, Thorsten
[O] How to list inactive timestamps and logged items together in agenda?
I want to create an agenda view which lets me list all items, Ive been working on in a certain time interval in chronological order. I have created an agenda which does that by listing all headings with inactice timestamps like that: (ip past 7d +3d agenda ((org-agenda-overriding-header Activities during last 7 days) (org-agenda-start-day -7d) (org-agenda-span 10) (org-agenda-repeating-timestamp-show-all nil) (org-agenda-include-inactive-timestamps t) (org-agenda-entry-types (quote (:deadline :timestamp :sexp) My problem is: it only lists items with an inactive timestamp, but not those which have been clocked in the observed time. Sure, in the same agenda I can type v c and then show the clocking history but it seems I can not have both at the same time. Is there a way to expand the above described agenda so that it also displays headings which have been clocked in/out during the agenda span? In theory, those timestamps already exist in the LOGBOOK drawer, but they seem to be ignored by the org-agenda-include-inactive-timestamps option). Kind regards Martin
[O] Scroll agenda to a certain line after refresh or creation?
Hi, I have an agenda view which lists all my activities during the last days to easily find them for adding info or continue working on them. It is defined as a custom agenda command like that: (ip past 7d +3d agenda ((org-agenda-overriding-header Activities during last 7 days) (org-agenda-start-day -7d) (org-agenda-span 10) (org-agenda-repeating-timestamp-show-all nil) (org-agenda-include-inactive-timestamps t) (org-agenda-entry-types (quote (:deadline :timestamp :sexp) This agenda view gets quite long and confusing for the eye. Can I let the agenda scroll automatically to the line with the current time, which looks like that (naturally, the time is not a constant) after building or rebuilding it? 13:24.. now - - - - - - - - - - - - - - - - - - - - - - - - - How can I apply a special face to this line to make it better visible (but only in this agenda view, not in others)? Kind regards Martin
Re: [O] src blocks not fontified
Shiyuan wrote: I need to download the htmlize.el from the org-mode git repos separately. After that, htmlize works magically and highlights the syntax in the resulting html without any extra markup. Thanks for the help. On Tue, Jun 3, 2014 at 11:53 AM, Nick Dokos ndo...@gmail.com wrote: Shiyuan gshy2...@gmail.com writes: I can only find htmlfontify in ELPA, but not htmlize. Which ELPA repository will have htmlize? Or I need to install the .el file manually. I can find the htmlize.el in the following link, but not sure it's up to date. http://www.emacswiki.org/emacs-ja/htmlize.el. htmlize.el is included in the contrib/lisp directory of org (but I'm not sure if contrib is part of the ELPA org distribution - it is available if you get org from the git repo or from the tarball). The one I have says: , | ;;; htmlize.el --- Convert buffer text and decorations to HTML. | | ;; Copyright (C) 1997-2013 Hrvoje Niksic | | ;; Author: Hrvoje Niksic hnik...@xemacs.org | ;; Keywords: hypermedia, extensions | ;; Version: 1.43 ` You can find it in ELPA. Mine: ╭ │ ;;; htmlize.el --- Convert buffer text and decorations to HTML. │ │ ;; Copyright (C) 1997-2003,2005,2006,2009,2011,2012 Hrvoje Niksic │ │ ;; Author: Hrvoje Niksic hnik...@xemacs.org │ ;; Keywords: hypermedia, extensions │ ;; Version: 20130207.1202 │ ;; X-Original-Version: 1.47 ╰ Best regards, Seb -- Sebastien Vauban
Re: [O] DTD prohibited
On 2014-06-04 12:52, AW wrote: Am Mittwoch, 4. Juni 2014, 17:04:14 schrieb Eric Abrahamsen: Eric S Fraga e.fr...@ucl.ac.uk writes: On Tuesday, 3 Jun 2014 at 22:14, AW wrote: [...] Hi, thank you, I started again digging into this strange thing and the culprit seems the first line of the html-file: ?xml version=1.0 encoding=utf-8? Seems like simply exporting as html5 might solve the problem. Yes, it does, thank you. But the price is that tabulars lose the frames and lines. I did not invest whether due to export without those elements or because Word had issues with html5. It's because the html5 export has no default style for tables -- before opening in word, try opening the html in a browser, you will see that xhtml-strict export adds style info to the table element, but xhtml5 doesn't. If you want the same style in html5 as html4, try the following preamble in your org file: #+HTML_DOCTYPE: xhtml5 #+HTML_HEAD: style type=text/css #+HTML_HEAD: table { #+HTML_HEAD: border-top: thin solid gray; #+HTML_HEAD: border-bottom: thin solid gray; #+HTML_HEAD: } #+HTML_HEAD: thead {border-bottom: thin solid grey;} #+HTML_HEAD: td, th {padding: 6px;} #+HTML_HEAD:/style FYI, here's the table definition output in html4: table border=2 cellspacing=0 cellpadding=6 rules=groups frame=hsides and html5 table rick
Re: [O] Babel Clojure example problems
Lawrence Bottorff borg...@gmail.com writes: I guess the question comes down to, Do I need to install ob-clojure.el and if so, what's the best way? ELPA doesn't have it. But then my (require 'ob-clojure) doesn't seem to throw an error. . . . why? for me its right there in /org-mode/lisp ,-- | /home/tj/gitclone/org-mode/lisp: | insgesamt 8108 | drwxr-xr-x 2 tj tj 12288 5. Jun 16:49 . | drwxr-xr-x 9 tj tj 4096 24. Apr 11:07 .. | -rw-r--r-- 1 tj tj 2525 23. Apr 17:32 Makefile | [...] | -rw-r--r-- 1 tj tj 4260 23. Apr 17:32 ob-clojure.el `-- and when two out of three source-blocks work, it must be there and installed, I would guess. Do you have: , | org-babel-load-languages is a variable defined in `org.el'. | [...] | Value: ((emacs-lisp . t) | (clojure . t) | (latex . t)) ` -- cheers, Thorsten
Re: [O] org-table: Reference *one* cell below a hline?
James Harkins jamshar...@gmail.com writes: On Friday, May 30, 2014 7:50:39 PM HKT, Bastien wrote: James Harkins jamshar...@gmail.com writes: I have this: | Section | Seconds | |--+-| | Theme| 54 | | 12/8 | 80 | | 6/8 | 66 | | Clarinet | 116 | | Oboe | 89 | | Bassoon | 60 | |--+-| | | | #+TBLFM: @II+1$2=vsum(@I$2..@II$2) When I run this from master, I get this user-error: Can't assign to hline relative reference which implies that hline relative references are not supported here. Don't you get this error? What version of Org and Emacs are you running? Org-version says Org-mode version 8.2.5f (release_8.2.5f-518-gd74205 @ /home/dlm/share/org-mode.git/lisp/) -- the latest commit in my working environment is af6f14d9. And, This is GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10). If assigning to an hline-relative reference is not supported, would it be a valid feature request? Not sure how hard it would be to implement, but at least in this particular case (getting to the last row or the last few rows of the table), I'd recommend against using hlines as a reference: use @, @, etc. instead. Do you have a need for an hline-relative reference somewhere in the middle of a table? Nick
Re: [O] Feature request: creating separate tables on same rows
Aldric Giacomoni trev...@gmail.com writes: I'd like to be able to create multiple tables on the same rows, like such: | Group | Name | | Something | Else | |--+--| |-+- --| | 1 | foo | | Yes | No | |--+--| |-+---| This might be based on a pretty fundamental misunderstanding of how to use tables, org-mode and emacs, but I would find it useful to be able to compare tables and making changes easily without scrolling too much. Someone on #emacs pointed me towards clone-indirect-buffer, which works for my purposes, but I figured I'd ask here and ask all you experts if this idea is reasonable or crazy-pants. 1+ for crazy-pants -- cheers, Thorsten
Re: [O] org-contacts email completion by tags
On Thu, Jun 5, 2014 at 7:50 AM, Daimrod daim...@gmail.com wrote: org-contacts-complete-group Here is a better function I think. It uses the builtin org-contacts database: (defun insert-emails-from-tags (tag-expression) insert emails from org-contacts that match the tags expression. For example: group-phd will match entries tagged with group but not with phd. (interactive sTags: ) (insert (mapconcat 'identity (loop for contact in (org-contacts-filter) for contact-name = (car contact) for email = (org-contacts-strip-link (car (org-contacts-split-property (or (cdr (assoc-string org-contacts-email-property (caddr contact))) for tags = (cdr (assoc TAGS (nth 2 contact))) for tags-list = (if tags (split-string (substring (cdr (assoc TAGS (nth 2 contact))) 1 -1) :) '()) if (let ((todo-only nil)) (eval (cdr (org-make-tags-matcher tag-expression collect (org-contacts-format-email contact-name email)) ,))) John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu
Re: [O] Fwd: Emphasizing multiple lines
Yup, looks like that's how it works over here, too -- as far as I know it won't automatically display the face when you close emphasis past a newline. It's only cosmetic, though -- export and whatnot will parse it correctly. My guess is there's no easy way around it... Hi Eric, Since this is only cosmetic, I will work with the default values. Thanks, M
Re: [O] Feature request: creating separate tables on same rows
With clone-indirect-buffer you'll get a twin copy of your original buffer. You are in effect editing the same buffer in two different , with some additional niceties like having separate modes and narrow-to-region, etc (see an example usage at http://demonastery.org/2013/04/emacs-narrow-to-region-indirect/). I don't see how this can help with your problem, though. On 06/05/2014 12:52 PM, Thorsten Jolitz wrote: Aldric Giacomoni trev...@gmail.com writes: I'd like to be able to create multiple tables on the same rows, like such: | Group | Name | | Something | Else | |--+--| |-+- --| | 1 | foo | | Yes | No | |--+--| |-+---| This might be based on a pretty fundamental misunderstanding of how to use tables, org-mode and emacs, but I would find it useful to be able to compare tables and making changes easily without scrolling too much. Someone on #emacs pointed me towards clone-indirect-buffer, which works for my purposes, but I figured I'd ask here and ask all you experts if this idea is reasonable or crazy-pants. 1+ for crazy-pants -- Omid Sent from my Emacs
Re: [O] Feature request: creating separate tables on same rows
I did -want- to do that. On Thu, Jun 5, 2014 at 4:08 PM, Omid omidl...@gmail.com wrote: Then I misunderstood you. I thought you wanted to create tables side by sides. This of course allows you to look at different parts of your buffer side by side, with the additional features I mentioned. On 06/05/2014 03:54 PM, Aldric Giacomoni wrote: Omid: The idea is C-x 3, clone-indirect-buffer, so I can see and modify the same buffer in two different places. So.. A workaround, not a solution. On Thu, Jun 5, 2014 at 3:28 PM, Omid omidl...@gmail.com mailto:omidl...@gmail.com wrote: With clone-indirect-buffer you'll get a twin copy of your original buffer. You are in effect editing the same buffer in two different , with some additional niceties like having separate modes and narrow-to-region, etc (see an example usage at http://demonastery.org/2013/04/emacs-narrow-to-region-indirect/). I don't see how this can help with your problem, though. On 06/05/2014 12:52 PM, Thorsten Jolitz wrote: Aldric Giacomoni trev...@gmail.com mailto:trev...@gmail.com writes: I'd like to be able to create multiple tables on the same rows, like such: | Group | Name | | Something | Else | |--+--| |-+- --| | 1 | foo | | Yes | No | |--+--| |-+---| This might be based on a pretty fundamental misunderstanding of how to use tables, org-mode and emacs, but I would find it useful to be able to compare tables and making changes easily without scrolling too much. Someone on #emacs pointed me towards clone-indirect-buffer, which works for my purposes, but I figured I'd ask here and ask all you experts if this idea is reasonable or crazy-pants. 1+ for crazy-pants -- Omid Sent from my Emacs -- Omid Sent from my Emacs
Re: [O] Feature request: creating separate tables on same rows
Understood, thank you very much for explaining it :) On Thu, Jun 5, 2014 at 7:06 PM, Jorge A. Alfaro-Murillo jorge.a.alf...@gmail.com wrote: Thorsten Jolitz tjol...@gmail.com writes: In Org-mode that would be (at least) very strange, but Org-mode uses backends for the final docs, so you might want to look at e.g. LaTeX multi-column styles and if Org-mode supports them somehow. But even if so, it might get complicated and using AucTex directly might be the better choice in such cases. I agree, in such cases I use AucTeX directly. You can use orgtbl-mode in your tex file to build the main data of the table in LaTeX in Org form, check: (info (org) A LaTeX example). Then add your multi-columns with: #+BEGIN_LaTeX \multirow{''num_rows''}{''width''}{''contents''} #+END_LaTeX If you want multi-rows: #+BEGIN_LaTeX \usepackage{multirow} \multirow{''num_rows''}{''width''}{''contents''} #+END_LaTeX A complete example, from a recent paper I was working on: #+BEGIN_LaTeX \documentclass{article} \usepackage{multirow} \usepackage{booktabs} \begin{document} \begin{table} \centering \begin{tabular}{cc} \toprule \multirow{2}{*}{Age-group} \multirow{2}{*}{$L-a$} \multirow{2}{*}{$p_{d}$} \multirow{2}{*}{$p_{h}$} \multicolumn{2}{c}{Likelihood} \\ \cmidrule(lr){5-6} Mean 95\% CI \\ \midrule 0-583.73 0.4 0.0141 0.38009 $[0.24024,\,0.53638]$\\ 5-17 74.78 0.1 0.0006 0.19399 $[0.10497,\,0.31382]$\\ 18-49 52.52 0.9 0.0042 0.12682 $[0.07216,\,0.20166]$\\ 50-64 30.10 0.00134 0.0193 0.12682 $[0.07216,\,0.20166]$\\ 65+14.19 0.01170 0.0421 0.17229 $[0.09871,\,0.26994]$\\ \bottomrule \end{tabular} \caption{Age-dependent health effect parameters.} \end{table} \end{document} #+END_LaTeX Everything between \midrule and \bottomrule is easier written with orgtbl-mode. Best, Jorge.
Re: [O] src blocks not fontified
Here is the setq for the usual places (setq package-archives '((original. http://tromey.com/elpa/;) (gnu . http://elpa.gnu.org/packages/;) (melpa . http://melpa.milkbox.net/packages/;) (marmalade . http://marmalade-repo.org/packages/;))) (package-initialize) Be aware that MELPA packages may not be as stable as others Omid Sent from my Emacs On 06/06/2014 01:51 AM, Shiyuan wrote: What ELPA repos you are using? Could you show me the value of C-h v package-archives? Thanks. On Thu, Jun 5, 2014 at 6:13 AM, Sebastien Vauban sva-n...@mygooglest.com mailto:sva-n...@mygooglest.com wrote: Shiyuan wrote: I need to download the htmlize.el from the org-mode git repos separately. After that, htmlize works magically and highlights the syntax in the resulting html without any extra markup. Thanks for the help. On Tue, Jun 3, 2014 at 11:53 AM, Nick Dokos ndo...@gmail.com mailto:ndo...@gmail.com wrote: Shiyuan gshy2...@gmail.com mailto:gshy2...@gmail.com writes: I can only find htmlfontify in ELPA, but not htmlize. Which ELPA repository will have htmlize? Or I need to install the .el file manually. I can find the htmlize.el in the following link, but not sure it's up to date. http://www.emacswiki.org/emacs-ja/htmlize.el. htmlize.el is included in the contrib/lisp directory of org (but I'm not sure if contrib is part of the ELPA org distribution - it is available if you get org from the git repo or from the tarball). The one I have says: , | ;;; htmlize.el --- Convert buffer text and decorations to HTML. | | ;; Copyright (C) 1997-2013 Hrvoje Niksic | | ;; Author: Hrvoje Niksic hnik...@xemacs.org mailto:hnik...@xemacs.org | ;; Keywords: hypermedia, extensions | ;; Version: 1.43 ` You can find it in ELPA. Mine: ╭ │ ;;; htmlize.el --- Convert buffer text and decorations to HTML. │ │ ;; Copyright (C) 1997-2003,2005,2006,2009,2011,2012 Hrvoje Niksic │ │ ;; Author: Hrvoje Niksic hnik...@xemacs.org mailto:hnik...@xemacs.org │ ;; Keywords: hypermedia, extensions │ ;; Version: 20130207.1202 │ ;; X-Original-Version: 1.47 ╰ Best regards, Seb -- Sebastien Vauban