Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chemistry]

{chemistry} is about typesetting chemical content.

56
votes
2answers
36k views

Can you make chemical structure diagrams in LaTeX?

Can you create diagrams of chemical structures in LaTeX? Example(s) of "chemical structure diagrams":
34
votes
1answer
30k views

Typesetting chemical element names

What is the 'best' package for typesetting names of chemical element? (I don't need anything but the names of the chemical elements.) Assume I want to typeset The dissociation of a AgBr molecure ...
19
votes
2answers
4k views

Draw Lewis structures like a book

I want to draw a Lewis structure as in the picture. I tried to do with chemfig but does not perform the separation of the points and a minus in the superscript.
17
votes
4answers
3k views

Typing CO_2 easily

I'm writing my dissertation and that involves typing a lot of $\mathrm{CO_2}$. I'd like to make a macro for it that's a lot easier to type, but if I put \newcommand{\co2}{\mathrm{CO_2}}, for example, ...
14
votes
5answers
11k views

Superscript in upper left to denote isotope in LaTeX [duplicate]

I am trying to denote a 28Si isotope. I used $^{28}Si$. In the output, the chemical symbol is in italics, also there is an unnecessary space between the symbol and the nucleon number. How do I get ...
14
votes
2answers
2k views

Periodic table with electron counts in shells

Expectations I would like to make my own periodic table in LaTeX. It should (...) have a space between the orbital groups (s, p, d, f) every group should have rounded corners the different "...
13
votes
3answers
1k views

How to draw ligands with different hapticities

In organometallic chemistry it's common to draw ligands that are not bound atom to atom. Common examples are ferrocene: or Zeisse's salt: Does anyone have a strategy for approaching structures such ...
12
votes
2answers
57k views

Arrows chemical equations

I want to write the following equation; note the arrow underneath BaSO_4 and the H_2O over the \longrightarrow. Is that possible with the chemist package, which I already use for my chemical ...
12
votes
2answers
445 views

Typesetting “Na(+)/Cl(-)-dependent”

\documentclass[border=20pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{lmodern} \begin{document} Na\textsuperscript{+}/Cl\textsuperscript{-}-dependent \end{document} I don't really like the ...
10
votes
2answers
6k views

Alignment of chemical equations

I would like to align some chemical reactions in my document. This is an example of what I did: \begin{equation} \nuclide[14][7]{N} + n \to \nuclide[14][6]{C} + p \end{equation} <Some text> \...
10
votes
1answer
1k views

Chemical equation with “●” symbol

How to write this equation (the ● is like the +). I'm using {chemist} package for ordinary equations. ROO● + AH → ROOH + A●
9
votes
1answer
123 views

Chemical symbols for the order of a rotational axis

I need the following symbols for a class in crystallography, are there any package that contains them? They are mostly needed for drawing figures in tikz as the numeral descriptions on the left will ...
8
votes
1answer
17k views

How to write a chemical formula? [duplicate]

In order to produce the following output involving a chemical formula I can attempt to write the chemical formula as a mathematical formula: \documentclass{report} \usepackage{amsmath} \begin{...
8
votes
2answers
2k views

Do a chemical notation of an element

So, at school (outside the US) our teacher has given us this type of chemical notation: Where Ar is the relative atomic mass, Z atomic number, p protons, n neutrons. Example: UPDATE: I want to make ...
8
votes
3answers
742 views

Atomic electronic configuration with small boxes

I need to create a new command for the electronic distribution of an atom (orbitals S, P, D, F), similar to the one shown in the link below, but with boxes around the electron pairs. Can someone help ...
8
votes
1answer
355 views

How to typeset electrochemical cells

Electrochemical cells should be typeset According to the "Green Book" from IUPAC with vertical bars, dashed vertical bars and double dashed vertical bars. (first picture) According to Atkins, ...
8
votes
2answers
300 views

How do I produce the text displayed on the banner of this website?

This question is for interest purposes, rather than a problem which I have to be solved. How does one produce the equations and text displayed on the banner of this website? Here is a screenshot of ...
7
votes
2answers
15k views

How can I write these chemical reaction equations?

Trying to write a thesis, and I need some reaction equations. How can I write this in LaTeX?
7
votes
1answer
1k views

Chemistry package for typesetting nuclide

Is there a chemistry package with a specific command for typesetting nuclide? If not, what is the preferred method for typing this? Here is what I have myself: \documentclass{article} \usepackage[...
7
votes
2answers
2k views

Chemical Equations

I need to include chemical equations in my thesis project. However, when I render my thesis with all the equations included, LaTeX cannot seem to process what seems to be such a 'big' file and the '...
7
votes
2answers
187 views

Is there a way to show Reaction instead of Equation when referring to an equation?

I'm writing a thesis in which I have both equations and chemical reactions. I was wondering if it can be changed something in equations referencing, so that when you refer to one of them that is a ...
6
votes
4answers
394 views

How to typeset chemical formulas in roman? [duplicate]

I'm new to LaTeX and have a desire to learn as I'm completing a PhD and have been told LaTeX is a great platform for writing scientific documents. So, I have written a short plain English piece in ...
6
votes
3answers
136 views

Alternatives to achieve certain output format

Consider the following MWE \documentclass[border=10 pt]{standalone} \usepackage{mathtools,setspace} \begin{document} $\displaystyle {\setstretch{1.5} \begin{array}{ccccccccccccccccccccccc} ^{12} \...
6
votes
2answers
2k views

Kröger Vink notation

This question led to a new feature in a package: chemformula How to properly typeset Kröger Vink notation? I can try something like \ce{V_O^{..}} (using mhchem) but the dots are not aligned well ...
6
votes
3answers
676 views

Type-setting quadruple bonds in LaTeX

How does one typeset quadruple bonds in LaTeX? I've tried several things: Vertically stacking equal signs, putting lines in tables, etc. Single up to tripple bonds is easy (by using the chemfig ...
6
votes
3answers
4k views

Displaying a Carbonate Ion with mhchem

I want to write out the formula for the aqueous carbonate ion using the mhchem package. If I write out CO3^{2-}, it looks the way it should be. (See image.) However, I want to write out: CO3^{2-}_{...
6
votes
1answer
1k views

Which chemistry package can be used for Lewis formulae and electron movement arrows?

I wanted to reproduced this set of steps for my thesis but I have no idea what package can do this. I am a newbie to latex I only started a few weeks ago.
6
votes
2answers
514 views

Complementary pairs of Guanine and Cytosine

I am new to TikZ and need help with drawing the following diagram of complementary pairs of Guanine and Cytosine. I am trying to do it the following way but do not know how to rotate and join the ...
6
votes
2answers
1k views

drawing electron configuration (high and low spin)

How does I create an image like the one shown under this text directly in the LaTeX document? I have tried with TikZ, but I can only make boxes with the arrows inside, and not exactly like the image. ...
6
votes
2answers
906 views

How to draw counter-ions using chemfig package?

For my thesis I need to draw this: With this code I could get everything except for the counter-ion (shown with red arrow, I do not need the red arrow and the line on the figure). \documentclass[...
6
votes
2answers
306 views

How to draw Cu-ATSM compound?

I am trying to draw the following compound in tex using chemfig but I am only getting part of it and do not know how to finish the compound. This is what I got using \documentclass{article} \...
6
votes
1answer
207 views

Russian babel and chemformula

I want to write chemical formulae in a predominant german Text with a small number of russian words. For that I use babel and chemformula, but they produce a heavy conflict. My MWE: \documentclass{...
6
votes
1answer
125 views

chemmacros: Using \mbox{} within \iupac{} leads to @x in running title

I am using chemmacros in my thesis and have the following problem: When using \mbox{} within \iupac{} in a \section{} or \subsection{} it leads to "@x " being printed in the running title. Also, the ...
5
votes
3answers
813 views

Electron Configuration Diagram

I have seen some other postings about related electron configurations, but nothing that matched what I was looking for. I am pretty comfortable with a lot of LaTeX, except when it comes to stuff like ...
5
votes
2answers
13k views

Align equilibrium arrows with mhchem

I have the following code made with the mhchem package: \begin{align} \ce{CH3COOH + NaOH <=> CH3COONa + H2O} \\ \ce{H2O <=> H^{+}_{(aq)} + OH^{-}_{(aq)}} \end{align} Which ...
5
votes
2answers
121 views

How to write chemical formula with branching and with labels for each branch

I would like to express a chemical reaction, which can lead to multiple products (has multiple branches). This is usually expressed using a forked arrow as in the example equation (1) below. I wrote a ...
5
votes
1answer
2k views

\frac not working

I'm new here so bear with me if I don't catch on to something immediately. I'm trying to write some script for some copyediting I'm doing and it automatically converts the code into the format once ...
5
votes
2answers
3k views

Chemistry arrows in restricted latex

I'm writing some software that interfaces with a LaTeX renderer. I need to write chemical reactions and equilibria, but I don't have access to xrightleftharpoons, is there a way I can render the same ...
5
votes
1answer
510 views

TikZ and tikzorbital: problem with background

It looks like tikzorbital package is not compatible with background library of basic TikZ. As you see in the picture below, just p_y displayed (do not pay attention to notations in MWE). It displays ...
5
votes
1answer
969 views

Modiagram Package: How can we add 3s,3d … orbitals?

I'm learning to use LaTeX to prepare my chemistry lessons using Beamer. While searching the internet I found the modiagram package that helped me so much, but I need help with the following: How can ...
5
votes
1answer
90 views

Fail to pass arguments to orbital module of chemmacros when used inside chemfig

While illustrating atomic orbitals for 1,3-butadiene guided by examples in chemmacros' manual, I receive the following error: Argument of \orbital has an extra }. } MWE: \documentclass{article} \...
5
votes
1answer
359 views

Chemical Structures

I have trouble in entering the following chemical reaction in LaTeX. I will be very grateful for every help.
5
votes
1answer
868 views

Formatting redox reactions with chemmacros and mhchem; arrows aren't drawn correctly

I'm using the chemmacros package to format redox reactions using its redox module to get the nice arrows that indicate which atoms are changing oxidation state as illustrated in the package manual. I ...
4
votes
3answers
252 views

Drawing haemoglobin and Ligands

I'm trying to generate this shape but I am having problems with connecting the nitrogen atoms with the slightly curved lines as shown in the diagram. Is there anyway using the chemfigpackage (or any ...
4
votes
5answers
624 views

Display a sequence of materials with chemical symbols

I frequently have to describe a sequence of materials in a layer stack such as the following: Ta/Cu/Ta/Cu/Co−Fe−B/MgO/Co−Fe−B/Ta/Ru/Au The dash indicates an alloy of unspecified composition. My ...
4
votes
2answers
2k views

Draw molecule charge in latex using chemfig?

I've got a lewis dot structure diagram as seen in the following image: However, I would like to have brackets on the outside to indicate the positive charge, since this is supposed to represent H3O 1+...
4
votes
2answers
74 views

How to extend the elements package to print melting and boiling points?

To my propose I would like to extend the elements package to print too the melting and boiling points of chemical elements. Using the same logic used in elements package, I thought about creating ...
4
votes
2answers
73 views

Chemistry Lewis Dot Diagram: Moving Square Bracket

\documentclass{article} \usepackage{chemfig} \begin{document} \schemestart \chemfig{\lewis{2.4.6.,C}-\lewis{2.6.0.,N}} \arrow \chemleft[ \chemfig{\lewis{4:,C}~\lewis{0:,N}}\chemright ] ...
4
votes
3answers
635 views

Annotate stoichiometric numbers below chemical reaction

I use the chemmacros packages to write chemical reactions in LaTeX, like this: \ch{CH4 + 2 O2 -> CO2 + 2 H2O} But now, I want to annotate the stoichiometric numbers below chemical reaction, as ...
4
votes
1answer
131 views

How to show element name in portuguese using elements package?

I have to do a big table using the chemical elements names in portuguese. I'm using the elements package to do that, but don't works. Below following a few examples. \documentclass{article} \...