LaTeX forum ⇒ MiKTeX and proTeXtPackage Installation Topic is solved

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Coral
Posts: 11
Joined: Thu Apr 18, 2013 4:32 pm

Package Installation

Postby Coral » Wed Jun 19, 2013 3:00 pm

Dear All,

I'm trying to install the package chemmacros but I cannot. Please, could you check my steps and correct me?

  1. I inserted the line \usepackage{chemmacros} in my class file.

  2. After downloading the bundle I have been looking for the directory where the style files are, but I wasn't able to find it. I have looked for it in "Program Files/MiKTeX 2.9" and in "Program Data/MiKTeX" but not success, I haven't found any "texmf/tex/latex/". So I cannot place "/languages" and "/pictures" in there.

I need to write IUPAC names and I would like to try to write some chemical schemes, if it's possible with my knowledge. Should I define the options of the package or just by inserting \usepackage{chemmacros} in the class and placing the "/pictures" and "/languages" into the directory where the style files are can I just use the commands directly?

Thank you very much for your help.

Coral

Tags:

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

Postby localghost » Wed Jun 19, 2013 4:55 pm

Simply install the package by the MiKTeX Package Manager. There is nothing else to do. The usage of the package is described in the package manual. After installation you have direct access via command line.
  1. texdoc chemmacros


The installation of packages in general has been discussed here so many times that a decent Forum Search should yield useful results, too. See also "Similar Topics" on the bottom of this page (only when logged in).


Thorsten
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

Coral
Posts: 11
Joined: Thu Apr 18, 2013 4:32 pm

Postby Coral » Wed Jun 19, 2013 6:32 pm

Dear Thorsten,

I never had to instal any package like that, that's why I was wondering whether this chemical one was somehow special, and as I am quite new I never heard about MiKTeX Package Manager. Thank you very much for your information.

Best,

Coral

Coral
Posts: 11
Joined: Thu Apr 18, 2013 4:32 pm

Postby Coral » Fri Jun 21, 2013 11:10 am

Morning,

I have already installed the package by MiKTeX, I have refreshed the files name database (Refresh FNDB) via MiKTeX Options (Programs -> MiKTeX -> Maintenance -> Settings)? I have pressed the Update Formats button after having installed the new package, and I flipped 'Install packages on-the-fly' to 'yes'.

My class contains those packages:
  1. \usepackage{enumerate}
  2. \usepackage[
  3. circletype,
  4. greek,
  5. iupac,
  6. language=english,
  7. method,
  8. Nu,
  9. strict,
  10. synchronize
  11. ]{chemmacros} % ‘chemmacros’, ‘chemformula’ and ‘ghsystem’ are loaded
  12. \usepackage{amssymb}
  13. \usepackage{multirow}
  14. \usepackage{color}
  15. \usepackage[T1]{fontenc}
  16. \usepackage[latin1]{inputenc} % Input in ISO 8859-1 (Latin1)
  17.  
  18. \usepackage{ae} % Almost european, virtual T1-Font
  19. \usepackage[pdftex]{graphicx}
  20. \usepackage{sidecap}
  21. \usepackage{wrapfig}
  22. \usepackage{vmargin} % Adjust margins in a simple way
  23. \usepackage{fancyhdr} % Define simple headings
  24. \usepackage{subfigure}
  25. \usepackage{url}
  26. \usepackage[absolute,overlay]{textpos}
  27. \usepackage{tikz}
  28. \usepackage[english,ngerman]{babel}
  29. \usepackage{algorithm} % Code-Listings
  30. \usepackage{algorithmic} % Code-Listings
  31. % see http://www.ctan.org/tex-archive/macros/latex/contrib/algorithm2e/algorithm2e.pdf
  32. % for more sophisticated algorithm listings
  33.  
  34. \usepackage[
  35. raiselinks=true,
  36. bookmarks=true,
  37. bookmarksopenlevel=1,
  38. bookmarksopen=true,
  39. bookmarksnumbered=true,
  40. hyperindex=true,
  41. plainpages=false,
  42. pdfpagelabels=true,
  43. pdfborder={0 0 0.5},
  44. colorlinks=false,
  45. linkbordercolor={0 0.61 0.50},
  46. citebordercolor={0 0.61 0.50}
  47. ]{hyperref} %{0.57 0.74 0.57}
  48.  
  49. \usepackage[fixlanguage]{babelbib} % sets german style for literature entries
  50. \selectbiblanguage{ngerman} % for \bibliographystyle{babalpha}
  51. %% --- End of Packages ---

