]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/LaTeX_Error.mdwn
This reverts commit 190c34804451532673bd46d2073f444f820a2687.
[ikiwiki.git] / doc / forum / LaTeX_Error.mdwn
1 Greetings. 
2
3 I am put this code in one page:
4 [[!teximg code="\frac{1}{5}" alt="1/5"]]
5
6 this is the configuration file ikiwiki.info:
7
8 add_plugins => [qw{sidebar goodstuff textile html htmlscrubber table pagetemplate teximg map meta anonok img version textile txt}]
9
10   *Here the log*
11
12 This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=latex 2008.8.4)  5 AUG 2008 10:01
13 entering extended mode
14  %&-line parsing enabled.
15 **/tmp/fb7742f8dd0c66473643ba40592e2be2.SBQfJo94ii/fb7742f8dd0c66473643ba40592e
16 2be2.tex
17
18 (/tmp/fb7742f8dd0c66473643ba40592e2be2.SBQfJo94ii/fb7742f8dd0c66473643ba40592e2
19 be2.tex
20
21 [...]
22
23 Package scrkbase Info: You've used the obsolete option `12pt'.
24 (scrkbase)             \KOMAoptions{fontsize=12pt} will be used instead.
25 (scrkbase)             You should do this change too on input line 594.
26
27 [...]
28
29 ! LaTeX Error: File `mhchem.sty' not found.
30
31 Type X to quit or <RETURN> to proceed,
32 or enter new name. (Default extension: sty)
33
34 Enter file name: 
35 ! Emergency stop.
36 <read *> 
37          
38 l.1 ...l}\usepackage[version=3]{mhchem}\usepackage
39
40                                                   {amsmath}\usepackage{amsfo...
41
42 (cannot \read from terminal in nonstop modes)
43  
44
45 Here is how much of TeX's memory you used:
46  761 strings out of 94074
47  10268 string characters out of 1167096
48  66007 words of memory out of 1500000
49  4120 multiletter control sequences out of 10000+50000
50  3938 words of font info for 15 fonts, out of 1200000 for 2000
51  645 hyphenation exceptions out of 8191
52  30i,1n,28p,410b,45s stack positions out of 5000i,500n,6000p,200000b,10000s
53 No pages of output.
54
55
56 Some idea ?. 
57
58 >> It looks like teximg uses some less standard LaTeX packages.  (see line 100 of Ikiwiki/Plugin/teximg.pm in the Ikiwiki source.)
59 >> A quick work-around for an end-user would be to install the 'mhchem' LaTeX package (look in [CTAN](http://www.ctan.org/) ).
60 >> A medium-term workaround would be to replace 'scrartcl' on line 100 with 'article', and delete line 101 in the teximg source.
61 >> Longer term it would be nice to give teximg a configurable preamble.
62 >> Hrm - maybe that configurable preamble should be a [[todo]]? -- [[users/Will]]
63
64 >>>Yes it works. Thanks. I am writing some code for examples.
65
66