2
votes
2answers
95 views

How to properly modify certain behaviors of a document class?

This is a real example of what I'm trying to understand by this question: I'm rewriting my CV using europecv and one behavior that I don't like, is titles of personal information: Lets say, I want ...
3
votes
1answer
114 views

Create command not using adjustbox package for inserting image

I am creating a test question using exam.cls and I think it would be different if i will include image in the question. But i dont really know how should I insert it. i found a solution code that ...
5
votes
1answer
275 views

Where should I define new command globally?

I'd like to define a command \alert{} by \newcommand{\alert}[1]{\textcolor{red}{#1}} in a way that I could use it on every new file. I was thinking to define it on some cls file (amsart for ...
3
votes
1answer
73 views

Custom document classes with embedable external macros?

I'm fairly new to LaTeX so I don't really know much yet. Is there a way I can make a custom document class that embeds an external document containing custom macros? For example, I have right now a ...
5
votes
3answers
308 views

Is it OK to define a macro before document class?

\def\A{E=mc^2} \def\B{% I can find a tool to convert PDF to EPS in my neither bathroom nor kitchen.} \documentclass{article} \begin{document} $\A$ is my favourite equation and the following is my ...
49
votes
6answers
2k views

Which document class is being used?

Is there a way to programmatically determine which document class is in effect? I'd like to be able to write conditional macros that behave differently depending on which document class is currently ...