2

I use a TexMaker for creation of my report. But when I look the created pdf-file, there is no bold text. How to fix this?

\bfseries{Lorem ipsum dolor} \textit{sit amet}, consectetuer adipiscing elit.

logs

enter image description here

\documentclass[a4paper, 14pt]{extreport} 

\usepackage{indentfirst}
\usepackage{fncychap}
\usepackage{fancyhdr}
\usepackage[warn]{mathtext}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage[english,russian]{babel}
\usepackage{amssymb,amsfonts,amsmath,mathtext,cite,enumerate,float, mathtext} 
\usepackage{times}
\usepackage[demo]{graphicx} %pdftex
\graphicspath{{images/}}
\usepackage[format=hang, figurename=Малюнак, tablename=Табліца , labelfont=bf,tableposition=top, labelsep=space, singlelinecheck=false]{caption}
\usepackage{blindtext}  
\usepackage{titlesec}


\usepackage{enumitem}
\usepackage{marginnote}
\usepackage{ltablex}

\makeatletter
\renewcommand{\@biblabel}[1]{#1.} 
\makeatother

\usepackage{geometry} 
\geometry{left=3cm}
\geometry{right=1.5cm}
\geometry{top=2cm}
\geometry{bottom=2cm}

\renewcommand{\theenumi}{\arabic{enumi}}% 
\renewcommand{\labelenumi}{\arabic{enumi}}% 
\renewcommand{\theenumii}{.\arabic{enumii}}% 
\renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}.}% 
\renewcommand{\theenumiii}{.\arabic{enumiii}}% 
\renewcommand{\labelenumiii}{\arabic{enumi}.\arabic{enumii}.\arabic{enumiii}.}% 



\addto\captionsrussian{
  \renewcommand{\contentsname}%
    {\centerline{ЗМЕСТ\vspace{14pt}}}%
  \renewcommand{\bibname}
    {\centerline{СПІС ВЫКАРЫСТАНЫХ КРЫНІЦ}}  
}


\usepackage{setspace}
\onehalfspacing


\DeclareCaptionLabelSeparator{ddd}{ -- }
\captionsetup[table]{labelsep=ddd, justification=raggedright, font=normalsize, margin={-0.0cm, 0pt},
position=top}
\captionsetup[tabularx]{labelsep=ddd, justification=raggedright, font=normalsize, margin={-0.0cm, 0pt},
position=top}
\captionsetup[longtable]{labelsep=ddd, justification=raggedright, font=normalsize , margin={-0.0cm, 0cm},
position=top} 
\captionsetup[figure]{justification=centering,labelsep=ddd, font=normalsize}

\makeatletter

\setlength\LTleft{0cm}      



\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyhead[R]{\thepage}

\fancypagestyle{plain}{%
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}


\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\fontencoding{T1}
\fontfamily{times-ttf}
\fontseries{m}
\fontshape{it}
\fontsize{14}{15}
\selectfont


\titleformat{\chapter}{}{\thechapter}{14pt}{}
\titleformat{\section}{}{\thesection}{14pt}{}
\titleformat{\subsection}{}{\thesubsection}{14pt}{}

\titlespacing{\chapter}{0pt}{0pt}{17pt}
\titlespacing*{\section}{0pt}{17pt}{17pt}
\titlespacing*{\subsection}{0pt}{17pt}{17pt}

\newlength{\normalparindent}
\AtBeginDocument{\setlength{\normalparindent}{\parindent}}


\renewcommand{\labelitemi}{$-$}

\setlength{\tabcolsep}{1pt}


\setlist{leftmargin=3.0em}

\makeatletter
\bibliographystyle{unsrt}
\renewcommand{\@biblabel}[1]{#1} 
\makeatother

\fontfamily{times-ttf}
9
  • 2
    Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. Jun 4 '12 at 17:13
  • 1
    Did you use the command \textbf or \bfseries? Jun 4 '12 at 17:14
  • @MarcoDaniel yes, of course
    – mark
    Jun 4 '12 at 17:15
  • Where does \fontfamily{times-ttf} come from? It's highly non standard.
    – egreg
    Jun 4 '12 at 17:32
  • It is used for font-family set Times New Roman. I removed it, but all the same the text in pdf didn't change.
    – mark
    Jun 4 '12 at 17:40
3

Your code snippet isn't very useful. I tried the following minimal working example:

\documentclass{article}

\begin{document}
\bfseries{Lorem ipsum dolor} \textit{sit amet}, consectetuer adipiscing elit.
\end{document}

Which results in enter image description here

Please note the command \bfseries has no argument. \bfseries will set the whole text in bold until the current group is closed. On the other hand the command \textbf has an mandatory argument. The command \textbf will print the mandatory argument in bold.


I looked to your log file. I think you should do this too. There are lots of warnings. One of them is:

LaTeX Font Warning: Font shape `T2A/ptm/bx/it' undefined
(Font)              using `T2A/ptm/bx/n' instead on input line 1.

That means the combination with the encoding T2A the font family ptm (Times) with the series bx (bold extended) and the font shape it (itshape) isn't available. So you have to use a font which can use such a combination.

5
  • but i need extreport class
    – mark
    Jun 4 '12 at 18:54
  • @mark: that makes no difference
    – user2478
    Jun 4 '12 at 18:56
  • @mark: The my update. Jun 4 '12 at 19:12
  • 1
    @MarcoDaniel I'm wondering: Is this question too localized, or should it be renamed to something along the lines of bold in ptm's T2A encoding doesn't work (which essentially seems to be the problem) and the MWE trimmed down a lot? Someone googling "bold text in pdf" probably won't find the kind of information here that they're looking for. (Hence, it probably should be renamed either way.)
    – doncherry
    Jun 4 '12 at 23:37
  • @doncherry: I think this question need the headline -- I can't understand the warning XY. -- to localized with the current header will be the correct choice. Jun 5 '12 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.