emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: something in between @@html:@@ and html blocks
Date: Fri, 04 Dec 2015 16:58:29 +0100	[thread overview]
Message-ID: <87k2oup5ne.fsf@gmx.us> (raw)
In-Reply-To: m28u5agqxg.fsf@andrew.cmu.edu

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 ;)

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...

I doubt this help, but those were my 2 cents.

Rasmus

-- 
However beautiful the theory, you should occasionally look at the evidence

  parent reply	other threads:[~2015-12-04 15:58 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 [this message]
2015-12-04 18:57   ` John Kitchin
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=87k2oup5ne.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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).