LaTeX forum ⇒ Texmaker and TeXstudioTexMaker / 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

Postby jobic2005 » Tue Oct 02, 2012 2:34 pm

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.

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

Tags:

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

Postby cgnieder » Tue Oct 02, 2012 3:18 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.
Reason: added more information
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm

Postby jobic2005 » Tue Oct 02, 2012 4:09 pm

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 :
  1. ("C:\Program Files\MiKTeX 2.9\tex\latex\chemmacros\chemmacros.sty"
  2. ! LaTeX Error: File `xfrac.sty' not found.
  3. Type X to quit or <RETURN> to proceed,
  4. or enter new name. (Default extension: sty)
  5. Enter file name:
  6. ! Emergency stop.
  7. <read *>
  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
(417 Bytes) Downloaded 358 times
Last edited by cgnieder on Tue Oct 02, 2012 11:36 pm, edited 1 time in total.
Reason: added code markup

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

Postby cgnieder » Tue Oct 02, 2012 4: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
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm

Postby jobic2005 » Tue Oct 02, 2012 4:56 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
l3packages.jpg (57.67 KiB) Viewed 11506 times

jobic2005
Posts: 5
Joined: Tue Oct 02, 2012 2:16 pm

Postby jobic2005 » Tue Oct 02, 2012 6:22 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
(69.78 KiB) Downloaded 367 times
LOG FIL1.pdf
(312.23 KiB) Downloaded 349 times

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

Postby cgnieder » Tue Oct 02, 2012 6:55 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
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

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

Postby cgnieder » Tue Oct 02, 2012 6:58 pm

Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Tue Oct 02, 2012 7:23 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
MPM(Admin)-Repository-Synchronize.png
The MiKTeX Package Manager (Admin) with the list of available packages.
MPM(Admin)-Repository-Synchronize.png (41.46 KiB) Viewed 11497 times
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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

Postby jobic2005 » Fri Oct 05, 2012 10:08 am

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
(1.42 KiB) Downloaded 397 times


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 2 guests