Re: set italian language in LaTeX export
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, as an example, open-office exporting understands the language. Thanks, Luca
set italian language in LaTeX export
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 PDF uses English hyphenation, not the correct italian one. On my system I've installed the package texlive-lang-italian and if I add the babel package line above by hand, I'm able to produce the italianized PDF. What am I missing here? Thanks, Luca
Re: track birthdays without having them constantly being in the agenda view
> 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 on the day of birthday in your agenda. This is surely the approach I'd like to go. Thanks, Luca
track birthdays without having them constantly being in the agenda view
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 cannot figure how to do it. Any suggestion? Thanks, Luca
table formula for the second last row
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 able to understand how to do @> - 1, and I don't want to place a fixed row number since the table will add new rows over the time. Any help is appreciated. Thanks, Luca
Re: copying text from links makes it with a starting [[
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 fragment: Link: [[https://foo.com]] where the link is displayed without brackets, in org mode. I place the point at the beginning of the first visibile character, hence the 'h', and the C-space M-e M-w and then go to another application and paste the content of the clipboard. I've seen that sometimes the link is copied as text, so both beginning and ending brackets are there, but with long links the ending brackets are not there, but it could be they I remove them accidentally. I would like to copy only the visible part, but I guess there's no solution unless I do something manually or configure a web package to open the link into another application. Luca
copying text from links makes it with a starting [[
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 would make more sense to me. Is there a way to insrtument Emacs to copy in the clipboard only the marked text and not the org mode formatting text? I'm running Emacs 28.2 and org 9.5.5 Thanks, Luca
Re: prevent underscores to be translates in subscript when exporting to latex
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
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 altogether: > > [[https://foo.com/bar_baz.html]] This is the simplest way, according to me, and keeps the same font as the surrounding text. Thanks.
prevent underscores to be translates in subscript when exporting to latex
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: emacs really slow when inserting a new source code block
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 problem manifests. I will report back. Thanks, Luca
Re: emacs really slow when inserting a new source code block
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 have any flyspell-related configuration in your config? I have: (flyspell-mode +1) (global-flycheck-mode +1) By the way, even if off-topic, is there a way to "dump" configuration for a specific set of modes? Fromwithin emacs, how can I get a dump of all flyspell related settings (if there's a way)? Thanks, Luca
Re: emacs really slow when inserting a new source code block
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 > https://orgmode.org/manual/Feedback.html Clearly, -Q makes emacs work like a charm. Luca
Re: emacs really slow when inserting a new source code block
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. > So far, turning off flyspell-mode makes Emacs work fine again. Strange...
Re: emacs really slow when inserting a new source code block
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 something alike in the buffer list. Besides, I'm now more able to reproduce the original issue: I open one of my perl-based org files, and it takes a lot, then I switch to overview and it requires almost a minute to collapse all the headings. Never seen nothing like this before. Luca
Re: emacs really slow when inserting a new source code block
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 steps in the right order, and my message buffer tells the profiler has been stopped after the write profiler fails: CPU and memory profiler started Mark set Auto-saving...done Saving file /home/luca/git/talks/perl/perl5/PERL-VARIABILI.org... Wrote /tmp/.!home!luca!git!talks!perl!perl5!PERL-VARIABILI.org.~undo-tree~ Wrote /home/luca/git/talks/perl/perl5/PERL-VARIABILI.org syntax error Saving file /home/luca/git/talks/perl/perl5/examples/autovivification.pl... Wrote /tmp/.!home!luca!git!talks!perl!perl5!examples!autovivification.pl.~undo-tree~ Wrote /home/luca/git/talks/perl/perl5/examples/autovivification.pl Mark activated Mark deactivated Mark activated Saving file /home/luca/git/talks/perl/perl5/examples/autovivification.pl... Wrote /tmp/.!home!luca!git!talks!perl!perl5!examples!autovivification.pl.~undo-tree~ Wrote /home/luca/git/talks/perl/perl5/examples/autovivification.pl Mark set Auto-saving...done Saving file /home/luca/git/talks/perl/perl5/PERL-VARIABILI.org... Wrote /tmp/.!home!luca!git!talks!perl!perl5!PERL-VARIABILI.org.~undo-tree~ Wrote /home/luca/git/talks/perl/perl5/PERL-VARIABILI.org profiler-write-profile: Wrong type argument: arrayp, nil CPU and memory profiler stopped Reverted buffer > Another thing you can try is setting org-src-fontify-natively to nil in > your config. > I'm trying it right now, after reverting the buffer I was editing (I applied it with M-x set-variable). I will see if I suffer from other slowing down. Thanks, Luca
Re: emacs really slow when inserting a new source code block
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 profiler report written. However, I discovered that, for instance, when I'm editing a piece of code with regexp Emacs seems to suffer, at least it is the only chances I had today to get it slower. The messages buffer does not help very much: CPU and memory profiler started End of ‘m/ ... /’ string/RE not found: (scan-error Unbalanced parentheses 74 82) Auto-saving...done CPU and memory profiler stopped profiler-write-profile: Wrong type argument: arrayp, nil As you can see, I cannot save the profiler report, neither by placing a filename, nor leaving it to save in the current directory of the file I'm editing. Oh, I also tried to disable flyspell, but it seems to me it gets re-enabled for the source code block I'm within (but it's just a feeling). Any idea? Luca
emacs really slow when inserting a new source code block
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 only this: Starting new Ispell process aspell with default dictionary...done Error enabling Flyspell mode: (No Ispell process to read output from!) This puzzles me because the language of my org document is set to "it", but I never found such a big problem before. I've tried other type of source blocks, and while they appear to behave smoothier, whenever I edit "#+end_src" Emacs has a freeze, and in fact in the screen I see only "#+end_s" and after a second the line completes. I'm running GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) with org-mode 9.5.5. Anything I can inspect? Thanks, Luca
Re: toggle-truncate-lines outside table and source regions
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 text, and not tables nor code. AM I misunderstanding your suggestion? Luca
toggle-truncate-lines outside table and source regions
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: org to beamer structure not working
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 C-e l P). Sorry for the noise. Luca
org to beamer structure not working
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 ltoc:t mouse:underline buttons:0 path:https://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+HTML_LINK_UP: #+HTML_LINK_HOME: #+startup: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [bigger] #+BEAMER_FRAME_LEVEL: 2 therefore I would like to have a frame for ever second level title. My org file is: * Intro ** Slide 1 Text 1 ** Slide 2 Text 2 The result in latex is: \section*{Intro} \label{sec:org32f3cbe} \subsection*{Slide 1} \label{sec:org7e597e3} Text 1 \subsection*{Slide 2} \label{sec:orgb9aff87} Text 2 that makes everything appearing on the same slide without a title and a clear separation between frames. I've tried working with BEAMER_FRAME_LEVEL but apparently no one value from 1 to 3 is working. What am I missing? Thanks, Luca
Re: emphasizing source code words
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
emphasizing source code words
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
[O] export file within a folder (and possibly with a pattern)
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 chance to place a pattern (e.g., timestamp) in the name of the exported file? Thanks, Luca
[O] export code snippet in beamer with different fonts
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 highlight seems not to work, all the text is made in fixed size font but in plain back (no keyword highlighted). How can I circumvent this? 2) is it possible to tella latex to export the snippet at the max size available in the page? Something like #+LaTeX: \resizebox{\textwidth}{!}{ ... } that I place around my tables. Thanks, Luca
Re: [O] export to beamer with heading 1 as separators
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: \newtranslation[to=italian]{Subsection}{} #+latex_header: \selectlanguage{italian} #+latex_header: \AtBeginSection[]{\begin{frame}{}\sectionpage\end{frame}} #+latex_header: \AtBeginSubsection[]{\begin{frame}{}\subsectionpage\end{frame}} If I can remove the numbering from second level heading, keeping the \subsectionpage title information, that would be perfect! Thanks, Luca
Re: [O] export to beamer with heading 1 as separators
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: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+startup: beamer #+LaTeX_CLASS: beamer #+latex_header: \AtBeginSection[]{\begin{frame}FO\end{frame}} #+BEAMER_FRAME_LEVEL: 3 * First Argument ** Introduction *** Installing Here instructions on how to install *** Check installation Run the program test ** Usage *** Main command line option #+begin_src foo --bar #+end_src Now, all my slides are at heading level 3, so the option should be H:3. So far so good, how can I make heading level 1 and 2 appear as separate slides? I've tried to play around with beamer_frame_level without any success. Also the F in the at-begin-section is not appearing anywhere in the presentation (and I cannot find it in the latex buffer). Suggestions? Thanks, Luca
[O] export to beamer with heading 1 as separators
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 want to have "License", "Arg 0" and "arg 1" as slides with title on the center (if possible). What directive should I use? Thanks, Luca
Re: [O] export outside of emacs
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] export outside of emacs
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
[O] hwo to use different font size and emphasis in src snippets?
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 300 tuples (6%) done (elapsed 0.14 s, remaining 1.94 s) 30 of 300 tuples (10%) done (elapsed 0.18 s, remaining 1.66 s) ... vacuuming... creating primary keys... creating foreign keys... done. #+end_src I would like to: 1) put an emphasis on the command line (first line), let's say to put it in bold; 2) use a smaller font for the command output without reducing the font size of the command line. Of course, the export is in beamer. Is it possible? Any suggestions? Thanks, Luca
Re: [O] from org to openoffice presentations (or make org looks like openoffice)
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 modify this to your satisfaction. Note the > naming of the beamer theme file and how you refer to it in the org file. Thanks a lot, I'm refactoring it to my needs but it is a very good starting point. However, I had to place a \usepackage{tikz} in the theme file to make it compile. Now, the first question is: is there a way I define the image width to automatically adjust to the slide size? Something like the following almost work: \node[inner sep=0pt,above,left] (logo) at (\paperwidth,8pt) {\includegraphics[width=\paperwidth]{images/logo.png}}; but the image does not keep proportions. It would be better to enlarge the image from right to left up to all the space before the page numbering. Any hint? Thanks, Luca
Re: [O] from org to openoffice presentations (or make org looks like openoffice)
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 such footer so sometimes text can overlap with the footer. If I isolate the footer as a separate image, how can I specify to place it to the bottom of each slide and have beamer not placing controls and other text on the slides? 2) I usually provide two sets of slides, one dark and one light (printable), and therefore I suspect to provide two different backgrounds and duplicate my org file for each theming accordingly. Any better idea? If I can isolate the footer (which is what makes the slides look like what is requested), is there a way to apply say a color as background and do a "variable"-based export to beamer choosing the color as option? By the way, things were even worst of how I described them: the template was Microsoft Office (not even Open Office)! Thanks, Luca
[O] from org to openoffice presentations (or make org looks like openoffice)
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 seems nothing so weird exists on earth. My second thought was to put the template as a background image on all my slides, but this is a little complicated considered my knowledge of LaTeX and beamer (and that's why I'm using org!). Assuming none of the above two can be answered, is there a path to get things done? Like converting from org to markdown and then to open office? Anyone has a suggestion or an hint? (and no, I don't want to rewrite my slides in open office because they will become quickly unmantainable!). Thanks, Luca
[O] reformatting a quite large table
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, Luca
Re: [O] help with beamer and org: pictures alignment and size
On Wed, Aug 30, 2017 at 12:52 PM, Eric S Fragawrote: > 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 > >>- [[./images/debian.png]] >>- [[./images/redhat.png]] Thanks, it provided me a good hint, so that now my slide is as follows (I nuked the list): ** My slide #+ATTR_LATEX: :width 0.2\textwidth [[./images/debian.png]] [[./images/redhat.png]] [[./images/cisco.png]] [[./images/skype.png]] The above applies to all the images at once (I can confirm in the case of a list you have to apply it to every item). Anyway, I suspect I'm running a quite old org-mode: 9.0.2. Try to update it now. Thanks, Luca
[O] help with beamer and org: pictures alignment and size
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]] - [[./images/redhat.png]] The problem is that the images are displayed at the biggest size available, going over the slide borders. What am I missing to adapt the images? Thanks, Luca
Re: [O] no beamer export?
On Wed, May 17, 2017 at 3:41 PM, Jérémie Justewrote: > Hello, > > M-x beamer-mode. Thanks, it worked! Luca
[O] no beamer export?
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 I missing something? Thanks, Luca
[O] latex formula error when nested into a list?
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} produces the following latex error: ! Package amsmath Error: Erroneous nesting of equation structures; (amsmath)trying to recover with `aligned'. while removing the list bullet makes it working. Am I doing something wrong? Is it possible to nest formulas into lists? Luca
Re: [O] cannot export to openoffice
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] cannot export to openoffice
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] Invalid specification of styles.xml: nil
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] Invalid specification of styles.xml: nil
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, Luca
Re: [O] some key sequence transform my text in outline
Apparently I found the sequence that lead to the problem: I opened a #+begin_src on a line and then pressed TAB on such line. This folded the following text until a new #+end_src is found, masking whole sections. The problem is that this is no more able to be expanded. However, editing the text 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ł(a): 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 the text below the cursor position, transforming it into an outline block and therefore showing me three dots. The problem is that I'm unable to expand it anymore with TAB, and moreover I cannot delete it without killing the whole outline itself. I'm sure I've not pressed the SHIFT+TAB sequence, that apparently does the same but allows me to expand the outline, while the one I'm getting is not expandable in the ordinary way. I know this is not a detailed explaination, but I don't understand exactly what I (wrongly) activated. Any suggestion? C-h l (or M-x view-lossage) Thanks, Luca Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
[O] some key sequence transform my text in outline
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 the text below the cursor position, transforming it into an outline block and therefore showing me three dots. The problem is that I'm unable to expand it anymore with TAB, and moreover I cannot delete it without killing the whole outline itself. I'm sure I've not pressed the SHIFT+TAB sequence, that apparently does the same but allows me to expand the outline, while the one I'm getting is not expandable in the ordinary way. I know this is not a detailed explaination, but I don't understand exactly what I (wrongly) activated. Any suggestion? Thanks, Luca
[O] avoid subscripting text
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 behavior, and when I export it happens to me that LaTeX is used for a preliminary conversion. Is there a smart way to avoid escaping any underscore? Thanks, Luca
Re: [O] #+BEGIN_SRC problem when exporting
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 ![+-] 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 here? I'm using the org mode into Emacs 24.2.1. Thanks, Luca Hi Luca, Your example exports without problem with the latest version of Org-mode. Best, -- Eric Schulte http://cs.unm.edu/~eschulte
[O] #+BEGIN_SRC problem when exporting
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 here? I'm using the org mode into Emacs 24.2.1. Thanks, Luca
[O] inserting a path string fires the italic formatting
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 last slash in the second line. Suggestions? Thanks, Luca
Re: [O] inserting a path string fires the italic formatting
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 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 Suggestions? For example, by protecting those paths, declaring them as `org-code' or `org-verbatim', that is using the markers `=' or `~'; for example: - check ~/usr/bin/chmod~ - check ~/usr/bin/bla~ Best regards, Seb -- Sebastien Vauban
[O] #+STARTUP: content question
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 ** second *** TODO blah *** DONE blah ** third ... Is that possible using the #+STARTUP or org-startup-folded variable? Thanks, Luca
Re: [O] help advicing org-todo
This is great! Thanks, Luca (setq org-clock-in-switch-to-state STRT) (setq org-clock-out-switch-to-state DONE)
[O] using org mode and git efficiently
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 a feature. Also having the commit text being based on the org task one (or viceversa?) could be useful. Anyone has an hint on how to achieve a more org-to-git integration? I'm using magit to what it matters. Thanks, Luca
Re: [O] using org mode and git efficiently
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
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!) IMPLEMENTING(i!) | COMPLETED(c!)) )) and I'd like to start the clock each time the i (implementing) is chosen, stopping the clock each time the c (completed) is selected. However I've a little problem doing the advice because the argument is null and therefore I don't know which letter the user has pressed. Anyone can provide a little help? Thanks, Luca
Re: [O] help advicing org-todo
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) (org-clock-in) (if (or (string= state last-state) (string= state org-todo-fluca1978-suspended)) (org-clock-out) ) ) ) ;end of defun the problem is how to tell the org-todo-keyword to use variables instead of strings, since the following is not working: (setq org-todo-fluca1978-running IMPLEMENTING(i!) ) (setq org-todo-fluca1978-suspended SUSPENDED(s!) ) (setq org-todo-keywords '( (sequence FEATURE(f!) BUG(b!) 'org-todo-fluca1978-running 'org-todo-fluca1978-suspended | COMPLETED(c!)) )) What am I missing here? Thanks, Luca