overline

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

overline

fincato
Hi,
I would like to ask a simple question that i was not able to find in the FAQ. how can i put in the legend a number with an overbar?
the legend code is something like this
 
kk=legend(k([1 3 5 6]),'E-(001) [GPa]','E-(00$$\overbar{1}$$) [GPa]','Iso-Fe [GPa]','[110]', "location", "north");
set(kk,'Interpreter','tex','fontsize',16);
 
Thank you for your courtesy in advance, and i apologize if the question has already been posted and I didn’t see it.
Best
Riccardo

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: overline

tmacchant
----- Original Message -----
>From: "fincato <[hidden email]>
>To: [hidden email]
>Date: 2017/2/20, Mon 15:21
>Subject: overline
>
>
>Hi,
>I would like to ask a simple question that i was not able to find in the
FAQ. how can i put in the legend a number with an overbar?
>the legend code is something like this

>kk=legend(k([1 3 5 6]),'E-(001) [GPa]','E-(00$$\overbar{1}$$)
[GPa]','Iso-Fe [GPa]','[110]', "location", "north");
>set(kk,'Interpreter','tex','fontsize',16);

>Thank you for your courtesy in advance, and i apologize if the question has
already been posted and I didn’t see it.
>Best
>Riccardo



I do not familiar to 'TeX'. But .....

Perhaps the below gives you hint.
https://www.gnu.org/software/octave/doc/interpreter/Printing-and-Saving-Plots.html#Printing-and-Saving-Plots


You did not write your system (Linux, windows or Mac etcs. and version of octave) so that I cannot write 
further.

You have to install also TeX.
For windows, MiKTeX is popular and widely used.

HTH

Tatsuro

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: overline

Pantxo
In reply to this post by fincato
fincato wrote
Hi,
I would like to ask a simple question that i was not able to find in the FAQ. how can i put in the legend a number with an overbar?
the legend code is something like this

kk=legend(k([1 3 5 6]),'E-(001) [GPa]','E-(00$$\overbar{1}$$) [GPa]','Iso-Fe [GPa]','[110]', "location", "north");
set(kk,'Interpreter','tex','fontsize',16);

Thank you for your courtesy in advance, and i apologize if the question has already been posted and I didn’t see it.
Best
Riccardo
_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Hi,

You are trying to use *latex* syntax, which doesn't currently work in Octave (and would require "interpreter" to be "latex", not "tex").

On the other hand if you do have latex installed on your system, and you are interested in the printed output then you could have it work using the "-dpdflatexstandalone" format of the "print" function.

%% do your figure and write text as if it was latex
print -dpdflatexstandalone toto
system ("pdflatex toto.tex")

Pantxo
Loading...