neldredge / mathgen

Generate random nonsense math papers
https://thatsmathematics.com/mathgen/
GNU General Public License v2.0
561 stars 72 forks source link

Make references optional #11

Open AitzazImtiaz opened 2 years ago

AitzazImtiaz commented 2 years ago

Is it possible that when I run mathgen, I can pass an instruction to add no reference, It is really annoying to do all that manually when the reference does not make sense in the first place.

neldredge commented 2 years ago

There isn't currently an option to do this. You could do it by going through sciarticle.in and scirules.in, and editing out all uses of CITATION and NOCITATION. Many of the sentences use a citation like a noun, though, so you would have to rewrite them into something that would still be grammatical, or remove them and optionally replace them with some different sentences.

AitzazImtiaz commented 2 years ago

Hey sorry on passing it late, I need no reference section at all, will this be possible by cutting out the code?

neldredge commented 2 years ago

I'm not sure if bibtex will complain about having no citations. You might need to delete the lines that generate the bibliography, the four lines at https://github.com/neldredge/mathgen/blob/12f5e6056fd60fcfff530da8ffda846ee15f9549/sciarticle.in#L343-L346 And then possibly stop bibtex from running at all, by deleting https://github.com/neldredge/mathgen/blob/12f5e6056fd60fcfff530da8ffda846ee15f9549/mathgen.pl#L358

AitzazImtiaz commented 2 years ago

Thanks, oh my god! I started cutting many things, but although it will not generate bibtex file, there are on-line citations, what about them?

AitzazImtiaz commented 2 years ago

Like, if I cut that, a possible output would be

we wish to extend the result of [??] to...
AitzazImtiaz commented 2 years ago

This means I think it is not possible to cut out references, I should drop out of Schwarzman School of Computer Science😫

AitzazImtiaz commented 2 years ago

@neldredge Sorry I am spamming lol, if refrences become optional, scibook will be hard to be identified as computer generated, the only game is references, if anyone see the reference they would know it's a gibberish, but if we skip reference, it will be hard to track by a average person that this is generated gibberish.

AitzazImtiaz commented 2 years ago

Hey @neldredge , it's important, Can you try this code from my fork? Sorry I don't have a Linux nor equipment on windows, I would be heavily in debt to you for this: https://GitHub.com/AitzazImtiaz/mathgen Is this code working and not generating citations on book and article, or else it is not running at all?

AitzazImtiaz commented 2 years ago

It will be highly appreciated if you could run and test that code :D

AitzazImtiaz commented 2 years ago

@neldredge Yea, it doesn't works, my friend tested, but dude, he tested yours as well, he got the output:

$ perl -I ./mathgen.pl --mode=view --author="Mr Beast" --viewer=xpdf

This output is received on my fork as well as your repository.

AitzazImtiaz commented 2 years ago

Output:

Unrecognized switch: --mode=view (-h will show valid options
neldredge commented 2 years ago

You have a typo in the command line; you're missing the argument to -I. To search the current directory for modules, you need -I . so make it

perl -I . ./mathgen.pl --mode=view --author="Mr Beast" --viewer=xpdf

I tried your fork. I think you accidentally deleted the closing brace of TITLEBLOCK_ARTICLE. There are also some rules that you deleted without removing all uses of them, e.g. LATEX_FOOTER, and I think there is still at least one use of CITATION.

AitzazImtiaz commented 2 years ago

Thanks 🙏, let me recheck