From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Export of inline source blocks Date: Thu, 26 Sep 2013 10:51:08 -0600 Message-ID: <87ioxnr0g3.fsf@gmail.com> References: <87ob7fzjc0.fsf@cern.ch> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPEmd-0005Ae-IE for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 12:51:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPEmV-0006gJ-IU for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 12:51:19 -0400 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:62614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPEmV-0006fY-BZ for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 12:51:11 -0400 Received: by mail-pd0-f181.google.com with SMTP id g10so1401471pdj.26 for ; Thu, 26 Sep 2013 09:51:09 -0700 (PDT) In-Reply-To: <87ob7fzjc0.fsf@cern.ch> (Jacek Generowicz's message of "Thu, 26 Sep 2013 17:36:22 +0200") 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: Jacek Generowicz Cc: Org Mode Inline code blocks are meant for exporting results, not code. I don't believe Org-mode supports inline source-code export. I'd use simple verbatim markers instead. Cheers, Jacek Generowicz writes: > Hi, > > When exporting an org file containing the line > > ,---- > | Here is some source code: src_c++[:exports code]{int a;} It is inline. > `---- > > the following HTML is generated > > ,---- > | Here is some source code: #+BEGINSRC c++ > | int a; > | #+ENDSRC It is inline. > `---- > > which looks approximately like this > > ,---- > | Here is some source code: #+BEGINSRC c++ int a; #+ENDSRC It is inline. > `---- > > When rendered, as opposed to the desired > > ,---- > | Here is some source code: int a; It is inline. > `---- > > where the 'int a;' would be syntax highlighted, use a proportional font, > etc. > > Switching automitic subscripting off with > > ,---- > | #+OPTIONS: ^:{} > `---- > > doesn't improve the situation. The generated HTML is now > > ,---- > | Here is some source code: #+BEGIN_SRC c++ > | int a; > | #+END_SRC It is inline. > `---- > > which has the equally unsatisfactory visual appearance > > ,---- > | Here is some source code: #+BEGIN_SRC c++ int a; #+END_SRC It is inline. > `---- > > when rendered. > > The experiments were performed with org mode 8.2 on Emacs 24.3.50.1 > > > Could you point out my mistake, please? > > Thank you. > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D