Text FormattingHow to change \ref{myref1} style

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

How to change \ref{myref1} style

Post by bkarpuz »

Dear friends,

I am using the style file at http://www.tandf.co.uk/journals/authors/gitrLaTeX.zip under the site http://www.tandf.co.uk/journals/journal ... inktype=44.
However, I have a little problem.
The style file does not supports property environment, I handled this problem by using the following code:

Code: Select all

\def\principlename{Property}
and replacing property environments with principle.
But I now have a interesting problem.
I have some remarks and I had to label them as follows:

Code: Select all

\begin{remark}\label{drmk1} ...
\end{remark}
But when I call them in the text as follows

Code: Select all

The following lemma follows from Remark~\ref{drmk2}.
It gives me the following out put:
Image
But I want the called remark reference number not to be italic.
Is that possible?

Thanks.

bkarpuz

PS. When I call lemma or theorem reference numbers they do not appear italic.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

How to change \ref{myref1} style

Post by Stefan Kottwitz »

Hi,

this line of the class file is causing it the italic shape:

Code: Select all

\renewcommand\theremark{{\itshape\thesection\arabic{remark}}\reset@font}
You could redefine \theremark in your document.

Stefan
LaTeX.org admin
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

How to change \ref{myref1} style

Post by bkarpuz »

Stefan_K wrote:Hi,

this line of the class file is causing it the italic shape:

Code: Select all

\renewcommand\theremark{{\itshape\thesection\arabic{remark}}\reset@font}
You could redefine \theremark in your document.

Stefan
But in my document, I dont have the command \theremark command. *-)
Or is it a global definition?
Do I get rude if I request the code from you if it is not very hard? :$

Thanks.

bkarpuz.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

How to change \ref{myref1} style

Post by Stefan Kottwitz »

That's a definition of the class. You can override it by inserting this line into the preamble of your document:

Code: Select all

\renewcommand\theremark{\thesection\arabic{remark}}
Stefan
LaTeX.org admin
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

How to change \ref{myref1} style

Post by bkarpuz »

Stefan_K wrote:That's a definition of the class. You can override it by inserting this line into the preamble of your document:

Code: Select all

\renewcommand\theremark{\thesection\arabic{remark}}
Stefan
Many thanks, it worked fine when I inserted a dot between \thesection and \arabic{remark}.
Post Reply