* Markup (=, ~) in word? @ 2015-10-29 11:06 Rainer M Krug 2015-10-29 11:11 ` Matt Price 2015-10-29 20:40 ` Rasmus 0 siblings, 2 replies; 10+ messages in thread From: Rainer M Krug @ 2015-10-29 11:06 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 843 bytes --] Hi I guess this is not possible (and has been asked before, but I can't find it t the moment...)- but how can I export the following markup? --8<---------------cut here---------------start------------->8--- simASM.=SITE=.=STRATEGY=.=BUDGET=.=FIREREGIME=.=JOBID=.=ARRAYID= --8<---------------cut here---------------end--------------->8--- Export will be mainly LaTeX, but maybe also html. Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 454 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Markup (=, ~) in word? 2015-10-29 11:06 Markup (=, ~) in word? Rainer M Krug @ 2015-10-29 11:11 ` Matt Price 2015-10-29 11:21 ` Rainer M Krug 2015-10-29 20:40 ` Rasmus 1 sibling, 1 reply; 10+ messages in thread From: Matt Price @ 2015-10-29 11:11 UTC (permalink / raw) To: Rainer M Krug; +Cc: Org Mode [-- Attachment #1: Type: text/plain, Size: 1062 bytes --] #+BEGIN_VERBATIM simASM.=SITE=.=STRATEGY=.=BUDGET=.=FIREREGIME=.=JOBID=.=ARRAYID= #+END_VERBATIM ? not perfect, but... On Thu, Oct 29, 2015 at 7:06 AM, Rainer M Krug <Rainer@krugs.de> wrote: > Hi > > I guess this is not possible (and has been asked before, but I can't > find it t the moment...)- but how can I export the following markup? > > --8<---------------cut here---------------start------------->8--- > simASM.=SITE=.=STRATEGY=.=BUDGET=.=FIREREGIME=.=JOBID=.=ARRAYID= > --8<---------------cut here---------------end--------------->8--- > > > Export will be mainly LaTeX, but maybe also html. > > Thanks, > > Rainer > > -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation > Biology, UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D): +49 - (0)3 21 21 25 22 44 > > email: Rainer@krugs.de > > Skype: RMkrug > > PGP: 0x0F52F982 > [-- Attachment #2: Type: text/html, Size: 1962 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Markup (=, ~) in word? 2015-10-29 11:11 ` Matt Price @ 2015-10-29 11:21 ` Rainer M Krug 2015-10-29 14:04 ` Göktuğ Kayaalp 2015-10-29 17:08 ` Charles C. Berry 0 siblings, 2 replies; 10+ messages in thread From: Rainer M Krug @ 2015-10-29 11:21 UTC (permalink / raw) To: Matt Price; +Cc: Org Mode [-- Attachment #1: Type: text/plain, Size: 1788 bytes --] Matt Price <moptop99@gmail.com> 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 > > ? > > not perfect, but... > > On Thu, Oct 29, 2015 at 7:06 AM, Rainer M Krug <Rainer@krugs.de> wrote: > >> Hi >> >> I guess this is not possible (and has been asked before, but I can't >> find it t the moment...)- but how can I export the following markup? >> >> --8<---------------cut here---------------start------------->8--- >> simASM.=SITE=.=STRATEGY=.=BUDGET=.=FIREREGIME=.=JOBID=.=ARRAYID= >> --8<---------------cut here---------------end--------------->8--- >> >> >> Export will be mainly LaTeX, but maybe also html. >> >> Thanks, >> >> Rainer >> >> -- >> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation >> Biology, UCT), Dipl. Phys. (Germany) >> >> Centre of Excellence for Invasion Biology >> Stellenbosch University >> South Africa >> >> Tel : +33 - (0)9 53 10 27 44 >> Cell: +33 - (0)6 85 62 59 98 >> Fax : +33 - (0)9 58 10 27 44 >> >> Fax (D): +49 - (0)3 21 21 25 22 44 >> >> email: Rainer@krugs.de >> >> Skype: RMkrug >> >> PGP: 0x0F52F982 >> -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 454 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Markup (=, ~) in word? 2015-10-29 11:21 ` Rainer M Krug @ 2015-10-29 14:04 ` Göktuğ Kayaalp 2015-10-29 14:07 ` Rainer M Krug 2015-10-29 17:08 ` Charles C. Berry 1 sibling, 1 reply; 10+ messages in thread From: Göktuğ Kayaalp @ 2015-10-29 14:04 UTC (permalink / raw) To: Rainer M Krug; +Cc: Org Mode On Thu, Oct 29 2015 at 2:21:17 pm EEST, Rainer M Krug <Rainer@krugs.de> wrote: > Matt Price <moptop99@gmail.com> 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]): ,----[ 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/ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Markup (=, ~) in word? 2015-10-29 14:04 ` Göktuğ Kayaalp @ 2015-10-29 14:07 ` Rainer M Krug 2015-10-29 14:23 ` Göktuğ Kayaalp 0 siblings, 1 reply; 10+ messages in thread From: Rainer M Krug @ 2015-10-29 14:07 UTC (permalink / raw) To: Göktuğ Kayaalp; +Cc: Org Mode [-- Attachment #1: Type: text/plain, Size: 2655 bytes --] Göktuğ Kayaalp <self@gkayaalp.com> writes: > On Thu, Oct 29 2015 at 2:21:17 pm EEST, Rainer M Krug <Rainer@krugs.de> wrote: >> Matt Price <moptop99@gmail.com> 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, 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 -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 454 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Markup (=, ~) in word? 2015-10-29 14:07 ` Rainer M Krug @ 2015-10-29 14:23 ` Göktuğ Kayaalp 0 siblings, 0 replies; 10+ messages in thread From: Göktuğ Kayaalp @ 2015-10-29 14:23 UTC (permalink / raw) To: Rainer M Krug; +Cc: Org Mode On Thu, Oct 29 2015 at 5:07:55 pm EEST, Rainer M Krug <Rainer@krugs.de> wrote: > Göktuğ Kayaalp <self@gkayaalp.com> writes: > >> On Thu, Oct 29 2015 at 2:21:17 pm EEST, Rainer M Krug <Rainer@krugs.de> wrote: >>> Matt Price <moptop99@gmail.com> 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/ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Markup (=, ~) in word? 2015-10-29 11:21 ` Rainer M Krug 2015-10-29 14:04 ` Göktuğ Kayaalp @ 2015-10-29 17:08 ` Charles C. Berry 2015-10-29 18:26 ` Rainer M Krug 1 sibling, 1 reply; 10+ messages in thread From: Charles C. Berry @ 2015-10-29 17:08 UTC (permalink / raw) To: Rainer M Krug; +Cc: Org Mode On Thu, 29 Oct 2015, Rainer M Krug wrote: > Matt Price <moptop99@gmail.com> 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 > >> Have a look at the `org-emphasis-regexp-components' docstring. If you feel bold (pun intended) you might see if adding '\.' to the first element works without causing mayhem elsewhere. A safer hack might be to use markup like this: simASM.'=SITE=.'=STRATEGY=.'=BUDGET=.'=FIREREGIME=.'=JOBID=.'=ARRAYID= and add a filter to remove the apostrophes from the ".'\texttt" or ".'<code>" that results. HTH, Chuck ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Markup (=, ~) in word? 2015-10-29 17:08 ` Charles C. Berry @ 2015-10-29 18:26 ` Rainer M Krug 0 siblings, 0 replies; 10+ messages in thread From: Rainer M Krug @ 2015-10-29 18:26 UTC (permalink / raw) To: Charles C. Berry; +Cc: Org Mode [-- Attachment #1: Type: text/plain, Size: 1522 bytes --] "Charles C. Berry" <ccberry@ucsd.edu> writes: > On Thu, 29 Oct 2015, Rainer M Krug wrote: > >> Matt Price <moptop99@gmail.com> 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 >> >>> > > Have a look at the `org-emphasis-regexp-components' docstring. If you > feel bold (pun intended) you might see if adding '\.' to the first > element works without causing mayhem elsewhere. No - I never feel bold when it comes down to regexp. > > A safer hack might be to use markup like this: > > simASM.'=SITE=.'=STRATEGY=.'=BUDGET=.'=FIREREGIME=.'=JOBID=.'=ARRAYID= > > and add a filter to remove the apostrophes from the ".'\texttt" or > ".'<code>" that results. That is an idea - but for the time being, I just put spaces around the "." and that works find=e for now. Thanks everybody, Rainer > > HTH, > > Chuck > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 454 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Markup (=, ~) in word? 2015-10-29 11:06 Markup (=, ~) in word? Rainer M Krug 2015-10-29 11:11 ` Matt Price @ 2015-10-29 20:40 ` Rasmus 2015-10-30 9:24 ` Rainer M Krug 1 sibling, 1 reply; 10+ messages in thread From: Rasmus @ 2015-10-29 20:40 UTC (permalink / raw) To: emacs-orgmode Rainer M Krug <Rainer@krugs.de> writes: > Hi > > I guess this is not possible (and has been asked before, but I can't > find it t the moment...)- but how can I export the following markup? > > simASM.=SITE=.=STRATEGY=.=BUDGET=.=FIREREGIME=.=JOBID=.=ARRAYID= > > > Export will be mainly LaTeX, but maybe also html. You could separate with ZERO WIDTH SPACE. AFAIR, this requires (xe/lua)latex, though. In org-mode-git, you can set #+latex_command. You can also remove the zero width spaces with a filter. E.g. (defcustom rasmus/org-latex-unicode-to-tex '((" " "~") (" " "\\,") ("" "")) "list of re rep pairs which are replaced during latex export") (defun rasmus/org-latex-unicode-to-tex (text backend info) "Replace unicode strings with their TeX equivalents. Currently: ' ' (no break space) to '~' ' ' (thin space) to '\,' '' (zero width space) to ''." (when (org-export-derived-backend-p backend 'latex) (cl-loop for (re rep) in rasmus/org-latex-unicode-to-tex do (setq text (replace-regexp-in-string re rep text t t))) text)) (add-to-list 'org-export-filter-final-output-functions 'rasmus/org-latex-unicode-to-tex) -- Got mashed potatoes. Ain't got no T-Bone. No T-Bone ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Markup (=, ~) in word? 2015-10-29 20:40 ` Rasmus @ 2015-10-30 9:24 ` Rainer M Krug 0 siblings, 0 replies; 10+ messages in thread From: Rainer M Krug @ 2015-10-30 9:24 UTC (permalink / raw) To: Rasmus; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 2051 bytes --] Rasmus <rasmus@gmx.us> writes: > Rainer M Krug <Rainer@krugs.de> writes: > >> Hi >> >> I guess this is not possible (and has been asked before, but I can't >> find it t the moment...)- but how can I export the following markup? >> >> simASM.=SITE=.=STRATEGY=.=BUDGET=.=FIREREGIME=.=JOBID=.=ARRAYID= >> >> >> Export will be mainly LaTeX, but maybe also html. > > You could separate with ZERO WIDTH SPACE. AFAIR, this requires > (xe/lua)latex, though. In org-mode-git, you can set #+latex_command. You > can also remove the zero width spaces with a filter. Looks interesting - thanks. For the moment, I'll jut use spaces and in the final version, I'll consider all these options. Thanks lot, Rainer > > E.g. > > (defcustom rasmus/org-latex-unicode-to-tex '((" " "~") > (" " "\\,") > ("" "")) > "list of re rep pairs which are replaced during latex export") > > (defun rasmus/org-latex-unicode-to-tex (text backend info) > "Replace unicode strings with their TeX equivalents. > > Currently: ' ' (no break space) to '~' > ' ' (thin space) to '\,' > '' (zero width space) to ''." > (when (org-export-derived-backend-p backend 'latex) > (cl-loop for (re rep) in rasmus/org-latex-unicode-to-tex do > (setq text (replace-regexp-in-string re rep text t t))) > text)) > > (add-to-list 'org-export-filter-final-output-functions > 'rasmus/org-latex-unicode-to-tex) -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 454 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-10-30 9:24 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-10-29 11:06 Markup (=, ~) in word? Rainer M Krug 2015-10-29 11:11 ` Matt Price 2015-10-29 11:21 ` Rainer M Krug 2015-10-29 14:04 ` Göktuğ Kayaalp 2015-10-29 14:07 ` Rainer M Krug 2015-10-29 14:23 ` Göktuğ Kayaalp 2015-10-29 17:08 ` Charles C. Berry 2015-10-29 18:26 ` Rainer M Krug 2015-10-29 20:40 ` Rasmus 2015-10-30 9:24 ` Rainer M Krug
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).