Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

1

\documentclass{report} \usepackage{etoolbox} \makeatletter \patchcmd\@makechapterhead{\thechapter}{\thechapter.}{}{\fail} \patchcmd\@seccntformat{\csname the#1\endcsname}{\csname the#1\endcsname.}{}{\fail} \makeatother \begin{document} \chapter{chapter}\label{chap} \section{section}\label{sec} \ref{chap}, \ref{sec} \end{document}


0

This resets the lemma number every time you start a new frame. BTW, finding the counter names for lemma and frame was not easy. \documentclass{beamer} %\usetheme{Boadilla} \usetheme{Madrid} \usepackage{bibentry} \usepackage[linesnumbered,ruled,vlined]{algorithm2e} \setbeamertemplate{theorems}[numbered] %\usepackage[utf8]{inputenc}% not with my editor %\...


0

I would put both the lemma and the proof on one slide with overlays, and show the proof on the second subslide. \documentclass{beamer} \usetheme{Madrid} \setbeamertemplate{theorems}[numbered] \begin{document} \frame{\frametitle{Outline} \begin{lemma} If $d$ is a $a$ then it is \end{lemma} \onslide<2>{% \begin{proof} wfmkrf \end{proof} }} \end{...


2

Welcome to TeX-SE! IMHO there is no need to use two slides, \pause suffices, and if you really want the title only on the first frame, use \frametitle<1>{Outline}. \documentclass{beamer} \usetheme{Madrid} \setbeamertemplate{theorems}[numbered] \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} \begin{frame} \titlepage \end{frame} ...


1

For inserting code in LyX, use Insert > Program Listing. For more information, see Help > Embedded Objects.


2

You can do this: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{enumitem} \newtheorem{assumption}{Assumption} \begin{document} \begin{assumption}[The Assumptions]\label{assumption1} We have the following four assumptions. \begin{enumerate}[label={\textbf{Part~\Alph*:}}, ref={assumption~\Alph*}] \item \label{assump-A}%...


1

that is expected as wrapfigure is a non floating environment so floating figures can float past it. If it is still that way in the final document version after all other edits done, you can fix as follows: put \addtocounter{figure}{1} in the wrapfig before the caption and \addtocounter{figure}{-2} in the figure just before the caption.


4

Here are some quick and dirty tricks. \documentclass[12pt]{arabbook} \usepackage{fancyhdr} \usepackage{arabtex} \usepackage{amssymb} \usepackage{amsmath} \usepackage{arqam} \usepackage{graphicx} \usepackage{pstricks} \textwidth= 15truecm % \textheight= 22.27truecm % \hoffset= -1.5 cm%truecm % \voffset= -1.5 cm%truecm % \pagestyle{fancy} \renewcommand{\...


2

I will assume that you're using a document class that's compatible with the amsmath package. (Fortunately, most document classes satisfy this criterion.) I suggest you use the \numberwithin macro of the amsmath package to set the numbering style and the \tag macro to override the default numbering system for selected equations. \documentclass{article} % or ...


1

How can I tell LaTeX to number the code the way I tried above? Thanks in advance! Some nitpicking: You can't "tell" LaTeX to number (in whatsoever ways) the code because LaTeX must not modify (in whatsoever ways) the .tex-source code of a document while "numbering code" can be subsumed under "modifying code". But you can "tell" LaTeX to number in the way ...


4

Edit If for some reason one need to use arabtex, here is another solution with pdflatex (arabi and arabtex): Note i think one need to add this \renewcommand*\l@section{\@dottedtocline{1}{1em}{1.5em}} to correctly set table of contents \documentclass[12pt]{arabbook} %--------------------------------------------- \usepackage[LAE,T1]{fontenc}...


11

The fmtcount package provides a simple way to get the binary numbers. To begin counting at zero you need to set the section counter initially to -1. You can also pad the values with zeroes if you wish. \documentclass{article} \usepackage{fmtcount} \renewcommand{\thesection}{\binary{section}.} \setcounter{section}{-1}% To begin at 0 \begin{document} \...


8

Sure. \documentclass{article} \usepackage{expl3} \ExplSyntaxOn \cs_set:Npn \thesection {\int_to_bin:n{\value{section}-1}} \ExplSyntaxOff \begin{document} \section{one} \section{two} \section{three} \end{document} Note that I only changed the displayed number here, so the section counter still has the value 1 for the first section, we only print ...


1

Here is a MWE which gives table tiles as A.number. This uses the caption package to add a custom label format called AppendixTables in the example below. If you want to change the title for all your appendix Tables it can be done by changing the A.#2 in the label format. #1 (not shown) would be the text from the \caption{} command in the table if you wanted ...


2

Use \refstepcounter instead of \stepcounter, so that a proper value to be referenced is set. On the other hand, I'd prefer a more abstract approach: \documentclass{article} \usepackage{amsmath,amsthm} \theoremstyle{remark} \newtheorem{exer}{Exercise} \newtheoremstyle{endchapterexer} {0pt} % ABOVESPACE {0pt} % BELOWSPACE {\upshape} % ...


2

You have two possibilities to fix the issue you encountered: manipulate the table counter put both panels in the same tabularx environment and manually add some vertical white space Here is an MWE for the first possibility. I have commented out the table environment and added \addtocounter{table}{-1} after the caption command. \documentclass[12pt]{...


0

try \CTEXsetup[number=\Roman{chapter}]{chapter} if the appendix consists of chapters \appendix \CTEXsetup[number=\Roman{chapter}]{chapter} \include{chap/encl1} \include{chap/encl2} \include{chap/encl3} \include{chap/encl4} \include{chap/encl5}


2

Two things: You should load hyperef as the last package The code you are using is a modification of the subequations code from amsmath.sty, so you also need a mimic the code hyperef has specific to subequations \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm} \usepackage[linktoc=page,...


Top 50 recent answers are included