Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/LaTeXML/Package/pgfmath.code.tex.ltxml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ DefMacro('\@@@show@pgfmatharg@{}', sub {
DefParameterType('pgfNumber', sub {
my ($gullet) = @_;
my $pgf_number = ToString(Expand($gullet->readArg()));
$pgf_number =~ s/^\-\-//g; # drop leading double negation
$pgf_number = "0" if $pgf_number eq '.'; # Apparently "." is a valid number!
return $pgf_number; });

Expand Down Expand Up @@ -649,7 +650,7 @@ BEGIN {

# Why can't I manage to import a few functions to be visible to the grammar actions?
# NOTE Not yet done: quoted strings, extensible functions
$PGFMATHGrammarSpec = << 'EoGrammar';
$PGFMATHGrammarSpec = <<'EoGrammar';
# {BEGIN { use LaTeXML::Package::Pool; }}
# { use LaTeXML::Package::Pool; }
# { LaTeXML::Package::Pool->import(qw(pgfmath_apply)); }
Expand Down
Loading