Hi everybody,
I want to write (Remark) as bold font, like: Theorem, Lemma, Definition, etc.
Please can any one tell me how?
Thanks
LyX ⇒ How to write theorem heading in bold font
How to write theorem heading in bold font
Last edited by ALIX on Mon Mar 12, 2012 8:38 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

How to write theorem heading in bold font
I installed LyX, looks weird to me.
But anyway, open your document, go to the place where you want to input the remark, then press Insert TeX code (Ctrl+L).
Paste this before the usage of the custom remark:
The number of the remark will depend on sections.
Now you again Insert TeX code where you want to write the remark, just this code:
Write the body of the remark, and close it by:
And view the document.
Technical stuff below.
Well, the command is not obvious:
If you want normal text, remove \itshape, just make it {}. Same applies for \bfseries.
Nikolay
But anyway, open your document, go to the place where you want to input the remark, then press Insert TeX code (Ctrl+L).
Paste this before the usage of the custom remark:
Code: Select all
\newtheoremstyle{remboldstyle}
{}{}{}{}{\bfseries}{.}{.5em}{{\thmname{#1 }}{\thmnumber{#2}}{\thmnote{ (#3)}}}
\theoremstyle{remboldstyle}
\newtheorem{rembold}{Remark}[section]
Now you again Insert TeX code where you want to write the remark, just this code:
Code: Select all
\begin{rembold}
Code: Select all
\end{rembold}
Technical stuff below.
Well, the command is not obvious:
Code: Select all
\documentclass{article}
\usepackage{amsthm}
\newtheoremstyle{remboldstyle}
{}{}{\itshape}{}{\bfseries}{.}{.5em}{{\thmname{#1 }}{\thmnumber{#2}}{\thmnote{ (#3)}}}
\theoremstyle{remboldstyle}
\newtheorem{rembold}{Remark}[section]
\begin{document}
\section{Section}
\begin{rembold}[Cauchy]
The text of the remark.
\end{rembold}
\end{document}
Nikolay
Re: Bold Font
Thank u so much Nikolay,
but there is a problem, for example, when I write Theorem 1.1.1, and then Lemma 1.1.2, and I want to write the Remark by using this code, becomes Remark 1.1.1
So, is there any way to become Remark 1.1.3 for example?
but there is a problem, for example, when I write Theorem 1.1.1, and then Lemma 1.1.2, and I want to write the Remark by using this code, becomes Remark 1.1.1
So, is there any way to become Remark 1.1.3 for example?
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
How to write theorem heading in bold font
Hi Alix!
as, thanks to the very good explanation of Nikolay, the original problem has been solved, it would be good to open a new topic for the new problem. You can imagine, that nobody would expect a theorem numbering issue in a "Bold Font" topic. Readers, who could help, might overlook your new question. So a new topic with a new and expressive topic subject would be the best.
Anyway, I saw your question and try to help. You could share counters for the theorem environment. This means using another
For example, if your first theorem environment is called
and now lemmas and remarks are numbered following the
Stefan
as, thanks to the very good explanation of Nikolay, the original problem has been solved, it would be good to open a new topic for the new problem. You can imagine, that nobody would expect a theorem numbering issue in a "Bold Font" topic. Readers, who could help, might overlook your new question. So a new topic with a new and expressive topic subject would be the best.
Anyway, I saw your question and try to help. You could share counters for the theorem environment. This means using another
\newtheorem
syntax for theorem environments which are based on other such environments:Code: Select all
\newtheorem{<environment name>}[<numbered like environment>]{<caption>}
theorem
, you may defineCode: Select all
\newtheorem{lemma}[theorem]{lemma}
\newtheorem{rembold}[theorem]{Remark}
theorem
counter.Stefan
LaTeX.org admin