Document Classes ⇒ Abstract caps
Abstract caps
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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Abstract caps
Code: Select all
\renewcommand{\abstractname}{\textsc{Abstract}}
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Abstract caps
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.
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
Thanks for your answer. Do you know something about the warning?
J.