# Tag Info

6

The following will display what you want, but only allow you to refer to all four together, but not individually like (4a) or (4c). \documentclass{article} \usepackage{amsmath} \begin{document} First put in a normal equation $$E = mc^2$$ Then the weird one: u(0)=u_1; \qquad \phi(0)=-\phi_1; \qquad u(L)=u_2;...

6

The last question how to use the section counter in conjunction with the equation counter: \renewcommand{\theequation}{\arabic{section}.\arabic{equation}} will print the equation number with the section number as prefix only, not the full nine yards with chapter.section.X. Now the more generic answer about the \thefoo - like commands. In principle such ...

6

You're using wrong instructions: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{amsthm} \usepackage{amsmath,amssymb,amsfonts} \theoremstyle{definition} \newtheorem{definition}{Definition}[section] % definitions are numbered according to sections \newtheorem{theorem}[definition]{Theorem} % theorems share the numbering with definitions ...

5

You can update the way the enumerate environment works using enumitem's \setlist functionality: \documentclass{article} \usepackage{enumitem} \setlist[enumerate,2]{label={\theenumi.\arabic*.},ref={\theenumi.\arabic*}} \setlist[enumerate,3]{label={\theenumii.\arabic*.},ref={\theenumii.\arabic*}} \begin{document} \begin{enumerate} \item An item \...

4

