From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: SOLVED - Re: linking to headings with a unique ID exported to latex/PDF Date: Fri, 03 Feb 2017 09:21:11 +0000 Message-ID: <87o9yjvddk.fsf@skimble.plus.com> References: <87fujwtz5u.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZa3Z-0006xG-Iv for emacs-orgmode@gnu.org; Fri, 03 Feb 2017 04:21:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZa3V-0005BZ-Ho for emacs-orgmode@gnu.org; Fri, 03 Feb 2017 04:21:25 -0500 Received: from avasout06.plus.net ([212.159.14.18]:49453) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cZa3V-0005Ab-BL for emacs-orgmode@gnu.org; Fri, 03 Feb 2017 04:21:21 -0500 In-Reply-To: <87fujwtz5u.fsf@skimble.plus.com> (Sharon Kimble's message of "Thu, 02 Feb 2017 15:01:17 +0000") 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" To: org-mode-email --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Sharon Kimble writes: > I'm writing a document which is exported to latex and then built into a > PDF where I might have 'Alcohol', just as an example, mentioned several > times in different level headings. Currently I'm using org links like > this [[*Alcohol][Alcohol]] but that only allows me to link to one > heading only. > > I've tried using links like this > [[id:542d0880-c0fd-46d5-b75d-4cc6f5fa99cc][Alcohol]] and under the > heading that I'm linking to it says - > > *** Alcohol > :PROPERTIES: > :ID: 542d0880-c0fd-46d5-b75d-4cc6f5fa99cc=20=20 > :END: > > But when exported it does not work. > > So, how can I link to specific headings, preferably with a unique ID > please? Nothing that I tried worked, yes, I was using 'org-id', but it was still failing, so I set about building a MWE. And then I found the problem - the latex package called 'titlesec' when used with org-mode to latex is incompatible with org-mode and stops org-id from working. Comment it out and org-id works perfectly again. What 'titlesec' does is compress the space around each header, so its a latex problem not an org-mode problem, so I shall look for a latex solution to compressing the header spaces. Thanks for all the suggestions and ideas to solve the problem. Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYlEuHAAoJEDaBgBkK+INbjRMQAL4pdG1vQlxlqAHvmhxMRTjt sVytXyAsOnkh3j6F7KKFzQ6G0llTANfd93sX1ZSX7iXVXw54waDVG9np1r9gts3y xAU9wFSaRyAe0NJD/czyN99l9y6VbQqh2mnwIV8WJTYqHRWq+KoduSV4vqkfJ2p0 vr2ed//UVijk/LQrd55npFHNRvKX6Ltcr1tyuwynkTl+3vY1R7PDLjf64W+RjN3M OIka9qV5UEUzrbQT6ETd6EGaRZjQdoaIQ3UwmXzfzWa7GdYU3vMkHjz2LNTU+UaZ sBt7TkznfpMPFRWp19H1YcxKDRB/Gw2fMsJuzT9rtcPYD9Ek3l5YGdf4rK+w8NmB TdZHDP5zMjZrvJIByz4O5WX9/qZRXcMNCR6R1W9g5JP2ymdpt1BvZIFMDaMdiSv1 XNPn7VsJoR8hG/6/8LgX/Stpp7Fdss3A0QByJZvJFh3XDvSmleITsXJrxrW+OwpV mbIGryM1JvIXuXN9nqrX7PJCvxwJyFY71f18TcHu5EHHwZHr3bCTg/CQvVW/mGGC o6IC47oeIEhOlG9XCPHMtjVQqq4bTcTARzrVMaeprUCaDr1njcTZoO5trJ3eWrRh Wyt+oUsmmk+ehiV51n/F9qNL5rHZ2CFH1I5lwB9xBgjpJ/O4ygNNnYb6OtI1mqtP tes+ef4N8UV0/9fbFuB1 =c4fD -----END PGP SIGNATURE----- --=-=-=--