[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Markup (=, ~) in word?
From: |
Rainer M Krug |
Subject: |
Re: [O] Markup (=, ~) in word? |
Date: |
Fri, 30 Oct 2015 10:24:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
Rasmus <address@hidden> writes:
> Rainer M Krug <address@hidden> 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: address@hidden
Skype: RMkrug
PGP: 0x0F52F982
signature.asc
Description: PGP signature
Re: [O] Markup (=, ~) in word?, Rasmus, 2015/10/29
- Re: [O] Markup (=, ~) in word?,
Rainer M Krug <=