From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Markup (=, ~) in word? Date: Fri, 30 Oct 2015 10:24:04 +0100 Message-ID: References: <87io5p2yss.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs5v0-0004I1-4v for emacs-orgmode@gnu.org; Fri, 30 Oct 2015 05:24:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zs5uv-0006F2-Uf for emacs-orgmode@gnu.org; Fri, 30 Oct 2015 05:24:17 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:37267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs5uv-0006Eh-Oc for emacs-orgmode@gnu.org; Fri, 30 Oct 2015 05:24:13 -0400 Received: by wmff134 with SMTP id f134so7079366wmf.0 for ; Fri, 30 Oct 2015 02:24:13 -0700 (PDT) In-Reply-To: <87io5p2yss.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 29 Oct 2015 21:40:51 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Rasmus writes: > Rainer M Krug 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.=3DSITE=3D.=3DSTRATEGY=3D.=3DBUDGET=3D.=3DFIREREGIME=3D.=3DJOBID= =3D.=3DARRAYID=3D >> >> >> 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 '(("=C2=A0" "~") > ("=E2=80=89" "\\,") > ("=E2=80=8B" "")) > "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: '=C2=A0' (no break space) to '~' > '=E2=80=89' (thin space) to '\,' > '=E2=80=8B' (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) =2D-=20 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWMzc5AAoJENvXNx4PUvmC0ZYH/3e9HcixmeIF6dy7U8eX6vcD TXF4qRDGTHuU8YeLsbmJBsdg5Gm96i0LHnBFeqlPKqakpat5G1yLXQqNXOzyCZMs g+bcYf9BKYR6VZrEdaLHhA8e/ACtCWZR9tq6n83UwPagpNxvtQ1CeyvlXq35tx0J NflQIhQ0djslHehp4wxP60JLcTagz2XzDgnpx6xRv3ynxNZ8Jo5VKfu7JEKrGKAV DQX2y8UAXgzZnSE9VZelT9Qwfa2R0IDE5ITAghN8qNayFie8vtFIcPuxu81zi/1S /Or9xmlGxbKoikOQFOOZmozMEaKP6oq/sKEwrKBrV3xpjSxfbZfnSoabcdFMDh8= =UrrJ -----END PGP SIGNATURE----- --=-=-=--