Skip to content

[WIP] add hacky defmacro to latex#3

Merged
bingmann merged 1 commit intobingmann:masterfrom
lorenzhs:newcommand
Feb 12, 2015
Merged

[WIP] add hacky defmacro to latex#3
bingmann merged 1 commit intobingmann:masterfrom
lorenzhs:newcommand

Conversation

@lorenzhs
Copy link
Copy Markdown
Contributor

This is a starting point for adding \def macros to the Latex engine. Use case:

%% DEFMACRO REFORMAT(precision=1)
%% SELECT AVG(foo/bar) as fooAvg, MEDIAN(foo/bar) as fooMedian FROM blah
\def \fooAvg {10.1}
\def \fooMedian {9.5}

It's not ready for merging, I just quickly cobbled it together without trying to really understand the codebase

@lorenzhs
Copy link
Copy Markdown
Contributor Author

(issues include that it gobbles up too many lines if only \fooAvg is defined and I add \fooMedian. It's also completely undocumented)

@lorenzhs lorenzhs changed the title [WIP] add hacky newcommand to latex [WIP] add hacky defmacro to latex Feb 10, 2015
@bingmann
Copy link
Copy Markdown
Owner

Nice.

bingmann added a commit that referenced this pull request Feb 12, 2015
[WIP] add hacky defmacro to latex
@bingmann bingmann merged commit 3c87aa1 into bingmann:master Feb 12, 2015
@lorenzhs lorenzhs deleted the newcommand branch February 12, 2015 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants