Re: [O] How to trigger the clockcheck in an agenda view.
Am 7/29/2013 10:48 AM, schrieb Sebastien Vauban: Hi Rainer Stengele, Rainer Stengele wrote: Am 7/17/2013 2:07 PM, schrieb Rainer Stengele: Am 12.07.2013 10:06, schrieb Rainer Stengele: I want to start an aganda view over a week and immediately check the consistency of clock entries: I can't seem to find a way to trigger the clockcheck in the agenda view options. At the moment I have:: (Aw agenda + no todos - this week - log-mode - ARCHIVE included - clock report agenda ( (org-agenda-sorting-strategy '(time-up priority-down)) (org-agenda-span 'week) (org-agenda-start-with-log-mode t) (org-agenda-archives-mode t) (org-agenda-start-with-clockreport-mode t) )) Do I miss the variable to be set? Anybody? I know this is special, but I do not know how to check the existence of such a variable. If it doesn't I would suggest it as enhancement. The following does what you want: --8---cut here---start-8--- (add-to-list 'org-agenda-custom-commands '(rC Clock Review agenda ((org-agenda-archives-mode t) (org-agenda-clockreport-mode t) (org-agenda-overriding-header Clocking Review) (org-agenda-show-log 'clockcheck) (org-agenda-span 'day))) t) --8---cut here---end---8--- Best regards, Seb PS- I've been on holidays and still ahve ~300 Org posts to read... Sebastian, thank you for taking your precious time to consider my question! I replaced my configuration with exactly yours and it doesn't start with showing the clockchecks (time gaps etc.). I have to type v c to activate the clockcheck. I run the latest org version from just 3 minutes ago. Any idea? Best regards, Rainer.
[O] using org-priority-faces to highlight a line
Following up on this thread, http://lists.gnu.org/archive/html/emacs-orgmode/2012-09/msg01295.html I can get org-priority-faces to highlight the priority cookie itself, but I'd like to highlight the whole line by its priority. Any suggestions? Based on the earlier thread, I am using (setq org-priority-faces '((?A . (:foreground red :weight bold)) (?B . (:foreground white)) (?C . (:foreground grey (Also, customize doesn't do anything for me at all, so I've been doing it by hand.) thanks, greg
Re: [O] [bug] latex export ascii encoding
Hi Nicolas, thanks for response and sorry for delayed answer, I was on vacation and absent to my emacs :/ An ECM would be a file just containing some umlauts. In more detail: using emacs GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-06-25 on sochi, modified by Debian I export a text =testumlaut1.org= just containing : öäü ÖÄÜ from a latin-1 buffer : 1 -- iso-latin-1-unix (alias: iso-8859-1-unix latin-1-unix) : : ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1). : Type: charset (charset) : EOL type: LF : This coding system encodes the following charsets: : iso-8859-1 with =C-c C-e l l= which results in : % Created 2013-07-31 Mi 08:39 : \documentclass[11pt]{article} : \usepackage[latin1]{inputenc} : \usepackage[T1]{fontenc} : \usepackage{fixltx2e} : \usepackage{graphicx} : \usepackage[normalem]{ulem} : \usepackage{textcomp} : \usepackage{latexsym} : \usepackage{amssymb} : \usepackage{amstext} : \author{Jan-Mark Batke} : \date{\today} : \title{testumlaut1} : \hypersetup{ : pdfkeywords={}, : pdfsubject={}, : pdfcreator={Emacs 24.3.1 (Org mode 8.0.6)}} : \begin{document} : : \maketitle : \tableofcontents : : öäü ÃÃà : % Emacs 24.3.1 (Org mode 8.0.6) : \end{document} The file is as well encoded in : 1 -- iso-latin-1-unix (alias: iso-8859-1-unix latin-1-unix) : : ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1). : Type: charset (charset) : EOL type: LF : This coding system encodes the following charsets: : iso-8859-1 Interestingly, exporting in a buffer using =C-c C-e l L= results in : % Created 2013-07-31 Mi 08:45 : \documentclass[11pt]{article} : \usepackage[latin1]{inputenc} : \usepackage[T1]{fontenc} : \usepackage{fixltx2e} : \usepackage{graphicx} : \usepackage[normalem]{ulem} : \usepackage{textcomp} : \usepackage{latexsym} : \usepackage{amssymb} : \usepackage{amstext} : \author{Jan-Mark Batke} : \date{\today} : \title{testumlaut1} : \hypersetup{ : pdfkeywords={}, : pdfsubject={}, : pdfcreator={Emacs 24.3.1 (Org mode 8.0.6)}} : \begin{document} : : \maketitle : \tableofcontents : : öäü ÖÄÜ : % Emacs 24.3.1 (Org mode 8.0.6) : \end{document} but the buffer is : U -- utf-8-unix (alias: mule-utf-8-unix) : : UTF-8 (no signature (BOM)) : Type: utf-8 (UTF-8: Emacs internal multibyte form) : EOL type: LF : This coding system encodes the following charsets: : unicode No problems occur using utf-8 encoding. On windows, it is vice versa, latin-1 does work, utf-8 not. I am not sure this problem depends more on emacs or org-mode. Best regards Jan-Mark 2013/7/12 Nicolas Goaziou n.goaz...@gmail.com Hello, Jan-Mark Batke bad...@gmx.net writes: exporting latex causes some trouble here. - exporting utf-8 ascii does work - exporting latin-1 ascii does not work, - the file format is set correctly (1 in mode-line displayed) - inputenc option is set to latin1 - content is corrupted, e.g. üöä becomes üöä I cannot reproduce the problem. Could you post an ECM for that? Regards, -- Nicolas Goaziou -- Jan-Mark Batke bad...@gmx.net FON +49 511 33 64 800 FAX +49 511 22 09 521
Re: [O] Reading books with org-mode
Hi Kyle, Thanks for sharing this, this is excellent. I have been looking for a way to read epub books in Emacs and this is even better! However, trying this out I noted that I can't seem to follow the (internal) links in the file, whatever I click on, it all ends up at the same place. The file seems to have the right voodoo in it to allow for the links to work, so it might be either my setup or a general org problem. Do you see the same behaviour for links? Christian On 2013-07-30 05:24, Kyle Sexton wrote: Just wanted to share a tip I've been using that is pretty nice. Convert any epub/mobi technical books you are reading to org-mode files and read them in Emacs. Then you can do nice things like easily cut and paste portions of the book to org-drill for flash cards or into capture templates. The conversion process is different for every book (imagine that), but not too horrible. Basically, Calibre - htmlz - unzip - pandoc: #+BEGIN_EXAMPLE $ cp ~/Calibre\ Library/Metz*/Practi*/*.htmlz ./book.htmlz $ unzip -q book.htmlz $ pandoc ./index.html -o book.org #+END_EXAMPLE After that I usually have to global convert [[image/foo.png]] to [[file:image/foo.png]] and add inlineimages to a start-up option on the file. -- Kyle Sexton -- Christian Wittern, Kyoto
[O] LaTex Adjustments for Org-Export
I'm trying to export a .org file to .pdf and although I've gotten past many formatting hurdles, I am stuck on two problems. 1) How can I redefine, in my org-export-latex-classes variable, the \section definition, such that it includes \pagebreak? My reason is that I would like each of my top-level headings to start on a new page, like a new chapter. 2) How can I change the basic formatting of paragraphs everywhere to a) omit the leading indent, and b) have a blank line between paragraphs Instead of this strange-looking style: This is a test paragraph of the following kind of thing. And so is this one. I want it to look like this: This is a test paragraph of the following kind of thing. And so is this one. Thanks for any helpful souls out there. I'm working on learning LaTeX but can't see how the various parts of the article base class fit together and how to selectively override them. -Jeff
Re: [O] [bug] latex export ascii encoding
Hello, Jan-Mark Batke bad...@gmx.net writes: I export a text =testumlaut1.org= just containing : öäü ÖÄÜ from a latin-1 buffer : 1 -- iso-latin-1-unix (alias: iso-8859-1-unix latin-1-unix) : : ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1). : Type: charset (charset) : EOL type: LF : This coding system encodes the following charsets: : iso-8859-1 with =C-c C-e l l= which results in : % Created 2013-07-31 Mi 08:39 : \documentclass[11pt]{article} : \usepackage[latin1]{inputenc} : \usepackage[T1]{fontenc} : \usepackage{fixltx2e} : \usepackage{graphicx} : \usepackage[normalem]{ulem} : \usepackage{textcomp} : \usepackage{latexsym} : \usepackage{amssymb} : \usepackage{amstext} : \author{Jan-Mark Batke} : \date{\today} : \title{testumlaut1} : \hypersetup{ : pdfkeywords={}, : pdfsubject={}, : pdfcreator={Emacs 24.3.1 (Org mode 8.0.6)}} : \begin{document} : : \maketitle : \tableofcontents : : öäü ÖÄÜ : % Emacs 24.3.1 (Org mode 8.0.6) : \end{document} This should now be fixed. Could you confirm it? Regards, -- Nicolas Goaziou
Re: [O] Handling Repeating events from google calendar / repeater interval
Hi Stephen, I probably did not express myself well: The [UTC] means the timestamp was converted from UTC, which is the case. It is probably quite confusing to attach a TZ which is no longer supposed to be the case. I will probably change that. Is the org-mode time a correct local time now? I understand from ri_cal docs that ri_cal should do conversion as expected, but if not I can probably fix it easily. Cheers, Simon On 07/30/2013 03:06 PM, Stephen Eglen wrote: sorry the patch was incomplete. The correct one is on a branch I just pushed named tz-test. For me it works the same but maybe it works for you. Thanks Simon, but unfortuantely I'm still seeing [UTC]. Stephen
Re: [O] $ in paragraph -- footnote problem
Hello, Alan L Tyree alanty...@gmail.com writes: I have a paragraph with a $120,000 in it. At any point after the $ sign, org will not let me insert a footnote, giving the message Cannot insert a footnote here. Removing the $ allows a footnote, but replacing the $ disables it. Adding another currency figure to the paragraph changes nothing. Is this a bug or a problem with my setup? This is a known limitation of `org-footnote-in-valid-context-p', which relies on `org-inside-LaTeX-fragment-p' (see its docstring). It should use `org-inside-complete-LaTeX-fragment-p', which doesn't exist yet[1]. Regards, [1] Well, there is: (memq (org-element-type (org-element-context)) '(latex-environment latex-fragment)) but this is not an option at the moment. -- Nicolas Goaziou
[O] Org mode or Org-mode or org-mode or org?
On the orgmode.org site this thing is called Org mode while on worg and in the papers on literate programming with org it is called Org-mode with a hyphen. On the email list it is commonly called org-mode (lower case o, hyphen) or just org. Is there any consensus about the proper name by which to refer to [oO]rg[-]mode in a formal context? Tom
Re: [O] Handling Repeating events from google calendar / repeater interval
On Mon, Jul 8, 2013 at 11:55 AM, Guido Van Hoecke gui...@gmail.com wrote: Correct me if I am wrong, but I'm afraid that pure AWK does not provide date computation support. That's why I did not implement this. So I would definitely vote to extend the repeater syntax with a count. Before defending my precious AWK, I'll say that I think that repeating timestamps are a good idea and I'm not trying to talk anyone out of it. From http://en.wikipedia.org/wiki/Awk: http://en.wikipedia.org/wiki/Awk http://en.wikipedia.org/wiki/Awk Although AWK and sed were designed to support one-liner programs, even the early: Bell Labs users of AWK often wrote well-structured large AWK programs, and despite its limited intended area of use, AWK is Turing-complete I wouldn't recommend starting out to write a significant app in AWK, but adding a feature to an existing script doesn't seem unreasonable. The time functions are documented at http://www.gnu.org/software/gawk/manual/gawk.html#Time-Functions. The input may need a bit of string preprocessing before being passed to the time functions and, as we all know, AWK does a fine job of string manipulation. While I don't have time to bang on a huge script, if someone gives me the input and output for the time conversion, I should be able to whip that up pretty quickly. Neil PS: You crazy kids and your lack of respect for antiquated UNIX utilities ;-) In the interest of full disclosure, the quote above from the WIkipedia is immediately followed by: The power, terseness, and limits of early AWK programs inspired Larry Wall to write Perl So your lack of AWK knowledge seems reasonable as there are many better utilities.
Re: [O] LaTex Adjustments for Org-Export
On Wed, Jul 31, 2013 at 7:27 AM, Jeff Rush jr...@taupro.com wrote: I'm trying to export a .org file to .pdf and although I've gotten past many formatting hurdles, I am stuck on two problems. 1) How can I redefine, in my org-export-latex-classes variable, the \section definition, such that it includes \pagebreak? My reason is that I would like each of my top-level headings to start on a new page, like a new chapter. Can't help with this one. 2) How can I change the basic formatting of paragraphs everywhere to a) omit the leading indent, and b) have a blank line between paragraphs Instead of this strange-looking style: This is a test paragraph of the following kind of thing. And so is this one. I want it to look like this: This is a test paragraph of the following kind of thing. And so is this one. Thanks for any helpful souls out there. I'm working on learning LaTeX but can't see how the various parts of the article base class fit together and how to selectively override them. I have the following in my setupfile, which I think greatly improves the default look: #+latex_header: \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry} #+latex_header: \usepackage{paralist} #+latex_header: \setlength{\parskip}{0.5cm} \setlength{\parindent}{0cm} #+latex_header: \usepackage{mathpazo} The \parskip and \parindent options should get you in the ballpark of what you're looking for (non-indented new paragraphs, white space between consecutive paragraphs). The others widen the text space and use a nicer font. Good luck! John -Jeff
[O] ox-bibtex in contrib?
Hi all, I have org-plus-contrib installed using elpa from http://orgmode.org/elpa/, but this doesn't seem to include ox-bibtex.el. Should it? Or does this need to be installed separately? Thanks, Ista
Re: [O] Org mode or Org-mode or org-mode or org?
Tom Slee wrote: On the orgmode.org site this thing is called Org mode while on worg and in the papers on literate programming with org it is called Org-mode with a hyphen. On the email list it is commonly called org-mode (lower case o, hyphen) or just org. Is there any consensus about the proper name by which to refer to [oO]rg[-]mode in a formal context? Personally, I follow the convention used in the Emacs manual, that is Dired mode, Hideshow mode, Org mode, etc. Extract: ╭ │ 25.9 Org Mode │ = │ │ Org mode is a variant of Outline mode for using Emacs as an organizer │ and/or authoring system. Files with names ending in the extension │ `.org' are opened in Org mode (*note Choosing Modes::). To explicitly │ switch to Org mode, type `M-x org-mode'. │ │In Org mode, as in Outline mode, each entry has a heading line that │ starts with one or more `*' characters. *Note Outline Format::. In │ addition, any line that begins with the `#' character is treated as a │ comment. ╰ Best regards, Seb -- Sebastien Vauban
Re: [O] [bug] latex export ascii encoding
Jan-Mark Batke bad...@gmx.net writes: I just upgraded using elpa. Exporting from a latin-1 file into a tex file does work now, exporting to a buffer does not set the right encoding, though. And, the version number in the exported file is 7.9.3f now. Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /home/batkejm/.emacs.d/elpa/org-20130731.1445/) You have an installation problem. When you upgrade using ELPA, you have to make sure Org isn't loaded yet. Regards, -- Nicolas Goaziou
Re: [O] Org mode or Org-mode or org-mode or org?
Thanks Sebastien and Suvayu: your answers make a lot of sense (and are even consistent with each other). Tom On Wed, Jul 31, 2013 at 11:06 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: On Wed, Jul 31, 2013 at 04:45:53PM +0200, Sebastien Vauban wrote: Tom Slee wrote: On the orgmode.org site this thing is called Org mode while on worg and in the papers on literate programming with org it is called Org-mode with a hyphen. On the email list it is commonly called org-mode (lower case o, hyphen) or just org. Is there any consensus about the proper name by which to refer to [oO]rg[-]mode in a formal context? Personally, I follow the convention used in the Emacs manual, that is Dired mode, Hideshow mode, Org mode, etc. AFAIR, Carsten prefers it as Org mode too. That said, I think the names are somewhat context dependent. The manual prefers Org mode, following the convention: Name mode. On the list you will see people use org-mode because that is the actual command to turn on Org mode. Sometimes this is shortened as org, or Org. Academic discussions of Org mode are bound by the rules of grammar. I guess that is why you might Org-mode instead of org-mode: proper nouns are capitalised. :) -- Suvayu Open source is the future. It sets us free.
Re: [O] using cl-lib Was: [bug?][ob-core] using remove-if
Aaron Ecay aarone...@gmail.com writes: There is light at the end of this tunnel: emacs 24.3 introduced the cl-lib package, making cl functions canonically available with a ‘cl-’ prefix. So once emacs 26 is out (and support for emacs 24.[12] is dropped), org can use the cl- versions Great, so long term we will be able to drop all of the org-* versions of cl-* functions. I wasn't aware, thanks for sharing. cl-lib is also on GNU ELPA, so org could decide to start using it today as long as that external dependency is properly handled. I personally find this very appealing. I see the following benefits and drawbacks. Benefits: 1. we could use the full power of cl-* functions and macros 2. we could remove all of the org-* re-writes of cl-* functions reducing the amount of code we have to maintain, and 3. we will presumably be making this change anyway at some point down the line (whenever Emacs 26 is released) Drawbacks: 1. it adds another step (installing cl-lib) to Org-mode installation on the great majority of systems 2. it adds a dependency for Org-mode instillation, also, if cl-lib doesn't support some of the targets currently supported by Org-mode (e.g., maybe Emacs23 or XEmacs) 3. if Org-mode is loaded in Emacs by default, then that would mean that cl-lib would also need to be loaded in Emacs by default, would that be okay with the Emacs maintainers? I'm sure I'm missing other points. I guess for now at least the drawbacks probably out-weight the benefits, but I look forward to when we do make this transition. Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte PGP: 0x614CA05D
[O] small patch for worg on encrypting files
Hello, I just played with encrypting an org file, and I found a couple typos and corrections for this page. I attach the patch that would fix them. Best, Alan From 6721b5dc19abdf02ad54e78c6edfa1d3ba26916d Mon Sep 17 00:00:00 2001 From: Alan Schmitt alan.schm...@polytechnique.org Date: Wed, 31 Jul 2013 18:20:58 +0200 Subject: [PATCH] encrypting-files: fix typos --- org-tutorials/encrypting-files.org | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org-tutorials/encrypting-files.org b/org-tutorials/encrypting-files.org index 74a04c4..a19bbe4 100644 --- a/org-tutorials/encrypting-files.org +++ b/org-tutorials/encrypting-files.org @@ -30,7 +30,9 @@ add the following to your .emacs: If you want to encrypt the whole file using gnupg, but still have the decrypted file recognized as an org file, you should make: -B-*- mode:org; epa-file-encrypt-to: (m...@mydomain.com) -*- +#+BEGIN_SRC org + # -*- mode:org; epa-file-encrypt-to: (m...@mydomain.com) -*- +#+END_SRC the first line in the file. Where m...@mydomain.com is the email address associated with your default gnupg key. Note that gpg @@ -47,7 +49,7 @@ Encryption, you require both your private key and your pass phrase. EasyPG can use both methods of encryption. If you want to use symmetric encryption omitting the epa-file-encrypt-to: from your -.gpg file should do the trick. If this doesn't work, you may try +.gpg file or setting it to ~nil~ should do the trick. If this doesn't work, you may try setting the variable: #+BEGIN_SRC emacs-lisp -- 1.8.2.1
Re: [O] LaTex Adjustments for Org-Export
[I thought I sent this before but I don't see it on gmane, so it's either hung up somewhere or in the bit bucket. Apologies if you see it twice - assuming that it makes it at least this time :-)] Jeff Rush jr...@taupro.com writes: I'm trying to export a .org file to .pdf and although I've gotten past many formatting hurdles, I am stuck on two problems. 1) How can I redefine, in my org-export-latex-classes variable, the \section definition, such that it includes \pagebreak? My reason is that I would like each of my top-level headings to start on a new page, like a new chapter. 2) How can I change the basic formatting of paragraphs everywhere to a) omit the leading indent, and b) have a blank line between paragraphs Instead of this strange-looking style: This is a test paragraph of the following kind of thing. And so is this one. I want it to look like this: This is a test paragraph of the following kind of thing. And so is this one. Thanks for any helpful souls out there. I'm working on learning LaTeX but can't see how the various parts of the article base class fit together and how to selectively override them. I think the best solution is along these lines: o use a latex style file to redefine \parindent and \parskip. Also define a new command, \psection, to do the page break thingie. o Add a new class to org-latex-classes which is just like article except that it uses \psection in place of \section (so I call it particle :-) ) o Tell org to use particle as your LaTeX class, and also tell it to use the latex style from step 1. In more detail, create a file, foo.sty, in the same directory as your org file and give it these contents: --8---cut here---start-8--- \setlength{\parindent}{0pt} \setlength{\parskip}{4pt} \newcommand{\psection}{\newpage\section} --8---cut here---end---8--- Then evaluate the following (or add this to your .emacs if you want to make it permanent - needs to be added *after* org-latex-classes is defined, so it might need to be in a hook): --8---cut here---start-8--- (add-to-list 'org-latex-classes '(particle \\documentclass[11pt]{article} (\\psection{%s} . \\psection*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) --8---cut here---end---8--- and finally your org file should look like this: --8---cut here---start-8--- #+LATEX_CLASS: particle #+LATEX_HEADER: \usepackage{foo} * foo This is a long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph. This is another paragraph. * bar Who knows? Who cares? --8---cut here---end---8--- HTH. -- Nick
Re: [O] small patch for worg on encrypting files
Alan Schmitt writes: I just played with encrypting an org file, and I found a couple typos and corrections for this page. I attach the patch that would fix them. Applied. Josiah
[O] org-export-current-backend variable and org-mode 8
Hi, In org-mode 7, I was able to use the (documented) variable org-export-current-backend to test what the current backend is, allowing me to dynamically produce and include images of different formats depending on whether I was exporting to latex (tikz) or html (png). In org-mode 8, I cannot find this variable, or any documented variable of a similar nature. What is the recommended way for dispatching at the emacs-lisp level when exporting a document on the export backend? Thanks, Christophe
Re: [O] org-export-current-backend variable and org-mode 8
Hi Christophe, Christophe Rhodes cs...@cantab.net writes: In org-mode 7, I was able to use the (documented) variable org-export-current-backend to test what the current backend is, allowing me to dynamically produce and include images of different formats depending on whether I was exporting to latex (tikz) or html (png). In org-mode 8, I cannot find this variable, or any documented variable of a similar nature. What is the recommended way for dispatching at the emacs-lisp level when exporting a document on the export backend? I don't know if this is exactly what you are asking for but I hit on the following a few weeks ago. It defines an elisp macro inside the org file and then calls it later in the header of a code block to switch the output file names based on which backend (if any) is in effect. I hope it helps. If you have a better way to do these kind of output switches, I'd like to know. * COMMENT setup #+begin_src emacs-lisp :results silent (defmacro by-backend (rest body) `(case (if (boundp 'backend) backend nil) ,@body)) #+end_src * A graph #+header: :file (by-backend (html graph.png) (latex graph.pdf) (t graph.svg)) #+header: :export results #+begin_src dot digraph Name { tail - head; } #+end_src -Brett. pgprOFxwMXXfh.pgp Description: PGP signature
Re: [O] org-export-current-backend variable and org-mode 8
Brett Viren b...@bnl.gov writes: Christophe Rhodes cs...@cantab.net writes: In org-mode 7, I was able to use the (documented) variable org-export-current-backend to test what the current backend is, allowing me to dynamically produce and include images of different formats depending on whether I was exporting to latex (tikz) or html (png). In org-mode 8, I cannot find this variable, or any documented variable of a similar nature. What is the recommended way for dispatching at the emacs-lisp level when exporting a document on the export backend? I don't know if this is exactly what you are asking for but I hit on the following a few weeks ago. It defines an elisp macro inside the org file and then calls it later in the header of a code block to switch the output file names based on which backend (if any) is in effect. I hope it helps. Thanks. Well, it proves at least that I'm not going mad :-( If you have a better way to do these kind of output switches, I'd like to know. #+begin_src emacs-lisp :results silent (defmacro by-backend (rest body) `(case (if (boundp 'backend) backend nil) ,@body)) #+end_src It's funny -- I felt queasy using the bare backend variable in the olden 6.x days, and was very happy when org-export-current-backend showed up. Now, there's a real reason to be worried about using backend: it's fairly clearly used as an internal variable, and all it would take would be for lexical binding to be turned on for ox.el and this would (probably) stop working. If we're grubbing around in internals, I might be tempted instead by something like [untested] #+begin_src emacs-lisp :exports results :results silent (unless (boundp 'org-export-current-backend) (defadvice org-export-as (around oecb-around) (let ((org-export-current-backend (ad-get-arg 0))) ad-do-it))) #+end_src so that if (as I hope) org-export-current-backend makes a later reappearance, my documents can work with both org-mode 7 and 8, and maybe 9? I'm hoping that the disappearance of the variable is an oversight rather than intentional :-/ Cheers, Christophe pgpcgWKMs5gHV.pgp Description: PGP signature
Re: [O] possible org-insert-heading bug?
Carsten, any news on this? I'm struggling with RET C-RET during notes taking. Cheers, Simon On 07/03/2013 05:52 AM, Carsten Dominik wrote: Hi, yes, org-insert-heading is broken - nad I am trying to find time to rewrite it. My top Org priority. - Carsten On 3.7.2013, at 00:11, John Hendy jw.he...@gmail.com wrote: Hi Erik, Glad to see you around :) These all may be quite related. I haven't seen activity on those threads suggesting whether a) the documentation is, in fact, right or wrong or b) whether anyone has taken action to fix or adjust the behavior of M-RET or C-RET based on the complaints/counter-intuitive observations. Let me know if those are similar to your issue. Perhaps Bastien can comment on the state of these thread, now at least four in number... - http://www.mail-archive.com/emacs-orgmode@gnu.org/msg70718.html - http://osdir.com/ml/emacs-orgmode-gnu/2013-05/msg00846.html - http://permalink.gmane.org/gmane.emacs.orgmode/72399 I've taken to using C-RET in the meantime, as it seems to do what I often expect when reflexively pressing M-RET. Also, someone once corrected me on the documentation that at the end of the line might mean before the ellipsis, not after? Hope that helps! John On Tue, Jul 2, 2013 at 1:53 PM, Erik Iverson erikriver...@gmail.com wrote: Hello, I am using a current git pull (Org-mode version 8.0.3, release_8.0.3-345-g239aa7) and noticed behavior that's easiest to show with a small example. If you save and visit the following org file, https://dl.dropboxusercontent.com/u/7514404/test.org you will see the behavior described and documented (assuming it's reproducible under your version of emacs and orgmode). Briefly M-RET at the end of a *folded* headline that contains plain list items will insert a new plain list item at the end of the subtree, instead of a new top-level headline. I believe this conflicts with the documentation for M-RET, which currently reads: ... If the command is used at the end of a folded subtree (i.e., behind the ellipses at the end of a headline), then a headline like the current one will be inserted after the end of the subtree... Best, --Erik
Re: [O] Handling Repeating events from google calendar / repeater interval
Neil Smithline emacs-orgm...@neilsmithline.com writes: On Mon, Jul 8, 2013 at 11:55 AM, Guido Van Hoecke gui...@gmail.com wrote: Correct me if I am wrong, but I'm afraid that pure AWK does not provide date computation support. Apparently I was not very awake when I wrote that. Awk could be used to increment dates by n days, weeks, moths or years. But this would only be needed if we want / need to turn iCal RRULE events with COUNT specifier into COUNT separate org events (trying to circumvent the lack of such a COUNT specifier in org repeating dates). So although it is feasable, I'm still not sure it is the proper way to go. However, I am willing to implement it if needed / desired. So I would definitely vote to extend the repeater syntax with a count. I still think that this is the correct approach. PS: You crazy kids and your lack of respect for antiquated UNIX utilities ;-) Oooch, that hurts this crazy 66 year old kid :) Guido -- Expect the worst, it's the least you can do.
Re: [O] LaTex Adjustments for Org-Export
On Wed, Jul 31, 2013 at 12:24:35PM -0400, Nick Dokos wrote: o Add a new class to org-latex-classes which is just like article except that it uses \psection in place of \section (so I call it particle :-) ) :) On a serious note, doesn't the report class already do that? -- Suvayu Open source is the future. It sets us free.
[O] bug: restriction lock ignored in indirect buffer
create an indirect buffer for a subtree set restriction lock to that subtree agenda m LEVEL0 what i saw: the entire file what i expected: the subtree Thanks. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen NOW.
Re: [O] [bug] latex export ascii encoding
Hi Nicolas, I just upgraded using elpa. Exporting from a latin-1 file into a tex file does work now, exporting to a buffer does not set the right encoding, though. And, the version number in the exported file is 7.9.3f now. Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /home/batkejm/.emacs.d/elpa/org-20130731.1445/) Jan-Mark 2013/7/31 Nicolas Goaziou n.goaz...@gmail.com Hello, Jan-Mark Batke bad...@gmx.net writes: I export a text =testumlaut1.org= just containing : öäü ÖÄÜ from a latin-1 buffer : 1 -- iso-latin-1-unix (alias: iso-8859-1-unix latin-1-unix) : : ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1). : Type: charset (charset) : EOL type: LF : This coding system encodes the following charsets: : iso-8859-1 with =C-c C-e l l= which results in : % Created 2013-07-31 Mi 08:39 : \documentclass[11pt]{article} : \usepackage[latin1]{inputenc} : \usepackage[T1]{fontenc} : \usepackage{fixltx2e} : \usepackage{graphicx} : \usepackage[normalem]{ulem} : \usepackage{textcomp} : \usepackage{latexsym} : \usepackage{amssymb} : \usepackage{amstext} : \author{Jan-Mark Batke} : \date{\today} : \title{testumlaut1} : \hypersetup{ : pdfkeywords={}, : pdfsubject={}, : pdfcreator={Emacs 24.3.1 (Org mode 8.0.6)}} : \begin{document} : : \maketitle : \tableofcontents : : öäü ÖÄÜ : % Emacs 24.3.1 (Org mode 8.0.6) : \end{document} This should now be fixed. Could you confirm it? Regards, -- Nicolas Goaziou -- Jan-Mark Batke bad...@gmx.net FON +49 511 33 64 800 FAX +49 511 22 09 521
Re: [O] org-export-current-backend variable and org-mode 8
Hello, Christophe Rhodes cs...@cantab.net writes: so that if (as I hope) org-export-current-backend makes a later reappearance, my documents can work with both org-mode 7 and 8, and maybe 9? I'm hoping that the disappearance of the variable is an oversight rather than intentional :-/ It is intentional. I tried to reduce the number of dynamically scoped variables. On the other hand, hooks and filters all get back-end's name, if any, as an argument, which limits the need for that variable. The only missing part is Babel. I thought the recently introduced `by-backend' feature was sufficient. Isn't it the case? I also thought about reintroducing `org-export-current-backend', but that would be redundant with hooks and filters' arguments. Removing these is not an option either, as that would break every hook/filter in the wild. Regards, -- Nicolas Goaziou
Re: [O] Handling Repeating events from google calendar / repeater interval
Yes, probably, but don't count on me in the next 4 days (vacation). On 07/31/2013 11:08 PM, Stephen Eglen wrote: On Wed, Jul 31 2013, Simon Thum wrote: Hi Stephen, I probably did not express myself well: The [UTC] means the timestamp was converted from UTC, which is the case. It is probably quite confusing to attach a TZ which is no longer supposed to be the case. I will probably change that. Is the org-mode time a correct local time now? I understand from ri_cal docs that ri_cal should do conversion as expected, but if not I can probably fix it easily. Cheers, Simon hi Simon, (dropping orgmode for now until we find a solution!) no, the org mode times are still GMT rather than with summer time added. Would it help if I made a test calendar to share with you? Stephen
Re: [O] [bug] latex export ascii encoding
Nicolas Goaziou writes: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /home/batkejm/.emacs.d/elpa/org-20130731.1445/) You have an installation problem. When you upgrade using ELPA, you have to make sure Org isn't loaded yet. Also, do not use the Org package from MELPA, it's broken. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] [WORG] How to ediff folded Org files?
Thorsten Jolitz tjolitz at gmail.com writes: Hi List, many files on Worg have this startup option: ,-- | +STARTUP:... fold ... `-- what leads to trouble when there is a merge-conflict in (Ma)git to be resolved manually with e(diff), because the different versions of the Org-file are then presented in folded state in the ediff session, so the diffs are invisible. But when I call 'show-all' or so on them, it breaks the ediff session. Is there a simple trick to avoid this problem? I was searching for a similar issue and came upon this list. I have a slightly different solution from the ones posted so far. When doing a diff, each org-mode buffer is fully folded. For each diff selection, that portion of the tree for each buffer is expanded. When moving to a new diff, the previous portion of the tree is collapsed and the area surrounding the new diff location is expanded. Acknowledgment: Michael Brand's solution was my starting inspiration. #+BEGIN_SRC emacs-lisp ;; diff hooks for org mode (add-hook 'ediff-select-hook 'f-ediff-org-unfold-tree-element) (add-hook 'ediff-unselect-hook 'f-ediff-org-fold-tree) ;; Check for org mode and existence of buffer (defun f-ediff-org-showhide(buf command rest cmdargs) If buffer exists and is orgmode then execute command (if buf (if (eq (buffer-local-value 'major-mode (get-buffer buf)) 'org-mode) (save-excursion (set-buffer buf) (apply command cmdargs))) ) ) (defun f-ediff-org-unfold-tree-element () Unfold tree at diff location (f-ediff-org-showhide ediff-buffer-A 'org-reveal) (f-ediff-org-showhide ediff-buffer-B 'org-reveal) (f-ediff-org-showhide ediff-buffer-C 'org-reveal) ) ;; (defun f-ediff-org-fold-tree () Fold tree back to top level (f-ediff-org-showhide ediff-buffer-A 'hide-sublevels 1) (f-ediff-org-showhide ediff-buffer-B 'hide-sublevels 1) (f-ediff-org-showhide ediff-buffer-C 'hide-sublevels 1) ) #+END_SRC
Re: [O] org-export-current-backend variable and org-mode 8
Nicolas Goaziou n.goaz...@gmail.com writes: Christophe Rhodes cs...@cantab.net writes: so that if (as I hope) org-export-current-backend makes a later reappearance, my documents can work with both org-mode 7 and 8, and maybe 9? I'm hoping that the disappearance of the variable is an oversight rather than intentional :-/ It is intentional. I tried to reduce the number of dynamically scoped variables. On the other hand, hooks and filters all get back-end's name, if any, as an argument, which limits the need for that variable. The only missing part is Babel. I thought the recently introduced `by-backend' feature was sufficient. Isn't it the case? The `by-backend' macro in Brett Viren's message upthread? Personally I don't consider that sufficient, because it feels very fragile: a simple renaming of org-mode internal variables, or turning on lexical binding, and the macro will no longer work. (If you mean some other `by-backend', I haven't seen it). In particular, I would like to have some kind of confidence that documents that I wrote last year will still be exportable next year with only minor modifications necessary, and to do that I think I need to convince you that this is valuable, enough that you are willing to commit to some stable way of accessing the information previously held in org-export-current-backend. I also thought about reintroducing `org-export-current-backend', but that would be redundant with hooks and filters' arguments. Removing these is not an option either, as that would break every hook/filter in the wild. Please don't remove hooks and filters, or change their arguments! But please consider reintroducing org-export-current-backend; I have just checked, and the document that I am currently editing exports to latex and html unmodified from the org-mode 7 version, apart from some trivial variable renamings in the elisp setup and the reintroduction through advice of org-export-current-backend. And although that's fairly straightforward for me to achieve, it's a cost, and one that I have to pay every time I want to share a reproducible research document with a colleague who hasn't upgraded to org-mode 8 yet, maybe because some of /their/ documents don't yet build under org-mode 8... Best wishes, Christophe
Re: [O] LaTex Adjustments for Org-Export
Jeff Rush jr...@taupro.com writes: I'm trying to export a .org file to .pdf and although I've gotten past many formatting hurdles, I am stuck on two problems. 1) How can I redefine, in my org-export-latex-classes variable, the \section definition, such that it includes \pagebreak? My reason is that I would like each of my top-level headings to start on a new page, like a new chapter. 2) How can I change the basic formatting of paragraphs everywhere to a) omit the leading indent, and b) have a blank line between paragraphs Instead of this strange-looking style: This is a test paragraph of the following kind of thing. And so is this one. I want it to look like this: This is a test paragraph of the following kind of thing. And so is this one. Thanks for any helpful souls out there. I'm working on learning LaTeX but can't see how the various parts of the article base class fit together and how to selectively override them. I think the best solution is along these lines: o use a latex style file to redefine \parindent and \parskip. Also define a new command, \psection, to do the page break thingie. o Add a new class to org-latex-classes which is just like article except that it uses \psection in place of \section (so I call it particle :-) ) o Tell org to use particle as your LaTeX class, and also tell it to use the latex style from step 1. In more detail, create a file, foo.sty, in the same directory as your org file and give it these contents: --8---cut here---start-8--- \setlength{\parindent}{0pt} \setlength{\parskip}{4pt} \newcommand{\psection}{\newpage\section} --8---cut here---end---8--- Then evaluate the following (or add this to your .emacs if you want to make it permanent - needs to be added *after* org-latex-classes is defined, so it might need to be in a hook): --8---cut here---start-8--- (add-to-list 'org-latex-classes '(particle \\documentclass[11pt]{article} (\\psection{%s} . \\psection*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) --8---cut here---end---8--- and finally your org file should look like this: --8---cut here---start-8--- #+LATEX_CLASS: particle #+LATEX_HEADER: \usepackage{foo} * foo This is a long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph. This is another paragraph. * bar Who knows? Who cares? --8---cut here---end---8--- HTH. -- Nick
[O] [PATCH] Timestamps: Handle sub-10-min ranges when updating timestamps
* lisp/org.el (org-get-compact-tod): Pad with 0 if # of minutes is less than 10. TINYCHANGE --- lisp/org.el | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 26e653f..89e023c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16088,9 +16088,12 @@ with the current time without prompting the user. (if (not t2) t1 (setq dh (- h2 h1) dm (- m2 m1)) - (if ( dm 0) (setq dm (+ dm 60) dh (1- dh))) + (when ( dm 0) (setq dm (+ dm 60) dh (1- dh))) (concat t1 + (number-to-string dh) - (if (/= 0 dm) (concat : (number-to-string dm + (when (/= 0 dm) (concat : +(if ( dm 10) +(concat 0 (number-to-string dm)) + (number-to-string dm) (defun org-time-stamp-inactive (optional arg) Insert an inactive time stamp. -- 1.8.3.4
Re: [O] LaTex Adjustments for Org-Export
Suvayu Ali fatkasuvayu+li...@gmail.com writes: On Wed, Jul 31, 2013 at 12:24:35PM -0400, Nick Dokos wrote: o Add a new class to org-latex-classes which is just like article except that it uses \psection in place of \section (so I call it particle :-) ) :) On a serious note, doesn't the report class already do that? Not really: the first two levels are mapped to part/chapter which *do* get a new page; the third level is mapped to section which does not. -- Nick