Text FormattingBold faced and italic at the same time

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Palikaros
Posts: 6
Joined: Thu Dec 01, 2011 11:47 pm

Bold faced and italic at the same time

Post by Palikaros »

Hello!

I'm new here and especially in the LaTeX world! Well, I have a homework for my university in LaTeX and that's why I use it. My first problem is that I don t know how to write a sentence in both italic and bold. Can please someone write the command to do this?

Thanks in advance :)

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Bold faced and italic at the same time

Post by Stefan Kottwitz »

Hi Palikaros,

welcome to the board!

You can nest font commands:

Code: Select all

\textbf{\textit{Text}}
Stefan
LaTeX.org admin
Palikaros
Posts: 6
Joined: Thu Dec 01, 2011 11:47 pm

Re: Bold faced and italic at the same time

Post by Palikaros »

Great!Thanks for the answer!In some case i need to write both italic,bold and greek letters!What should i do then?

Im sorry but i cannot find anything to help me except this forum,so thank you again :)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Bold faced and italic at the same time

Post by Stefan Kottwitz »

Just letters? No problem. Greek letters in math mode are already italic, so you just need to make them bold.

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\boldsymbol{\beta}$
\end{document}
Stefan
LaTeX.org admin
Palikaros
Posts: 6
Joined: Thu Dec 01, 2011 11:47 pm

Re: Bold faced and italic at the same time

Post by Palikaros »

My friend i don t know why,but it doesn t appears to pdf...I want to write
'PINAKAS APLWN AORISTWN OLOKLHRWMATWN' in greek letters.bold and italic...What should i write?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bold faced and italic at the same time

Post by localghost »

Palikaros wrote:[…] I want to write
'PINAKAS APLWN AORISTWN OLOKLHRWMATWN' in greek letters.bold and italic. […]
I think we're on the wrong track here. An adequate problem description would have included this important information right at the beginning (and in the topic title). For Greek text (and the Greek language in general) in your document try the below example.

Code: Select all

\documentclass[11pt,greek]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{lmodern}

\begin{document}
  \textit{\textbf{PINAKAS APLWN AORISTWN OLOKLHRWMATWN}}
\end{document}
If you are going to write your document in another language than Greek (let's say English) and only want to have short text pieces in Greek, you have to choose another approach.

Code: Select all

\documentclass[11pt,greek,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{lmodern}

\begin{document}
  PINAKAS APLWN AORISTWN OLOKLHRWMATWN

  \textit{\textbf{\textgreek{PINAKAS APLWN AORISTWN OLOKLHRWMATWN}}}
\end{document}
For details please refer to the babel user guide.


Best regards and welcome to the board
Thorsten
Post Reply