DEV Community

Discussion on: A custom LaTeX Presentation Template

Collapse
 
deuslirio profile image
Deuslirio Junior

Hi, I have not faced this problem. Can you detail your case?
I suppose that in your case the style is overwritten in beamerthemeUfg.sty
but I can not simulate this behavior yet.

Collapse
 
sirneij profile image
John Owolabi Idogun

I want to have some bold fonts for some normal texts on my slides but couldn't achieve that. What I tried doing was wrapping the texts in \textbf{} command since this boldens texts in normal LaTeX but nothing happened. The texts remained unbold.

Thread Thread
 
deuslirio profile image
Deuslirio Junior • Edited

This is intriguing, I can't reproduce it.
Are you using pdfLaTeX as compiler?
If you keep this problem a suggest you to use Overleaf overleaf.com/latex/templates/ufgte...

Check this, I'm using it directly in Overleaf and it is working nicely:


\setLayout{horizontal}
\begin{frame}
    \frametitle{Sample frame title}
    This is a text in second frame. For the sake of showing an example.

    \begin{itemize}
        \item<1-> \textbf{Text }visible on slide 1
        \item<2-> Text visible on slide 2
        \begin{itemize}
            \item text sub\textbf{item}
        \end{itemize}
    \end{itemize}
\end{frame}
Enter fullscreen mode Exit fullscreen mode

bold_text_ufg_tex

Thread Thread
 
sirneij profile image
John Owolabi Idogun

I'm compiling it with XeLaTeX on my ubuntu-based system, Pop!_OS, because it is required I use the Times New Roman font. I will certainly test it out on Overleaf.

Thread Thread
 
deuslirio profile image
Deuslirio Junior • Edited

Ah, ok.
Using pdfLatex, try to use \usepackage{newtxtext,newtxmath} below \usetheme in tex file

\usetheme{Ufg}
\usepackage{newtxtext,newtxmath}
Enter fullscreen mode Exit fullscreen mode

To change the font of titles, comment line 11 in sty file

\mode<presentation>
% \usefonttheme[onlymath]{serif}
Enter fullscreen mode Exit fullscreen mode

result:
times bold text