Tag Info

New answers tagged

3

One approach without any package except xcolor for the shaded block: \documentclass[a4paper]{article} \usepackage[margin=1cm]{geometry} % little margin for MWE \usepackage{lipsum} % dummy text for MWE \usepackage{xcolor} % for shaded gray block \newcounter{para}[section]\setcounter{para}{0} \def\block#1{% \refstepcounter{para} \bigskip ...


22

Here's an implementation with amsthm and tcolorbox: \documentclass{article} \usepackage{lipsum} % just for the example \usepackage{amsthm,tcolorbox} \newtheoremstyle{block} {\topsep}% space above {\topsep}% space below {\itshape}% body font {}% indent {\bfseries}% head font {}% punctuation {1em}% space between head and body {(\thmnumber{#2})} ...


4

Option allcolors was added to hyperref in version 2011-02-05 v6.82a. Therefore you need to update hyperref. TeX distributions from Linux distributions are often very old and programs like tlmgr are disabled to avoid interference with the Linux packaging system. But a recent TeXLive can be installed in parallel, e.g. see How to install “vanilla” TeXLive on ...


4

If you want to create a TeX Live package, you need to do the following steps. I assume here that you are not shipping any binaries, but only files in a the texmf hierarchy. Also assume that the package is called foo: prepare a TDS tree of the package, say in foo, that is, you have foo/tex, foo/fonts etc. write a tlpobj file in foo/tlpkg/tlpobj/foo.tlpobj ...


3

As you seem to be concerned with \section, I'll make a couple of examples. The memoir class allows for two optional arguments to \section, one for the TOC entry and the other one for the header. In the KOMA-script classes \section has just one optional argument which should contain a list of key=value pairs (it also allows just the short version of the ...



Top 50 recent answers are included