emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Markup (=, ~) in word?


From: Rasmus
Subject: Re: [O] Markup (=, ~) in word?
Date: Thu, 29 Oct 2015 21:40:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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.

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]