From Wikisophia
Jump to: navigation, search

Now that the source can be exposed by following the image's link, I decided to hide the source; the page renders much more smoothly as a result. Danenberg 18:07, 30 Jan 2005 (CST)



I apologize if this is not the place - but what is the "Password" I need during the running of (I set passwords for wikitex - did not work, apache is the user for httpd and mysql user for the database with a password - Can anyone help? Nothing in the manuals (unless I missed it) I had the package installed in DocumentRoot/wiki/extensions/wikitex and modified LocalSettings.php and added include("extensions/wikitex/Wikitex.php"); (then the main wiki page does not open) - (Is this due to the earlier "Password" error? KrishnanChittur

apt repository

Does anyone know if there is an apt repository that includes WikiTeX? It's so convenient. 08:54, 31 March 2009 (CDT)


Is it possible to add a module for Fraktur? Is there even a TeX object for Fraktur? I know there is some limited functionality in <math>, but it's not really designed for text:

<math> \mathfrak{Heute\ habe\ ich\ auf\ Deutsch\ geschrieben.\ Zum\ Fr\ddot{u}hst\ddot{u}ck\ habe\ ich\ R\ddot{u}hreier\ gegessen.} </math>

No spaces and no umlauts. I mean, if we're going to have a module for Tengwar, I don't see why we shouldn't have Fraktur.

Good point; pick out a package you like, and get back to us. Danenberg 17:27, 29 Jan 2005 (CST)


What about Egyptian hieroglyphs?

-Leigh 15:13, 27 Nov 2004 (CST)

Fascinating; Serge Rosmorduc has done some preliminary work on hieroglyphics. Would you mind doing some research in that area? Danenberg 17:27, 29 Jan 2005 (CST)
Does it do anything that WikiHiero doesn't? WikiHiero has the added advantage of being accepted by the developers (it's running on test right now), whereas for some reason WikiTeX is the red-headed stepchild of MediaWiki extensions. Go fig. Grendelkhan 15:13, 1 Feb 2005 (CST)
Lol, Gren; WikiHiero renders, IIRC, a series of images; which can be costly.  We have a lot of things going on, and part of convincing Brion and Tim to take us on is to show we've done our due diligence re: security.  Community support can't hurt either; and I'd like to develop to that end with Mailman, Subversion and Bugzilla.
OTOH, we have a fresh SourceForge site up which might be useful. Danenberg 17:32, 1 Feb 2005 (CST)


And what about electronics circuits? Are there any program to represent digital-gates and analog circuits?

Have a look at XCircuit, and let us know what you think; alternatively, a generic drawing package like xfig may do the trick. Danenberg 17:32, 29 Jan 2005 (CST)


Is it possible to use nicer pieces for chess? Something like in Chessbase. What about fairy chess pieces, cold some of them be included? Andreas Kaufmann 15:13, 12 Jan 2005 (CST)

Not without some work, Andreas; the trick would be to interface them with our .sty package. Danenberg 17:38, 29 Jan 2005 (CST)
We switched to Ulrich Dirr's NewSkak; let us know if it's any better. Danenberg 20:22, 12 Mar 2005 (CST)

Design so called Merida for current chess pieces is most used design for classical chess diagrams. I think it is the best for this purpose, but design with paralel lines for black squares is meant for use in press and gives bad result in bitmap pictures, especially with small thumbnails. Can be this changed in light grey color somehow? --Igor 06:29, 24 Apr 2005 (CDT)

Good point, actually. Danenberg 01:59, 24 February 2006 (CST)


Is it possible to scale up certain formats? Chess generates really tiny boards right now; adding a magstep or something might make it more useful. (I'm trying to replace non-free screenshot boards on the en wikipedia, and these aren't really big enough to be useful.) 225 pixels square is pretty small, but 550 pixels square would be rather nice. I can generate 'em manually for now, but there's gotta be a better way of doing it. Grendelkhan 21:57, 26 Feb 2005 (CST)

Yeah, I noticed that especially after we switched to dvipng; so you're thinking on the order of 200%, hm? Danenberg 03:39, 28 Feb 2005 (CST)


Does anyone have suggestions/recommendations for hosting providers who support Wikitex? (I'm specifically the maths and chemistry markup.)

If you have an interesting project, we may be able to accommodate you; Pyarie, for instance, is hosted here. Otherwise, you'll need to convince your host to install auxiliaries, or roll your own server.
I'm available at pcd at wikitex dot org. Danenberg 23:47, 5 Apr 2005 (CDT)

ABC Notation Support

I posted a patch for basic ABC support at Maybe you can merge it into WikiTeX?

I had it integrated as of 1.0.5, but ABC support hasn't made it into 1.1 yet; if there's support, we can add it. My understanding, however, was that it was somewhat less robust than LilyPond notation. Danenberg 02:01, 24 February 2006 (CST)

Plot Data Files

Is it possible to plot data files in the <plot> environment, i.e. something like 'plot "<file>"'? 'plot function' works great, but I could not get 'plot "<file>"' to work. It says always "directive non gratum.".

Nope. I there is something limiting this feature. It might be part of the command filtering that is meant to increase security. But even if this did work, it would not make WikiTex plots much more usefull than uploading PNG files.

Inline data would be a nice option but for various reasons, it's not going to happen.

Billstr 18:01, 5 Jan 2006 (CST)

We've added this in 1.1-beta1; simply upload a file or start a wiki page, and reference it so:
<plot data="upload">plot "upload";</plot>
where upload is the file/page in question.Danenberg 02:02, 24 February 2006 (CST)

Plotting from Data Files

It is possible to do plots of experimental data but you need to make some changes to WikiTex to allow this. The Quote (") character is on the command black-list for plot.

If you look in ...\extensions\wikitex\wikitex.php for the line

$arrBlack['plot'] = array('cd', 'call', 'exit', 'load', 'pause', 'print', 'pwd', 
'quit', 'replot', 'reread', 'reset', 'save', 'shell', 'system', 'test', 'update',
 '!', 'path', 'historysize', 'mouse', 'out', 'term', 'file', '"', '\'');

You can remove the Quote character ('"') and suddenly you will be able to reference external data files, as in the example below.

plot "C:\\GnuPlotData\\plotexp.dat" index 0:0 using 1:2:3 with yerrorbars, 
"C:\\GnuPlotData\\plotexp.dat" index 1:1 using 1:2:3 with yerrorbars, 
"C:\\GnuPlotData\\plotexp.dat" index 2:2 using 1:2:3 with yerrorbars

this work is based on

The experimental file(s) must be located in a directory that is visible to the Wiki server!

--Howard Geraint Ricketts 05:47, 11 Jan 2006 (CST)


For some reason amsmath tags are not working. Putting a valid math expression between the tags gives:

WikiTeX: dvipng reported a failure, namely:
/var/www/html/wiki/extensions/wikitex/ line 59: dvipng: command not found

Has anyone had this error and knows how to fix it?

- JP

StasFomin 15:32, 25 Aug 2005 (CDT): First, check that "dvipng" utility is installed in your system (It is necessary for all Latex based extensions, such as amsmath, feyn, chess,...). The package "dvipng" exists in all modern Linuces, (and in Cygwin). If your Linux has no "dvipng" package, dvipng can be compiled ( ). If dvipng exist, check that dvipng in the apache PATH. At the worst, you can hardcode dvipng call in, as "/usr/local/bin/dvipng".


Is it possible to define a macro in wikitex? I don't know much TeX, but \def seems to be the command I'm looking for. But when I tried it, it didn't work, instead just reporting WikiTeX: directive non gratum. (see Sandbox#Macro)

We've changed security models in 1.1, and \def is indeed available. Danenberg 02:03, 24 February 2006 (CST)

Music example is broken

In the music example, starting at the end of bar 5 in the treble clef, there is some bad stuff going on. There is serious note collision, and I'm not enough of a lilypond fundi to know what to do about it. I had a bash in the sandbox, but the bit that I "fixed" was the bit that was best handled in the original! --Slashme 08:58, 25 May 2006 (CDT)

Equation numbers

I thought that wikitex has implemented AMSMath to a large extend. However it seems that the equation environment seems not to work. For the following example:

WikiTeX failure:
5, Fault 1: 'class 'modtex.execution.ExecutionError':(70, "This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 file:line:error style messages enabled.
entering extended mode
LaTeX2e 2003/12/01
Babel v3.8d and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
For additional information on amsmath, use the `?' option.
No file math.aux.

./math.tex:11: LaTeX Error: Bad math environment delimiter.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H return  for immediate help.
l.11  \\begin{equation}
No pages of output.
Transcript written on math.log.

I get an error message of the sort!

LaTeX Error: Bad math environment delimiter.
See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
l.6 \begin{equation}
! Missing \endgroup inserted.


l.8 \end{equation}


! LaTeX Error: \begin{equation*} on input line 5 ended by \end{equation}.
See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
l.8 \end{equation}

\end{displaymath} what is the problem? Most like enumerated equations are not supported, but if so, couldn't the documentation state this more explicitly? Thanks Oub 06:08, 22 June 2006 (CDT):

Musical example broken again

It looks like something is running as sudo that needs a password when it shouldn't.

Btw I've used Wikisophia with the lilypond plug-in quite a bit. It's really a wonderful tool! -- Cuthbert 03:26, 16 May 2007 (CDT)

rendering errors

Some of the graphics (chemistry and chess) are not working correctly anymore. Does anyone know what's causing the problem? -- 06:07, 10 July 2007 (CDT)

We're upgrading the software; are you continuing to have problems? Danenberg 11:26, 10 July 2007 (CDT)

Yes, there are still errors, check Wikisophia:Sandbox --Igor 18:54, 7 July 2007 (CDT)

For chess we have a new way of making titles; see Wikitex#Chess for an example. I'll bring back the old way as an alternative. Also, fixing the graphs should be trivial: I'll get to it later today. Danenberg 19:19, 7 July 2007 (CDT)

How to get an ampersand?

Since math seems to be disabled here, I cannot display my problem, but <math>A \& B</math> gives <math>A \& B</math> (an error message). How to get an ampersand? \binampersand from stmaryrd is not available. H. talk 07:40, 5 September 2007 (CDT)

works for me. (I added stmaryrd to the math template.) Remember to use <amsmath></amsmath>. Danenberg 14:04, 5 September 2007 (CDT)

How to change output image colors?

How can i make Wikitex output images with white text on a #222222 background?

Curl reported error 22: The requested URL returned error: 404

Hello! Trying the music example on my Wiki gives me following error:

WikiTeX failure:

2, Curl reported error 22: The requested URL returned error: 404

What should i do? Thank you

  • I have the same error too -- Curl.. is there better documentation for installation available somewhere?

With modtex and wikitex installed on my local machine, I have the same error too. But I fix it with following procedure,

   Method  1 :
        Just remove two lines
            AuthUserFile .htpasswd
            Require valid-user  
        in .htacess file at /var/www/html/modtex directory (with script)
   Method 2.
         Replace .htpasswd  with absolute path name , /var/www/html/modtex/.htpasswd  in .htacess file, ie.
         AuthUserFile .htpasswd---> AuthUserFile /var/www/html/modtex/.htpasswd
and it work for me.