@@ -324,8 +324,8 @@ public static class LaTeXSettings {
324324 public static MathAtom Placeholder => new Placeholder ( "\u25A1 " ) ;
325325 public static MathList PlaceholderList => new MathList { Placeholder } ;
326326
327- public static BiDictionary < string , FontStyle > FontStyles { get ; } =
328- new BiDictionary < string , FontStyle > ( ( command , fontStyle ) => {
327+ public static AliasBiDictionary < string , FontStyle > FontStyles { get ; } =
328+ new AliasBiDictionary < string , FontStyle > ( ( command , fontStyle ) => {
329329 Commands . Add ( @"\" + command , ( parser , accumulate , stopChar ) => {
330330 var oldSpacesAllowed = parser . TextMode ;
331331 var oldFontStyle = parser . CurrentFontStyle ;
@@ -386,8 +386,8 @@ public static StringBuilder ColorToString(Color color, StringBuilder sb) {
386386 }
387387 }
388388 //https://en.wikibooks.org/wiki/LaTeX/Colors#Predefined_colors
389- public static BiDictionary < string , Color > PredefinedColors { get ; } =
390- new BiDictionary < string , Color > {
389+ public static AliasBiDictionary < string , Color > PredefinedColors { get ; } =
390+ new AliasBiDictionary < string , Color > {
391391 { "black" , Color . FromArgb ( 0 , 0 , 0 ) } ,
392392 { "blue" , Color . FromArgb ( 0 , 0 , 255 ) } ,
393393 { "brown" , Color . FromArgb ( 150 , 75 , 0 ) } ,
@@ -424,8 +424,8 @@ public static StringBuilder ColorToString(Color color, StringBuilder sb) {
424424 return CommandSymbols . SecondToFirst . TryGetValue ( atomWithoutScripts , out var name ) ? name : null ;
425425 }
426426
427- public static BiDictionary < string , MathAtom > CommandSymbols { get ; } =
428- new BiDictionary < string , MathAtom > ( ( command , atom ) =>
427+ public static AliasBiDictionary < string , MathAtom > CommandSymbols { get ; } =
428+ new AliasBiDictionary < string , MathAtom > ( ( command , atom ) =>
429429 Commands . Add ( command , ( parser , accumulate , stopChar ) =>
430430 atom is Accent accent
431431 ? parser . ReadArgument ( ) . Bind ( accentee => Ok ( new Accent ( accent . Nucleus , accentee ) ) )
0 commit comments