Rainer M Krug <rai...@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


Reply via email to