From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: something in between @@html:@@ and html blocks Date: Fri, 04 Dec 2015 13:57:05 -0500 Message-ID: References: <87k2oup5ne.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4vXc-0003kF-Av for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 13:57:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4vXY-0007rj-6m for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 13:57:12 -0500 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:34932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4vXY-0007rf-1s for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 13:57:08 -0500 Received: by qkek142 with SMTP id k142so6999001qke.2 for ; Fri, 04 Dec 2015 10:57:07 -0800 (PST) In-reply-to: <87k2oup5ne.fsf@gmx.us> 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 Rasmus writes: > John Kitchin writes: > >> I have an intermediate use case that isn't covered by html snippets or >> blocks, and I wondered if there is a solution to it. >> >> What I want is to put a large tooltip on a link in html output. The text >> for the tooltip is too large to fit on one line in a @@html:@@ snippet, >> and if I put it in an html block it adds line breaks in the html export. >> >> Is there a regular way to avoid this, e.g. to insert a large snippet? > > How about a custom link type? I thought that’s general solution to life, > the universe and everything ;) It works for a lot of things, but not this ;) Links do not work with line breaks in them. > > If a lot of the width is due to html cruft you might be able to shorten > redundant parts via a macro, but I’m sure you thought about that... You > can also add more snippets, one after the other: > > @@html:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@@ > @@html:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@@ > > Another hackish solutions would be to use a filter + footnotes with a > recognizable pattern, but I’m not sure I would go that way... This is probably my solution. Replace the things prior to export with uuids, export, and put then post filter to replace the uuids with the html code. It turns out I did this once before to get matlab to post to Wordpress (https://github.com/jkitchin/matlab-wordpress/blob/master/blogpost.m#L177) where I had to protect some text temporarily, and then deprotect it. Thanks! > > I doubt this help, but those were my 2 cents. > > Rasmus -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu