Re: [O] trying to write a guidebook for students using org , need help with formating
Hi again all so i tried playing around with the latex options, read the Latex org manual part but still confused and i still get the lines cut. the one thing that did work was using this: begin{itemize} \item testing1 the long lines testing2 the long lines testing3 the long lines testing4 the long lines testing5 the long lines testing6 the long lines \item \item \item \item \end{itemize} but that seems very cumbersome, inserting it every time, writing the lines after the \items etc.. I am really content with using the org example method. is there no way to make the exporter to pdf (latex i guess) auto wrap lines? thx alot Z On Thu, Oct 24, 2013 at 5:53 PM, Xebar Saram zelt...@gmail.com wrote: Thank you all ill try the Latex list suggestion over the weekend as i have Zero Latex knowledge so ill try to dig into it a bit Best z. On Thu, Oct 24, 2013 at 1:43 PM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: Hello Xebar, On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote: Xebar Saram zelt...@gmail.com writes: Thanks again guys Rick: But a better approach would be to define your own latex list environment for program steps and use lists: ive never used latex, do you mind expanding on that a bit? Eric: I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long) this is how it looks in my pdf export: https://paste.xinu.at/sYsMVz/ Oh I see -- it's latex that cuts those lines off, not the org exporter. You'll probably want to go the list route then. See this link for how to create a custom list environment: http://www.troubleshooters.com/linux/lyx/ownlists.htm Then do this in org, replacing bogus with the name of your new environment: #+ATTR_LATEX: :environment bogus - this is a - list with some - items in it I guess you missed my response. I suggested this a couple of days back. Sadly I was in a hurry and could not provide precise instructions. You can achieve this using the enumitem package with the noitemsep option[1]. So inside Org all you need to do is add the following to the file header: #+LATEX_HEADER: \usepackage{enumitem} If you want this behaviour for all lists add the following: #+LATEX_HEADER: \setlist{nolistsep} If you only want to do this for a particular kind of list (say, enumerate) add the following line instead: \setenumerate{noitemsep} To control this per-list you can do: #+attr_latex: :options noitemsep - Step 1 - Step 2 - Step 3 For more info on other options, see the documentation for enumitem (`texdoc enumitem' or http://ctan.org/pkg/enumitem). Hope this helps, Footnotes: [1] See this TeX.SX question for more details: http://TeX.stackexchange.com/q/10684. -- Suvayu Open source is the future. It sets us free.
Re: [O] [PATCH] Add \endifrsthead to longtable export
Hello, t...@tsdye.com (Thomas S. Dye) writes: Previously, export of LaTeX longtables that spanned a page break generated a caption on each page, resulting in multiple entries in the table of contents. The attached patch for ox-latex.el implements the \endfirsthead command so the caption only appears once, at the top of the table. Subsequent pages of the table start with Continued from previous page. Applied. Thank you. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Longtable continuation strings customizable
Hello, t...@tsdye.com (Thomas S. Dye) writes: The attached patch should be applied on top of the earlier patch. It makes the continuation strings customizable. Wouldn't it be better if these strings where hardcoded, but with support for internationalization in `org-export-dictionary'? Meanwhile, I applied your patch. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Writing Challenge
Hi Ivan, darthand...@gmail.com writes: Very interesting! I have been working on a mode which gives the current word-count, WPM and an estimate of the time it will take to hit today's quota in the modeline. I would be interested in feedback as well as integrating it with your spreadsheet. You can find it at https://bitbucket.org/gvol/nanowrimo.el I've been looking at your mode, and I find it very interesting. Here are a couple typos I've found (for documentation strings): - documentation of nanowrimo-total-goal should be How many words you would like to write in total. - documentation of nanowrimo-today-goal should be How many words you would like to write today. - documentation of nanowrimo-org-table-name should be Name of the table where goals are tracked. Finally, it would be great if nanowrimo-today-goal could be computed from the quota part of the spreadsheet. Thanks again, Alan
Re: [O] [PATCH] Longtable continuation strings customizable
On 27.10.2013, at 09:05, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, t...@tsdye.com (Thomas S. Dye) writes: The attached patch should be applied on top of the earlier patch. It makes the continuation strings customizable. Wouldn't it be better if these strings where hardcoded, but with support for internationalization in `org-export-dictionary'? I agree that this would be better. - Carsten Meanwhile, I applied your patch. Thank you. Regards, -- Nicolas Goaziou
Re: [O] CDLaTeX in Org document
On 26.10.2013, at 08:47, Vladimir Lomov lomov...@gmail.com wrote: Hello, I'm using CDLaTeX with Org documents and with LaTeX ones (AUCTeX major mode). I configured cdlatex to insert closing brackets and dollar ( '$({[' ) and this works fine in AUCTeX major mode. Is it possible to use similar feature in combination Org+cdlatex? Hi Vladimir, this is not supported currently. Overwriting the key bindings for ([{ and $ would cause other problems, because Org already does other stuff with self-insert characters (see the function org-self-insert-command) like speed commands and automatic adjustments in tables. So there is not simple fix, would require a more complex fix. - Carsten I tested with following settings 8 (add-to-list 'load-path /usr/share/emacs/site-lisp/org) (add-to-list 'load-path /usr/share/emacs/site-lisp/auctex) (setq cdlatex-simplify-sub-super-scripts nil) (setq cdlatex-paired-parens $([{) (require 'org) (add-hook 'org-mode-hook 'turn-on-org-cdlatex) (setq org-use-sub-superscripts '{}) 8 And it didn't work. --- WBR, Vladimir Lomov -- There's no heavier burden than a great potential.
Re: [O] [RFC] defcustom sorting-type
Hello, Andreas Röhler andreas.roeh...@easy-emacs.de writes: In docstring of `org-sort-entries' it's told The command prompts for the sorting type unless it has been given to the function through the SORTING-TYPE argument, which needs to be a character, \(?n ?N ?a ?A ?t ?T ?s ?S ?d ?D ?p ?P ?o ?O ?r ?R ?f ?F). Suggest to extend it somehow like that way ... through the SORTING-TYPE argument, resp. customized `sorting-type',... Which means `sorting-type' would need a defcustom. Thus the user isn't prompted every time any more. FWIW, I don't think this is necessary. If one needs a single sorting type only, it is very easy to define a wrapper around `org-sort-entries' and use that function instead. Regards, -- Nicolas Goaziou
Re: [O] Repeating the customization survey?
Great. Let me cook up that lisp function for you. - Carsten On 26.10.2013, at 01:36, Mike McLean mike.mcl...@pobox.com wrote: On Oct 23, 2013, at 9:34 AM, Carsten Dominik drostekirs...@gmail.com wrote: Dear all, in 2009, we ran a customization survey, to figure out which variables are actually used by active Org-mode users. The results can be seen here: http://orgmode.org/worg/org-configs/org-customization-survey.html I was wondering if it would be useful to repeats this - the results might be instructive. It should be much easier this time, because we now have a function that will actually list all changed variables - so we would only have to ask people to run a simple lisp command and send in the results. Of course, then a volunteer would have to collect and analyse the output. Last time Manish and myself did this, and I remember that it was interesting and fun. Any takers? I'll bite; I don't have the Elisp skills (*) to contribute as meaningfully as I would like to Org and this sounds like a good little side project. Mike (*) Nor the ability -- to the best of my interpretation -- to sign FSF papers.
Re: [O] [RFC] Simple cache mechanism for `org-element-at-point'
Nicolas Goaziou n.goaz...@gmail.com writes: The following patches introduce a simple cache mechanism for both `org-element-at-point' and `org-element-context'. My goal is to make them fast enough to be used in most core commands (excepted headlines-only commands). Since a wrong cache can break Org behaviour badly, I would appreciate if it could be tested a bit. You can disable cache at any time by setting `org-element-use-cache' to nil and reset it with `org-element-cache-reset' function. It may also be interesting to tweak `org-element--cache-sync-idle-time' and `org-element--cache-merge-changes-threshold', although I don't expect a regular user to do it. Anyway, it may lead to better default values. Since cache is updated upon buffer modification, visibility status cannot be cached properly. Since it is also buggy, the first patch removes that data altogether. I applied the first patch. Here is a slight change to the second one, which will correctly reset cache when some variables are customized or when a buffer is refreshed (C-c C-c on a keyword). Regards, -- Nicolas Goaziou From 6fa0c2908c9cc3c768ec484ce9d7f87a971a4fa5 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou n.goaz...@gmail.com Date: Thu, 3 Oct 2013 22:12:35 +0200 Subject: [PATCH] org-element: Implement caching for dynamic parser * lisp/org-element.el (org-element-use-cache, org-element--cache, org-element--cache-sync-idle-time, org-element--cache-merge-changes-threshold, org-element--cache-status, org-element--cache-opening-line, org-element--cache-closing-line): New variables. (org-element-cache-reset, org-element--cache-pending-changes-p, org-element--cache-push-change, org-element--cache-cancel-changes, org-element--cache-get-key, org-element-cache-get, org-element-cache-put, org-element--shift-positions, org-element--cache-before-change, org-element--cache-record-change, org-element--cache-sync): New functions. (org-element-at-point, org-element-context): Use cache when possible. * lisp/org.el (org-mode, org-set-modules): Reset cache. * lisp/org-footnote.el (org-footnote-section): Reset cache. * lisp/org-src.el (org-src-preserve-indentation): Reset cache. * testing/lisp/test-org-element.el: Update tests. This patch gives a boost to `org-element-at-point' and, to a lesser extent, to `org-element-context'. --- lisp/org-element.el | 750 --- lisp/org-footnote.el | 9 +- lisp/org-src.el | 25 +- lisp/org.el | 6 +- testing/lisp/test-org-element.el | 18 +- 5 files changed, 658 insertions(+), 150 deletions(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index 329d00a..cbe0e56 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -111,7 +111,8 @@ ;; ;; The library ends by furnishing `org-element-at-point' function, and ;; a way to give information about document structure around point -;; with `org-element-context'. +;; with `org-element-context'. A simple cache mechanism is also +;; provided for these functions. ;;; Code: @@ -4646,7 +4647,7 @@ indentation is not done with TAB characters. ;; The first move is to implement a way to obtain the smallest element ;; containing point. This is the job of `org-element-at-point'. It ;; basically jumps back to the beginning of section containing point -;; and moves, element after element, with +;; and proceed, one element after the other, with ;; `org-element--current-element' until the container is found. Note: ;; When using `org-element-at-point', secondary values are never ;; parsed since the function focuses on elements, not on objects. @@ -4654,8 +4655,417 @@ indentation is not done with TAB characters. ;; At a deeper level, `org-element-context' lists all elements and ;; objects containing point. ;; -;; `org-element-nested-p' and `org-element-swap-A-B' may be used -;; internally by navigation and manipulation tools. +;; Both functions benefit from a simple caching mechanism. It is +;; enabled by default, but can be disabled globally with +;; `org-element-use-cache'. Also `org-element-cache-reset' clears or +;; initializes cache for current buffer. Values are retrieved and put +;; into cache with respectively, `org-element-cache-get' and +;; `org-element-cache-put'. `org-element--cache-sync-idle-time' and +;; `org-element--cache-merge-changes-threshold' are used internally to +;; control caching behaviour. +;; +;; Eventually `org-element-nested-p' and `org-element-swap-A-B' may be +;; used internally by navigation and manipulation tools. + +(defvar org-element-use-cache t + Non nil when Org parser should cache its results.) + +(defvar org-element--cache nil + Hash table used as a cache for parser. +Key is a buffer position and value is a cons cell with the +pattern: + + \(ELEMENT . OBJECTS-DATA) + +where ELEMENT is the element starting at the key and OBJECTS-DATA +is an alist where each association is: + + \(POS CANDIDATES
Re: [O] Beamer export: one question and one bug
Greetings again. 1. First the question: when I export the org file below as Beamer (C-c C-e l O), I get an empty outline. How do I fix this? Seems to work fine for me with the older version that I was running, but I upgraded to latest and I get the beamer presentation I expected. I think I posed my initial question in a way that begs for a misunderstanding. When I export the file as Beamer, I get a title page, two slides _and_ an empty outline. Maybe someone interpreted my initial question to mean that I get _only_ an empty outline. I would like for the titles of the slides to appear in the outline. How do I achieve this? (I know that I can get rid of the outline by setting toc:nil.) so the link is treated exactly the same in the two cases. Probably the enclosing environment (\section vs \frame) is what causes the different behavior. Ok, thanks. Jarmo
[O] [RFC] Slight change to asynchronous export
Hello, At the moment, by default, external emacs process for asynchronous export is called with: /path/to/emacs -Q --batch -l org-export-async-init-file ... export stuff... where `org-export-async-init-file' defaults to `user-init-file'. It is, by default, not the same as calling emacs, because of the -Q. I suggest allowing a nil (default) value for `org-export-async-init-file'. In that case, the command will become: /path/to/emacs --batch ... export stuff... If it is a file, it will be the same as before. WDYT? Regards, -- Nicolas Goaziou
[O] Remove empty rows in a org-table
Dear org-mode hackers, in a org-mode file I copy various information to a org-table. Sometimes there are empty rows in that org-table which I don't like. Therefore I wrote a little function that removes empty rows from a org-mode table. Maybe this is of any for org-mode or for other people. I would like to hear of any improvements or better ways to do this. Maybe this already exists in org-mode somewhere? :-) #+BEGIN_SRC emacs-lisp (defun fa/org-table-remove-empty-rows () Removes empty rows in a org-mode table. (interactive) (save-excursion (unless (org-table-p) (error You are not in an org-table.)) (goto-char (org-table-begin)) (let ((tbl-list (org-table-to-lisp))) (while (let ((row-list (car tbl-list))) (cond ((and (listp row-list) (equal row-list (make-list (length row-list) (string (kill-line) (kill-line)) (t (next-line))) (setq tbl-list (cdr tbl-list))) #+END_SRC This functions does the following: |--+--+-||--+--+-| | test | foo | bar || test | foo | bar | |--+--+-||--+--+-| |1 |2 | 3 ||1 |2 | 3 | | | | ||4 | | 6 | |4 | | 6 | -- | | test | bla | | | | ||--+--+-| | | test | bla || |2 | 4 | |--+--+-||--+--+-| | | | | | |2 | 4 | |--+--+-| -- Florian Adamsky http://florian.adamsky.it/
[O] [RFC] Overlay specification for includegraphics
Hi, While working on a presentation recently, I realised there was no easy way to specify overlay specifications for images during beamer export. Since this is already supported for lists, e.g. by adding `#+attr_latex :overlay +-'. I was wondering if it is possible to add this for images? Something like this would be amazing: #+attr_latex: :overlay 1 :width 0.9\textwidth [[file:graphics/test.pdf]] is exported as, \includegraphics1[width=0.9\textwidth]{graphics/test.pdf} What do you think? PS: I noticed if I use #+attr_beamer: instead of #+attr_latex:, the :options property is ignored, and :width is overwritten with 0.9\linewidth. Is that intended -- Suvayu Open source is the future. It sets us free.
Re: [O] [RFC] Overlay specification for includegraphics
On 27.10.2013, at 14:23, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: Hi, While working on a presentation recently, I realised there was no easy way to specify overlay specifications for images during beamer export. Since this is already supported for lists, e.g. by adding `#+attr_latex :overlay +-'. I was wondering if it is possible to add this for images? Something like this would be amazing: #+attr_latex: :overlay 1 :width 0.9\textwidth [[file:graphics/test.pdf]] is exported as, \includegraphics1[width=0.9\textwidth]{graphics/test.pdf} What do you think? PS: I noticed if I use #+attr_beamer: instead of #+attr_latex:, the :options property is ignored, and :width is overwritten with 0.9\linewidth. Is that intended I am not sure about this problem, but clearly, your request of the overlay property need to use attr_beamer, not attr_latex. - Carsten -- Suvayu Open source is the future. It sets us free.
Re: [O] capture template property :kill-buffer does not let me refile
please, no body else having the same issue? I tried to understand in org-refile and org-capture-refile how is that refile and closing the buffer intermix, but I'm not that lisp proficient :-( Then I tried providing some code for org-capture-after-finalize-hook, and org-after-refile-insert-hook My idea was to save and close the buffer associated to the file I'm capturing to from one of those hooks. However, it seems that both hooks are invoked before the new captured text has been inserted into the buffer. For example, if in the hook I add code to only select and close the associated buffer then after the capture process has finished then the buffer appears as modified requiring an explicit save. Any hints? Many thanks, Rodrigo emacs 24.3.1 org 8.2.1 At Fri, 25 Oct 2013 18:54:33 -0400, Rodrigo Amestica wrote: Hello, for some days I have been capturing one of my templates using C-c C-w (org-capture-refile). This option let's me conveniently select under which exact header (within the target file) to insert the new entry. Leaving the target file buffer alive after inserting a new item is inconvenient in my case. So I added ':kill-buffer t' to the template configuration. But doing so resulted in that now C-c C-w does not offer me to select anything, the entry is simple inserted at the beginning of the file and the buffer is killed. My template is shown below. Is it actually possible to combine org-capture-refile with :kill-buffer? Thanks, Rodrigo (t Template entry (file ~/my/file.org) * \n :PROPERTIES:\n :Some: \n :Properties: \n :END: :prepend t :kill-buffer t)
[O] [PATCH] fix org-insert-todo-heading-respect-content in plain list item
Hi guys, please find attached a 1-4-char patch fixing the behavior of the above function when inside a plain list. Best, Ingo From e22f9ffe3f6af69cde2397f56a7efebaaa7710e0 Mon Sep 17 00:00:00 2001 From: Ingo Lohmar i.loh...@gmail.com Date: Sun, 27 Oct 2013 17:34:22 +0100 Subject: [PATCH] fix org-insert-todo-heading-respect-content in plain list item * lisp/org.el (org-insert-todo-heading-respect-content): pass correct prefix arg to always insert heading TINYCHANGE This function used a second argument t, which is eventually passed to org-insert-heading, adding a list item when inside a plain list. Use the proper argument '(4) now, to always create a heading, just like the function's name and documentation imply. --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 0fd531d..275f480 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7770,7 +7770,7 @@ This is a list with the following elements: Insert TODO heading with `org-insert-heading-respect-content' set to t. (interactive P) (let ((org-insert-heading-respect-content t)) -(org-insert-todo-heading force-state t))) +(org-insert-todo-heading force-state '(4 (defun org-insert-todo-heading (arg optional force-heading) Insert a new heading with the same level and TODO state as current heading. -- 1.7.10.4
Re: [O] [PATCH] Longtable continuation strings customizable
Carsten Dominik carsten.domi...@gmail.com writes: On 27.10.2013, at 09:05, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, t...@tsdye.com (Thomas S. Dye) writes: The attached patch should be applied on top of the earlier patch. It makes the continuation strings customizable. Wouldn't it be better if these strings where hardcoded, but with support for internationalization in `org-export-dictionary'? I agree that this would be better. - Carsten I think there are two axes of variation here: 1) internationalization, and 2) style guides, e.g., for a particular journal, Chicago Manual, etc. IIUC, hardcoding and org-export-dictionary solve 1) but not 2). In my experience, variation in 2) is idiosyncratic, though I haven't looked specifically at table continuation lines. The user can solve both 1) and 2) with customizable continuation strings, so it might be best to stay on this path instead of hardcoding and internationalization in org-export-dictionary. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
[O] Bug: using :flags for C source block produce invalid html [8.2.1 (8.2.1-15-ge5cecc-elpa)]
Hi, Passing flags to following two blocks differs only by their :flags option #+BEGIN_SRC C :export code :include stdio.h int a = 2; int b = 3; printf(%d, a + b); #+END_SRC #+BEGIN_SRC C :export code :include stdio.h :flags -I. int a = 2; int b = 3; printf(%d, a + b); #+END_SRC When I export them with with C-x C-e h h, I get the following HTML (excerpt): div class=org-src-container pre class=src src-Cspan style=color: #7CB8BB;int/span span style=color: #DFAF8F;a/span = 2; span style=color: #7CB8BB;int/span span style=color: #DFAF8F;b/span = 3; printf(span style=color: #CC9393;%d/span, a + b); /pre /div div class=org-src-container pre class=src src-C-I.int a = 2; int b = 3; printf(%d, a + b); /pre /div Notice how the second block has class=src src-C-I. and no color? Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-06-25 on sochi, modified by Debian Package: Org-mode version 8.2.1 (8.2.1-15-ge5cecc-elpa @ /home/adl/.emacs.d/elpa/org-20131021/) current state: == (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-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-log-done 'time org-confirm-shell-link-function 'yes-or-no-p org-latex-format-headline-function 'org-latex-format-headline-default-function 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-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-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) -- Alexandre Duret-Lutz
[O] typo Catching-invisible-edits
Hi! Here is a typo I encountered. Thanks for your wonderful work! Cyprien. http://orgmode.org/manual/Catching-invisible-edits.html and be confused on what as been edited = has -- Cyprien Gay http://aful.org/ http://non.aux.racketiciels.info/ http://bons-constructeurs-ordinateurs.info/
Re: [O] [RFC] Overlay specification for includegraphics
On Sun, Oct 27, 2013 at 03:09:38PM +0100, Carsten Dominik wrote: On 27.10.2013, at 14:23, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: Hi, While working on a presentation recently, I realised there was no easy way to specify overlay specifications for images during beamer export. Since this is already supported for lists, e.g. by adding `#+attr_latex :overlay +-'. I was wondering if it is possible to add this for images? Something like this would be amazing: #+attr_latex: :overlay 1 :width 0.9\textwidth [[file:graphics/test.pdf]] is exported as, \includegraphics1[width=0.9\textwidth]{graphics/test.pdf} What do you think? PS: I noticed if I use #+attr_beamer: instead of #+attr_latex:, the :options property is ignored, and :width is overwritten with 0.9\linewidth. Is that intended I am not sure about this problem, but clearly, your request of the overlay property need to use attr_beamer, not attr_latex. I tried attr_latex because attr_beamer was overwriting everything. I will investigate why attr_beamer is not working on a minimal instance tomorrow. Cheers, -- Suvayu Open source is the future. It sets us free.
[O] List items, HTML export
Hi, Is it possible to set class/id on exported UL and LI elements ? If there is a list with 2 levels, is it possible to set it independently ? I'm looking into it, not even sure if I need it, but that may be helpful for navigation elements. Thanks for your inputs on this question. -- Fabrice
[O] problem with titles in odt export
Hello. I think there's a problem when exporting to odt format with certain characters in #+TITLE lines. For example, exporting an org file with ñ (ntilde in HTML) or letters with acute accents (aacute, oacute, etc.) in the title---my document is written in spanish---results in a file with no title at all (nor author/date). Also, an error warning appears in LibreOffice when opening. The body of the document (headers, etc.) exports normally. I'm using GNU Emacs 24.3.1. Org-mode version 8.2.1 (8.2.1-15-ge5cecc-elpa @ c:/emacs/.emacs.d/elpa/org-20131021/). Thank you very much for the great work.
Re: [O] [RFC] Overlay specification for includegraphics
On Sun, Oct 27, 2013 at 07:44:09PM +0100, Suvayu Ali wrote: On Sun, Oct 27, 2013 at 03:09:38PM +0100, Carsten Dominik wrote: On 27.10.2013, at 14:23, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: Hi, While working on a presentation recently, I realised there was no easy way to specify overlay specifications for images during beamer export. Since this is already supported for lists, e.g. by adding `#+attr_latex :overlay +-'. I was wondering if it is possible to add this for images? Something like this would be amazing: #+attr_latex: :overlay 1 :width 0.9\textwidth [[file:graphics/test.pdf]] is exported as, \includegraphics1[width=0.9\textwidth]{graphics/test.pdf} What do you think? PS: I noticed if I use #+attr_beamer: instead of #+attr_latex:, the :options property is ignored, and :width is overwritten with 0.9\linewidth. Is that intended I am not sure about this problem, but clearly, your request of the overlay property need to use attr_beamer, not attr_latex. I tried attr_latex because attr_beamer was overwriting everything. I will investigate why attr_beamer is not working on a minimal instance tomorrow. I tested with a minimal setup. Same issue. The following: #+attr_beamer: :overlay 1 :width 0.8\linewidth [[file:bla.png]] exports as, \includegraphics[width=.9\linewidth]{bla.png} Something is off. Hope this helps, -- Suvayu Open source is the future. It sets us free.
[O] Insert a heading in every sibling
I'm using org-mode to keep track of student grades. How can I easily add a bunch of identical headings at a certain level in my tree? Specifically,I have a L2 heading for each student, and I want to put a node (heading, with some properties) under each L2 student heading for that class. * Class One ** Sarah Adams *** Essay One Here is my comment to the student on their essay. The grade/mark itself will be stored as a property or priority. HERE I'd like to add a node for Essay Two ** John Smith *** Essay One Comment on John's essay. I to add the same node skeleton here, automatically ** Sally Lovelace *** Essay One Comment on Sally's essay. And here. * Class Two ** Ralph Friendly ** Sam Hudson Thanks, Scot
Re: [O] generating ToC for existing PDF?
On 26 October 2013 14:11, Adam Spiers orgm...@adamspiers.org wrote: Hi all, I have an existing PDF, along with a text file table of contents. Is it possible to use org to generate a new PDF which includes a ToC at the beginning, where each item in the ToC is hyperlinked to its corresponding page in the original PDF? I see that org understands hyperlinks like: docview:papers/last.pdf::NNN but I'm not sure if exporting to PDF would preserve those hyperlinks, and even if so, when merging the generated ToC with the original PDF, there would need to be a way to adjust them to point within the new merged file. I found a solution: http://unix.stackexchange.com/questions/97695/generate-a-hyperlinked-table-of-contents-and-insert-into-existing-pdf
Re: [O] capture template property :kill-buffer does not let me refile
Hello, based on 'printf' type logging I have found one solution that looks to me like a bug fix in org-capture-refile. But I'm obviously far from guessing any side effect that I could be missing. In org-capture-refile if I move org-capture-finalize after the save-window-excursion form then the :kill-buffer option works as expected without interfering with the refile operation. I meant to say a bug fix because to me it sounds more reasonable to call org-capture-finalize really when finished, in this specific case after refile. Does that make sense? Thanks, Rodrigo