From 394944c6f306e7b83a64e6e7d5f07d65acea4bbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Mon, 1 Dec 2008 00:42:20 +0000 Subject: [PATCH] achemso: fix a typo, add a new inset for chemical symbols like H2SO4, fix wrong citation git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27756 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/examples/achemso.lyx | 38 +++++--------------------------------- lib/layouts/achemso.layout | 13 +++++++++++++ 2 files changed, 18 insertions(+), 33 deletions(-) diff --git a/lib/examples/achemso.lyx b/lib/examples/achemso.lyx index fb9f7a39fa..c318ae10be 100644 --- a/lib/examples/achemso.lyx +++ b/lib/examples/achemso.lyx @@ -4,9 +4,6 @@ \begin_header \textclass achemso \begin_preamble - % Formula chemical sum formula subscripts using the command \ce -\usepackage[version=3]{mhchem} - %% Each author should be given as a separate \author command. %% %% Corresponding authors should have an e-mail given after the author @@ -262,7 +259,6 @@ As with citations, the text should be placed before punctuation. will result if this is not the case \begin_inset CommandInset citation LatexCommand cite -after "p.~1" key "Cotton1999" \end_inset @@ -275,7 +271,7 @@ Some Infos \end_layout \begin_layout Standard -Besides the standard figure and table floats, the achemso LaTeX-class profives +Besides the standard figure and table floats, the achemso LaTeX-class provides scheme, chart, and graph floats. \end_layout @@ -349,41 +345,17 @@ An example graph \end_layout \begin_layout Standard -The example file also loads the -\family sans -mhchem -\family default - package, so that formulas are easy to input: -\family typewriter - -\backslash -ce{H2SO4} -\family default - gives -\begin_inset ERT -status collapsed +Chemical symbols can easily be input: +\begin_inset Flex Chemistry +status open \begin_layout Plain Layout - - -\backslash -ce{ -\end_layout - -\end_inset - H2SO4 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} \end_layout \end_inset -. + \end_layout \begin_layout Standard diff --git a/lib/layouts/achemso.layout b/lib/layouts/achemso.layout index ab0c0a71b7..b43c05601c 100644 --- a/lib/layouts/achemso.layout +++ b/lib/layouts/achemso.layout @@ -186,3 +186,16 @@ Style Bibliography EndFont End + +InsetLayout Chemistry + CopyStyle Bibnote + LatexName ce + LabelString "chemistry" + Preamble + \usepackage[version=3]{mhchem} + EndPreamble + LabelFont + Color blue + EndFont + MultiPar false +End