Package writer2latex.latex
Class LaTeXConfig
- java.lang.Object
-
- writer2latex.base.ConfigBase
-
- writer2latex.latex.LaTeXConfig
-
- All Implemented Interfaces:
Config
public class LaTeXConfig extends ConfigBase
-
-
Field Summary
Fields Modifier and Type Field Description static intACCEPTstatic intCOMMENTstatic intCONVERT_ALLstatic intCONVERT_BASICstatic intCONVERT_GEOMETRYstatic intCONVERT_HEADER_FOOTERstatic intCONVERT_MOSTstatic intCUSTOMstatic intDVIPSstatic intERRORstatic intGENERICstatic intIGNOREstatic intIGNORE_ALLstatic intIGNORE_MOSTstatic intMARGINPARstatic intPDFANNOTATIONstatic intPDFTEXstatic intUNSPECIFIEDstatic intWARNINGstatic intXETEX-
Fields inherited from class writer2latex.base.ConfigBase
optionGroups, options
-
-
Constructor Summary
Constructors Constructor Description LaTeXConfig()Construct a newLaTeXConfigwith default values for all options
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanalignFrames()java.lang.StringbibtexStyle()booleandebug()booleandisplayHiddenText()java.lang.StringexternalBibtexFiles()booleanfloatFigures()booleanfloatTables()intformatting()intgetBackend()java.lang.StringgetCustomPreamble()protected java.lang.StringgetDefaultConfigPath()java.lang.StringgetDocumentclass()java.lang.StringgetFigureSequenceName()java.lang.StringgetFloatOptions()java.lang.StringgetGlobalOptions()HeadingMapgetHeadingMap()java.lang.StringgetImageOptions()intgetInputencoding()StyleMapgetListItemStyleMap()StyleMapgetListStyleMap()java.util.Map<java.lang.String,java.lang.String>getMathSymbols()java.lang.StringgetNatbibOptions()java.lang.StringgetNotesCommand()java.lang.StringgetOption(java.lang.String sName)Get a named optionprotected intgetOptionCount()StyleMapgetParBlockStyleMap()StyleMapgetParStyleMap()intgetSimpleTableLimit()ReplacementTriegetStringReplace()java.lang.StringgetTableFirstHeadStyle()java.lang.StringgetTableFootStyle()java.lang.StringgetTableHeadStyle()java.lang.StringgetTableLastFootStyle()java.lang.StringgetTableSequenceName()java.lang.StringgetTabstop()StyleMapgetTextAttributeStyleMap()StyleMapgetTextStyleMap()intgetWrapLinesAfter()booleangreekMath()booleanignoreDoubleSpaces()booleanignoreEmptyParagraphs()booleanignoreHardLineBreaks()booleanignoreHardPageBreaks()intimageContent()booleanincludeOriginalCitations()java.lang.StringjabrefBibtexFiles()booleanmetadata()booleanmultilingual()booleannoIndex()booleannoPreamble()intnotes()booleanoriginalImageSize()intotherStyles()intpageFormatting()protected voidreadInner(org.w3c.dom.Element elm)Read configuration information from an xml element.booleanremoveGraphicsExtension()booleansaveImagesInSubdir()voidsetOption(java.lang.String sName, java.lang.String sValue)Set a name/value option.booleansplitLinkedSections()booleansplitToplevelSections()inttableContent()booleanuseBbding()booleanuseBibtex()booleanuseCaption()booleanuseColor()booleanuseColortbl()booleanuseEndnotes()booleanuseEurosym()booleanuseFancyhdr()booleanuseGeometry()booleanuseHyperref()booleanuseIfsym()booleanuseLastpage()booleanuseLongtable()booleanuseNatbib()booleanuseOoomath()booleanuseOooref()booleanusePifont()booleanuseSupertabular()booleanuseTabulary()booleanuseTipa()booleanuseTitleref()booleanuseTitlesec()booleanuseTitletoc()booleanuseUlem()booleanuseWasysym()protected voidwriteInner(org.w3c.dom.Document dom)Write configuration information to an xml document.java.lang.StringzoteroBibtexFiles()-
Methods inherited from class writer2latex.base.ConfigBase
addComplexOption, getComplexOption, read, read, readDefaultConfig, write, write
-
-
-
-
Field Detail
-
GENERIC
public static final int GENERIC
- See Also:
- Constant Field Values
-
DVIPS
public static final int DVIPS
- See Also:
- Constant Field Values
-
PDFTEX
public static final int PDFTEX
- See Also:
- Constant Field Values
-
UNSPECIFIED
public static final int UNSPECIFIED
- See Also:
- Constant Field Values
-
XETEX
public static final int XETEX
- See Also:
- Constant Field Values
-
IGNORE_ALL
public static final int IGNORE_ALL
- See Also:
- Constant Field Values
-
IGNORE_MOST
public static final int IGNORE_MOST
- See Also:
- Constant Field Values
-
CONVERT_BASIC
public static final int CONVERT_BASIC
- See Also:
- Constant Field Values
-
CONVERT_MOST
public static final int CONVERT_MOST
- See Also:
- Constant Field Values
-
CONVERT_ALL
public static final int CONVERT_ALL
- See Also:
- Constant Field Values
-
CONVERT_HEADER_FOOTER
public static final int CONVERT_HEADER_FOOTER
- See Also:
- Constant Field Values
-
CONVERT_GEOMETRY
public static final int CONVERT_GEOMETRY
- See Also:
- Constant Field Values
-
IGNORE
public static final int IGNORE
- See Also:
- Constant Field Values
-
ACCEPT
public static final int ACCEPT
- See Also:
- Constant Field Values
-
WARNING
public static final int WARNING
- See Also:
- Constant Field Values
-
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
-
PDFANNOTATION
public static final int PDFANNOTATION
- See Also:
- Constant Field Values
-
MARGINPAR
public static final int MARGINPAR
- See Also:
- Constant Field Values
-
CUSTOM
public static final int CUSTOM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOptionCount
protected int getOptionCount()
- Specified by:
getOptionCountin classConfigBase
-
getDefaultConfigPath
protected java.lang.String getDefaultConfigPath()
- Specified by:
getDefaultConfigPathin classConfigBase
-
setOption
public void setOption(java.lang.String sName, java.lang.String sValue)Description copied from interface:ConfigSet a name/value option. Options that are not defined by theConverterimplementation as well as null values are silently ignored- Specified by:
setOptionin interfaceConfig- Overrides:
setOptionin classConfigBase- Parameters:
sName- the name of the optionsValue- the value of the option
-
getOption
public java.lang.String getOption(java.lang.String sName)
Description copied from interface:ConfigGet a named option- Specified by:
getOptionin interfaceConfig- Overrides:
getOptionin classConfigBase- Parameters:
sName- the name of the option- Returns:
- the value of the option, or
nullif the option does not exist or the given name is null
-
readInner
protected void readInner(org.w3c.dom.Element elm)
Description copied from class:ConfigBaseRead configuration information from an xml element. The subclass must define this to read richer configuration data- Specified by:
readInnerin classConfigBase
-
writeInner
protected void writeInner(org.w3c.dom.Document dom)
Description copied from class:ConfigBaseWrite configuration information to an xml document. The subclass must define this to write richer configuration data- Specified by:
writeInnerin classConfigBase
-
getHeadingMap
public HeadingMap getHeadingMap()
-
getParStyleMap
public StyleMap getParStyleMap()
-
getParBlockStyleMap
public StyleMap getParBlockStyleMap()
-
getListStyleMap
public StyleMap getListStyleMap()
-
getListItemStyleMap
public StyleMap getListItemStyleMap()
-
getTextAttributeStyleMap
public StyleMap getTextAttributeStyleMap()
-
getTextStyleMap
public StyleMap getTextStyleMap()
-
getStringReplace
public ReplacementTrie getStringReplace()
-
getMathSymbols
public java.util.Map<java.lang.String,java.lang.String> getMathSymbols()
-
getCustomPreamble
public java.lang.String getCustomPreamble()
-
debug
public boolean debug()
-
getDocumentclass
public java.lang.String getDocumentclass()
-
getGlobalOptions
public java.lang.String getGlobalOptions()
-
getBackend
public int getBackend()
-
getInputencoding
public int getInputencoding()
-
multilingual
public boolean multilingual()
-
greekMath
public boolean greekMath()
-
noPreamble
public boolean noPreamble()
-
noIndex
public boolean noIndex()
-
useOoomath
public boolean useOoomath()
-
usePifont
public boolean usePifont()
-
useIfsym
public boolean useIfsym()
-
useWasysym
public boolean useWasysym()
-
useBbding
public boolean useBbding()
-
useEurosym
public boolean useEurosym()
-
useTipa
public boolean useTipa()
-
useColor
public boolean useColor()
-
useColortbl
public boolean useColortbl()
-
useGeometry
public boolean useGeometry()
-
useFancyhdr
public boolean useFancyhdr()
-
useTitlesec
public boolean useTitlesec()
-
useTitletoc
public boolean useTitletoc()
-
useHyperref
public boolean useHyperref()
-
useCaption
public boolean useCaption()
-
useLongtable
public boolean useLongtable()
-
useSupertabular
public boolean useSupertabular()
-
useTabulary
public boolean useTabulary()
-
useEndnotes
public boolean useEndnotes()
-
useUlem
public boolean useUlem()
-
useLastpage
public boolean useLastpage()
-
useTitleref
public boolean useTitleref()
-
useOooref
public boolean useOooref()
-
useBibtex
public boolean useBibtex()
-
bibtexStyle
public java.lang.String bibtexStyle()
-
externalBibtexFiles
public java.lang.String externalBibtexFiles()
-
zoteroBibtexFiles
public java.lang.String zoteroBibtexFiles()
-
jabrefBibtexFiles
public java.lang.String jabrefBibtexFiles()
-
includeOriginalCitations
public boolean includeOriginalCitations()
-
useNatbib
public boolean useNatbib()
-
getNatbibOptions
public java.lang.String getNatbibOptions()
-
formatting
public int formatting()
-
pageFormatting
public int pageFormatting()
-
otherStyles
public int otherStyles()
-
imageContent
public int imageContent()
-
tableContent
public int tableContent()
-
getTableFirstHeadStyle
public java.lang.String getTableFirstHeadStyle()
-
getTableHeadStyle
public java.lang.String getTableHeadStyle()
-
getTableFootStyle
public java.lang.String getTableFootStyle()
-
getTableLastFootStyle
public java.lang.String getTableLastFootStyle()
-
ignoreHardPageBreaks
public boolean ignoreHardPageBreaks()
-
ignoreHardLineBreaks
public boolean ignoreHardLineBreaks()
-
ignoreEmptyParagraphs
public boolean ignoreEmptyParagraphs()
-
ignoreDoubleSpaces
public boolean ignoreDoubleSpaces()
-
displayHiddenText
public boolean displayHiddenText()
-
alignFrames
public boolean alignFrames()
-
floatFigures
public boolean floatFigures()
-
floatTables
public boolean floatTables()
-
getFloatOptions
public java.lang.String getFloatOptions()
-
getFigureSequenceName
public java.lang.String getFigureSequenceName()
-
getTableSequenceName
public java.lang.String getTableSequenceName()
-
getImageOptions
public java.lang.String getImageOptions()
-
removeGraphicsExtension
public boolean removeGraphicsExtension()
-
originalImageSize
public boolean originalImageSize()
-
getSimpleTableLimit
public int getSimpleTableLimit()
-
notes
public int notes()
-
getNotesCommand
public java.lang.String getNotesCommand()
-
metadata
public boolean metadata()
-
getTabstop
public java.lang.String getTabstop()
-
getWrapLinesAfter
public int getWrapLinesAfter()
-
splitLinkedSections
public boolean splitLinkedSections()
-
splitToplevelSections
public boolean splitToplevelSections()
-
saveImagesInSubdir
public boolean saveImagesInSubdir()
-
-