I think this is waht you want, obtained with the enumitem package: \documentclass{article} \newcommand{\np}{\newpage} \usepackage[margin=3.5cm]{geometry} \usepackage{enumitem} \title{DOCUMENT TITLE} \author{\textbf{\Large MY NAME}\\[3mm] \textbf{\Large MY NUMBER}} \begin{document} \maketitle \thispagestyle{empty} \np \textbf{Question 1} \begin{...

4

The key is the counter secnumdepth (i.e., section numbering depth), which defaults to 3 in the article class. To get paragraphs numbered and counted (in addition to sections, subsections, and subsubsections), just increase the default value of secnumdepth to 4. \documentclass{article} \setcounter{secnumdepth}{4} \begin{document} \section{Section} \...

3

With this approach, one must first define labels in the desired numbering sequence, using (as an example) \defineitems{A B C {pre A}}. This means the first item defined (associated with requirement 1) has the label "A" ... the fourth item defined (Requirement 4) has the label "pre A" (the labels must not have spaces, unless grouped). Then one uses a ...

3

One possibility is a two-step approach, separating the writing and printing of the requirements. \documentclass{article} \usepackage{etoolbox} \newcounter{myrequirementcounter} \setcounter{myrequirementcounter}{0} \newcommand\newrequirement[2]{% \stepcounter{myrequirementcounter}% \csedef{myrequirement#1}{\noexpand\item[Req. \...

3

I'm not sure, but I think you want \documentclass[a4paper,dvipsnames]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsmath} \usepackage[colorlinks=true]{hyperref} \hypersetup{linkcolor=black} \usepackage{cleveref} \usepackage{chngcntr} \counterwithin*{equation}{section} \counterwithin*{equation}{subsection} \counterwithin*{...

3


3

scrartcl is a KOMA-Script class. So you can use \newcommand{\fakesubsection}[1]{% \subsectionmark{#1}% add subsection mark (header) \addsubsectiontocentry{}{#1}% add as subsection to ToC } to add this text as subsection without number to the table of contents. Update using scrreprt which provides chapters (based on the MWE and the informations in ...

3

Here's one attempt at producing the desired output. The main tool used is thmtools together with amsthm. For most of the configuration options you can see the thmtools manual. \documentclass{article} \usepackage{amsmath, amssymb, amsthm} \usepackage{thmtools} \declaretheoremstyle[% spaceabove=3pt,spacebelow=3pt,% headfont=\normalfont\bfseries,% ...

2

Just use \stepcounter{section} before the 2nd section that should be numbered. \refstepcounter{section} is also possible, but a label is useless here, so \refstepcounter is not really needed! Also possible: \setcounter{section}{2} \documentclass{book} \begin{document} \tableofcontents \chapter{Foo} \section{First section 1.1} \stepcounter{section} \...

2

You can build a protected number test into the label. Here, \padz adds a zero if the enumi count is 15 or less. \documentclass{scrartcl} \usepackage{moreenum} \usepackage{enumitem} \def\padz{\ifnum\value{enumi}>15\relax\else0\fi} \begin{document} \begin{enumerate}[label={\ttfamily0x\protect\padz\enumhex*}] \item Thou shalt not follow the ...

2

The example for the table continous counting works just by chance since \ifthenelse requires three arguments, not just two of them. \ifthenelse{test condition}{true branch}{false branch} Omitting the false branch for the first two examples must fail since it tries to read the next \ifthenelse etc. For the last one LaTeX assumes that the last argument is ...

2

Since you seem to want the same number, you don't really need \label and \ref. It's easier defining a new environment based on a theorem-like one. I also provided a new \hypref command for referencing to hypotheses. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{ntheorem,hyperref} \theoremseparator{:} \newtheorem{hypx}{Hypothesis} \...

2


2


1

Apart from the 'usefulness' of using numbers as part of the environment name (or using l1 as label name), there are some issues here: Just use one \newtheorem for each theorem type, i.e. a Lema or a Theorem or Example etc. Reusing \newtheorem for each new lema would lead to environments all being numbered as 1 or 1.1, etc. -- this is awkward. I don't think ...

1

Since the four short equations would appear to form some kind of group, what is the point of creating fake separate labels? Either treat them as a single entity (with a single equation number), or assign individual labels -- (1a), (1b), etc -- to each one of them. \documentclass{article} \usepackage{amsmath} % for 'subequations' environment \begin{...

1

Is it something like this you want? I define a tabequation environment: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern}% \usepackage{array, tabularx, mathtools} \usepackage[showframe]{geometry} \newcolumntype{E}[1]{>{\equation}>{\hsize=#1\hsize}X<{\endequation}} \newcolumntype{Y}{>{\equation}X&...

1

One way is to redefine \thesubfigure as counter output, having \thefigure(\alph{subfigure}), but using \DeclareCaptionLabelFormat and \captionsetup is a cleaner and more flexibel way, in my point of view. Don't forget to call \captionsetup[sub]{labelformat=...}. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{caption} \...

1


1


1

To separate your footnotes from the default structure I would consider the package manyfoot, where you can have several series of footnotes. But, now to the answer of the question. As I understand you want the same series as the default footnotes. You have redefined \@makefntext which is used by \footnote to set the text in the footnote. To have your own ...

1

Here is a solution with tabularx. I define three new column types: Y, which is a simple X column with cells entering and leaving the equation environment. E{#1} is a >{\hsize=#1\hsize}X column with an equation environment. P{#1} is a `p{#1\linewidth} column also with an equation environment. I defined a tabequations environment, which requires ...

1

You can manipulate the order in which the equations appear by using separate minipages for each. Vertical alignment of equations can be achieved using a \vphantom{<stuff>}. This sets a zero-width box with the height of <stuff>. \documentclass{article} \usepackage[margin=1in]{geometry}% Just for this example \usepackage{amsmath} \begin{...

1

You can change the header just like you change the footer; the command is \heading{<left>}{<center>}{<right>} The standard setting has the section name as <center>. The commands are described at the end of section 3 in the manual of papertex.

1

The easiest way to remove the chapter.table numbering style is to use \counterwithout{table}{chapter} after having chngcntr package loaded. \documentclass{scrreprt} \usepackage{chngcntr} \begin{document} \chapter*{Foo starred} \begin{table} \caption{Foo table} \end{table} \counterwithout{table}{chapter} \begin{table} \caption{Foo table with no ...

1

Your “Question 1” is indented and you probably don't want it. \documentclass{article} \usepackage[margin=3.5cm]{geometry} \usepackage{enumitem} \newcommand{\question}[1]{% \par\noindent\textbf{Question #1}\par } \begin{document} \question{1} \begin{enumerate}[label=(\alph*), leftmargin =*,align=left] \item \begin{verbatim} M<-matrix(c(1,3,5,2,4,6), ...

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