bugGNU TeXmacs - Bugs: bug #64946, Macro Issue with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64946: Macro Issue with arrow-with-text(*): Non-Editable Arrow Text

Submitter:  Hagi <hagi>
Submitted:  Wed 29 Nov 2023 04:18:06 PM UTC
   
 
Category:  Graphics editor Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Release:  2.1.1
Fixed Release:  None Fixed Release: 
Keywords: 

Sat 01 Feb 2025 08:23:41 PM UTC, comment #2: 

Thank you so much for the fix and the clarification.

Hagi <hagi>
Sat 01 Feb 2025 05:15:42 PM UTC, comment #1: 

In TeXmacs/packages/standard/std-graphics.ts we see that the third argument of the arrow-with-text function is used via <quote-arg| >.

Consequently, your macro should contain something like

<quasiquote|<arrow-with-text|<point|...|...>|<point|...|...>|<unquote|<math-at|<arg|...>>>>>

I've modified the file you sent accordingly; see attached file.

For further explanations, see section "Evaluation control primitives" of the TeXmacs documentation.

(file #56844)

Grégoire Lecerf <lecerf>
Group Member
Wed 29 Nov 2023 04:18:06 PM UTC, original submission:  

Using macros to input graphical elements with variables is usually not an issue. However, incorporating arrow-with-text(*) into the macro is causing some difficulties.

Specifically, when the macro variables are configured to be the texts attached to arrows using the arrow-with-text(*) function, they do not behave as editable when the macro is applied in the documents.

In the attached file, I provide an example of a macro (defined in the preamble) for a diagram with three vertices and three connecting arrows. Besides the vertex names, the arrow names (using the arrow-with-text(*) function) are also set as variables. However, when the macro is applied in the document, the arrow variables are not editable, whereas the vertex variables work correctly.

Hagi <hagi>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lecerf (Updated the item)
  • -email is unavailable- added by hagi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-02-01 lecerf Attached File- Added Macro@Issue@with@arrow-with-text@Non-Editable@Arrow@Text-FIXED.tm, #56844
        StatusNone Fixed
        Open/ClosedOpen Closed
    2023-11-29 hagi Attached File- Added Macro@Issue@with@arrow-with-text@Non-Editable@Arrow@Text.tm, #55370

    Back to the top

    Powered by Savane 3.14-9aa3.
    Corresponding source code