Tag Info

Hot answers tagged

7

Here a partial solution Update: New solution this is (a new package baseline.sty) \NeedsTeXFormat{LaTeX2e}% \ProvidesPackage{baseline}% \edef\mtf@size{\f@size} \edef\mtf@baselineskip{\f@baselineskip} \renewcommand\normalsize{% \@setfontsize\normalsize\mtf@size\mtf@baselineskip \abovedisplayskip \mtf@baselineskip \abovedisplayshortskip ...


4

Without TikZ. Still far from perfect though. \documentclass{memoir} \usepackage[paperwidth=10.5cm,paperheight=15.5cm,headheight=0.5in]{geometry} \usepackage{xcolor} \usepackage[explicit]{titlesec} \definecolor{sec}{HTML}{DD5C14} \definecolor{band}{HTML}{EE9C52} \titleformat{\section}[hang]{\sffamily\Huge\bfseries}{}{0.5ex}% ...


3

You got three options depending on what changes to the layout you maybe want to make later: 1. Change only the title text In this case define \newcommand{\prayername}{Prayer} \newcommand{\practrefname}{Practical refelctions} and use them withe the desired sectioning command, e.g. \chapter{My Chapter (Way 1)} Text \section{Normal Section} Text ...


3

The star form of \section generates a section without number. Since the subsection number usually is build with the section number, \thesubsection needs to be redefined: \documentclass{article} \renewcommand*{\thesubsection}{\Alph{subsection}} \begin{document} \section*{Unnumbered section} \subsection{First numbered subsection} \subsection{Second numbered ...


3

in \OriginalSection% \everypar you are passing \everypar as the argument to the original section. You can do as below to set \everpar after the section argument has been read. Need to work a bit harder if you need star forms and optional arguments of \section. It really is not supported to set \everypar like this lots of things that use paragraph ...


3

Sorry about the late answer. I modify the code from your question to handle the case of a part with no sections: the trick is to move from the section style to the part style the code which updates the global token register with the tree data. \documentclass[12pt,oneside, tikz, ignorerest=false]{standalone} \usepackage{tikz} \usetikzlibrary{mindmap} ...


2

Here's one option: \documentclass{book} \usepackage[T1]{fontenc} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{lipsum} \usepackage{xcolor} \definecolor{ultramarine}{RGB}{0,45,97} \definecolor{mybluei}{RGB}{0,173,239} \usetikzlibrary{calc} \pagestyle{plain} \newcounter{chapshift} \addtocounter{chapshift}{-1} \newcommand\BoxColor{ultramarine} ...


2

\documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{arabic} \newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Arabic Typesetting} \usepackage{titlesec} \usepackage{lipsum} \titleformat{\section} [block]{\normalfont\bfseries\Large}{\rlap{\thesection}}{0em} ...


2

Since the class already redefines \@makechapterhead, you need to step the chapshift counter there: \documentclass{book} \usepackage{geometry} \usepackage[demo]{graphicx} \usepackage{lipsum} \usepackage{tikz} \usepackage{xcolor} \definecolor{ocre}{RGB}{243,102,25} \usepackage{calc} \makeatletter \newcommand{\thechapterimage}{}% ...



Only top voted, non community-wiki answers of a minimum length are eligible