mathgen icon indicating copy to clipboard operation
mathgen copied to clipboard

Make references optional

Open AitzazImtiaz opened this issue 3 years ago • 6 comments

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.

AitzazImtiaz avatar May 27 '22 13:05 AitzazImtiaz

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.

neldredge avatar May 27 '22 21:05 neldredge

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

AitzazImtiaz avatar May 28 '22 19:05 AitzazImtiaz

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

neldredge avatar May 28 '22 19:05 neldredge

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 avatar May 28 '22 20:05 AitzazImtiaz

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

we wish to extend the result of [??] to...

AitzazImtiaz avatar May 28 '22 20:05 AitzazImtiaz

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

AitzazImtiaz avatar May 28 '22 20:05 AitzazImtiaz

@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 avatar May 28 '22 20:05 AitzazImtiaz

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 avatar May 28 '22 20:05 AitzazImtiaz

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

AitzazImtiaz avatar May 28 '22 20:05 AitzazImtiaz

@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 avatar May 28 '22 20:05 AitzazImtiaz

Output:

Unrecognized switch: --mode=view (-h will show valid options

AitzazImtiaz avatar May 28 '22 20:05 AitzazImtiaz

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.

neldredge avatar May 28 '22 21:05 neldredge

Thanks 🙏, let me recheck

AitzazImtiaz avatar May 28 '22 22:05 AitzazImtiaz