emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: something in between @@html:@@ and html blocks
Date: Fri, 04 Dec 2015 13:57:05 -0500	[thread overview]
Message-ID: <m2lh9af3em.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <87k2oup5ne.fsf@gmx.us>


Rasmus writes:

> John Kitchin <jkitchin@andrew.cmu.edu> 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

  reply	other threads:[~2015-12-04 18:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04 15:43 something in between @@html:@@ and html blocks John Kitchin
2015-12-04 15:54 ` Eric S Fraga
2015-12-04 18:51   ` John Kitchin
2015-12-04 15:58 ` Rasmus
2015-12-04 18:57   ` John Kitchin [this message]
2015-12-04 20:12 ` Nicolas Goaziou
2015-12-04 21:57   ` John Kitchin
2015-12-04 23:03     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2lh9af3em.fsf@andrew.cmu.edu \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).