Texmaker and TeXstudio ⇒ TexMaker / Miktex : problem with the package mychemistry
TexMaker / Miktex : problem with the package mychemistry
I use TexMaker Editor with the MikTex distribution (OS Windows XP)
I want to write document dealing with chemistry for my course (Newman Molecular Representation).
In that way, I want to use Mychemistry and chemmacros packages.
To practise these packages, I have copied the following code in TexMaker (attached document test.tex) : I found this code at the mychemistry page (following adress : http://www.mychemistry.eu/2011/05/chemm ... rly-there/.)
But when I compile, I get the error message that you can see in the attached document Log File.pdf and message.jpg.
I can't solve the problem...please, thank you for helping me.
Jobic (France)
- Attachments
-
- LOG FILE.pdf
- Log message provide by TexMaker
- (305.12 KiB) Downloaded 746 times
-
- test.tex
- Tex document for testing the chemmacros and mhchem packages
- (1.16 KiB) Downloaded 860 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
TexMaker / Miktex : problem with the package mychemistry
Welcome to the LaTeX community!
I would bet you have an outdated TeX distribution. chemmacros relies on up to date versions of the l3kernel and l3packages. You should try to update your system.
BTW: the code I posted on the site you've linked is outdated, too. It uses deprecated commands (like
\Rcip), or the macros have changed in how they take their arguments (like \ox). Try the examples of the documentation (
chemmacros) instead. (I should mention it there, I guess...)Regards
TexMaker / Miktex : problem with the package mychemistry
You are right, my packages were outdated (I can't understand with the Miktex Update Manager didn't detect it.
I have updated the three files l3kernel, l3experimental and l3packages : downloaded and extracted in the Miktex folder.
I have run refresh FNDB in Miktex Setting
And I have only keep the following lines in attached file: test.tex
But I still get an error message :
Code: Select all
("C:\Program Files\MiKTeX 2.9\tex\latex\chemmacros\chemmacros.sty"
! LaTeX Error: File `xfrac.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.30 \RequirePackage
{ tikz , mathtools , environ , scrlfile , etoolbox , bm }
*** (cannot \read from terminal in nonstop modes)
Here is how much of TeX's memory you used:
11866 strings out of 493921
241034 string characters out of 3147210
272705 words of memory out of 3000000
15029 multiletter control sequences out of 15000+200000
3940 words of font info for 15 fonts, out of 3000000 for 9000
841 hyphenation exceptions out of 8191
56i,1n,52p,304b,53s stack positions out of 5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!Jobic
- Attachments
-
- test.tex
- (417 Bytes) Downloaded 600 times
Re: TexMaker / Miktex : problem with the package mychemistry
I'm no MiKTeX user so I can't advise you there but I've read more than once about update problems with MiKTex both in this forum and elsewhere.
Regards
Re: TexMaker / Miktex : problem with the package mychemistry
I have found xfrac.dtx and xfrac.ins in the l3packages...where can I found xfrac.sty ?
Here is the limit of my knowledge...
thank you
Jobic
- Attachments
-
- l3packages.jpg (57.67 KiB) Viewed 16986 times
Re: TexMaker / Miktex : problem with the package mychemistry
I succed in generating the xfrac.sty (and the other file.sty) by using the cmd console of windows. I have run twice "latex l3.ins" which is located in the l3kernel, then I have run xfrac.ins twice ...then I copied it in the folder l3packages...
but I still get error message (LOG FIL1.pdf)
I don't understand, I get a test.pdf but It is unreadable...(have a look... on the attached file)
Jobic
- Attachments
-
- test.pdf
- (69.78 KiB) Downloaded 853 times
-
- LOG FIL1.pdf
- (312.23 KiB) Downloaded 662 times
Re: TexMaker / Miktex : problem with the package mychemistry
Regards
Re: TexMaker / Miktex : problem with the package mychemistry
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
TexMaker / Miktex : problem with the package mychemistry
Best regards and welcome to the board
Thorsten
- Attachments
-
- The MiKTeX Package Manager (Admin) with the list of available packages.
- MPM(Admin)-Repository-Synchronize.png (41.46 KiB) Viewed 16977 times
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
TexMaker / Miktex : problem with the package mychemistry
Sorry not to have answered to the comments done by localghost and cgnieder because I was busy (teaching).
Following what you notice concerning Miktex, I have read the MikTex Manual then I have uninstalled Miktex and re-installed it in order to get a "clean" packages installation.
Result : it nearly works !...
Actually, in the newmantest.tex file, TexMaker compile the entire file but the line in comment (line 11,17,24,37,42).
But cgnieder has mentionned that a few commands were outdated in this example. I have tried commands from the http://texdoc.net/texmf-dist/doc/latex/ ... ros_en.pdf and it looks fine. I get some problems but I am not worried about them because the document is compiled : these are not packages problems (the orbitals representation on page 41 of the english version : the compilation works and the lines 10 using chemfig package produce a wrong picture. But I have not worked on the origin of the problem).
Now, with the chemmacros tuto, I should succeed in using the chemmacros packages. It looks really powerfull.
For me, the conclusion is that I have to maintain Miktex carefully...
I really thank you for your help. Sorry for my english...
regards,
Jobic2005
- Attachments
-
- newmantest.tex
- (1.42 KiB) Downloaded 918 times