Linked Questions

4
votes
1answer
344 views

Display text on begin document [duplicate]

I'm developing my own documentclass. How can I make some text appear on the beginning of each document with this class? For now I'm working with this in the class: \newcommand{\showAtBegin}{Text} ...
87
votes
4answers
52k views

Difference between LaTeX, LaTeX2e, LaTeX3 ?

I was wondering, what is the difference between LaTeX, LaTeX2e and LaTeX3. Are the 2 higher versions available for use? I use LaTeX. How can I use the other 2 on Windows 7?
12
votes
1answer
1k views

Automate Fixed Width Page, length > some minimum length, but only as long as needed

I am trying to automate the solution proposed by egreg to How define a fixed width page, but length > some minimum length, but only as long as needed by hooking into \begin{document} and \end{...
8
votes
2answers
181 views

Define a command so that it is only active within the document environment

I would like to configure a custom command so that it only affects the document environment. Because the command changes a number of catcodes, it has to be included after the begin{document} tag in ...
4
votes
2answers
257 views

Automatically run a LaTeX3 function on the document environment

Is it possible to define a package so that it will automatically run a LaTeX3 function on the entirety of the document environment? If I define a function similar to the following: \cs_new:Npn \demo ...
3
votes
2answers
1k views

Adding \comment or \begin{comment} to \AtBeginDocument?

For Partial compilation commands/environment?, I would like to add \begin{comment} or \comment at the start of the document (so I could turn it off elsewhere in the code). So, even if in the larger ...
5
votes
2answers
1k views

Partial compilation commands/environment?

In the interest of speeding up compilation times of large documents, I got interested in partial compilation. (I'm already aware of "pre-compiling" preamble format fmt files and intend to use that as ...
8
votes
1answer
507 views

Generate automatic revision's numbering tabular

Situation I have to make a cover template for a document. At the end of the page, I have to add the revision number with other useful info like this example: \begin{tabular}{lccl} Revision 0 &...
2
votes
2answers
195 views

How to fix minted and listings hyphen alignment on my list of codes?

I managed to put both listings and minted codes in a single list of codes called LISTINGS. However, the entries of the minted package on the list of codes are shorted on the distance between the ...
4
votes
1answer
91 views

\AtBeginDocument content seems to be ignored by htlatex

It appears that the content inserted via \AtBeginDocument is being ignored by htlatex. Is there a workaround to this other than not using \AtBeginDocument? To reproduce save the MWEs below and run ...
0
votes
1answer
172 views

How to set minted listing table of contents numwidth?

I managed to change my lstlinsting numwidth with \setlength\cftlstlistingnumwidth. But when I try to do the same with minted listing, I got Undefined control sequence: \cftlistingnumwidth \...
2
votes
1answer
76 views

How to have a dynamic \cft numwidth, i.e., accordingly to the number size?

For example, when this listing example, reaches up to 10000 items (listings) on the table, the number is hidden behind the hyphen, i.e.: You can do this by either creating 10000 listings in the ...
0
votes
1answer
61 views

How to replace a command argument as #2 with something else?

I am trying to patch this macro: \xshowcmd\addcontentsline > \addcontentsline=macro: #1#2#3->\begingroup \let \label \@gobble \ifx \@currentHref \@empty \Hy@Warning {No destination for ...