Search found 1 match

by thomderainette
Mon Mar 25, 2013 1:07 pm
Forum: General
Topic: newcommand with option command
Replies: 1
Views: 2545

newcommand with option command

Hi all,

I want to create a kind of wrapper of section, subsection, part...

I begin with:
\newcommand\wrappsection[2]{
\setcounter{section}{#1}
%[...]
\section{#2}
%[...]
}
\wrappsection{counter-1}{name of section}


And I copy this for each other level.

Can we do something like ...