# Tag Info

1

1ST APPROACH This page checks the page number for even/odd, to decide whether to left or right lap the chapter number. The distance from the outside edge of the chapter number to the edge of the page is preserved in this approach. \documentclass[letterpaper,twoside,openright]{memoir} \usepackage{blindtext} \usepackage{graphicx} \usepackage{etoolbox} ...

3

My answer uses the tcolorbox package for assistence with the boxing problem. Note that you should use the current version 3.12 (2014/07/29) of the package, i.e. you may have to update first. Version 1: The basic idea of the solution is to box the listing with a tcolorbox which is enlarged into the margins of the page. Here, I used a brutal enlargement ...

4

You can use ifoddpage package: \documentclass[12pt]{book} \usepackage{background} \usepackage{ifoddpage} \usepackage{kantlipsum} \backgroundsetup{ scale=1, opacity=0.3, angle=0, color=black, contents={% \checkoddpage \ifoddpage \includegraphics[width=\paperwidth]{example-image-a} \else \includegraphics[width=\paperwidth]{example-image-b} \fi } ...

3

You were almost there. \documentclass{article} \usepackage{xcolor,listings,calc} \definecolor{lstgrey}{RGB}{217, 217, 217} \definecolor{lstback}{RGB}{246, 246, 246} \newlength{\numberlengthnormal} \setlength{\numberlengthnormal}{\widthof{\fontfamily{cmtt}\selectfont 999}} \lstnewenvironment{lstcpp}[1][] {\lstset{% language = C++, tabsize=2, ...

0

In the first step add \usepackage{colortbl} to the LaTeX preamble. After that at the start of every row type this command: \rowcolor[gray]{0.95} For example: \begin{tabular}{c c } \rowcolor[gray]{0.95} { a & b}\\ \rowcolor[gray]{0.95} { c & d}\\ \end{tabular} In many journals authors use gray color for tables.

Top 50 recent answers are included