unofficial mirror of emacs-orgmode@gnu.org
 help / color / mirror / code / Atom feed
* [BUG] LaTeX: verbatim cannot be used in caption
@ 2021-06-06 18:26 Timothy
  2021-06-06 20:14 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Timothy @ 2021-06-06 18:26 UTC (permalink / raw)
  To: org-mode-email

Hi All,

In exactly the same vein as
https://orgmode.org/list/87mtujfj8k.fsf@tecosaur.com/, verbatim text in
captions is very problematic with LaTeX (breaks compilation).

I'd like to be submitting a patch instead of a bug, but I'm not sure
what the best method of addressing this within ox-latex.el is.
Do share if you have any ideas :)

--
Timothy


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

* Re: [BUG] LaTeX: verbatim cannot be used in caption
  2021-06-06 18:26 [BUG] LaTeX: verbatim cannot be used in caption Timothy
@ 2021-06-06 20:14 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2021-06-06 20:14 UTC (permalink / raw)
  To: Timothy; +Cc: org-mode-email

Hello,

Timothy <tecosaur@gmail.com> writes:

> In exactly the same vein as
> https://orgmode.org/list/87mtujfj8k.fsf@tecosaur.com/, verbatim text in
> captions is very problematic with LaTeX (breaks compilation).
>
> I'd like to be submitting a patch instead of a bug, but I'm not sure
> what the best method of addressing this within ox-latex.el is.
> Do share if you have any ideas :)

I guess the solution is like the problem you mentioned above. You can
create a temporary back-end that exports code and verbatim objects
as \textt, using `org-latex--protect-texttt' function.

The calls to `org-export-data' at the end of
`org-latex--caption/label-string' can use this back-end instead.

I think it would be better to derive current back-end instead of `latex'
like we did in `org-latex-headline'. You can get current back-end with
(plist-get info :back-end).

HTH,
-- 
Nicolas Goaziou


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

end of thread, other threads:[~2021-06-06 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-06 18:26 [BUG] LaTeX: verbatim cannot be used in caption Timothy
2021-06-06 20:14 ` Nicolas Goaziou

unofficial mirror of emacs-orgmode@gnu.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/orgmode/0 orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ https://yhetil.org/orgmode \
		emacs-orgmode@gnu.org
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


code repositories for project(s) associated with this inbox:

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

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git