Re: [O] [PATCH] Separate clocksum format for durations = 1 day
Toby Cubitt ts...@cantab.net writes: Minor point: I would order the format strings minutes, hours, days. In case we ever want to extend to months or years, that way we can simply extend the list and it will be completely backwards compatible. Using a plist can circumvent the problem, too. I'm ok either way. One other thing that needs some thought (which I already mentioned previously). The minutes format string needs to change, depending on whether the data format is fractional or regular. Not necessarily. The format string can use %s. We can also remind it in the docstring of both variables and provide examples. So if a user wants to switch to fractional, it's not enough to set the first variable; they have to *also* change the minute format string. If they don't the durations will be garbled. Sometimes, yes. A customization setter function could be used to change the value of the second variable when the first one is modified through customize. But that quickly gets complex, e.g. we have to be careful about clobbering any customizations the user has already made to the format strings. That sounds too complicated. The simpler solution would be to always have two format strings for the minutes in the list: a fractional format, and a regular format. This shouldn't be too confusing as long as it's documented in the variable docstring and there are good descriptive :tags for each list element in the customization type. I think this is not necessary. We can just document the fact that the user must check both variables before applying some change. Anyway, I let you judge this. Looks good to me, and lets me do what I wanted in my original patch. Now I just need to find time to code it up... Good to hear we eventually settled on a solution ! Regards, -- Nicolas Goaziou
Re: [O] [new exporter] empty lines in LaTeX header
Hi Sebastien, Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Andreas, Andreas Leha wrote: how is it possible to add an empty line to a LaTeX header? Any empty #+latex_header: is 'stripped' from the exported document. Couldn't you use a #+begin/end_LaTeX block instead? Good idea. In fact, I can -- sort of. I add the progress bar to my own footnote-box. The #+begin/end_LaTeX block is not placed at the preamble, so that the progressbar does not appear on the first outline slides. But after that, it works. Background: I am building a beamer presentation using the progress bar from http://www.mrunix.de/forums/showpost.php?p=316577postcount=3 and that definition requires a mandatory! empty line. I'd be interested seeing the results... Here you are: https://www.box.com/s/7txixybbzkrzq2nod5m3 Regards, Andreas
Re: [O] [new exporter] empty lines in LaTeX header
Hi Eric, Eric S Fraga e.fr...@ucl.ac.uk writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi all, how is it possible to add an empty line to a LaTeX header? Any empty #+latex_header: is 'stripped' from the exported document. Background: I am building a beamer presentation using the progress bar from http://www.mrunix.de/forums/showpost.php?p=316577postcount=3 and that definition requires a mandatory! empty line. I know the snippet shown there indicates that an empty line is required. However, this is likely required to ensure a new paragraph is started. You could try inserting \par instead of a new line? As in: #+latex_header: \par Thanks for that. It works fine! By the way, you may also wish to check out the progressbar beamer theme: https://github.com/cedricmauclair/beamer-progressbar Thanks for the pointer. Thing is, that I would like to stick to a corporate design layout that I hacked together to mimic a Powerpoint template. And that snippet was the easiest to just add there. (It has some shortcomings, though. If I ever take the time to redo the beamer style properly, I'll go for another progress bar) All the best, Andreas
Re: [O] [PATCH] Escape slashes in ARCHIVE_OLPATH
Hello, Takafumi Arakaki aka@gmail.com writes: Currently information about tree structure is lost if you have a slash in node headings. This patch fixes the problem by escaping slashes in headings before concatenating them. Thanks for your patch. Would you mind providing a test-case to illustrate the problem? Also, could you provide a change log entry for the patch (and use git format-patch if possible)? + (olpath (mapconcat + (lambda (s) +(setq s (replace-regexp-in-string s)) +(setq s (replace-regexp-in-string / / s)) +s) I'd rather nest the `replace-regexp-in-string' instead of setq'ing twice in a row the same variable. I.e: (replace-regexp-in-string / / (replace-regexp-in-string s)) Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Fix org-entry-put (trouble with org-columns-edit-value)
Hello, Takafumi Arakaki aka@gmail.com writes: I have a trouble with org-columns-edit-value; updating property using this command breaks property formatting. If I update MyProp_B in, :PROPERTIES: :MyProp_A: a :MyProp_B: b :END: I end up with: :PROPERTIES: :MyProp_A: :MyProp_B: x a :END: I found that (match-beginning 0) returns different value after (delete-region (match-beginning 0) (match-end 0)). The strange thing is that I could not reproduce it in plain Emacs without loading my init.el. I am using a few week older version from Emacs trunk. emacs-version: 24.2.50.1 emacs-bzr-version: 110740 r...@gnu.org-20121030101856-aimepc487hfjuqqs I will try to reproduce the bug after updating Emacs (probably to the 24.3 release branch) and org-mode later. But I thought I'd share the patch first. I think this was fixed a while ago. I'll wait for your feedback after you update Org. Regards, -- Nicolas Goaziou
[O] exporting clock-in and clock-out times
I'm exporting to HTML and trying to get my clock-in and clock-out times to export as well, but it's not working. My org file looks like this: * foo CLOCK: [2012-11-09 Fri 03:58]--[2012-11-09 Fri 03:59] = 0:01 foo. #+OPTIONS: d:t timestamp:t --- But the clock-in and clock-out times do not appear—nor does the calculated time in between. Any thoughts? Thanks!
Re: [O] exporting clock-in and clock-out times
Da: Peter Salazar cycleofs...@gmail.com Inviato: Venerdì 9 Novembre 2012 10:50 Hi, Peter, I'm exporting to HTML and trying to get my clock-in and clock-out times to export as well, but it's not working. My org file looks like this: #+OPTIONS: d:t timestamp:t * foo CLOCK: [2012-11-09 Fri 03:58]--[2012-11-09 Fri 03:59] = 0:01 foo. FIRST : always, please, always. Please, always, did I already say always? please always send: Org-version, Emacs version Operatig System and in this case, dealing with the exporter, if you used the new or the old exporter. Here: Org-mode version 7.9.2 (854ddf6 @ c:/Users/ridolfi/programs/emacs-o/org/lisp/) GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN 1. I can export the clock line *IF* I have a property drawer: #+OPTIONS: d:t timestamp:t * foo CLOCK: [2012-11-09 Fri 03:58]--[2012-11-09 Fri 03:59] = 0:01 :PROPERTIES: :END: foo. -+HTML 1 foo CLOCK: 11/09/12 ven 03:58– 11/09/12 ven 03:59 = 0:01 PROPERTIES foo. 2 bye ARCHIVE -+ so this is a quick and dirty solution. 2. Otherwise I cannot get the clock line in the HTML file: - without (i.e. commenting out) the :PROPERTIES: drawer - with the new exporter (with or without propertiies) cheers, Giovanni
Re: [O] exporting clock-in and clock-out times
Hello, Giovanni Ridolfi giovanni.rido...@yahoo.it writes: 2. Otherwise I cannot get the clock line in the HTML file: [...] - with the new exporter (with or without propertiies) You may want to use `org-export-with-clocks', or the c:t OPTION item. Regards, -- Nicolas Goaziou
Re: [O] Specifying multiple latex headers for export in properties block
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Alan Schmitt alan.schm...@polytechnique.org writes: If I've understood things correctly, the canonical way to change export options for a subtree export is to put them in a properties block. I noticed that if I put several EXPORT_LATEX_HEADER entries in the properties block, only the first one is taken into account. Is it supposed to work this way? Is there a way around it? This is limitation from property drawers: each property can only appear once. You may want to set a special latex_class (through EXPORT_LATEX_CLASS property) for this subtree and fill its template with the required headers. Yes, this is indeed a solution. It's a bit harder to tweak, but for that phase one can use a very long line with all the headers. Thanks for the suggestion, Alan
Re: [O] How can I use xelatex with the new latex exporter?
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Alan Schmitt alan.schm...@polytechnique.org writes: I'm playing with the new latex exporter, and I'd like to use xelated with it. I used to follow the instructions from worg (http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export), but it seems that the hook org-export-latex-after-initial-vars-hook is not used for the new exporter. Is there a similar hook I can use? Before using this machinery, is it enough to customize `org-e-latex-pdf-process'? Yes, this works. This is what I added: (setq org-e-latex-pdf-process '(latexmk -pdflatex='xelatex --shell-escape' -pdf -quiet %f)) (I need the --shell-escape to run minted) Thanks a lot! Alan
Re: [O] How can I use xelatex with the new latex exporter?
Suvayu Ali fatkasuvayu+li...@gmail.com writes: Before using this machinery, is it enough to customize `org-e-latex-pdf-process'? This is pretty much what I do. ;;; XeLaTeX customisations ;; remove inputenc from default packages as it clashes with xelatex (setf org-export-latex-default-packages-alist (remove '(AUTO inputenc t) org-export-latex-default-packages-alist)) (add-to-list 'org-export-latex-packages-alist '( xltxtra t)) ;; commented for now as preferable to set per file for now ;; (add-to-list 'org-export-latex-packages-alist '( unicode-math t)) ;; (add-to-list 'org-export-latex-packages-alist ;; \\setmathfont{Linux Libertine O} t) ; needed for unicode-math ;; org to latex customisations, -shell-escape needed for minted (setq org-latex-to-pdf-process; for regular export '(xelatex -shell-escape -interaction nonstopmode -output-directory %o %f xelatex -shell-escape -interaction nonstopmode -output-directory %o %f xelatex -shell-escape -interaction nonstopmode -output-directory %o %f) org-export-dispatch-use-expert-ui t ; non-intrusive export dispatch org-e-latex-pdf-process ; for experimental org-export '(xelatex -shell-escape -interaction nonstopmode -output-directory %o %f xelatex -shell-escape -interaction nonstopmode -output-directory %o %f xelatex -shell-escape -interaction nonstopmode -output-directory %o %f)) I do not use unicode-math anymore but the OP can try uncommenting some of the lines above. Thank you, this is most helpful. Alan
[O] tags
Related to a recent question, is there a way to bookmark a spot in a long text? My makeshift method right now is to create a temporary subheader at the position and then tag it, but I would like to implement tags much like the Emacs mark is often implemented temporarily. Jumping to precisely the cursor position where I was last reading.
Re: [O] tags
Da: johnrarell...@aol.com johnrarell...@aol.com Inviato: Venerdì 9 Novembre 2012 14:00 hi, John, Related to a recent question, is there a way to bookmark a spot in a long text? how about (info (emacs)bookmarks) cheers, Giovanni /who sometimes think we forget Org is in Emacs ;-)
Re: [O] [PATCH] Fix org-entry-put (trouble with org-columns-edit-value)
Hi, Thanks for the reply. Do you know if it is fixed in both master and maint, or only in master? --- Takafumi On Fri, Nov 9, 2012 at 9:58 AM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Takafumi Arakaki aka@gmail.com writes: I have a trouble with org-columns-edit-value; updating property using this command breaks property formatting. If I update MyProp_B in, :PROPERTIES: :MyProp_A: a :MyProp_B: b :END: I end up with: :PROPERTIES: :MyProp_A: :MyProp_B: x a :END: I found that (match-beginning 0) returns different value after (delete-region (match-beginning 0) (match-end 0)). The strange thing is that I could not reproduce it in plain Emacs without loading my init.el. I am using a few week older version from Emacs trunk. emacs-version: 24.2.50.1 emacs-bzr-version: 110740 r...@gnu.org-20121030101856-aimepc487hfjuqqs I will try to reproduce the bug after updating Emacs (probably to the 24.3 release branch) and org-mode later. But I thought I'd share the patch first. I think this was fixed a while ago. I'll wait for your feedback after you update Org. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Escape slashes in ARCHIVE_OLPATH
I am not familiar with org-mode test suite but I can try. Could you tell me where I can find similar test cases which creates archive entries? --- Takafumi On Fri, Nov 9, 2012 at 9:57 AM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Takafumi Arakaki aka@gmail.com writes: Currently information about tree structure is lost if you have a slash in node headings. This patch fixes the problem by escaping slashes in headings before concatenating them. Thanks for your patch. Would you mind providing a test-case to illustrate the problem? Also, could you provide a change log entry for the patch (and use git format-patch if possible)? + (olpath (mapconcat + (lambda (s) +(setq s (replace-regexp-in-string s)) +(setq s (replace-regexp-in-string / / s)) +s) I'd rather nest the `replace-regexp-in-string' instead of setq'ing twice in a row the same variable. I.e: (replace-regexp-in-string / / (replace-regexp-in-string s)) Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Fix org-entry-put (trouble with org-columns-edit-value)
Hello, Takafumi Arakaki aka@gmail.com writes: Do you know if it is fixed in both master and maint, or only in master? I don't know. If it's fixed already, I guess the patch was applied to maint. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Escape slashes in ARCHIVE_OLPATH
Takafumi Arakaki aka@gmail.com writes: I am not familiar with org-mode test suite but I can try. Could you tell me where I can find similar test cases which creates archive entries? We use ERT. There is no test case related to archive entries yet. Though, if you write a recipe to reproduce a problem, I can make a test out of it. You can also try to implement the test directly. It should go to testing/lisp/test-org-archive.el (to be created). Your call. Regards,
Re: [O] [PATCH] Fix org-entry-put (trouble with org-columns-edit-value)
Thanks, I will check maint first then. Takafumi On Fri, Nov 9, 2012 at 2:25 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Takafumi Arakaki aka@gmail.com writes: Do you know if it is fixed in both master and maint, or only in master? I don't know. If it's fixed already, I guess the patch was applied to maint. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Escape slashes in ARCHIVE_OLPATH
I thought it would be convenient if there was a macro or something to setup temporal main org file and temporal archive file. If there is nothing like that, then I will just create by my self or use unwind-protect or something directly. I remember there is a way to archive in the same file by specifying a root tree. This will make test easier, but I guess it is better to test with a plain configuration first. Takafumi On Fri, Nov 9, 2012 at 2:28 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Takafumi Arakaki aka@gmail.com writes: I am not familiar with org-mode test suite but I can try. Could you tell me where I can find similar test cases which creates archive entries? We use ERT. There is no test case related to archive entries yet. Though, if you write a recipe to reproduce a problem, I can make a test out of it. You can also try to implement the test directly. It should go to testing/lisp/test-org-archive.el (to be created). Your call. Regards,
Re: [O] [PATCH] Escape slashes in ARCHIVE_OLPATH
Takafumi Arakaki aka@gmail.com writes: I thought it would be convenient if there was a macro or something to setup temporal main org file and temporal archive file. If there is nothing like that, then I will just create by my self or use unwind-protect or something directly. I remember there is a way to archive in the same file by specifying a root tree. This will make test easier, but I guess it is better to test with a plain configuration first. Use something like: (org-test-with-temp-text #+ARCHIVE: ::... ...) in order to archive in the same file. Regards,
Re: [O] Include a limited level of subheadings for export/publish?
* John Hendy jw.he...@gmail.com [2012-11-07 17:27 -0600]: I'm actually wondering if you couldn't write a custom agenda view for this easier than trying to concatenate two files. Agenda already includes the file name, so if it's descriptive enough it would be clear to your manager which project bucket it was looking at. Or make an agenda view with headers for each project. You could include the todo/done/stalled status as well as scheduled/deadline dates. Agenda views can easily be exported to html with C-x C-w while looking at the view. I started looking into agenda views in a lot more detail and discovered a few things that I was able to put together into pretty much what I wanted. I documented it here for posterity: http://aperiodic.net/phil/archives/Geekery/org-mode-project-overviews.html
Re: [O] trouble building org-mode, how to debug emacs -batch
Kevin Buchs writes: I am stuck, so I would appreciate some pointers on debugging. I've got the make transcript below and then my further tests on emacs -batch, where I always get a return message End of file during parsing. How can I debug this? It seems that emacs is some kind of alias, script or wrapper that doesn't really behave like emacs. Try to find where emacs is installed (most likely /usr/bin/emacs or /usr/local/bin/emacs) and try that instead. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
Re: [O] [bug] wrong-type-argument symbolp (css-property italic)
Hello, Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: #+TITLE: ECM Htmlize italic #+LANGUAGE: en * CSS code When exporting the following chunk of code to HTML (with either the old or the new exporter)... #+begin_src css #panel-button { -moz-transform: rotate(90deg); -o-transform: rotate(90deg); -webkit-transform: rotate(90deg); background-color: #EFEFEF; } #+end_src It looks like a bug in htmlize, not in Org. Regards, -- Nicolas Goaziou
Re: [O] Include a limited level of subheadings for export/publish? :TNX
Da: Phil! Gold phi...@pobox.com Inviato: Venerdì 9 Novembre 2012 15:57 Hi, Phil!, I started looking into agenda views in a lot more detail and discovered a few things that I was able to put together into pretty much what I wanted. I documented it here for posterity: http://aperiodic.net/phil/archives/Geekery/org-mode-project-overviews.html many thanks. A typo: displays any deaslines on the s/deasline/deadline/ cheers, Giovanni
Re: [O] trouble building org-mode, how to debug emacs -batch
Kevin Buchs kevin.buchs.j...@gmail.com wrote: I am stuck, so I would appreciate some pointers on debugging. I've got the make transcript below and then my further tests on emacs -batch, where I always get a return message End of file during parsing. How can I debug this? (For completeness I included the portion of my local.mk which changed from the default further below -- but I've proved to myself that this isn't the problem - it is emacs that is unhappy). teebo$ make compile make -C doc clean; make -C lisp clean; make[1]: Entering directory `/users/buchs/src/org-mode/doc' rm -f org *.pdf *.html *_letter.tex org-version.inc \ *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \ *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps make[1]: Leaving directory `/users/buchs/src/org-mode/doc' make[1]: Entering directory `/users/buchs/src/org-mode/lisp' rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc org-install.elc rm -f *.elc make[1]: Leaving directory `/users/buchs/src/org-mode/lisp' make -C lisp compile make[1]: Entering directory `/users/buchs/src/org-mode/lisp' rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc org-install.elc org-version: 7.9.2 (release_7.9.2-570-gc149e04a) End of file during parsing make[1]: *** [org-version.el] Error 255 make[1]: Leaving directory `/users/buchs/src/org-mode/lisp' make: *** [compile] Error 2 teebo$ emacs -batch --eval '(add-to-list '''load-path .)' End of file during parsing Try using the full pathname to your emacs: /usr/local/bin/emacs -batch ... or whatever is appropriate in your case. You may be picking up a wrong emacs. Try also -Q: -batch implies -q but it might be a problem in the site-start.el stuff. Finally, --debug-init will probably not help in this case, but you might try it in any case before giving up and rebuilding/reinstalling emacs (unless somebody has a better idea?) Nick teebo$ emacs -batch --eval '(message hello world)' End of file during parsing teebo$ emacs -batch --eval '(+ 4 5)' End of file during parsing teebo$ cat local.mk ##-8--- ## CHECK AND ADAPT THE FOLLOWING DEFINITIONS ##-- # Name of your emacs binary EMACS = emacs # Where local software is found prefix = /users/buchs # Where local lisp files go. lispdir= $(prefix)/lib/emacs/org-mode # Where local data files go. datadir = $(prefix)/lib/emacs/org-mode/etc # Where info files go. infodir = $(prefix)/lib/emacs/info #
Re: [O] trouble building org-mode, how to debug emacs -batch
Achim, Indeed, that was the problem. Thanks so much! - Kevin On Fri, Nov 9, 2012 at 9:47 AM, Achim Gratz strom...@nexgo.de wrote: It seems that emacs is some kind of alias, script or wrapper that doesn't really behave like emacs. Try to find where emacs is installed (most likely /usr/bin/emacs or /usr/local/bin/emacs) and try that instead.
Re: [O] Removing the date in a subtree export using the new exporter
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Alan Schmitt alan.schm...@polytechnique.org writes: I'm using the new exporter to create a pdf (through latex) of a subtree of a huge file, and I want to remove some default information. I found out a way to do it, but I'm not sure it's the right way. Here it is. #+BEGIN_SRC org :PROPERTIES: :EXPORT_TITLE: Foo bar :EXPORT_OPTIONS: toc:nil author:nil :EXPORT_DATE: ~ :END: #+END_SRC The part about which I'm not sure is how to remove the date. I tried putting nothing instead of the '~' but it does not work. Maybe there could be an option for it? Indeed, there could be a date:nil option. I'll add it later. Thanks for suggesting it. I wanted to fix this and saw that you already did. However it seems that LaTeX still adds a date when a \maketitle happens with no date specified. This small patch should fix this. diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el index 64908b9..9534a79 100644 --- a/contrib/lisp/org-e-latex.el +++ b/contrib/lisp/org-e-latex.el @@ -1026,9 +1026,10 @@ holding export options. (format \\author{%s\\thanks{%s}}\n author email)) ((or author email) (format \\author{%s}\n (or author email) ;; Date. - (when (plist-get info :with-date) + (if (plist-get info :with-date) (let ((date (org-export-data (plist-get info :date) info))) -(and date (format \\date{%s}\n date +(and date (format \\date{%s}\n date))) + \\date{}\n) ;; Title (format \\title{%s}\n title) ;; Hyperref options. (Please let me know if it's not the good format to send the patch.) Alan
Re: [O] [bug] wrong-type-argument symbolp (css-property italic)
Hello Nicolas, Nicolas Goaziou wrote: Sebastien Vauban writes: #+TITLE: ECM Htmlize italic #+LANGUAGE: en * CSS code When exporting the following chunk of code to HTML (with either the old or the new exporter)... #+begin_src css #panel-button { -moz-transform: rotate(90deg); -o-transform: rotate(90deg); -webkit-transform: rotate(90deg); background-color: #EFEFEF; } #+end_src It looks like a bug in htmlize, not in Org. Yes and no. Yes, in htmlize. But, still in Org, as Org uses its own (modified) version of htmlize (see org-mode/contrib/lisp/htmlize.el). Best regards, Seb -- Sebastien Vauban
Re: [O] exporting clock-in and clock-out times
Thanks! The c:t OPTION worked like a charm! Is there a way to get clock items to display in 12-hour format? At least in the HTML export? On Fri, Nov 9, 2012 at 5:38 AM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Giovanni Ridolfi giovanni.rido...@yahoo.it writes: 2. Otherwise I cannot get the clock line in the HTML file: [...] - with the new exporter (with or without propertiies) You may want to use `org-export-with-clocks', or the c:t OPTION item. Regards, -- Nicolas Goaziou
Re: [O] Removing the date in a subtree export using the new exporter
Alan Schmitt alan.schm...@polytechnique.org writes: I wanted to fix this and saw that you already did. However it seems that LaTeX still adds a date when a \maketitle happens with no date specified. This small patch should fix this. diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el index 64908b9..9534a79 100644 --- a/contrib/lisp/org-e-latex.el +++ b/contrib/lisp/org-e-latex.el @@ -1026,9 +1026,10 @@ holding export options. (format \\author{%s\\thanks{%s}}\n author email)) ((or author email) (format \\author{%s}\n (or author email) ;; Date. - (when (plist-get info :with-date) + (if (plist-get info :with-date) (let ((date (org-export-data (plist-get info :date) info))) -(and date (format \\date{%s}\n date +(and date (format \\date{%s}\n date))) + \\date{}\n) ;; Title (format \\title{%s}\n title) ;; Hyperref options. (Please let me know if it's not the good format to send the patch.) It's better if you can provide a changelog entry and send it with git format-patch. Also, if you did not sign FSF papers, you will have to add TINYCHANGE at the end of the change log. Thank you. Regards, -- Nicolas Goaziou
Re: [O] exporting clock-in and clock-out times
Peter Salazar cycleofs...@gmail.com writes: Is there a way to get clock items to display in 12-hour format? At least in the HTML export? You could use `org-display-custom-times' variable, with `org-time-stamp-custom-formats' set accordingly. Note that if you don't want to toggle the custom time display globally, you still can trigger it during export with bind keyword: #+BIND: org-display-custom-times t Regards,
Re: [O] Removing the date in a subtree export using the new exporter
On 9 nov. 2012, at 18:01, Nicolas Goaziou n.goaz...@gmail.com wrote: It's better if you can provide a changelog entry and send it with git format-patch. Also, if you did not sign FSF papers, you will have to add TINYCHANGE at the end of the change log. I'll do this when I get back near a computer. Also, about the FSF papers, is there a link for this procedure? Thanks, Alan
Re: [O] tags
Bookmarks are excellent for persistence. However, if you want robustness to filling and sorting, then implementing ID markers might be a good way to solve it. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com It is a progressive disease. MANY people have died from it. ANYBODY can get it. There is no hope without action.
Re: [O] Removing the date in a subtree export using the new exporter
Alan Schmitt alan.schm...@polytechnique.org writes: I'll do this when I get back near a computer. Great. Also, about the FSF papers, is there a link for this procedure? Certainly: http://orgmode.org/worg/org-contribute.html (in particular the second section, but the whole page in interesting). It basically boils down to sending a text form to ass...@gnu.org. Regards,
Re: [O] exporting clock-in and clock-out times
Great! And how should I specify org-time-stamp-custom-formats in order to display 12-hour times? Default is this, which displays 24-hour times: (%m/%d/%y %a . %m/%d/%y %a %H:%M) On Fri, Nov 9, 2012 at 12:04 PM, Nicolas Goaziou n.goaz...@gmail.comwrote: Peter Salazar cycleofs...@gmail.com writes: Is there a way to get clock items to display in 12-hour format? At least in the HTML export? You could use `org-display-custom-times' variable, with `org-time-stamp-custom-formats' set accordingly. Note that if you don't want to toggle the custom time display globally, you still can trigger it during export with bind keyword: #+BIND: org-display-custom-times t Regards,
[O] Outline export styles
Hi, Does org-mode support different outline export styles (to HTML)? For instance, if I want something like this in the export: 1 Empirical probability distributions a. Create a vector of 1,000 uniformly-sampled random integers instead of the default: 1 Empirical probability distributions 1.1 Create a vector of 1,000 uniformly-sampled random integers is there a configuration somewhere for that? Thanks. -- Ken Williams, Senior Research Scientist WindLogics http://windlogics.com CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
Re: [O] exporting clock-in and clock-out times
Perfect! Worked perfectly! Thank you! On Fri, Nov 9, 2012 at 12:50 PM, Nicolas Goaziou n.goaz...@gmail.comwrote: Peter Salazar cycleofs...@gmail.com writes: Great! And how should I specify org-time-stamp-custom-formats in order to display 12-hour times? Default is this, which displays 24-hour times: (%m/%d/%y %a . %m/%d/%y %a %H:%M) According to `format-time-string' docstring, something like: (%m/%d/%y %a . %m/%d/%y %a %I:%M %p) Regards,
Re: [O] exporting clock-in and clock-out times
Peter Salazar cycleofs...@gmail.com writes: Great! And how should I specify org-time-stamp-custom-formats in order to display 12-hour times? Default is this, which displays 24-hour times: (%m/%d/%y %a . %m/%d/%y %a %H:%M) According to `format-time-string' docstring, something like: (%m/%d/%y %a . %m/%d/%y %a %I:%M %p) Regards,
Re: [O] Removing the date in a subtree export using the new exporter
Nicolas Goaziou n.goaz...@gmail.com writes: Alan Schmitt alan.schm...@polytechnique.org writes: I'll do this when I get back near a computer. Great. Attached. With another question: should the patch be sent to the list, or just to you (or any other process)? Also, about the FSF papers, is there a link for this procedure? Certainly: http://orgmode.org/worg/org-contribute.html (in particular the second section, but the whole page in interesting). It basically boils down to sending a text form to ass...@gnu.org. I'll look into it. Alan From f11683e9de7b1073c6f474fd2236f584c44299e1 Mon Sep 17 00:00:00 2001 From: Alan Schmitt alan.schm...@polytechnique.org Date: Fri, 9 Nov 2012 19:12:37 +0100 Subject: [PATCH] org-export: Output \date{} in LaTeX export when :with-date is nil * contrib/lisp/org-e-latex.el (org-e-latex-template): output \date{} instead of nothing when :with-date is nil TINYCHANGE --- contrib/lisp/org-e-latex.el |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el index 64908b9..9534a79 100644 --- a/contrib/lisp/org-e-latex.el +++ b/contrib/lisp/org-e-latex.el @@ -1026,9 +1026,10 @@ holding export options. (format \\author{%s\\thanks{%s}}\n author email)) ((or author email) (format \\author{%s}\n (or author email) ;; Date. - (when (plist-get info :with-date) + (if (plist-get info :with-date) (let ((date (org-export-data (plist-get info :date) info))) - (and date (format \\date{%s}\n date + (and date (format \\date{%s}\n date))) + \\date{}\n) ;; Title (format \\title{%s}\n title) ;; Hyperref options. -- 1.7.9.6 (Apple Git-31.1)
[O] restoring clocks: should it work when the file is closed/opened and when emacs is restarted?
I am keeping clocking information in an org-mode file. With a clock in progress, I save the file, indicate I don't want to clock out and close emacs. When I restart emacs and open the file, I get the message Restoring clock data, but when I try to clock out of the current task it complains: byte-code: No active clock. Is this the expected behavior? My init file has these relevant statements: (setq org-clock-persist 'history) ; save clocks when exiting (org-clock-persistence-insinuate) ; restore clocks when starting (and I can reduce my init file to be about 5 lines in testing and I see the same behavior: only other commands are setting up load-path to hit my custom build of org-mode)
Re: [O] Outline export styles
I found the 'section-number-format' variable, which customizes nicely to do what I asked about. But on second thought, I guess that's not what I really want. Because my Create a vector... stuff is actually a paragraph or so, and doesn't fit nicely on one line as a headline. So it looks like I want to customize the plain-list output formats, and I'm not sure how to tie those together without specifying each one manually. -Ken Hi, Does org-mode support different outline export styles (to HTML)? For instance, if I want something like this in the export: 1 Empirical probability distributions a. Create a vector of 1,000 uniformly-sampled random integers instead of the default: 1 Empirical probability distributions 1.1 Create a vector of 1,000 uniformly-sampled random integers is there a configuration somewhere for that? Thanks. CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
Re: [O] Removing the date in a subtree export using the new exporter
Alan Schmitt alan.schm...@polytechnique.org writes: Attached. Applied (with a slight twist). Thank you. I've added you to the list of contributors without FSF assignment. Tell me once you have signed them. With another question: should the patch be sent to the list, or just to you (or any other process)? Please send any patch to the list. Regards,
[O] How to customize the heading definition in org-mode
Hello, I want to use a lisp file (the .emacs file) in org-mode. This will help me to navigate through sections of the .emacs configuration file. To do this I will need to customize the heading and change it from '*' to e.g. ';' (or else my .emacs file will fail to load.) I noticed that in outline-mode there is an option to customize the heading definition. I looked for an equivalent to this in org-mode but couldn't find a way to customize the heading definition. Is there a way to do so? Regards, Avner Moshkovitz This e-mail may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable laws. Unauthorized use, reproduction or dissemination of the e-mail is strictly prohibited. If you have received this e-mail in error, please contact the sender immediately. [11EABB509DF]
Re: [O] Renaming the thread: orgmode-bibtex/html-export issues
I would like some pages to have a bibliography of works relevant to the subject area. I need the kind of thing that is done using \nocite(key) in bibtex. \nocite is useful when one is building a standalone bibliography that is not accompanying any text where these works are cited. Now that I have org-exp-bibtex.el working, I find that it does not support \nocite{key}. You have to use \cite{key}. I am able to produce this effect by putting all citations -- \cite{key} -- in a separate headline that is commented. So I have something like this: * COMMENT Citations \cite{key1} \ccite{key2} There are, however, two further problems. org-exp-bibtex messes up the Table of Contents. It produces some garbled html code when there is a Table of Contents. So I have to turn off the table of contents. Has anyone else faced this? I also do not like the fact that it inserts, at the bottom of every page, a footer saying This file was generated by bibtext2html... Any ideas about how to get rid of that? Vikas
Re: [O] Renaming the thread: orgmode-bibtex/html-export issues
I also do not like the fact that it inserts, at the bottom of every page, a footer saying This file was generated by bibtext2html... Any ideas about how to get rid of that? I have had some success with this. I patched org-exp-bibtex.el as follows. Line 101 to 110 look as follows: ### (with-temp-buffer (save-match-data (insert-file-contents (concat file .html)) (goto-char (point-min)) (while (re-search-forward (org-re a name=\\\([-_[:word:]]+\\)\\\([[:word:]]+\\)) nil t) (setq oebp-cite-plist (cons (cons (match-string 1) (match-string 2)) oebp-cite-plist))) (goto-char (point-min)) (while (re-search-forward hr nil t) (replace-match hr/ t t)) (concat \n#+BEGIN_HTML\ndiv id=\bibliography\\nh2References/h2\n (buffer-string) \n/div\n#+END_HTML\n ### I inserted four lines as follows: ### (with-temp-buffer (save-match-data (insert-file-contents (concat file .html)) (goto-char (point-min)) (while (re-search-forward (org-re a name=\\\([-_[:word:]]+\\)\\\([[:word:]]+\\)) nil t) (setq oebp-cite-plist (cons (cons (match-string 1) (match-string 2)) oebp-cite-plist))) (goto-char (point-min)) (while (re-search-forward hr nil t) (replace-match hr/ t t)) (while (re-search-forward emThis file was generated by nil t) (replace-match )) (while (re-search-forward a href=\http://www.lri.fr/~filliatr/bibtex2html/\;bibtex2html/a 1.97./em nil t) (replace-match )) (concat \n#+BEGIN_HTML\ndiv id=\bibliography\\nh2References/h2\n (buffer-string) \n/div\n#+END_HTML\n ### As you would note, the entire string produced by my version of bibtex2html (including the version number) is hard coded into the syntax. Can somebody help improve it to make it more general so that it would work irrespective of the version. Vikas
Re: [O] Sexp aganda entries broken?
Sorry, I was being dumb. All fine. To prevent further breakage, I am attaching a doc fix. I hope it is useable? Cheers, Simon On 11/06/2012 11:21 PM, Simon Thum wrote: Dear all, I have a sexp entry that somehow works less good now. It's ** 11:00 Monthly PTB Telco %%(org-float t 2 3) (some more stuff) The agenda reads SEXP entry returned empty string, whereas previously I got the headline. Putting something behind the sexp get me that, but the time is not recovered. I think this matches the example in the manual quite closely, so probably it's a bug. Any ideas? I'm on the current git but I don't update too regularly and it was broken before. Cheers, Simon From 247c3fdde300be13d20e591ca5f217ad0385de49 Mon Sep 17 00:00:00 2001 From: Simon Thum simon.t...@gmx.de Date: Sun, 26 Aug 2012 19:37:44 +0200 Subject: [PATCH] document another sexp timestamp syntax TINYCHANGE --- doc/org.texi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index bf67876..30c1ce4 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -5571,6 +5571,15 @@ example with optional time %%(org-float t 4 2) @end example +A similar syntax that is different in terms of agenda results is + +@example +* Wife +%%(org-anniversary 2001 05 07) Wedding day (%d Years) +@end example + +Here, ``Wedding day (n Years)'' will show up in the agenda (if the headline matches). It is important that there is no leading space. + @item Time/Date range @cindex timerange @cindex date range -- 1.7.8.6
Re: [O] restoring clocks: should it work when the file is closed/opened and when emacs is restarted?
Hello Kevin, Kevin Buchs wrote: I am keeping clocking information in an org-mode file. With a clock in progress, I save the file, indicate I don't want to clock out and close emacs. When I restart emacs and open the file, I get the message Restoring clock data, but when I try to clock out of the current task it complains: byte-code: No active clock. Is this the expected behavior? No, it's not. But I must admit having *sometimes* similar quirks -- I *always* clock time spent during work days, always. And I restart Emacs quite often (these weeks, even much more, as I get crashes with Emacs, but that's another story). My init file has these relevant statements: (setq org-clock-persist 'history) ; save clocks when exiting (org-clock-persistence-insinuate) ; restore clocks when starting (and I can reduce my init file to be about 5 lines in testing and I see the same behavior: only other commands are setting up load-path to hit my custom build of org-mode) Please send your ECM (French for Minimal Complete Example): - your 5-lines init file - a minimal file with clocking information and your recipe (steps) to reproduce the above problem in a predictable manner. As well, you could give information about your org-version... Finally, you could be interested (or not) by adding this chunk of code to your .emacs file in order to be prompted whether you want to clock out or not when quitting Emacs: #+begin_src emacs-lisp ;; ask the user if they wish to clock out before killing Emacs (defun my/org-clock-query-out () Ask the user before clocking out. This is a useful function for adding to `kill-emacs-query-functions'. (if (and (featurep 'org-clock) (funcall 'org-clocking-p) (y-or-n-p You are currently clocking time, clock out? )) (org-clock-out) t)) ;; only fails on keyboard quit or error ;; timeclock.el puts this on the wrong hook! (add-hook 'kill-emacs-query-functions 'my/org-clock-query-out) #+end_src Best regards, Seb -- Sebastien Vauban