On 6/14/24 14:39, Qian Yun wrote:
\xtc:         show command, execute command, show result
\psXtc:       show command, execute command, don't show result
\noOutputXtc: show command, execute command, don't show result
\nullXtc:     show command, don't execute command

Very well described.

I propose to add new type, \shadowXtc:

\shadowXtc:   don't show command, execute command, don't show result

This way, I can integrate the additional commands from ug-pics.input
into htex sources.

I do not think that this solves the problem that led to the existence of ug-pics.input. As far as I understood the problem is that you issue "close(%)" after creating the .ps file.

Your proposal might remove the need of skip-graphics.awk.

I think we can do better.

\psXtc shows the commands and also writes out the respective command for execution, but it does that like this
==========
-- \\begin{xtcnooutput}
)if CreateGraphics
spadgraphViewport:=COMMAND
)endif
\\end{xtcnooutput}
==========

Execution is prevented by the fact that CreateGraphics is an unknown symbol for the )if.

In the run that we create the graphics files, we simply pipe the same file through fricas, but then with ")assert CreateGraphics" prepended.

I'm currently working on that idea and hope to present a working version soon.

The basic idea is:

(a) Every \psXtc creates a .ps file.
(b) Every \spadgraph creates a new viewport that is stored in
    the special fricas variable "spadGraphViewport" and is closed
    right before opening a new one.

\spadgraph only appears inside \psXtc or \nullXtc. We need not care about \nullXtc.

Ralf

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/ccafd86a-1a73-4b20-8559-2a85fbe58d4b%40hemmecke.org.

Reply via email to