Document ClassesAbstract caps

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
User avatar
jlbfunes
Posts: 10
Joined: Wed May 21, 2008 10:35 pm

Abstract caps

Post by jlbfunes »

Hello.
I am writing an article and because of the requirements of the journal, I need to make the word "Abstract", the title of the abstract, be in capital letters. I have checked the options in the CTAN documentation and I couldn't find any clue for this. I appreciate your help with this detail. Thanks.
I use TeXnicCenter 1 Beta 7.01. MikTeX 2.7 on Windows Vista Home Edition (I will be switching to Linux soon, I swear).

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Abstract caps

Post by localghost »

In this case there is a redefinition of the name command for the abstract name required.

Code: Select all

\renewcommand{\abstractname}{\textsc{Abstract}}
When using babel, this code has to be slightly modified. Refer to the documentation of babel to learn how to do that.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
User avatar
jlbfunes
Posts: 10
Joined: Wed May 21, 2008 10:35 pm

Re: Abstract caps

Post by jlbfunes »

Hello Localghost,

Thanks for your answer. It works fine now. However, I had two minor situations that could be of interest. First, using the code you provided, the compiler reports this warning: "Font shape `OT1/cmr/bx/sc' undefined using `OT1/cmr/bx/n' instead on input line [...]". Second, the abstract's title did not change. It did so, when I actually wrote the word abstract in capitals in the renewcommand expression. Perhaps I am missing something in relation to the fonts? I am not using Babel.

J.
Last edited by jlbfunes on Sun Jul 27, 2008 6:49 am, edited 1 time in total.
I use TeXnicCenter 1 Beta 7.01. MikTeX 2.7 on Windows Vista Home Edition (I will be switching to Linux soon, I swear).
Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

Abstract caps

Post by Ted »

jlbfunes wrote:"Font shape `OT1/cmr/bx/sc' undefined using `OT1/cmr/bx/n' instead on input line [...]". Second, the abstract's title did not change. It did so, when I actually wrote the word abstract in capitals in the renewcommand expression.
There's no reason to use the small caps (\textsc). Especially if you want the title to be in caps too, just hard-code the name in all caps.

Code: Select all

\renewcommand{\abstractname}{ABSTRACT}
The capitals should get used throughout the document, and you won't have to worry about small caps being defined in your font.
-- Ted [home/blog]
User avatar
jlbfunes
Posts: 10
Joined: Wed May 21, 2008 10:35 pm

Re: Abstract caps

Post by jlbfunes »

Hello Ted,

Thanks for your answer. Do you know something about the warning?

J.
I use TeXnicCenter 1 Beta 7.01. MikTeX 2.7 on Windows Vista Home Edition (I will be switching to Linux soon, I swear).
Post Reply