Hi On Sun, 21 Jun 2026 at 12:50, Ihor Radchenko <[email protected]> wrote:
> "Pedro A. Aranda" <[email protected]> writes: > > > attached is a patch to enhance Org markup support in the LaTeX exporter. > > I needed it for a publication. > > I finally got to a proper review of this. > > > +*** LaTeX markup conventions > > + > > +#+cindex: @samp{Markup conventions, LaTeX} > > +#+vindex: org-latex-verb-is-verb > > +#+vindex: org-latex-quoted-verb > > ... > > I think that adding this kind of section is useful on its own, > regardless of the rest of the patch. > OK, let's progress with this... > > +*** ox-latex: Control whether =xxx= uses ~verb~ or ~texttt~ > > + > > +Two new custom variables have been introduced: > > +org-latex-verb-is-verb: Setting this to t will make =xx= result in > > +~\verb~ instead of ~\texttt~ > > +org-latex-quoted-verb: Surround ~\verb~ with double quotes (emualting > > +the texinfo exporter). > > As I mentioned in another email, I do not like the idea of layering > multiple defcustoms on top of `org-latex-text-markup-alist'. > Rather than creating new defcustoms I suggest expanding "special values" > in `org-latex-text-markup-alist' from `verb' and `protectedtexttt' to > `verb', `single-quoted-verb`, and `double-quoted-verb'. > So we would end up with verbatim being one of these three values only and drop protectedtexttt. Would make sense... Of course, with the ugliness of needing something like #+BEGIN_SRC emacs-lisp (setcdr (assoc 'verbatim org-latex-text-markup) <new_value>) #+END_SRC to change that... unless you don't object to a new custom with a getter function returning (cdr (assoc...)) and the setter function above. > > As for the complexity of setting `org-latex-text-markup-alist', I'd > rather split it into individual variables (possibly even adding > #+options: ... support for each markup element). That will make > customization easier for people who do not want to deal with the alist. > > WDYT? > > -- > Ihor Radchenko // yantar92, > Org mode maintainer, > Learn more about Org mode at <https://orgmode.org/>. > Support Org development at <https://liberapay.com/org-mode>, > or support my work at <https://liberapay.com/yantar92> > Best, /PA -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler "Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE! Year 2 of the New Koprocracy
