[O] cannot export to openoffice

2014-06-27 Thread Luca Ferrari
Hi all, I'm running emacs 24.3.1 on Linux, and I've LibreOffice installed. When trying to export an org buffer (C-c C-e) I don't have any OpenDocument option. I've checked and I've the zip command on my path. What else should I check? Thanks, Luca

Re: [O] cannot export to openoffice

2014-07-01 Thread Luca Ferrari
On Fri, Jun 27, 2014 at 2:35 PM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Export to ODT is not loaded by default. See variable `org-export-backends'. Great, thanks. Luca

[O] latex formula error when nested into a list?

2014-07-10 Thread Luca Ferrari
Hi all, don't know if this is a normal behavior, but using a latex formula like this: \begin{equation} \begin{align} a \times b = c \times d \\ = f \end{align} \end{equation} into an org list, that is: - \begin{equation} \begin{align} a \times b = c \times d \\ = f \end{align} \end{equation}

[O] #+BEGIN_SRC problem when exporting

2013-03-11 Thread Luca Ferrari
Hi all, maybe I'm getting something wrong but when I add to a file the following block: #+BEGIN_SRC shell ![+-] program ![+-] hostname #+END_SRC and do a Latex export I got an unbalanced error. I suspect the problem is tied to the + signs that are within the block. Is there a trick I can use

Re: [O] #+BEGIN_SRC problem when exporting

2013-03-12 Thread Luca Ferrari
Thanks, I've tried and it works now. Luca On Mon, Mar 11, 2013 at 5:53 PM, Eric Schulte schulte.e...@gmail.com wrote: Luca Ferrari fluca1...@infinito.it writes: Hi all, maybe I'm getting something wrong but when I add to a file the following block: #+BEGIN_SRC shell ![+-] program

[O] some key sequence transform my text in outline

2013-03-27 Thread Luca Ferrari
Hi, I cannot understand exactly what I type, but this is what happened twice. I was editing in the middle of a document, in particular within a ~ block with a src block on the next line, as in the following: I was editing ~here~ #+begin_src shell Now, with some key sequence Org eated all

[O] avoid subscripting text

2013-03-27 Thread Luca Ferrari
Hi all, in my file I've got some text that I'd like to be represented as fixed font size, and therefore I write it as ~cap_mkdb~ surrounding with ~. The problem is that, when I export the document to ODF, I got the word following the underscore written as a subscript. Now this reminds me the LaTeX

Re: [O] some key sequence transform my text in outline

2013-04-03 Thread Luca Ferrari
file externally and removing some text after the #+begin_src (in particular a table) solved the problem. I'm investigating more... Thanks, Luca On Wed, Mar 27, 2013 at 1:39 PM, Marcin Borkowski mb...@wmi.amu.edu.pl wrote: Dnia 2013-03-27, o godz. 13:22:47 Luca Ferrari fluca1...@infinito.it napisał

[O] Invalid specification of styles.xml: nil

2013-08-09 Thread Luca Ferrari
Hi all, when exporting to OpenOffice using a ott file as template I get the error Invalid specification of styles.xml: nil, even if I placed the property #+ODT_STYLES_FILE: /home/luca/letter.ott in the org file. Regular exports to ODT works out of the box, of course! What am I missing? Thanks,

Re: [O] Invalid specification of styles.xml: nil

2013-08-29 Thread Luca Ferrari
On Thu, Aug 29, 2013 at 6:22 AM, Jambunathan K kjambunat...@gmail.com wrote: The double quotes. See the following section in the manual. Great! I did not noted that! Thanks, Luca

[O] using org mode and git efficiently

2013-01-03 Thread Luca Ferrari
Hi all, I'm using Org mode to manage my coding projects, that are all based on git. I was wondering if there are tips and tricks to use the two efficiently, for instance storing the current head when a task is marched as completed in org mode, so that the task can link to the commit that completed

Re: [O] using org mode and git efficiently

2013-01-03 Thread Luca Ferrari
Thanks, this is really close to what I was searching for (I believe that using the bare metal mode with the commit object is what I need to track which commit closed the task. I'll try it. Thanks, Luca

[O] help advicing org-todo

2013-01-03 Thread Luca Ferrari
Hi all, I'd like to advice the function org-todo to check in and check out the clock automatically. I've defined the org-todo-keywords so that they have a choice letter as follows: (setq org-todo-keywords '( (sequence TODO(t!) | DONE(d!)) (sequence FEATURE(f!) BUG(b!)

Re: [O] help advicing org-todo

2013-01-03 Thread Luca Ferrari
Thanks, a very good advice. Now, forgive my lisp ignorance, but I've defined the following function to do what I want: (defun org-todo-automatic-clock () Starts/Stops the clock when a task is marked as implementing or completed (if (string= state org-todo-fluca1978-running)

Re: [O] help advicing org-todo

2013-01-06 Thread Luca Ferrari
This is great! Thanks, Luca (setq org-clock-in-switch-to-state STRT) (setq org-clock-out-switch-to-state DONE)

[O] #+STARTUP: content question

2013-01-11 Thread Luca Ferrari
Hi, I'd like to have my org files to show the contents of all the nodes that have (sub)items not marked as completed/done. Therefore the following: * FIRST ** second *** TODO blah *** DONE blah ** third *** DONE blah *** DONE blah should be shown when visiting the file as follows: * FIRST **

[O] inserting a path string fires the italic formatting

2013-02-06 Thread Luca Ferrari
Hi all, this could be trivial, but if I have to place a unix path name into my org text, without having a link, how can I prevent the mode to assume I'm doing italic formatiing? For instance in the text: - check /usr/bin/chmod - check /usr/lib/bla I got italic from the first slash to the

Re: [O] inserting a path string fires the italic formatting

2013-02-06 Thread Luca Ferrari
Thanks, using the = symbol makes it looking less strange that a ~ (for the backup, home directory, and so on). Luca On Wed, Feb 6, 2013 at 2:22 PM, Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Luca, Luca Ferrari wrote: this could be trivial, but if I have to place a unix path name

Re: [O] no beamer export?

2017-05-17 Thread Luca Ferrari
On Wed, May 17, 2017 at 3:41 PM, Jérémie Juste wrote: > Hello, > > M-x beamer-mode. Thanks, it worked! Luca

[O] no beamer export?

2017-05-17 Thread Luca Ferrari
Hi all, I'm running emacs 25.1.2 and I've no beamer export in the C-c C-e. I've tried to include the directives: #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation,smaller] #+BEAMER_THEME: default and then do a latex ordinary export (C-c C-e l p) but I got 'Unknow latex beamer class'. Am

[O] reformatting a quite large table

2017-09-14 Thread Luca Ferrari
Hi all, I'm just curios, having a an org table that is 140 MB of text in size (it's a dump of an sql table if that matters), how can I speed up reformatting the table? Something I can do in background or limiting rows to what is shown to me in the buffer will suffice. Is that possible? Thanks,

[O] help with beamer and org: pictures alignment and size

2017-08-30 Thread Luca Ferrari
Hi all, I'm producing my first beamer presentation via org-mode, and so far so good. However I would like to have a slide to display a few pictures, one per row or even in a grid, so I tried the following: ** My slide #+ATTR_LATEX: width=0.1\textwidth - [[./images/debian.png]] -

Re: [O] help with beamer and org: pictures alignment and size

2017-08-31 Thread Luca Ferrari
On Wed, Aug 30, 2017 at 12:52 PM, Eric S Fraga wrote: > First of all, it depends on what version of org you are using. Assuming > you are using a recent version, your syntax here is wrong; it should be: > > #+ATTR_LATEX: :width 0.1\textwidth > >>-

[O] export outside of emacs

2019-07-28 Thread Luca Ferrari
Hi all, how can I run emacs to export org-mode files from outside of Emacs? I would like to provide a Makefile or a script to automatically build PDFs (LaTeX and Beamer) out of my org file repository. Thanks, Luca

Re: [O] export outside of emacs

2019-07-29 Thread Luca Ferrari
On Sun, Jul 28, 2019 at 2:21 PM Kaushal Modi wrote: > Here's one example[1] (look at the "emacs-batch" target in there. > Great, this is a wonderful example to get started from! Thanks, Luca

[O] from org to openoffice presentations (or make org looks like openoffice)

2019-07-24 Thread Luca Ferrari
Hi, it seems I'm out of luck searching for a solution: I've got a library of org-mode files that I export with beamer. So far, so good. But know I'm forced by my management to apply an openoffice slide layout, so I was looking for a way to export from org to open office presentations (impress). It

Re: [O] from org to openoffice presentations (or make org looks like openoffice)

2019-07-24 Thread Luca Ferrari
Thanks all for the quick replies! On Wed, Jul 24, 2019 at 9:56 AM Fraga, Eric wrote: > #+latex_header: > \usebackgroundtemplate{\includegraphics[width=\paperwidth]{}} > Yes, this is what I'm doing so far. The problems I see are: 1) the image contains a footer, and LaTeX does not anything about

Re: [O] from org to openoffice presentations (or make org looks like openoffice)

2019-07-25 Thread Luca Ferrari
On Wed, Jul 24, 2019 at 2:12 PM Fraga, Eric wrote: > I've attached three files: an org file, the resulting PDF, and a very > minimal beamer theme that may be of use. That theme puts an image (UCL > logo) at the bottom right of the slide and a page number at the bottom > left side. Maybe you can

[O] hwo to use different font size and emphasis in src snippets?

2019-07-25 Thread Luca Ferrari
Hi all, I'd like to make my presentations a little more appealing. I've got code snippets like the following: #+begin_src shell % pgbench -i -s 30 -F 100 --foreign-keys -h 127.0.0.1 -U luca pgbench generating data... 10 of 300 tuples (3%) done (elapsed 0.09 s, remaining 2.64 s) 20 of

[O] export to beamer with heading 1 as separators

2019-09-24 Thread Luca Ferrari
Hi all, I'm trying to export to beamer my org-mode presentation, but I would like that top level elements in the tree appears as "separators" slides, that is chapter introduction. So if my tree is: * License * Arg 0 ** slide 1 ** slide 2 ** slide 3 * Arg 1 ** slide 4 ** slide 5 ** slide 6 I

[O] export code snippet in beamer with different fonts

2019-09-29 Thread Luca Ferrari
Hi all, in my org files I've got examples like: #+begin_src sql testdb=# alter role simon with nologin; testdb=# alter role group_a with login; #+end_src and in my latex theme I've got: setbeamerfont{verbatim}{size=\tiny} This is ok for most of my examples, but here are my questions: 1) the

Re: [O] export to beamer with heading 1 as separators

2019-09-25 Thread Luca Ferrari
On Tue, Sep 24, 2019 at 7:22 PM Fraga, Eric wrote: > #+latex_header: > \AtBeginSection[]{\begin{frame}{Topic}\tableofcontents[currentsection]\end{frame}} Thanks Eric, but I cannot get it working. I've build an org example: #+TITLE: Beamer Test #+OPTIONS: H:3 num:nil toc:nil #+OPTIONS:

Re: [O] export to beamer with heading 1 as separators

2019-09-25 Thread Luca Ferrari
On Wed, Sep 25, 2019 at 10:39 AM Fraga, Eric wrote: > #+latex_header: \AtBeginSubsection[]{\begin{frame}BAR\end{frame}} Great! So far, after having activated numbering, the following made me almost happy: #+latex_header: \newtranslation[to=italian]{Section}{Capitolo} #+latex_header:

[O] export file within a folder (and possibly with a pattern)

2019-10-03 Thread Luca Ferrari
Hi all, in my org files I've got something like: #+export_file_name: PDF/2019_MY_PRESENTATION but I've seen that if the containing folder (PDF) is not there there is no way to generate the file at all. Is there any toggle to instrument org to create the directory if it does not exist? Also, any

emphasizing source code words

2021-02-01 Thread Luca Ferrari
Hi all, I'm using org to produce beamer presentations, and I've a lot of src blocks. Is there any way to emphasize words or lines within such blocks? For example to place the command arguments in bold face? Thanks, Luca

Re: emphasizing source code words

2021-02-04 Thread Luca Ferrari
On Mon, Feb 1, 2021 at 1:56 PM TEC wrote: > I'd have to look at the manual for specifics, but I know that you can > highlight lines when using the minted backend. Thanks, but stil Im not able to figure it out. I've searched thru the org documentation without any luck. Luca

org to beamer structure not working

2021-03-08 Thread Luca Ferrari
Hi all, I'm running emacs 26.3, and there's something I cannot reproduce in my beamer presentation. In my org file I've: #+OPTIONS: H:2 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil

Re: org to beamer structure not working

2021-03-08 Thread Luca Ferrari
On Mon, Mar 8, 2021 at 4:29 PM Eric S Fraga wrote: > > How are you actually exporting? Are you choosing a beamer export option > as it looks like article LaTeX output. Your settings look fine > otherwise. Shame on me! I was exporting it as latex-pdf file (C-c C-e l p) instead of beamer (C-c

Re: toggle-truncate-lines outside table and source regions

2021-09-23 Thread Luca Ferrari
On Wed, Sep 22, 2021 at 3:49 PM Bill Burdick wrote: > > How about adding > > (lambda () (toggle-truncate-lines 1)) > > to org-mode-hooks in your EMACS init file? isn't this the same as M-x toggle-truncate-lines ? Because it will truncate every line, but I'm searching for a way to truncate only

toggle-truncate-lines outside table and source regions

2021-09-22 Thread Luca Ferrari
Hi all, is it possible to instrument org-mode to automatically truncate lines only on "regular" text, i.e., outside table and source regions? I know why org-mode disables line truncation, but to me it is quite annoying when dealing with long text lines. Thanks, Luca

Re: emacs really slow when inserting a new source code block

2022-09-28 Thread Luca Ferrari
On Tue, Sep 27, 2022 at 3:22 PM Ihor Radchenko wrote: > > This is strange. > Did nothing happen after M-x profiler-report? > Can you try again and check if *CPU-Profiler-Report ...* buffer exists > in Emacs (... will be current date and time)? No, there is no buffer named cpu nor memory nor

Re: emacs really slow when inserting a new source code block

2022-09-28 Thread Luca Ferrari
On Wed, Sep 28, 2022 at 4:15 PM Luca Ferrari wrote: > > On Wed, Sep 28, 2022 at 3:15 PM Ihor Radchenko wrote: > > I have not idea except that you may have something really strange in > > your config. > > I'm trying to understand what could be eating all the cpu. > S

Re: emacs really slow when inserting a new source code block

2022-09-28 Thread Luca Ferrari
On Wed, Sep 28, 2022 at 3:15 PM Ihor Radchenko wrote: > I have not idea except that you may have something really strange in > your config. I'm trying to understand what could be eating all the cpu. > What if you open the file in a clean Emacs instance? See >

Re: emacs really slow when inserting a new source code block

2022-09-27 Thread Luca Ferrari
On Mon, Sep 26, 2022 at 5:16 PM Ihor Radchenko wrote: > I think you tried to use M-x profiler-stop instead of M-x profiler-report > M-x profiler-report show yield a new buffer displayed the profiler tree. > M-x profiler-write-profile will work from inside that buffer. I was careful to do the

emacs really slow when inserting a new source code block

2022-09-25 Thread Luca Ferrari
Hi all, I'm having issues in my org files whenever I insert a new source block (perl if that matters) with "#+begin_src perl" Emacs becomes really slow. I can move, paste, edit within the source block (in the same org buffer, not an external window) but at a very slow rate. In the messages I've

Re: emacs really slow when inserting a new source code block

2022-09-26 Thread Luca Ferrari
On Mon, Sep 26, 2022 at 6:41 AM Ihor Radchenko wrote: > Thanks for reporting! > May you > 1. M-x profiler-start cpu > 2. Move/paste/edit your source block > 3. M-x profiler-report > 4. M-x profiler-report-write-profile and share the resulting file here Apparently I'm not able to get the

Re: emacs really slow when inserting a new source code block

2022-09-29 Thread Luca Ferrari
On Thu, Sep 29, 2022 at 4:27 AM Ihor Radchenko wrote: > > Luca Ferrari writes: > > >> I'm trying to understand what could be eating all the cpu. > >> > > > > So far, turning off flyspell-mode makes Emacs work fine again. Strange... > > Do you ha

Re: emacs really slow when inserting a new source code block

2022-10-05 Thread Luca Ferrari
On Thu, Sep 29, 2022 at 4:19 PM Ihor Radchenko wrote: > Or you can bisect the config to hunt for less obvious issues using > https://github.com/Malabarba/elisp-bug-hunter > I'm preparing a new machine right now, so I will plug into the emacs configuration one bit ata time and see when the

Re: prevent underscores to be translates in subscript when exporting to latex

2022-10-12 Thread Luca Ferrari
On Sat, Oct 8, 2022 at 4:43 PM Mark Barton wrote: > The last part forces the export to recognize just the LaTeX form of > specifying subscripts. > Great! Thanks, this is what I was looking for. Luca

Re: prevent underscores to be translates in subscript when exporting to latex

2022-10-08 Thread Luca Ferrari
On Sat, Oct 8, 2022 at 4:12 PM Ihor Radchenko wrote: > [[https://foo.com/bar_baz.html][=https://foo.com/bar_baz.html=]] > This has, however, the effect of changing the font type to \textt. The same happens when using ~ in place of =. > or you can drop the description part of the link

prevent underscores to be translates in subscript when exporting to latex

2022-10-08 Thread Luca Ferrari
Hi all, I've a link like [[https://foo.com/bar_baz.html][https://foo.com/bar_baz.html]] that, once rendered in LaTeX, is converted to a subscript like bar\textsubscript{baz}. Is there a way to prevent this? Thanks, Luca

Re: copying text from links makes it with a starting [[

2023-01-11 Thread Luca Ferrari
On Tue, Dec 27, 2022 at 2:26 PM Ihor Radchenko wrote: > > Luca Ferrari writes: > Could you please provide more details about what is happening? > What exactly do you do to copy the link? > See https://orgmode.org/manual/Feedback.html#Feedback > Imagine I've this org fragme

copying text from links makes it with a starting [[

2022-12-27 Thread Luca Ferrari
Hi all, I'm not sure this is an org problem, rather a clipboard problem or what else, but when I select an org link in Emacs and I copy into my Firefox browser, the link has always a starting pair of square brackets (e.g. [[https://...). What puzzles me is that there are no ending brackets, as it

table formula for the second last row

2023-07-24 Thread Luca Ferrari
Hi all, I've a table that is keep growing, and in the end I've added the following to formulas: #+TBLFM: @>$3=vsum(@3..@-1) #+TBLFM: @>$3=round( vsum(@3..@-2)/60 ) but both overwrite the last row of the third column, while I would like the former to be on the second last row. Apparently I'm not

set italian language in LaTeX export

2024-02-19 Thread Luca Ferrari
Hi all, this has to be trivial, but it is not working on my system (Emacs 28.2, Org 9.5.5): I set in my document #+language: it and I correctly got in the LaTeX buffer something like: pdflang={Italian}} but not something like: \usepackage[italian]{babel} and therefore the generation of the

Re: set italian language in LaTeX export

2024-02-19 Thread Luca Ferrari
O> You must load the babel package with the AUTO option: > > #+language:it > #+LaTeX_Header: \usepackage[AUTO]{babel} > Thanks, this solved the problem. Out of curiosity, why is not org-mode adding it automatically whenever a #+language setting is present? I'm just curious because it seems that,

track birthdays without having them constantly being in the agenda view

2023-12-21 Thread Luca Ferrari
Hi all, I would like to switch to org-agenda to track birthdays, but if I place a deadline with a +1y specifier, like: DEADLINE: <2022-12-14 mer +1y> the birthday pops in the agenda view even after it has passed. I'm sure there is a simple trick to make it disappear once it has expired, but I

Re: track birthdays without having them constantly being in the agenda view

2023-12-21 Thread Luca Ferrari
> 1. Turn it into TODO and mark DONE once handled (when deadline has a >repeater, marking birthday DONE will re-schedule it and flip the todo >keyword back to TODO) > Good to know! > 2. Just use timestamp like <2022-12-14 mer +1y> without DEADLINE. This >will make the birthday appear