Re: [O] org export for both latex and beamer, a recipe?
Many thanks for your replies. It helps. I will try to be more precise later on with an example. I do not forget this thread that I have opened. I will have soon a talk and a paper to publish on the base of this talk, I will goint to start with an org file. Sorry for the delay of my reply. I like org-mode . ;) Best wishes, Jo. 2014/1/20 Bastien b...@altern.org Nicolas Goaziou n.goaz...@gmail.com writes: This is already possible on a case by case basis : - @@beamer:1-@@ Item - @@beamer:2-@@ ... and as a frame property: * Headline :PROPERTIES: :BEAMER_ACT: [+-] :END: - item - item Great! Thanks for this :) -- Bastien
Re: [O] Debugger entered--Lisp error: (wrong-type-argument stringp nil)
Hi Bastien, Sebastien Vauban writes: Since a couple of days, I have the following trouble when capturing in one (or more?) files. I've not yet understood the problem. Anybody having tips? Can you check the value of `org-complex-heading-regexp-format' in the buffer where the error happens? After Org updates, and maybe others as well (?), I can't reproduce this anymore. Closing it. Thanks. Best regards, Seb -- Sebastien Vauban
Re: [O] bug#16440: 24.3.50; Some colors of the theme aren't respected in latest Emacs
Hello, See http://screencast.com/t/kvuLrvtVZ2l6 for a comparison of how the faces were displayed in older Emacs and in the current one. Giving more data points on this with a MINIMAL Emacs configuration (proving, if needs be, that it isn't due to something misconfigured in my long configuration file): $ /cygdrive/c/Program\ Files\ \(x86\)/emacs-r114715-20131019-w32/bin/emacs -q -l ~/.emacs-minimal.el vs. $ /cygdrive/c/Program\ Files\ \(x86\)/emacs-trunk/bin/emacs -q -l ~/.emacs-minimal.el (where trunk version is r116068 from 2014-01-19). - At startup already, the logo is black and white in the newest Emacs. See http://screencast.com/t/ZU2oEOrVqm. - When opening an Org file with code blocks, the code delimiters aren't correctly rendered. See http://screencast.com/t/gLcMVvvgd9Ac. Minimal Emacs configuration file: --8---cut here---start-8--- (message Loading Minimal Emacs...) (setq frame-title-format (format Minimal Emacs %s rev:%s of %sPID:%d ;; (capitalize (symbol-name system-type)) emacs-version (ignore-errors (replace-regexp-in-string .* emacs-bzr-version)) (format-time-string %Y-%m-%d emacs-build-time) (emacs-pid))) (add-to-list 'load-path ~/git/org-mode/lisp) (load-theme 'leuven t) --8---cut here---end---8--- Best regards, Seb -- Sebastien Vauban
[O] [BUG] org-timestamp-change does not respect argument 'n' for minutes
Bug or feature? Why is there this special handling of minutes? Evaluating ,- | (org-timestamp-up 3) `- with point on year, month, day, hour works as expected (3 units up), but not with point on minute. There it's always a 1 unit change due to this code snippet from org.el: #+begin_src emacs-lisp (defun org-timestamp-change (n optional what updown suppress-tmp-delay) ;; n = 3 in this case, what = minute [...] (when (and updown (eq org-ts-what 'minute) (not current-prefix-arg)) ;; This looks like s-up and s-down. Change by one rounding step. (setq n (* dm (cond (( n 0) 1) (( n 0) -1) (t 0 ; Why? (when (not (= 0 (setq rem (% (nth 1 time0) dm (setcar (cdr time0) (+ (nth 1 time0) (if ( n 0) (- rem) (- dm rem)) [...] ) #+end_src -- cheers, Thorsten
Re: [O] [BUG] org-timestamp-change does not respect argument 'n' for minutes
Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: Bug or feature? Why is there this special handling of minutes? Evaluating ,- | (org-timestamp-up 3) `- with point on year, month, day, hour works as expected (3 units up), but not with point on minute. I can't reproduce this. Minutes are updated correctly. Can you provide a recipe? -- Bastien
Re: [O] orgstruct-mode taking over C-c C-f
Hi Eric, Eric Abrahamsen e...@ericabrahamsen.net writes: I'm not sure how this is supposed to work, so I'm not quite sure what the proper solution is... This should now be fixed, please test and report any problem. Thanks, -- Bastien
Re: [O] How to customize option templates?
Hi Frederik, Frederik freak.f...@gmail.com writes: I just looked at `org-export-define-derived-backend' and saw all the org-koma-letter-* options -- this will ease most of the pain ;-) Some people, notably Viktor and Alan, rely on LCO files for such things. You can place LCO files somewhere in the texlive/miktex path and load them via #+LCO: file1 file2 . . .. But I did not yet figure out how to set options like LATEX_CLASS_OPTIONS or Write your own template. ox-koma-letter has supported it's own standard template (as compared to the default LaTeX template) for a while now. A description on how to use this feature is included in the preamble of the file. If you insist on not having non-file-based customizations use something like Emacs skeletons or yasnippet (not part of Emacs) to generate templates. how to use German language and smart quotes when composing a letter. Did you turn on smart quotes? (setq org-export-with-smart-quotes t). It works on my system with ox-koma-letter. Hope it helps, Rasmus -- Enough with the bla bla!
[O] \200\231 showing in org-mode post
When pasting from an article on the web into an org-mode buffer, I start with - In today’s digital age, we are needing more and more passwords to secure our data and our identity. and its displayed in the buffer as - In todayâ\200\231s digital age, we are needing more and more passwords to secure our data and our identity. I'm using 'simpleclip' which allows me to use 'super-c simpleclip-copy' as the keybinding. In my .emacs I have - (setq selection-coding-system 'utf-8) (prefer-coding-system 'utf-8) (setq x-select-enable-clipboard t) with 'LANG=en_GB.UTF-8' being the first line in my locale settings. How do I get it please that it pastes correctly from the desktop clipboard, and how do I get what is already pasted, and shows the aberrant behaviour, corrected please? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk efever = http://www.efever.blogspot.com/ efever = http://sharon04.livejournal.com/ my git repo = https://bitbucket.org/boudiccas/dots Debian testing, Fluxbox 1.3.5, emacs 24.3.50.1 Registered Linux user 561944 signature.asc Description: PGP signature
[O] Moving checkbox item to end of list when checked
I have the folowing: * Actions - [ ] A - [ ] B - [ ] C When on A I give ‘C-c C-c’ I get: * Actions - [X] A - [ ] B - [ ] C but I would like to get: * Actions - [ ] B - [ ] C - [X] A Is this possible? If not I could write an alias for it I think. Is there a command for going to the end of the list? -- Cecil Westerhof
Re: [O] [BUG] org-timestamp-change does not respect argument 'n' for minutes
Bastien b...@gnu.org writes: Hi Bastien, Thorsten Jolitz tjol...@gmail.com writes: Bug or feature? Why is there this special handling of minutes? Evaluating ,- | (org-timestamp-up 3) `- with point on year, month, day, hour works as expected (3 units up), but not with point on minute. I can't reproduce this. Minutes are updated correctly. Can you provide a recipe? I'm on the console: #+begin_src emacs-lisp (message Emacs: %s \n\nOrg: %s (emacs-version) (org-version)) #+end_src #+results: : Emacs: GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.6) : of 2014-01-18 on mnt-storage-buildroots-staging-x86_64-eric : : Org: 8.2.5g 1. Put point on the 4 in 19:34 ,-- | ** Cafe 2014-01-23 Do 19:34 `-- 2. M-: (org-timestamp-up 3) results in: ,-- | ** Cafe 2014-01-23 Do 19:35 `-- 3. cross-check that the other units work by repeating 1 and 2 with point on hour, month etc. -- cheers, Thorsten
Re: [O] (i/a)spell in org-mode - ignore links?
Hello, John Kitchin jkitc...@andrew.cmu.edu writes: hmm.. that is not my experience. In org 8.2.5f This is a stable release. The feature only exists in development branch (aka master). Regards, -- Nicolas Goaziou
Re: [O] Moving checkbox item to end of list when checked
Hi Cecil, Cecil Westerhof cldwester...@gmail.com writes: but I would like to get: * Actions - [ ] B - [ ] C - [X] A Is this possible? `C-c ^ x' to sort the list by checkbox status. But this is an additional step after ticking the checkbox. If not I could write an alias for it I think. Is there a command for going to the end of the list? Not a command, but an internal function you can explore: `org-list-get-list-end'. -- Bastien
Re: [O] Moving checkbox item to end of list when checked
Hello, Bastien b...@gnu.org writes: Cecil Westerhof cldwester...@gmail.com writes: but I would like to get: * Actions - [ ] B - [ ] C - [X] A Is this possible? `C-c ^ x' to sort the list by checkbox status. But this is an additional step after ticking the checkbox. If not I could write an alias for it I think. Is there a command for going to the end of the list? Not a command, but an internal function you can explore: `org-list-get-list-end'. I think that the higher-level function `org-list-send-item' would be useful too: (org-list-send-item (line-beginning-position) 'end (org-list-struct)) Regards, -- Nicolas Goaziou
Re: [O] Moving checkbox item to end of list when checked
2014/1/22 Nicolas Goaziou n.goaz...@gmail.com but I would like to get: * Actions - [ ] B - [ ] C - [X] A Is this possible? `C-c ^ x' to sort the list by checkbox status. But this is an additional step after ticking the checkbox. If not I could write an alias for it I think. Is there a command for going to the end of the list? Not a command, but an internal function you can explore: `org-list-get-list-end'. I think that the higher-level function `org-list-send-item' would be useful too: (org-list-send-item (line-beginning-position) 'end (org-list-struct)) In a simple case this does exactly what I want. I have to check what happens if it is several layers deep, but it looks certainly very promising. Thanks. -- Cecil Westerhof
Re: [O] bug in 8.2.5f for using tables as data in python?
Could it be a poorly rewritten patch? Original Daniel Gerber's proposal works for me. diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 1457682..523fd70 100644 (file) --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -137,7 +137,7 @@ specifying a variable of the same value. org-babel-python-hline-to (format (if (and (stringp var) (string-match [\n\r] var)) \\%S\\ %S) - var + (substring-no-properties var) (defun org-babel-python-table-or-string (results) Convert RESULTS into an appropriate elisp value. vs http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg00286.html diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 1457682..baa5764 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -137,7 +137,7 @@ specifying a variable of the same value. org-babel-python-hline-to (format (if (and (stringp var) (string-match [\n\r] var)) \\%S\\ %S) - var + (if (stringp var) (substring-no-properties var) var) (defun org-babel-python-table-or-string (results) Convert RESULTS into an appropriate elisp value. Miguel.
Re: [O] [BUG] org-timestamp-change does not respect argument 'n' for minutes
Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: 2. M-: (org-timestamp-up 3) results in: ,-- | ** Cafe 2014-01-23 Do 19:35 `-- 3. cross-check that the other units work by repeating 1 and 2 with point on hour, month etc. Yes, because it depends on `org-time-stamp-rounding-minutes'. -- Bastien
Re: [O] bug in 8.2.5f for using tables as data in python?
Hi Miguel, Miguel Ruiz rbeni...@yahoo.es writes: Could it be a poorly rewritten patch? Original Daniel Gerber's proposal works for me. Can you tell what's wrong in the current version of ob-python.el from git repo? Otherwise I'm not sure to understand. Thanks, -- Bastien
[O] Using Org-mode for mass-scheduling appointments
Hi list, I have the following problem: I want to schedule quite a few short (10 minutes, say) appointments with my students (mass is probably an exaggeration, but there are going to be around 50 of them). I'll have several time slots, and I want the students to reserve one for each of them. I'd like to publish a table with free/reserved info on the web. I don't want any fancy web forms and automatic reservation, just emails+manual updates of the table. Can you imagine any way Org (with tables, or maybe scheduling) might help, so that I don't have to write html by hand, for instance? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
Re: [O] Moving checkbox item to end of list when checked
2014/1/22 Cecil Westerhof cldwester...@gmail.com but I would like to get: * Actions - [ ] B - [ ] C - [X] A Is this possible? `C-c ^ x' to sort the list by checkbox status. But this is an additional step after ticking the checkbox. If not I could write an alias for it I think. Is there a command for going to the end of the list? Not a command, but an internal function you can explore: `org-list-get-list-end'. I think that the higher-level function `org-list-send-item' would be useful too: (org-list-send-item (line-beginning-position) 'end (org-list-struct)) In a simple case this does exactly what I want. I have to check what happens if it is several layers deep, but it looks certainly very promising. Thanks. It looks that it goes well also when the list is deeper. I need to do the following things: - check that I am on an element of a list - check that it is a checkbox - check that it is not checked I f I see it correctly this can all be done with (org-list-struct). I'll work it out. -- Cecil Westerhof
Re: [O] Moving checkbox item to end of list when checked
Cecil Westerhof cldwester...@gmail.com writes: I have the folowing: * Actions - [X] A - [ ] B - [ ] C When on A I give ‘C-c C-c’ I get: * Actions - [X] A - [ ] B - [ ] C but I would like to get: * Actions - [ ] B - [ ] C - [X] A Is this possible? If not I could write an alias for it I think. Is there a command for going to the end of the list? Your function could be implemented along the line of: 1. put an 'after' advice on `org-toggle-checkbox' 2. use function `org-list-send-item' with DEST 'end to send 'ITEM at point' to the end of 'STRUCT at point' in this advice #+begin_src emacs-lisp (defun org-list-send-item (item dest struct) Send ITEM to destination DEST. ...) #+end_src Its easy to get 'struct at point' with #+begin_src emacs-lisp (defun org-list-struct () Return structure of list at point. ...) #+end_src but I could not find an equivalent function to get the item at point. -- cheers, Thorsten
Re: [O] \200\231 showing in org-mode post
Sharon Kimble boudic...@talktalk.net writes: When pasting from an article on the web into an org-mode buffer, I start with - In today’s digital age, we are needing more and more passwords to secure our data and our identity. and its displayed in the buffer as - In todayâ\200\231s digital age, we are needing more and more passwords to secure our data and our identity. Is your org-mode buffer in UTF-8 (does it show a U at the left end of the modeline)? I would expect this behavior only when the org-mode buffer is in some 7- or 8-bit mode (ASCII or iso-8859-1). The apostrophe above is a typographic apostrophe (Unicode U+2019). If I copy the today’s part from above into a file foo.txt and I open the file in emacs using UTF-8 as the coding system, it shows as an apostrophe. If I open it using iso-8859-1, it shows as todayâ\200\231s. If I look at the file with a binary editor (od -c on Linux) I get: , | $ od -c apostrophe-utf8.txt | 000 t o d a y 342 200 231 s \n | 012 ` So it's probably just encoding confusion between the different programs that you use. I'm using 'simpleclip' which allows me to use 'super-c simpleclip-copy' as the keybinding. In my .emacs I have - (setq selection-coding-system 'utf-8) (prefer-coding-system 'utf-8) (setq x-select-enable-clipboard t) with 'LANG=en_GB.UTF-8' being the first line in my locale settings. How do I get it please that it pastes correctly from the desktop clipboard, and how do I get what is already pasted, and shows the aberrant behaviour, corrected please? If you just open the file in UTF-8, does the ugliness go away? -- Nick
Re: [O] [BUG] org-timestamp-change does not respect argument 'n' for minutes
Bastien b...@gnu.org writes: Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: 2. M-: (org-timestamp-up 3) results in: ,-- | ** Cafe 2014-01-23 Do 19:35 `-- 3. cross-check that the other units work by repeating 1 and 2 with point on hour, month etc. Yes, because it depends on `org-time-stamp-rounding-minutes'. Yes, but: ,--- | org-time-stamp-rounding-minutes is a variable defined in `org.el'. | Its value is (1 1) | | Original value was (0 5) | | Documentation: | Number of minutes to round time stamps to. | These are two values, the first applies when first creating a time stamp. | The second applies when changing it with the commands `S-up' and `S-down'. | When changing the time stamp, this means that it will change in steps | of N minutes, as given by the second value. | | When a setting is 0 or 1, insert the time unmodified. [...] `--- If I understand this correctly, ,- | M-: (org-timestamp-up 3) `- should change minutes - up 3 units when valus is (1 1) - up 15 units when valus is (0 5) ? But maybe I don't understand this correctly, its not so important anyway, so if you think it works as intended just forget about this 'noise'. -- cheers, Thorsten
Re: [O] Moving checkbox item to end of list when checked
Hello, Thorsten Jolitz tjol...@gmail.com writes: Your function could be implemented along the line of: 1. put an 'after' advice on `org-toggle-checkbox' See also `org-checkbox-statistics-hook' Its easy to get 'struct at point' with #+begin_src emacs-lisp (defun org-list-struct () Return structure of list at point. ...) #+end_src but I could not find an equivalent function to get the item at point. See `org-in-item-p'. Regards, -- Nicolas Goaziou
Re: [O] [BUG] org-timestamp-change does not respect argument 'n' for minutes
Thorsten Jolitz tjol...@gmail.com writes: ,- | M-: (org-timestamp-up 3) `- The 3 here means 3 minutes, not 3 steps up, so the rounding happens after minutes have been added. should change minutes - up 3 units when valus is (1 1) - up 15 units when valus is (0 5) ? But maybe I don't understand this correctly, its not so important anyway, so if you think it works as intended just forget about this 'noise'. Done :) -- Bastien
Re: [O] How to customize option templates?
OTOH, hard-coding the order of options doesn't work so well for back-ends, so the template could, at a bare minimum, follow the order specified in `org-export-define-backend'. I'll look into it. Done in master. I also reordered keywords in back-ends.
Re: [O] Moving checkbox item to end of list when checked
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Thorsten Jolitz tjol...@gmail.com writes: Your function could be implemented along the line of: 1. put an 'after' advice on `org-toggle-checkbox' See also `org-checkbox-statistics-hook' Its easy to get 'struct at point' with #+begin_src emacs-lisp (defun org-list-struct () Return structure of list at point. ...) #+end_src but I could not find an equivalent function to get the item at point. See `org-in-item-p'. Ok, thanks for the tips PS My original message apparently took 3 hours to make it to the mailing list, so it came a bit late to the party... -- cheers, Thorsten
Re: [O] bug in 8.2.5f for using tables as data in python?
Sorry, Bastien At this moment, in ob-python.el you can see: (defun org-babel-python-var-to-python (var) Convert an elisp value to a python variable. Convert an elisp value, VAR, into a string of python source code specifying a variable of the same value. (if (listp var) (concat [ (mapconcat #'org-babel-python-var-to-python var , ) ]) (if (equal var 'hline) org-babel-python-hline-to (format (if (and (stringp var) (string-match [\n\r] var)) \\%S\\ %S) (substring-no-properties var) But I understand that Daniel Gerber's proposal is (note the last line): (defun org-babel-python-var-to-python (var) Convert an elisp value to a python variable. Convert an elisp value, VAR, into a string of python source code specifying a variable of the same value. (if (listp var) (concat [ (mapconcat #'org-babel-python-var-to-python var , ) ]) (if (equal var 'hline) org-babel-python-hline-to (format (if (and (stringp var) (string-match [\n\r] var)) \\%S\\ %S) (if (stringp var) (substring-no-properties var) var) And, related to the problem of the OP, this last code works for me. Miguel El Miércoles 22 de enero de 2014 15:23, Bastien b...@gnu.org escribió: Hi Miguel, Miguel Ruiz rbeni...@yahoo.es writes: Could it be a poorly rewritten patch? Original Daniel Gerber's proposal works for me. Can you tell what's wrong in the current version of ob-python.el from git repo? Otherwise I'm not sure to understand. Thanks, -- Bastien
Re: [O] \200\231 showing in org-mode post
On Wed, 22 Jan 2014 08:28:46 -0500 Nick Dokos ndo...@gmail.com wrote: Sharon Kimble boudic...@talktalk.net writes: When pasting from an article on the web into an org-mode buffer, I start with - In today’s digital age, we are needing more and more passwords to secure our data and our identity. and its displayed in the buffer as - In todayâ\200\231s digital age, we are needing more and more passwords to secure our data and our identity. Is your org-mode buffer in UTF-8 (does it show a U at the left end of the modeline)? I would expect this behavior only when the org-mode buffer is in some 7- or 8-bit mode (ASCII or iso-8859-1). Yes. The apostrophe above is a typographic apostrophe (Unicode U+2019). If I copy the today’s part from above into a file foo.txt and I open the file in emacs using UTF-8 as the coding system, it shows as an apostrophe. If I open it using iso-8859-1, it shows as todayâ\200\231s. If I look at the file with a binary editor (od -c on Linux) I get: , | $ od -c apostrophe-utf8.txt | 000 t o d a y 342 200 231 s \n | 012 ` So it's probably just encoding confusion between the different programs that you use. I'm using 'simpleclip' which allows me to use 'super-c simpleclip-copy' as the keybinding. In my .emacs I have - (setq selection-coding-system 'utf-8) (prefer-coding-system 'utf-8) (setq x-select-enable-clipboard t) with 'LANG=en_GB.UTF-8' being the first line in my locale settings. How do I get it please that it pastes correctly from the desktop clipboard, and how do I get what is already pasted, and shows the aberrant behaviour, corrected please? If you just open the file in UTF-8, does the ugliness go away? I don't know how to do that, sorry. But, when I went through my foo.org file correcting them all, they all seemed to be either ' or . So I had a look in my .emacs and found that I was using - ;; Turn ' and into ‘posh’ “quotes” ;;(setq org-export-with-smart-quotes t) so I commented it out as you can see, and I'm now just carrying on as normal and just waiting to see if that clears it up. Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk efever = http://www.efever.blogspot.com/ efever = http://sharon04.livejournal.com/ my git repo = https://bitbucket.org/boudiccas/dots Debian testing, Fluxbox 1.3.5, emacs 24.3.50.1 Registered Linux user 561944 signature.asc Description: PGP signature
[O] org-cycle goes wrong when cursor at the end of the line
I have: * Testing *** Line one *** Line two *** Line tree When in overview mode and with the cursor at the end of the line (after ...), Tab does not work properly. In this case I just got: * Testing... *** Line tree By the way all asterisks are shown, where only the last one should be displayed. In ‘real life’ most often nothing at all happens. Not a biggy, cursor left and problem solved, but it is annoying. I am using: Org-mode version 8.2.1 (8.2.1-dist @ /usr/share/emacs/site-lisp/org/) But that is not really the problem, because it is a problem I have had for quite some time. -- Cecil Westerhof
Re: [O] bug in 8.2.5f for using tables as data in python?
Confirmed. I just pulled the latest repository and it is fixed! Hooray, now to finish exporting the manuscript I am trying to resubmit! 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 On Wed, Jan 22, 2014 at 11:11 AM, Bastien b...@gnu.org wrote: Miguel Ruiz rbeni...@yahoo.es writes: But I understand that Daniel Gerber's proposal is (note the last line): Got it now. Fixed, thanks! -- Bastien
[O] API problem
To solve a problem I have the following line in an org file: - [ ] B (org-list-set-checkbox (line-beginning-position) (org-list-struct) [X]) ITEM STRUCT CHECKBOX (org-list-send-item (line-beginning-position) 'end (org-list-struct)) ITEM DEST STRUCT Executing the org-list-send-item brings the entry to the end of the list, but executing org-list-set-checkbox does nothing. What am I doing wrong? Because looking at the API I use the right parameters. I also do not get an error message. -- Cecil Westerhof
Re: [O] API problem
Hello, Cecil Westerhof cldwester...@gmail.com writes: To solve a problem I have the following line in an org file: - [ ] B (org-list-set-checkbox (line-beginning-position) (org-list-struct) [X]) ITEM STRUCT CHECKBOX (org-list-send-item (line-beginning-position) 'end (org-list-struct)) ITEM DEST STRUCT Executing the org-list-send-item brings the entry to the end of the list, but executing org-list-set-checkbox does nothing. What am I doing wrong? `org-list-set-checkbox' modifies the structure, i.e., the internal list representation. It doesn't modify the buffer. You would have to apply the new structure to the buffer with `org-list-write-struct'. Anyway, it's much simpler to use `org-toggle-checkbox'. Regards, -- Nicolas Goaziou
[O] Aligned glosses in orgmode (for export to odt/doc)
I'm contemplating writing a linguistics article in orgmode because I know I will need to provide a doc(x) file (normally I would otherwise use LaTeX). One of things I will need to be able to is produce numbered examples with aligned interlinear glosses (like these: http://www.eva.mpg.de/lingua/resources/glossing-rules.php ). It's been a while since I've done this in a doc(x)-ish format, but the obvious ways would be (1) to do something with tab alignment or (2) use borderless/invisible tables. Can anyone suggest how this (or some other solution to producing interlinear glosses) might be implemented in an orgmode-odt/doc/docx setup? One potential solution would be an orgmode setup which produces borderless tables with an optimal width column setting. I don't know how to do this in orgmode though (or if it can be done currently). ~ Dr Benjamin Slade Dept. of Linguistics, Uni. of Utah pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19 ~ {sent by mu4e on Emacs running under GNU/Linux} (Choose Linux, Choose Freedom)
Re: [O] \200\231 showing in org-mode post
Sharon Kimble boudic...@talktalk.net writes: On Wed, 22 Jan 2014 08:28:46 -0500 Nick Dokos ndo...@gmail.com wrote: ... If you just open the file in UTF-8, does the ugliness go away? I don't know how to do that, sorry. C-x RET c utf-8 RET C-x C-f foo.txt RET Nick
Re: [O] bug in 8.2.5f for using tables as data in python?
Miguel Ruiz rbeni...@yahoo.es writes: But I understand that Daniel Gerber's proposal is (note the last line): Got it now. Fixed, thanks! -- Bastien
Re: [O] \200\231 showing in org-mode post
Sharon Kimble boudic...@talktalk.net writes: On Wed, 22 Jan 2014 08:28:46 -0500 Nick Dokos ndo...@gmail.com wrote: Sharon Kimble boudic...@talktalk.net writes: When pasting from an article on the web into an org-mode buffer, I start with - In today’s digital age, we are needing more and more passwords to secure our data and our identity. and its displayed in the buffer as - In todayâ\200\231s digital age, we are needing more and more passwords to secure our data and our identity. In my .emacs I have - (setq selection-coding-system 'utf-8) (prefer-coding-system 'utf-8) (setq x-select-enable-clipboard t) with 'LANG=en_GB.UTF-8' being the first line in my locale settings. How do I get it please that it pastes correctly from the desktop clipboard, and how do I get what is already pasted, and shows the aberrant behaviour, corrected please? If you just open the file in UTF-8, does the ugliness go away? I don't know how to do that, sorry. But, when I went through my foo.org file correcting them all, they all seemed to be either ' or . So I had a look in my .emacs and found that I was using - ;; Turn ' and into ‘posh’ “quotes” ;;(setq org-export-with-smart-quotes t) so I commented it out as you can see, and I'm now just carrying on as normal and just waiting to see if that clears it up. Now I'm *really* confused: org-export-with-smart-quotes only affects how an org file is exported. What does that have to do with pasting stuff from the web into an org file? Nick
Re: [O] Aligned glosses in orgmode (for export to odt/doc)
Benjamin Slade sl...@jnanam.net writes: One potential solution would be an orgmode setup which produces borderless tables with an optimal width column setting. I don't know how to do this in orgmode though (or if it can be done currently). This feature is available only in my private repo. If you are using Git see instructions at: http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00522.html (Search for Download) Once you download and copy the ox-odt.el file, make sure you do M-x byte-compile-file to create .elc file. If you are using ELPA see instructions at: http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg00518.html (Search for Untar) 1. Identity where your styles files come from. Look at the *Messages* buffer for clue. 2. Open OrgOdtContentTemplate.xml and find a style named CustomTableCell. Edit it so that it has no borders. Replace this style:style style:name=CustomTableCell style:family=table-cell style:table-cell-properties style:vertical-align=top fo:background-color=#ff fo:padding=0.097cm fo:border-left=0.002cm solid #00 fo:border-right=0.002cm solid #00 fo:border-top=0.002cm solid #00 fo:border-bottom=0.002cm solid #00 with this: style:style style:name=CustomTableCell style:family=table-cell style:table-cell-properties style:vertical-align=top fo:background-color=#ff fo:padding=0.097cm 3. Create a tables as below. (GriddedTable is part of C-h v `org-odt-table-styles'). WARNING: Don't try to understand the documentation. I don't it understand it myself. --8---cut here---start-8--- Rows will be in the ratio of 2:3:4 #+ATTR_ODT: :style GriddedTable | 1 | 2 | 3 | | _a_ | _b_ | _c_ | | _d_ | _e_ | _f_ | Rows will be in the ratio of 4:7:10. Table will occupy 80% of page width. #+ATTR_ODT: :rel-width 80 #+ATTR_ODT: :widths 3,6,9 #+ATTR_ODT: :style GriddedTable | 1 | 2 | 3 | | _a_ | _b_ | _c_ | | _d_ | _e_ | _f_ | --8---cut here---end---8--- 4. Export it. You will get the attached ODT file. test.odt Description: application/vnd.oasis.opendocument.text
Re: [O] \200\231 showing in org-mode post
On Wed, 22 Jan 2014 13:12:21 -0500 Nick Dokos ndo...@gmail.com wrote: Sharon Kimble boudic...@talktalk.net writes: On Wed, 22 Jan 2014 08:28:46 -0500 Nick Dokos ndo...@gmail.com wrote: Sharon Kimble boudic...@talktalk.net writes: When pasting from an article on the web into an org-mode buffer, I start with - In today’s digital age, we are needing more and more passwords to secure our data and our identity. and its displayed in the buffer as - In todayâ\200\231s digital age, we are needing more and more passwords to secure our data and our identity. In my .emacs I have - (setq selection-coding-system 'utf-8) (prefer-coding-system 'utf-8) (setq x-select-enable-clipboard t) with 'LANG=en_GB.UTF-8' being the first line in my locale settings. How do I get it please that it pastes correctly from the desktop clipboard, and how do I get what is already pasted, and shows the aberrant behaviour, corrected please? If you just open the file in UTF-8, does the ugliness go away? I don't know how to do that, sorry. But, when I went through my foo.org file correcting them all, they all seemed to be either ' or . So I had a look in my .emacs and found that I was using - ;; Turn ' and into ‘posh’ “quotes” ;;(setq org-export-with-smart-quotes t) so I commented it out as you can see, and I'm now just carrying on as normal and just waiting to see if that clears it up. Now I'm *really* confused: org-export-with-smart-quotes only affects how an org file is exported. What does that have to do with pasting stuff from the web into an org file? I don't know, but I've just created a new 'test2.org' file and pasted the exact same paragraph which showed the aberrant behaviour, and it worked and imported with no problems! What is shown in the org-file is /exactly/ the same as the source document! So, as the original document was an org2blog posting, I've just created a new blog posting and pasted the same paragraph into it. And again, its been imported with no problems, with no difference between the source document and the blog posting. So I don’t know whats going on, or what really cured it, but its now working perfectly! Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk efever = http://www.efever.blogspot.com/ efever = http://sharon04.livejournal.com/ my git repo = https://bitbucket.org/boudiccas/dots Debian testing, Fluxbox 1.3.5, emacs 24.3.50.1 Registered Linux user 561944 signature.asc Description: PGP signature
[O] Possible Bug Report: org-agenda-show-inherited-tags
This may simply be a functionality issue, but either way I'm looking for a workaround. With org-agenda-show-inherited-tags set to 'always, headlines with an inherited tag will match a tag search for agendas such as 'm' However, the inherited tags themselves remain invisible in many agendas (see below) I would love to have a setting or command to add to my custom agendas to force showing all inherited tags, for example in my daily agenda: Day-agenda (W04): Wednesday 22 January 2014 8:00.. Work-log:8:10- 8:53 Clocked: (0:43) W04 email, morning Should be an inherited tag here Work-log:8:53- 9:30 Clocked: (0:37) WORK 2014-01-20 Mon building user form for title lookups Work-log:9:30- 9:44 Clocked: (0:14) DONE Meet w/Sandra. Questions: - see instruction sheet Work-log:9:44-10:13 Clocked: (0:29) DONE Meet w/Sandra. Questions: 10:00.. Work-log: 10:00-10:14 Clocked: (0:14) Standup Work-log: 10:14.. Clocked: (-) WORK 2014-01-20 Mon building user form for title lookups 10:39.. now - - - - - - - - - - - - - - - - - - - - - - - - - I would love to have each line here include the tags inherited from the parent headline/task Thanks! Example file: * PPTDEV-514 Miscellaneous :514: ** W04 email, morning CLOCK: [2014-01-22 Wed 08:10]--[2014-01-22 Wed 08:53] = 0:43 *** TODO 2014-01-20 Mon did some work CLOCK: [2014-01-20 Mon 09:39]--[2014-01-20 Mon 10:24] = 0:45 C-c a m 514 Headlines with TAGS match: 514 Press `C-u r' to search again with new search string tags-test: PPTDEV-514 Miscellaneous :514: tags-test: W04 email, morning :514:: tags-test: TODO 2014-01-20 Mon did some work :514:: As expected. But: C-c a t Global list of TODO items of type: ALL Available with `N r': (0)[ALL] (1)TODO (2)WORK (3)TEST (4)HOLD (5)DONE (6)SPEC (7)JWRK (8)JRVW (9)JTST (10)JUSR (11)JDNE (12)LOG (13)NOTES tags-test: TODO 2014-01-20 Mon did some work No inherited tags are shown. Even if filtered using / 514, the appropriate entry shows up but does not reveal the inherited tag Subhan Michael Tindall | Software Developer | s...@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT
Re: [O] Bug: [babel] Order of definition of :var makes or breaks the results [8.2.5f (release_8.2.5f-545-g630096 @ /Users/rainerkrug/.emacs.d/org-mode/lisp/)]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Any confirmation of this bug? Rainer On 01/21/14, 15:17 , Rainer M Krug wrote: Depending on the order in which variables are declared, the definitions are correct or wrong. In the example below, if DUMMY is declared first and SPECIES and SPECIES2 are declared via :var+ there are missing rownames and / or colnames as well as mixups (see below). If DUMMY is declared *after the first* table (SPECIES) everything works as expected. I don't know if it is the same in other languages. Example: #+PROPERTY: rownames yes #+PROPERTY: colnames yes #+PROPERTY: var DUMMY=dummy * Species names and iespece codes #+NAME: SPECIES | | fullName| shortName | iespece | IFNName | color | |-+-+---+-+-+---| | fagus | Fagus sylvatica | fagus | 3 | fagus_sylvatica | red | | quercus | Quercus robur | quercus | 4 | quercus_robur | green | #+PROPERTY: var+ SPECIES=SPECIES * And some more #+NAME: SPECIES2 | | fullName | shortName | iespece | IFNName | color | |-+---+---+-+---+---| | no idea | | | | | | | quercus | Quercus robur | quercus | 4 | quercus_robur | green | #+PROPERTY: var+ SPECIES2=SPECIES2 * The code #+begin_src R :exports both :results output SPECIES #+end_src #+RESULTS: :fullName shortName iespece IFNName color : no idea Fagus sylvatica fagus 3 fagus_sylvatica red : quercus Quercus robur quercus 4 quercus_robur green #+begin_src R :exports both :results output SPECIES2 #+end_src #+RESULTS: : X X.1 X.2 X.3 : Quercus robur quercus 4 quercus_robur green Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Emacs : GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00) of 2013-12-13 on Rainers-MacBook-Pro-2.local Package: Org-mode version 8.2.5f (release_8.2.5f-545-g630096 @ /Users/rainerkrug/.emacs.d/org-mode/lisp/) current state: == (setq org-src-lang-modes '((plantuml . plantuml) (ocaml . tuareg) (elisp . emacs-lisp) (ditaa . artist) (asymptote . asy) (dot . fundamental) (sqlite . sql) (calc . fundamental) (C . c) (cpp . c++) (C++ . c++) (screen . shell-script)) org-hide-leading-stars t org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-ellipsis 〖 ✎ 〗 org-occur-hook '(org-first-headline-recenter) org-src-tab-acts-natively t org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-src-window-setup 'current-window org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'y-or-n-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-format-headline-function 'org-latex-format-headline-default-function org-startup-indented t org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-odt-format-headline-function 'ignore org-from-is-user-regexp \\Rainer M Krug\\ 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 '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-odt-format-inlinetask-function 'ignore org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-plantuml-jar-path /Users/rainerkrug/jar/plantuml.jar org-latex-packages-alist '(( color) ( listings)) org-ctrl-k-protect-subtree ask org-babel-tangle-lang-exts '((latex . tex) (emacs-lisp . el)) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-odt-format-drawer-function '(lambda (name contents) contents)
Re: [O] org-cycle goes wrong when cursor at the end of the line
Hi Cecil, Cecil Westerhof cldwester...@gmail.com writes: I have: * Testing *** Line one *** Line two *** Line tree When in overview mode and with the cursor at the end of the line (after ...), Tab does not work properly. In this case I just got: * Testing... *** Line tree I can reproduce this, but hardly count as a bug for me, as when the point is after the ... it means it is after (or on) the Line three and TAB on this line should show it. But in general, you don't want your point to end up after the three dots... By the way all asterisks are shown, where only the last one should be displayed. Try this #+STARTUP: hidestars odd * Testing *** Line one *** Line two *** Line tree HTH, -- Bastien
Re: [O] How to signal end of a section or subsection
Eric S Fraga e.fr...@ucl.ac.uk writes: I guess you can find plenty of discussions on this list on this topic so I won't rehash. Just to say that there has never been a convincing use case that is not easily addressed with description lists and inline tasks. The former can be made to look like encapsulated sections on export with appropriate customisation of the various export targets. I suggest you check out the list and think about your actual use case. I have a use case for beamer export, where I have had to use latex blocks to solve it. If I want: , | blah blah | | \begin{block}{Theorem} | foo bar | \end{block} | | more blah blah ` I don't know how to do it using the org machinery without going back to latex. Alan
Re: [O] How to signal end of a section or subsection
Hello, Alan Schmitt alan.schm...@polytechnique.org writes: I have a use case for beamer export, where I have had to use latex blocks to solve it. If I want: , | blah blah | | \begin{block}{Theorem} | foo bar | \end{block} | | more blah blah ` I don't know how to do it using the org machinery without going back to latex. The following should work: #+attr_latex: :options {Theorem} #+begin_block foo bar #+end_block Regards, -- Nicolas Goaziou
[O] Fwd: API problem
Did not go to the list. :'( -- Forwarded message -- From: Cecil Westerhof cldwester...@gmail.com Date: 2014/1/22 Subject: Re: API problem To: Nicolas Goaziou n.goaz...@gmail.com 2014/1/22 Nicolas Goaziou n.goaz...@gmail.com To solve a problem I have the following line in an org file: - [ ] B (org-list-set-checkbox (line-beginning-position) (org-list-struct) [X]) ITEM STRUCT CHECKBOX (org-list-send-item (line-beginning-position) 'end (org-list-struct)) ITEM DEST STRUCT Executing the org-list-send-item brings the entry to the end of the list, but executing org-list-set-checkbox does nothing. What am I doing wrong? `org-list-set-checkbox' modifies the structure, i.e., the internal list representation. It doesn't modify the buffer. You would have to apply the new structure to the buffer with `org-list-write-struct'. Just started today to want to do some thing, so I am a tabula rasa. ;-) Anyway, it's much simpler to use `org-toggle-checkbox'. That goes wrong when there is a marked region. I only want to set the current checkbox. So I have to work out how to use org-list-wrte-struct. -- Cecil Westerhof
Re: [O] API problem
2014/1/22 Cecil Westerhof cldwester...@gmail.com 2014/1/22 Nicolas Goaziou n.goaz...@gmail.com To solve a problem I have the following line in an org file: - [ ] B (org-list-set-checkbox (line-beginning-position) (org-list-struct) [X]) ITEM STRUCT CHECKBOX (org-list-send-item (line-beginning-position) 'end (org-list-struct)) ITEM DEST STRUCT Executing the org-list-send-item brings the entry to the end of the list, but executing org-list-set-checkbox does nothing. What am I doing wrong? `org-list-set-checkbox' modifies the structure, i.e., the internal list representation. It doesn't modify the buffer. You would have to apply the new structure to the buffer with `org-list-write-struct'. Just started today to want to do some thing, so I am a tabula rasa. ;-) Anyway, it's much simpler to use `org-toggle-checkbox'. That goes wrong when there is a marked region. I only want to set the current checkbox. So I have to work out how to use org-list-wrte-struct. I have an org-file wth the folowing: - [ ] A (setq struct (org-list-struct)) - [-] B (org-list-get-checkbox 41 struct) - [ ] C (org-list-set-checkbox 41 struct [X]) - [ ] D (org-list-get-checkbox 41 struct) - [ ] E (org-list-write-struct struct (org-list-parents-alist struct)) In A I fill the struct. B displays [-] C displays [X] D displays [X], so the struct is correctly updated. E gives: #marker in no buffer What is going wrong here? -- Cecil Westerhof
Re: [O] best way of customizing generated css to match bootstrap css
On Sat, Apr 6, 2013 at 5:37 AM, Marc Seibert o...@foogu.de wrote: Hi, After using jekyll and o-blog a while I just fiddled around more in depth with org-publishing. I must say it is starting to convince me to stop using to wrapp my org generated html files with a wrapper like jekyll etc. Org-publishing seems to have all I need to do it directly. But I need an advice how to get better integration with twitter bootstrap css which I realy like. I know there is HTML_CONTAINER_CLASS etc. but I don't want to define the class and the id once for every heading, table etc. What would be the best option for setting this globally? Should I edit org-htmlize.el or something like this or is there a way of defining the different class names with an easier way? Regards Marc Seibert I find myself in the same situation, having gone through both o-blog and jekyll previously. Were you able to find a solution ? What was it ? Is there anyone using anything else than the CSS that ogr-mode uses ? -- Mehul N. Sanghvi email: mehul.sang...@gmail.com
Re: [O] API problem
Cecil Westerhof cldwester...@gmail.com writes: I have an org-file wth the folowing: - [ ] A (setq struct (org-list-struct)) - [-] B (org-list-get-checkbox 41 struct) - [ ] C (org-list-set-checkbox 41 struct [X]) - [ ] D (org-list-get-checkbox 41 struct) - [ ] E (org-list-write-struct struct (org-list-parents-alist struct)) In A I fill the struct. B displays [-] C displays [X] D displays [X], so the struct is correctly updated. E gives: #marker in no buffer What is going wrong here? See `org-list-write-struct' docstring. Basically, STRUCT doesn't match real structure anymore since step C. You need to provide the original structure as a third argument so `org-list-write-struct' can modify buffer by set difference. (let* ((struct (org-list-struct)) (old (copy-tree struct))) (org-list-set-checkbox (line-beginning-position) struct [X]) (org-list-write-struct struct (org-list-parents-alist struct) old)) Regards, -- Nicolas Goaziou
Re: [O] best way of customizing generated css to match bootstrap css
I've had success exporting org to HTML and using it with http://gregfranko.com/jquery.tocify.js/ - which automatically generates a dynamically updating table of contents based on HTML headings and uses a Bootstrap theme and Bootstrap CSS. On Wed, Jan 22, 2014 at 3:35 PM, Mehul Sanghvi mehul.sang...@gmail.comwrote: On Sat, Apr 6, 2013 at 5:37 AM, Marc Seibert o...@foogu.de wrote: Hi, After using jekyll and o-blog a while I just fiddled around more in depth with org-publishing. I must say it is starting to convince me to stop using to wrapp my org generated html files with a wrapper like jekyll etc. Org-publishing seems to have all I need to do it directly. But I need an advice how to get better integration with twitter bootstrap css which I realy like. I know there is HTML_CONTAINER_CLASS etc. but I don't want to define the class and the id once for every heading, table etc. What would be the best option for setting this globally? Should I edit org-htmlize.el or something like this or is there a way of defining the different class names with an easier way? Regards Marc Seibert I find myself in the same situation, having gone through both o-blog and jekyll previously. Were you able to find a solution ? What was it ? Is there anyone using anything else than the CSS that ogr-mode uses ? -- Mehul N. Sanghvi email: mehul.sang...@gmail.com
[O] Passing tables as org variables to R - suggestion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi This is following my earlier mail, where I was wondering that tables are passed from org to R via temporary files. The more I think about it, the more it makes sense to me, as tables can sometimes be quite long. But there is still te problem of including these tables in tangled files. To make this easier, I would suggest the following: instead of using temporary files, use files in the directory of the org files, named something like ORGFILENAME.VARIABLENAME.csv This would make it possible, to keep the files along the tangled file for passing on. Any comments? Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJS4CzJAAoJENvXNx4PUvmCd70IAI97AFWFlK4Itxff+esONYBU wAjVuHHtAd4ma0/Xamgk+PBuo6oZWNEWBQIygIYePCMdwfMUtgp1SgLuy2i6gnI3 xMuVyox91Gifm2Yr6O2nOhdEceqga9FDIs5Wa+roav1vfvHP5yhoSt8k7+hLJD12 wr5FI1X+zktfKU47+BwWC2nC5q8ZkCqQxVSqzsGt+TXmgsyyKiMuIQgIX5onpRGY Zy39QwwtuGjXHf0Rq7wMdA3gcwijUOK9Lbf2zaQ6y2aB51uULBTQYh1hzZsQUgYE 7yRysPKXPPdy/FMOJC+Dga+PqtEyKBiyyF7vqFAkCBw5vnzcrRhmC7y2BjycmhE= =dxX3 -END PGP SIGNATURE-
Re: [O] best way of customizing generated css to match bootstrap css
Peter, Do you have an example of an org file in which you use it ? cheers, mehul On Wed, Jan 22, 2014 at 3:41 PM, Peter Salazar cycleofs...@gmail.comwrote: I've had success exporting org to HTML and using it with http://gregfranko.com/jquery.tocify.js/ - which automatically generates a dynamically updating table of contents based on HTML headings and uses a Bootstrap theme and Bootstrap CSS. On Wed, Jan 22, 2014 at 3:35 PM, Mehul Sanghvi mehul.sang...@gmail.comwrote: On Sat, Apr 6, 2013 at 5:37 AM, Marc Seibert o...@foogu.de wrote: Hi, After using jekyll and o-blog a while I just fiddled around more in depth with org-publishing. I must say it is starting to convince me to stop using to wrapp my org generated html files with a wrapper like jekyll etc. Org-publishing seems to have all I need to do it directly. But I need an advice how to get better integration with twitter bootstrap css which I realy like. I know there is HTML_CONTAINER_CLASS etc. but I don't want to define the class and the id once for every heading, table etc. What would be the best option for setting this globally? Should I edit org-htmlize.el or something like this or is there a way of defining the different class names with an easier way? Regards Marc Seibert I find myself in the same situation, having gone through both o-blog and jekyll previously. Were you able to find a solution ? What was it ? Is there anyone using anything else than the CSS that ogr-mode uses ? -- Mehul N. Sanghvi email: mehul.sang...@gmail.com -- Mehul N. Sanghvi email: mehul.sang...@gmail.com
Re: [O] How to signal end of a section or subsection
Nicolas Goaziou wrote: Alan Schmitt alan.schm...@polytechnique.org writes: I have a use case for beamer export, where I have had to use latex blocks to solve it. If I want: , | blah blah | | \begin{block}{Theorem} | foo bar | \end{block} | | more blah blah ` I don't know how to do it using the org machinery without going back to latex. The following should work: #+attr_latex: :options {Theorem} #+begin_block foo bar #+end_block I thought that the standard way was the following: --8---cut here---start-8--- *** :B_theorem: :PROPERTIES: :BEAMER_env: theorem :END: There is no largest prime number. *** End of theorem:B_ignoreheading: :PROPERTIES: :BEAMER_env: ignoreheading :END: --8---cut here---end---8--- Obviously, it's much less readeable... Maybe that solution should be deprecated, then? Best regards, Seb -- Sebastien Vauban
Re: [O] How to signal end of a section or subsection
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Alan Schmitt alan.schm...@polytechnique.org writes: I have a use case for beamer export, where I have had to use latex blocks to solve it. If I want: , | blah blah | | \begin{block}{Theorem} | foo bar | \end{block} | | more blah blah ` I don't know how to do it using the org machinery without going back to latex. The following should work: #+attr_latex: :options {Theorem} #+begin_block foo bar #+end_block Ah, nice, thank you, I did not know of this option. Alan
Re: [O] API problem
2014/1/22 Nicolas Goaziou n.goaz...@gmail.com Cecil Westerhof cldwester...@gmail.com writes: I have an org-file wth the folowing: - [ ] A (setq struct (org-list-struct)) - [-] B (org-list-get-checkbox 41 struct) - [ ] C (org-list-set-checkbox 41 struct [X]) - [ ] D (org-list-get-checkbox 41 struct) - [ ] E (org-list-write-struct struct (org-list-parents-alist struct)) In A I fill the struct. B displays [-] C displays [X] D displays [X], so the struct is correctly updated. E gives: #marker in no buffer What is going wrong here? See `org-list-write-struct' docstring. Basically, STRUCT doesn't match real structure anymore since step C. You need to provide the original structure as a third argument so `org-list-write-struct' can modify buffer by set difference. (let* ((struct (org-list-struct)) (old (copy-tree struct))) (org-list-set-checkbox (line-beginning-position) struct [X]) (org-list-write-struct struct (org-list-parents-alist struct) old)) This works, so I can continue. But one thing I do not understand. When you do an org-list-write-struct, you want to change the structure. So why is old-struct optional? -- Cecil Westerhof
[O] Fwd: org-cycle goes wrong when cursor at the end of the line
Went wrong agan. :'( I should repair Gnus. -- Forwarded message -- From: Cecil Westerhof cldwester...@gmail.com Date: 2014/1/22 Subject: Re: org-cycle goes wrong when cursor at the end of the line To: Bastien b...@gnu.org 2014/1/22 Bastien b...@gnu.org I have: * Testing *** Line one *** Line two *** Line tree When in overview mode and with the cursor at the end of the line (after ...), Tab does not work properly. In this case I just got: * Testing... *** Line tree I can reproduce this, but hardly count as a bug for me, as when the point is after the ... it means it is after (or on) the Line three and TAB on this line should show it. But in general, you don't want your point to end up after the three dots... I can not reproduce it at the moment, but sometimes the cursor is after the dots when using Tab to fold the tree. Also when you have: * Testing *** Line one *** Line two *** Line three * A long line When testing is closed and you have the cursor at the end of the ‘A long line’, then when you do cursor up, the cursor is after the dots. By the way all asterisks are shown, where only the last one should be displayed. Try this #+STARTUP: hidestars odd That is not the problem. When giving Tab when the cursor is not behind the dots, the asterisks are not shown.It is only a problem when you give a Tab with the cursor after the dots. -- Cecil Westerhof
Re: [O] How to signal end of a section or subsection
Hello, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: I thought that the standard way was the following: *** :B_theorem: :PROPERTIES: :BEAMER_env: theorem :END: There is no largest prime number. *** End of theorem :B_ignoreheading: :PROPERTIES: :BEAMER_env: ignoreheading :END: Obviously, it's much less readeable... But more powerful. For example, you can nest blocks of the same type with this syntax. Not with the other one. Maybe that solution should be deprecated, then? Certainly not. See above. Regards, -- Nicolas Goaziou
Re: [O] API problem
Hello, Cecil Westerhof cldwester...@gmail.com writes: But one thing I do not understand. When you do an org-list-write-struct, you want to change the structure. So why is old-struct optional? Good question. IIRC, it's just syntactic sugar since `org-list-write-struct' will do the `copy-tree' for you in most situations (i.e., when you don't use a function that modifies structure by side-effect). Regards, -- Nicolas Goaziou
Re: [O] Using Org-mode for mass-scheduling appointments
Do you mean besides making your table in org-mode and exporting it to an html file? you can update the org-file and reexport it whenever you get an email from a student. what else did you want to happen? 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 On Wed, Jan 22, 2014 at 6:55 AM, Marcin Borkowski mb...@wmi.amu.edu.plwrote: Hi list, I have the following problem: I want to schedule quite a few short (10 minutes, say) appointments with my students (mass is probably an exaggeration, but there are going to be around 50 of them). I'll have several time slots, and I want the students to reserve one for each of them. I'd like to publish a table with free/reserved info on the web. I don't want any fancy web forms and automatic reservation, just emails+manual updates of the table. Can you imagine any way Org (with tables, or maybe scheduling) might help, so that I don't have to write html by hand, for instance? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
[O] Check checkbox and move to end of list
The following function does (mostly) what I want: (defun dcbl-check-checkbox-and-move-to-end () (interactive) (save-excursion (let* ((struct (org-list-struct)) (struct-old (copy-tree struct)) (item (line-beginning-position)) (item-checkbox-type (org-list-get-checkbox item struct))) (if (not item-checkbox-type) (message No checkbox found) (if (string-equal item-checkbox-type [X]) (message Checkbox already checked) (org-list-set-checkbox item struct [X]) (org-list-write-struct struct (org-list-parents-alist struct) struct-old) (org-list-send-item item 'end struct)) I defined the following key to use it: (global-set-key [?\C-c ?\M-c]'dcbl-check-checkbox-and-move-to-end) For one reason or another did the following not work: (global-set-key [?\C-c e]'dcbl-check-checkbox-and-move-to-end) A bit strange, because the following does work: (global-set-key [?\C-c t]'dcbl-buffer-to-temp) There is still something to do, because if you have the following: - [ ] A - [-] B [2/3] - [ ] 1 - [X] 2 - [X] 3 - [ ] C - [ ] D - [ ] E And I use the function on 1, I get: - [ ] A - [X] B [2/3] - [X] 2 - [X] 3 - [X] 1 - [ ] C - [ ] D - [ ] E And I want to get: - [ ] A - [ ] C - [ ] D - [ ] E - [X] B [2/3] - [X] 2 - [X] 3 - [X] 1 But that is the following exercise. ;-) I also think it would be a good idea to change (org-list-send-item item 'end struct) to a call to a function. I think it would be useful to have a function to send a item to the end (or begin) of a list. When it could be improved: please let me know. Bastien: if you want to integrate it in org-mode, no problem. -- Cecil Westerhof
Re: [O] API problem
2014/1/22 Nicolas Goaziou n.goaz...@gmail.com See `org-list-write-struct' docstring. Basically, STRUCT doesn't match real structure anymore since step C. You need to provide the original structure as a third argument so `org-list-write-struct' can modify buffer by set difference. (let* ((struct (org-list-struct)) (old (copy-tree struct))) (org-list-set-checkbox (line-beginning-position) struct [X]) (org-list-write-struct struct (org-list-parents-alist struct) old)) I implemented it. See my post: Check checkbox and move to end of list -- Cecil Westerhof
Re: [O] Check checkbox and move to end of list
2014/1/23 Cecil Westerhof cldwester...@gmail.com I also think it would be a good idea to change (org-list-send-item item 'end struct) to a call to a function. I think it would be useful to have a function to send a item to the end (or begin) of a list. I know have the following: (defun dcbl-check-checkbox-and-move-to-end () (interactive) (save-excursion (let* ((struct (org-list-struct)) (struct-old (copy-tree struct)) (item (line-beginning-position)) (item-checkbox-type (org-list-get-checkbox item struct))) (if (not item-checkbox-type) (message No checkbox found) (if (string-equal item-checkbox-type [X]) (message Checkbox already checked) (org-list-set-checkbox item struct [X]) (org-list-write-struct struct (org-list-parents-alist struct) struct-old) (dcbl-move-item-to-end-of-list item)) (defun dcbl-move-item-to-begin-of-list (optional item) (interactive) (save-excursion (when item (goto-char item)) (org-list-send-item (line-beginning-position) 'begin (org-list-struct))) (previous-line)) (defun dcbl-move-item-to-end-of-list (optional item) (interactive) (save-excursion (when item (goto-char item)) (org-list-send-item (line-beginning-position) 'end (org-list-struct (global-set-key [?\C-c ?\M-a]'dcbl-move-item-to-begin-of-list) (global-set-key [?\C-c ?\M-c]'dcbl-check-checkbox-and-move-to-end) (global-set-key [?\C-c ?\M-e]'dcbl-move-item-to-end-of-list) -- Cecil Westerhof
[O] Search for defined property
I have trees in several agenda files with Effort properties and I'm trying to make an agenda view that shows all trees with this property defined. I know I can do 'M-x org-agenda m' to do a property search but this only seems to work searching for properties with a specific value. I'd like to see a list of all my trees I've committed Effort to. In my main org file I have a clock report which includes the Effort property and this works well for seeing Effort vs time worked, but for things I haven't clocked in to yet obviously nothing shows up. Is there a way I can view all trees which have a certain property defined or a (fairly simple) way to restructure the way I do things to accomodate this? Thanks
Re: [O] Check checkbox and move to end of list
2014/1/23 Cecil Westerhof cldwester...@gmail.com (defun dcbl-move-item-to-begin-of-list (optional item) (interactive) (save-excursion (when item (goto-char item)) (org-list-send-item (line-beginning-position) 'begin (org-list-struct))) (previous-line)) (defun dcbl-move-item-to-end-of-list (optional item) (interactive) (save-excursion (when item (goto-char item)) (org-list-send-item (line-beginning-position) 'end (org-list-struct There was not enough error checking. Better is: (defun dcbl-move-item-to-begin-of-list (optional item) (interactive) (let ((list nil)) (save-excursion (when item (goto-char item)) (setq list (org-list-struct)) (if (not list) (message Not in a list) (org-list-send-item (line-beginning-position) 'begin list))) (when list (previous-line (defun dcbl-move-item-to-end-of-list (optional item) (interactive) (let ((list nil)) (save-excursion (when item (goto-char item)) (setq list (org-list-struct)) (if (not list) (message Not in a list) (org-list-send-item (line-beginning-position) 'end list) -- Cecil Westerhof
Re: [O] using lightbox plugins in HTML export
Hey Bastien, Thanks for the response. That ATTR_HTML comes in very handy. I made one adjustment to your code, and it totally worked! Amazing! Here it is in full: #+ATTR_LaTeX: :width 300px #+ATTR_HTML: :rel lightbox :href image.png [[file:image.png]] Thanks! On Mon, Jan 20, 2014 at 6:19 AM, Bastien b...@gnu.org wrote: Hi Peter, Peter Salazar cycleofs...@gmail.com writes: Alternatively, how do I specify the LaTeX image on one line, and the HTML image as an a href rel=lightbox on a different line, such that the link doesn't appear in the LaTeX export and the image doesn't get duplicated in the HTML export? #+ATTR_LaTeX: :width 300px #+ATTR_HTML: :rel lightbox [[file:image.png]] HTH, -- Bastien
Re: [O] org-mode + icicles, avoid key binding redefinitions?
Someone pointed me to this thread. I am not subscribed to this list, so cc me if you want me to see a reply you write. Wrt some of what I read in the thread: 1. It is not true, (or else it is meaningless, depending on what you mean by that phrase) that C-c ' is officially an Emacs keybinding. Just because Org is part of Emacs does not mean that any key bindings enabled for Org mode are somehow the official Emacs bindings for those keys, and so take precedence over bindings from unofficial packages. That would be absurd. Think about it. Is key `b' taken once and for all, just because official Emacs `compilation-minor-mode-map' binds it to `compile-mode-summary'? Is `C-x C-s' taken, just because official `rcirc-multiline-minor-mode-map' binds it to `rcirc-multiline-minor-submit'? Is `C-c C-SPC' taken, because `erc-track-minor-mode-map' binds it to `erc-track-switch-buffer'? 1a. From the Elisp manual, node `Key Binding Conventions': * Sequences consisting of `C-c' followed by `{', `}', `', `', `:' or `;' are also reserved for major modes. * Sequences consisting of `C-c' followed by any other punctuation character are allocated for minor modes. Using them in a major mode is not absolutely prohibited, but if you do that, the major mode binding may be shadowed from time to time by minor modes. IOW, no major mode should bind any of the latter group of keys, including `C-'' and `C-`', and any minor mode may do so - whether that mode is official or not. 1b. There is no global default binding for `C-'' in `emacs -Q'. And there should not be, since it is reserved for minor modes. I don't know whether Org binds `C-'' for a minor mode or for a major mode, but if it is the latter then it is in violation of the convention. If it is the former, then that is fine. 1c. Just as it is fine for any other minor mode to bind the same key. Icicle mode is a (global) minor mode. By default, Icicles binds `C-'' in `icicle-mode-map' (to command `icicle-occur'). 1d. By default only. It is trivial to customize user option `icicle-top-level-keybindings', to bind `icicle-occur' to a different key or to give it no key binding at all. (And no, you do not need to fiddle with Lisp to do that - not even `define-key'. `M-x customize-option' is your friend - just get yourself a separate `custom-file', for sanity.) 1e. The same holds for `C-`', which Icicles binds by default to `icicle-search'. And it holds for any other top-level keys. If you think that Icicles is clobbering any key bindings that you prefer from another package (such as Org), it is simple to change keys (in Icicles anyway; dunno about Org). Icicles does not clobber any keys without your permission - just customize `icicle-top-level-keybindings'. 1f. There are similar Icicles user options for key bindings in minibuffer keymaps. Minibuffer keymaps are major-mode maps. But any bindings Icicles makes in those maps are in effect only while you are in Icicle (minor) mode. 2. If you have a recent Emacs version, it is simple to download and install Icicles from MELPA. Likewise, to update it. There are also other easy ways to download it, listed here: http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Libraries#toc5. Icicles is 10 files of Lisp code and 3 files of non-code (doc and change history). If you download the files without using the package system, then just put the files in your `load-path' to install Icicles. All of this is clearly documented, both on Emacs Wiki and in the doc files that are part of your Icicles download. If you do not want to read the doc in general, then you can read just this about Icicles key bindings: http://www.emacswiki.org/emacs/Icicles_-_Key_Bindings HTH. Sorry for your trouble.
[O] in LaTeX, how to start page numbering after TOC?
In export to LaTeX/PDF, has anyone had success in suppressing page numbering on the cover page and the Table of Contents, such that the first text section appears as Page 1? I tried adding this at the beginning of my document, but it had no effect: #+LATEX_CMD: \cleardoublepage #+LATEX_CMD: \pagestyle{headings} #+LATEX_CMD: \setcounter{page}{1} #+LATEX_CMD: \pagenumbering{arabic}
Re: [O] odt exporter on mixed org setup
Achim Gratz strom...@nexgo.de writes: Bzzt. Wrong. I have my reservations. With stock Emacs Snapshot (i.e., without any separate Org installation - git or elpa) at Bzr version 116124, at line 16, I am seeing ;;;###autoload (defvar org-odt-data-dir /usr/share/emacs/etc/org The location of ODT styles.) I hard-coded path, on a platform-independent file, makes me cringe?
Re: [O] ox-md conforming pandoc-markdown
Hi Michel, At Tue, 21 Jan 2014 12:00:01 +0100, Michel Kuhlmann wrote: Hi, I often convert files with `pandoc`. Currently there is no pandoc-org-mode-reader, so I'm using markdown as an intermediate step. I'm aware of https://github.com/robtillotson/org-pandoc.git; this also uses `ox-md`, so the issue applies also there. I found these issues inconvenient: - Listings create blank-lines in between + Currently - uno - uno - dos- - dos - tres - tres + Desired - uno- uno - dos- - dos - tres - tres This seems easy enough to fix, we simply need to add: (org-element-put-property item :post-blank nil) to the org-md-item function. Can anybody tell me if this is a bad idea? Otherwise I will send a patch. - customisable meta-data export (currently nothing exported) of, say, […] * pandoc header % myTitle % meMyself % 2014-01-21 Basic support for this is in the org-pandoc project, which bases its export on ox-md but adds some additional features. I’d like to expand org-pandoc to support more pandoc features, including those you mention. I just pushed up a (very rudimentary) change to my fork of this project to support proper table export for pandoc as well. https://github.com/egh/org-pandoc best, Erik -- Sent from my free software system http://fsf.org/.
Re: [O] ox-md conforming pandoc-markdown
- customisable meta-data export (currently nothing exported) of, say, […] * pandoc header % myTitle % meMyself % 2014-01-21 Basic support for this is in the org-pandoc project, which bases its export on ox-md but adds some additional features. I’d like to expand org-pandoc to support more pandoc features, including those you mention. I just pushed up a (very rudimentary) change to my fork of this project to support proper table export for pandoc as well. https://github.com/egh/org-pandoc This sounds great, thanks.
Re: [O] using lightbox plugins in HTML export
Hi Peter, Peter Salazar cycleofs...@gmail.com writes: Thanks for the response. That ATTR_HTML comes in very handy. I made one adjustment to your code, and it totally worked! Amazing! Here it is in full: #+ATTR_LaTeX: :width 300px #+ATTR_HTML: :rel lightbox :href image.png [[file:image.png]] Glad it works. Actually, it would be nice to have org-html-images-default-attributes the same way we have org-html-table-default-attributes (And for other backends too, why not.) -- Bastien
Re: [O] org-mode + icicles, avoid key binding redefinitions?
Drew Adams drew.ad...@oracle.com writes: * Sequences consisting of `C-c' followed by any other punctuation character are allocated for minor modes. Using them in a major mode is not absolutely prohibited, but if you do that, the major mode binding may be shadowed from time to time by minor modes. IOW, no major mode should bind any of the latter group of keys, including `C-'' and `C-`', and any minor mode may do so - whether that mode is official or not. We are talking about C-c ' but I think that's a typo in the paragraph above, since the manual you quote is about C-c '. 1b. There is no global default binding for `C-'' in `emacs -Q'. And there should not be, since it is reserved for minor modes. I don't know whether Org binds `C-'' for a minor mode or for a major mode, but if it is the latter then it is in violation of the convention. As the manual says, this is not prohibited, just discouraged. You're of course allowed to shadow C-c ' in your code. -- Bastien