[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Markup (=, ~) in word?
From: |
Göktuğ Kayaalp |
Subject: |
Re: [O] Markup (=, ~) in word? |
Date: |
Thu, 29 Oct 2015 17:23:12 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
On Thu, Oct 29 2015 at 5:07:55 pm EEST, Rainer M Krug <address@hidden> wrote:
> Göktuğ Kayaalp <address@hidden> writes:
>
>> On Thu, Oct 29 2015 at 2:21:17 pm EEST, Rainer M Krug <address@hidden>
>> wrote:
>>> Matt Price <address@hidden> writes:
>>>
>>>> #+BEGIN_VERBATIM
>>>> simASM.=SITE=.=STRATEGY=.=BUDGET=.=FIREREGIME=.=JOBID=.=ARRAYID=
>>>> #+END_VERBATIM
>>>
>>> The other way round:
>>>
>>> I want the text, e.g. =SITE= as the markup, and not the whole text as
>>> verbatim - sorry for not being clear about what I want.
>>>
>>> Rainer
>>>
>>
>> AFAIK that is impossible out of the box, Org does not allow inter-word
>> markup, as there is no escaping in the syntax. In the thread with
>> subject *Some projects* on this list they talk also about adding
>> escaping. You can still add some inline LaTeX for that though, I think,
>> or maybe you can tweak `org-emphasis-regexp-components', (also, see
>> [1]):
>
> Thanks a lot for confirming my suspicion,
You're welcome. Though I'm not that well-versed in Org, I merely use
it, maybe someone will have a suggestion that's less-known.
-gk
>
> Rainer
>
>>
>> ,----[ C-h v org-emphasis-regexp-components RET ]
>> | org-emphasis-regexp-components is a variable defined in `org.el'.
>> | Its value is (" ('\"{" "- .,:!?;'\")}\\" "
>> | ,\"'" "." 1)
>> |
>> | Documentation:
>> | Components used to build the regular expression for emphasis.
>> | This is a list with five entries. Terminology: In an emphasis string
>> | like " *strong word* ", we call the initial space PREMATCH, the final
>> | space POSTMATCH, the stars MARKERS, "s" and "d" are BORDER characters
>> | and "trong wor" is the body. The different components in this variable
>> | specify what is allowed/forbidden in each part:
>> |
>> | pre Chars allowed as prematch. Beginning of line will be allowed
>> too.
>> | post Chars allowed as postmatch. End of line will be allowed too.
>> | border The chars *forbidden* as border characters.
>> | body-regexp A regexp like "." to match a body character. Don't use
>> | non-shy groups here, and don't allow newline here.
>> | newline The maximum number of newlines allowed in an emphasis exp.
>> |
>> | You need to reload Org or to restart Emacs after customizing this.
>> |
>> | [back]
>> `----
>>
>>> [...]
>>
>> [1] http://orgmode.org/worg/dev/org-syntax.html#Emphasis_Markers
>>
>> Regards,
>> -gk
--
İ. Göktuğ Kayaalp.
http://gkayaalp.com/
Re: [O] Markup (=, ~) in word?, Rasmus, 2015/10/29