Tag Info

New answers tagged

2

The book class defines the \if@mainmatter conditional. So \if@mainmatter <we are in the main matter> \else <we aren't in the main matter> \fi is the scheme for the code you need. For instance \def\@LLview{% \if@mainmatter \pagestyle{LL}% \else \pagestyle{plain}% \fi } This indentation style is not mandatory, but I find it ...


0

In the case of my stackengine package (and every developer's case will vary), in version 1.0, I stored default stacking gaps in lengths, rather than in macros. Since lengths are fixed in machine units at the time of their definition, this had the unintended behavior that if I changed font size (e.g., went to \Large, for example) after setting the stacking ...


5

You haven't given much context, but perhaps \DeclareOption{some}{\AtEndOfPackage{\mymacro}}


5

If I understand the question, then: \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{MyPackage}[2005/01/22] \def\dotocbind{} \DeclareOption{connectbibliography}{\def\dotocbind{\RequirePackage{tocbind}}} \ProcessOptions\relax \dotocbind \RequirePackage{fancyhdr} \endinput


6

The error \RequirePackage or \LoadClass in Options Section. means that you have these commands between \DeclareOption and \ProcessOptions which is not allowed. Specifically in this case you declare \DeclareOption{a4}{ \geometry{ top=2cm, %поле сверху bottom=2.5cm, %поле снизу left=2.5cm, %поле справа right=2cm} ...


11

In an ideal world, it's not supposed to happen. If the font is OML encoded then it should have \leftharpoonup and if it doesn't have \leftharpoonup then it should be in a different encoding. But the world isn't always ideal, arbitrarily pulling in the characters from somewhere else is a bit, well, arbitrary, and declaring a new encoding OML2 or whatever and ...


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 ...


24

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 ...



Top 50 recent answers are included