diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/modiagram/modiagram_doc_en.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/modiagram/modiagram_doc_en.tex | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/modiagram/modiagram_doc_en.tex b/Master/texmf-dist/doc/latex/modiagram/modiagram_doc_en.tex index a1008bea4d5..d9526477530 100644 --- a/Master/texmf-dist/doc/latex/modiagram/modiagram_doc_en.tex +++ b/Master/texmf-dist/doc/latex/modiagram/modiagram_doc_en.tex @@ -1,10 +1,10 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % --------------------------------------------------------------------------- % -% - MOdiagram - modiagram_doc_de.tex - % +% - MOdiagram - modiagram_doc_en.tex - % % - easy creation of molecular orbital diagrams - % % --------------------------------------------------------------------------- % % - Clemens NIEDERBERGER - % -% - 2011/10/27 - % +% - 2012/01/23 - % % --------------------------------------------------------------------------- % % - http://www.mychemistry.eu/ - % % - contact@mychemistry.eu - % @@ -12,7 +12,7 @@ % - If you have any ideas, questions, suggestions or bugs to report, please - % % - feel free to contact me. - % % --------------------------------------------------------------------------- % -% - Copyright 2011 Clemens Niederberger - % +% - Copyright 2011-2012 Clemens Niederberger - % % - - % % - This work may be distributed and/or modified under the - % % - conditions of the LaTeX Project Public License, either version 1.3 - % @@ -30,9 +30,13 @@ % - modiagram_doc_de.tex, README - % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass{scrartcl} -\usepackage[english]{babel} -\usepackage[utf8]{inputenx} -\usepackage{lmodern,emerald,microtype} +\usepackage{fontspec,xltxtra} +\usepackage{polyglossia} + \setmainlanguage{english} + \defaultfontfeatures{Scale=MatchLowercase} + \setmainfont[SmallCapsFont=Linux Libertine Capitals O,SlantedFont=Linux Libertine Slanted O]{Linux Libertine O} + \setsansfont[SmallCapsFont=Linux Biolinum Capitals O,SlantedFont=Linux Biolinum Slanted O]{Linux Biolinum O} + \setmonofont{Inconsolata} \usepackage[dvipsnames]{xcolor} \colorlet{code}{RawSienna} \usepackage{modiagram,xspace,siunitx,framed,chemfig,booktabs} @@ -114,26 +118,20 @@ } \newcommand*\MOname{\textsf{MOdiagram}\xspace} -\newcommand*\MOversion{0.2\xspace} -\newcommand*\MOdate{2011/10/27} +\newcommand*\MOversion{0.2a\xspace} +\newcommand*\MOdate{2012/01/23} \newcommand*\paket[1]{\textsf{#1}\footnote{\url{http://www.ctan.org/pkg/#1}}} -\newcommand*\changefont[3]{\fontfamily{#1}\fontseries{#2}\fontshape{#3}\selectfont} - -\DeclareDocumentEnvironment{myquote}{o} - {\quote\small\changefont{cmss}{m}{sl}} - {\IfNoValueF{#1}{\par\noindent\parbox{\linewidth}{\raggedleft\normalfont\itshape#1}}\endquote} - \newcommand*\TikZ{\mbox{Ti\textbf{\textit{k}}Z}\xspace} \newcommand*\etc{\mbox{etc.}\xspace} \newcommand*\ie{\mbox{i.e.}\xspace} \newlength\marginnotewidth -\NewDocumentCommand\marginnote { s O{TeenSpirit} m } {% - \settowidth\marginnotewidth{\small\csname ECF#2\endcsname\color{red}#3} +\NewDocumentCommand\marginnote { sm } {% + \settowidth\marginnotewidth{\small\color{red}#2} \addtolength\marginnotewidth{20pt} - \noindent\makebox[0cm]{\hskip-\marginnotewidth\small\csname ECF#2\endcsname\color{red}#3}% + \noindent\makebox[0cm]{\hskip-\marginnotewidth\small\color{red}#2}% \IfBooleanF{#1}{\hspace{\parindent}}% } @@ -191,11 +189,11 @@ Knowledge of \textsf{pgf} or \textsf{tikz} would be useful. \section{Motivation} This package has been written as a reaction to a question on \url{http://tex.stackexchange.com/}. To be more precise: as a reaction to the question \href{http://tex.stackexchange.com/questions/13863/molecular-orbital-diagrams-in-latex}{Molecular orbital diagrams in LaTeX}. There it says -\begin{myquote} +\begin{quote}\small\sffamily I'm wondering if anyone has seen a package for drawing (qualitative) molecular orbital splitting diagrams in \LaTeX? Or if there exist any packages that can be easily re-purposed to this task? Otherwise, I think I'll have a go at it in \TikZ. -\end{myquote} +\end{quote} The problem was solved using \TikZ, since no package existed for that purpose. For one thing \MOname is intended to fill this gap. I also found it very tedious, to make all this copying and pasting when I needed a second, third, \ldots\ diagram. \MOname took care of that. \section{Main Commands} @@ -779,8 +777,8 @@ If you use the option \lstinline=names=, the atoms and the molecule get captions \end{MOdiagram} \end{LTXexample} -\subsubsection{Oprionen \texttt{names-style} und \texttt{names-style-add}}\label{option:names_style} -\marginnote*{NEW}These options enable to customize the style of the captions of the atoms and of the molecule. By default this setting is used: \lstinline+\names-style={anchor=base}+\footnote{Please see "`\TikZ und PGF -- Manual for Version 2.10"' p.\,183 section 16.4.4 (pgfmanual.pdf) for the meaning}. +\subsubsection{Optionens \texttt{names-style} and \texttt{names-style-add}}\label{option:names_style} +\marginnote*{NEW}These options enable to customize the style of the captions of the atoms and of the molecule. By default this setting is used: \lstinline+\names-style={anchor=base}+\footnote{Please see “\TikZ and PGF \textendash\ Manual for Version 2.10” p.\,183 section 16.4.4 (pgfmanual.pdf) for the meaning}. \begin{LTXexample} % use package `mhchem' \begin{MOdiagram}[names,names-style={draw=blue}] |