-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3735 from Toseflo/master
Add diffcoeff and upgreek packages to command completion
- Loading branch information
Showing
5 changed files
with
155 additions
and
53 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
36 changes: 36 additions & 0 deletions
36
src/nl/hannahsten/texifyidea/lang/commands/LatexDiffcoeffCommand.kt
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,36 @@ | ||
package nl.hannahsten.texifyidea.lang.commands | ||
|
||
import nl.hannahsten.texifyidea.lang.LatexPackage | ||
|
||
/** | ||
* @author Florian Kraft | ||
*/ | ||
enum class LatexDiffcoeffCommand( | ||
override val command: String, | ||
override vararg val arguments: Argument = emptyArray(), | ||
override val dependency: LatexPackage = LatexPackage.DIFFCOEFF, | ||
override val display: String? = null, | ||
override val isMathMode: Boolean = true, | ||
) : LatexCommand { | ||
|
||
DIFF("diff", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFF_STAR("diff*", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFF_STAR_STAR("diff**", "order-spec".asOptional(), "variable(s)".asRequired(), "differentiand".asRequired(), "pt of eval".asOptional()), | ||
DIFFP("diffp", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFFP_STAR("diffp*", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFFP_STAR_STAR("diffp**", "order-spec".asOptional(), "variable(s)".asRequired(), "differentiand".asRequired(), "pt of eval".asOptional()), | ||
DIFS("difs", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFS_STAR("difs*", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFS_STAR_STAR("difs**", "order-spec".asOptional(), "variable(s)".asRequired(), "differentiand".asRequired(), "pt of eval".asOptional()), | ||
DIFSP("difsp", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFSP_STAR("difsp*", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFSP_STAR_STAR("difsp**", "order-spec".asOptional(), "variable(s)".asRequired(), "differentiand".asRequired(), "pt of eval".asOptional()), | ||
DIFC("difc", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFC_STAR_STAR("difc**", "order-spec".asOptional(), "variable(s)".asRequired(), "differentiand".asRequired(), "pt of eval".asOptional()), | ||
DIFCP("difcp", "order-spec".asOptional(), "differentiand".asRequired(), "variable(s)".asRequired(), "pt of eval".asOptional()), | ||
DIFCP_STAR_STAR("difcp**", "order-spec".asOptional(), "variable(s)".asRequired(), "differentiand".asRequired(), "pt of eval".asOptional()), | ||
; | ||
|
||
override val identifier: String | ||
get() = name | ||
} |
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
62 changes: 62 additions & 0 deletions
62
src/nl/hannahsten/texifyidea/lang/commands/LatexUpgreekCommand.kt
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,62 @@ | ||
package nl.hannahsten.texifyidea.lang.commands | ||
|
||
import nl.hannahsten.texifyidea.lang.LatexPackage | ||
import nl.hannahsten.texifyidea.lang.LatexPackage.Companion.UPGREEK | ||
|
||
/** | ||
* @author Florian Kraft | ||
*/ | ||
enum class LatexUpgreekCommand( | ||
override val command: String, | ||
override vararg val arguments: Argument = emptyArray(), | ||
override val dependency: LatexPackage = LatexPackage.DEFAULT, | ||
override val display: String? = null, | ||
override val isMathMode: Boolean = true, | ||
val collapse: Boolean = false | ||
) : LatexCommand { | ||
|
||
UPALPHA("upalpha", display = "α", dependency = UPGREEK), | ||
UPBETA("upbeta", display = "β", dependency = UPGREEK), | ||
UPGAMMA("upgamma", display = "γ", dependency = UPGREEK), | ||
UPGAMMA_CAPITAL("Upgamma", display = "Γ", dependency = UPGREEK), | ||
UPDELTA("updelta", display = "δ", dependency = UPGREEK), | ||
UPDELTA_CAPITAL("Updelta", display = "Δ", dependency = UPGREEK), | ||
UPEPSILON("upepsilon", display = "ϵ", dependency = UPGREEK), | ||
UPEPSILON_VARIANT("upvarepsilon", display = "ε", dependency = UPGREEK), | ||
UPZETA("upzeta", display = "ζ", dependency = UPGREEK), | ||
UPETA("upeta", display = "η", dependency = UPGREEK), | ||
UPTHETA("uptheta", display = "θ", dependency = UPGREEK), | ||
UPTHETA_VARIANT("upvartheta", display = "ϑ", dependency = UPGREEK), | ||
UPTHETA_CAPITAL("Uptheta", display = "Θ", dependency = UPGREEK), | ||
UPIOTA("upiota", display = "ι", dependency = UPGREEK), | ||
UPKAPPA("upkappa", display = "κ", dependency = UPGREEK), | ||
UPLAMBDA("uplambda", display = "λ", dependency = UPGREEK), | ||
UPLAMBDA_CAPITAL("Uplambda", display = "Λ", dependency = UPGREEK), | ||
UPMU("upmu", display = "μ", dependency = UPGREEK), | ||
UPNU("upnu", display = "ν", dependency = UPGREEK), | ||
UPXI("upxi", display = "ξ", dependency = UPGREEK), | ||
UPXI_CAPITAL("Upxi", display = "Ξ", dependency = UPGREEK), | ||
UPPI("uppi", display = "π", dependency = UPGREEK), | ||
UPPI_VARIANT("upvarpi", display = "ϖ", dependency = UPGREEK), | ||
UPPI_CAPITAL("Uppi", display = "Π", dependency = UPGREEK), | ||
UPRHO("uprho", display = "ρ", dependency = UPGREEK), | ||
UPRHO_VARIANT("upvarrho", display = "ρ", dependency = UPGREEK), | ||
UPSIGMA("upsigma", display = "σ", dependency = UPGREEK), | ||
UPSIGMA_VARIANT("upvarsigma", display = "σ", dependency = UPGREEK), | ||
UPSIGMA_CAPITAL("Upsigma", display = "Σ", dependency = UPGREEK), | ||
UPTAU("uptau", display = "τ", dependency = UPGREEK), | ||
UPUPSILON("upupsilon", display = "υ", dependency = UPGREEK), | ||
UPUPSILON_CAPITAL("Upupsilon", display = "ϒ", dependency = UPGREEK), | ||
UPPHI("upphi", display = "ϕ", dependency = UPGREEK), | ||
UPPHI_VARIANT("upvarphi", display = "φ", dependency = UPGREEK), | ||
UPPHI_CAPITAL("Upphi", display = "Φ", dependency = UPGREEK), | ||
UPCHI("upchi", display = "χ", dependency = UPGREEK), | ||
UPPSI("uppsi", display = "ψ", dependency = UPGREEK), | ||
UPPSI_CAPITAL("Uppsi", display = "Ψ", dependency = UPGREEK), | ||
UPOMEGA("upomega", display = "ω", dependency = UPGREEK), | ||
UPOMEGA_CAPITAL("Upomega", display = "Ω", dependency = UPGREEK), | ||
; | ||
|
||
override val identifier: String | ||
get() = name | ||
} |