Paul Smith wrote:
I am using the following code in the preamble to get non-italic theorems in the article class:
\newtheorem{prethm}{Theorem} \newenvironment{thm} {\begin{prethm}\upshape}{\end{prethm}}
However,
\begin{thm}[theauthor] blalalalalal \end{thm}
does not produce what one expects with the normal theorem environment; I get the following:
Theorem 1 [theauthor] blalalalala
[theauthor] is not written in bold as it would be supposed.
Of course not, because it isn't part of the label.
I don#t understand exactly what you want, but you might try this code in the preamble instead:
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{prethm}[table]{Theorem}This produces an upright theorem, see attached example. (I used there the table counter in for the theorem to demonstrate the counter feature.) You can also define your own theoremstyle with the command \newtheoremstyle.
regards Uwe
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{amsthm} \theoremstyle{definition} \newtheorem{prethm}[table]{Theorem} \end_preamble \options fleqn \language ngerman \inputencoding auto \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 4 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language german \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle empty \bullet 1 1 34 -1 \end_bullet \bullet 2 2 35 -1 \end_bullet \bullet 3 2 7 -1 \end_bullet
\layout Standard
\begin_inset Float table
wide false
collapsed true
\layout Caption
dummytable
\layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
<features>
<column alignment="center" valignment="top" leftline="true" width="0">
<column alignment="center" valignment="top" leftline="true" rightline="true"
width="0">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
a
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
b
\end_inset
</cell>
</row>
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
c
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
d
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_inset
\layout Standard
\begin_inset ERT
status Open
\layout Standard
\backslash
begin{prethm}
\end_inset
\layout Standard
hello
\layout Standard
\begin_inset ERT
status Open
\layout Standard
\backslash
end{prethm}
\end_inset
\the_end
