Talk:Wikitex

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)

Installation

I apologize if this is not the place - but what is the "Password" I need during the running of wikitex-audit.sh? (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. 12.106.237.2 08:54, 31 March 2009 (CDT)

Fraktur

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 $, but it's not really designed for text: [itex] \mathfrak{Heute\ habe\ ich\ auf\ Deutsch\ geschrieben.\ Zum\ Fr\ddot{u}hst\ddot{u}ck\ habe\ ich\ R\ddot{u}hreier\ gegessen.}$

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)

</greedy>

-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 wikitex.org 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)

Electronics

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)

Chess

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)

Scaling

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)

Hosting

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 http://meta.wikimedia.org/wiki/Talk:Music_markup#What_about_ABC.3F. 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>
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
</plot>


this work is based on http://t16web.lanl.gov/Kawano/gnuplot/intro/plotexp-e.html

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)

AMSMath

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

WikiTeX: dvipng reported a failure, namely:

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 ( http://sourceforge.net/projects/dvipng/ ). If dvipng exist, check that dvipng in the apache PATH. At the worst, you can hardcode dvipng call in wikitex.sh, as "/usr/local/bin/dvipng".

Macros?

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
(./math.tex
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
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size12.clo))
(/usr/share/texmf/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the ?' option.
(/usr/share/texmf/tex/latex/amsmath/amstext.sty
(/usr/share/texmf/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf/tex/latex/stmaryrd/stmaryrd.sty)
(/usr/share/texmf/tex/latex/amsfonts/amssymb.sty
(/usr/share/texmf/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texmf/tex/latex/cancel/cancel.sty)
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/graphics/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
No file math.aux.
(/usr/share/texmf/tex/latex/stmaryrd/ustmry.fd)
(/usr/share/texmf/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf/tex/latex/amsfonts/umsb.fd)

./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  \

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

! Missing \endgroup inserted.


\endgroup

l.8


\end{displaymath}

! LaTeX Error: \begin{equation*} on input line 5 ended by .

See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
...

l.8


\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? --71.139.33.131 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 $A \& B$ gives $A \& B$ (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 traderjoe.py 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.
`