Texmaker and TeXstudioTexMaker / Miktex : problem with the package mychemistry

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

TexMaker / Miktex : problem with the package mychemistry

Post by jobic2005 »

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/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.
Screen shot of TexMaker error message
Screen shot of TexMaker error message
message.jpg (303.78 KiB) Viewed 16306 times
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 716 times
test.tex
Tex document for testing the chemmacros and mhchem packages
(1.16 KiB) Downloaded 836 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

TexMaker / Miktex : problem with the package mychemistry

Post by cgnieder »

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

TexMaker / Miktex : problem with the package mychemistry

Post by jobic2005 »

Thank you for your answer.
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!
Regards
Jobic
Attachments
test.tex
(417 Bytes) Downloaded 572 times
Last edited by cgnieder on Tue Oct 02, 2012 11:36 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: TexMaker / Miktex : problem with the package mychemistry

Post by cgnieder »

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

Re: TexMaker / Miktex : problem with the package mychemistry

Post by jobic2005 »

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
l3packages.jpg (57.67 KiB) Viewed 16295 times
jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm

Re: TexMaker / Miktex : problem with the package mychemistry

Post by jobic2005 »

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
(69.78 KiB) Downloaded 818 times
LOG FIL1.pdf
(312.23 KiB) Downloaded 628 times
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: TexMaker / Miktex : problem with the package mychemistry

Post by cgnieder »

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
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: TexMaker / Miktex : problem with the package mychemistry

Post by cgnieder »

site moderator & package author
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

TexMaker / Miktex : problem with the package mychemistry

Post by localghost »

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.
The MiKTeX Package Manager (Admin) with the list of available packages.
MPM(Admin)-Repository-Synchronize.png (41.46 KiB) Viewed 16286 times
jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm

TexMaker / Miktex : problem with the package mychemistry

Post by jobic2005 »

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/ ... 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 893 times
Post Reply