emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* verbatim/code text and line breaks with auto fill mode
@ 2014-03-07 10:45 Alan Schmitt
  2014-03-07 20:50 ` Nick Dokos
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Schmitt @ 2014-03-07 10:45 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-03-24 20:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07 10:45 verbatim/code text and line breaks with auto fill mode Alan Schmitt
2014-03-07 20:50 ` Nick Dokos
2014-03-08  7:58   ` Alan Schmitt
2014-03-08 12:12   ` Alan Schmitt
2014-03-10 11:09     ` Sebastien Vauban
2014-03-10 12:13       ` Nicolas Goaziou
2014-03-13 13:54         ` Bastien
2014-03-13 23:02           ` Nicolas Goaziou
     [not found]             ` <m2vbvhng0o.fsf@polytechnique.org>
2014-03-14 12:19               ` Alan Schmitt
2014-03-21  8:57             ` Bastien
     [not found]               ` <m2k3bnvp8p.fsf@polytechnique.org>
2014-03-21 10:57                 ` Alan Schmitt
2014-03-18 22:35     ` R. Michael Weylandt <michael.weylandt@gmail.com>
2014-03-24 20:47       ` Michael Weylandt

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).