Error when display latex
Error when display latex
I have an question that have been saved in database table named Question. I save a question using latex editor. But when i try to view question using codecogs, then the question not displayed correctly.
<script type="text/javascript" src="http://latex.codecogs.com/latexit.js"></script> <label class="width30Percent">Question</label>> <div lang="latex"> <?php echo <div class="orangebox">[$]</div>data['Question']['question_text'] ?> </div>it will be displayed: Please help
30 Apr 17, 6:26AM
Hi,
I wouldn't use latexit for this type of job. Better to submit the equation directly to latex.codecogs.com. So try:
<label class="width30Percent">Question</label>> <div> <p><?php echo $data['Question']['question_text'] ?></p> <img src="latex.codecogs.com/gif.latex?<?php echo $data['Question']['formula'] ?> </div>I'm assuming in your database you have some 'question text' and also the latex for a 'formula'.