Re: [O] An Org-mode LaTeX class?
I think that I don't know if you can suit everybody's need but that is worth a try. For myself, I already wrote a dedicated LaTeX class, because it was too cumbersome to configure org-mode for the different kind of documents I need to produce (not impossible, just too lengthy to duplicate parameters). Hence, I have a class that can output exams, lab sessions texts, course notes and slides with only a couple of options. And I export only subtrees that are configured for this class. it took a bit of time, but it definitely worth it. Fabrice 2014-10-28 2:37 GMT+01:00 Marcin Borkowski mb...@wmi.amu.edu.pl: Hi all, I have a dream;-). Imagine someone wrote a dedicated Org-mode LaTeX class, and the LaTeX exporter got an option to export to this class. The class modifies LaTeX so that it supports all Org's elements and objects, and things like tags, timestamps, checkboxes etc. Moreover, the look of these elements is configurable on the LaTeX end, and further by means of Org options. This way, we drop the generic LaTeX thing (which is nice for people sending articles to journals etc. – so my dream should not replace the current LaTeX exporter, only constitute a variant!), but instead we gain a beautiful, configurable pdf rendering of Org buffers. What do you think? -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University -- Fabrice Popineau - SUPELEC Département Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 --
Re: [O] org-capture/remember in Emacs 24.4.1? (Marco Wahl)
Benjamin Slade sl...@jnanam.net writes: Your code works for me (Emacs 25 with a current Org from the git repo). Just guessing: Do you have installed a further hook for deleting frames in certain situations which might be the wrongdoer? I don't seem to. I can't find anything else which seems to do anything with deleting frames. (side stepping the problem:) Perhaps there's a simpler way to set up a remember-frame like this in 24.4? I played some with the 24.4 and now can confirm your report. Emacs crashed every time after C-c C-c in the caption buffer. Unfortunately I could not understand what's going on. Being pragmatic you could comment the line (when capture-frame-p (make-frame-invisible)) ;; hide quickly This line looks like cosmetics and commenting out this line worked as a side stepping for me. Best regards, Marco -- http://www.wahlzone.de GPG: 0x0A3AE6F2
[O] Include results in a table
Hello everybody, I have somethink like that #+call: gen(A) #+results: A : 10 #+call: gen(B) #+results: B : 20 Is there a simple mean to aggregate the results in a table, i.e to get | A | 10 | | B | 20 | I think some lisp can do that but as a beginner... but as I want to learn you can suggest a somewhat complicated solution or a simple idea. Thanks.
Re: [O] An Org-mode LaTeX class?
Marcin Borkowski mb...@wmi.amu.edu.pl writes: Imagine someone wrote a dedicated Org-mode LaTeX class, and the LaTeX exporter got an option to export to this class. The class modifies LaTeX so that it supports all Org's elements and objects, and things like tags, timestamps, checkboxes etc. Moreover, the look of these elements is configurable on the LaTeX end, and further by means of Org options. This way, we drop the generic LaTeX thing (which is nice for people sending articles to journals etc. – so my dream should not replace the current LaTeX exporter, only constitute a variant!), but instead we gain a beautiful, configurable pdf rendering of Org buffers. What do you think? Make sure to have a look at expl3 (and others like e.g. xparse and xstring) package, i.e. upcoming LaTeX 3, before writing this class, because as a programming language the new version seems highly superior, and will most likely result in much cleaner and more readable code. Its well documented, search for 'The LaTeX 3 Interface' and 'The expl3 Package and LaTeX 3 Programming'. -- cheers, Thorsten
Re: [O] Include results in a table
abonnements abonneme...@thierry-pelle.eu writes: Hello, I have somethink like that #+call: gen(A) #+results: A : 10 #+call: gen(B) #+results: B : 20 Is there a simple mean to aggregate the results in a table, i.e to get | A | 10 | | B | 20 | I think some lisp can do that but as a beginner... but as I want to learn you can suggest a somewhat complicated solution or a simple idea. Thanks. you could define a 3rd block C that takes the results from block A and B as variable via :vars x=A y=B (A and B must be named blocks for this, use a #+NAME: A line) and then do (list A x B y) in block C and use the :results format that outputs a list as a table (often it is the default, otherwise try :results table or so). -- cheers, Thorsten
Re: [O] An Org-mode LaTeX class?
On Tue, Oct 28, 2014 at 4:02 AM, Fabrice Popineau fabrice.popin...@supelec.fr wrote: I think that I don't know if you can suit everybody's need but that is worth a try. For myself, I already wrote a dedicated LaTeX class, because it was too cumbersome to configure org-mode for the different kind of documents I need to produce (not impossible, just too lengthy to duplicate parameters). I did something similar, for similar reasons. I found it easier to make a LaTeX Template look like what I wanted than to force Org into generating LaTeX that was what I wanted. Hence, I have a class that can output exams, lab sessions texts, course notes and slides with only a couple of options. I haven't done slides yet, because I've not picked up Beamer and my approach was more branding. I have once class that brand-matches my primary employer (Font, logo usage, etc.), another one that matches one of my large volunteer efforts, and yet another generic “personal” one for “my” documents. And I export only subtrees that are configured for this class. it took a bit of time, but it definitely worth it. Agreed 2014-10-28 2:37 GMT+01:00 Marcin Borkowski mb...@wmi.amu.edu.pl: Hi all, I have a dream;-). Imagine someone wrote a dedicated Org-mode LaTeX class, and the LaTeX exporter got an option to export to this class. The class modifies LaTeX so that it supports all Org's elements and objects, and things like tags, timestamps, checkboxes etc. Moreover, the look of these elements is configurable on the LaTeX end, and further by means of Org options. This way, we drop the generic LaTeX thing (which is nice for people sending articles to journals etc. – so my dream should not replace the current LaTeX exporter, only constitute a variant!), but instead we gain a beautiful, configurable pdf rendering of Org buffers. Though I'll admit this does sound intriguing.
Re: [O] An Org-mode LaTeX class?
Hi Marcin, Thanks for sharing your ideas. Marcin Borkowski mb...@wmi.amu.edu.pl writes: Imagine someone wrote a dedicated Org-mode LaTeX class, and the LaTeX exporter got an option to export to this class. The class modifies LaTeX so that it supports all Org's elements and objects, and things like tags, timestamps, checkboxes etc. Honestly, a patch or an exact bug report would be great. If something is not right it should be fixed across all backends. That being said, at least cheackboxes are pretty pretty these days (checkbox (case (org-element-property :checkbox item) (on $\\boxtimes$ ) (off $\\square$ ) (trans $\\boxminus$ ))) It would be nice to format all timestamps using strftime-like syntax. Moreover, the look of these elements is configurable on the LaTeX end, and further by means of Org options. This way, we drop the generic LaTeX thing (which is nice for people sending articles to journals etc. – so my dream should not replace the current LaTeX exporter, only constitute a variant!), but instead we gain a beautiful, configurable pdf rendering of Org buffers. Thomas S. Dye tried it back in the days. It was called org-article¹. I'm sure he will share his experience here eventually. In general, if you want to pursuit this, I would advice you to look into derived classes, ox and ox-latex. In ox-latex search for org-export-define-backend and note how each element is translated using a functinon. From the sound of your project you will want to tune some of them, and change the default class (for the latter point see ox-koma-letter). I think you will have a easier time today than Thomas' had, since ox and org-element is so modual and easy to work with. Two good examples of ox-latex derived backends are ox-beamer.el and ox-koma-letter.el. Hope it helps. —Rasmus Footnotes: ¹ http://orgmode.org/worg/org-contrib/babel/examples/article-class.html -- Got mashed potatoes. Ain't got no T-Bone. No T-Bone
Re: [O] Include results in a table
Hi, thank you for your answer. Your solution is OK but only for the example I gave (2 or 3 results). In practice I have about 10 results and the number of them may be variable... Furthermore :vars does not work on my version (I must use :var x=A :var y=B)... Ta. Thierry Hello, / I have somethink like that/ / #+call: gen(A)/ / #+results: A/ / : 10/ / #+call: gen(B)/ / #+results: B/ / : 20/ / Is there a simple mean to aggregate the results in a table, i.e to get/ / | A | 10 |/ / | B | 20 |/ / I think some lisp can do that but as a beginner... but as I want to/ / learn you can suggest a somewhat complicated solution or a simple idea./ / Thanks./ you could define a 3rd block C that takes the results from block A and B as variable via :vars x=A y=B (A and B must be named blocks for this, use a #+NAME: A line) and then do (list A x B y) in block C and use the :results format that outputs a list as a table (often it is the default, otherwise try :results table or so). -- cheers, Thorsten
Re: [O] Include results in a table
abonnements abonneme...@thierry-pelle.eu writes: Hi, thank you for your answer. Your solution is OK but only for the example I gave (2 or 3 results). In practice I have about 10 results and the number of them may be variable... Furthermore :vars does not work on my version (I must use :var x=A :var y=B)... :vars was just a typo then #+NAME: A #+BEGIN_SRC emacs-lisp :results raw (+ 2 2) #+END_SRC #+results: A 4 #+NAME: B #+BEGIN_SRC emacs-lisp :results raw (/ 2 2) #+END_SRC #+results: B 1 #+BEGIN_SRC emacs-lisp (org-element-map (org-element-parse-buffer) 'src-block (lambda (--block) (let ((nm (org-element-property :name --block))) (when nm (let ((val (org-element-property :value --block))) (list nm (eval (car (read-from-string val) #+END_SRC #+results: | A | 4 | | B | 1 | Ta. Thierry Hello, I have somethink like that #+call: gen(A) #+results: A : 10 #+call: gen(B) #+results: B : 20 Is there a simple mean to aggregate the results in a table, i.e to get | A | 10 | | B | 20 | I think some lisp can do that but as a beginner... but as I want to learn you can suggest a somewhat complicated solution or a simple idea. Thanks. you could define a 3rd block C that takes the results from block A and B as variable via :vars x=A y=B (A and B must be named blocks for this, use a #+NAME: A line) and then do (list A x B y) in block C and use the :results format that outputs a list as a table (often it is the default, otherwise try :results table or so). -- cheers, Thorsten
Re: [O] Include results in a table
Hi Thierry On Tue, Oct 28, 2014 at 10:02 AM, abonnements abonneme...@thierry-pelle.eu wrote: #+call: gen(A) #+results: A : 10 #+call: gen(B) #+results: B : 20 Is there a simple mean to aggregate the results in a table, i.e to get | A | 10 | | B | 20 | One solution with TBLFM is: #+BEGIN_SRC emacs-lisp '(10) #+END_SRC #+NAME: A #+RESULTS: | 10 | #+BEGIN_SRC emacs-lisp '(20) #+END_SRC #+NAME: B #+RESULTS: | 20 | Aggregate multiple tables: | Table | Value | |---+---| | A |10 | | B |20 | #+TBLFM: @$2..@$2 = remote($1, @1$1) Requires Emacs 24.4 or an Org version from at least 2014. For reference see also the unit test in the Org source testing/lisp/test-org-table.el test-org-table/remote-reference-indirect Michael
[O] R code blocks and 'could not find function .ess.eval'
This problem was reported last month and then again earlier this month, for example here: https://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00178.html I'm running Emacs 25.0.50.2, Org 8.2.10 and ESS 14.1x. I'm getting a lot of Error: could not find function .ess.eval errors when evaluating R code blocks, even simple ones like this: #+BEGIN_SRC R :session :exports results 1 + 1 #+END_SRC I have a more complicated Org file with a bunch of R in it that I want to export to a PDF, but I get this: Args out of range: #killed buffer, 0 ,1 I've been trying to debug it and seemed to narrow down a minimal example to whether or not a simple block had :exports results in it, but yesterday when working on this some process would go haywire and my machine would slow down and then freeze! I had to force a reboot. I've never had Emacs do that before. I see that a patch was introduced for ob-R.el that fixes the 'could not find function .ess.eval' problem---will that be pushed into the main release soon? And has anyone else been running into problems like this recently? From what I saw in the archives it looks like it went away for most people. Bill -- William Denton ↔ Toronto, Canada ↔ https://www.miskatonic.org/
[O] Problem updating using git
I just tried updating my org installation (present version, installed via git, Org-mode version 8.3beta (release_8.3beta-485-gf70439). It gives me following error: passed 524/525 test-org/up-element passed 525/525 test-org/update-radio-target-regexp Ran 525 tests, 524 results as expected, 1 unexpected (2014-10-28 16:44:38+0530) 4 expected failures 1 unexpected results: FAILED ob-awk/tabular-input make[1]: *** [test-dirty] Error 1 make: *** [up2] Error 2 Not sure if there is a bug or a problem at my end. Would be happy to provide any further details that may be needed. Vikas
Re: [O] Problem updating using git
Doing a fresh install worked fine. Vikas On 28-Oct-2014, at 4:48 pm, Vikas Rawal vikasli...@agrarianresearch.org wrote: I just tried updating my org installation (present version, installed via git, Org-mode version 8.3beta (release_8.3beta-485-gf70439). It gives me following error: passed 524/525 test-org/up-element passed 525/525 test-org/update-radio-target-regexp Ran 525 tests, 524 results as expected, 1 unexpected (2014-10-28 16:44:38+0530) 4 expected failures 1 unexpected results: FAILED ob-awk/tabular-input make[1]: *** [test-dirty] Error 1 make: *** [up2] Error 2 Not sure if there is a bug or a problem at my end. Would be happy to provide any further details that may be needed. Vikas
[O] math in parentheses
Hi, I encounter a problem using $..$ expressions when they are enclosed in parentheses. This sample --8---cut here---start-8--- #+TITLE: Test Math * Some math This $T$ works, but ($T$) this does not. --8---cut here---end---8--- exports to (relevant part) --8---cut here---start-8--- \section{Some math} \label{sec-1} This \(T\) works, but (\$T\$) this does not. --8---cut here---end---8--- Is that expected behaviour? (Note that \(...\) expressions work.) I am on - OS X 10.9.4 - GNU Emacs 24.4.50.1 - Org-mode version 8.3beta Regards, Andreas
Re: [O] [RFC] Change property drawer syntax
Nicolas Goaziou m...@nicolasgoaziou.fr writes: As discussed previously, I would like to modify property drawers syntax. The change is simple: they must be located right after a headline and its planning line, if any. [...] I pushed a new branch, top-properties in the repository for code review and testing. It includes unit tests, documentation and an ORG-NEWS entry. If there is no more feedback or objection, I will merge the branch on Tuesday. Done.
Re: [O] Org-mode Habit with Varying Description
Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: Right now it looks like the central cond statement in `org-add-log-setup' is as close as we've got to a canonical definition of where a heading's log list is to be found. Should I just write my own version of this, or would you be open to refactoring `org-add-log-setup' so the finding part is a separate function that can be reused elsewhere? Done, as `org-log-beginning'. Note that it will return a non-nil value even if there is no log list in the entry. Regards, -- Nicolas Goaziou
[O] Bug: [8.2.10 (8.2.10-1-g8b63dc-elpa @ /home/boudiccas/.emacs.d/elpa/org-20141027/)]
Thinking that the problem was in corruption in my git download, I downloaded a fresh git setup, but the problem still remains. So I've installed org-mode from ELPA, but the problem still remains. I am still unable to send emails through gnus, and the error report is still occurring in many places whilst in daily usage. Sharon. Emacs : GNU Emacs 24.4.1 (i686-pc-linux-gnu, GTK+ Version 3.14.3) of 2014-10-25 on london Package: Org-mode version 8.2.10 (8.2.10-1-g8b63dc-elpa @ /home/boudiccas/.emacs.d/elpa/org-20141027/) current state: == (setq org-latex-create-formula-image-program 'imagemagick org-footnote-section References org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-latex-format-headline-function 'org-latex-format-headline-default-function org-remember-mode-hook '((lambda nil (define-key org-remember-mode-map (kbd C-c C-c) (quote (lambda nil (interactive) (let ((remember-frame-p (string= (frame-parameter nil (quote name)) ~/.emacs.d/org/remember.org))) (when remember-frame-p (make-frame-invisible)) (org-remember-finalize) (when remember-frame-p (delete-frame))) ) ) ) ) ) org-src-fontify-natively t org-html-format-inlinetask-function 'ignore org-agenda-todo-ignore-scheduled 'future org-goto-interface 'outline-path-completion outline-minor-mode-hook '(outshine-hook-function) org-agenda-skip-scheduled-if-done t org-clock-persist 'history org-goto-max-level 10 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-imenu-depth 6 org-modules '(org-bbdb org-archive org-contacts org-gnus org-drill org-info org-habit org-mouse org-annotate-file org-eval org-expiry org-interactive-query org-man org-panel org-toc) org-agenda-use-time-grid nil 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-agenda-custom-commands '((t todo TODO nil) (n todo NEXT nil) (s todo SCHEDULED nil) (i todo IN-PROGRESS nil) (p todo PHONE nil) (e todo EMAIL nil) (w todo WAITING nil) (d todo DONE nil) (c todo CANCELLED nil) (o todo SOMEDAY nil)) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-fontify-done-headline t org-babel-pre-tangle-hook '(save-buffer) org-return-follows-link t org-occur-hook '(org-first-headline-recenter) org-font-lock-hook '(org-inlinetask-fontify) org-html-format-headline-function 'ignore org-log-done 'note org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-capture-templates '((t todo entry (file (concat org-directory ~/.emacs.d/org/organiser.org)) * TODO %?\n%U\n%a\n :clock-in t :clock-resume t) (n note entry (file (concat org-directory ~/.emacs.d/org/organiser.org)) * %? :NOTE:\n%U\n%a\n :clock-in t :clock-resume t) (j Journal entry (file+datetree (concat org-directory
Re: [O] Org-mode Habit with Varying Description
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: Right now it looks like the central cond statement in `org-add-log-setup' is as close as we've got to a canonical definition of where a heading's log list is to be found. Should I just write my own version of this, or would you be open to refactoring `org-add-log-setup' so the finding part is a separate function that can be reused elsewhere? Done, as `org-log-beginning'. Note that it will return a non-nil value even if there is no log list in the entry. Very cool, thanks a lot! Eric
Re: [O] Org-mode Habit with Varying Description
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: Right now it looks like the central cond statement in `org-add-log-setup' is as close as we've got to a canonical definition of where a heading's log list is to be found. Should I just write my own version of this, or would you be open to refactoring `org-add-log-setup' so the finding part is a separate function that can be reused elsewhere? Done, as `org-log-beginning'. Note that it will return a non-nil value even if there is no log list in the entry. I was just fooling with this a bit, and am noticing some odd (to me) behavior. If I start with emacs -Q, then (goto-char (org-log-beginning)) takes me to the start of a :LOGBOOK: drawer, and (org-element-at-point) returns the drawer. That works no matter whether the log drawer is folded or not. But if the headline is folded, (org-element-at-point) returns the headline. Starting emacs with my usual customizations, it's even weirder than that. If I start with the subtree visible but the log drawer folded, then this (starting with point in the middle of the headline): (progn (goto-char (org-log-beginning)) (org-element-at-point)) Gives me paragraph. But eval'ing the two lines above consecutively (without the progn), gives me the drawer. If the logbook drawer is unfolded, I get paragraph every time. Anyway, I don't know what the expected behavior is, and I don't know how outline visibility is supposed to impact document parsing. But this seems strange... All I've customized is: (setq org-log-into-drawer t) Thanks, eric
[O] BUG: preview latex with split environment
Hi all, I encounter a BUG with org-toggle-latex-fragment on an equation that uses amsmath's split environment. (Exporting of the document works fine.) The problem is that the \begin{equation},\end{equation} get stripped of the temporary tex file. Here is some test doc --8---cut here---start-8--- #+TITLE: Test amsmath's split * Some equation with some split expression, e.g. \begin{equation} \begin{split} w \cdot x + b = 1, \text{ and}\\ w \cdot x + b = -1 \end{split} \end{equation} To reproduce try to org-toggle-latex-fragment (C-c C-x C-l) on that latex expression. Export of this works fine. --8---cut here---end---8--- which results in this /tmp/foobar.tex document (relevant parts shown): --8---cut here---start-8--- \begin{document} \definecolor{fg}{rgb}{0.996109,0.996109,0.996109} \definecolor{bg}{rgb}{0.197269,0.197269,0.197269} \pagecolor{bg} {\color{fg} \begin{split} w \cdot x + b = 1, \text{ and}\\ w \cdot x + b = -1 \end{split} } \end{document} --8---cut here---end---8--- The compilation of that results in , | ERROR: Package amsmath Error: \begin{split} won't work here. | ... | \Did you forget a preceding \begin{equation}? ` Regards, Andreas
Re: [O] Bug: [8.2.10 (8.2.10-1-g8b63dc-elpa @ /home/boudiccas/.emacs.d/elpa/org-20141027/)]
Sharon Kimble boudic...@skimble.plus.com writes: Thinking that the problem was in corruption in my git download, I downloaded a fresh git setup, but the problem still remains. So I've installed org-mode from ELPA, but the problem still remains. I am still unable to send emails through gnus, and the error report is still occurring in many places whilst in daily usage. There are a few problems with your bug report[fn:1]. First, you don't describe the problem or the error at all (maybe you did in some earlier post, but please don't assume that anybody is going to go back and search the list in order to divine your meaning). I, for one, have no idea what problem and error report you are talking about, partially because I'm not keeping up with the mailing list, partially because I'm getting old and decrepit and my memory ain't what it used to be. But in addition, why do you think this is an org-mode problem? Surely, gnus is the more likely culprit, no? Nick Footnotes: [fn:1] The orgmode site has some pointers to useful guides: Simon Tatham's How to Send Bug Reports Effectively and Eric Raymond's and Rick Moen's How to Ask Questions the Smart Way. The former is in the How to contribute to Org page; the latter is on the front page.
Re: [O] BUG: preview latex with split environment
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi all, I encounter a BUG with org-toggle-latex-fragment on an equation that uses amsmath's split environment. The problem is that the \begin{equation},\end{equation} get stripped of the temporary tex file. I can't reproduce using your document from emacs -q. (org-version) = 8.3beta updated today. -- However beautiful the theory, you should occasionally look at the evidence
Re: [O] math in parentheses
Hi Andreas, Andreas Leha andreas.l...@med.uni-goettingen.de writes: I encounter a problem using $..$ expressions when they are enclosed in parentheses. This $T$ works, but ($T$) this does not. Is that expected behaviour? (Note that \(...\) expressions work.) Yes, that is the expected behavior. Org is much pickier about when $ can be a math delimiter than \( ... \). The reason is that $ can also be used as a regular symbol in Org documents; when it is, it should be *not* be exported as a math delimiter to LaTeX, and distinguishing non-math-delimiting from math-delimiting uses of $ is not a trivial matter. Thus, when in doubt, use \( ... \). Best, Richard
[O] How to extract TODOs from date-tree
Hi, I have my Org files set up as date-trees containing a mix of notes, tasks and projects. I now have a need to generate a list of projects and tasks filed under specific date-tree or in a range of dates. Is it possible to get this listing from the date-trees if the entries themselves don't have date/time in timestamps or in properties settings? I couldn't find a solution in the archives. Please advise. Thank you. -jay
Re: [O] math in parentheses
Hi Richard, Richard Lawrence richard.lawre...@berkeley.edu writes: Hi Andreas, Andreas Leha andreas.l...@med.uni-goettingen.de writes: I encounter a problem using $..$ expressions when they are enclosed in parentheses. This $T$ works, but ($T$) this does not. Is that expected behaviour? (Note that \(...\) expressions work.) Yes, that is the expected behavior. Org is much pickier about when $ can be a math delimiter than \( ... \). The reason is that $ can also be used as a regular symbol in Org documents; when it is, it should be *not* be exported as a math delimiter to LaTeX, and distinguishing non-math-delimiting from math-delimiting uses of $ is not a trivial matter. Thus, when in doubt, use \( ... \). Thanks for following that up. I do use \(...\) when I encounter problems with $...$ (which is a lot nicer to type and read). I am happy with using the fall-back \(...\) every now and then. Just for me to understand: Is the problem the missing whitespace around the $...$ expression? Thanks, Andreas
Re: [O] How to extract TODOs from date-tree
Jay Iyer jayiye...@gmail.com writes: Hi, I have my Org files set up as date-trees containing a mix of notes, tasks and projects. I now have a need to generate a list of projects and tasks filed under specific date-tree or in a range of dates. Is it possible to get this listing from the date-trees if the entries themselves don't have date/time in timestamps or in properties settings? I couldn't find a solution in the archives. Please advise. Thank you. what is a date tree? This: , | * 2014-10-28 Di ` ? If the date-tree is the parent and has a timestamp, then the entries are part of the contents of parent, and you can use this function to map over the parents ,[ C-h f org-element-map RET ] | org-element-map is a compiled Lisp function in `org-element.el'. | | (org-element-map DATA TYPES FUN optional INFO FIRST-MATCH | NO-RECURSION WITH-AFFILIATED) | | Map a function on selected elements or objects. [...] ` and this to get their contents ,[ C-h f org-element-contents RET ] | org-element-contents is a compiled Lisp function in `org-element.el'. | | (org-element-contents ELEMENT) | | Extract contents from an ELEMENT. ` and then 'org-element-property' and 'org-element-put-property' to get and set timestamp info from the parent and any other info from the child entries. -- cheers, Thorsten
Re: [O] R code blocks and 'could not find function .ess.eval'
On Tue, 28 Oct 2014, William Denton wrote: This problem was reported last month and then again earlier this month, for example here: https://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00178.html I'm running Emacs 25.0.50.2, Org 8.2.10 and ESS 14.1x. I'm getting a lot of ...XX That version of org does not have the patches mentioned in the threads you reference. Current `master' does. Error: could not find function .ess.eval errors when evaluating R code blocks, even simple ones like this: #+BEGIN_SRC R :session :exports results 1 + 1 #+END_SRC Either update to `master' or start the R session interactively by `M-x R' before executing R commands in babel until such time as the version of orgmode you use catches up to the recent changes. HTH, Chuck
Re: [O] Org-mode Habit with Varying Description
Eric Abrahamsen e...@ericabrahamsen.net writes: I was just fooling with this a bit, and am noticing some odd (to me) behavior. If I start with emacs -Q, then (goto-char (org-log-beginning)) takes me to the start of a :LOGBOOK: drawer, and (org-element-at-point) returns the drawer. That works no matter whether the log drawer is folded or not. But if the headline is folded, (org-element-at-point) returns the headline. Starting emacs with my usual customizations, it's even weirder than that. If I start with the subtree visible but the log drawer folded, then this (starting with point in the middle of the headline): (progn (goto-char (org-log-beginning)) (org-element-at-point)) Gives me paragraph. But eval'ing the two lines above consecutively (without the progn), gives me the drawer. If the logbook drawer is unfolded, I get paragraph every time. Anyway, I don't know what the expected behavior is, and I don't know how outline visibility is supposed to impact document parsing. But this seems strange... All I've customized is: (setq org-log-into-drawer t) This is unrelated to `org-log-beginning'. Point cannot be left in an invisible area. E.g., the same applies to (forward-line 2) (point) vs (progn (forward-line 2) (point)) Anyway, that's a red herring. Regards, -- Nicolas Goaziou
Re: [O] math in parentheses
Hi, Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Richard, Just for me to understand: Is the problem the missing whitespace around the $...$ expression? From (info (org) LaTeX Fragments) [a] single ‘$’ characters are only recognized as math delimiters if the enclosed text contains at most two line breaks, is directly attached to the ‘$’ characters with no whitespace in between, and if the closing ‘$’ is followed by whitespace, punctuation or a dash —Rasmus -- C is for Cookie
Re: [O] Org-mode Habit with Varying Description
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Eric Abrahamsen e...@ericabrahamsen.net writes: I was just fooling with this a bit, and am noticing some odd (to me) behavior. If I start with emacs -Q, then (goto-char (org-log-beginning)) takes me to the start of a :LOGBOOK: drawer, and (org-element-at-point) returns the drawer. That works no matter whether the log drawer is folded or not. But if the headline is folded, (org-element-at-point) returns the headline. Starting emacs with my usual customizations, it's even weirder than that. If I start with the subtree visible but the log drawer folded, then this (starting with point in the middle of the headline): (progn (goto-char (org-log-beginning)) (org-element-at-point)) Gives me paragraph. But eval'ing the two lines above consecutively (without the progn), gives me the drawer. If the logbook drawer is unfolded, I get paragraph every time. Anyway, I don't know what the expected behavior is, and I don't know how outline visibility is supposed to impact document parsing. But this seems strange... All I've customized is: (setq org-log-into-drawer t) This is unrelated to `org-log-beginning'. Point cannot be left in an invisible area. E.g., the same applies to (forward-line 2) (point) vs (progn (forward-line 2) (point)) Anyway, that's a red herring. Okay, thanks. Since this is part of a function, I guess I should assume the (progn... behavior above, assume `org-element-at-point' is going to return a paragraph, and then work up from there to see if I'm in a log-list. Is that right? Eric
Re: [O] How to extract TODOs from date-tree
Hi Thorsten, The file entries are as follows and the task/note/project sub-heads generally don't have active/inactive timestamps except when a scheduling/deadline is specified. Thanks. ** 2014-10 October *** 2014-10-01 Wednesday TODO first task General note entry Project :prj: Jay Iyer address@hidden writes: Hi, * I have my Org files set up as date-trees containing a mix of notes,* * tasks and projects. I now have a need to generate a list of projects* * and tasks filed under specific date-tree or in a range of dates. Is it* * possible to get this listing from the date-trees if the entries* * themselves don't have date/time in timestamps or in properties* * settings? I couldn't find a solution in the archives. Please advise.* * Thank you.* what is a date tree? This: , | * 2014-10-28 Di ` ? If the date-tree is the parent and has a timestamp, then the entries are part of the contents of parent, and you can use this function to map over the parents ,[ C-h f org-element-map RET ] | org-element-map is a compiled Lisp function in `org-element.el'. | | (org-element-map DATA TYPES FUN optional INFO FIRST-MATCH | NO-RECURSION WITH-AFFILIATED) | | Map a function on selected elements or objects. [...] ` and this to get their contents ,[ C-h f org-element-contents RET ] | org-element-contents is a compiled Lisp function in `org-element.el'. | | (org-element-contents ELEMENT) | | Extract contents from an ELEMENT. ` and then 'org-element-property' and 'org-element-put-property' to get and set timestamp info from the parent and any other info from the child entries. -- cheers, Thorsten On Tue, Oct 28, 2014 at 8:53 AM, Jay Iyer jayiye...@gmail.com wrote: Hi, I have my Org files set up as date-trees containing a mix of notes, tasks and projects. I now have a need to generate a list of projects and tasks filed under specific date-tree or in a range of dates. Is it possible to get this listing from the date-trees if the entries themselves don't have date/time in timestamps or in properties settings? I couldn't find a solution in the archives. Please advise. Thank you. -jay
Re: [O] Bug: [8.2.10 (8.2.10-1-g8b63dc-elpa @ /home/boudiccas/.emacs.d/elpa/org-20141027/)]
Sharon Kimble boudic...@skimble.plus.com writes: Thinking that the problem was in corruption in my git download, I downloaded a fresh git setup, but the problem still remains. So I've installed org-mode from ELPA, but the problem still remains. I am still unable to send emails through gnus, and the error report is still occurring in many places whilst in daily usage. There are a few problems with your bug report[fn:1]. First, you don't describe the problem or the error at all (maybe you did in some earlier post, but please don't assume that anybody is going to go back and search the list in order to divine your meaning). I, for one, have no idea what problem and error report you are talking about, partially because I'm not keeping up with the mailing list, partially because I'm getting old and decrepit and my memory ain't what it used to be. But in addition, why do you think this is an org-mode problem? Surely, gnus is the more likely culprit, no? Nick Footnotes: [fn:1] The orgmode site has some pointers to useful guides: Simon Tatham's How to Send Bug Reports Effectively and Eric Raymond's and Rick Moen's How to Ask Questions the Smart Way. The former is in the How to contribute to Org page; the latter is on the front page. Thanks Nick for your reply. This ties in with my bug report of 2014-10-27 06:56 Bug: org-columns-compile-format [8.2.10 (release_8.2.10-1-g8b63dc @ /home/boudiccas/git/org-mode/lisp/)] which showed the back-trace of the problem. That back-trace is still valid for this new bug report, as the problem still remains. It is not a gnus-problem alone as I also get the error report when opening some org-mode pages. For the last couple of days I have been unable to send any emails through gnus, or any followups to a newsgroup, because the buffer which should contain the headers of the message and my signature have been completely blank and empty, with just Wrong type argument: stringp, 1 showing in the mini-buffer. On several of my org-mode files, when opening them I get this error message showing in the mini-buffer - org-columns-compile-format: Wrong type argument: stringp, 1. --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument stringp 1) string-match(%\\([0-9]+\\)?\\([[:alnum:]_-]+\\)\\(?:(\\([^)]+\\))\\)?\\(?:{\\([^}]+\\)}\\)?\\s-* 1 0) org-columns-compile-format(1) org-columns-get-format(1) org-columns(1) (lambda nil (org-columns 1))() run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook) apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)) run-mode-hooks(org-mode-hook) org-mode() set-auto-mode-0(org-mode nil) #[0 \302\242\237\211\205. \211@\303!\204 \304\305\\210\202' \301\306\240\210\307\300\\204' \310\311\312\\210A\266\202\202 \207 [nil (t) ((org-mode)) functionp message Ignoring unknown mode `%s' t set-auto-mode-0 throw nop nil] 5 \n\n(fn)]() funcall(#[0 \302\242\237\211\205. \211@\303!\204 \304\305\\210\202' \301\306\240\210\307\300\\204' \310\311\312\\210A\266\202\202 \207 [nil (t) ((org-mode)) functionp message Ignoring unknown mode `%s' t set-auto-mode-0 throw nop nil] 5 \n\n(fn)]) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(#buffer 2014a.org ~/.emacs.d/org/2014a.org nil nil ~/.emacs.d/org/2014a.org (16517036 2049)) find-file-noselect(/home/boudiccas/.emacs.d/org/2014a.org) desktop-restore-file-buffer(/home/boudiccas/.emacs.d/org/2014a.org 2014a.org nil) byte-code( \236A\206 \305\n\f#\207 [desktop-buffer-major-mode desktop-buffer-mode-handlers desktop-buffer-file-name desktop-buffer-name desktop-buffer-misc desktop-restore-file-buffer] 4) desktop-create-buffer(206 /home/boudiccas/.emacs.d/org/2014a.org 2014a.org org-mode (auto-fill-mode abbrev-mode visual-line-mode linum-mode override-global-mode autopair-mode org-indent-mode flyspell-mode yas-minor-mode drag-stuff-mode global-keys-minor-mode org2blog/wp-mode) 71546 (1 nil) nil nil ((indent-tabs-mode) (buffer-file-coding-system . utf-8-unix) (fill-column . 68) (truncate-lines))) eval-buffer(#buffer *load* nil /home/boudiccas/.emacs.d/desktop/emacs.desktop nil t) ; Reading at buffer position 3614 load-with-code-conversion(/home/boudiccas/.emacs.d/desktop/emacs.desktop /home/boudiccas/.emacs.d/desktop/emacs.desktop t t) load(/home/boudiccas/.emacs.d/desktop/emacs.desktop t t t) desktop-read() #[nil \304\211 \235\203 \305 \\306)\n\205 \307 \210\310\211\207 [key command-line-args desktop-save-mode inhibit-startup-screen --no-desktop delete nil desktop-read t] 4]() run-hooks(after-init-hook) command-line() normal-top-level() --8---cut here---end---8--- That is from today’s back-trace. If I do F1 f and enter org-columns-compile-format it shows - --8---cut
Re: [O] math in parentheses
Hi Rasmus, Rasmus ras...@gmx.us writes: Hi, Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Richard, Just for me to understand: Is the problem the missing whitespace around the $...$ expression? From (info (org) LaTeX Fragments) [a] single ‘$’ characters are only recognized as math delimiters if the enclosed text contains at most two line breaks, is directly attached to the ‘$’ characters with no whitespace in between, and if the closing ‘$’ is followed by whitespace, punctuation or a dash Thanks for the pointer. Given that there are 'exceptions' already I'd like to see that last sentence extended to 'followed by whitespace, punctuation, a closing parenthesis or a dash'. Especially since the \(...\) notation is particularly hard to read when enclosed in parentheses. For example (\(\frac{1}{2}\)) as opposed to ($\frac{1}{2}$) But as I said earlier, this is a minor nuisance and I am happy to resort to \(...\) whenever necessary. Thanks, Andreas
[O] Several datetrees in one file
Hello, I would like to have several datetrees in one org file. I want to have different datetrees under different headlines. The setup I have in mind is an address book with chronologically ordered notes for each person. This is an example entry for one person. Each following person in that file will have their own datetree and corresponding notes. * John Doe :PROPERTIES: :MAIL: john@example.com :END: - nice guy ** 2014 *** 2014-10 October 2014-10-27 Monday * meeting 1 Entered on 2014-10-27 Mon 00:00 - notes 2014-10-28 Tuesday * meeting 2 Entered on 2014-10-28 Tue 00:00 - more notes Currently, there is no way to capture a new entry in a datetree for a specific person. The current capture templates only allow for one datetree per file. Is it possible to extend this datetree functionality and let the user specify the file and the headline under which the datetree resides? Adapting the example from the manual, I would like to have something along the lines of: (file+headline+datetree path/to/file headline) or (file+olp+datetree path/to/file level 1 headline level2 ...) Is this possible? Regards, -- Alexander Baier
[O] make clean-install leaves htmlize.el
Hi all, recently make clean-install leaves the files htmlize.el[c] left in my installation directory while I'd expect them to be removed by clean-install. Regards, Andreas
Re: [O] math in parentheses
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Richard, Richard Lawrence richard.lawre...@berkeley.edu writes: Hi Andreas, Andreas Leha andreas.l...@med.uni-goettingen.de writes: I encounter a problem using $..$ expressions when they are enclosed in parentheses. This $T$ works, but ($T$) this does not. Is that expected behaviour? (Note that \(...\) expressions work.) Yes, that is the expected behavior. Org is much pickier about when $ can be a math delimiter than \( ... \). The reason is that $ can also be used as a regular symbol in Org documents; when it is, it should be *not* be exported as a math delimiter to LaTeX, and distinguishing non-math-delimiting from math-delimiting uses of $ is not a trivial matter. Thus, when in doubt, use \( ... \). Thanks for following that up. I do use \(...\) when I encounter problems with $...$ (which is a lot nicer to type and read). I am happy with using the fall-back \(...\) every now and then. Just for me to understand: Is the problem the missing whitespace around the $...$ expression? See http://tex.stackexchange.com/questions/510/are-and-preferable-to-dollar-signs-for-math-mode for some arguments for and (mostly) against (although one of the fors is Frank Mittelbach - which surely tilts the scale quite a lot). FWIW, I've trained myself to use \(...\) and don't find it any harder to read than $...$ - and I don't mind the extra typing either. The fact that both org and MathJax deal better with \(...\) just reinforces that choice. Nick
[O] make test scrambles terminal
Hi, `make test` recently messes with the encoding of my terminal. Here are the last lines from the output: --8---cut here---start-8--- ⎻▒⎽⎽ed 53▮/531 ├e⎽├↑⎺⎼±/┤⎻↑e┌e└e┼├ ⎻▒⎽⎽ed 531/531 ├e⎽├↑⎺⎼±/┤⎻d▒├e↑⎼▒d☃⎺↑├▒⎼±e├↑⎼e±e│⎻ R▒┼ 531 ├e⎽├⎽← 529 ⎼e⎽┤┌├⎽ ▒⎽ e│⎻ec├ed← 2 ┤┼e│⎻ec├ed (2▮14↑1▮↑28 17:16:48→) 5 e│⎻ec├ed °▒☃┌┤⎼e⎽ 2 ┤┼e│⎻ec├ed ⎼e⎽┤┌├⎽: FAILED ⎺b↑⎽▒e┌┌/b▒⎽▒↑┤⎽e⎽↑▒⎼⎼▒≤⎽ FAILED ⎺b↑⎽▒e┌┌/b▒⎽▒↑┤⎽e⎽↑▒⎽⎽⎺c↑▒⎼⎼▒≤⎽ └▒┐e: *** [├e⎽├] E⎼⎼⎺⎼ 1 --8---cut here---end---8--- A `reset` restores the terminal for me. If that helps, I am on - OS X 10.9.4 - GNU Emacs 24.4.50.1 - orgmode from git (master branch just pulled) - bash 4.3.25(1)-release (x86_64-apple-darwin13.3.0) - iTerm Regards, Andreas
Re: [O] How to extract TODOs from date-tree
Jay Iyer jayiye...@gmail.com writes: Hi Jay, The file entries are as follows and the task/note/project sub-heads generally don't have active/inactive timestamps except when a scheduling/deadline is specified. Thanks. ** 2014-10 October *** 2014-10-01 Wednesday TODO first task General note entry Project :prj: puh ... it would of cause be possible to write emacs lisp to find, extract and process the date info from the parent tree's :raw-value, but I must admit I don't want to do it, since it is just extra work required by un-idiomatic use of Org-mode. You have all the means to create a nice logical project file out-of-the box with Org-mode, use tags, timestamps, deadlines, properties etc and then extract selected info via the agenda. Otherwise you need to write custom elisp yourself or find somebody who does it for you ... Jay Iyer address@hidden writes: Hi, I have my Org files set up as date-trees containing a mix of notes, tasks and projects. I now have a need to generate a list of projects and tasks filed under specific date-tree or in a range of dates. Is it possible to get this listing from the date-trees if the entries themselves don't have date/time in timestamps or in properties settings? I couldn't find a solution in the archives. Please advise. Thank you. what is a date tree? This: , | * 2014-10-28 Di ` ? If the date-tree is the parent and has a timestamp, then the entries are part of the contents of parent, and you can use this function to map over the parents ,[ C-h f org-element-map RET ] | org-element-map is a compiled Lisp function in `org-element.el'. | | (org-element-map DATA TYPES FUN optional INFO FIRST-MATCH | NO-RECURSION WITH-AFFILIATED) | | Map a function on selected elements or objects. [...] ` and this to get their contents ,[ C-h f org-element-contents RET ] | org-element-contents is a compiled Lisp function in `org-element.el'. | | (org-element-contents ELEMENT) | | Extract contents from an ELEMENT. ` and then 'org-element-property' and 'org-element-put-property' to get and set timestamp info from the parent and any other info from the child entries. -- cheers, Thorsten
Re: [O] How to extract TODOs from date-tree
Jay Iyer jayiye...@gmail.com writes: Hi Thorsten, The file entries are as follows and the task/note/project sub-heads generally don't have active/inactive timestamps except when a scheduling/deadline is specified. Thanks. ** 2014-10 October *** 2014-10-01 Wednesday TODO first task General note entry Project :prj: I just read the term 'datetree' again in another post, maybe I'm not up-to-date and it is idiomatic Org-mode use, then sorry for the noise ... -- cheers, Thorsten
Re: [O] math in parentheses
Hi Nick, Nick Dokos ndo...@gmail.com writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Richard, Richard Lawrence richard.lawre...@berkeley.edu writes: Hi Andreas, Andreas Leha andreas.l...@med.uni-goettingen.de writes: I encounter a problem using $..$ expressions when they are enclosed in parentheses. This $T$ works, but ($T$) this does not. Is that expected behaviour? (Note that \(...\) expressions work.) Yes, that is the expected behavior. Org is much pickier about when $ can be a math delimiter than \( ... \). The reason is that $ can also be used as a regular symbol in Org documents; when it is, it should be *not* be exported as a math delimiter to LaTeX, and distinguishing non-math-delimiting from math-delimiting uses of $ is not a trivial matter. Thus, when in doubt, use \( ... \). Thanks for following that up. I do use \(...\) when I encounter problems with $...$ (which is a lot nicer to type and read). I am happy with using the fall-back \(...\) every now and then. Just for me to understand: Is the problem the missing whitespace around the $...$ expression? See http://tex.stackexchange.com/questions/510/are-and-preferable-to-dollar-signs-for-math-mode for some arguments for and (mostly) against (although one of the fors is Frank Mittelbach - which surely tilts the scale quite a lot). Thanks. A very good read. These are arguments on the LaTeX end. My question was more on the orgmode end, I guess. FWIW, I've trained myself to use \(...\) and don't find it any harder to read than $...$ - and I don't mind the extra typing either. The fact that both org and MathJax deal better with \(...\) just reinforces that choice. I do not agree with the readability but I can live (quite happily) with using \(...\). And maybe my perception of the readability changes over time Regards, Andreas
Re: [O] An Org-mode LaTeX class?
Aloha Rasmus, Rasmus ras...@gmx.us writes: Moreover, the look of these elements is configurable on the LaTeX end, and further by means of Org options. This way, we drop the generic LaTeX thing (which is nice for people sending articles to journals etc. – so my dream should not replace the current LaTeX exporter, only constitute a variant!), but instead we gain a beautiful, configurable pdf rendering of Org buffers. Thomas S. Dye tried it back in the days. It was called org-article¹. I'm sure he will share his experience here eventually. My goal was to get publication quality documents out of the old exporter, which aimed to make LaTeX copies of notes taken in Org mode. I tried to see how much work I could off-load to LaTeX so I didn't have to wrestle with the old exporter. Nicolas's new exporter framework very completely solved the problems I was having with the old exporter and I now routinely write journal articles in Org mode, using one of the standard classes (typically scrartcl) because it is more convenient for me than working in LaTeX. It is my experience that reproducible research is useful, even when it is not a goal of publication. Because my Org mode files capture an entire analysis, I know exactly where to go when I want to pick up some old research. That said, I think there is some overlap between Marcin's dream and what I was trying to accomplish, though Marcin's knowledge of LaTeX and programming generally appear to put him well ahead of what I brought to the table working on org-article. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] BUG: preview latex with split environment
Rasmus ras...@gmx.us writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi all, I encounter a BUG with org-toggle-latex-fragment on an equation that uses amsmath's split environment. The problem is that the \begin{equation},\end{equation} get stripped of the temporary tex file. I can't reproduce using your document from emacs -q. (org-version) = 8.3beta updated today. It seems I can. I just pulled the master branch (Org-mode version 8.3beta (release_8.3beta-517-g86d1a7)) I start emacs -Q -l emacs.minimal where emacs.minimal is --8---cut here---start-8--- (add-to-list 'load-path (expand-file-name ~/local/emacs/org-mode-install/lisp)) (add-to-list 'auto-mode-alist '(\\.\\(org\\ |org_archive\\|txt\\)$ . org-mode)) (setq org-agenda-files '(/tmp/test.org)) ;;(require 'org-install) ;;(require 'org-habit) (add-to-list 'load-path (expand-file-name ~/local/emacs/org-mode/contrib/lisp)) (global-set-key \C-ca 'org-agenda) (org-babel-do-load-languages 'org-babel-load-languages '((R . t) (latex . t) (emacs-lisp . t) (sh . t))) --8---cut here---end---8--- I open this file: --8---cut here---start-8--- #+TITLE: Test amsmath's split * Some equation with some split expression, e.g. \begin{equation} \begin{split} w \cdot x + b = 1, \text{ and}\\ w \cdot x + b = -1 \end{split} \end{equation} To reproduce try to org-toggle-latex-fragment (C-c C-x C-l) on that latex expression. Export of this works fine. --8---cut here---end---8--- I try to preview my equation and get this tex: --8---cut here---start-8--- \documentclass{article} \usepackage[usenames]{color} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} % Package fixltx2e omitted \usepackage{graphicx} % Package longtable omitted % Package float omitted % Package wrapfig omitted % Package rotating omitted \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{amssymb} % Package capt-of omitted % Package hyperref omitted \tolerance=1000 \pagestyle{empty} % do not remove % The settings below are copied from fullpage.sty \setlength{\textwidth}{\paperwidth} \addtolength{\textwidth}{-3cm} \setlength{\oddsidemargin}{1.5cm} \addtolength{\oddsidemargin}{-2.54cm} \setlength{\evensidemargin}{\oddsidemargin} \setlength{\textheight}{\paperheight} \addtolength{\textheight}{-\headheight} \addtolength{\textheight}{-\headsep} \addtolength{\textheight}{-\footskip} \addtolength{\textheight}{-3cm} \setlength{\topmargin}{1.5cm} \addtolength{\topmargin}{-2.54cm} \begin{document} \begin{split} w \cdot x + b = 1, \text{ and}\\ w \cdot x + b = -1 \end{split} \end{document} --8---cut here---end---8--- What do I miss here? Regards, Andreas
Re: [O] Bug: org-columns-compile-format [8.2.10 (release_8.2.10-1-g8b63dc @ /home/boudiccas/git/org-mode/lisp/)]
Aaron Ecay aarone...@gmail.com writes: Hi Sharon, 2014ko urriak 27an, Sharon Kimble-ek idatzi zuen: [...] org-mode-hook '(org-drill-add-cloze-fontification org2blog/wp-mode (lambda nil (org-columns 1)) (lambda nil (abbrev-mode 1)) The above (org-columns 1) form is your problem. Have you added this to org-mode-hook your emacs/org configuration files somewhere? If so, you should take it out. Org-columns is not a minor mode, and the argument to that function should not be a number. Aaron. Thanks for this, that was the problem entirely and solves it. Everything is now working back as normal, and I'm now able to use gnus properly. Thank you very much :) Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.4.1.0
Re: [O] Bug: org-columns-compile-format [8.2.10 (release_8.2.10-1-g8b63dc @ /home/boudiccas/git/org-mode/lisp/)]
Hi Sharon, 2014ko urriak 27an, Sharon Kimble-ek idatzi zuen: [...] org-mode-hook '(org-drill-add-cloze-fontification org2blog/wp-mode (lambda nil (org-columns 1)) (lambda nil (abbrev-mode 1)) The above (org-columns 1) form is your problem. Have you added this to org-mode-hook your emacs/org configuration files somewhere? If so, you should take it out. Org-columns is not a minor mode, and the argument to that function should not be a number. -- Aaron Ecay
Re: [O] Bug: [8.2.10 (8.2.10-1-g8b63dc-elpa @ /home/boudiccas/.emacs.d/elpa/org-20141027/)]
Sharon Kimble boudic...@skimble.plus.com writes: It is not a gnus-problem alone as I also get the error report when opening some org-mode pages. For the last couple of days I have been unable to send any emails through gnus, or any followups to a newsgroup, because the buffer which should contain the headers of the message and my signature have been completely blank and empty, with just Wrong type argument: stringp, 1 showing in the mini-buffer. On several of my org-mode files, when opening them I get this error message showing in the mini-buffer - org-columns-compile-format: Wrong type argument: stringp, 1. --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument stringp 1) string-match(%\\([0-9]+\\)?\\([[:alnum:]_-]+\\)\\(?:(\\([^)]+\\))\\)?\\(?:{\\([^}]+\\)}\\)?\\s-* 1 0) org-columns-compile-format(1) org-columns-get-format(1) org-columns(1) (lambda nil (org-columns 1))() run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook) apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)) run-mode-hooks(org-mode-hook) org-mode() set-auto-mode-0(org-mode nil) #[0 \302\242\237\211\205. Well, org-columns takes an optional string as argument, not an integer, so whoever does (org-columns 1) is wrong, presumably one of the functions in your org-mode-hook. Nick
Re: [O] math in parentheses
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Rasmus, Rasmus ras...@gmx.us writes: Hi, Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Richard, Just for me to understand: Is the problem the missing whitespace around the $...$ expression? From (info (org) LaTeX Fragments) [a] single ‘$’ characters are only recognized as math delimiters if the enclosed text contains at most two line breaks, is directly attached to the ‘$’ characters with no whitespace in between, and if the closing ‘$’ is followed by whitespace, punctuation or a dash Thanks for the pointer. Given that there are 'exceptions' already I'd like to see that last sentence extended to 'followed by whitespace, punctuation, a closing parenthesis or a dash'. Patches welcome :) but this does work $(x)$ BTW. I guess the main function for export is `org-element-latex-fragment-interpreter' but there's also `org-inside-LaTeX-fragment-p'. . . —Rasmus -- When the facts change, I change my mind. What do you do, sir?
Re: [O] BUG: preview latex with split environment
Hello, Andreas Leha andreas.l...@med.uni-goettingen.de writes: I open this file: #+TITLE: Test amsmath's split * Some equation with some split expression, e.g. \begin{equation} \begin{split} w \cdot x + b = 1, \text{ and}\\ w \cdot x + b = -1 \end{split} \end{equation} To reproduce try to org-toggle-latex-fragment (C-c C-x C-l) on that latex expression. This should be fixed in master. Thank you for reporting it. Regards, -- Nicolas Goaziou
[O] Support for table notes?
Hi list, I'm having trouble with LaTeX export of a table that uses some footnotes. It seems that export by default uses combinations of \footnotemark inside the table and \footnotetext after the table. This gets me in to trouble when the table is pushed to the next page - the footnotes are left behind on the previous page. There's a lot of discussion (here http://tex.stackexchange.com/questions/1583/footnotes-in-tables for example) on the right way to do this. I'm content with just about anything - threeparttable, for example, to produce table notes. Are there any capabilities built in to org mode to handle footnotes in tables differently or is this something I can only do through more direct LaTeX tweaking? Regards, Jake
[O] inline image size
Hi there, Does anybody know how to change the size of inline images in org ? I would like to do this using something like #+attr :with 200 thanks M
Re: [O] org-capture/remember in Emacs 24.4.1? (Marco Wahl)
Oddly this works on my one computer, but not my other -- doubly odd since they're both running the same distro, the same version of Emacs, and the same .emacs file! Even commenting out that line doesn't change the (wrong) behaviour on my one computer Marco Wahl marcowahls...@gmail.com writes: The following message is a courtesy copy of an article that has been posted to gmane.emacs.orgmode as well. Benjamin Slade sl...@jnanam.net writes: Your code works for me (Emacs 25 with a current Org from the git repo). Just guessing: Do you have installed a further hook for deleting frames in certain situations which might be the wrongdoer? I don't seem to. I can't find anything else which seems to do anything with deleting frames. (side stepping the problem:) Perhaps there's a simpler way to set up a remember-frame like this in 24.4? I played some with the 24.4 and now can confirm your report. Emacs crashed every time after C-c C-c in the caption buffer. Unfortunately I could not understand what's going on. Being pragmatic you could comment the line (when capture-frame-p (make-frame-invisible)) ;; hide quickly This line looks like cosmetics and commenting out this line worked as a side stepping for me. Best regards, Marco -- ~ Dr Benjamin Slade 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] org-capture/remember in Emacs 24.4.1? (Marco Wahl)
I figured it out - in updating, I had lost the cdlatex package, and org-capture wants this for some reason, that's why it was crashing for me. Marco Wahl marcowahls...@gmail.com writes: The following message is a courtesy copy of an article that has been posted to gmane.emacs.orgmode as well. Benjamin Slade sl...@jnanam.net writes: Your code works for me (Emacs 25 with a current Org from the git repo). Just guessing: Do you have installed a further hook for deleting frames in certain situations which might be the wrongdoer? I don't seem to. I can't find anything else which seems to do anything with deleting frames. (side stepping the problem:) Perhaps there's a simpler way to set up a remember-frame like this in 24.4? I played some with the 24.4 and now can confirm your report. Emacs crashed every time after C-c C-c in the caption buffer. Unfortunately I could not understand what's going on. Being pragmatic you could comment the line (when capture-frame-p (make-frame-invisible)) ;; hide quickly This line looks like cosmetics and commenting out this line worked as a side stepping for me. Best regards, Marco -- ~ Dr Benjamin Slade 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] How to extract TODOs from date-tree
Thorsten Jolitz tjol...@gmail.com writes: Jay Iyer jayiye...@gmail.com writes: Hi Thorsten, The file entries are as follows and the task/note/project sub-heads generally don't have active/inactive timestamps except when a scheduling/deadline is specified. Thanks. ** 2014-10 October *** 2014-10-01 Wednesday TODO first task General note entry Project :prj: I just read the term 'datetree' again in another post, maybe I'm not up-to-date and it is idiomatic Org-mode use, then sorry for the noise ... I don't think it's well documented (I couldn't find a reference in the manual) or well supported. org-capture does provide for it (see the doc for org-capture-templates) but afaict that's the only significant use of it - org-agend uses it for diary-related stuff and org-archive has to be able to archive it and that's it. The (rather thin) support for it is in org-datetree.el. If there are use cases out there, it might be worth collecting them and then thinking about how to support them better. If there aren't, maybe it should be thrown out. -- Nick
Re: [O] Several datetrees in one file
Alexander Baier alexander.ba...@mailbox.org writes: Hello, I would like to have several datetrees in one org file. I want to have different datetrees under different headlines. The setup I have in mind is an address book with chronologically ordered notes for each person. ... Is this possible? I don't think so (but I don't know for sure). -- Nick
Re: [O] inline image size
Hi there, I found the solution http://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00038.html cheers, M On Oct 28, 2014, at 9:16 PM, Doyley, Marvin M. mdoy...@ur.rochester.edu wrote: Hi there, Does anybody know how to change the size of inline images in org ? I would like to do this using something like #+attr :with 200 thanks M