The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

2

Redefine \H@item instead of \item. That should work even if hyperref is loaded too early: \documentclass[12pt]{article} \errorcontextlines 10000 \usepackage{hyperref} \usepackage[shortlabels]{enumitem} \makeatletter \def\renewenumerateoptionalitem{% \let\itemenumerateoptional\H@item \renewcommand{\H@item}[1][]{% \refstepcounter{...


2

There are many automation tools which can be split into two categories: Automatically determine which commands are necessary latexmk ltx2any rubber ... User gives list of commands arara quick compile from texstudio (user can configure in preferences which commands are run) ...


0

What you need is arara. Look at documentation: https://ctan.org/pkg/arara You can allways put compiling commands into "options" directive. I not entirely sure about the makeindex, but there is a rule to "compile" with it and I am pretty sure that those options you are using will be within arara automatic.


2

With these keys it is sometimes hard to guess at which level one is, so I suggest to use \documentclass{scrbook} \usepackage{enumitem} \usepackage{xspace} \newcounter{descriptcount} \newlist{enumdescript}{description}{1} \def\renewitem{% \setcounter{descriptcount}{0}% \renewcommand*\thedescriptcount{\arabic{descriptcount}}% \let\olditem\item% \...


3

Do similarly. Minimal file: \documentclass[a4paper,12pt]{article} \pdfmapfile{=tengwarscript.map} \usepackage[annatar]{tengwarscript} \usepackage{tikz} \usetikzlibrary{decorations.text} \tikzset{decoration={ text effects along path, text={\Ttinco, \Tparma, \Tcalma, \Tquesse, \Tando, \Tumbar, \Tanga, \Tungwe, \Tthuule, \Tformen, \Taha, \Thwesta, \Tanto, \...


2

You can do the following: In your main.tex change the \setversion macro to: \newcommand*\checkversion {% \begingroup \def\tempa{student}% \expandafter \endgroup \ifx\tempa\myversion \setbool{studentversion}{true}% \else \begingroup \def\tempa{teacher}% \expandafter \endgroup \ifx\tempa\myversion ...


2

There are a lot of words that behave the same or similar. These words can be found under Options > Options Interface > Highlighting: ... > Keywords which opens the Keywords.ini file. At the very end of the file you find the KEYWORD_GROUPs "Special" and "Special+" with the corresponding settings for highlighting. If you don't need/want this ...


3

I made two files File estenmain.tex \documentclass{article} \begin{document} \input{estensecondary} \end{document} File estensecondary.tex % !TEX root = estenmain.tex Hello world. Then clicking “Typeset” in the window of the second file, the root file is compiled. The “magic line” can be added with a choice from the menu “Macros > Root”. A box for ...


5

You could try something like this. \newcommand{\printversion}[1]{ \includegraphics[width=whatever]{#1.bmp} } \renewcommand{\printversion}[1]{ \includegraphics[width=whatever]{#1.pdf} } Then wherever you wanted to include the file you would call \printversion{filename_without_extension} and it would print one of the two. Just comment out the \...


Top 50 recent answers are included