-2

I write quite a bit about TeX and friends and inevitably refer to them by name in my posts.

Is there any way to replace every occurrence of TeX, LaTeX, or foo with custom HTML?

Reference: https://stackoverflow.com/q/8160514

closed as off-topic by ale, Alex, Jacob Jan Tuinstra, Sathyajith Bhat Aug 4 '14 at 7:20

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Application/website recommendations are off-topic and out of scope. It is better instead to use a particular web app or website and ask for help in any issues you have with it specifically." – ale, Alex, Jacob Jan Tuinstra, Sathyajith Bhat
If this question can be reworded to fit the rules in the help center, please edit the question.

  • From our help center: "Please note that the following subjects are considered off-topic here: ... Hosted scripts such as Wordpress.org and phpBB" – ale Aug 3 '14 at 12:57
  • My apologies. I did read the help center since this is a new site to me (I'm usually on TeX.SX), that line must have missed my eye. I would recommend on Meta that the bullet's wording be revised, though. To me, 'hosted scripts' is a meaningless term. – Sean Allred Aug 3 '14 at 18:09
1

enter image description here Yes, there is a plugin called Text Replace for WordPress.org. You just enter a shortcut and what you want to replace it with:

{shortcut} => {replace with}

For your case, for instance:

LaTeX => <span class='latex'>L<sup>a</sup>T<sub>e</sub>X</span>
TeX => <span class='tex'>T<sub>e</sub>X</span>

By the way, I put LaTeX before TeX on purpose. If you read the plugin's page, you'll understand why.

Not the answer you're looking for? Browse other questions tagged or ask your own question.