The program provides a configuration that can be easily modified by the user
for the configuration of the LaTeX file to be generated, which can be modified
via the config file (stored in $HOME/.config/simtex/simtex.json), or
directly from the commandline options of the program.
FOR: str | list[str] -> ["markdown", "md", "rst", "txt", "text"], markers/rules for specific file type.- `CODE_BLOCKS: str -> ```_, for code blocks, using lstlisting environment.
IMAGE: str -> "![]()", for images, using figure environment. ++LINKS: str -> "[]()", for href environment. ++SECTION: str -> "#", for sections part.SUBSECTION: str -> "##", for subsections part.SUBSUBSECTION: str -> "###", for subsubsections part.PARAGRAPH: str -> "####", for paragraph part.SUBPARAGRAPH: str -> "#####", for subparagraph part.INLINE_MATH: str -> "$", for inline maths, uses equation environment.PARAGRAPH_MATH: str -> "$$", for paragraph maths, using align environment. Note: if there is no&, the program will insert&in the first=.INLINE_CODE: str ->`, for inline code, using\\textttt. ++BOLD: list[str] -> ["**", "**<text>**"], for bold text (uses\textbf{<text>}). The first item is for marker, and the second item is the patstern. ++ITALICS: list[str] -> ["_", "_<text>_"], for italized text. The first item is for marker, and the second item is the pattern. ++EMPH: list[str] -> ["!*", "!*<text>!*"], for emphasized text. The first item is for marker, and the second item is the pattern. ++STRIKE: list[str] -> ["~~", "~~<text>~~"]. ++SUPSCRIPT: list[str] -> ["^^", "^^<text>^^"], for superscript in text mode. ++- `SUBSCRIPT: list[str] -> ["-^", "-^-^"]_, for superscript. ++
ULINE: list[str] -> ["._", "._<text>._"], for underlines. ++QUOTE: list[str] -> ", for inline quotes. Note: the program does not accept single quotations. ++BQUOTE: str -> ">", for block quotes.NONUM: str -> "*", for toggling nonumber in section in documents.
++ Uses: regex. Note: do not replace
(.*?)
-
DOC_CLASS: str -> "article", currently only supports article. -
DEF_FONT: str -> "Latin Modern Roman (lmodern)"(provided bylmodernpackage), supports any font that has the package installed. Only package that is installed. -
FONT_SIZE: int -> 12, font size of the general text in article, sections, title, and other text is excluded. -
MARGIN: int -> 1, currenty only supports equal margin to all sides. Unit: in. -
PAPER_SIZE: str -> "a4paper", supports other paper sizes, such as letter, and legal, refer to documentation of LaTeX for further information. -
INDENT_SIZE: int -> 24, size of indentation. Unit: pt -
SLOPPY: bool -> true, whether to use\sloppy. -
CODE_FONT: str -> "DejaVuSansMono", font to use inlstlistingsenvironment and\textttcommand. -
PACKAGES: list[str]the basic needs that maybe used by general population_, this ranges from math tools, to some preferential options such as footnote symbols, as well as other symbols that maybe used. -
FOOTNOTE: str -> "footnote", symbol of footnote to be used in footnote command. -
SECTION_SIZES: dict[str, int | str] -> "<DEF>"_ (the oversized sections), sizes of the section.a.
main==\sectionb.
sub==\subsectionc.
subsub==\subsubsection -
COLOR_LINKS: bool -> true, whether to color the links, -
LINK_COLORS: str -> "BLUE", color of links. -
AUTHOR: str -> "John Doe". -
DATE: str -> <NOW>of conversion in format of (%B %d, %Y-- e.g. June, 27. 2055). -
MAKE_TITLE: bool -> true, whether to create the title or not. specified in commandline options. -
OUTPUT_FOLDER: str -> <input file folder>/out, where the files/generated output will be saved. -
COMPILER: str -> "pdflatex", the compiler the program will use to compile the source, currently supportsxetex,luatex, andpdflatex, although virtually allows for anything given that the compiler is on$PATHand is installed and is functional. -
ENCODE: str -> "UTF8", encoding of the document, although not necessary to be changed. -
REPLACE: bool -> false, whether to replace UTF8 or any other ascii string that points to a particular command. -
TWOCOLS: bool -> false, whether to turn the document to a two columns. -
ASSUME_YES: bool -> false, to assume yes in every prompt. -
HLINE: bool -> true, whether to add\hlineafter end of every row. -
HLINE_ENDING_COUNT: int -> 1, the number of\hlinein the final row. -
COLUMNLINE_COUNT: int -> 1, the number of column border in the outer most column. -
TABLE_HEAD_FORMAT: str -> "bold", the formatting of table headings.