-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to fix the curly brackets bug #166
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f92ee1a
fixed curly brackets bug
GinoGiotto 9c6e88e
moved counting algorithm to mmwtex.c
GinoGiotto 85d6951
unduplicate counting algorithm + printLongLine
GinoGiotto eb6541f
add test case
GinoGiotto 40bdc50
updated test case
GinoGiotto 0f7bcef
maybe fix
GinoGiotto 93a80c7
edited run_test.sh
GinoGiotto 86d98e2
attempting again
GinoGiotto 5abdc38
how about this
GinoGiotto c6b8b97
doesn't work, restore original run_test.sh and issue129.expected
GinoGiotto 74986e8
fix test
digama0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
issue129.tex | ||
issue134.tex | ||
underscores.html |
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,44 @@ | ||
MM> READ "issue129.mm" | ||
Reading source file "issue129.mm"... 121 bytes | ||
121 bytes were read into the source buffer. | ||
The source has 3 statements; 1 are $a and 1 are $p. | ||
No errors were found. However, proofs were not checked. Type VERIFY PROOF * | ||
if you want to check them. | ||
MM> Continuous scrolling is now in effect. | ||
MM> Created LaTeX output file "issue129.tex". | ||
Reading definitions from $t statement of issue129.mm... | ||
1 typesetting statements were read from "issue129.mm". | ||
MM> Outputting proof of "th1"... | ||
The LaTeX source was written to "issue129.tex". | ||
MM> The LaTeX output file "issue129.tex" has been closed. | ||
MM> Entering the Text Tools utilities. Type HELP for help, EXIT to exit. | ||
TOOLS> The input had 28 lines, the output has 27 lines. First output line: | ||
\documentclass{article} | ||
TOOLS> Exiting the Text Tools. Type EXIT again to exit Metamath. | ||
MM> \documentclass{article} | ||
\usepackage{amssymb} % amssymb must be loaded before phonetic | ||
\usepackage{phonetic} % for \riota | ||
\usepackage{mathrsfs} % for \mathscr | ||
\usepackage{mathtools} % loads package amsmath | ||
\usepackage{amsthm} % amsthm must be loaded after amsmath | ||
\usepackage{accents} % accents should be loaded after mathtools | ||
\theoremstyle{plain} | ||
\newtheorem{theorem}{Theorem}[section] | ||
\newtheorem{definition}[theorem]{Definition} | ||
\newtheorem{lemma}[theorem]{Lemma} | ||
\newtheorem{axiom}{Axiom} | ||
\allowdisplaybreaks[1] % Allow page breaks in {align} | ||
\usepackage[plainpages=false,pdfpagelabels]{hyperref} | ||
\hypersetup{colorlinks} % Get rid of boxes around links | ||
\begin{document} | ||
|
||
\begin{proof} | ||
\begin{align} | ||
1 && & \text{ A A A A A A A A A A } \text{ A A A A A A A A A A } | ||
\notag \\ && & \qquad \text{ A A A A A A A A A A } | ||
\notag \\ && & \qquad \text{ A A A A A A A A A A } | ||
\text{ A A A A A A A A A A }&(\mbox{\ref{eq:ax-1}})\notag | ||
\end{align} | ||
\end{proof} | ||
|
||
\end{document} |
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,7 @@ | ||
open tex issue129.tex | ||
show proof th1 /tex | ||
close tex | ||
tools | ||
match issue129.tex "% This LaTeX file was created by Metamath on " N | ||
exit | ||
"cat issue129.tex" |
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 @@ | ||
$c A $. | ||
|
||
ax-1 $a A A A A A $. | ||
|
||
th1 $p A A A A A $= ax-1 $. | ||
|
||
$( $t | ||
latexdef "A" as "\text{ A A A A A A A A A A }"; | ||
$) |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I added a comment to point out that
texFull[0] = " "
should not be a "{" character, since it wouldn't be checked by the subsequent counting algorithm.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, and here it obviously will never be "
".
{
", since it is a blank space "