From f7c4f2735c3961854a49a9042486731806070fea Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Fri, 13 Mar 2015 22:28:12 -0400 Subject: [PATCH] added separate index to latex, doesnt have contents line --- docs/source/conf.py | 9 ++++++--- docs/source/index_tex.rst | 31 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 docs/source/index_tex.rst diff --git a/docs/source/conf.py b/docs/source/conf.py index 4add61c4c3..18f93b66fc 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -35,7 +35,10 @@ source_suffix = '.rst' #source_encoding = 'utf-8' # The master toctree document. -master_doc = 'index' +if tags.has('latex'): + master_doc = 'index_tex' +else: + master_doc = 'index' # General information about the project. project = u'OpenMC' @@ -184,7 +187,7 @@ htmlhelp_basename = 'openmcdoc' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'openmc.tex', u'OpenMC Documentation', + ('index_tex', 'openmc.tex', u'OpenMC Documentation', u'Massachusetts Institute of Technology', 'manual'), ] @@ -196,8 +199,8 @@ latex_elements = { \setlistdepth{9} \usepackage{tikz} \usetikzlibrary{shapes,snakes,shadows,arrows,calc,decorations.markings,patterns,fit,matrix,spy} +\usepackage{fixltx2e} \hypersetup{bookmarksdepth=3} -%\renewcommand{\thechapter}{\Roman{chapter}} \setcounter{tocdepth}{2} \numberwithin{equation}{section} """ diff --git a/docs/source/index_tex.rst b/docs/source/index_tex.rst new file mode 100644 index 0000000000..d6dffcc4b6 --- /dev/null +++ b/docs/source/index_tex.rst @@ -0,0 +1,31 @@ +=========================== +The OpenMC Monte Carlo Code +=========================== + +OpenMC is a Monte Carlo particle transport simulation code focused on neutron +criticality calculations. It is capable of simulating 3D models based on +constructive solid geometry with second-order surfaces. The particle interaction +data is based on ACE format cross sections, also used in the MCNP and Serpent +Monte Carlo codes. + +OpenMC was originally developed by members of the `Computational Reactor Physics +Group`_ at the `Massachusetts Institute of Technology`_ starting +in 2011. Various universities, laboratories, and other organizations now +contribute to the development of OpenMC. For more information on OpenMC, feel +free to send a message to the User's Group `mailing list`_. + +.. _Computational Reactor Physics Group: http://crpg.mit.edu +.. _Massachusetts Institute of Technology: http://web.mit.edu +.. _mailing list: https://groups.google.com/forum/?fromgroups=#!forum/openmc-users + +.. toctree:: + :maxdepth: 1 + + quickinstall + releasenotes/index + methods/index + usersguide/index + devguide/index + publications + license + developers