Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to type Ñ inside a circlenode, but it don´t appear in the final result. At the example, in the 3rd line of code.

Are there any solution?

 \begin{pspicture}(-2,-2)(12,6) %\malla
 \rput(-1,-1){$\circlenode{V}{\textcolor{blue}{Vigo}}$}
 \rput(0,2){$\circlenode{C}{\textcolor{yellow}{Coruña}}$}
 \rput(2,0){$\circlenode{S}{\textcolor{red}{Scq}}$}
 \rput(4,2){$\circlenode{P}{\textcolor{green}{Po}}$}

 \ncarc[arcangle=33]{->}{V}{C}
 \naput*{\small $45$}

 \ncarc[arcangle=11]{->}{S}{P}
 \ncput*{\small $25$}

 \ncarc[arcangle=75]{->}{S}{P}
 \ncput*{\small $15$}

 \end{pspicture}
share|improve this question

2 Answers 2

up vote 2 down vote accepted
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-node}
\begin{document}
 \begin{pspicture}(-2,-2)(12,6) %\malla
 \rput(-1,-1){\circlenode{V}{\textcolor{blue}{Vigo}}}
 \rput(0,2){\circlenode{C}{\textcolor{magenta}{Coru\~na}}}
 \rput(2,0){\circlenode{S}{\textcolor{red}{Scq}}}
 \rput(4,2){\circlenode{P}{\textcolor{green}{Po}}}

 \ncarc[arcangle=33]{->}{V}{C}
 \naput*{\small $45$}

 \ncarc[arcangle=11]{->}{S}{P}
 \ncput*{\small $25$}

 \ncarc[arcangle=75]{->}{S}{P}
 \ncput*{\small $15$}

 \end{pspicture}
\end{document}

enter image description here

Suggestions:

  • Don't use yellow foreground with white background unless you want to make the readers feel uncomfortable.

Edit:

Based on your comments below.

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-node}
\usepackage{eurosym}
\begin{document}
 \begin{pspicture}(-2,-2)(5,3) %\malla
 \rput(-1,-1){\circlenode{V}{\textcolor{blue}{Vigo}}}
 \rput(0,2){\circlenode{C}{\textcolor{magenta}{Coru\~na}}}
 \rput(2,0){\circlenode{S}{\textcolor{red}{Scq}}}
 \rput(4,2){\circlenode{P}{\textcolor{green}{Po}}}

 \ncarc[arcangle=33]{->}{V}{C}
 \naput*{\small 45 \euro}

 \ncarc[arcangle=11]{->}{S}{P}
 \ncput*{\small 25 \euro}

 \ncarc[arcangle=75]{->}{S}{P}
 \ncput*{\small 15 \euro}

 \end{pspicture}
\end{document}

enter image description here

Note: I don't know whether or not a space is needed between the number and the euro symbol. Please ask appropriate experts for this confusion.

share|improve this answer
    
:-) Thank you for all. Perfect Solution. And you´re right with the yellow/white colors :-) I know, but i was testing PSTricks NODES :-) –  Mika Ike Jun 11 '13 at 12:08
    
@clic-me Abusing on you, Do you know how i can type the Euros symbol at the numbers over the arcs? I use... \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{latexsym} \usepackage{eurosym} \DeclareInputText{128}{\euro} –  Mika Ike Jun 11 '13 at 12:11
1  
@MikaIke: I don't understand what you want to achieve. What does it mean "Euros symbol at the numbers over the arcs"? I cannot imagine it. By the way, you might forget to upvote my answer. :-) –  cyanide-based food Jun 11 '13 at 12:23
    
@clicl-me similar to this: img153.imageshack.us/img153/2456/snap2185.png Euro symbol similar to Dollar symbol –  Mika Ike Jun 11 '13 at 13:39
    
Yes, with the eurosymbol i have the same problem. Eurosymbol don´t works well in math mode.I realize after view your example. –  Mika Ike Jun 11 '13 at 15:09

use \textit:

 \rput(0,2){$\circlenode{C}{\textit{\textcolor{yellow}{Coruña}}}$}

you can't use accent characters inside math. However, you also need

\usepackage[utf8]{inputenc}
share|improve this answer
    
Yes, I use \usepackage[utf8]{inputenc} but the question is only for circlenode. Thank you for the suggestion. –  Mika Ike Jun 11 '13 at 9:40
3  
that is the reason why complete example documents make always sense. –  Herbert Jun 11 '13 at 9:49

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.