## LaTeX forum ⇒ Texmaker and TeXstudio ⇒ TexMaker / Miktex : problem with the package mychemistry Topic is solved

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm

### TexMaker / Miktex : problem with the package mychemistry

Hi,
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/chemmacros-nearly-there/.)

But when I compile, I get the error message that you can see in the attached document Log File.pdf and message.jpg.

Screen shot of TexMaker error message
message.jpg (303.78 KiB) Viewed 12030 times

I can't solve the problem...please, thank you for helping me.
Jobic (France)
Attachments
LOG FILE.pdf
Log message provide by TexMaker
test.tex
Tex document for testing the chemmacros and mhchem packages

Tags:

cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm
Hi jobic,

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
Last edited by cgnieder on Tue Oct 02, 2012 3:28 pm, edited 2 times in total.
site moderator & package author

jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm
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 :
1. ("C:\Program Files\MiKTeX 2.9\tex\latex\chemmacros\chemmacros.sty"
3. Type X to quit or <RETURN> to proceed,
4. or enter new name. (Default extension: sty)
5. Enter file name:
6. ! Emergency stop.
8. l.30 \RequirePackage
9. { tikz , mathtools , environ , scrlfile , etoolbox , bm }
10. *** (cannot \read from terminal in nonstop modes)
11. Here is how much of TeX's memory you used:
12. 11866 strings out of 493921
13. 241034 string characters out of 3147210
14. 272705 words of memory out of 3000000
15. 15029 multiletter control sequences out of 15000+200000
16. 3940 words of font info for 15 fonts, out of 3000000 for 9000
17. 841 hyphenation exceptions out of 8191
18. 56i,1n,52p,304b,53s stack positions out of 5000i,500n,10000p,200000b,50000s
19. ! ==> Fatal error occurred, no output PDF file produced!

Regards
Jobic
Attachments
test.tex
Last edited by cgnieder on Tue Oct 02, 2012 11:36 pm, edited 1 time in total.

cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm
If xfrac is missing you still don't have the up to date versions since it is part of the l3packages.

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
site moderator & package author

jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm
Hi,
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 12019 times

jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm
Hi,
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
LOG FIL1.pdf

cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm
Instead of updating packages manually - which is tricky as you've noticed and bears the danger of getting packages aut of sync - you should use the update manager. I know MiKTeX has one. And you've probably need to refresh the database as well. A forum or web search should give you hints how to do both tasks.

Regards
site moderator & package author

cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm
site moderator & package author

localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm
It can't do any harm to read the relevant part of the MiKTeX Manual (Chapter 4 - Maintenance). Start the MiKTeX Package Manager (MPM), synchronize the package repository database and then install the LaTeX3 related packages (see attachment). Get used to keeping your TeX distribution up to date. LaTeX packages are under continuous development.

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 12010 times
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm
Hi,
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/chemmacros/chemmacros_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