Help with TeX parser in text fields

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

Help with TeX parser in text fields

Rik-4
Could someone with access to Matlab run the following code and send me the
resulting pdf?

---Code tst_texparse.m ---
clf;
text (0.5, 0.4, '--]{\bf[0 spaces}', 'interpreter', 'tex');
text (0.5, 0.3, '--]{\bf [1 spaces}', 'interpreter', 'tex');
text (0.5, 0.2, '--]{\bf  [2 spaces}', 'interpreter', 'tex');
text (0.5, 0.1, '--]{\bf   [3 spaces}', 'interpreter', 'tex');
print ('tst_texparse.pdf', '-dpdf');
---End Code ---

I'm trying to determine whether the TeX parser for ignores the initial
space after a backslash command such as \bf for bold font.  The code is
more legible if the command can be separated from the text it operates on,
but we do have to maintain compatibility.

Thanks,
Rik



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with TeX parser in text fields

siko1056
Rik-4 wrote
Could someone with access to Matlab run the following code and send me the
resulting pdf?

---Code tst_texparse.m ---
clf;
text (0.5, 0.4, '--]{\bf[0 spaces}', 'interpreter', 'tex');
text (0.5, 0.3, '--]{\bf [1 spaces}', 'interpreter', 'tex');
text (0.5, 0.2, '--]{\bf  [2 spaces}', 'interpreter', 'tex');
text (0.5, 0.1, '--]{\bf   [3 spaces}', 'interpreter', 'tex');
print ('tst_texparse.pdf', '-dpdf');
---End Code ---

I'm trying to determine whether the TeX parser for ignores the initial
space after a backslash command such as \bf for bold font.  The code is
more legible if the command can be separated from the text it operates on,
but we do have to maintain compatibility.

Thanks,
Rik
Attached the output of R2017a: tst_texparse.pdf

Best,
Kai
Loading...