I would to know for what is used the code below (Last lines code) in arsclassica.sty. Also I would to know why in arsclassica-settings there are some repetitions of \lstset is not the same thing put all the options in one \lstset? And why, for examples this string: \lstset{moredelim={[is][\ttfamily]{!?}{?!}}} is repeated?

Listings code


Last lines code

  • 1
    @MartinSchröder Schröder You are wrong ! that code is in arsclassica.sty, you can see with your eyes that is in that package ! look at the last seven lines of codes: ftp.uniroma2.it/TeX/macros/latex/contrib/arsclassica/… And if you look into the user manual of ArsClassica you can see that isn't commented: ftp.uniroma2.it/TeX/macros/latex/contrib/arsclassica/…. If you read my question is not about the Listings package, but about the programming style of the settings of listings in ArsClassica. – Aurelius Sep 24 '12 at 17:42
  • Sorry, I was wrong. I was looking for your first lines of code. %-{ – Martin Schröder Sep 24 '12 at 17:53
  • @MartinSchröder On purpose, I have write "Last lines code". However does not matter ! :) – Aurelius Sep 24 '12 at 17:58

The second code block defines a macro that if executed sets the heading for the table for contents to be based on \chapter rather than \section. It then executes that code if the main class is scrrept or scrbook,

In most key=value setting setups calling the command multiple times or using one command with a comma separated list is a matter of style. The multiple command version makes it easier to comment out some of the settings when debugging perhaps. I would guess the duplicated setting is a harmless cut and paste error while setting up the package.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.