I have also installed all these packages from Miktex 2.9: l3kernel and l3packages bundles, siunitx, mathtools, bm, nicefrac and environ. From the group of tikz I have:
tikz-timing
tikz-3dplot
tikz-qtree
tikz-inet
circuitikz
tikzorbital
Do I need another different or some more?

After installing the chemmacros via MiKTeX, having all the packages cited above I was suppose to have direct access via command line. But when I am trying for example \ch{H2O} an "! Undefined control sequence." error comes out.

Could you help me please? In case you need more information, just ask me. Thank you very much in advance.

Best,
Coral

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

Postby cgnieder » Fri Jun 21, 2013 12:37 pm

With an up to date MiKTeX or TeX Live the document

  1. \documentclass{article}
  2. \usepackage{chemmacros}
  3. \begin{document}
  4. \ch{H2O}
  5. \end{document}


Should work without the need of any manual installation of packages.
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

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

Postby cgnieder » Fri Jun 21, 2013 12:40 pm

Coral wrote:when I am trying for example \ch{H2O} an "! Undefined control sequence." error comes out.


It should also say which control sequence is undefined. Could you post a) a complete Infominimal working example that produces the error and b) post the complete error message?

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

Coral
Posts: 11
Joined: Thu Apr 18, 2013 4:32 pm

Postby Coral » Fri Jun 21, 2013 3:36 pm

Thank for your reply.

I've removed expl3 and xpackages and I've update the packages from MiKTeX 2.9 and now using.

Consider this minimal example.
  1. \documentclass{article}
  2. \usepackage{chemmacros}
  3.  
  4. \begin{document}
  5. \ch{H2O}
  6. \end{document}


It gives me this error.
  1. ! LaTeX Error: File `amstext.sty' not found.
  2. Type X to quit or <RETURN> to proceed,
  3. or enter new name. (Default extension: sty)
  4. Enter file name:
  5. ! Emergency stop.
  6. <read *>
  7. l.51 \GetIdInfo
  8. $Id: xfrac.dtx 4299 2012-11-09 18:48:51Z joseph $
  9. *** (cannot \read from terminal in nonstop modes)


And when compiling something, TeXmaker reports something I´ve never seen before.
Process started

pdflatex

: The operation could not be completed beause the following package is unknown: pdflatex: pdflatex: amslatex

Process extied with error(s)

Thanks for your help.


Best,
Coral
Last edited by localghost on Fri Jun 21, 2013 5:03 pm, edited 1 time in total.
Reason: Longer passages of source code are tagged as code block, not as in-line code.

Coral
Posts: 11
Joined: Thu Apr 18, 2013 4:32 pm

Postby Coral » Fri Jun 21, 2013 5:00 pm

There was a problem with the repository I was using to update. Now this works!
  1. \documentclass{article}
  2. \usepackage{chemmacros}
  3.  
  4. \begin{document}
  5. The water is \ch{H2O}
  6. \end{document}


Nice!

I hope not contact you again :)

Thanks again for your time!
Last edited by localghost on Fri Jun 21, 2013 5:05 pm, edited 1 time in total.
Reason: Longer passages of source code are tagged as code block, not as in-line code.


Return to “MiKTeX and proTeXt”

Who is online

Users browsing this forum: No registered users and 2 guests