Tag Info

Hot answers tagged

9

The \newtheorem command has two mutually exclusive optional arguments, their meaning depending on the position: \newtheorem{foo}{Foo} defines the environment foo, a counter named foo and entitles it Foo \newtheorem{foo}[otherfoo]{Foo} defines the environment foo, uses (shares) the already existing counter otherfoo and the title Foo ...


4

You can set your counters to whatever you want with the command \setcounter{}{}. % arara: pdflatex \documentclass{article} \usepackage{titlesec} \usepackage{xcolor} \usepackage{blindtext} \newcommand{\hsp}{\hspace{20pt}} %%% option 1 %\usepackage[T1]{fontenc} %\usepackage{lmodern} %\titleformat{\section}[hang]{\huge\bfseries}{Exercice ...


4

There are two ways: Use the counter method with enumitem and manually add a start=... to the next enumeration Use the enumitem package and define the inner list as a series innerlist (the name is rather arbitrary) and useresume=innerlistin the continued (outside ofmulticols` environment) list. This is the better way, in my point of view (see example at ...


4

Here's a solution without enumitem. \theenumii does not produce a number so you cannot use it to set the counter. Instead, you need to use \value{enumii} which always gives the value of the counter i.e. as a number. \documentclass{article} \usepackage{multicol} \begin{document} \newcounter{stoppedhere} \begin{enumerate} % <- outer list ...


2

You can use the caption package to define an unnumbered label format: \documentclass{article} \usepackage{caption} \usepackage{float} \floatstyle{ruled} \newfloat{afloat}{t!}{log} \newcommand\afloatname{Algorithm} \floatname{afloat}{\afloatname} \usepackage{algorithm} \usepackage{algpseudocode} \DeclareCaptionLabelFormat{unnumbered}{#1} ...


1

Package float without package caption Package defines the macro \fnum@<float>, which sets the float name and its number. It can be redefined to contain the name only. The numbers in the list of algorithms can be removed by temporarily disabling \numberline: \documentclass{article} \usepackage{float} \floatstyle{ruled} \newfloat{afloat}{t!}{loa}% The ...


1

The exercise package offers the command \renewcounter{<counter>}[<resetcounter>] to modify the behaviour of predefined counters. So you need to add \renewcounter{Exercise}[section] to your preamble.



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