bugGNU TeXmacs - Bugs: bug #66921, Strange incorrect conversion of...

 
 

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

bug #66921: Strange incorrect conversion of '>' to LaTeX

Submitter:  Massimiliano Gubinelli <mgubi>
Submitted:  Mon 17 Mar 2025 02:17:03 PM UTC
   
 
Category:  Conversion Priority:  5 - Normal
Item Group:  None Status:  Confirmed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

Discussion

Sun 07 Sep 2025 08:26:30 PM UTC, comment #1: 

The same issue occurs for LaTeX exportation of Python3 (and Maple (and certainly more)) sessions.

(file #57625, file #57626, file #57627, file #57628)

Jerome BENOIT <jgmb>
Mon 17 Mar 2025 02:17:03 PM UTC, original submission:  

The following markup
```
<\eqnarray*>
  <tformat|<table|<row|<cell|x>|<cell|\<gtr\>>|<cell|y>>>>
</eqnarray*>
```
results in an incorrect LaTeX output upon conversion:
```
\documentclass{article}
\usepackage[english]{babel}

%%%%%%%%%% Start TeXmacs macros
\catcode`\>=\active \def>{
\fontencoding{T1}\selectfont\symbol{62}\fontencoding{\encodingdefault}}
%%%%%%%%%% End TeXmacs macros

\begin{document}

\begin{eqnarray*}
  x & > & y
\end{eqnarray*}

\end{document}
```
in particular the \catcode macro gives an error in LaTeX. If I remove the \catcode line then the file compiles correctly.

Massimiliano Gubinelli <mgubi>
Group administrator

 

Attached Files

Attached Files
file #57627:  session-maple-latex_export-corrupted.tm added by jgmb (1.0KiB - text/x-texmacs.doc - simple exaples)
file #57628:  session-maple-latex_export-corrupted.tex added by jgmb (1.5KiB - text/x-tex - simple exaples)
file #57625:  session-python-latex_export-corrupted.tm added by jgmb (586B - text/x-texmacs.doc - simple exaples)
file #57626:  session-python-latex_export-corrupted.tex added by jgmb (827B - text/x-tex - simple exaples)

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    History

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-09-07 jgmb Attached File- Added session-maple-latex_export-corrupted.tm, #57627
        Attached File- Added session-maple-latex_export-corrupted.tex, #57628
    2025-09-07 jgmb Attached File- Added session-python-latex_export-corrupted.tm, #57625
        Attached File- Added session-python-latex_export-corrupted.tex, #57626

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code