Skip to content

Commit

Permalink
Docs latex fixup (#617)
Browse files Browse the repository at this point in the history
Fixed the issue with the latex equations in the docs
  • Loading branch information
alongd committed Mar 23, 2023
2 parents 20865e9 + cda2263 commit b34b2fa
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
mamba env update -n arc_env -f environment.yml
conda list
- name: Install LaTeX
run: |
sudo apt install texlive-latex-base -y
sudo apt-get install texlive-latex-extra -y
sudo apt-get install -y dvipng
- name: Install codecov
run: mamba install -y -c conda-forge codecov

Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ travis_setup:
@git clone --single-branch --branch gh-pages --origin official https://${GH_TOKEN}@github.com/ReactionMechanismGenerator/ARC.git $(BUILDDIR)/html

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html -v
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

Expand Down
8 changes: 6 additions & 2 deletions docs/source/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -847,11 +847,15 @@ ARC uses statistical mechanics software packages (e.g., Arkane) to compute rate
the results of quantum chemistry calculations. By default, ARC instructs the statmech programs to compute rate
coefficients in the modified three-parameter Arrhenius equation format:

.. math :: k(T) = A \left( \frac{T}{T_0} \right)^n \exp \left( -\frac{E_a}{RT} \right)
.. math::
k(T) = A \left( \frac{T}{T_0} \right)^n \exp \left( -\frac{E_a}{RT} \right)
Alternatively, the user may request to compute the rate coefficients in the classical two-parameter Arrhenius format:

.. math :: k(T) = A \exp \left( -\frac{E_a}{RT} \right)
.. math::
k(T) = A \exp \left( -\frac{E_a}{RT} \right)
by setting the ``three_params`` attribute to ``False`` (it is ``True`` by default). For example::

Expand Down
4 changes: 2 additions & 2 deletions docs/source/api/job.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _job:

arc.job.job
arc.job
===========

.. automodule:: arc.job.job
.. automodule:: arc.job
:members:
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@


# -- Options for LaTeX output ------------------------------------------------

imgmath_latex = 'latex'
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ dependencies:
- conda-forge::ase >=3.15.0
- anaconda::ipython
- anaconda::sphinx
- anaconda::sphinxcontrib-jsmath
- conda-forge::qcelemental
- mako
- pytables
Expand Down

0 comments on commit b34b2fa

Please sign in to comment.