eo icon indicating copy to clipboard operation
eo copied to clipboard

LatexMojo

Open yegor256 opened this issue 1 year ago • 11 comments

Let's create a new LatexMojo, which will take .xmir files from target/eo/03-optimize and generate .tex files for each of them in target/eo/latex. Each .tex file should be a standalone compilable document. Also, let's generate a summary target/eo/universe.tex, which includes all objects.

yegor256 avatar Sep 10 '22 06:09 yegor256

@Graur can you handle this?

yegor256 avatar Sep 10 '22 06:09 yegor256

@potatmen Can you help us here?

Graur avatar Sep 13 '22 07:09 Graur

@Graur sure

potatmen avatar Sep 13 '22 08:09 potatmen

@Graur I want to elaborate on this issue. So, we have many .xmir files inside given directory and I need to add some program which will take all files, put all generated text in these files to corresponding .tex files right?

potatmen avatar Sep 13 '22 11:09 potatmen

@potatmen Right, and don't forget about summary target/eo/universe.tex file

Graur avatar Sep 13 '22 11:09 Graur

@Graur please take a look at the resulted .pdf file which is successfully compiled from generated .tex file Result.pdf

potatmen avatar Sep 14 '22 10:09 potatmen

@Graur Now I see only one problem, it's related to page breaking. Is it important or not?

potatmen avatar Sep 14 '22 10:09 potatmen

@potatmen Looks good to me!

@Graur Now I see only one problem, it's related to page breaking. Is it important or not?

@potatmen Do you have a solution?

Graur avatar Sep 14 '22 11:09 Graur

@Graur well, I got one, but it's too complex for this kind of problem

potatmen avatar Sep 14 '22 11:09 potatmen

@Graur Now I see only one problem, it's related to page breaking. Is it important or not?

@potatmen I think it is necessary, but maybe @yegor256 have another opinion

Graur avatar Sep 14 '22 11:09 Graur

@potatmen we don't need to print XMIR as PDF :) We need to render XMIR objects as formulas of phi-calculus in PDF.

yegor256 avatar Sep 14 '22 13:09 yegor256

@Graur take a look please

potatmen avatar Sep 27 '22 13:09 potatmen

@Graur Comments fixed

potatmen avatar Sep 28 '22 06:09 potatmen

@yegor256 Should we add this LatexMojo to AssembleMojo? Or we can just create a configuration parameter for maven-plugin

Graur avatar Sep 28 '22 07:09 Graur

@Graur no, this is a completely standalone mojo, just like GmiMojo

yegor256 avatar Sep 28 '22 07:09 yegor256

@yegor256 2 puzzles #2066, #2067 are still not solved.

0pdd avatar May 12 '23 12:05 0pdd

@yegor256 2 puzzles #2066, #2089 are still not solved; solved: #2067.

0pdd avatar May 25 '23 09:05 0pdd