emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Jason Lewis <jasonblewis@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: error exporting latex src block
Date: Wed, 16 Oct 2013 21:59:40 -0600	[thread overview]
Message-ID: <871u3kbl8z.fsf@gmail.com> (raw)
In-Reply-To: <525F3BC3.8020603@gmail.com> (Jason Lewis's message of "Thu, 17 Oct 2013 12:22:11 +1100")

Jason Lewis <jasonblewis@gmail.com> writes:

> Hi,
>
> If I try and export:
>
> #+BEGIN_SRC latex
> \\
> #+END_SRC
>
> as html from org-mode, it gives me the following error:
>
> face-attribute: Invalid face: font-lock-warning
>
> and fails to export anything.
>

Your example exports w/o problem for me with Org-mode version Org-mode
version 8.2.1.  I believe the problem on your system lies in the latex
fontification on your system.  Org-mode uses htmlize to export fontified
code to html, so you could try running htmlize-buffer from a latex-mode
buffer with "\\".

Hope this helps,

>
> Is this a bug or a feature?
>
> Is there any way I can include a double \\ in a latex SRC block?
>
> I'm using Org-mode version 8.2.1 (8.2.1-3-g35e5e5-elpa @
> /Users/jason/.emacs.d/elpa/org-20131007/)
>
> Thanks,
>
> Jason

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

  parent reply	other threads:[~2013-10-17  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17  1:22 error exporting latex src block Jason Lewis
2013-10-17  1:30 ` Jason Lewis
2013-10-17  1:40   ` Jason Lewis
2013-10-17  3:59 ` Eric Schulte [this message]
2013-10-17 10:50   ` Jason Lewis
2013-10-17 14:17     ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871u3kbl8z.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jasonblewis@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).