Re: [patch] ox-latex.el: Add `LATEX_PRE_HEADER' keyword
Am Donnerstag, 28. September 2023, 12:07:41 CEST schrieb Max Nikulin: > More I read about .xmpdata, more it looks similar to an ugly kludge from > my point of view. Exporting from orgmode to LaTeX needs a high level approach: don't do complicated things, just use the appropriate LaTeX API. Unfortunately adding XMP metadata is the largest construction site in the LaTeX world: https://tug.org/TUGboat/tb43-3/tb135fischer-xmp.pdf The LaTeX Project Team developed a new pdf management, see here: https:// ctan.org/pkg/pdfmanagement-testphase : "The new PDF management code offers backend-independent interfaces to central PDF dictionaries, tools to create annotations, form Xobjects, to embed files, and to handle PDF standards." The most important command is `\DocumentMetadata{}` and it needs to be placed before `\ḑocumentclass{}` The idea to have a LATEX_PRE_HEADER to insert `\DocumentMetadata{}` is exactly what you need right now, if you export from orgmode to current LaTeX. With `\DocumentMetadata{}` you can add most of the necessary xmp data -- and I write most, because I'm using it on a daily basis, but haven't checked if really everything is included yet. -- Regards, Alexander signature.asc Description: This is a digitally signed message part.
Re: Link from orgmode file to E-Mail (using kmail or notmuch)
Am Donnerstag, 26. Januar 2023, 13:18:49 CET schrieb Jean Louis: > * AW [2023-01-26 13:00]: > > This is about a maildirs of kmail on my local machine. The E-Mails are > > being indexed by akonadi on the side of kde-pim. But referring to a > > certain E-Mail from orgmode with a kind of link fails, because I'd need > > to got to the maildir and search for the specific E-Mail. kde-pim does > > not offer an easy way to extract that or the message-ID. > > How many Maildirs do you have? One main, a hundred submaildirs. > > and what does program: > > akonadi_maildir_resource does? > > Should it find e-mail? Akonadi is a part of kde-pim. > Without Akonadi: > > > Solution may be simple without akonadi and external software. > > It would be to provide main Maildir, then for program to find > submaildirs, and to find Message ID in every e-mail, and record it, > once per day, of course with e-mail file or folder location plus > Message ID. This is simple program and can be done in shell or Emacs > Lisp, collecting all Message IDs efficiently from every Maildir. > > This program thus can be universal program, and then function can > decide how to open e-mail, and it is just fine opening e-mail in Emacs > as well. > > Same program could be used to find e-mails by name or sender, or > recipient. Yes, that's what I'm doing with notmuch, thanks to the hint that ol-notmuch provides notmuch-search with message-ID. So far, my issue is solved. -- Regards, Alexander
Re: Link from orgmode file to E-Mail (using kmail or notmuch)
Am Dienstag, 24. Januar 2023, 11:42:01 CET schrieb Dirk-Jan C. Binnema: > Sorry if I'm repeating things earlier mentioned... > > mu4e supports message-id links through org-mode, and I *extensively* > use that my agenda / todo lists. E.g., >mu4e:msgid:CACwzTKkeyptMcOA=jq8y23948-fkyfkmtwu...@mail.gmail.com Thank you, I'll have a look into this. Sounds good that you use it much. > To make it work through browse-url (is that useful?) shouldn't be too > hard to configure `browse-url-default-handlers' for that. For mu4e that > could simply use `mu4e-org-open', except that mu4e uses `msgid' (a > better name imho) rather than `mid'. >From my point of view that's not necessary. I'd like to have link which opens an emacs buffer displaying the E-Mail. -- Regards, Alexander
Re: Link from orgmode file to E-Mail (using kmail or notmuch)
Am Dienstag, 24. Januar 2023, 10:40:30 CET schrieb Ihor Radchenko: > AW writes: > >> It is not up to Org. Try > >> > >> (browse-url "mid:3218434.44cspzl...@linux.fritz.box") > >> > >> You will likely see nothing. > > > > Well, M-x (browse-url "mid:3218434.44cspzl...@linux.fritz.box") > > produces [No match]. > > This is not a command. > You need M-: (... Sorry, I'm a user, not much knowledge of elisp. However, the result now is 'nil'. > >> So, while Org may provide some limited help with mid:, as Max suggested, > >> there is no way to guarantee that mid: links will work for all users > >> without users hand-customizing how to open emails. > >> > >> I am not even sure if we need to make Org open mid: links via > >> `browse-url'. Maybe it should be something else? IDK. > > > > This is weird since ever. I've been talking to some collegues and > > everybody > > has his/her own special approach. Mostly producing a PDF from the E-Mail > > and saving this and its attachments somewhere. That's a thing that > > bothered me for decades. > > Well. The more widely used standard is Maildir - downloading emails from > server to local machine. Emails are just files there that can be indexed > by variety of mail client software. This is about a maildirs of kmail on my local machine. The E-Mails are being indexed by akonadi on the side of kde-pim. But referring to a certain E-Mail from orgmode with a kind of link fails, because I'd need to got to the maildir and search for the specific E-Mail. kde-pim does not offer an easy way to extract that or the message-ID. > > The main question is which email clients actually support mid: links. > notmuch does, but in non-standard way, without doing it system-wide. And kmail obviously does not. OK, but since I installed notmuch, notmuch.el and ol-notmuch.el, I will have a look into using this. Thank you! -- Regards, Alexander
Re: Org mode links: Open a PDF file at a given page and highlight a given string
Am Mittwoch, 21. September 2022, 10:18:41 CET schrieb Ihor Radchenko: > Max Nikulin writes: > >> I think that it is a very good idea for Org core to support search terms > >> in file links that are handled by Free Software. > > > > Maybe I misunderstand something, but your stress on Free Software here > > surprised me. I did not mention explicitly any proprietary application > > such as Adobe Reader. On the other hand support of Chromium (that is > > free) unavoidably assumes Google Chrome and likely MS Edge with other > > derived products with same customization as chromium vs. > > chromium-browser command name discrepancy in Linux distros. > > I was referring to GPL-compatible software. > If we have better integration with Libre/Free Software, it is suitable > for Org core. IMHO. [...] > > I am considering a single package, something like org-pdfviewer, that > > has definitions for all popular viewers: evince, okular, firefox, > > chromium, etc. I believed that user should explicitly configure > > preferred viewer by either adding an entry with supplied function to > > `org-file-apps' or this package has its own defcustoms and the entry > > injected to some variable as you suggested in > > Ihor Radchenko. Re: [PATCH v2] org.el: Fix percent substitutions in > > `org-open-file' Mon, 05 Sep 2022 13:46:41 +0800. > > https://list.orgmode.org/875yi2xtj2.fsf@localhost > > > > The point of defcustoms in the package instead of (or in addition to) > > `org-file-apps' is that evince and okular support more formats than PDF. > > I understand your idea. What I am suggesting is to implement support for > a subset of popular viewers (the Libre ones) and add it to Org core. > Support for non-Libre viewers could be added ad third-party packages > based on the Org core implementation. > Has this been done? I'm struggeling (again), how to link to a certain page of a PDF, being opened in okular. ./link/xyz.pdf::123 does not open the pdf at p. 123
Re: Link from orgmode file to E-Mail (using kmail or notmuch)
Am Montag, 23. Januar 2023, 14:59:12 CET schrieb AW: > But I'll write an E-Mail to the > developers of kmail. https://bugs.kde.org/show_bug.cgi?id=464695
Re: Link from orgmode file to E-Mail (using kmail or notmuch)
Am Montag, 23. Januar 2023, 12:46:38 CET schrieb Max Nikulin: > On 23/01/2023 01:47, AW wrote: > >> We could support mid: is the corresponding url schema existed and > >> supported by various OSes. > > > > Isn't this rather important? How many users of orgmode get TODOs via > > E-Mail > > and need an efficient way to come back from the TODO to its origin? > > I agree that linking mail messages and Org notes is important. On the > other hand my impression is that the "mid:" URI protocol is not adopted > wide enough by mail user agents yet, so it is too early to enable it by > default in Org. > > Configuring of "mid:" links requires just a few lines in init.el and > they are quite usual for custom links. > > Alexander, you have tried 2 mail application and it seems neither of > them supports "mid:" links out of the box. Notmuch looks almost ready, > it needs just a .desktop file and configuring `browse-url-handlers' on > activation. Have you checked if kmail bug tracker has a feature request > for "mid:" links? I am not sure that KDE bug trackers are indexed by > search engines. I have done that now without result. But I'll write an E-Mail to the developers of kmail. > > From the blog post by Karl Voit I have an impression that developers of > Evolution do not follow RFC since posted command example contains angle > brackets (mid:<...@...>). Such format causes "not found" error in > Thunderbird. > > On 23/01/2023 17:40, Ihor Radchenko wrote: > > I am not even sure if we need to make Org open mid: links via > > `browse-url'. Maybe it should be something else? IDK. > > Do you know an alternative? Org already uses this package to open some > types of links. It allows to have the same handler for all Emacs > packages. I do not think that Org-specific handler would be better. As long as notmuch, notmuch.el and ol-notmuch are there we have a viable solution, thanks to this (undocumented) trick with notmuch:id:123abc, after getting the id by opening the mail with notmuch in emacs and »c I«. Thank you for your time and effort! -- Regards, Alexander
Re: Link from orgmode file to E-Mail (using kmail or notmuch)
Am Montag, 23. Januar 2023, 11:40:24 CET schrieb Ihor Radchenko: > AW writes: > >> We could support mid: is the corresponding url schema existed and > >> supported by various OSes. > > > > Isn't this rather important? How many users of orgmode get TODOs via > > E-Mail > > and need an efficient way to come back from the TODO to its origin? > > It is not up to Org. Try > > (browse-url "mid:3218434.44cspzl...@linux.fritz.box") > > You will likely see nothing. Well, M-x (browse-url "mid:3218434.44cspzl...@linux.fritz.box") produces [No match]. > > So, while Org may provide some limited help with mid:, as Max suggested, > there is no way to guarantee that mid: links will work for all users > without users hand-customizing how to open emails. > > I am not even sure if we need to make Org open mid: links via > `browse-url'. Maybe it should be something else? IDK. This is weird since ever. I've been talking to some collegues and everybody has his/her own special approach. Mostly producing a PDF from the E-Mail and saving this and its attachments somewhere. That's a thing that bothered me for decades. -- Regards, Alexander
Re: Link from orgmode file to E-Mail (using kmail or notmuch)
Am Sonntag, 22. Januar 2023, 09:32:34 CET schrieb Ihor Radchenko: > Max Nikulin writes: > > AW to emacs-orgmode. Link from orgmode file to E-Mail (using kmail or > > notmuch) Sat, 21 Jan 2023 22:32:47 +0100. > > mid:3218434.44cspzl...@linux.fritz.box > > My notmuch allows me to click on the above link from inside the email. > As for Org links, [[notmuch:id:3218434.44cspzl...@linux.fritz.box]] > works the same via ol-notmuch. > Works, great, one thing solved. Thank you! > We could support mid: is the corresponding url schema existed and > supported by various OSes. Isn't this rather important? How many users of orgmode get TODOs via E-Mail and need an efficient way to come back from the TODO to its origin? -- Regards, Alexander
Link from orgmode file to E-Mail (using kmail or notmuch)
Hi! Workflow: E-Mails with a question comes in, I open a TODO heading in an orgmode file regarding the question. Now, I'd like to add a link to the E-Mail under this TODO heading in the orgmode file. I've seen the manual page about external links, https:// orgmode.org/manual/External-Links.html I'm on Linux, KDE as GUI, distro Tumbleweed by openSUSE. The E-mail software is kmail. Unfortunately, there is no way to get the path to an individual E- mail out of kmail, which I could simply use to put it into my orgmode file as a link. So I installed notmuchmail and the emacs package notmuch.el. Works. By notmuch-search I can find an individual E-mail. In the E-Mail buffer I type c I , which copies the message-ID of that E-Mail into the keyring. Instead of a link I paste the message-ID into my orgmode file. If I'd like to read the E-Mail again, I can use notmuch-search: id: to find the E- Mail again. I know, this is not a really efficient way. Probably you are not surprised to read my question: How can I have a link in an orgmode file to an E-Mail using either a feature of kmail oder notmuch ? Regards, Alexander
Re: Survey: changing a few default settings for Org 9.4
Am Mittwoch, 19. Februar 2020, 12:30:59 CET schrieb Nicolas Goaziou: > Hello, > > Bastien writes: > > - Add org-tempo to org-modules > > > > Last but not least: we had long discussions about this one in the > > past. Expansion of the " > the beginning of the line has been turned off. I have IRL met with > > Org users* who just thought the feature was broken/deleted, without > > having/taking the time/knowledge/guts to look for the things they > > can turn on. I am all for turning this on again, letting experts > > disabling the feature if they don't want it. > > > > * We have regular meetings with https://www.emacs-doctor.com/ > > This is not a good default, at least for beginners, because Org provides > a better solution out of the box. There are also better solutions > outside Org (e.g., Yasnippet). > > It is only valuable for existing users, who relied on this feature, and > don't want to switch. It's perfectly understandable, but it is also fair > to assume they can add (require 'org-module) to their own configuration. > _Removing_ the module, OTOH, is subtle. > > By the way, this does not belong to the same category as other > defcustoms discussed. This is only tangential to "how does Org should > look and feel by default". It relates to: should Org provide multiple > snippet extensions, knowing this is not a central feature, and Org is > often seen as bloated by Emacs devs? I don't think so, no matter how > useful this feature can be for some users. > > Regards, Hello, what Bastien suggests, doesn't that lead to two ways of getting getting e.g. a quote? Either with C-c C-, or again with "
Re: [O] org-calc-default-modes not found!
Am Samstag, 14. April 2018, 21:07:34 CEST schrieb Nick Dokos: > AW <alexander.will...@t-online.de> writes: > > > > C-h v org-calc TAB > > > > results in [No match] > > > > Expected result: find variable org-calc-default-modes > > > > > > But why is the variable not found? > > Just a guess. > > You need to load org-table.el where the variable is defined. That file > is probably set up to be autoloaded when you invoke some table > functions, but if you have not invoked any of the autoloads yet, then > you might encounter this problem. Works! Thank you! I pointed the cursor into a tabular.
[O] org-calc-default-modes not found!
Dear list! org-version: Org mode version 9.1.9 (9.1.9-8-gf05c2e-elpa @ .../.emacs.d/elpa/ org-20180409/) [I shortened the path] C-h v org-calc TAB results in [No match] Expected result: find variable org-calc-default-modes But I'd like to set (float 8) to (float 16) in orgtbl-mode tables, because when I export them to LaTex, in my case I get some rounding errors I'd like to avoid. However, I'm really concerned about the fact that the whole variable isn't found. org-table.el is there and it contains the variable. I loaded org-mode via (add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/;) t) No other org-mode around, as far as I can see. For testing I inserted into my .emacs under custom-set-variables these lines: '(org-calc-default-modes (quote (calc-internal-prec 12 calc-float-format (float 16) calc-angle-mode deg calc-prefer-frac nil calc-symbolic-mode nil calc-date-format ( "-" MM "-" DD " " Www (" " hh ":" mm)) calc-display-working-message t))) As far as I can see, the calculation is correct, Example: | 105000200.77 | | 105000400.05 | |--| | 21600.82 | #+TBLFM: @3$1=@1$1+@2$1 But why is the variable not found? Regards, Alexander
[O] Summary for user: function for inserting a block
Hi! I updated to orgmode 9.1.3 and tried to find out about this new feature. In vain. C-c C-x w is undefined. Can someone give a short abstract about the new function for inserting a block? Thank you! Regards, Alexander
Re: [O] basic spreadsheet question
Am Dienstag, 14. Februar 2017, 21:06:38 CET schrieb Jude DaShiell: > When currency is calculated, is it possible in org-mode to have a "$" > prefix on currency amounts? > > > -- Probably not. See here: https://emacs.stackexchange.com/questions/15076/how-to-add-dollar-amounts-in-org-mode -- Regards, Alexander
Re: [O] Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open link) - howto ?
Am Mittwoch, 9. November 2016, 18:00:50 CET schrieb Pablo S. Casas: > From: AW <alexander.will...@t-online.de> > Subject: [O] Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open > link) - howto ? Date: Wed, 09 Nov 2016 11:01:13 +0100 > > > OK, I don't speak lisp, but I tried this in my .emacs: > > > > , > > > > | (add-to-list 'org-file-apps '("\\.pdf\\'" . (lambda (link) ( > > | org-pdfview- > > > > open > > > > | (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (lambda (link) > > | (org-> > > pdfview-open > > ` > >For me it works replacing the former: > (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link))) > (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open > link))) > > by simply: > > (add-to-list 'org-file-apps > '("\\.pdf\\'" . (lambda (file link) (org-pdfview-open link > >Hope it helps. > >Pablo Yes! Thank you!
[O] Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open link) - howto ?
Hi! To display a PDF from orgmode, I'm using pdf-tools and a package called org- pdfview. Code from .emacs to this end: , | (eval-after-load 'org '(require 'org-pdfview)) | (delete '("\\.pdf\\'" . default) org-file-apps) | (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link))) | (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open link))) ` Error message, when trying to open a link using C-c C-o: , | user-error: Please see Org News for version 9.0 about `org-file-apps'-- Error: | Deprecated usage of (org-pdfview-open link) ` Unfortunately I'm lacking the elisp skills to understand the hint in the Org News: , | *** ~org-file-apps~ no longer accepts S-expressions as commands | | The variable now accepts functions of two arguments instead of plain | S-expressions. Replacing a S-expresion with an appropriate function | is straightforward. For example | | : ("pdf" . (foo)) | | becomes | | : ("pdf" . (lambda (file link) (foo))) ` OK, I don't speak lisp, but I tried this in my .emacs: , | (add-to-list 'org-file-apps '("\\.pdf\\'" . (lambda (link) ( org-pdfview- open | (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (lambda (link) (org- pdfview-open ` Well, error message when trying to open a link to a PDF: , | user-error: Please see Org News for version 9.0 about `org-file-apps'--Lisp error: (lambda (link) (org-pdfview-open)) ` Maybe someone can help me to adapt the code; would appreciate much! Regards, Alexander
Re: [O] orgmode & pdf-tools
Am Montag, 25. Juli 2016, 13:47:25 CEST schrieb Nicolas Goaziou: > Hello, > > Pablo S. Casaswrites: > >After edebugging org-open-file I found a possible solution. The > > > > documentation string for org-file-apps should be modified for the sexp > > case to use the link variable instead of file. > > > > #+BEGIN_SRC elisp > > (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link))) > > (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open > > link))) #+END_SRC > > I'm not sure about what the initial problem is, but there is no more > "sexp" case in `org-file-apps' in development version. You can use > a function instead. > > > Regards, @ Pablo, thank you, that solved it! Great! @ all: My initial setup was: (eval-after-load 'org '(require 'org-pdfview)) (delete '("\\.pdf\\'" . default) org-file-apps) (add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open)) (add-to-list 'org-file-apps '("\\.pdf::\\([[:digit:]]+\\)\\'" . org-pdfview- open)) Now and working: (eval-after-load 'org '(require 'org-pdfview)) (delete '("\\.pdf\\'" . default) org-file-apps) (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link))) (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open link))) So the way to include org-pdfview-open did not work with openSuse and Emacs 24.5 If somebody _please_ could swap the "sexp" in org-file-apps with whatever function, as Nicolas mentioned? It really is helpful to open a lengthy PDF at the right page... And sorry for answering so late, I missed the email. Regards, Alexander
Re: [O] orgmode & pdf-tools
. . . A N D openSUSE! Links of the form [[./foo.pdf::3]] still are being opened on p. 1 instead of page 3. For description of my issue, see my report from April 3rd below. Me, being a user, I can't solve this. I'm on openSuse, current Tumbleweed. I managed to install PDF-Tools properly, after I found out that you need to install Cask before loading down the package via Melpa. Those lines below from my .emacs work in other installations, as the maintainer of org-pdfview.el wrote. (https://github.com/markus1189/org-pdfview/issues/10) I build a short .emacs, only the necessary links and packages, to orgmode and PDF-Tools. No success. IS SOMEBODY READING THIS WHO USES openSUSE ? I tried but failed to find an error with edebug, but this seems way beyond my skills. Am Sonntag, 3. April 2016, 12:19:33 CEST schrieb AW: > Hi! > > Linux, Orgmode 8.3.4, org-file with many links. Recently I discovered pdf- > tools, which can display PDFs inside Emacs, just like docview, but much > faster. > > I'd like to > > 1. open via a given link from inside the org-file using C-c C-o > > 2. the PDF with pdf-tools > > 3. on a given page. > > Result: PDF is being opened, but always on p. 1 instead of e.g. page 5! > > .emacs: > > (eval-after-load 'org '(require 'org-pdfview)) > (delete '("\\.pdf\\'" . default) org-file-apps) > (add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open)) > (add-to-list 'org-file-apps '("\\.pdf::\\([[:digit:]]+\\)\\'" . org-pdfview- > open)) > > link in org-file: > > [[./localfile.pdf::5]] > > > Same setup works under windows with other viewer. So probably there is an > error in those lines above. Any hints? -- Thank you! > > Regards, > > Alexander
[O] orgmode & pdf-tools
Hi! Linux, Orgmode 8.3.4, org-file with many links. Recently I discovered pdf- tools, which can display PDFs inside Emacs, just like docview, but much faster. I'd like to 1. open via a given link from inside the org-file using C-c C-o 2. the PDF with pdf-tools 3. on a given page. Result: PDF is being opened, but always on p. 1 instead of e.g. page 5! .emacs: (eval-after-load 'org '(require 'org-pdfview)) (delete '("\\.pdf\\'" . default) org-file-apps) (add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open)) (add-to-list 'org-file-apps '("\\.pdf::\\([[:digit:]]+\\)\\'" . org-pdfview- open)) link in org-file: [[./localfile.pdf::5]] Same setup works under windows with other viewer. So probably there is an error in those lines above. Any hints? -- Thank you! Regards, Alexander
Re: [O] PDF-tools... and LaTeX (solved)
Sorry for the noise, to use PDF Tools instead of Okular I just had to write into my .emacs: (pdf-tools-install) (TeX-view-program-selection (quote (((output-dvi style-pstricks) "dvips and gv") (output-dvi "xdvi") (output-pdf "PDF Tools") (output-html "xdg-open"
Re: [O] PDF-tools... and LaTeX
Am Montag, 16. November 2015, 20:58:20 schrieb Nick Dokos: > > From here https://github.com/politza/pdf-tools/issues/128 > > is this setup for .emacs: > > > > = 8< == > > > > > > (pdf-tools-install) > > (load "pdf-tools") > > (setq TeX-view-program-selection '((output-dvi "Okular") > > (output-pdf "PDF Tools") ;; > > )) > > > > (require 'subr-x) > > (defun th/pdf-view-revert-buffer-maybe (file) > > (when-let ((buf (find-buffer-visiting file))) > > (with-current-buffer buf > > (when (derived-mode-p 'pdf-view-mode) > > (pdf-view-revert-buffer nil t) > > > > (add-hook 'TeX-after-TeX-LaTeX-command-finished-hook > > > > #'th/pdf-view-revert-buffer-maybe) > > > > >8 > > > > If I compile a *.tex file again, I get the error > > > > "error in process sentinel: Symbol's function definition is void: > > when-let" > > > > ...and the PDF won't get updated. > > So when-let is not defined above, and it is not defined by emacs, so you > got to get the definition from somewhere. Go back to the link and you'll > see further down that the OP complains about the same thing. The > solution seems to be > >(require 'subr-x) Yes, well, this is already part of the code I posted, see above. However, thank you, I admit my question is a little bit OT! Regards, -- Alexander
[O] PDF-tools... and LaTeX
Dear all, I dare to ask this slightly off-topic question, because of the discussion about pdf-tools a day ago. I installed pdf-tools (https://github.com/politza/pdf-tools). It is a _lot_ faster than doc-view. Many thanks to Matt Price (http://matt.hackinghistory.ca/2015/11/11/note-taking-with-pdf-tools/) I got it working with orgmode. But I'd like to use it to display my PDFs I produce with LaTeX (Emacs, AUCTeX) as well. The trouble is the automagic reloading of the PDF every time it get's changed on disk. Okular does this, but pdf-tools need some kind of invitation?! >From here https://github.com/politza/pdf-tools/issues/128 is this setup for .emacs: = 8< == (pdf-tools-install) (load "pdf-tools") (setq TeX-view-program-selection '((output-dvi "Okular") (output-pdf "PDF Tools") ;; )) (require 'subr-x) (defun th/pdf-view-revert-buffer-maybe (file) (when-let ((buf (find-buffer-visiting file))) (with-current-buffer buf (when (derived-mode-p 'pdf-view-mode) (pdf-view-revert-buffer nil t) (add-hook 'TeX-after-TeX-LaTeX-command-finished-hook #'th/pdf-view-revert-buffer-maybe) >8 If I compile a *.tex file again, I get the error "error in process sentinel: Symbol's function definition is void: when-let" ...and the PDF won't get updated. Can anybody help me to get a working setup? Really, this libpoppler behind pdf-tools is such a lot faster, it reminds me on xpdf. I'm on Linux, Emacs 24.5.1 and AUCTeX 11.89. Thanks! Alexander
Re: [O] Using link abbrevations for EXPORT_FILE_NAME ?
Am Sonntag, 8. November 2015, 20:11:23 schrieb Nicolas Goaziou: > Hello, > > AW <alexander.will...@t-online.de> writes: > > on orgmode 8.3.2 I've got a large org-file. Offen, I need to export a > > subtree like this: > > > > - > > * Subtree to be exported > > > > :PROPERTIES: > > :EXPORT_FILE_NAME: /PATH/TO/FOLDER/filename > > :EXPORT_TITLE: > > > > :END: > > foo > > > > - > > > > I'd like to save the exported file in a project folder, as you can see in > > EXPORT_FILE_NAME . > > > > It would be very helpful to use link abbrevations in EXPORT_FILE_NAME : > > > > (setq org-link-abbrev-alist > > > >'(("anglisky" . "~/Path/whereever/%s"))) > > > > in .emacs and write: > > > > - > > * Subtree to be exported > > > > :PROPERTIES: > > :EXPORT_FILE_NAME: anglisky:filename > > :EXPORT_TITLE: > > > > :END: > > foo > > > > - > > > > Possible? Feature Request? > > Not possible. Also, link syntax sounds awkward because most links > wouldn't make sense there. > > What about introducing a new property: > :EXPORT_FILE_DIRECTORY: > When set, e.g. to "dir", assuming EXPORT_FILE_NAME is set to "foo/file", > export file name becomes "dir/file". > > Since you can set it per subtree or document, I think it would help in > your situation. Background: I'm using orgmode on different platforms, Windows and Linux. So I (being very proud of that!) wrote an if-clause: (setq org-link-abbrev-alist (if (eq system-type 'windows-nt) '(("foopath" . "//Sbs2011/ra2000/Bilder/2010/271-2011/%s") ) '(("foopath" . "/home/AW/some/path/2011-271-project/%s"))) So on Windows foopath becomes the first path, and on Linux the second and all my links in the orgmode files work on both platforms. A cheap solution for EXPORT_FILE_NAME: just have two lines and comment out the wrong one! - * Subtree to be exported :PROPERTIES: # :EXPORT_FILE_NAME: //Sbs2011/ra2000/Bilder/2010/271-2011/filename :EXPORT_FILE_NAME: /home/AW/some/path/2011-271-project/filename :EXPORT_TITLE: :END: foo - But comment seems not to work inside properties. However, :EXPORT_FILE_DIRECTORY: would only improve _my_ situation, if I could make it dependend on a condition. Thank you very for your help! Kind regards, -- Alexander
[O] Using link abbrevations for EXPORT_FILE_NAME ?
Hi, on orgmode 8.3.2 I've got a large org-file. Offen, I need to export a subtree like this: - * Subtree to be exported :PROPERTIES: :EXPORT_FILE_NAME: /PATH/TO/FOLDER/filename :EXPORT_TITLE: :END: foo - I'd like to save the exported file in a project folder, as you can see in EXPORT_FILE_NAME . It would be very helpful to use link abbrevations in EXPORT_FILE_NAME : (setq org-link-abbrev-alist '(("anglisky" . "~/Path/whereever/%s"))) in .emacs and write: - * Subtree to be exported :PROPERTIES: :EXPORT_FILE_NAME: anglisky:filename :EXPORT_TITLE: :END: foo - Possible? Feature Request? Thank you! Regards, -- Alexander
Re: [O] Bug: External links buggy with 8.3.1 [8.3.1 (8.3.1-dist @ c:/org-mode/org/)]
Am Samstag, 26. September 2015, 00:15:14 schrieb Nicolas Goaziou: > Hello, > > AW <alexander.will...@t-online.de> writes: > > No idea, nobody? Or keeping the tidbits for the weekend?! > > Fixed. Thank you. Quite the contrary: thank you very much for hunting bugs at midnight. Regards, -- Alexander
Re: [O] Bug: External links buggy with 8.3.1 [8.3.1 (8.3.1-dist @ c:/org-mode/org/)]
No idea, nobody? Or keeping the tidbits for the weekend?! Am Donnerstag, 24. September 2015, 15:49:08 schrieb AW: > To: emacs-orgmode@gnu.org > Subject: Bug: External links buggy with 8.3.1 [8.3.1 (8.3.1-dist @ c:/org- > mode/org/)] > From: aw@PC-21-W8.i-did-not-set--mail-host-address--so-tickle-me > --text follows this line-- > > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? See > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org-mode mailing list. > > > I'm using link abbrevations. The abbrevations are stored in a file and > this file is loaded in my .emacs. I hit this bug only on Windows 8.1, > not under Linux. > > Code of abbrevations as example: > > (setq org-link-abbrev-alist >(if (eq system-type 'windows-nt) > '(("NameA" . "//Sbs2011/Bilder/2011/271-2011/%s") > ("NameB" . "//Sbs2011/Bilder/2012/351-2012/%s") > ) > '(("NameA" . "/home/AW/Dokumente/2011-271/%s") > ("NameB" . "/home/AW/Dokumente/2012-351/%s") > ))) > > With orgmode 8.2.10 the links work. Example for link: [[NameA:filename.pdf] > [whatever]] > > With orgmode 8.3.1 I get the message e.g.: > > user-error: No such file: u:/Sbs2011/Bilder/2011/271-2011/filename.pdf > > You see, orgmode 8.3.1 modifies for no apparent reason the link from > "//sbs2011..." to "u:/sbs2011..." > > The share "u:" exists, HOME is u:/emacs. This is the orgmode version from > orgmode.org, not elpa. > > Emacs : GNU Emacs 25.0.50.5 (x86_64-w64-mingw32) > of 2015-09-21 on PC-21-W8 > Package: Org-mode version 8.3.1 (8.3.1-dist @ c:/org-mode/org/) > > current state: > == > (setq > org-tab-first-hook '(org-hide-block-toggle-maybe > org-babel-hide-result-toggle-maybe > org-babel-header-arg-expand) > org-speed-command-hook '(org-speed-command-default-hook > org-babel-speed-command-hook) > org-occur-hook '(org-first-headline-recenter) > org-metaup-hook '(org-babel-load-in-session-maybe) > org-confirm-shell-link-function 'yes-or-no-p > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-src-mode-hook '(org-src-babel-configure-edit-buffer >org-src-mode-configure-edit-buffer) > org-agenda-before-write-hook '(org-agenda-add-entry-text) > org-babel-pre-tangle-hook '(save-buffer) > org-mode-hook '(#[nil "\300\301\302\303\304$\207" > [org-add-hook change-major-mode-hook org-show-block-all > append local] > 5] >#[nil "\300\301\302\303\304$\207" > [org-add-hook change-major-mode-hook > org-babel-show-result-all append local] > 5] >org-babel-result-hide-spec org-babel-hide-all-hashes) > org-archive-hook '(org-attach-archive-delete-maybe) > org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > org-babel-execute-safely-maybe) > org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers > org-cycle-show-empty-lines > org-optimize-window-after-visibility-change) > org-link-abbrev-alist '(("NameA" . > "//Sbs2011/Bilder/2011/271-2011/%s") ("NameB" . > "//Sbs2011/Bilder/2012/351-2012/%s") > );;; CAVE: I deleted the real output and wrote my example > org-confirm-elisp-link-function 'yes-or-no-p > org-metadown-hook '(org-babel-pop-to-session-maybe) > org-agenda-files '("u:/Emacs/Sonstiges.org" "u:/Emacs/this.org" > "u:/Emacs/that.org" "u:/Emacs/Privat.org" > ) > org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > ) > -
[O] Bug: External links buggy with 8.3.1 [8.3.1 (8.3.1-dist @ c:/org-mode/org/)]
To: emacs-orgmode@gnu.org Subject: Bug: External links buggy with 8.3.1 [8.3.1 (8.3.1-dist @ c:/org- mode/org/)] From: aw@PC-21-W8.i-did-not-set--mail-host-address--so-tickle-me --text follows this line-- Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. I'm using link abbrevations. The abbrevations are stored in a file and this file is loaded in my .emacs. I hit this bug only on Windows 8.1, not under Linux. Code of abbrevations as example: (setq org-link-abbrev-alist (if (eq system-type 'windows-nt) '(("NameA" . "//Sbs2011/Bilder/2011/271-2011/%s") ("NameB" . "//Sbs2011/Bilder/2012/351-2012/%s") ) '(("NameA" . "/home/AW/Dokumente/2011-271/%s") ("NameB" . "/home/AW/Dokumente/2012-351/%s") ))) With orgmode 8.2.10 the links work. Example for link: [[NameA:filename.pdf] [whatever]] With orgmode 8.3.1 I get the message e.g.: user-error: No such file: u:/Sbs2011/Bilder/2011/271-2011/filename.pdf You see, orgmode 8.3.1 modifies for no apparent reason the link from "//sbs2011..." to "u:/sbs2011..." The share "u:" exists, HOME is u:/emacs. This is the orgmode version from orgmode.org, not elpa. Emacs : GNU Emacs 25.0.50.5 (x86_64-w64-mingw32) of 2015-09-21 on PC-21-W8 Package: Org-mode version 8.3.1 (8.3.1-dist @ c:/org-mode/org/) current state: == (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-shell-link-function 'yes-or-no-p org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-link-abbrev-alist '(("NameA" . "//Sbs2011/Bilder/2011/271-2011/%s") ("NameB" . "//Sbs2011/Bilder/2012/351-2012/%s") );;; CAVE: I deleted the real output and wrote my example org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-agenda-files '("u:/Emacs/Sonstiges.org" "u:/Emacs/this.org" "u:/Emacs/that.org" "u:/Emacs/Privat.org" ) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) -
Re: [O] org-crypt: Secure encrypted message against inadvertent change
Am Montag, 24. August 2015, 20:42:01 schrieb AW: Am Sonntag, 23. August 2015, 19:54:51 schrieb John Kitchin: I am not sure if you put the comment on this post: http://kitchingroup.cheme.cmu.edu/blog/2014/09/13/Make-some-org-sections-r ea d-only/ but it is possible to setup a hook that makes headings read-only. You could do that for headings tagged crypt, for example. Dear John, thank you. I simply changed read_only to crypt in the functions you developed. This functions prevent a change of encrypted text, which I think is really an improvment. === (defun org-mark-readonly () (interactive) (org-map-entries (lambda () (let* ((element (org-element-at-point)) (begin (org-element-property :begin element)) (end (org-element-property :end element))) (add-text-properties begin (- end 1) '(read-only t crypt) (message Made readonly!)) (defun org-remove-readonly () (interactive) (org-map-entries (lambda () (let* ((element (org-element-at-point)) (begin (org-element-property :begin element)) (end (org-element-property :end element)) (inhibit-read-only t)) (remove-text-properties begin (- end 1) '(read-only t crypt)) (add-hook 'org-mode-hook 'org-mark-readonly) === Thus before I can use org-decrypt-entry I have to put the cursor under the headline with the tag :crypt: and call org-remove-readonly. I S U G G E S T to put this into org-crypt and change the commands org- decrypt-entry and org-encrypt-entry: Encrypted text shall be read-only, and org-decrypt-entry removes this. Sorry, I'm a user without knowledge of Lisp, unfortunately I can't do that myself. But it would be a valuable improvement of org-crypt. I wrote to the person mentioned in org-crypt.el as maintainer and received the message that he no longer uses org-mode and no longer maintains org-crypt.el. What a pity, org-mode is better than ever.
Re: [O] org-crypt: Secure encrypted message against inadvertent change
Am Sonntag, 23. August 2015, 19:54:51 schrieb John Kitchin: I am not sure if you put the comment on this post: http://kitchingroup.cheme.cmu.edu/blog/2014/09/13/Make-some-org-sections-rea d-only/ but it is possible to setup a hook that makes headings read-only. You could do that for headings tagged crypt, for example. Dear John, thank you. I simply changed read_only to crypt in the functions you developed. This functions prevent a change of encrypted text, which I think is really an improvment. === (defun org-mark-readonly () (interactive) (org-map-entries (lambda () (let* ((element (org-element-at-point)) (begin (org-element-property :begin element)) (end (org-element-property :end element))) (add-text-properties begin (- end 1) '(read-only t crypt) (message Made readonly!)) (defun org-remove-readonly () (interactive) (org-map-entries (lambda () (let* ((element (org-element-at-point)) (begin (org-element-property :begin element)) (end (org-element-property :end element)) (inhibit-read-only t)) (remove-text-properties begin (- end 1) '(read-only t crypt)) (add-hook 'org-mode-hook 'org-mark-readonly) === Thus before I can use org-decrypt-entry I have to put the cursor under the headline with the tag :crypt: and call org-remove-readonly. I S U G G E S T to put this into org-crypt and change the commands org- decrypt-entry and org-encrypt-entry: Encrypted text shall be read-only, and org-decrypt-entry removes this. Sorry, I'm a user without knowledge of Lisp, unfortunately I can't do that myself. But it would be a valuable improvement of org-crypt. Regards, Alexander AW writes: I'm using org-crypt. All text below a heading with the tag :crypt: becomes encrypted with saving the file and looks like this: -BEGIN PGP MESSAGE- Version: GnuPG v2 hQEOAxn9DjwjX2oYEAQAgLl/58dss1VVgmRb1rGIaNV2I5P+smcDjhWa5/arTMPE 9wjxHUpU/HSflCwnV5609H3J9ZSVubCpaUbV3Da0jnDUJuljFbSqapRym1PW0hFn ApfLwze3HTj+A3eODf+p3kbDjFnII9Rfn7lWQ/6OmMrisQbvbsWzS3K/crgqu+cD /j6m3nDURonKGStv5h7sgaSRuLGzqXvHXEnS+d1ad1ZomgTD4abZNvDYt9Y039FE xYwRphWSBs+vtQ34resZewCa4s7h5SES5j839vQPWI4VyA4uRrfzYATHnHtoxfwA RQWzUTeS16FFBxnjqqTXGXqH9go25Ovnl1Np9c2H7veH0lQB/hpwGbUJRnYCx5Nd UlZ/U+aKQJl3aD+ulgOxJhTQNb9ToXxMpwS3FitsZHVh8OaRBLdgjRVFstWw3NhT RTQ3Og0+ts34iKW+u+2ock/LqiDYFx4= =+xma -END PGP MESSAGE- I really hope this example will not irritate your email software. My notebook has one of those large touchpads and once in a while I hit it and go on with typing, but the cursor shifted to text somewhere else and I'm adding letters to a completely different paragraph, before I notice and correct it. Well, this evening I added some letters inadvertently inside a PGP message, because the touchpad shifted to cursor to an encrypted paragraph. If I saved the file, the encrypted paragraph would have become un-decryptable (I tested this: decrypting no longer is possible). Unfortunately I won't always realise what happened, e.g. if I don't watch while dictating into a speech recognition (Dragon Nat. Speak.). And the encrypted parts are not needed often. So the destroyed PGP message might make it into my backups and if I try to encrypt it a year later... Why isn't the text between -BEGIN PGP MESSAGE- and -END PGP MESSAGE- read-only as a default ? Really, an inadvertent change can destroy valuable information and it i -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu
[O] org-crypt: Secure encrypted message against inadvertent change
I'm using org-crypt. All text below a heading with the tag :crypt: becomes encrypted with saving the file and looks like this: -BEGIN PGP MESSAGE- Version: GnuPG v2 hQEOAxn9DjwjX2oYEAQAgLl/58dss1VVgmRb1rGIaNV2I5P+smcDjhWa5/arTMPE 9wjxHUpU/HSflCwnV5609H3J9ZSVubCpaUbV3Da0jnDUJuljFbSqapRym1PW0hFn ApfLwze3HTj+A3eODf+p3kbDjFnII9Rfn7lWQ/6OmMrisQbvbsWzS3K/crgqu+cD /j6m3nDURonKGStv5h7sgaSRuLGzqXvHXEnS+d1ad1ZomgTD4abZNvDYt9Y039FE xYwRphWSBs+vtQ34resZewCa4s7h5SES5j839vQPWI4VyA4uRrfzYATHnHtoxfwA RQWzUTeS16FFBxnjqqTXGXqH9go25Ovnl1Np9c2H7veH0lQB/hpwGbUJRnYCx5Nd UlZ/U+aKQJl3aD+ulgOxJhTQNb9ToXxMpwS3FitsZHVh8OaRBLdgjRVFstWw3NhT RTQ3Og0+ts34iKW+u+2ock/LqiDYFx4= =+xma -END PGP MESSAGE- I really hope this example will not irritate your email software. My notebook has one of those large touchpads and once in a while I hit it and go on with typing, but the cursor shifted to text somewhere else and I'm adding letters to a completely different paragraph, before I notice and correct it. Well, this evening I added some letters inadvertently inside a PGP message, because the touchpad shifted to cursor to an encrypted paragraph. If I saved the file, the encrypted paragraph would have become un-decryptable (I tested this: decrypting no longer is possible). Unfortunately I won't always realise what happened, e.g. if I don't watch while dictating into a speech recognition (Dragon Nat. Speak.). And the encrypted parts are not needed often. So the destroyed PGP message might make it into my backups and if I try to encrypt it a year later... Why isn't the text between -BEGIN PGP MESSAGE- and -END PGP MESSAGE- read-only as a default ? Really, an inadvertent change can destroy valuable information and it i
Re: [O] Orgmode links trouble with Emacs 24.4 on Windows 7: ShellExecute failed: ...
As this does not seem to be an orgmode, but an emacs on windows issue, I'll ask on the emacs list, so beware: crossposting. Am Mittwoch, 19. November 2014, 16:25:18 schrieb AW: Am Dienstag, 18. November 2014, 22:36:46 schrieb Nicolas Goaziou: Hello, AW alexander.will...@t-online.de writes: I installed Emacs 24.4 on Windows 7. Everything works, except some of my links in orgmode. They worked under Emacs 24.3, and they work with Emacs 24.4 under Linux. The non-working links have a certain structure: I'm using shorcuts. I have a file AW-org-file.el, containing lines like: (setq org-link-abbrev-alist '(name . //SBS2011/path/to/folder/%s)) It should be (setq org-link-abbrev-alist '((name . //SBS2011/path/to/folder/%s))) The links in the org-files look like this: [[name:filename]] or [[name:./path/down/the/folder/filename.pdf]] Use M-: (org-element-property :path (org-element-context)) with point on each of them. Is the path a valid (according to Windows) file name? Regards, Hello, yes, I did that and the path is valid, it becomes, well, say, expanded. Except that it contains slashes ( / ) instead of backslashes, it is exactly what I expected. And to be clear: the same link works with Emacs 24.3 under Windows 7 as well as under Linux and Emacs 24.4. Thank you for your much appreciated help! Regards, Alexander
Re: [O] Orgmode links trouble with Emacs 24.4 on Windows 7: ShellExecute failed: ...
Am Dienstag, 18. November 2014, 22:36:46 schrieb Nicolas Goaziou: Hello, AW alexander.will...@t-online.de writes: I installed Emacs 24.4 on Windows 7. Everything works, except some of my links in orgmode. They worked under Emacs 24.3, and they work with Emacs 24.4 under Linux. The non-working links have a certain structure: I'm using shorcuts. I have a file AW-org-file.el, containing lines like: (setq org-link-abbrev-alist '(name . //SBS2011/path/to/folder/%s)) It should be (setq org-link-abbrev-alist '((name . //SBS2011/path/to/folder/%s))) The links in the org-files look like this: [[name:filename]] or [[name:./path/down/the/folder/filename.pdf]] Use M-: (org-element-property :path (org-element-context)) with point on each of them. Is the path a valid (according to Windows) file name? Regards, Hello, yes, I did that and the path is valid, it becomes, well, say, expanded. Except that it contains slashes ( / ) instead of backslashes, it is exactly what I expected. And to be clear: the same link works with Emacs 24.3 under Windows 7 as well as under Linux and Emacs 24.4. Thank you for your much appreciated help! Regards, Alexander
[O] Orgmode links trouble with Emacs 24.4 on Windows 7: ShellExecute failed: ...
hi, I installed Emacs 24.4 on Windows 7. Everything works, except some of my links in orgmode. They worked under Emacs 24.3, and they work with Emacs 24.4 under Linux. The non-working links have a certain structure: I'm using shorcuts. I have a file AW-org-file.el, containing lines like: (setq org-link-abbrev-alist '(name . //SBS2011/path/to/folder/%s)) This file AW-org-file.el is required in my .emacs The links in the org-files look like this: [[name:filename]] or [[name:./path/down/the/folder/filename.pdf]] With cursor on the link I do C-c C-o and get: ShellExecute failed: Das System kann die angegebene Datei nicht finden. (my translation: the system can not find the file). I'd be thankful for a helping hand, Alexander
Re: [O] [RFC] Rewrite radio tables
Am Sonntag, 24. August 2014, 21:25:57 schrieb Nicolas Goaziou: Hello, The following patch implements radio tables and `orgtbl-to-...' functions using Org export engine. The implementation is probably not totally backward compatible, though. Hello, I'm really interested in improvments of orgtbl and exporting to LaTeX, but as a user I have no idea what to do with the patchfile. If I can patch against a file of orgmode 8.2.7, please drop a line. However, @Nicolas, thank you very much for time and effort. Regards, Alexander
Re: [O] DTD prohibited
Am Mittwoch, 4. Juni 2014, 17:04:14 schrieb Eric Abrahamsen: Eric S Fraga e.fr...@ucl.ac.uk writes: On Tuesday, 3 Jun 2014 at 22:14, AW wrote: [...] Hi, thank you, I started again digging into this strange thing and the culprit seems the first line of the html-file: ?xml version=1.0 encoding=utf-8? If I remove this line, no error. And removing simply Have a look at ,[ C-h v org-html-xml-declaration RET ] | org-html-xml-declaration is a variable defined in `ox-html.el'. | Its value is | ((html . ?xml version=\1.0\ encoding=\%s\?) | | (php . ?php echo \?xml version=\\\1.0\\\ encoding=\\\%s\\\ | ?\; ?)) | | Documentation: | The extension for exported HTML files. | %s will be replaced with the charset of the exported file. | This may be a string, or an alist with export extensions | and corresponding declarations. | | This declaration only applies when exporting to XHTML. | | You can customize this variable. | | [back] Seems like simply exporting as html5 might solve the problem. Yes, it does, thank you. But the price is that tabulars lose the frames and lines. I did not invest whether due to export without those elements or because Word had issues with html5. So I think I stick for the time being with customization of org-html-xml- declaration.
Re: [O] DTD prohibited
Am Dienstag, 3. Juni 2014, 00:34:58 schrieb James Harkins: Bastien bzg at gnu.org writes: Hi Alexander, AW alexander.willand at t-online.de writes: Now, Word no longer can open the html-documents produced by orgmode. The error message is (translated from German): DTD prohibited. You may want to customize `org-html-doctype' but you probably need to digg further to know what DTD is prohibited exactly. Apparently, all of them: http://en.m.wikipedia.org/wiki/Document_Type_Definition Under Security: ~~ An XML DTD can be used to create a denial of service (DoS) attack by defining nested entities that expand exponentially, or by sending the XML parser to an external resource that never returns.[10] For this reason, .NET Framework provides a property that allows prohibiting or skipping DTD parsing, [10] and recent versions of Microsoft Office applications (Microsoft Office 2010 and higher) refuse to open XML files that contain DTD declarations. ~~ So, if org ODT export now depends on a DTD, then we'd have to say that we don't support exported files that open in MS Word. hjh Hi, thank you, I started again digging into this strange thing and the culprit seems the first line of the html-file: ?xml version=1.0 encoding=utf-8? If I remove this line, no error. And removing simply xml version=1.0 helped as well. Courious. Because of such behaviour I hate Word, but ... Source: http://stackoverflow.com/a/15816168 Regards, Alexander
Re: [O] [ANN] Firefox extension for org-protocol and org-capture
Am Freitag, 21. Februar 2014, 15:06:11 schrieb Olivier Schwander: Dear list, I would like to announce the first version of an extension to call org-capture through org-protocol from Firefox: - http://chadok.info/firefox-org-capture/ It just does the same thing as the Javascript bookmarklet but without the need to register the scheme org-protocol:// in Firefox/Gnome/KDE/XDG (or whatever we are supposed to do this week to manage handler for protocols). I hope this solution to be easier and more reliable, at least for Firefox users. It is not on https://addons.mozilla.org for now, but I will submit it for review in a few days. Olivier Olivier, would you mind to add an example what to do with your addon? It just does the same thing as the Javascript bookmarklet implies that I know the purpose of this or org-protocol. Unfortunately I have no idea and reading the explanations of org-protocol does not help much. So: What can your addon do for a user of firefox and orgmode? Thank you! Regards, Alexander
Re: [O] [ANN] Firefox extension for org-protocol and org-capture
Am Donnerstag, 10. April 2014, 11:02:52 schrieb Oleh: Following all the nice comments you made after my first announce, I just uploaded an updated version of the org-capture extension. You can find it on the main webpage http://chadok.info/firefox-org-capture/ or on the Mozilla addons repository https://addons.mozilla.org/fr/firefox/addon/org-mode-capture/ (review pending from Mozilla people). Hi Olivier, Thanks for the great extension. No more meddling with bookmarks and keyconfig for me:). Oleh OK, but could somebody, who understood this add-on, explain its use? Olivier wrote some time ago: It just does the same thing as the Javascript bookmarklet but without the need to register the scheme org-protocol:// in Firefox/Gnome/KDE/XDG (or whatever we are supposed to do this week to manage handler for protocols). I hope this solution to be easier and more reliable, at least for Firefox users. But this is all I could find and I still do not know, what it is good for?! Regards, Alexander
[O] orc-contacts contacting ww.gravatar.com! -- How to switch off?
Hi, I'm exploring the org-contacts. When I do M-x org-contacts, Emacs tries to contact www.gravatar.com:80 How can I switch that off? Besides that, what I really miss is a comprehensive manual on org-contact. OK, I can search for a name as described above, I can add a new contact with M-x org-capture, but what else? Thank you, Regards, Alexander
Re: [O] orc-contacts contacting ww.gravatar.com! -- How to switch off?
Am Montag, 17. Februar 2014, 13:02:46 schrieb Daimrod: AW alexander.will...@t-online.de writes: Hi, I'm exploring the org-contacts. When I do M-x org-contacts, Emacs tries to contact www.gravatar.com:80 How can I switch that off? You can set `org-contacts-icon-use-gravatar' to nil. Thanx. Worx! Besides that, what I really miss is a comprehensive manual on org-contact. OK, I can search for a name as described above, I can add a new contact with M-x org-capture, but what else? Thank you, Regards, Alexander signature.asc Description: This is a digitally signed message part.
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Am Mittwoch, 4. Dezember 2013, 18:26:46 schrieb Nick Nick Dokos: AW alexander.will...@t-online.de writes: Hi! ... Off the top of my head, I would say (add-to-list 'org-file-apps '(\\.doc . env WINEPREFIX=\/home/AW/.wine-office\ wine \C:\\windows\\command\\start.exe\ /Unix \/home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk\)) i.e. just the command you provided enclosed in double quotes, except that certain characters within have to be escaped: - \ \ - \\ The long string will probably be broken up into multiple lines by some mailer but it is supposed to be one long string with no newlines. I don't know if the spaces in the path will cause problems. Untested (except that I did evaluate the add-to-list and got no errors): no Word and no wine here. I get no error message, but nothing happens, except Emacs telling me it has run the command. BTW, why not LibreOffice? Does it mishandle your .doc files? LibreOffice changes the content of word files slightly and for folks who panic if not everything is like expected, that's too much already. You know, if you are the guy who works with LaTeX, word users tend to be somehow narrow minded. However, thank you. I tried something different now: I wrote a bash script, just two lines: #!/bin/bash env WINEPREFIX=/home/AW/.wine-office wine C:\windows\command\start.exe /Unix /home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk On the command line word.sh works. But in .emacs the lines (add-to-list 'org-file-apps '(\\.docx . exec /home/AW/bin/word.sh %s)) don't. What am I doing in the wrong way? Regards, Alexander
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Am Donnerstag, 5. Dezember 2013, 08:48:11 schrieb Jambunathan K: Nick Dokos ndo...@gmail.com writes: Off the top of my head, I would say (add-to-list 'org-file-apps '(\\.doc . env WINEPREFIX=\/home/AW/.wine-office\ wine \C:\\windows\\command\\start.exe\ /Unix \/home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk\)) i.e. just the command you provided enclosed in double quotes, except that certain characters within have to be escaped: - \ \ - \\ The long string will probably be broken up into multiple lines by some mailer but it is supposed to be one long string with no newlines. I don't know if the spaces in the path will cause problems. Untested (except that I did evaluate the add-to-list and got no errors): no Word and no wine here. BTW, why not LibreOffice? Does it mishandle your .doc files? Nick The easiest way to get the same effect is to use M-x customize-variable RET org-file-apps RET and specify a command. Once it is saved, the .emacs will have the resulting nightmarish string :-) Another way to quote a string would be to use M-x pp-eval-expression RET (read-string Enter string: ) RET and copy-paste the output from *Pp Eval Output* to .emacs or .el file. Thank you, customization worked, but it did not start word -- I'm going another way now. Regards, Alexander
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Am Donnerstag, 5. Dezember 2013, 09:01:40 schrieb Achim Gratz: AW alexander.willand at t-online.de writes: But how can I set org-file-apps to open a *.doc file with MS Word under Linux? It's probably easiest to put that into a wrapper script and associate it with .doc/.docx on your desktop environment. That way you probably wouldn't even need to customize anything within Emacs or at least could avoid the vagaries of UNIX vs. Windows quoting. Regards, Achim. Great idea, thank you! Doesn't work yet (I'm lacking of lisp knowledge very much), see my other mail re Nick Dokos. Regards, Alexander
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Am Donnerstag, 5. Dezember 2013, 20:51:04 schrieb Jambunathan K: AW alexander.will...@t-online.de writes: Thank you, customization worked, but it did not start word -- I'm going another way now. I am playing a guessing game and really don't know what I am saying. Try this. M-: (shell-quote-argument (read-string Enter string:)) When prompted enter whatever wine whatever %s Now put whatever string you get in *Pp Eval Output* DIRECTLY in to your .emacs. See the attached snippet.el for what I get. Instead of passing env as part of the command, I think you can add this to your .emacs. (setenv WINEPREFIX /home/AW/.wine-office) You can also do M-x setenv to set environment variables. I found out, that things are much more complicated: I wrote a bash script word.sh (see my other mail on this) and tried to figure out how to pass a filename to it. Even this is not obvious, because from the viewpoint of Word under Wine filenames differ from the real filename in the system. I did not suceed to make Word start and open a file foo.docx. You know, something weird as word.sh C:/users/AW/Meine Dokumente/Dokumente/temp/foo.docx made Word start, but not open a document, and Word complains about missing dot something. And often people send files with names which are a pain to read, including $ -signs, brackets and whatever. The whole thing is way too difficult for me and I have to dismiss the idea. Thanks to you and everyone who offered help, but it was not a good idea. Regards, Alexander
[O] Set org-file-apps to open a *.doc file under linux with Word ?
Hi! I'm using orgmode as a replacement for folders, you know, real folders, lots of paper inside. In my orgfiles I link to many other files, mostly *.tex and *.pdf, links look like [[./foo.pdf][About foo]] Sometimes I can't avoid to link to doc or docx files. So I need my linux pc to start word and load a certain file. I'd like to link to *.doc files in the same way: [[./bar.doc][About that draft]] But how can I set org-file-apps to open a *.doc file with MS Word under Linux? Word works, more or less. To start word the command is: env WINEPREFIX=/home/AW/.wine-office wine C:\windows\command\start.exe /Unix /home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk But how in the world can I put in my .emacs file? I tried: (add-to-list 'org-file-apps '(\\.doc . \env WINEPREFIX=/home/AW/.wine-office wine C:/windows/command/start.exe /Unix /home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk\ %s)) But I get: Invalid read syntax: . in wrong context Any suggestions would be welcome! Regards, Alexander
Re: [O] Orgtbl, Radiotables: :booktabs t
Push?! Am Dienstag, 26. November 2013, 11:15:21 schrieb AW: \documentclass[parskip=half]{scrartcl} \usepackage{booktabs, verbatim} \begin{document} Hello! Once in a while I need a radiotable inside my LaTeX file and I'm asking to implement a parameter for the use of booktabs. This is an example I picked from the manual of orgmode and added \verb|\toprule|, \verb|\bottomrule|, :booktabs t and some other details. This is the tabular in \LaTeX: \begin{tabular}{lrrr}\toprule Month \multicolumn{1}{c}{Days} Nr.\ sold per day\\\midrule % BEGIN RECEIVE ORGTBL salesfigures Jan 23 55 2.4 \\ Feb 21 16 0.8 \\ March 22 278 12.6 \\ \hline S: 66 \\ % END RECEIVE ORGTBL salesfigures \bottomrule \end{tabular} And here comes the source: \begin{verbatim} #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2 :booktabs t | Month | Days | Nr sold | per day | | |---+--+-+-| | | Jan | 23 | 55 | 2.4 | | Feb | 21 | 16 | 0.8 | | March | 22 | 278 |12.6 | | |---+--+-+-| | | S:| 66 | | | #+TBLFM: $4=$3/$2;%.1f::@5$2=vsum(@I..II) \end{verbatim} The parameter :booktabs t would be new. To what end? You see, my table uses the booktabs package and I can, as displayed above, use \verb|\toprule| and \verb|\bottomrule| in the spliced tabular. But inside the tabular, all horizontal lines become hline(s), which is, well, not ugly, but disturbing. Instead of each hline a midrule is needed. You can take this email and compile it with pdflatex. You'll see, that some space is missing between the ``S:'' and the hline. So would it be possible to implement the parameter :booktabs t without much trouble? Kind regards, Alexander \end{document}
[O] Orgtbl, Radiotables: :booktabs t
\documentclass[parskip=half]{scrartcl} \usepackage{booktabs, verbatim} \begin{document} Hello! Once in a while I need a radiotable inside my LaTeX file and I'm asking to implement a parameter for the use of booktabs. This is an example I picked from the manual of orgmode and added \verb|\toprule|, \verb|\bottomrule|, :booktabs t and some other details. This is the tabular in \LaTeX: \begin{tabular}{lrrr}\toprule Month \multicolumn{1}{c}{Days} Nr.\ sold per day\\\midrule % BEGIN RECEIVE ORGTBL salesfigures Jan 23 55 2.4 \\ Feb 21 16 0.8 \\ March 22 278 12.6 \\ \hline S: 66 \\ % END RECEIVE ORGTBL salesfigures \bottomrule \end{tabular} And here comes the source: \begin{verbatim} #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2 :booktabs t | Month | Days | Nr sold | per day | |---+--+-+-| | Jan | 23 | 55 | 2.4 | | Feb | 21 | 16 | 0.8 | | March | 22 | 278 |12.6 | |---+--+-+-| | S:| 66 | | | #+TBLFM: $4=$3/$2;%.1f::@5$2=vsum(@I..II) \end{verbatim} The parameter :booktabs t would be new. To what end? You see, my table uses the booktabs package and I can, as displayed above, use \verb|\toprule| and \verb|\bottomrule| in the spliced tabular. But inside the tabular, all horizontal lines become hline(s), which is, well, not ugly, but disturbing. Instead of each hline a midrule is needed. You can take this email and compile it with pdflatex. You'll see, that some space is missing between the ``S:'' and the hline. So would it be possible to implement the parameter :booktabs t without much trouble? Kind regards, Alexander \end{document}
Re: [O] AUCTeX key bindings within Org documents
Am Freitag, 27. September 2013, 13:21:40 schrieb Fabrice Fabrice Niessen: Hello, Due to a friend's request, I've tried to offer AUCTeX key bindings within Org documents via a minor mode, called org-auctex-keys. If you're interested, check it out at https://github.com/fniessen/org-auctex-key-bindings. Note that I'm willing to add extra AUCTeX keys -- but I don't use AUCTeX enough to know what's important to transfer to Org. Best regards, Fabrice Wonderfull idea, thank you very much. How can I get it switched on in every org-buffer automagically? Regards, Alexander
[O] minor mode recentf: show only *.tex and *.org files?!
Hi! I'm using the minor mode recentf to get a list of recently opened files. But the list is cluttered with files like *.out, *.log and whatever. Can somebody drop me two or three lines, which I can put into my .emacs file to make recentf only show *.org and *.tex files? Thank you, Regards, Alexander
Re: [O] minor mode recentf: show only *.tex and *.org files?!
Am Dienstag, 25. Juni 2013, 12:34:12 schrieb Nicolas Nicolas Richard: AW alexander.will...@t-online.de writes: I'm using the minor mode recentf to get a list of recently opened files. But the list is cluttered with files like *.out, *.log and whatever. Variable recentf-exclude is the answer. I have this : (setq recentf-exclude '( /.emacs.bmk$ \\.ido.last$ ; ido mode (emacs) session\\.[a-f0-9]*$ ; emacs ~$ ; emacs (and others) backup \\.log$ ; LaTeX \\.pdfsync$ ; LaTeX \\.toc ; LaTeX \\.aux$ ; LaTeX /Dropbox/ ; avoid opening dropbox files, there is probably a local mirror bssm2011-dropbox ; symbolic link to dropbox /COMMIT_EDITMSG$ /tmp/ .el.gz$ )) but obviously you want to adjust that to your situation. If you really only want org and tex files, you should ignore anything that doesn't end in org or tex, i.e. (setq recentf-exclude '( ; if filename... [^gx]$ ; doesn't end in gx [^e]x$ ; or ends in x but not ex [^r]g$ ; or ends in g but not rg [^t]ex$; or ends in ex but not tex [^o]rg$ ; or ends in rg but not org )) ; ...then exclude N. Thank you very much. Your way to exclude only some disturbing files seems much better to me. But I fail to exclude in Emacs 24.3 under Windows 7 lines in recentf like this: c:/Users/aw/AppData/Local/Temp/diary1234ABc The filename is always diary + 4 digits + letters (2-4 letters) So I wrote: (setq recentf-exclude '( /diary[0-9]\{4\}[a-zA-Z]\{2,4\}$ )) but without success, all the lines of my temp-diaries still appear in recentf. Probably I should start the regex with something different than /, but I tried everything I could think of, e.g. \\, c:/Users/aw/AppData/Local/Temp/, without $ at the end... As I'm running out of ideas, maybe you could give me a hint again. Regards, Alexander
Re: [O] minor mode recentf: show only *.tex and *.org files?!
Am Dienstag, 25. Juni 2013, 14:39:50 schrieb Nicolas Richard: Le 25/06/2013 14:30, AW a écrit : (setq recentf-exclude '( /diary[0-9]\{4\}[a-zA-Z]\{2,4\}$ )) You have to double the backslashes. Reason is that when lisp reads the string, it translates it into /diary[0-9]{4}[a-zA-Z]{2,4}$ which is not the regexp you want. I get lots of lines like c:/Users/aw/AppData/Local/Temp/diary1234ABc , despite duplication of backlashes. Hm. Tried with leading / and without, same result. So I inserted a whole filename including path instead of an regex and this failed as well. It seems the whole recentf-exclude does not work, at least under windows 7. I created a testfile Test.org and tried to exclude it in various ways, but without success. Dammit. Can it be the leading /? However, thank you for your very appreciated help! Regards, Alexander
Re: [O] minor mode recentf: show only *.tex and *.org files?!
Am Dienstag, 25. Juni 2013, 14:39:50 schrieb Nicolas Nicolas Richard: Le 25/06/2013 14:30, AW a écrit : (setq recentf-exclude '( /diary[0-9]\{4\}[a-zA-Z]\{2,4\}$ )) You have to double the backslashes. Reason is that when lisp reads the string, it translates it into /diary[0-9]{4}[a-zA-Z]{2,4}$ which is not the regexp you want. Maybe the description of the variable recentf-exclude should be amended: The variable recentf-exclude has to be set before your require recentf. When I put my setting before (require 'recentf), it works! Regards, Alexander
Re: [O] Bug in export orgtbl / LaTeX
Am Dienstag, 18. Juni 2013, 22:12:03 schrieb Nicolas Goaziou: Take 2. We can implement back :splice property. The others are much less useful. (defun orgtbl-to-latex (table params) Convert the orgtbl-mode TABLE to LaTeX. TABLE is a list, each entry either the symbol `hline' for a horizontal separator line, or a list of fields for that line. PARAMS is a property list of parameters that can influence the conversion. Currently this function recognizes the following parameters: :spliceWhen set to t, return only table body lines, don't wrap them into a \tabular\ environment. Default is nil. (require 'ox-latex) (let ((table-string (orgtbl-to-orgtbl table nil))) (if (not (plist-get params :splice)) (org-export-string-as table-string 'latex t '(:with-tables t)) ;; If :splice is non-nil, we create a temporary back-end, ;; `latex-tmp', derived from `latex', but with a transparent ;; table translator. (let ((org-export-registered-backends org-export-registered-backends)) (org-export-define-derived-backend 'latex-tmp 'latex :translate-alist (list (cons 'table (lambda (e c i) c (org-export-string-as table-string 'latex-tmp t '(:with-tables t)) WDYT? WDIT? Let's be carefull, maybe I got it the wrong way: I put your take 2 from (defun ... until t)) into my .emacs (somewhere) and restarted Emacs. Result: If I C-c C-c on the orgtbl from my example, the output still is full of \begin{enumerate} \item installment \end{enumerate} So there is something wrong. But if I put your code into scratch and press C-M-x, change to the buffer with the *.tex-file and repeat C-c C-c on the orgtbl, it works properly. I can live with that way. So WDIT: thank you very much! Regards, Alexander
Re: [O] Bug in export orgtbl / LaTeX
Am Freitag, 14. Juni 2013, 18:58:06 schrieb Nicolas Nicolas Goaziou: Hello, ... Hi! If I try to use orgtbl-mode in this file and export the orgtbl block inside the comment environment to the RECEIVE ORGTBL area, the LaTeX-file will not compile, because the numbering in the org-table is exported as \begin{enumerate} \item installment \end{enumerate} I'd say that inside tabulars numbers like 1. should not be considered as a part of a numbered list. ... `orgtbl-to-latex' doesn't use export framework at all, unlike to `orgtbl-to-html'. One solution would be to change that: (defun orgtbl-to-latex (table params) Convert the orgtbl-mode TABLE to LaTeX. TABLE is a list, each entry either the symbol `hline' for a horizontal separator line, or a list of fields for that line. PARAMS is ignored. (require 'ox-latex) (org-export-string-as (orgtbl-to-orgtbl table nil) 'latex t '(:with-tables t))) However, we lose all PARAMS configuration (:splice t in particular). Note that, according to Org syntax, 1. doesn't start a list, since tables cannot contain lists. Regards, Dear Nicolas, isn't that quite a contradiction: according to org-syntax tables can not contain lists, but orgtbl-to-latex treats 1. inside a table as if it were a beginning of a list? Besides that, thank you for your code, but as my MEW showed, I use things like :splice t . In fact, I do splice nearly every orgtbl into a frame on the LaTeX-side. I have no idea, what to do, only thing I can say is that I use org-tables to draft contracts including paing by instalments, e.g. in dependence to progress of contstruction works. So things like 1. Instalment happen. Kind regards, Alexander
Re: [O] Bug in export orgtbl / LaTeX
Push?! Hi! If I try to use orgtbl-mode in this file and export the orgtbl block inside the comment environment to the RECEIVE ORGTBL area, the LaTeX-file will not compile, because the numbering in the org-table is exported as \begin{enumerate} \item installment \end{enumerate} I'd say that inside tabulars numbers like 1. should not be considered as a part of a numbered list. Regards, Alexander === \documentclass[ngerman]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel, comment} \begin{document} \begin{center} \begin{tabular}{lrrr} Rate Fälligkeit {Betrag (netto) EUR} Umsatzst. \\ % BEGIN RECEIVE ORGTBL Zahlungsraten % END RECEIVE ORGTBL Zahlungsraten \end{tabular} \end{center} \begin{comment} #+ORGTBL: SEND Zahlungsraten orgtbl-to-latex :splice t :skip 1 |+-+--+--| | | 1. installment | Vertragsschluss | 0,00 | zuzügl. USt. | | 2. installment | Begin 1 | ,00 | zuzügl. USt. | | 3. installment | Begin 2 | ,00 | zuzügl. USt. | | 4. installment | Abschluss 1 | ,00 | zuzügl. USt. | | 5. installment | Abschluss 2 | 000,00 | zuzügl. USt. | | 6. installment | Inbetriebnahme | 000,00 | zuzügl. USt. | | |+-+--+--| | | Summe: | | 0.00 | zuzügl. USt. | #+TBLFM: @7$3=vsum(@I..@II);%.2f #$ \end{comment} \end{document} ==
Re: [O] Bug in export orgtbl / LaTeX
Am Donnerstag, 13. Juni 2013, 13:29:01 schrieb Nick Nick Dokos: AW alexander.will...@t-online.de writes: Push?! With infinite force? But you are probably pushing against an immovable wall :-) Hi! If I try to use orgtbl-mode in this file and export the orgtbl block inside the comment environment to the RECEIVE ORGTBL area, the LaTeX-file will not compile, because the numbering in the org-table is exported as \begin{enumerate} \item installment \end{enumerate} I'd say that inside tabulars numbers like 1. should not be considered as a part of a numbered list. Things like this would make the syntax complicated and unpredictable (there is an old romantic comedy about tourists going on a bus tour of Europe, entitled If this is Tuesday, this must be Belgium - that's what popped into my head when I read your suggestion :-) Nicolas has the last word of course, but if I were a betting man, I'd bet that you won't get your wish. However, thank you for answering!
[O] Bug in export orgtbl / LaTeX
Hi! If I try to use orgtbl-mode in this file and export the orgtbl block inside the comment environment to the RECEIVE ORGTBL area, the LaTeX-file will not compile, because the numbering in the org-table is exported as \begin{enumerate} \item installment \end{enumerate} I'd say that inside tabulars numbers like 1. should not be considered as a part of a numbered list. Regards, Alexander === \documentclass[ngerman]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel, comment} \begin{document} \begin{center} \begin{tabular}{lrrr} Rate Fälligkeit {Betrag (netto) EUR} Umsatzst. \\ % BEGIN RECEIVE ORGTBL Zahlungsraten % END RECEIVE ORGTBL Zahlungsraten \end{tabular} \end{center} \begin{comment} #+ORGTBL: SEND Zahlungsraten orgtbl-to-latex :splice t :skip 1 |+-+--+--| | 1. installment | Vertragsschluss | 0,00 | zuzügl. USt. | | 2. installment | Begin 1 | ,00 | zuzügl. USt. | | 3. installment | Begin 2 | ,00 | zuzügl. USt. | | 4. installment | Abschluss 1 | ,00 | zuzügl. USt. | | 5. installment | Abschluss 2 | 000,00 | zuzügl. USt. | | 6. installment | Inbetriebnahme | 000,00 | zuzügl. USt. | |+-+--+--| | Summe: | | 0.00 | zuzügl. USt. | #+TBLFM: @7$3=vsum(@I..@II);%.2f #$ \end{comment} \end{document} ==
[O] icalendar-import-file into org
Hi! I'd like to have an external calendar file displayed in org and was very glad to find a hint in the manual. The name of the external calendar file is office.ics. So I wrote into my .emacs-file: (icalendar-import-file office.ics Diary) (setq org-agenda-include-diary t) As you can imagine, that caused an import of office.ics _every_ time I started Emacs. So I ended with a huge calendar file full of (no, not stars)[1] repetitions of office.ics. The trouble obviously is the import into Diary. If I could write (setq org-agenda-include office.ics t) -- but as I'm not a programmer, I do not know how to do that. If someone had a helping hand, I'd be glad, Regards, Alexander [1] My God—it's full of stars! -- do you remember ?
Re: [O] icalendar-import-file into org
Am Dienstag, 4. Juni 2013, 09:07:18 schrieb Nick Nick Dokos: AW alexander.will...@t-online.de writes: I'd like to have an external calendar file displayed in org and was very glad to find a hint in the manual. The name of the external calendar file is office.ics. So I wrote into my .emacs-file: (icalendar-import-file office.ics Diary) (setq org-agenda-include-diary t) As you can imagine, that caused an import of office.ics _every_ time I started Emacs. So I ended with a huge calendar file full of (no, not stars)[1] repetitions of office.ics. You can import the ics file into some temporary diary and delete the temporary diary upon exit from emacs: --8---cut here---start-8--- (setq tmp-diary (make-temp-file diary)) (icalendar-import-file /path/to/office.ics tmp-diary) ;; make it the default... (setq diary-file tmp-diary) ;; so that org-agenda can find it (setq org-agenda-include-diary t) ;; delete the tmp diary on exit (add-to-list 'kill-emacs-hook (function (lambda () (delete-file tmp-diary --8---cut here---end---8--- That assumes that you don't have any other diary files that you are interested in including. If you do, the basic idea will still work but will require more fiddling. Untested. Hi Nick, thank you for these lines. I realised that I've got a bug in one of my .emacs- files, but I have to dig where: in Windows or Linux. However, both installations of Emacs should format the date exactly the same way. I will report when back on the surface, Regards, Alexander
[O] Move marked text into environment
Dear list, would someone help me, being not a programmer, to achieve this: I get Emails, copy them into an org-file and would like to write down comments on single sentences or paragraphs of the text. I'd like to mark some text in the copied text of the Email inside the org-file and get #+BEGIN_QUOTE and END_QUOTE around the marked region. I know that I can get the environment #+BEGIN / #+END_QUOTE with q, but that leaves it to me to transfer the text into this environment. Orgmode 8.0.1, Emacs 24.3 Thank you in advance! Alexander
Re: [O] Move marked text into environment
Am Dienstag, 28. Mai 2013, 18:06:54 schrieb Thorsten Jolitz: Thorsten Jolitz tjol...@gmail.com writes: PS There was one wrong paren, better use this one instead: ,--- | (defun org-wrap-region-in-quote-block () | | Wrap region in quote block | (interactive) | (save-excursion | | (save-restriction | | (and | |(region-active-p) |(use-region-p) |(narrow-to-region (region-beginning) (region-end))) |(goto-char (point-min)) |(insert #+BEGIN_QUOTE\n) |(goto-char (point-max)) |(insert #+END_QUOTE\n) |(deactivate-mark `--- Thank you very much! Works perfectly. Cheerio, Alexander
Re: [O] Using org to create a TOC for a compilation of separate PDF documents
Am Donnerstag, 23. Mai 2013, 23:48:03 schrieb Marcin Borkowski: Dnia 2013-05-23, o godz. 15:21:56 John Hendy jw.he...@gmail.com napisał(a): I have a use case and am not sure if Org would help or not. I've downloaded a bunch of technical data sheets on various materials from a vendor. I'd like to create a booklet of them with a cover page table of contents. I can create the booklet very easily with Stapler (or similar), but am not sure on the best way to generate a clickable linked PDF of the individual materials contained in the compiled document.[1] What I'm not sure on is how to create a table of contents. Ideally, I could do something like generate a page count of each document and then use this to create the page numbers I'd use to create links to, which I thought I could do with Org. Even better would be to have [back to top] links as well, since this will end up being a multi-hundred page booklet (~100 documents of 2-4 pages each). Any thoughts on this? Is it easier to just generate a list of files and use Org to include them somehow via LaTeX instead of using Stapler to combine them? I'd just use LaTeX's pdfpages package, possibly with hyperref. (If you encounter any problems, email me - I've done similar things before, so I guess I could help you.) You don't have to do that manually. Some time ago members of the German TEX-D- List put together a bash script, which takes all the PDFs recursivly and creates a *.tex file: #+begin_src bash #!/bin/bash # # pdfdir OUTPUT_FILE # # produces one big PDF file of all PDF files in . # if [ $# -ne 1 ] || [ -z $1 ]; then echo Syntax: pdfdir OUTPUT_FILE exit 1 fi FILE=$(echo $1|sed -e 's/\.\(pdf\|tex\)$//') for F in $FILE $FILE.tex $FILE.pdf $FILE.aux $FILE.log ; do if [ -e $F ]; then echo $F already exists. exit 2 fi done cat $FILE.tex EOF \documentclass{article}% \usepackage{pdfpages}% \usepackage{grffile}% \listfiles% \begin{document}% %\tableofcontents% EOF # Helperfunction exist_pdf_files () { [ $(find -L $1 -name \*.pdf -o -name \*.PDF -type f 2/dev/null|wc -l) -eq 0 ] return 1 return 0 } list_directories () { find -L $1 -maxdepth 1 -mindepth 1 -type d 2/dev/null | sort } list_pdf_files () { # around filenames: find -L $1 -maxdepth 1 -mindepth 1 -name \*.pdf -o -name \*.PDF -type f 2/dev/null | sort | \ sed -e 's/^/\\includepdf[pages=-]{/; s/$/}%/' # without around filenames: # find -L $1 -maxdepth 1 -mindepth 1 -name \*.pdf -o -name \*.PDF -type f 2/dev/null | sort | \ # sed -e 's/^/\\includepdf[pages=-]{/; s/$/}%/' } tex_headline () { echo $1 | sed -e 's/_/\\_/g' } # folder level were we are (level 0): list_pdf_files . $FILE.tex # level 1: list_directories . | while read -r DIR1; do # Are there PDF files a level down? exist_pdf_files $DIR1 || continue # Yes... tex_headline \section{${DIR1##*/}}% # ... those are ...: list_pdf_files $DIR1 # Level 2: list_directories $DIR1 | while read -r DIR2; do exist_pdf_files $DIR2 || continue tex_headline \subsection{${DIR2##*/}}% list_pdf_files $DIR2 # Level 3: list_directories $DIR2 | while read -r DIR3; do exist_pdf_files $DIR3 || continue tex_headline \subsubsection{${DIR3##*/}}% list_pdf_files $DIR3 # Level 4: list_directories $DIR3 | while read -r DIR4; do exist_pdf_files $DIR4 || continue tex_headline \paragraph{${DIR4##*/}}% list_pdf_files $DIR4 # Level 5: list_directories $DIR4 | while read -r DIR5; do exist_pdf_files $DIR5 || continue tex_headline \subparagraph{${DIR5##*/}}% list_pdf_files $DIR5 done done done done done $FILE.tex echo \end{document}% $FILE.tex echo Compile source now? [J/n] read -r ANSWER case $ANSWER in [JjYy]) ;; *) exit 0 ;; esac pdflatex $FILE [ $? -eq 0 ] rm -f $FILE.aux $FILE.log $FILE.tex #+end_src I found that very helpfull, but I did not use it recently. Regards, Alexander Thanks for any suggestions! John Best, book-from-PDF.sh Description: application/shellscript
Re: [O] org-outlook with Outlook 2010 on Windows 7
Am Donnerstag, 4. April 2013, 14:59:55 schrieb Per Per Kulseth Dahl: Hello, I have been trying to get org-outlook to work without any success. I am running Windows 7 and Outlook 2010. Yes, I wish didn't have to. I have put the VBA code generated by org-outlook-generate-vba into Outlook and then I changed the org-outlook-location to c:/Program Files (x86)/Microsoft Office/Office14/OUTLOOK.EXE in org-outlook.el. I didn't seem to work when I tried to change it through customize-group. I apparently get a link into an org document, but when click this link I get ShellExecute failed: w32 error 2147749890. Hi Per, did you get this solved? I'm interested, I get the same error after my PC at the office has been migrated to Outlook 2010 (Emacs 24.2, org-mode 7.9.4, Windows 7). Regards, Alexander I have set up org-protocol according to the Org Manual (http://orgmode.org/worg/org-contrib/org-protocol.html). I later came across this setup: http://denihow.com/can-i-create-a-link-to-a-specific-email-message-in-outloo k/ Which seems much simpler and looks to be sufficient for what I want, but this doesn't work either. It seems there is a problem with Dim doClipboard As New DataObject I have tried to search for help on VBA, that I have no prior experience with, for a clue as for what the problem is, but that has so far been a very frustrating experience. I am therefore hoping someone here has a working setup with Outlook 2010 and could point me in the right direction. I doesn't have to be with org-outlook, I just want have working links to Outlook messages in my org files. -- Cheers, Per
Re: [O] org-outlook with Outlook 2010 on Windows 7
Am Montag, 15. April 2013, 13:57:37 schrieb AW AW: Am Donnerstag, 4. April 2013, 14:59:55 schrieb Per Per Kulseth Dahl: Hello, I have been trying to get org-outlook to work without any success. I am running Windows 7 and Outlook 2010. Yes, I wish didn't have to. I have put the VBA code generated by org-outlook-generate-vba into Outlook and then I changed the org-outlook-location to c:/Program Files (x86)/Microsoft Office/Office14/OUTLOOK.EXE in org-outlook.el. I didn't seem to work when I tried to change it through customize-group. I apparently get a link into an org document, but when click this link I get ShellExecute failed: w32 error 2147749890. Hi Per, did you get this solved? I'm interested, I get the same error after my PC at the office has been migrated to Outlook 2010 (Emacs 24.2, org-mode 7.9.4, Windows 7). Regards, Alexander OK, it was not that difficult. There seem to be many solutions. I'm satisfied with a simple one, discussed here: http://superuser.com/questions/71786/can-i-create-a-link-to-a-specific-email-message-in-outlook It was sufficient to change a line to meet the demands of the new outlook version: (w32-shell-execute open Path/to/OUTLOOK.EXE (concat /select outlook: id) -- stolen from a comment there.
[O] Open PDF under Windows on specific page using PDF-XChange Viewer
Dear all, under Windows 7, Emacs 24.2 and orgmode 7.9.4 I would like to have a hyperlink to an external pdf. The pdf should be opened by a software called PDVXchange viewer /at a certain page/. The command on the command line in windows is: PDFXCview /A page=10 filename.pdf This works on the command line: The pdf is opened on page 10. But how do I implement that in orgmode? Which lines to add to my .emacs file? I found an example for evince here: http://emacswiki.org/emacs/OrgMode #+begin_source lisp (delete '(\\.pdf\\' . default) org-file-apps) (add-to-list 'org-file-apps '(\\.pdf::\\([0-9]+\\)\\' . evince \%s\ -p %1)) #+end_source I tried in vain to adapt it: #+begin_source lisp (delete '(\\.pdf\\' . default) org-file-apps) (add-to-list 'org-file-apps '(\\.pdf::\\([0-9]+\\)\\' . PDFXCview /A 'page'=%1 \%s\ )) #+end_source The hyperlink in org looks like this: [[file:filename.pdf::10][link to my file]] Could anybody provide a working solution? Emacs simply not reacts with my adaption. Thank you! Alexander
Re: [O] latex export of org-mode: verbatim block in a figure
Am Donnerstag, 14. März 2013, 15:33:50 schrieb Rob Stewart: What I would like to do is simple: wrap a verbatim code block within a Figure, so that I can refer to it elsewhere in my org-mode file. How is this achieved? A naive solution, which does not work, looks like: #+CAPTION:My caption #+LABEL: fig:my-api #+ATTR_LaTeX: width=130mm,height=30mm #+BEGIN_SRC haskell foo :: Int - String bar :: String - Int #+END_SRC How would I achieve this? -- Rob There are some things I don't quite understand: Would you like to export to LaTeX, or would you simply like to have a target to refer to in an orgmode file? And why have a figure, instead of -- in LaTeX terminology -- a listing?
Re: [O] Feature: Group and limit items in agenda
For me this is enough. However, I wonder whether this could be useful for others. The proposed feature is a general group by and limit: - In agenda view, you are able to group todo or agendas with a certain criterion (category, tags..) - You are able to restrict the items shown in this group. Optionally, some special todo states could be unlimited. For example, I only want to limit the number of TODO tasks, while seeing all the DONE tasks. For others, maybe they want to see all the NEXT tasks, but limiting the number of TODO tasks. I wonder how many people would be interested in this feature. Otherwise it would just be a waste of time to generalize my personal taste. This sounds like a good idea. I'd love to group my different tasks in the agenda, instead of getting them sorted by due dates. Regards, Alexander
Re: [O] Org/LaTex setup for Business Letter Revisited
Am Montag, 24. Dezember 2012, 09:42:08 schrieb Ian Barton: I have been following the various threads about using the scrlttr2 class. However, none of them quite worked for me. I have come up with the following hack using Babel. There are three files attached which illustrates the general principles. Ian, this is really of interest to me, but I don't quite get it. * koma variables which don't change are defined in an LCO file. So this is the usual LCO file, in a place where kpathsea will find it, namely at ~/texmf/tex/latex/ -- right? * koma variables (toaddress, etc) which change between letters are defined using org PROPERTIES. * a letter template in defined in a latex src block. But what is the sense of having a LaTeX scr block? I'd like to outsource this somewhere as a template. Or is it necessary in each file including a letter? * The letter body is written in an org_mode src block. * The final letter is produced by tangling the body, the lco file and the letter template. tangling -- could you elaborate, please? In normal use you would simply modify the PROPERTIES and body text to suit each letter. The whole thing can probably be made into a yasnippet. the whole thing? What has to be included in the snippet? Suggestions for improvement welcome, as the existing stuff is just a quick hack. Happy Christmas everyone and best wishes for the New Year. Yeah, and thanks to you for your time and effort, Alexander Ian.
Re: [O] scale inline images in orgmode
Am Donnerstag, 30. August 2012, 15:52:59 schrieb Bastien: Hi Alexander, AW alexander.will...@t-online.de writes: If I include an image in an *.org file, let's say [[large-image.jpg]], I can toggle the inline image with C-c C-x C-v . You can now (from git master) use `org-image-actual-width'. (setq org-image-actual-width 300) = always resize inline images to 300 pixels (setq org-image-actual-width '(400)) = if there is a #+ATTR.*: width=200, resize to 200, otherwise resize to 400 (setq org-image-actual-width nil) = if there is a #+ATTR.*: width=200, resize to 200, otherwise don't resize (setq org-image-actual-width t) = Never resize and use original width (the default) HTH, Hi Bastien, indeed, that helps a lot! Thank you very much. Kind regards, Alexander
[O] scale inline images in orgmode
Hi! If I include an image in an *.org file, let's say [[large-image.jpg]], I can toggle the inline image with C-c C-x C-v . I would like to scale the images on screen in the buffer, often I don't need a large picture, but just a reminder, what's on the picture. Is there a way to scale the image on screen, something like #+ATTR: scale=0.5 ? Regards, Alexander
Re: [O] comma as decimal point: bug?
Am Montag, 27. August 2012, 11:08:59 schrieb Rainer Thiel: ... As a user, I can say it would be an advantage when exporting org-files to LaTeX or ODT etc. Many thanks again and best wishes Rainer Exporting tables to LaTeX usually is not the last step, obviously you will compile the exported *.tex file into a *.pdf. Right? So stick to a dot as the decimal point in *.org and in *.tex, but use the numprint package to get a table in your *.pdf with commas as decimal points. We had that discussion here and William Henney gave an example in an email dated 22 April 2012. Regards, Alexander
[O] Bug (?): Indentation of lists and customized TODOs
Hi, I'm writing lots of plain lists (»unordered lists«). But the third line in one item is no longer indented, *if I customize the TODOs* by adding something like »#+TODO: TODO INPUT ASK MAYBE | CANCELLED DONE« . So how can I customize org-mode TODOs and keep the lists working? #+TODO: TODO INPUT ASK MAYBE | CANCELLED DONE * Überschrift Example: - This is the first line. - This is the second line and here I'm adding more and more text. It may be the description of something, let's say the summary of one of a chapter... You see? The third line is not indented like it should be. Thank you for your help, kind regards, Alexander
Re: [O] Bug (?): Indentation of lists and customized TODOs
Am Freitag, 13. Juli 2012, 12:34:19 schrieb Nicolas Goaziou: Hello, AW alexander.will...@t-online.de writes: #+TODO: TODO INPUT ASK MAYBE | CANCELLED DONE * berschrift Example: - This is the first line. - This is the second line and here I'm adding more and more text. It may be the description of something, let's say the summary of one of a chapter... You see? The third line is not indented like it should be. I cannot reproduce it. Are you using auto-fill-mode? YES. 'Should have mentioned, sorry. If so, what happens if you put of a chapter... on the same line as summary of one and use M-q? It get's intendet allright: - This is the second line and here I'm adding more and more text. It may be the description of something, let's say the summary of one of a chapter... Have you used RET instead of C-j? In that case, you can simply indent last line manually and resume editing your text. I have used neither of them. I just type the text, auto-fill should make line breaks, you are right. Auto-fill does, but beginning in the third line, something fails. Also, which Org version are you using? 7.8.11 Regards, Alexander
Re: [O] Bug (?): Indentation of lists and customized TODOs
Am Freitag, 13. Juli 2012, 14:34:45 schrieb Nicolas Goaziou: I have used neither of them. I just type the text, auto-fill should make line breaks, you are right. Auto-fill does, but beginning in the third line, something fails. Starting with emacs -Q, I still cannot reproduce your problem. Could you double-check your configuration? Yes, I did. When I start Emacs by emacs -Q and switch scratch to org-mode, I can switch on auto-fill as well and it all works like expected. But if I start with my configuration in .emacs, I get a minor mode Ind, which seems to be from org-indent.el. My .emacs starts this, but I failed to find in which line. So Ind and auto-fill-mode together lead to this strange behaviour of lists. If I turn off Ind, everything is well. But where to turn off? Thanks again for your help, Alexander
Re: [O] Bug (?): Indentation of lists and customized TODOs
Am Freitag, 13. Juli 2012, 15:07:16 schrieb AW: Am Freitag, 13. Juli 2012, 14:34:45 schrieb Nicolas Goaziou: I have used neither of them. I just type the text, auto-fill should make line breaks, you are right. Auto-fill does, but beginning in the third line, something fails. Starting with emacs -Q, I still cannot reproduce your problem. Could you double-check your configuration? Yes, I did. When I start Emacs by emacs -Q and switch scratch to org-mode, I can switch on auto-fill as well and it all works like expected. But if I start with my configuration in .emacs, I get a minor mode Ind, which seems to be from org-indent.el. My .emacs starts this, but I failed to find in which line. So Ind and auto-fill-mode together lead to this strange behaviour of lists. If I turn off Ind, everything is well. But where to turn off? This is weird. There are some conditions more necessary to reproduce and I'm still testing. 1. »(setq org-startup-indented t)« does not trigger the wrong indentation. 2. I had this line in .emacs: »(setq-default auto-fill-function 'do-auto-fill)« and replaced it with this function: » (add-hook 'org-mode-hook (lambda () (auto-fill-mode 1))) « 3. The behaviour of lists seems to depend on which kind of text follows. As soon as I find out, I'll post the result. Regards, Alexander
Re: [O] HowTo: Letter template method using yasnippet
Am Samstag, 7. Juli 2012, 00:35:32 schrieb Nicolas Goaziou: Hello, Based on your work, I've put up the attached back-end: org-koma-letter.el. Quoting its documentation: You will need to add an appropriate association in `org-e-latex-classes' in order to use the KOMA Scrlttr2 class. For example, you can use the following code: (add-to-list 'org-e-latex-classes '(my-letter \\documentclass\[% DIV=14, fontsize=12pt, parskip=half, subject=titled, backaddress=false, fromalign=left, fromemail=true, fromphone=true\]\{scrlttr2\} \[DEFAULT-PACKAGES] \[PACKAGES] \[EXTRA] (\\section\{%s\} . \\section*\{%s\}) (\\subsection\{%s\} . \\subsection*\{%s\}) (\\subsubsection\{%s\} . \\subsubsection*\{%s\}))) Then, in your Org document, be sure to require the proper class with : #+LATEX_CLASS: my-letter In this back-end, headlines are ignored during export. --8---cut here---end---8--- This is very usefull, scrlttr2 is being used much. Thank you very much! To avoid misunderstandings: Letter classes do not support headlines out of the box, but the author of KOMAscript, Markus Kohm, offers files to customize scrlttr2, among those is »sections.lco«, see here: http://www.komascript.de/sections.lco This file adds headings from section down to paragraph, but does not support a table of contents. The counters have been adapted to a German lawyers needs, starting with A. (section), I. (subsections), 1. (subsubsection) and a) (paragraph), but this can be customized in sections.lco. So we can use headings in scrlttr2. As the page about sections.lco got nearly 10.000 hits during the last years, I guess many people use it for business letters including headlines. At least I do, which leads to my plea to amend org-koma-letter.el to export headlines. It's far from being complete. See it as a proof of concept. Feel free to upgrade it. Just in case someone has a rainy sunday as well . . . Regards, Alexander
Re: [O] HowTo: Letter template method using yasnippet
Am Sonntag, 8. Juli 2012, 15:34:33 schrieb Nicolas Goaziou: Hello, AW alexander.will...@t-online.de writes: At least I do, which leads to my plea to amend org-koma-letter.el to export headlines. Just remove the line: (headline . org-koma-letter-headline) in the file (and `org-koma-letter-headline' function if you want to) If you don't want to reload emacs in order to take changes into account, you'll have to: M-: (makunbound 'org-koma-letter-translate-alist) and eval buffer again. Thank you again! I'm gonna test during the next week and will report. Regards, Alexander
Re: [O] Format a whole column using ;%.2f in orgtbl?
Am Freitag, 15. Juni 2012, 19:01:35 schrieb Michael Brand: Hi Alexander On Fri, Jun 15, 2012 at 4:34 PM, AW alexander.will...@t-online.de wrote: [...] Desired outoput: | 100.00 | Value | | 150.00 | Value | #+TBLFM: $1=%s;%.2f [...] What you tried would be | 100.00 | Value | | 150.00 | Value | #+TBLFM: $1=$0;%.2f $0 is the current table field. What I recommend is | 100.00 | Value | | 150.00 | Value | #+TBLFM: $1 = $0 +.0; f-2 because of the behavior I explained in the tables shown here: http://orgmode.org/worg/org-faq.html#table-float-fraction Michael O.K., thank you very much for your help. This is a nice trick! Unfortunately, my tables have other formulas than only one: | Values | Desc. | |+---| | 100.00 | Value | | 150.00 | Value | | 250. | sum | |+---| | 500. | End | #+TBLFM: @4$1=@2$1+@3$1::@5$1=vsum(@I..@II)::$1=$0 +.0; f-2 I get at least every number in column 1 with a dot, but without .00, as needed: *Do I have to ad '; f-2' to every formula?* And besides that, I've never seen this description f-2. Is it explained somewhere for non-mathematicians? You know, if there are differences between this and ;%.2f, I should better be aware of them. Regards Alexander
Re: [O] Format a whole column using ;%.2f in orgtbl?
Hi Michael Thank you very much for your quick, qualified and satisfying answer! Alexander Hi Alexander On Thu, Jun 21, 2012 at 12:15 PM, AW alexander.will...@t-online.de wrote: | Values | Desc. | | |+---| | | 100.00 | Value | | 150.00 | Value | | | 250. | sum | | |+---| | | 500. | End | #+TBLFM: @4$1=@2$1+@3$1::@5$1=vsum(@I..@II)::$1=$0 +.0; f-2 I get at least every number in column 1 with a dot, but without .00, as needed: The ending dot is Calc syntax and means a float with fraction 0. *Do I have to ad '; f-2' to every formula?* Yes, else the Calc result is inserted without change. There is a formula debugger that shows the formatting steps nicely: C-c { The +.0 is necessary too to convert Calc integer to Calc float for some cases as shown in the example tables here: http://orgmode.org/worg/org-faq.html#table-float-fraction All together: #+TBLFM: @4$1=@2$1+@3$1 +.0; f-2::@5$1=vsum(@I..@II) +.0; f-2::$1=$0 +.0; f-2 This is what I recommend just in general and what I do always myself as a habit because it can deal also with higher precision or the case when those of the fields resulting in an empty string should remain empty instead of a 0.00. If you don't want to be prepared for all that, for your current example you can still use just #+TBLFM: @4$1=@2$1+@3$1;%.2f::@5$1=vsum(@I..@II);%.2f::$1=$0;%.2f And besides that, I've never seen this description f-2. Is it explained somewhere for non-mathematicians? For an explanation see the URLs to the Calc manual mentioned here http://orgmode.org/worg/org-faq.html#table-float-fraction after For f3 and f-3 see `d f' (`calc-fix-notation'). Michael
[O] Format a whole column using ;%.2f in orgtbl?
Hi, I'm using radiotables and would like to get all numbers of column 1 with two digits after the decimal separator. My example below leads to an error, but it may explain what I'd like to receive: Input: | 100 | Value | | 150 | Value | #+TBLFM: $1=%s;%.2f Desired outoput: | 100.00 | Value | | 150.00 | Value | #+TBLFM: $1=%s;%.2f I also tried to use :fmt (1 %s;%.2f) while exporting to LaTeX, but in vain. Regards, Alexander
[O] Typo in orgmode.org/worg/org-faq about inline tasks
To insert an inline task the keys _are_: C-c C-x t But the FAQ, Can I add a TODO to a list item? says, the keys were C-c C-x C-t The last key isn't C-t, but only t. The documentation in Emacs has it the right way. Regards, Alexander
Re: [O] radiotables in LaTeX-document: export numbers from orgtbl with commas as decimal separators instead of periods; with MWE and lisp-code
On wednesday, 18. April 2012, 13:00:25 wrote AW: Dear all, Sorry for this attempt to insist on something else than buriel in the digital mass grave of gnu.org for my question. Maybe someone could have a look at it, it would be very usefull to me and probably to others: A comma is the decimal separator for amounts in money in continental europe. Without replacement of periods with commas _while exporting to LaTeX_ you can not use radiotables for any kind of accounting. If my question lacks sense or has other shortcomings, please tell me. Thank you very much. Regards, Alexander I'd like to use radiotables inside a LaTeX-document. Here is a minimal working example: --- \documentclass[pagesize, ngerman, fontsize=12pt]{scrartcl} \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc} \usepackage{babel, comment, array, booktabs} \title{Sicherheitsbestellung} \subtitle{gag} \begin{document} \maketitle \begin{tabular}{p{0.25\linewidth}p{0.5\linewidth}}%\toprule Bezeichnung Betrag \\ % BEGIN RECEIVE ORGTBL Kaufpreis Kaufpreis 10.00 \\ Darlehen -5000.00 \\ Summe 95000.00 \\ % END RECEIVE ORGTBL Kaufpreis \bottomrule \end{tabular} \begin{comment} #+ORGTBL: SEND Kaufpreis orgtbl-to-latex :splice t :skip 0 | Kaufpreis | 10.00 | | Darlehen | -5000.00 | | Summe | 95000.00 | #+TBLFM: @3$2=@1$2+@2$2;%.2f \end{comment} \end{document} --- I would like to have the LaTeX table with commas as decimal separators instead of periods, e.g.: »Kaufpreis 10,00\\« or even better »Kaufpreis 100\,000,00\\«. To avoid misunderstandigs: The change of all periods to commas should take place when the org-table is »transfered« to the LaTeX table, not earlier! I found a suggestion by Carsten Dominik here: http://permalink.gmane.org/gmane.emacs.orgmode/42000 --- (add-hook 'org-export-preprocess-hook 'org-use-comma-in-exported-tables) (defun org-use-comma-in-exported-tables () (goto-char (point-min)) (while (re-search-forward \\([0-9]\\)\\.\\([0-9]\\) nil t) (org-if-unprotected (when (save-match-data (org-at-table-p)) (replace-match \\1,\\2 t nil) --- I put that into my .emacs, restarted Emacs, but no result. I'm using Emacs 23.3 and Org-mode version 7.8.02. Please bear in mind that I'm may have made strange mistake, because I do neither have experience with radiotables nor understand lisp. Any help would be appreciated, thanks in advance. Kind regards, Alexander
[O] Bug in orgtbl export to LaTeX
Dear all, I guess I found a bug in the export function of orgtbl to LaTeX: The percentage sign (%) is not masked, it simply is transfered to LaTeX and thus destroys the table. Example below, beware, you will get an error, because of the said bug. For readers who are not familiar with LaTeX: % is the comment sign, after % LaTeX does not compile anything in this line. Here in the example the end of the current row is marked with \\, but due to the % LaTeX can not find any eol. Can the export function be amended? Any % inside the table (!) needs to be exported as \%. --- \documentclass[pagesize, fontsize=12pt, english]{scrartcl} \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc} \usepackage{babel, comment} \begin{document} \begin{tabular}{lr} % BEGIN RECEIVE ORGTBL percent \begin{tabular}{lr} Name Percent \\ Peter 75% \\ Paul 25% \\ Sum 1. \\ \end{tabular} % END RECEIVE ORGTBL percent \end{tabular} \begin{comment} #+ORGTBL: SEND percent orgtbl-to-latex :splice nil :skip 0 | Name | Percent | | Peter | 75% | | Paul | 25% | | Sum | 1. | #+TBLFM: @4$2=@-2+@-1 % $ \end{comment} \end{document} -- Org-version: 7.8.09 Regards, Alexander
Re: [O] radiotables in LaTeX-document: export numbers from orgtbl with commas as decimal separators instead of periods; with MWE and lisp-code = SOLVED
There is an easy solution on the LaTeX side: we simply have to use the package »numprint« and to wrap every number of the second column with »\numprint{number}«, then it will be printed in a suitable way. We get this by adding to the #+ORGTBL - line this code: :fmt (2 \\numprint{%s} EUR) So the whole line looks like this: #+ORGTBL: SEND anteile orgtbl-to-latex :splice t :skip 1 :fmt (2 \\numprint{%s} EUR) Sorry for the noise. Regards, Alexander Dear all, I'd like to use radiotables inside a LaTeX-document. Here is a minimal working example: --- \documentclass[pagesize, ngerman, fontsize=12pt]{scrartcl} \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc} \usepackage{babel, comment, array, booktabs} \title{Sicherheitsbestellung} \subtitle{gag} \begin{document} \maketitle \begin{tabular}{p{0.25\linewidth}p{0.5\linewidth}}%\toprule Bezeichnung Betrag \\ % BEGIN RECEIVE ORGTBL Kaufpreis Kaufpreis 10.00 \\ Darlehen -5000.00 \\ Summe 95000.00 \\ % END RECEIVE ORGTBL Kaufpreis \bottomrule \end{tabular} \begin{comment} #+ORGTBL: SEND Kaufpreis orgtbl-to-latex :splice t :skip 0 | Kaufpreis | 10.00 | | Darlehen | -5000.00 | | Summe | 95000.00 | #+TBLFM: @3$2=@1$2+@2$2;%.2f \end{comment} \end{document} --- I would like to have the LaTeX table with commas as decimal separators instead of periods, e.g.: »Kaufpreis 10,00\\« or even better »Kaufpreis 100\,000,00\\«. To avoid misunderstandigs: The change of all periods to commas should take place when the org-table is »transfered« to the LaTeX table, not earlier! I found a suggestion by Carsten Dominik here: http://permalink.gmane.org/gmane.emacs.orgmode/42000 --- (add-hook 'org-export-preprocess-hook 'org-use-comma-in-exported-tables) (defun org-use-comma-in-exported-tables () (goto-char (point-min)) (while (re-search-forward \\([0-9]\\)\\.\\([0-9]\\) nil t) (org-if-unprotected (when (save-match-data (org-at-table-p)) (replace-match \\1,\\2 t nil) --- I put that into my .emacs, restarted Emacs, but no result. I'm using Emacs 23.3 and Org-mode version 7.8.02. Please bear in mind that I'm may have made strange mistake, because I do neither have experience with radiotables nor understand lisp. Any help would be appreciated, thanks in advance. Kind regards, Alexander
[O] radiotables in LaTeX-document: export numbers from orgtbl with commas as decimal separators instead of periods; with MWE and lisp-code
Dear all, I'd like to use radiotables inside a LaTeX-document. Here is a minimal working example: --- \documentclass[pagesize, ngerman, fontsize=12pt]{scrartcl} \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc} \usepackage{babel, comment, array, booktabs} \title{Sicherheitsbestellung} \subtitle{gag} \begin{document} \maketitle \begin{tabular}{p{0.25\linewidth}p{0.5\linewidth}}%\toprule Bezeichnung Betrag \\ % BEGIN RECEIVE ORGTBL Kaufpreis Kaufpreis 10.00 \\ Darlehen -5000.00 \\ Summe 95000.00 \\ % END RECEIVE ORGTBL Kaufpreis \bottomrule \end{tabular} \begin{comment} #+ORGTBL: SEND Kaufpreis orgtbl-to-latex :splice t :skip 0 | Kaufpreis | 10.00 | | Darlehen | -5000.00 | | Summe | 95000.00 | #+TBLFM: @3$2=@1$2+@2$2;%.2f \end{comment} \end{document} --- I would like to have the LaTeX table with commas as decimal separators instead of periods, e.g.: »Kaufpreis 10,00\\« or even better »Kaufpreis 100\,000,00\\«. To avoid misunderstandigs: The change of all periods to commas should take place when the org-table is »transfered« to the LaTeX table, not earlier! I found a suggestion by Carsten Dominik here: http://permalink.gmane.org/gmane.emacs.orgmode/42000 --- (add-hook 'org-export-preprocess-hook 'org-use-comma-in-exported-tables) (defun org-use-comma-in-exported-tables () (goto-char (point-min)) (while (re-search-forward \\([0-9]\\)\\.\\([0-9]\\) nil t) (org-if-unprotected (when (save-match-data (org-at-table-p)) (replace-match \\1,\\2 t nil) --- I put that into my .emacs, restarted Emacs, but no result. I'm using Emacs 23.3 and Org-mode version 7.8.02. Please bear in mind that I'm may have made strange mistake, because I do neither have experience with radiotables nor understand lisp. Any help would be appreciated, thanks in advance. Kind regards, Alexander