emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] verbatim/code text and line breaks with auto fill mode


From: Alan Schmitt
Subject: [O] verbatim/code text and line breaks with auto fill mode
Date: Fri, 07 Mar 2014 11:45:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

Hello,

Is there a way to disable line breaks inside verbatim or code text when
using auto fill? For instance, if I type the following:

--8<---------------cut here---------------start------------->8---
This is an example of a long line when some stuff is code: ~1 + 2 + 3 =
6~.
--8<---------------cut here---------------end--------------->8---

The problem is that when exporting to latex, I get something that is not
correct (I'm only putting the relevant part of the exported file):

--8<---------------cut here---------------start------------->8---
This is an example of a long line when some stuff is code: \verb~1 + 2 + 3 =
6~.
--8<---------------cut here---------------end--------------->8---

Indeed compilation fails:
,----
| ! LaTeX Error: \verb ended by end of line.
| 
| See the LaTeX manual or LaTeX Companion for explanation.
| Type  H <return>  for immediate help.
|  ...                                              
|                                                   
| l.31 ...when some stuff is code: \verb~1 + 2 + 3 =
`----

Thanks,

Alan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]