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

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

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}
  • Helpful Answer. Thank you! It works now – alex108 Dec 14 '18 at 20:09

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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