Fonts & Character SetsBold Small Caps

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
saneej
Posts: 5
Joined: Tue Sep 21, 2010 9:19 am

Bold Small Caps

Post by saneej »

Hi All,

Can some one help me how to use the bold-extra package to get bold small caps.

I am a newbee and would appreciate if you can give a simple step-by-step procedure or example. I have already installed all the required fonts and the package in MIkTEX

Thanks a millions in advance!!!
Last edited by saneej on Thu Sep 23, 2010 6:34 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Bold Small Caps

Post by frabjous »

Code: Select all

\documentclass{article}
\usepackage{bold-extra}
\begin{document}
\textbf{This is bold} and \textsc{this is small caps} and \textsc{\textbf{this is bold small caps.}}
\end{document}
saneej
Posts: 5
Joined: Tue Sep 21, 2010 9:19 am

Re: Bold Small Caps

Post by saneej »

Hi Frabguos,

I have tried this, but it is not working. The smallcaps is overrided and just bold fonts appear (which is how latex behaves usually without the bold-extra package). That is the reason I am asking.

When you execute the code, does it give you bold small caps?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Bold Small Caps

Post by meho_r »

In the attachment is the output of frabjous's code (with a small addition of \usepackage[T1]{fontenc}) which, as you can see, works fine on my machine (TL2009 with relatively up-to-date packages).
Attachments
scaps.pdf
(38.84 KiB) Downloaded 1563 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Bold Small Caps

Post by frabjous »

I did test the code sample before posting and it works for me. You might attach your log file (perhaps with adding \listfiles at the beginning), and maybe there would be some clues in there.
saneej
Posts: 5
Joined: Tue Sep 21, 2010 9:19 am

Re: Bold Small Caps

Post by saneej »

Hi frabjuous,

Thanks for getting back to me:

The following warning in the log is an indication of some problem:

LaTeX Font Warning: Font shape `T1/lmr/bx/sc' undefined
(Font) using `T1/lmr/bx/n' instead on input line 87.

LaTeX Font Info: Try loading font information for OMS+lmr on input line 87.
(C:\texmf\miktex\tex\latex\lm\omslmr.fd
File: omslmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
)
LaTeX Font Info: Try loading font information for OMS+lmsy on input line 87.
(C:\texmf\miktex\tex\latex\lm\omslmsy.fd
File: omslmsy.fd 2009/10/30 v1.6 Font defs for Latin Modern
)
LaTeX Font Info: Font shape `OMS/lmr/m/n' in size <10.95> not available
(Font) Font shape `OMS/lmsy/m/n' tried instead on input line 87.


Any idea how to install this font??

Thanks
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Bold Small Caps

Post by frabjous »

The snippet from your log file shows that you are using Latin Modern rather than Computer Modern. I don't think the bold-extra package is designed to work with Latin Modern, or compatible with it. But the real question is: why is it trying to use Latin Modern? Did you load the lmodern package? Are you using XeLaTeX rather than pdfLaTeX or regular LaTeX? Did you somehow configure things system-wide to use Latin Modern rather than Computer Modern?
saneej
Posts: 5
Joined: Tue Sep 21, 2010 9:19 am

Re: Bold Small Caps

Post by saneej »

Hi

I am using the lmodern package. Without the lmodern package, if the \usepackage[T1]{fontenc} in included, the entire text becomes garbled. Removing both lmodern and usepackage[T1]{fontenc} brings the text back to normal but the bold caps does not happen.

The following is the list of my packages:

\documentclass[11pt,draft]{report}

\usepackage{eurosym}
\usepackage{breakcites}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[titletoc]{appendix}
\usepackage{amsthm}
\usepackage[sectionbib]{natbib}
\usepackage{lscape}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{chapterbib}
\usepackage{url}
\usepackage{algorithm}
\usepackage[tight]{subfigure}
\usepackage{latexsym}
\usepackage{rotating}
\usepackage[stable,multiple]{footmisc}
\usepackage{bold-extra}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{float}
%\subfigtopskip=0.1in
\subfigcapskip=15pt
%\subfigbottomskip=30pt
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Bold Small Caps

Post by frabjous »

Can you try the actual code snippet I posted earlier (with and without \usepackage[T1]{fontenc}) in a simple document? Does it work in that simple case? If it does, try constructing a minimal working example where it doesn't work.

You might also see if you have the cm-super package installed; if not, install it, and see if that changes anything.

Also, do you know what version of MikTeX you're using?
saneej
Posts: 5
Joined: Tue Sep 21, 2010 9:19 am

Re: Bold Small Caps

Post by saneej »

Hi Frabjuous,

Installing cm-super SOLVED the problem after including \usepackage[T1]{fontenc}

I used MIKTEX 2.7.

That was really nice and fast!!

Thank you for helping me!!

:D
Post Reply