I just took all the wonderful information supplied here, and wrote a small package that makes it possible to use Unicode characters for section, subsection, subsubsection, paragraph, subparagraph and item. I think it makes the text look neat, and it might be very useful for RTL users.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPakcage{usection}
{2011/02/07 Unicode characters instead of section, subsection, etc.}
\newcommand*{\toEolnCommand}[2]{%
\newcommand*{#1}{%
\begingroup%
\escapechar=`\\%
\catcode\endlinechar=\active%
\csname\string#1\endcsname%
}%
\begingroup%
\escapechar=`\\%
\lccode`\~=\endlinechar%
\lowercase{%
\expandafter\endgroup
\expandafter\newcommand\csname\string#1\endcsname##1~%
}{\endgroup#2\space}%
}
\toEolnCommand\toEolnSection{\section{#1}}
\toEolnCommand\toEolnSubsection{\subsection{#1}}
\toEolnCommand\toEolnSubsubsection{\subsubsection{#1}}
\toEolnCommand\toEolnParagraph{\paragraph{#1}}
\toEolnCommand\toEolnSubparagraph{\subparagraph{#1}}
\catcode"2022=\active \newcommand•{\item} % Bullet
\catcode"B6=\active \newcommandf¶{\@xparagraph} % ¶: U+00B6 PILCROW SIGN
\catcode"A7=\active \newcommand§{\@xsection} % §: U+00A7 SECTION SIGN
\newcommand\@xparagraph{%
\@ifnextchar ¶ {%
\expandafter
\toEolnSubparagraph
\@discardNextChar
}{%
\toEolnParagraph
}%
}
\newcommand\@xsection{%
\@ifnextchar§{% Two or more § were found.
\expandafter
\@sub@or@subsub@section
\@discardNextChar%
}{% Single § found.
\toEolnSection
}
}
\newcommand\@sub@or@subsub@section{
\@ifnextchar§{%
\expandafter
\toEolnSubsubsection
\@discardNextChar
}{%
\toEolnSubsection
}%
}
\newcommand\@discardNextChar#1{}
So, (a) do you think I should publish this, and if yes, (b) how should I do so?
EDIT I correct my question to make it useful to the general public: (a) What are the cirteria to be applied in considering a package worthy of publications and (b) which steps should be taken to realizing such a decision?
%behind{inside the\@sub@or@subsub@sectionand behind a}in\@xsection(ok\@ifnextcharwill gobble it, but anyway). – Martin Scharrer Feb 08 '11 at 15:07@as prefix. Example:\usection@xsectioninstead of\@xsectionwhich might be already defined by another package. – Martin Scharrer Feb 08 '11 at 15:09\begin{macro}{\mypackage@mymacro}...\end{macro}). This irked me greatly when I did the documentation forytableau. As for PDF search, I think the index, if done right, is more helpful because it points you straight to the definition and description before any of the many many instances of its use. – Ryan Reich Feb 08 '11 at 17:28