Open schnorr opened 8 years ago
I think all .def should be kept in separate files, since they are often mutually exclusive. The .cls should be in separate files, since they correspond to different documents and shouldn't have much in common. Finally, there are the abnt files, which I never touched so I have no idea if they should be merged or not.
OK, let's sum up what are the files we have:
Some of these files are no longer needed:
Files that I THINK we do not need at all
Files I think we COULD move around easily:
Files that I think we could move, but not sure if moving them into the .cls is the best option:
The reason we have so many files is 'cause, at the time, Marcelo split the definitions into two different files and I liked the strategy and did the same for the others.
IMHO having a big .cls full of \if\else\fi is bad , and having the user who ain't necessarily some tex guru having to copy all these files to their project is also bad.
So, here I'm not sure. What would be better -- maintainance simplicity (file-isolated commits, easier to notice changes, simple files to edit, in case we need to change the name of something...) or more simplicity of use (having the user copy a smaller amount of files) ?
Files we could, but I don't think we should move around:
Files I don't know is we can move around:
Files I think we could get rid of, but doing so would require major changes
Problem is, every time ABNT wants some more cash, they'll change some tiny detail somewhere, sell the new, updated book to every university in the country, and all the bib styles will have to be updated to conform. Using abntex2 bib style makes sure that we don't need to duplicate the work they would have already done -- and if we do some change to conform to updates in the norm, we can submit and contribute back to the project.
All would be simples if tex supported some kind of .jar with all the files needed, so we could just zip it and tell users "drop this in your folder, use this documentclass and then forget about it". Best we could do is to give users a .zip and a makefile that install things on their home texmf -- then they would not have the files laying around.
Kassick.
PS. This is a TeX class for a Brazilian university. For (mostly) brazilian students. Maintainers are (for what I know) all brazilians. OK that we worry about foreign students who'll be using the class, but why oh why are we discussing this in english? (I'm not opposed, and I may just as well be the one who began answering in english ... but should we keep it or are we just being silly?)
Em ter, 3 de mai de 2016 às 10:44, Marcelo Garlet Millani < notifications@github.com> escreveu:
I think all .def should be kept in separate files, since they are often mutually exclusive. The .cls should be in separate files, since they correspond to different documents and shouldn't have much in common. Finally, there are the abnt files, which I never touched so I have no idea if they should be merged or not.
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/schnorr/iiufrgs/issues/35#issuecomment-216531535
PS. This is a TeX class for a Brazilian university. For (mostly) brazilian students. Maintainers are (for what I know) all brazilians. OK that we worry about foreign students who'll be using the class, but why oh why are we discussing this in english? (I'm not opposed, and I may just as well be the one who began answering in english ... but should we keep it or are we just being silly?)
Também acho que não faz muito sentido discutirmos em inglês. Acho que comecei a commitar em inglês por costume, e daí resolvi fazer o mesmo para as issues. Embora manter as discussões em inglês ajude estrangeiros, isso atrapalha brasileiros que não falam inglês (em vários cursos não é comum saber inglês).
Some of these files are no longer needed:
- iileter.cls -- WHO SENDS LETTERS NOWADAYS!?
- sa.cls -- Do we still need the class for Semana Acadêmica? What are the requisites for the SA paper? Is threre one still?
- varilogo.eps -- used in the iiletter.cls
Normas para cartas ou para SEMAC estão definidas em algum lugar? E o estilo de cartas não é usado para certificados ou documentos oficiais (e.g., carta de aceitação, algum pedido que deve ser assinado)? Se a gente tivesse alguma forma de saber que ninguém usa, seria tudo bem remover.
Files I think we COULD move around easily:
- iidefs.sty just holds defs for the name of the institution, which we do not usually change. Whoever MUST change them should not be too whiny about editting the iiufrgs.cls
Se o arquivo contém apenas definições, por que que ele não é um .def?
What would be better -- maintainance simplicity (file-isolated commits, easier to notice changes, simple files to edit, in case we need to change the name of something...) or more simplicity of use (having the user copy a smaller amount of files) ?
Como a instalação é feita com um comando make, acho que o número de arquivos é irrelevante para o usuário. É melhor manter as definições em arquivos separados (um arquivo apenas com todas as definições seria aceitável, mas não vejo vantagem), pois esses arquivos não devem ter nada mais do que definições. Nada de escolher margens, mudar estilo de alguma coisa ou qualquer outra hack específica para um caso. Os .cls podem ter esse tipo de coisa, mas os .def não.
Just adding my two centavos:
I support "merging" the files, as suggested by kassick, such that for a thesis, one only has to copy two files (Latex class + Bibtex style) to the thesis directory.
The current installation system based on a Makefile has some serious disadvantages, such as:
So what can be done from a practical point of view: 1) Merging the *.def and iidefs.sty into iiufrgs.sty: This should be straightforward? 2) the bibliography style: this will be much harder; maybe we can do something based on biblatex?
I support "merging" the files, as suggested by kassick, such that for a thesis, one only has to copy two files (Latex class + Bibtex style) to the thesis directory.
Copying the files to the thesis directory is the dirty way of installing. If you want dirty, you get dirty. If it is hard to install the class in the proper way, then we should fix this first. I would suggest to mimic the texmf directory structure. So instead of putting everything in inputs/
, we could have
bibtex/bst/abntex2-alf.bst
tex/latex/iiufrgs/tese.def
tex/latex/iiufrgs/iiufrgs.cls
...
Then, manually installing the classes would be just a matter of copying two or three folders to the correct location. I think MikTeX uses the same structure, so it should help windows users as well.
As for the makefile, I don't know any alternative in this case. We could provide install scripts for other systems, but I don't use windows nor mac so I can't even test them. Maybe fixing #11 could help.
Keeping the .def in separate files has the advantage that people can create their own files, and they won't be overwritten by an update. If we merge everything, the user will have to manually apply the update. An alternative would be to add a customdef=file
option for custom .def files.
Hi, as it is today there is a bunch of files in the iiufrgs package. Perhaps we should merge them to get a minimal set of required files. What do you think about this?