theshell.ch/bonus2
bevilj 4b9169460b bonus2: complete bonus 2
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@167 a672b425-5310-4d7a-af5c-997e18724b81
2018-11-13 22:16:49 +00:00
..
gradle/wrapper bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
res bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
src/ch/usi/inf/atelier/group1 bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
.svnignore bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
bonus2.iml Initial bonus 2 implementation 2018-11-12 18:16:45 +00:00
build.gradle bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
gradlew bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
gradlew.bat bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00
ReadMe.md bonus2: complete bonus 2 2018-11-13 22:16:49 +00:00

Bonus 2

Author: Bevilacqua Joey

Language: Kotlin

Build

To compile this exercise gradle and java-1.8 are needed.

To create a working jar executable, run

./gradlew shadowJar

The output jar will be available at this path: build/libs/bonus2.jar

Execute

java -jar bonus2.jar [file1.html] [file2.html] [directory]

Both files and directories can be passed as parameter, even at the same.

If a directory is passed as parameter, the program will attemp to recursively search for Jekyll html files.

The converted LaTeX files will be created in the out directory with subdirectories matching the absolute path of the files passed as argument.

Note that the program will not work with plain html files, it requires Jekyll html files instead.

A test file is available for reference under the directory res.

Supported tags

HTML tags

  • b -> textbf
  • br -> \
  • code -> texttt
  • i -> emph
  • a -> emph footnote url
  • ul -> itemize
  • ol -> itemize
  • li -> item
  • pre -> verbatim
  • h1 -> section
  • h2 -> subsection
  • h3 -> subsubsection
  • h4 -> plainText
  • h5 -> plainText
  • p -> plainText
  • table -> table tabular
  • u -> underline

Extra

  • comments are removed
  • jekyll author -> LaTeX author
  • jekyll title -> LaTeX title