Math - LATEX
Posted: 08 Jan 2012, 21:31
For those who need to post mathematical formulas, I found this tip and resource that can be read in full at this address http://www.codecogs.com/pages/forums/pa ... hp?id=1682
Basically this is the changes:
Prosilver:
Open: overall_header.html
Find:
After, add:
Open: posting_buttons.html
Find:
After, add
Subsilver2:
Open: posting_buttons.html
Find:
After, Add
Find:
After, Add
Find:
Replace:
Below are the instruction on how to install the BBCode, therefore it is similar for both styles:
BBCode:
HTML:
Help Line:
Demo:
Or my board:
http://www.mundophpbb.com.br/forum/view ... p?f=14&t=8
Basically this is the changes:
Prosilver:
Open: overall_header.html
Find:
Code: Select all
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>
Code: Select all
<script type="text/javascript" src="http://latex.codecogs.com/editor.js"></script>
Find:
Code: Select all
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
<!-- END custom_tags -->
Code: Select all
<input type="button" class="button2" onclick="javascript:OpenLatexEditor('message','phpBB','')" value="Equation Editor"/>
Open: posting_buttons.html
Find:
Code: Select all
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
Code: Select all
<script type="text/javascript" src="http://latex.codecogs.com/editor.js"></script>
Code: Select all
<input type="button" class="btnbbcode" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')"<!-- ENDIF --> />
<!-- END custom_tags -->
Code: Select all
<input type="button" class="btnbbcode" onclick="javascript:OpenLatexEditor('message','phpBB','')" value="Equation Editor"/>
Code: Select all
<textarea name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);"
onkeyup="storeCaret(this);" style="width: 98%;">{MESSAGE}</textarea>
Code: Select all
<textarea id="message" name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width: 98%;">{MESSAGE}</textarea>
BBCode:
Code: Select all
[tex]{TEXT}[/tex]
Code: Select all
<img style="vertical-align: middle" src="http://latex.codecogs.com/png.latex?{TEXT}"/>
Code: Select all
[tex]Your equation[/tex]
http://www.mundophpbb.com.br/forum/view ... p?f=14&t=8