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.
Document Classes ⇒ Abstract caps
Abstract caps
I use TeXnicCenter 1 Beta 7.01. MikTeX 2.7 on Windows Vista Home Edition (I will be switching to Linux soon, I swear).
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Abstract caps
In this case there is a redefinition of the name command for the abstract name required.
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¹
Code: Select all
\renewcommand{\abstractname}{\textsc{Abstract}}
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: Abstract caps
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.
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).
Abstract caps
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.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.
Code: Select all
\renewcommand{\abstractname}{ABSTRACT}
Re: Abstract caps
Hello Ted,
Thanks for your answer. Do you know something about the warning?
J.
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).