% Postscript export bug octave 5.1.0

mytext = sprintf("this is _\\pm a test:\nwith a linebreak\n and a %.3f number",pi)

x=linspace(0,10*pi,1000);
y=sin(x)+x;

fh = figure('name','my plot figure');
plot(x,y);
title(mytext,'interpreter','none');
text(0.4,0.4,mytext,'units','normalized','interpreter','tex','backgroundcolor','w');


mytext2 = {"this is a_\\pm test:","with a linebreak"}

fh2 = figure('name','my plot figure2');
plot(x,y);
title(mytext2,'interpreter','none');
text(0.4,0.4,mytext2,'units','normalized','interpreter','tex','backgroundcolor','w');

print('-dpsc2', sprintf('-f%d',fh),'-r300','ps_export.ps');

print('-dpsc2', sprintf('-f%d',fh2),'-r300','-append','ps_export.ps');
