Re: [O] no beamer export?
On Wed, May 17, 2017 at 3:41 PM, Jérémie Juste wrote: > Hello, > > M-x beamer-mode. Thanks, it worked! Luca
Re: [O] Python src blocks indent
Thanks Nicolas. I should have looked closer at ox-ipynb since the problem is in there. It should make use of `org-export-unravel-code' and it doesn't. Instead it trims leading white spaces from the src code. I'll report it to the scimax github repository. Best regards, 2017-05-17 15:08 GMT+02:00 Nicolas Goaziou : > Fabrice Popineau writes: > > > I mean that in the Org buffer I have for example : > > > > #+BEGIN_SRC ipython :session > > def fact(n): > > if n == 1: > > return 1 > > else: > > return n * fact(n-1) > > #+END_SRC > > > > That is, there is a 2 spaces indentation of the whole code block, and the > > code block is properly indented. > > When I export it, I get : > > > > def fact(n): > > if n == 1: > > return 1 > > else: > > return n * fact(n-1) > > FWIW I cannot reproduce it. You may want to debug > `org-export-unravel-code', `org-export-format-code' or > `org-export-format-code-default'. > > Regards, >
Re: [O] Table in org-mode not to be exported to latex
On Wed, May 17, 2017 at 7:06 AM, Sharon Kimble wrote: > > How can I have an org-mode table in an org-mode document that is > exported to latex, but the table is *NOT* exported, please? > > This is the table that I'm using - [snip] This works for me. Duplicates what others have said, so I think something is goofed on your end or you're not combining all of the answers? ### begin org ### * heading #+begin_src org :exports none | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | #+end_src ### end org ### That results in (C-e l L, as I don't actually have texlive on this system): ### begin latex ### \begin{document} \tableofcontents \section{heading} \label{sec:orge9ebafa} \end{document} ### end latex ### You're sure you have org for the src type *and* none for results? My suspicion is the cause as no vs. none: - http://orgmode.org/manual/Exporting-code-blocks.html John > > Any ideas please? > > Thanks > Sharon. > -- > A taste of linux = http://www.sharons.org.uk > TGmeds = http://www.tgmeds.org.uk > DrugFacts = https://www.drugfacts.org.uk > Debian 8.8, fluxbox 1.3.5-2, emacs 25.1.1.1, org-mode 9.0.7
Re: [O] [Patch] Fix handling of variable capture location
The second call is indeed needed. This is the case fixed by the patch: (setq org-default-notes-file (expand-file-name "~/docs/notes.org")) (setq org-capture-templates '(("t" "Todo" entry (file+olp org-default-notes-file "Inbox") "* TODO %?\n%i"))) This breaks without the second symbol-value. The first is required to replicate the intended functionality of bound-and-true-p. YL On Wed, May 17, 2017 at 5:25 AM, Nicolas Goaziou wrote: > Hello, > > Yuri Lensky writes: > > > Capture locations in variable not working before this patch. > > Thank you. > > Could you show an example demonstrating the issue? The only difference > I can see with your patch is that you're referring to the global value > of file, not the local one. > > > From c0de1c390b370b497fbb093ac5efd3d7aeaac0dc Mon Sep 17 00:00:00 2001 > > From: "Yuri D. Lensky" > > Date: Sun, 12 Mar 2017 17:58:15 -0700 > > Subject: [PATCH] org-capture.el: Fix handling of variable capture > location > > > > --- > > lisp/org-capture.el | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/lisp/org-capture.el b/lisp/org-capture.el > > index 9ac9294..04c446d 100644 > > --- a/lisp/org-capture.el > > +++ b/lisp/org-capture.el > > @@ -1060,7 +1060,8 @@ case, raise an error." > >(let ((location (cond ((equal file "") org-default-notes-file) > > ((stringp file) (expand-file-name file > org-directory)) > > ((functionp file) (funcall file)) > > - ((and (symbolp file) (bound-and-true-p file))) > > + ((and (symbolp file) (boundp file) (symbol-value > file)) > > + (symbol-value file)) > > The second call to `symbol-value' is not needed. > > Regards, > > -- > Nicolas Goaziou >
Re: [O] Table in org-mode not to be exported to latex
Aloha Sharon, Sharon Kimble writes: > Kaushal Modi writes: > >> On Wed, May 17, 2017, 8:07 AM Sharon Kimble >> wrote: >> >> --8<---cut here---start->8--- >> #+BEGIN_SRC :exports no >> | >> >> I think that you are just missing out the language specifier there. Try: >> >> #+BEGIN_SRC org :exports no > > Unfortunately, with this as my block of table > > --8<---cut here---start->8--- > #+BEGIN_SRC org :exports no > | date | change | version | > |+--+-| > | 2016/11/18 | initial draft| 1.0 | > | 2017/05/04 | put in models of grief | 1.5 | > | 2017/05/16 | removed creative commons | 1.6 | > || | | > #+END_SRC > --8<---cut here---end--->8--- > > It fails to build the pdf saying - > > --8<---cut here---start->8--- > \lstset{language=org,label= ,caption= ,captionpos=b,numbers=none} > \begin{lstlisting} > > | date | change | version | > |+--+-| > | 2016/11/18 | initial draft| 1.0 | > | 2017/05/04 | put in models of grief | 1.5 | > | 2017/05/16 | removed creative commons | 1.6 | > || | | > \end{lstlisting} > --8<---cut here---end--->8--- > > Sorry. > > Could this be related to the fact that I haven't stated in my preamble > that I was using tables? Will :exports none suppress export? All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Table in org-mode not to be exported to latex
Eric S Fraga writes: > On Wednesday, 17 May 2017 at 12:06, Sharon Kimble wrote: >> How can I have an org-mode table in an org-mode document that is >> exported to latex, but the table is *NOT* exported, please? > > I tend to "hide" things like this (data tables, source codes) that I do > not want exported within an inline task with :noexport: tag. Useful for > having the data/code close to where it might be used without having to > work around the hierarchical structure of org headings. Thanks for this Eric. Unfortunately, with this as my table block --8<---cut here---start->8--- #+BEGIN_SRC org :noexport: | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | || | | #+END_SRC --8<---cut here---end--->8--- Its failing but showing this in my latex output - --8<---cut here---start->8--- \lstset{language=org,label= ,caption= ,captionpos=b,numbers=none} \begin{lstlisting} | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | || | | \end{lstlisting} --8<---cut here---end--->8--- Sorry, but could this be related to me not defining any tables in my preamble? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk DrugFacts = https://www.drugfacts.org.uk Debian 8.8, fluxbox 1.3.5-2, emacs 25.1.1.1, org-mode 9.0.7 signature.asc Description: PGP signature
[O] [PATCH] Add tests for org-refile-get-targets
* testing/lisp/test-org.el: Add test. --- testing/examples/refile/a.org | 6 testing/examples/refile/b.org | 6 testing/lisp/test-org.el | 71 +++ 3 files changed, 83 insertions(+) create mode 100644 testing/examples/refile/a.org create mode 100644 testing/examples/refile/b.org diff --git a/testing/examples/refile/a.org b/testing/examples/refile/a.org new file mode 100644 index 0..7ed235a52 --- /dev/null +++ b/testing/examples/refile/a.org @@ -0,0 +1,6 @@ +* a/1/1 +** a/1/2 +*** a/1/3 +* a/2/1 +** a/2/2 +*** a/2/3 diff --git a/testing/examples/refile/b.org b/testing/examples/refile/b.org new file mode 100644 index 0..15359b16e --- /dev/null +++ b/testing/examples/refile/b.org @@ -0,0 +1,6 @@ +* b/1/1 +** b/1/2 +*** b/1/3 +* b/2/1 +** b/2/2 +*** b/2/3 diff --git a/testing/lisp/test-org.el b/testing/lisp/test-org.el index b8bd88957..099817064 100644 --- a/testing/lisp/test-org.el +++ b/testing/lisp/test-org.el @@ -5266,6 +5266,77 @@ (ert-deftest test-org/update-radio-target-regexp () (org-element-type (org-element-context)) +;;; Refile + +(defvar test-org/refile-use-outline-path-examples-dir + (file-truename "../examples/refile/") + "Absolute path to example files used in ‘org-refile’ tests.") + +(defvar test-org/refile-use-outline-path-targets + `((nil . ("a/1/2" + "a/2/2" + "b/1/2" + "b/2/2")) +(file . ("a.org" +"a.org/a\\/1\\/1/a\\/1\\/2" +"a.org/a\\/2\\/1/a\\/2\\/2" +"b.org" +"b.org/b\\/1\\/1/b\\/1\\/2" +"b.org/b\\/2\\/1/b\\/2\\/2")) +(full-file-path . ,(mapcar (lambda (s) +(concat test-org/refile-use-outline-path-examples-dir s)) + '("a.org" +"a.org/a\\/1\\/1/a\\/1\\/2" +"a.org/a\\/2\\/1/a\\/2\\/2" +"b.org" +"b.org/b\\/1\\/1/b\\/1\\/2" +"b.org/b\\/2\\/1/b\\/2\\/2"))) +(buffer-name . ("a.org" + "a.org/a\\/1\\/1/a\\/1\\/2" + "a.org/a\\/2\\/1/a\\/2\\/2" + "gratuitous-prefix/b.org" + "gratuitous-prefix/b.org/b\\/1\\/1/b\\/1\\/2" + "gratuitous-prefix/b.org/b\\/2\\/1/b\\/2\\/2"))) + "Alist of ‘refile-use-outline-path’ settings and associated \ +expected refile targets.") + +(defmacro test-org/refile-get-targets (use-outline-path) + "Helper macro to test ‘org-refile-get-targets’ with \ +‘org-refile-use-outline-path’ set to USE-OUTLINE-PATH." + `(save-window-excursion + (let ((org-refile-targets '((("a.org" "b.org") + :level . 2))) + (org-refile-use-outline-path ,use-outline-path)) + (cd test-org/refile-use-outline-path-examples-dir) + (find-file-read-only "a.org") + (find-file-read-only "b.org") + (rename-buffer "gratuitous-prefix/b.org") + (should (equal + (mapcar #'car (org-refile-get-targets)) + (alist-get ,use-outline-path + test-org/refile-use-outline-path-targets)) + +(ert-deftest test-org/refile-get-targets-no-outline-path () + "Test ‘org-refile-get-targets’ with \ +‘org-refile-use-outline-path’ to ‘nil’." + (test-org/refile-get-targets nil)) + +(ert-deftest test-org/refile-get-targets-full-file-path () + "Test ‘org-refile-get-targets’ with \ +‘org-refile-use-outline-path’ set to ‘full-file-path’." + (test-org/refile-get-targets 'full-file-path)) + +(ert-deftest test-org/refile-get-targets-buffer-name () + "Test `org-refile-get-targets' with \ +`org-refile-use-outline-path' set to ‘buffer-name’." + (test-org/refile-get-targets 'buffer-name)) + +(ert-deftest test-org/refile-get-targets-file () + "Test `org-refile-get-targets' with \ +`org-refile-use-outline-path' set to ‘file’." + (test-org/refile-get-targets 'file)) + + ;;; Sparse trees (ert-deftest test-org/match-sparse-tree () -- 2.13.0
Re: [O] [PATCH 1/2] Add tests for org-refile-get-targets
Hello Nicolas, Nicolas Goaziou writes: > Nitpick: Sections in test-org.el are sorted alphabetically. So the new > "Refile" section could go between "Radio Targets" and "Sparse trees". Thank you, I hadn’t noticed. > Would it be possible to split this big test into smaller ones, with > a description about what is really tested? See other tests in > "test-org.el" for some examples. Big tests tend to not being very > informative when they fail. IMO, code duplication is not an issue in > test files when it makes tests more readable/useful. Sure. Have a look at the follow-up patch and let me know what you think. It didn’t feel right copy-pasting the tests wholesale, so I made a helper-macro. I checked the ert output by forcing a failure and the failure explanation looks as expected. Does this work for you? > It would be even better if you can avoid relying on real files ("a.org" > and "b.org" in your patch), but if it makes the test too convoluted, no > worries. In the follow-up, I stuck with this primarily because of the ‘full-file-path’ test. I figure one could somehow mock a file-backed buffer, but I expected that would be too involved just to have everything inlined in the test. Let me know if you think differently though. Kind regards, SR -- Insane cobra split the wood Trader of the lowland breed Call a jittney, drive away In the slipstream we will stay
Re: [O] Table in org-mode not to be exported to latex
Jérémie Juste writes: > Hello, > > maybe something like > > #+BEGIN_SRC org :exports none > | date | change | version | > |+--+-| > | 2016/11/18 | initial draft | 1.0 | > | 2017/05/04 | put in models of grief | 1.5 | > | 2017/05/16 | removed creative commons | 1.6 | > | | | | > #+END_SRC > Thanks for this Jeremie, unfortunately its failing. With this as my table in a block --8<---cut here---start->8--- #+BEGIN_SRC org :exports none | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | || | | #+END_SRC --8<---cut here---end--->8--- It fails showing this in the latex file --8<---cut here---start->8--- \lstset{language=org,label= ,caption= ,captionpos=b,numbers=none} \begin{lstlisting} | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | || | | \end{lstlisting} --8<---cut here---end--->8--- Sorry, but could this be related to the fact that I haven't defined any tables in my preamble? Thanks Sharon. > Best wishes, > > Jeremie > > On Wed, May 17, 2017 at 2:06 PM, Sharon Kimble > wrote: > > How can I have an org-mode table in an org-mode document that is > exported to latex, but the table is *NOT* exported, please? > > This is the table that I'm using - > > --8<---cut here---start->8--- > | date | change | version | > |+--+-| > | 2016/11/18 | initial draft | 1.0 | > | 2017/05/04 | put in models of grief | 1.5 | > | 2017/05/16 | removed creative commons | 1.6 | > | | | | > --8<---cut here---end--->8--- > > I've tried putting it in a drawer, but when the document is exported to > latex and the pdf built, it still shows the table. > > I've tried setting it up as below, but it then refuses to build the pdf. > > --8<---cut here---start->8--- > #+BEGIN_SRC :exports no > | date | change | version | > |+--+-| > | 2016/11/18 | initial draft | 1.0 | > | 2017/05/04 | put in models of grief | 1.5 | > | 2017/05/16 | removed creative commons | 1.6 | > | | | | > #+END_SRC > --8<---cut here---end--->8--- > > I've looked at 'The Org Manual' version 9.0.7 but I can't see how to do > it there either. > > Any ideas please? > > Thanks > Sharon. > -- > A taste of linux = http://www.sharons.org.uk > TGmeds = http://www.tgmeds.org.uk > DrugFacts = https://www.drugfacts.org.uk > Debian 8.8, fluxbox 1.3.5-2, emacs 25.1.1.1, org-mode 9.0.7 > > -- > Jérémie Juste > -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk DrugFacts = https://www.drugfacts.org.uk Debian 8.8, fluxbox 1.3.5-2, emacs 25.1.1.1, org-mode 9.0.7 signature.asc Description: PGP signature
Re: [O] Table in org-mode not to be exported to latex
Kaushal Modi writes: > On Wed, May 17, 2017, 8:07 AM Sharon Kimble > wrote: > > --8<---cut here---start->8--- > #+BEGIN_SRC :exports no > | > > I think that you are just missing out the language specifier there. Try: > > #+BEGIN_SRC org :exports no Unfortunately, with this as my block of table --8<---cut here---start->8--- #+BEGIN_SRC org :exports no | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | || | | #+END_SRC --8<---cut here---end--->8--- It fails to build the pdf saying - --8<---cut here---start->8--- \lstset{language=org,label= ,caption= ,captionpos=b,numbers=none} \begin{lstlisting} | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | || | | \end{lstlisting} --8<---cut here---end--->8--- Sorry. Could this be related to the fact that I haven't stated in my preamble that I was using tables? Sharon. > > -- > > Kaushal Modi > -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk DrugFacts = https://www.drugfacts.org.uk Debian 8.8, fluxbox 1.3.5-2, emacs 25.1.1.1, org-mode 9.0.7 signature.asc Description: PGP signature
Re: [O] no beamer export?
> "LF" == Luca Ferrari writes: LF> Hi all, LF> I'm running emacs 25.1.2 and I've no beamer export in the C-c C-e. LF> I've tried to include the directives: LF> #+LaTeX_CLASS: beamer LF> #+LaTeX_CLASS_OPTIONS: [presentation,smaller] LF> #+BEAMER_THEME: default LF> and then do a latex ordinary export (C-c C-e l p) but I got 'Unknow LF> latex beamer class'. LF> Am I missing something? Yes. Either use `org-beamer-mode' or use #+STARTUP: beamer in your org file. Regards, Sebastian -- Sebastian (Rudolfo) Christ http://rudolfochrist.github.io GPG Fingerprint: 306D 8FD3 DFB6 4E44 5061 CE71 6407 D6F8 2AC5 55DD
Re: [O] Table in org-mode not to be exported to latex
On Wednesday, 17 May 2017 at 12:06, Sharon Kimble wrote: > How can I have an org-mode table in an org-mode document that is > exported to latex, but the table is *NOT* exported, please? I tend to "hide" things like this (data tables, source codes) that I do not want exported within an inline task with :noexport: tag. Useful for having the data/code close to where it might be used without having to work around the hierarchical structure of org headings. -- : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.6-425-gf4fca1 signature.asc Description: PGP signature
Re: [O] no beamer export?
On Wednesday, 17 May 2017 at 13:45, Jérémie Juste wrote: > Hello > I apologise for the wrong info. it seams that I should reread the manual > myself. > > M-x org-beamer-mode, > > Then C-c C-e l P The first bit I think is not necessary but simply helps with respect to key bindings for special tags; The important thing is the key sequence given for exporting to the beamer target (b, P or O for LaTeX source, PDF or PDF&open). -- : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.6-425-gf4fca1 signature.asc Description: PGP signature
Re: [O] no beamer export?
Hello I apologise for the wrong info. it seams that I should reread the manual myself. M-x org-beamer-mode, Then C-c C-e l P Best regards, Jeremie On Wed, May 17, 2017 at 3:41 PM, Jérémie Juste wrote: > Hello, > > M-x beamer-mode. > > Then export to beamer. C-c C-e L P > > Read the manual. :-) > > Best regards > > Jeremie > > > On Wed, May 17, 2017 at 3:31 PM, Luca Ferrari > wrote: > >> Hi all, >> I'm running emacs 25.1.2 and I've no beamer export in the C-c C-e. >> I've tried to include the directives: >> >> #+LaTeX_CLASS: beamer >> #+LaTeX_CLASS_OPTIONS: [presentation,smaller] >> #+BEAMER_THEME: default >> >> and then do a latex ordinary export (C-c C-e l p) but I got 'Unknow >> latex beamer class'. >> Am I missing something? >> >> Thanks, >> Luca >> >> > > > -- > Jérémie Juste > -- Jérémie Juste
Re: [O] no beamer export?
Hello, M-x beamer-mode. Then export to beamer. C-c C-e L P Read the manual. :-) Best regards Jeremie On Wed, May 17, 2017 at 3:31 PM, Luca Ferrari wrote: > Hi all, > I'm running emacs 25.1.2 and I've no beamer export in the C-c C-e. > I've tried to include the directives: > > #+LaTeX_CLASS: beamer > #+LaTeX_CLASS_OPTIONS: [presentation,smaller] > #+BEAMER_THEME: default > > and then do a latex ordinary export (C-c C-e l p) but I got 'Unknow > latex beamer class'. > Am I missing something? > > Thanks, > Luca > > -- Jérémie Juste
[O] no beamer export?
Hi all, I'm running emacs 25.1.2 and I've no beamer export in the C-c C-e. I've tried to include the directives: #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation,smaller] #+BEAMER_THEME: default and then do a latex ordinary export (C-c C-e l p) but I got 'Unknow latex beamer class'. Am I missing something? Thanks, Luca
Re: [O] Python src blocks indent
Fabrice Popineau writes: > I mean that in the Org buffer I have for example : > > #+BEGIN_SRC ipython :session > def fact(n): > if n == 1: > return 1 > else: > return n * fact(n-1) > #+END_SRC > > That is, there is a 2 spaces indentation of the whole code block, and the > code block is properly indented. > When I export it, I get : > > def fact(n): > if n == 1: > return 1 > else: > return n * fact(n-1) FWIW I cannot reproduce it. You may want to debug `org-export-unravel-code', `org-export-format-code' or `org-export-format-code-default'. Regards,
Re: [O] [PATCH 2/2] org-refile: Fix inconsistency when listing refile targets
Hello, Sebastian Reuße writes: > * org.el (org-refile-get-targets): Setting org-refile-use-outline-path > to `file' or `buffer-name' causes an additional target for the file’s > root node to be inserted. This functionality was absent when using > `full-file-path'. We now add this since it is convenient and makes the > behavior more consistent. Applied. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Python src blocks indent
Hi, I mean that in the Org buffer I have for example : #+BEGIN_SRC ipython :session def fact(n): if n == 1: return 1 else: return n * fact(n-1) #+END_SRC That is, there is a 2 spaces indentation of the whole code block, and the code block is properly indented. When I export it, I get : def fact(n): if n == 1: return 1 else: return n * fact(n-1) in the IPython cell (basically, the notebook format is JSON and it is easy to count those spaces in the code string in the JSON file) and the 2 org-edit-src-content-indentation have been removed only on the first line. The other ones have 6 or 10 spaces instead of 4 and 8. Given that changing org-edit-src-content-indentation to 0 fixes this problem, I wonder if there is something wrong in the logic where this variable is used (only one place in org-src). But that could well be that it is not taken into account in places where it should. Regards, Fabrice
Re: [O] [PATCH v2] org-sort: Read compare-func in interactive calls
Hello, Kyle Meyer writes: > I'm confused why called-interactively-p's docstring suggests that > form. I'm also confused. The more I read the docstring, the less I understand it. Ah well. > At any rate, it won't do here: > > (funcall (lambda () >(interactive) >(not (or executing-kbd-macro noninteractive > ⇒ t > > (call-interactively (lambda () > (interactive) > (not (or executing-kbd-macro noninteractive > ⇒ t Ok. Let me drop the ball here, we both lost too much time on this already. If your patch with the signature change is functional, just go ahead. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Python src blocks indent
Hello, Fabrice Popineau writes: > I have a problem with Python src blocks indentation. > At the moment, I export IPython notebooks with ox-ipynb > (https://github.com/jkitchin/scimax/blob/master/ox-ipynb.el > from scimax by John Kitchin) > > All the lines but the first one in src code blocks have 2 superfluous > leading spaces. What do you mean by 2 superfluous leading spaces? org-edit-src-content-indentation default value is 2. Do yo mean there are now 4 spaces? Could you show an ECM? Regards, -- Nicolas Goaziou
Re: [O] [Patch] Fix handling of variable capture location
Hello, Yuri Lensky writes: > Capture locations in variable not working before this patch. Thank you. Could you show an example demonstrating the issue? The only difference I can see with your patch is that you're referring to the global value of file, not the local one. > From c0de1c390b370b497fbb093ac5efd3d7aeaac0dc Mon Sep 17 00:00:00 2001 > From: "Yuri D. Lensky" > Date: Sun, 12 Mar 2017 17:58:15 -0700 > Subject: [PATCH] org-capture.el: Fix handling of variable capture location > > --- > lisp/org-capture.el | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/lisp/org-capture.el b/lisp/org-capture.el > index 9ac9294..04c446d 100644 > --- a/lisp/org-capture.el > +++ b/lisp/org-capture.el > @@ -1060,7 +1060,8 @@ case, raise an error." >(let ((location (cond ((equal file "") org-default-notes-file) > ((stringp file) (expand-file-name file org-directory)) > ((functionp file) (funcall file)) > - ((and (symbolp file) (bound-and-true-p file))) > + ((and (symbolp file) (boundp file) (symbol-value file)) > + (symbol-value file)) The second call to `symbol-value' is not needed. Regards, -- Nicolas Goaziou
Re: [O] clock-table property column empty
Hello, Roland Everaert writes: > In a clocktable I have a column that must show the content of a property I > fill in each of my tasks. Since version 9.0.6, at least, this column is > empty. > > Any idea where this comes from? It was reported a few days ago. The bug doesn't appear in development branch. Could you use it instead? Regards, -- Nicolas Goaziou
Re: [O] Table in org-mode not to be exported to latex
On Wed, May 17, 2017, 8:07 AM Sharon Kimble wrote: > > --8<---cut here---start->8--- > #+BEGIN_SRC :exports no > | > I think that you are just missing out the language specifier there. Try: #+BEGIN_SRC org :exports no > -- Kaushal Modi
Re: [O] Table in org-mode not to be exported to latex
Hello, maybe something like #+BEGIN_SRC org :exports none | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | || | | #+END_SRC Best wishes, Jeremie On Wed, May 17, 2017 at 2:06 PM, Sharon Kimble wrote: > > How can I have an org-mode table in an org-mode document that is > exported to latex, but the table is *NOT* exported, please? > > This is the table that I'm using - > > --8<---cut here---start->8--- > | date | change | version | > |+--+-| > | 2016/11/18 | initial draft| 1.0 | > | 2017/05/04 | put in models of grief | 1.5 | > | 2017/05/16 | removed creative commons | 1.6 | > || | | > --8<---cut here---end--->8--- > > I've tried putting it in a drawer, but when the document is exported to > latex and the pdf built, it still shows the table. > > I've tried setting it up as below, but it then refuses to build the pdf. > > --8<---cut here---start->8--- > #+BEGIN_SRC :exports no > | date | change | version | > |+--+-| > | 2016/11/18 | initial draft| 1.0 | > | 2017/05/04 | put in models of grief | 1.5 | > | 2017/05/16 | removed creative commons | 1.6 | > || | | > #+END_SRC > --8<---cut here---end--->8--- > > I've looked at 'The Org Manual' version 9.0.7 but I can't see how to do > it there either. > > Any ideas please? > > Thanks > Sharon. > -- > A taste of linux = http://www.sharons.org.uk > TGmeds = http://www.tgmeds.org.uk > DrugFacts = https://www.drugfacts.org.uk > Debian 8.8, fluxbox 1.3.5-2, emacs 25.1.1.1, org-mode 9.0.7 > -- Jérémie Juste
[O] Table in org-mode not to be exported to latex
How can I have an org-mode table in an org-mode document that is exported to latex, but the table is *NOT* exported, please? This is the table that I'm using - --8<---cut here---start->8--- | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | || | | --8<---cut here---end--->8--- I've tried putting it in a drawer, but when the document is exported to latex and the pdf built, it still shows the table. I've tried setting it up as below, but it then refuses to build the pdf. --8<---cut here---start->8--- #+BEGIN_SRC :exports no | date | change | version | |+--+-| | 2016/11/18 | initial draft| 1.0 | | 2017/05/04 | put in models of grief | 1.5 | | 2017/05/16 | removed creative commons | 1.6 | || | | #+END_SRC --8<---cut here---end--->8--- I've looked at 'The Org Manual' version 9.0.7 but I can't see how to do it there either. Any ideas please? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk DrugFacts = https://www.drugfacts.org.uk Debian 8.8, fluxbox 1.3.5-2, emacs 25.1.1.1, org-mode 9.0.7 signature.asc Description: PGP signature
[O] org-icalendar timezone property?
I'm trying to figure out if I can set an org-icalendar event's timezone using some sort of property on the headline. Looking at the code, it doesn't seem to be possible -- is that true? I know about org-icalendar-timezone, which appears to be a global value. Has anyone successfully specified a per-headline timezone? Thanks, Eric
[O] clock-table property column empty
Hi, In a clocktable I have a column that must show the content of a property I fill in each of my tasks. Since version 9.0.6, at least, this column is empty. Any idea where this comes from? Emacs and Org-mode versions: GNU Emacs 25.2.1 (x86_64-unknown-cygwin) of 2017-04-21 Org mode version 9.0.7 (9.0.7-elpaplus @ /cygdrive/c/Users/re/.emacs.d/elpa/org-plus-contrib-20170515/) Thanks for your help, Roland.