New answers tagged

3

Since you want to have two different layouts for the same thing - \chapters - you'll have to insert content into the ToC at specific times so the formatting occurs dynamically. Below I've patched \frontmatter and \mainmatter to do exactly that. Each command inserts something specific into the ToC. \frontmatter updates \cftchapterfont by appending to it a ...


3

This is merely a suggestion for a different input. bmatrix instead of array, no \left, \right, a macro for the differential d. \documentclass[12pt]{scrbook}% \usepackage[T1]{fontenc} \usepackage{amsmath} \newcommand\diff{\mathop{}\!\mathrm{d}} \begin{document} $\mathrm{e}^t + p_1$ \[ \renewcommand*{\arraystretch}{1.5} \begin{bmatrix} \frac{\diff}{\...


8

Use the option the KOMA-bundle provides to get the old font commands back. The option was considered deprecated when implemented, hence you are still getting a warning for using it (once). \documentclass[enabledeprecatedfontcommands]{scrartcl} \usepackage{tex4ht} \begin{document} \it Wombat \bf Capybara \end{document} It should be mentioned though, that ...


6

As you may know, old-style font commands like \rm and \it are deprecated in LaTeX. The answer at Does it matter if I use \textit or \it, \bfseries or \bf, etc explains some of the pitfalls of the old-font commands. The more modern approach uses the notions of font family, series, and shape as three orthogonal vectors of a font's definition. Examples of ...


2

All \rm are to be changed to \mathrm, for example {\rm d} should be \textrm{d} (oberve the different position of {...}) and all \it's removed, because they are \mathit in math mode and \mathit is a presumption in this mode for letters.


2

I suggest using aspell as your dictionary. It's a TeX-aware commandline spell checker. If you write a macro \newcommand[1]{\foreign}{\emph{#1}} and add add-tex-cmmand foreign p to your aspell.conf then aspell will ignore any words wrapped in \foreign{}. Then you can spell check your document with aspell -t -c myfile.tex in your own language and replace the ...


1

Rather then \normalfont which doesn't work correctly as @Ulrike said you can use \upshape to change font shape for page numbering \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{russian} \setmainfont{CMU Serif} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \renewcommand{\thepage}{\upshape\arabic{page}} \begin{document} ...



Top 50 recent answers are included