Here is a suggestion for an inline code tag rather like the <literal>
tag, except that the content is only published if the publishing style
matches or is derived from the specified publishing style.
For example
<inline style="latex">
\pagebreak
\begin{equation}
x = 3^2 + \phi
\end{equation}
</inline>
will be included literally in latex and styles derived from it, but will
be left out of, for example, html published code.
(defun muse-publish-mark-inline (beg end atts)
(let ((style (cdr (assoc "style" atts))))
(if (and style
(or (equal (muse-style style)
muse-publishing-current-style)
(muse-style-derived-p
style
muse-publishing-current-style)))
(muse-publish-mark-read-only beg end)
(delete-region beg end))))
(push '("inline" t t nil muse-publish-mark-inline) muse-publish-markup-tags)
Regards,
--
Jim Ottaway
_______________________________________________
Muse-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/muse-el-discuss