From: "Francesco Pizzolante" <fpz-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
To: mailing-list-org-mode <emacs-orgmode-mXXj517/zsQ@public.gmane.org>
Subject: Defining a new emphasis
Date: Mon, 07 May 2012 10:28:54 +0200 [thread overview]
Message-ID: <4gd36gl7i1.fsf@somewhere.org> (raw)
Hi,
I'm trying to define a new emphasis that would work like org-code (=) except
that it would export to \textsf instead of \texttt in LaTeX.
I tried several combinations using org-emphasis-alist and
org-export-latex-emphasis-alist, but I must admit that I'm lost amongst all
parameters controlling how the emphasis is processed:
- org-emphasis-alist defines a 'verbatim' optional parameter
- org-export-latex-emphasis-alist defines a protected (t/nil) parameter
- special format string like \\verb or \\protectedtexttt may also be used
Here are tests I've made (using the option ^:nil) with this reference string
=look_at:my~ti ny\reference^string=:
| verbatim | protected | format string | Resulting LaTeX code | Comment |
|----------+-----------+-------------------+---------------------------------------------------------------------------------------+-----------------------------|
| no | nil | \\textsf{%s} | look\_{}at:my\~{}ti ny\reference\^{}string | OK except for the backslash |
| no | t | \\textsf{%s} | look_at:my~ti ny\reference^string | NOT OK |
| yes | nil | \\textsf{%s} | look_at:my~ti ny\reference^string | NOT OK |
| yes | t | \\textsf{%s} | look_at:my~ti ny\reference^string | NOT OK |
| yes | nil | \\protectedtexttt | look\_at:my\textasciitilde\{}ti ny\textbackslash\{}reference\textasciicircum\{}string | NOT OK |
| yes | t | \\protectedtexttt | look\_at:my\textasciitilde{}ti ny\textbackslash{}reference\textasciicircum{}string | OK |
I would like to get the exact same output as == gives (no interpretation of
the chars I write) except that I'd like to use \textsf instead of \texttt but
I can't find the right combination for the parameters (verbatim, protected) to
achieve this goal.
Any help or comment is welcome.
Thanks a lot.
Francesco
next reply other threads:[~2012-05-07 8:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 8:28 Francesco Pizzolante [this message]
2012-05-07 9:28 ` Defining a new emphasis Nicolas Goaziou
[not found] ` <87lil449xx.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-05-07 10:23 ` Francesco Pizzolante
2012-05-07 10:39 ` Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4gd36gl7i1.fsf@somewhere.org \
--to=fpz-djc/ipccudyqhejpep6iedvlejwurmry@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.