# Tag Info

3

One option is to change the "opacity" for the shaded sections/subsection, and reduce the default 50% factor used to, say, a 20%: \documentclass{beamer} \usetheme{Warsaw} \setbeamertemplate{section in head/foot shaded}[default][20] \setbeamertemplate{subsection in head/foot shaded}[default][20] \begin{document} \section{Test section one} \begin{frame} ...

1

This works for me: \documentclass{article} \usepackage{listings} \usepackage{xcolor} \begin{document} \lstdefinelanguage{JavaScript}{ keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break}, keywordstyle=\color{blue}\bfseries, ndkeywords={class, export, boolean, throw, implements, ...

3

In case what you want to highlight is part of the code, my suggestion would be, not to define !* and *! as escape-to-LaTeX delimiters, but to simply define them as "invisible" delimiters that highlight their content in red, instead. That way, you don't get any discrepancy in column alignment between the normal code and the highlighted code. See my MWE below. ...

2

Here's a completely different approach that DOES allow line-wrapping, but not paragraph or page breaks. It is also forced to turn off hyphenation. It uses the censor package to create the underlining (by setting \censorruleheight and \censorruledepth), and it uses a \Longunderstack to stack the different threads at the proper spacing (based on result at ...

5

This answer will NOT wrap. Nonethless, proceeding... Here, I introduce \nunderline[]{}{}. The optional argument is the under-level for rule placement (relative to the prior placement). The first argument is the text, and the second argument is the color. The rule thickness is set with \rulethick and th relative spacing with \lunderset. Nesting is used ...

3

Another option with tikz. The technique used is similar to that of Karl, but I used escapechar key. escapechar=|, And the numbers are put as a node with overlay option so as to not disturb other things. Code: \documentclass[english,a4paper,12pt]{report} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{listings} \usepackage{changepage} ...

4

You can use the symbols defined in pifont package (see page 77, Table 254 of The Comprehensive LaTeX Symbol List). Adding the option mathescape=true to your listing environment you can write something like $\llap{\textrm{\ding{173}}}$ at the beginning of the line where you want that symbol. MWE: \documentclass[english,a4paper,12pt]{report} ...

2

(Note: there are parts of this solution that are sub-optimal, and I'm aware of that, but I'll have to fix that later. I'll remove this note when I find the time to improve things.) You can change the files theorems-ams.module and theorems-ams.inc, or better create copies as described in my answer to How to make "claim" environments look like ...

2

Your code has some mistakes that will produce errors (in particular, you declared four columns but were using five and you forgot the line changing commands): below I corrected them and fixed other aspects: \documentclass{beamer} \usepackage[beamer,customcolors]{hf-tikz} \usepackage{tabularx} \usepackage{colortbl} \newcounter{nodecount} ...

2

As you noted, it's due to CUA key bindings. Even though C-c yanks (copies) in CUA mode, if you like them you can still use those key bindings with AUCTeX. The solutions are described in a comment in cua-base.el: ;; If you really need to perform a command which starts with one of ;; the prefix keys even when the region is active, you have three options: ;; ...

4

I solved my problem. In fact, it was a bug created by the following code in my .emacs '(cua-mode t nil (cua-base)) This code aims to set Emacs to handle copy/paste actions in the same way than the rest of the system. However, it creates also the described bug.

6

listings can do that, but you have to whisper in its ear :) First, tell listings to treat backslash and tilde as "letters", thereby allowing them in identifiers. Then, before each identifier gets printed, check the first character of that identifier and apply a different style depending on that character. For convenience, I've defined keys to easily ...

Top 50 recent answers are included