TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

\bfseries is for bolding but what is for italics in tikz?

Example where italics needed for "Not SP graph".

\begin{tikzpicture}[scale=1]
\tikzstyle{every node}=[draw, circle, fill=white, inner sep=0pt,minimum size=0pt] 

\draw (0,0) node(in){in}--(1,0) node{}--(2,0) node(b){b}--(5,0) node(e){e}--(6,0) node{}--(7,0) node(out){out};
\node[rectangle,font=\bfseries] at (3.5,-1.7) {Not SP graph};

\end{tikzpicture}
share|improve this question
up vote 5 down vote accepted

The font styles in your document are defined by the class document or by a package or by you in the preamble or in your document. The font style used in the environment tikzpicture is the font style defined when you enter in the picture. You can change the style in the part of text in a node with font= ...

Dimensions like 1em will be with respect to the font used outside the node (usually the font that was in force when the picture started)

Like David wrote finally the font styles are defined in latex and Tikz do not change anything.

share|improve this answer

\itshape is the command for italics (this and \bfseries are unrelated to tikz)

share|improve this answer
    
Where are the font styles defined? – hhh Mar 15 at 20:25
2  
@hhh they are defined in latex – David Carlisle Mar 15 at 20:26
    
Thank you, found a manual here. – hhh Mar 15 at 20:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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