wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
test_GreekToTeX.cpp File Reference

Pins the LaTeX export of Greek constants: every one of them must become a command LaTeX actually knows, or a plain letter where LaTeX has no command for an uppercase Greek letter that looks like a Latin one. More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/log.h>
#include "Configuration.h"
#include "MathParser.h"
#include "cells/Cell.h"
#include <catch2/catch.hpp>
Include dependency graph for test_GreekToTeX.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("%xi and %Xi export as \\xi and \\Xi")
 
 SCENARIO ("Greek letters LaTeX has no command for export as Latin letters")
 
 SCENARIO ("Greek letters LaTeX knows export as their command")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Pins the LaTeX export of Greek constants: every one of them must become a command LaTeX actually knows, or a plain letter where LaTeX has no command for an uppercase Greek letter that looks like a Latin one.

xi and Xi used to export as the nonexistent "\ui", and e.g. Epsilon as "\Epsilon".

The cells are parsed from the <g> tags wxMathML.lisp emits for these constants – no live Maxima needed.