Re: [O] Wrapping section within LaTeX environment

2015-12-16 Thread Xavier Garrido
Hi Robert, Le 16/12/2015 04:41, Robert Klein a écrit : Hi On 12/13/2015 03:00 PM, Xavier Garrido wrote: Dear orgers, I would like to wrap a given org section between =\begin,\end= LaTeX environment. These sections are identified by a special tag :correction: and to initiate the =\begin= flag

Re: [O] Wrapping section within LaTeX environment

2015-12-13 Thread Xavier Garrido
g-export-filter-headline-functions 'cpp-correction-headline) #+END_SRC is doing what I want. So thanks for the insights and sorry for the noise. Xavier Xavier Garrido writes: Dear orgers, I would like to wrap a given org section between =\begin,\end= LaTeX environment. These sections are ide

[O] Wrapping section within LaTeX environment

2015-12-13 Thread Xavier Garrido
Dear orgers, I would like to wrap a given org section between =\begin,\end= LaTeX environment. These sections are identified by a special tag :correction: and to initiate the =\begin= flag I have basically no problem by using the org-export-filter-headline-function filter. The problem comes w

Re: [O] Calling a source block with raw results

2015-01-04 Thread Xavier Garrido
Hi Tom, Le 04/01/2015 21:29, Thomas S. Dye a écrit : Aloha Xavier, Xavier Garrido writes: Since I am explicitly writing all the org code, I would like to call the function and gets a *raw* results by doing #+CALL: org-figure-to-slide[:exports none :results raw]() I think the problem is

[O] Calling a source block with raw results

2015-01-04 Thread Xavier Garrido
Dear Orgers, The following shell function lists the files within a directory and for each file, write a org piece of code to include it. #+NAME: org-figure-to-slide #+HEADERS: :var title="Empty title" #+HEADERS: :var dir="./figures" :var ext="*.pdf" #+HEADERS: :var options="" #+BEGIN_SRC sh

Re: [O] Repeated teaching classes and stopping date

2014-11-11 Thread Xavier Garrido
Hi Rasmus, Le 10/11/2014 18:37, Rasmus a écrit : Hi Xavier, Xavier Garrido writes: I'm trying to move to =org-agenda= and I'm converting some of my Google Calendar entries into Org agenda entries. I'm facing an issue with repeated tasks and how to properly stop the even

[O] Repeated teaching classes and stopping date

2014-11-10 Thread Xavier Garrido
Dear Orgers, I'm trying to move to =org-agenda= and I'm converting some of my Google Calendar entries into Org agenda entries. I'm facing an issue with repeated tasks and how to properly stop the event. Consider the following entry : * [Master 1] Nuclear & particle class <2015-01-21 mer. 14:

Re: [O] [patch, ox] #+INCLUDE resolves links

2014-10-02 Thread Xavier Garrido
Hi, Following the discussion here http://article.gmane.org/gmane.emacs.orgmode/91322/match=improved+way, I have quickly tested the patch and it perfectly fits my needs. So thanks again. Just one remark : there is an undefined @ref tag in org.texi (line 10011) file that should referred to "s

Re: [O] Improved way to include some headlines from an external org file

2014-09-30 Thread Xavier Garrido
Hi Rasmus, Le 01/10/2014 01:10, Rasmus a écrit : Hi Xavier, You could test the patch here: http://permalink.gmane.org/gmane.emacs.orgmode/91307 I am following the discussion since the beginning (and all your exchange with Nicolas) I think it introduces something close to what you a

Re: [O] Improved way to include some headlines from an external org file

2014-09-30 Thread Xavier Garrido
Hi Andrea, Le 30/09/2014 21:55, Andrea Rossetti a écrit : Xavier Garrido writes: Is there a way ... ... to write something like that ... #+BEGIN_SRC org #+INCLUDE: "./base.org" :headline "First base chapter" ,* A more personal chapter #+INCLUDE: "./base.org"

Re: [O] CV in orgmode for export to pdf (and html?)

