-
Notifications
You must be signed in to change notification settings - Fork 71
Under annotations #245
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
Open
hflexgrig
wants to merge
37
commits into
verybadcat:master
Choose a base branch
from
hflexgrig:under_annotations
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Under annotations #245
Changes from 3 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
2bc6e7e
updated gitignore to ignore .vscode folder
hflexgrig ce02fc8
Created abstraction atom called UnderAnnotation for under annotations…
hflexgrig d2eabcb
Added basic latex parser for under annotation
hflexgrig 64ee413
Merge branch 'master' into under_annotations
hflexgrig 6ffa3e7
Merge branch 'verybadcat:master' into master
hflexgrig 1a6629b
Created abstraction atom called UnderAnnotation for under annotations…
hflexgrig ddad85d
Added basic latex parser for under annotation
hflexgrig c98495b
Merge branch 'under_annotations' of https://github.com/hflexgrig/CSha…
hflexgrig 92a5fb3
commented failing test
hflexgrig 9227ea6
basic display of underbrace
hflexgrig 9c55b71
add underbrace underlist to a latex parser
hflexgrig e981a2b
Finished implementation
hflexgrig 6109461
Merge remote-tracking branch 'origin/master' into under_annotations
hflexgrig 06c19f8
Implemented GetHorizontalGlyphAssembly
hflexgrig a0f06ef
ran dotnet format with fixups
hflexgrig 374a442
fixed unittests
hflexgrig bf2e3cb
Add Typesetter tests for UnderAnnotation
Happypig375 fd8484b
merged from master and resolved conflicts
hflexgrig 4bf254b
Merge branch 'master' into under_annotations
Happypig375 ee314a7
Format
Happypig375 24712ba
Fix head
Happypig375 d7a00f2
Use ref?
Happypig375 377f29e
sha?
Happypig375 3bce9c8
Check out pull request HEAD commit?
Happypig375 d2ca42e
fetch?
Happypig375 696dae0
Need origin?
Happypig375 8451047
Fetch all?
Happypig375 5fa3866
Use base_ref and head_ref given commit history
Happypig375 3109e54
Still need origin huh
Happypig375 2d20ff3
sha?
Happypig375 4f8f330
pull_request_target?
Happypig375 7012adf
Fix Labeller?
Happypig375 906323f
Fix warnings?
Happypig375 b9242ba
Underbrace rendering tests
Happypig375 bd680f9
Fix image baselines
Happypig375 759289a
Separate workflow change to #256
Happypig375 fb2e6e1
Merge branch 'master' into under_annotations
Happypig375 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 hidden or 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 hidden or 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 hidden or 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,30 @@ | ||
| namespace CSharpMath.Atom.Atoms; | ||
| /// <summary> | ||
| /// Abstract name of under annotations implementation \underbrace, \underbracket etc.. | ||
| /// </summary> | ||
| public sealed class UnderAnnotation : MathAtom, IMathListContainer { | ||
| public UnderAnnotation(string value, MathList innerList, MathList? underList = null) : base(value) { | ||
| InnerList = innerList; | ||
| UnderList = underList; | ||
| } | ||
|
|
||
| public MathList InnerList { get; } | ||
| public MathList? UnderList { get; } | ||
|
|
||
| System.Collections.Generic.IEnumerable<MathList> IMathListContainer.InnerLists => | ||
| new[] { InnerList }; | ||
| public new UnderAnnotation Clone(bool finalize) => (UnderAnnotation)base.Clone(finalize); | ||
| protected override MathAtom CloneInside(bool finalize) => | ||
| new UnderAnnotation(Nucleus, InnerList.Clone(finalize), UnderList?.Clone(finalize)); | ||
| public override bool ScriptsAllowed => true; | ||
| //depending on nucleus, DebugString will change to \underbrace , \underbracket etc.. | ||
| public override string DebugString => | ||
| new System.Text.StringBuilder(@"\underbrace") | ||
| .AppendInBracesOrLiteralNull(InnerList.DebugString) | ||
| .ToString(); | ||
| public bool EqualsUnderAnnotation(UnderAnnotation other) => | ||
| EqualsAtom(other) && InnerList.EqualsList(other.InnerList); | ||
| public override bool Equals(object obj) => | ||
| obj is UnderAnnotation u ? EqualsUnderAnnotation(u) : false; | ||
| public override int GetHashCode() => (base.GetHashCode(), InnerList).GetHashCode(); | ||
| } |
This file contains hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.