octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58374] print function creates path not readab


From: Rik
Subject: [Octave-bug-tracker] [bug #58374] print function creates path not readable by latex
Date: Mon, 18 May 2020 13:33:52 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #12, bug #58374 (project octave):

"I did place the code to the desctibed spot but it did not work (for me)"

Yes, as I noted in comment #6, the fix in print.m will only work for
"pdflatexstandalone".

"Only without lines 979 and 981 (prepend and postpend)? Could that be used?"

It could be used.  As I noted in comment #10, this simple seeming issue is
actually quite tangled.  However, I think the correct place to deal with this
is in the OpenGL print routien in gl2ps.cc rather than in the m-file print.m.

I'd just like a little guidance/affirmation from jwe about the approach before
making any fix.

"strrep doesn't work"

This is because the pattern "\\includegraphics{}" doesn't exist in the input
string.  The actual pattern is "\\includegraphics{/path/to/filename}".  

If you swap strrep for regexprep then it will work.


+  latex = regexprep (latex, '\\includegraphics{.*?}',
+                     ['\\includegraphics{' graphicsfile '}']);




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58374>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]