2014-09-20 Thread Xavier Garrido
Hi Rainer, You can see mine https://github.com/xgarrido/org-resume that uses org-mode to produce a LaTeX->PDF (see attached file) file as well as an HTML version. Hope it gives you some ideas. Cheers, Xavier Le 19/09/2014 11:18, Rainer M Krug a écrit : Hi I am looking for examples / templ

Re: [O] Improved way to include some headlines from an external org file

2014-09-13 Thread Xavier Garrido
Hi Andrea, Le 12/09/2014 02:45, Andrea Rossetti a écrit : Xavier Garrido writes: Of course, I can achieve that by using =:lines= and calculating how many lines embeds the given headline. Hi Xavier, another possible approach (maybe less handy, but in some cases it might fit): the user

[O] Improved way to include some headlines from an external org file

2014-09-11 Thread Xavier Garrido
Dear Orgers, By following discussions on this list, I think I have understood that the inclusion mechanism through =#+INCLUDE= directive is a bit rough and only allows a limited range of use. I know how to include only lines using =:lines= parameter but what I would like to achieve is to only

Re: [O] Insert a line separator in table results

2014-07-16 Thread Xavier Garrido
This also works for me. Thanks for your help, Xavier Le 17/07/2014 00:37, Arun Persaud a écrit : This works for me. #+BEGIN_SRC python x = [["label 1", "label 2", "label 3"]] x.append(None) x.append((4, 5, 6)) x.append((7, 8, 9)) return (x) #+END_SRC #+RESULTS: | labe

Re: [O] Insert a line separator in table results

2014-07-16 Thread Xavier Garrido
Dear Thorsten, I would like to be able to do it with =python=... Maybe it is only possible with =emacs-lisp= as you suggest. Xavier Le 16/07/2014 21:15, Thorsten Jolitz a écrit : Xavier Garrido writes: Dear orgers, I would like to programmatically insert a line separator when generating

[O] Insert a line separator in table results

2014-07-16 Thread Xavier Garrido
Dear orgers, I would like to programmatically insert a line separator when generating a table result. Below is a minimal working example with =python= src block #+BEGIN_SRC python x = [("label 1", "label 2", "label 3"), ("-", "-", "-")] x.append((4, 5, 6)) x.append((7, 8, 9)) return (x

[O] Enumeration within environment block

2014-05-17 Thread Xavier Garrido
Dear orgers, I am using org-mode to write teaching class corrections in order to get them properly exported in pdf and html. What I would like to do is to insert not only the answer but also the questions. So, I have created a "question" environment as shown below #+BEGIN_SRC org #+TITLE: Qu

Re: [O] CUA copy/paste within code block

2014-04-18 Thread Xavier Garrido
Hi Bastien, Le 18/04/2014 13:01, Bastien a écrit : Hello Xavier, I can't reproduce this with latest Org and Emacs. What version of Emacs/Org are you using? I use the latest git version but you are right I can't also reproduce the problem when I am running emacs with minimal setup namely em

[O] CUA copy/paste within code block

2014-04-18 Thread Xavier Garrido
Dear orgers, I am a CUA mode user and when I want to copy/paste a line or block of code within a org-babel code block, I always get back to the beginning of the code block after pasting. For example, assume you have the following piece of code echo "coucou" #+BEGIN_SRC sh for i in {0..10} d

[O] Bug : Subscripting not properly working

2014-03-29 Thread Xavier Garrido
Dear Orgers, I get a strange behavior when using subscripting /i.e./ =_= char. Here is a minimal example subscripting.org #+OPTIONS: ^:{} The file a_b_c works. The file a_b_c_d does not work. The file =a_b_c_d= works again. When exporting to pdf through LaTeX, the first an

Re: [O] Bad footnotes when including org files

