Skip to content

metametamoon/TexElper

Repository files navigation

TexElper

.NET

Hello there.

This repository aims to assist with finding possible duplicates in problems lists. The program reads a user-selected folder and compares .tex files in the folder, printing all possible duplicates to a console. (Please note that is assumes that all files to compare are located in one folder).

Please note that starting from the forth release the console input is no used anymore - the program reads input files from "texelperinput.json", located in the same folder as executable, and outputs results to "out.txt". The logs are written into "%appdata%/TexElper/logs", they can help to find the reason of a crash (if there was one), or they can help to make sure the program read your files and problems within them properly. Only the last ten logs are stored.

Sample "texelperinput.json" (This file will compare the .tex files within the folder "Sample problems"):

{
	"SelectedFiles": [],
	"SelectedDirectories": [
		"C:\\Users\\James\\Desktop\\My documents\\Sample problems"
	]
}

Sample "out.txt"

There are 2 cases of suspected problems repetition:


In files C:\Users\James\Desktop\My documents\Sample problems\Summer_1.tex and C:\Users\James\Desktop\My documents\Sample problems\Summer_2.tex with the text:
1: 3. Докажите неравенство $a^4 + b^4 + c^4 \geq abc(a + b + c)$
2: 2. Докажите неравенство $a^4 + b^4 + c^4 \geq abc(a + b + c)$


In files C:\Users\James\Desktop\My documents\Sample problems\Summer_2.tex and C:\Users\James\Desktop\My documents\Sample problems\Summer_3.tex with the text:
1: 6. Дан параллелепипед с вершинами в узлах целочисленной кубической решетки, внутри которого нет других узлов этой решетки (в том числе на сторонах и гранях). Докажите, что его объем равен объему единичного кубика решетки.
2: 3. Дан параллелепипед с вершинами в узлах целочисленной кубической решетки, внутри которого нет других узлов этой решетки (в том числе на сторонах и гранях). Докажите, что его объем равен объему единичного кубика решетки.

User guide

  • Download dotnet runtime
  • From the "Releases" section download the corresponding binary file
  • Create "texelperinput.json" file in the same directory as the binary file (the sample file can be found in the repository in the top directory, but creating it should not be difficult)
  • Fill JSON file with content as in the example above. All the selected files (and files in selected folders) will be compared pairwise. Please note that directory separator should be '\' ot '/'. Using '/' as directory separator will cause the error "Invalid escapable character"
  • Run the binary
  • Watch the content of "out.txt" created automatically in the same directory