I want to enter a € sign using latex, but the normal codes
\EUR{}
\euro
\text{€}
are not working.
I know it can be done using \usepackage{eurosym} but that does not work either. Can you help me?
Hello,
I get the error “Formular does not parse”, when I write < or > in Latex. How can I say 5 is greater than 4 without > < ?
You can see the error here: https://www.freiereferate.de/mathematik/lineare-ungleichungen
The first error looks like this in the code:
<p><b>Definition:</b> Seien [latex]a,b[/latex] reellen Zahlen. Dann hei?en [latex]ax\leq b[/latex] , [latex]ax < b[/latex] bzw. [latex]ax\geq b[/latex] , [latex]ax> b[/latex] lineare Ungleichungen.</p>
Hi,
there any way to show latex in the titles of the posts?
The plugin works great but it would be much better if you could solve this ??
Thanks a lot.
]]>I understand that the plugin “Beautiful Math” from Jetpack is recommended for use with Sensei. I figured that since this plugin may work as well. I can get equations to display in my posts, but not in my questions.
Does anyone know if this is possible?
Jetpack seems like overkill for this.
Thank you in Advance!
]]>A missing feature is to be able to style inline equations differently than block or stand alone equations. in the following code, I allow for a “isblock’ flag, which adds an additional class tag: “latex_block”.
// [latex size=0 color=000000 background=ffffff isblock=true]\LaTeX[/latex]
// Shortcode -> <img> markup. Creates images as necessary.
function shortcode( $_atts, $latex ) {
$atts = shortcode_atts( array(
‘size’ => 0,
‘color’ => false,
‘background’ => false,
‘isblock’ => false,
), $_atts );
$latex = preg_replace( array( ‘#<br\s*/?>#i’, ‘#</?p>#i’ ), ‘ ‘, $latex );
$latex = str_replace(
array( ‘<‘, ‘>’, ‘"’, ‘“’, ‘”’, ‘'’, ‘᾽’, ‘᾿’, ‘’’, ‘&’, ‘&’, “\n”, “\r”, “\xa0”, ‘–’ ),
array( ‘<‘, ‘>’, ‘”‘, ‘‘, “””, “‘”, “‘”, “‘”, “‘”, ‘&’, ‘&’, ‘ ‘, ‘ ‘, ‘ ‘, ‘-‘ ),
$latex
);
$latex_object = $this->latex( $latex, $atts[‘background’], $atts[‘color’], $atts[‘size’] );
$url = esc_url( $latex_object->url );
$alt = esc_attr( is_wp_error($latex_object->error) ? $latex_object->error->get_error_message() . “: $latex_object->latex” : $latex_object->latex );
// added by tim
$classString = $atts[‘isblock’] ? “latex latex_block” : “latex”;
return “<img src=’$url’ alt=’$alt’ title=’$alt’ class=’$classString’ />”;
}
Then you can add css such as this:
img.latex_block {
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 30px;
}
Pleas consider adding this. Thanks!
]]>Hi Guys!
I didn’t touch my site since all was fine on Friday, and came into work today and all the latex equations are broken. They show pictures of little broken images. https://www.tozzo.net
Could you steer me in the right direction please?
Bill
]]>I have to following code that does not parse:
$$T_{aussen} \approx?273^\circ K + 25^\circ C \approx 300^\circ K$$
The “same” code does parse:
$$T_{aussen} \approx 273^\circ K + 25^\circ C \approx 300^\circ K$$
The problem seems to be hidden characters. If you look at the url sent to the server you see a difference:
https://s.wordpress.com/latex.php?latex=%20T_%7Baussen%7D%20%5Capprox%80%84273%5E%5Ccirc%20K%20%2B%2025%5E%5Ccirc%20C%20%5Capprox%20300%5E%5Ccirc%20K%20&bg=T&fg=000000&s=0
https://s.wordpress.com/latex.php?latex=%20T_%7Baussen%7D%20%5Capprox%20273%5E%5Ccirc%20K%20%2B%2025%5E%5Ccirc%20C%20%5Capprox%20300%5E%5Ccirc%20K%20&bg=T&fg=000000&s=0
%80%84 are the bad once. Other characters producing the same problem are %E2 and %C2.
I don’t know how to handle this. Some times the characters get added by simply copying the code from one place in the text to an other.
Any ideas?
Thanks!!!
Lukas
]]>The wp-latex plugin is hardcoded to use https://s.wordpress.com/latex.php
as the WordPress.com LaTeX server, even when accessing the site over HTTPS. The URL in line 51 of automattic-latex-wpcom.php
should be changed from https://s.wordpress.com/latex.php
to //s0.wp.com/latex.php
to be protocol agnostic and properly support secure connections.
Hello,
can I change for default on all sites that uses latex the line-height or the font-size? I don’t want to make this on every side manually.
Sometimes the Latex-code isn’t good readable like on this site:
https://www.freiereferate.de/mathematik/pq-formel (see here “Beispiel 2”)
or on this site:
https://www.freiereferate.de/mathematik/bananenformel
Greetings from germany
Sebastian
]]>I tried to set a size for my Latex formula, but it did not work as expected:
(#1) Not working: $latex e^{\i \pi}&s=4$
(#2) Working: $latex e^{\i \pi}& amp;s=4$
(without the space)
I changed in wp-latex.php the regular expression so it includes
the non-escape ampersand:
wp-latex,php line 118:
preg_match( '/.+((?:& #038;|& amp;|&)s=(-?[0-4])).*/i', ...<br />
Now, both versions work.
Do I miss an option that makes #1 work out of the box? If not,
would you change the regular expression for the next WP Latex relase,
please?
Kind Regards
Stefan
Did any body now the name of software that required that convert math equation in latex code
]]>I have install the latex but don,t know how to insert the math equation in post . please help me.
]]>Hey,
I’ve just started using LaTeX to WordPress. I added a very simple line:
The equation of motion for an electron with charge $latex {-e}$ and mass $latex {m}$ etc etc…
And it converts with newlines before and after every formula. Is there a way to fix it? I posted it here:
https://www.opencodices.com/try/
so you can see what I mean.
Thank you so much!
]]>As far as I can tell the equations just don’t display at all in RSS.
I’m wondering if there’s a way to manage that???? perhaps at least displaying an image? or maybe a box saying something like “math seen on main site” with a link to the single post page?
thoughts?
]]>I installed WP LaTex (1.8) on a test blog running WP 3.5 and set it up to do local LaTex generation. I already had LaTex and dvipng installed because I use LaTex for items in a wiki on the system. Everything worked fine.
I then installed WP LaTex on another WP installation on the same system. This one was running 3.5.2, since upgraded to 3.6. In both cases, I can’t recreate the local LaTex generation. I get “path not found” error for LaTex and dvipng.
These WP installations are running on the same virtual server, so I can’t think of any reason why one installation can find LaTex and dvipng and another can’t.
]]>Refer to this site: https://testlab.peguru.com/test-post-with-latex/
The latex symbols show up on new line. How do I make them appear in-line? I tried using CSS to move image in-line with text but that did not work. Any solution?
Thank you.
]]>I would like to use the excellent WP latex plugin in my own (free, nonprofit) plugin GmailTeX.
As far as I can see, the WP latex engine is freely available at https://s0.wp.com/latex.php for anyone to link to. But I would like to make sure this is OK to do.
Thank you
]]>Hi, I’ve been trying to set up WordPress blog on my Mac Mini machine after OS X 10.8 has been released. I’ve got Apache, PHP, MySQL running and WordPress is also running nicely. Also, MacTex 2012 works fine on this machine as well. So, I tried WP LaTeX to render equations locally, but keep getting error below:
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012) (format=latex 2012.6.30) 1 AUG 2012 15:40
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/private/tmp/tex_mDOaIL
(/private/tmp/tex_mDOaIL
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h
ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma
rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,
kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,
polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s
lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,
welsh, loaded.
(/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2012/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/local/texlive/2012/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2008/03/30 v1.1d Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
(/usr/local/texlive/2012/texmf-dist/tex/latex/base/latin1.def
File: latin1.def 2008/03/30 v1.1d Input encoding file
))
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip43
For additional information on amsmath, use the
?’ option.
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks16
\ex@=\dimen103
))
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen104
)
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count87
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count88
\leftroot@=\count89
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count90
\DOTSCASE@=\count91
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen105
LaTeX Font Info: Redeclaring font encoding OML on input line 567.
LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
\macc@depth=\count92
\c@MaxMatrixCols=\count93
\dotsspace@=\muskip10
\c@parentequation=\count94
\dspbrk@lvl=\count95
\tag@help=\toks17
\row@=\count96
\column@=\count97
\maxfields@=\count98
\andhelp@=\toks18
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks19
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks20
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Overwriting math alphabet \mathfrak' in version
bold’
(Font) U/euf/m/n –> U/euf/b/n on input line 96.
)
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2009/06/22 v3.00
)
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/eucal.sty
Package: eucal 2009/06/22 v3.00 Euler Script fonts
LaTeX Font Info: Overwriting math alphabet \EuScript' in version
bold’
(Font) U/eus/m/n –> U/eus/b/n on input line 33.
)
No file tex_mDOaIL.aux.
\openout1 =
tex_mDOaIL.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Try loading font information for U+msa on input line 10.
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2009/06/22 v3.00 AMS symbols A
)
LaTeX Font Info: Try loading font information for U+msb on input line 10.
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2009/06/22 v3.00 AMS symbols B
)
! Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding
latin1′.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
…
l.12 ^^[
nd{LARGE}
Here is how much of TeX’s memory you used:
1150 strings out of 493489
13508 string characters out of 3141349
61834 words of memory out of 3000000
4502 multiletter control sequences out of 15000+200000
8276 words of font info for 32 fonts, out of 3000000 for 9000
957 hyphenation exceptions out of 8191
27i,4n,22p,247b,109s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.
I’m not sure why inputenc doesn’t accept ‘latin1’… In fact, there’s no unicode characters used in the example view. So, the problem is not the .php file, I guess.
Of course, everything works fine when the setting uses ‘WordPress.com’.
]]>Hello,
Do not know if it is the right place for this but … ??
Trying to use WP Latex in local mode (latex+dvipng), I found that the strings are “-delimited instead of ‘-delimited. It may interact with latex commands beginning by \…
For instance :
$string .= "\n\end{document}";
should be :
$string .= "\n\\end{document}";
]]>
Some posts contains (computer) programming codes.
LaTeX converts expressions with $[content]$ into image.
Is there a way to disable LaTeX in certain posts?
]]>Плагин не активируется, поскольку вызывает фатальную ошибку сайта.
]]>I’m running a multi-site WordPress, and I’ve enabled wp-latex from the network admin interface. I can’t edit the settings from there, so I have to do it from one of the blogs. When I enter the site’s wp-latex settings, I get the following error:
Fatal error: Call to a member function url() on a non-object in /home/www/blogs/wordpress-3.2.1/wp-content/plugins/wp-latex/wp-latex-admin.php on line 181
Is it possible to use
\begin{align*}
&= \\
&=
\end{align*}
to display equotations? It doesn’t work on my page. It’s very useful so i wonder why it is not implemented.
]]>Is there any way to number the equations, even manually if automatic numbering is not supported?
Thanks!
]]>hai…..
any one have the same problem to show the latex equation in the Comments Feed….
please see and compare it here for
(a) Comments Feed
https://mathslabfx.com/?feed=comments-rss2
(b) Comments section in posting
https://mathslabfx.com/?p=1
any guide to solve this problem…i just realest it 2 days ago and still have a problem until now,.
]]>Hi !
I have a strange problem : I have this code on my post [latex]\frac{1}{a+b} = \frac{1}{a} + \frac{1}{b}[/latex]
. It’s valid, isn’t it ?
And you can see the result on this post.
It’s bad, no ?
Where come the problem ? Thanks.
]]>Is there a way to get a transparent background or must you pick a color?
]]>I am using wp latex plugin, and created a post.
The problem is very wierd.
On the home page the small portion of the post correctly displays the latex images. However, in the single post page, instead of the image, just the code is directly visible.
You can check it here:
https://financetrain.com/2010/06/probability-of-one-portfolio-outperforming-another-portfolio/
The same post if you see on the home page displays the latex images.
Please help.
]]>