6

I am a beginner in LaTeX and I have been using Textstudio as my main LaTeX editor for several weeks. My problem is that i am not able to write any bold characters.

\textbf will not work in this case.

I am sure there must be something in my code that is not allowing to write bold text.

Here you have my code

\documentclass[12pt,a4paper]{article}
\usepackage{tikz}
\usepackage[top=2cm, bottom=2cm, outer=0cm, inner=0cm, left=1.5cm, right=1.5cm]{geometry}
\usepackage{mathptmx}
\usepackage{amsmath}
\usepackage{color}


\begin{document}

    \tikz[remember picture,overlay] \node[opacity=0.9,inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{lol.jpg}};
    \thispagestyle{empty}
    \newpage

    \begin{titlepage}

        \textnormal{}\\\\\\\\
        \hrule
        {\fontsize{50}{60}\selectfont \begin{center}
                APARTHEID   \end{center}}
        \hrule  
        \textnormal{}\\\\\\\\\\     

        \begin{center}
                 {\LARGE An article on Racism}
        \end{center}        


        \textnormal{}\\\\\\\\\\\\\\\\\\\\\\\\\\ 

        \begin{center}
            {\Large Ramai Alejandria - 5I}
        \end{center}

        \thispagestyle{empty}

    \end{titlepage}

    \newpage

    \begin{titlepage}       

        \textnormal{}\\
        \begin{center}
            {\fontsize{35}{60}\selectfont \textbf{Table of Contents}}
        \end{center}


    \end{titlepage}     


\end{document}

Here you have a screenshot too

enter image description here

Please help me!

Thanks a lot

9
  • Welcome to TeX SX! What would you like to have bold?
    – Bernard
    Commented Dec 14, 2018 at 19:44
  • 1
    Out of topic, but why would you need the package amsmath to write about apartheid?
    – sztruks
    Commented Dec 14, 2018 at 19:46
  • Don't use \usepackage{mathptmx} together with xelatex. Commented Dec 14, 2018 at 19:46
  • what should i use instead?
    – alex108
    Commented Dec 14, 2018 at 19:48
  • 1
    #David Carlisle I just wanted to create whitespace. Remember i am a beginner :)
    – alex108
    Commented Dec 14, 2018 at 22:38

1 Answer 1

6

Don't use \usepackage{mathptmx} together with xelatex. The package is meant for pdflatex only. If you want a times like font use e.g.

\usepackage{amsmath}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Termes}
\setmathfont{TeX Gyre Termes Math}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .