New answers tagged

1

Immediately after \chapter*{Introduction Générale}, issue \renewcommand{\thesection}{\arabic{section}} Then, immediately after your second \chapter{<title>}, issue \renewcommand{\thesection}{\thechapter.\arabic{section}} This should work regardless of the document class you're using.


2

Here is a solution Notes The solution use (la)TeX loop. File names changed 1_1_1 -->1+1+1 (this is easier) \documentclass{article} \usepackage{lipsum} \setcounter{secnumdepth}{4} \newif\ifmoreinput \newcounter{sec} \newcounter{ssec}[sec] \newcounter{sssec}[ssec] \newcounter{parg}[sssec] \begin{document} \loop \stepcounter{section}% \stepcounter{sec}...


2

This approach may not be a good idea, LaTeX is designed to take care of the numbering for you (for example when you decide later to add a section between 1 and 2). If you want to do it anyway, a scripting language is probably the easiest way. Example in Perl: use File::Find; use Cwd; # get working directory for script $cwd1 = getcwd(); # find all tex ...


1

It is easier than you might think, without loading any package. \documentclass[12pt,a4paper, egregdoesnotlikesansseriftitles% The name of this option might change in the future ]{scrreprt} \usepackage{graphicx} \usepackage{lineno} \usepackage[english]{babel} \usepackage[super]{natbib} \usepackage{booktabs} \usepackage{textcomp, gensymb} \usepackage[table]{...


0

Sonmething like this? \documentclass[a4paper, 11pt]{article} \usepackage[ngerman]{babel} \usepackage[utf8x]{inputenc} \usepackage{hyperref} \newcounter{book} \newcounter{subbook}[book] \def\bookagraph#1{\stepcounter{book}\stepcounter{subbook} \paragraph{B \arabic{book} -\arabic{subbook} #1}\expandafter\label{bookagraph_\arabic{book}\arabic{subbook}}} \...


1

Why not redefining the \theparagraph, this will set the reference the easiest way: \documentclass{scrreprt} \usepackage{etoolbox} % get currentref command \newcommand\getcurrentref[1]{% \ifnumequal{\value{#1}}{0} {??} {\the\value{#1}}% } % remove label from paragraph, even if numbered \renewcommand*{\paragraphformat}{} % custom paragraph heading \...



Top 50 recent answers are included