From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: [odt] Export of LaTeX Fragments Date: Mon, 23 Apr 2012 14:30:01 -0300 Message-ID: <4f95919d.e41c340a.0358.78e9@mx.google.com> References: <87vckq1ozv.fsf@gnu.org> <87mx621o6a.fsf@altern.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMN5a-0000va-HO for emacs-orgmode@gnu.org; Mon, 23 Apr 2012 13:30:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMN5U-0002Uq-Rk for emacs-orgmode@gnu.org; Mon, 23 Apr 2012 13:30:13 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:42693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMN5U-0002SO-Kb for emacs-orgmode@gnu.org; Mon, 23 Apr 2012 13:30:08 -0400 Received: by vcbfy7 with SMTP id fy7so3826781vcb.0 for ; Mon, 23 Apr 2012 10:30:06 -0700 (PDT) In-Reply-To: <87mx621o6a.fsf@altern.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Org Mode Mailing List Since org already accepts \SomeCommandName, maybe org-mode could provide some very basic functionality for the user to provide definitions for these macros for each (desired) output format. For instance, there could be a list similar to #+begin_src emacs-lisp ( ("somecommand" :html 'somecommand-html-export :latex ; somecommand-latex-export :buffer 'somecommand-buffer-change) ("someothercomand" :html someothercomand-html-export) ) #+end_src The export function definitions should be provided by the user for each desired export format and any unspecified format should do what org-mode does right now. The "buffer" format would be a function for changing the way the command (and its argument) look in the org-buffer. I'm no lisp programmer and this is probably no the best way to implement this feature, but I think this flexibility could allow orgers to tweak org-mode to their needs easily. -- Darlan At Mon, 23 Apr 2012 17:08:13 +0200, Bastien wrote: > > Torsten Wagner writes: > > > However, whats with "\," "\mbox{}" "\noindent" and maybe some others? > > They helped me to tweak the formatting at some points where the > > standard stuff did not make much sense. > > There commands are meaningful in a TeX context, and there is not > necessary a precise translation of their meanings in other contexts > like ODT documents. > > In Org file, it is better to stick to Org syntax -- even if some > flexibility is allowed with \noindent and friends while converting > to LaTeX. > > -- > Bastien >