From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benny Simonsen Subject: Re: Highlight current page in TOC Date: Mon, 22 Nov 2010 21:06:40 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=42300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKcex-0007JW-Jn for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 15:06:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKcew-0001bd-9f for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 15:06:43 -0500 Received: from mail-qy0-f169.google.com ([209.85.216.169]:53799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKcew-0001bW-7K for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 15:06:42 -0500 Received: by qyk4 with SMTP id 4so630196qyk.0 for ; Mon, 22 Nov 2010 12:06:41 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 2010/11/14 Benny Simonsen > > Hi > > With the org-info-js mode enabled each section is shown as a seperate pag= e, but then I would like to get current page marked in the TOC in some way = (e.g. class=3Dcurrent and then some CSS to make the markup) ... but is it p= ossible? > > /Benny Hi I have made it. The result can be seen on a example page I have made (in danish - (translated org-info-src.js [1] it into danish)) - http://slbs.dk/org/oensker.html I have modified org-info-src.js [1] to include an extra function setLinkClass + using this function at the end of showSection. I have also added a small css script [2] with the extra content, which could be included in the normal worg.css [3] without side effects, I think. I include one css - main.css [4] that includes the two css files mentioed here + an extra file with my own site style.' Except the changes in my site slbs.css, the only style changes I have made = are: - Current page/section are marked black and bold - Visited pages are marked in different color Anyone interested in a patch for the highlighting of the links? Anyone interested in a patch for the danish org-info-src.js? [1] http://slbs.dk/org/scripts/org-info-src.marklinks.js =A0=A0=A0=A0 ... in danish: http://slbs.dk/org/scripts/org-info-src.da.mark= links.js =A0=A0=A0=A0 ... in danish without modifications: http://slbs.dk/org/scripts/org-info-src.da.js [2] http://slbs.dk/org/style/marklink.css [3] Copy from http://orgmode.org/worg/worg.css [4] http://slbs.dk/org/style/main.css - Which includes the other css files I have also included lightbox-2.04, and changed it so that a group is limited to one visible page(one section) Best regards Benny Simonsen