-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error messages improvement and arguments for prefixes
- Error messages improved - Added errors for multiple definitions with the same name - All symbols allowed in prefixes - Excluding `\` from allowed prefix' first-symbol - `@Suffix`, `@NoGroup` and `@OneLine` options added to prefixes - Arguments for prefixes added - New type of argument: `Math`
- Loading branch information
Showing
14 changed files
with
481 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ | |
|
||
\subsection{Environments} | ||
|
||
|
||
\subsection{Prefs} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
First example: | ||
\begin{argument} | ||
arg is a: some text here suffix a | ||
arg is b: another text suffix b | ||
\end{argument} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@Define | ||
@Prefs | ||
|# (n : String) = @TexBeginEnd "argument" @Pref "arg is $n:" @Suf "suffix $n" | ||
|
||
First example: | ||
|# "a" some text here | ||
|# "b" another text | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Example: | ||
$ a_1 \wedge a_2 \wedge \ldots \wedge v_n $ Some text here | ||
$ b_1 + b_2 + \ldots + v_n $ Some text there |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@Define | ||
@Prefs | ||
## (v : String) (op : Math) = @Pref "$ $v_1 $op $v_2 $op \\ldots $op v_n $" | ||
@MathCommands | ||
/\ = "\\wedge" | ||
|
||
Example: | ||
## "a" `/\` Some text here | ||
## "b" `+` Some text there |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Example: | ||
Begin 1 | ||
Begin 2 | ||
1 End. | ||
2 End. | ||
Begin 1 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@Define | ||
@Prefs | ||
|$ = @Begin "Begin" @NoGroup @OneLine | ||
|> = @End "End." @NoGroup @OneLine | ||
||$ = @Begin "Begin" @OneLine | ||
|
||
Example: | ||
|$ 1 | ||
|$ 2 | ||
|> 1 | ||
|> 2 | ||
||$ 1 | ||
||$ 2 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.