If I select the drawing and exported the selection as a PDF or PNG, then curves such as Splines or Circles becomes nonsmooth:
However, if I export the document as LaTeX, the automatically generated images in PDF format is fine:
If I select the drawing and exported the selection as a PDF or PNG, then curves such as Splines or Circles becomes nonsmooth:
Can you post here an example document? You might also want to file this as a bug report so that we can keep track of it, thanks!
<TeXmacs|2.1.2>
<style|<tuple|generic|comment>>
<\body>
<with|gr-mode|<tuple|edit|car>|gr-frame|<tuple|scale|1.41436cm|<tuple|0.5gw|0.5gh>>|gr-geometry|<tuple|geometry|1par|0.6par>|gr-auto-crop|false|magnify|1.41421355892718|<graphics||<spline|<point|-3.89832|1.56294>|<point|-3.80802685540415|2.51742955417383>|<point|-2.80194139436433|2.50453102262204>>|<carc|<point|-3.60344|2.06772>|<point|-3.33895728834169|1.76676371204415>|<point|-3.13831889344885|1.93092239877466>>>>
</body>
<\initial>
<\collection>
<associate|page-medium|paper>
<associate|preamble|false>
</collection>
</initial>
I have just tried with the Appimage, and the selection exported as pdf looks just like your latex export. Where did you get TeXmacs 2.1.2 from?
I got it from github. I am running it on Macbook M1.
The version on the TeXmacs website works ok on Macbook M1, why don’t you give a try to see if you can reproduce the bug?
Ok, now I tried and indeed in the PDF export from the selection it looks jagged.
Alright. Your MacOs builds use the code for export-selection-as-graphics presently in the trunk, while the AppImage incorporates my proposed patch which changes that code. I don’t know why the trunk code would result in jagged lines in exported graphics tag, but empirical observation indicates the newer code is doing better for that. (Note however that with the patch, you can still hit bugs for complex selections… I’m working to improve that).