Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.formatter.bibtexfields

public Class LatexCleanupFormatter

extends Formatter
Class Inheritance
Imports
java.util.regex.Pattern, org.jabref.logic.formatter.Formatter, org.jabref.logic.l10n.Localization, org.jspecify.annotations.NonNull

Simplifies LaTeX syntax. See org.jabref.logic.layout.format.RemoveLatexCommandsFormatter for a formatter removing LaTeX commands completely.

Field Summary

Modifier and TypeField and Description
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
format(@NonNull String oldString)

public String
getDescription()

Implements abstract org.jabref.logic.formatter.Formatter.getDescription.

Returns a description of the formatter.

public String
getExampleInput()

Implements abstract org.jabref.logic.formatter.Formatter.getExampleInput.

Returns an example input string of the formatter.

public String
getKey()

Implements abstract org.jabref.logic.formatter.Formatter.getKey.

Returns a unique key for the formatter that can be used for its identification

public String
getName()

Implements abstract org.jabref.logic.formatter.Formatter.getName.

Returns a human readable name of the formatter usable for e.g. in the GUI

Inherited from org.jabref.logic.formatter.Formatter:
equalsformathashCode

Field Detail

ESCAPE_PERCENT_SIGN_ONCEback to summary
private static final Pattern ESCAPE_PERCENT_SIGN_ONCE
MOVE_NUMBERS_RIGHT_INTO_EQUATIONback to summary
private static final Pattern MOVE_NUMBERS_RIGHT_INTO_EQUATION
MOVE_NUMBERS_WITH_OPERATORSback to summary
private static final Pattern MOVE_NUMBERS_WITH_OPERATORS
REMOVE_REDUNDANTback to summary
private static final Pattern REMOVE_REDUNDANT
REPLACE_EVERY_OTHER_ATback to summary
private static final Pattern REPLACE_EVERY_OTHER_AT
REPLACE_WITH_ATback to summary
private static final Pattern REPLACE_WITH_AT

Constructor Detail

LatexCleanupFormatterback to summary
public LatexCleanupFormatter()

Method Detail

formatback to summary
public String format(@NonNull String oldString)
Annotations
@Override
getDescriptionback to summary
public String getDescription()

Implements abstract org.jabref.logic.formatter.Formatter.getDescription.

Doc from org.jabref.logic.formatter.Formatter.getDescription.

Returns a description of the formatter.

Annotations
@Override
getExampleInputback to summary
public String getExampleInput()

Implements abstract org.jabref.logic.formatter.Formatter.getExampleInput.

Doc from org.jabref.logic.formatter.Formatter.getExampleInput.

Returns an example input string of the formatter. This example is used as input to the formatter to demonstrate its functionality

Annotations
@Override
getKeyback to summary
public String getKey()

Implements abstract org.jabref.logic.formatter.Formatter.getKey.

Doc from org.jabref.logic.formatter.Formatter.getKey.

Returns a unique key for the formatter that can be used for its identification

Annotations
@Override
getNameback to summary
public String getName()

Implements abstract org.jabref.logic.formatter.Formatter.getName.

Doc from org.jabref.logic.formatter.Formatter.getName.

Returns a human readable name of the formatter usable for e.g. in the GUI

Annotations
@Override