2014-03-26 Thread Xavier Garrido
Hi Nicolas, Le 26/03/2014 15:41, Nicolas Goaziou a écrit : Hello, Xavier Garrido writes: Thanks for your answer. Maybe I will try your solution. Otherwise I will run a "before-parse-hook" to change fn:XX to something unique (by adding buffer name for example. We could do it

Re: [O] Bad footnotes when including org files

2014-03-16 Thread Xavier Garrido
Hi James, Thanks for your answer. Maybe I will try your solution. Otherwise I will run a "before-parse-hook" to change fn:XX to something unique (by adding buffer name for example. Thanks again, Xavier Le 16/03/2014 02:32, James Harkins a écrit : Xavier Garrido gmail.com>

[O] Bad footnotes when including org files

2014-03-15 Thread Xavier Garrido
Hi Orgers, I am having some troubles with several org files that I want to include into one general org file. To do that I use the #+INCLUDE: keywords and actually, everything is working well until I add some footnotes in both files. Let me show you a minimal example where the footnote numberi

Re: [O] Exporting LaTeX source blocks with HTML backend

2014-03-03 Thread Xavier Garrido
Le 03/03/2014 21:54, Richard Lawrence a écrit : Xavier Garrido writes: #+BEGIN_SRC latex \begin{align*} x&=x\\ y&=y \end{align*} #+END_SRC When I export this using the HTML exporter, the LaTeX code is wrapped in a with class="org-src-co

Re: [O] Exporting LaTeX source blocks with HTML backend

2014-03-03 Thread Xavier Garrido
th latex and html export. This one works. Thanks for your help. Xavier Best, Ista On Mon, Mar 3, 2014 at 2:39 PM, Xavier Garrido wrote: Hi Richard, Le 03/03/2014 20:24, Richard Lawrence a écrit : I am facing one issue when I am exporting from orgmode to html. I like to write LaTeX cod

Re: [O] Exporting LaTeX source blocks with HTML backend

2014-03-03 Thread Xavier Garrido
Hi Richard, Le 03/03/2014 20:24, Richard Lawrence a écrit : I am facing one issue when I am exporting from orgmode to html. I like to write LaTeX code within #+BEGIN_SRC latex ... #+END_SRC block mainly to take benefit/advantage of the syntax highlighting (debugging long LaTeX equations is "simp

[O] Exporting LaTeX source blocks with HTML backend

2014-03-03 Thread Xavier Garrido
Dear Orgers, I am facing one issue when I am exporting from orgmode to html. I like to write LaTeX code within #+BEGIN_SRC latex ... #+END_SRC block mainly to take benefit/advantage of the syntax highlighting (debugging long LaTeX equations is "simpler"). The problem is that these code blocks

[O] [BUG] LaTeX command inside TITLE

2013-12-24 Thread Xavier Garrido
Hi Orgers, I just pull the latest git commit from orgmode and I face a strange behavior when exporting orgmode document to LaTeX to PDF. Here is a very minimal orgmode file #+BEGIN_SRC org #+TITLE: Using \alpha or \beta in orgmode title #+END_SRC when running emacs -q over this file and then

Re: [O] Replace EMAIL keyword by some LaTeX command

2013-10-14 Thread Xavier Garrido
Hi Rasmus, It works like a charm ! Thanks a lot for the trick and for your help. Xavier Le 15/10/2013 02:11, Rasmus a écrit : #+BEGIN_SRC Org #+TITLE: LaTeX test #+AUTHOR: toto #+EMAIL: t...@toto.org #+LATEX_HEADER: \usepackage{nopkg} #+OPTIONS: with-email: t Note that 1. email is insert

[O] Replace EMAIL keyword by some LaTeX command

2013-10-14 Thread Xavier Garrido
Dear Orgers, I would like to use the EMAIL keyword from an orgmode file and translate it into a LaTeX command I have defined. To understand what I would like to achieve is to have an org mode file with #+BEGIN_SRC org #+TITLE: LaTeX test #+AUTHOR: toto #+EMAIL: t...@toto.org #+END_SRC and

Re: [O] Exporting C++ code block to html

2013-09-28 Thread Xavier Garrido
Hi Eric, Setting this variable manually from the command line with the following fixes this problem for me. emacs --batch --eval "(progn (add-to-list 'load-path \"~/src/org-mode/lisp\") (require 'org) (add-to-list 'load-path \"~/src/org-mode/contrib/lisp\")(require 'htmlize) (setq c-standard

[O] Exporting C++ code block to html

2013-09-27 Thread Xavier Garrido
Dear Orgers, I face a problem when I want to 'html' export a pretty simple org file : test.org contains the following lines #+BEGIN_SRC c++ int j= 1; #+END_SRC If I do emacs --batch -q --eval '(require (quote org))' --visit test.org \ --funcall org-html-export-to-html I get Loading vc-git.

Re: [O] Using different image format given the export backend

2013-07-01 Thread Xavier Garrido
Hi Vincent, Thanks for the trick. Until I found something else I will try it ;) Xavier Le 01/07/2013 21:22, Vincent Beffara a écrit : Hello, #+CAPTION: Toto figure #+NAME: fig::toto #+ATTR_LATEX: :width 0.38\textwidth #+BEGIN_SRC emacs-lisp :exports results :results value raw (case (and

[O] [PATCH] ox-latex.el: Wrap table into figure environment

2013-07-01 Thread Xavier Garrido
Hi Orgers, Since I did not find another way to do it, I would like to submit the following patch diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 09928a4..3da2dd5 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2333,6 +2333,7 @@ This function assumes TABLE has `org' as its `:ty

Re: [O] Writing microsecond time unit

2013-07-01 Thread Xavier Garrido
Thanks a lot Thomas, it works like a charm. Le 01/07/2013 09:11, Thomas Holst a écrit : Hi Xavier, · Xavier Garrido wrote: Dear Orgers, I would like to do something very simple such as writing microsecond unit but I fail. I try different way (\mu\nbsp s, $\mu$s, \mu s) but always get a

[O] Writing microsecond time unit

2013-06-30 Thread Xavier Garrido
Dear Orgers, I would like to do something very simple such as writing microsecond unit but I fail. I try different way (\mu\nbsp s, $\mu$s, \mu s) but always get a whitespace between the µ symbol and the second symbol. The only working version is $\mu\text{s}$ which gives me a pure LaTeX code

Re: [O] [PATCH][ox-koma-letter]: sender, email and cleanup

2013-05-27 Thread Xavier Garrido
Hi Viktor, Please check the values of `org-koma-letter-email' and `org-koma-letter-author'. They should be set to nil if you have these settings defined in an LCO file and do not want to set them in the generated TeX sources. I use such a setup and the latest master branch is working for me. O

Re: [O] [PATCH][ox-koma-letter]: sender, email and cleanup

2013-05-27 Thread Xavier Garrido
Hi koma-letterers, Patches: 1. summarizes all changes in author. It uses my solution as mentioned above. 2. full support for after closing keywords. See commit message 3. signature to nil 4. change handling of subject and allow for setting subject in OPTION-line. I'm going to apply the patc

Re: [O] Disable auto-fill-mode within code block

2013-03-06 Thread Xavier Garrido
Thanks Bastien for your prompt answer. For the time being, I prefer to wait the 8.0 release. Xavier Le 06/03/2013 12:41, Bastien a écrit : Hi Xavier, Xavier Garrido writes: If there a way to disable auto-fill-mode within org-babel code block ? I had look through the FAQ as well as search

[O] Disable auto-fill-mode within code block

2013-03-06 Thread Xavier Garrido
Hi orgers, If there a way to disable auto-fill-mode within org-babel code block ? I had look through the FAQ as well as search in the mailing list archives but do not find any related answers. I am using org version 7.8.11. Thanks for your help, Xavier

[O] Automagically send all org table

2013-01-14 Thread Xavier Garrido
Hi orgmoders, I am looking for a simple way to SEND all org tables in a given document to their RECEIVER counterparts. Of course, I can go through the whole document and do `org-table-send` one-by-one but I would like to do it without opening the document and for all tables at the same time. I