Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Code Requests
  • Completed Requests
  • [Completed] [ZB] Button for LaTeX script
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
[Completed] [ZB] Button for LaTeX script
Tweet Topic Started: Nov 21 2009, 05:42 PM (256 Views)
... Nov 21 2009, 05:42 PM Post #1
...

Posts:
451
Group:
Dedicated
Member
#311
Joined:
Jul 26, 2008
I'm using that latest verion of LaTeX code:
http://zbcode.com/single/?p=200282&t=2272409

But I would like to have a button for it too :)

Thank You
Offline Profile Goto Top
 
... Nov 24 2009, 04:38 PM Post #2
...

Posts:
451
Group:
Dedicated
Member
#311
Joined:
Jul 26, 2008
Two days passed, so *bump*
Offline Profile Goto Top
 
Choco Nov 24 2009, 05:38 PM Post #3
Member Avatar
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ

Posts:
589
Group:
Admins
Member
#3,272
Joined:
Jun 30, 2009
Coding language
Everything
The script I'll provide you will not be able to surround selected text by the tags -- is that okay with you?
As in, if you type:
x^2
And then select it by dragging over it with your mouse, you can't just press the latex button and have it automatically wrap the x^2 with [tex] and [/tex]. Is that okay?
Posted ImageIt's a magical world, Hobbes, ol'd buddy... ...let's go exploring!
In progress: Something Special ;)
Offline Profile Goto Top
 
... Nov 24 2009, 06:31 PM Post #4
...

Posts:
451
Group:
Dedicated
Member
#311
Joined:
Jul 26, 2008
Choco
Nov 24 2009, 05:38 PM
The script I'll provide you will not be able to surround selected text by the tags -- is that okay with you?
As in, if you type:
x^2
And then select it by dragging over it with your mouse, you can't just press the latex button and have it automatically wrap the x^2 with [tex] and [/tex]. Is that okay?
Sure, I'm usually writting TEX tag, then the content inside of it. The way You are saying, I'm very rarely using for a Small tag.
Offline Profile Goto Top
 
Choco Nov 25 2009, 12:32 PM Post #5
Member Avatar
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ

Posts:
589
Group:
Admins
Member
#3,272
Joined:
Jun 30, 2009
Coding language
Everything
Try this:
Code:
 

<script type="text/javascript">
$(function(){$("td#c_bbcode button:last").after("<button type='button' name='tex' onclick='$(\"textarea:eq(0)\").val($(\"textarea:eq(0)\").val()+\"[tex][/tex]\")'>LATeX</button>");});
</script>
Posted ImageIt's a magical world, Hobbes, ol'd buddy... ...let's go exploring!
In progress: Something Special ;)
Offline Profile Goto Top
 
... Nov 25 2009, 12:48 PM Post #6
...

Posts:
451
Group:
Dedicated
Member
#311
Joined:
Jul 26, 2008
It is working, thanks :)

Hmm... I don't see it, wait a second.

EDIT2: Oki, I removed the thinge I tried do myself and now it appear. So, thanks :)
Edited by ..., Nov 25 2009, 12:54 PM.
Offline Profile Goto Top
 
Choco Nov 25 2009, 02:57 PM Post #7
Member Avatar
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ

Posts:
589
Group:
Admins
Member
#3,272
Joined:
Jun 30, 2009
Coding language
Everything
Glad it works for you. :)

You're welcome.
See? We can read thoughts too. ;)

Your request has been completed, and we're moving it to the correct forum. We hope it works for you; if it doesn't, feel free to post another request topic in the requests forum. Just remember: read the rules first!

Thanks,
The ZBCode Staff
Posted ImageIt's a magical world, Hobbes, ol'd buddy... ...let's go exploring!
In progress: Something Special ;)
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Completed Requests · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 2:26 PM Jul 11
Hosted for free by ZetaBoards · Privacy Policy