First of all you may define a new command, for numbering:
\newcounter{sentence}
\newcommand*{\nextsentence}{\refstepcounter{sentence}\textsuperscript{\thesentence}\ignorespaces}
This may be used at the start of each sentence. But this wouldn't be handy, so a short hand would be nice. This could be defined using babel:
\documentclass[twocolumn]{article}
\usepackage[english]{babel}
\newcounter{sentence}
\newcommand*{\nextsentence}{\refstepcounter{sentence}\textsuperscript{\thesentence}\ignorespaces}
\useshorthands{'}
\defineshorthand{'S}{\nextsentence}
\defineshorthand{'.}{. \nextsentence}
\begin{document}
'S In the beginning God created the
heaven and the earth'. And the
earth was without form, and void;
and darkness was upon the face of
the deep. And the Spirit of God
moved upon the face of the waters.
'S And God said, "Let there be
light," and there was light'. God
saw that the light was good, and
he separated the light from the
darkness'. God called the light
"day," and the darkness he called
"night." And there was evening,
and there was morning-the first day.
\end{document}
As you can see, I've replaced every .
, that should be followed by a new sentence number, by '.
. That's the new short hand, to set a '.' followed by a new sentence number.
You could make .
active to have auto numbering:
\newcommand*{\dotatend}{}
\let\dotatend. % to be used e.g. at the end of a paragraph
\catcode`\.=\active
\def.{\dotatend\space\nextsentence}
But this may result in several problems (because .
is used at numbers). So I wouldn't recommend it.
To number sentences, that are not prefixed by a .
, I've defined a second short hand 'S
. You may automate the sentence number at the start of a paragraph using \everypar
:
\documentclass[twocolumn]{article}
\usepackage[english]{babel}
\newcounter{sentence}
\newcommand*{\nextsentence}{\refstepcounter{sentence}\textsuperscript{\thesentence}\ignorespaces}
\useshorthands{'}
\defineshorthand{'S}{\nextsentence}
\defineshorthand{'.}{. \nextsentence}
\newenvironment{withsentencenumber}{%
\par
\everypar{\nextsentence}%
}{%
\par
}
\begin{document}
\begin{withsentencenumber}
In the beginning God created the
heaven and the earth'. And the
earth was without form, and void;
and darkness was upon the face of
the deep. And the Spirit of God
moved upon the face of the waters.
And God said, "Let there be
light," and there was light'. God
saw that the light was good, and
he separated the light from the
darkness'. God called the light
"day," and the darkness he called
"night." And there was evening,
and there was morning-the first day.
\end{withsentencenumber}
\end{document}
But note, that LaTeX itself uses \everypar
at several places, so this automatism may be deactivated using environments like lists inside the new environment withsentencenumber
. If so, you may end the environment and begin a new one to reactivate the automatism.
BTW: Package scrjura uses something like the above for numbering of paragraphs and sentences. Currently there seams to be only a German documentation for the package. Usage of babel has been suggested at that manual.