<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Dear Martin and Uwe,<br>
<br>
thanks a lot for your help.<br>
The following command from Heiko Oberdiek works fine (for me).<br>
</tt>
<p>\newcommand*{\EnsurePeriodEnd}<wbr>[1]{% <br>
&nbsp; \begingroup <br>
&nbsp; &nbsp; \sbox\z@{% <br>
&nbsp; &nbsp; &nbsp; \nonfrenchspacing <br>
&nbsp; &nbsp; &nbsp; #1% <br>
&nbsp; &nbsp; &nbsp; \xdef\GlobalSpaceFactor{\the\s<wbr>pacefactor}% <br>
&nbsp; &nbsp; }% <br>
&nbsp; \endgroup <br>
&nbsp; \ifnum\GlobalSpaceFactor&gt;1000 \else .\fi <br>
</p>
<div id="qhide_6314" style="display: block;" class="qt">} <br>
<br>
</div>
\procvidecommand{\mycaption}[1]{% <br>
&nbsp;&nbsp; #1\EnsurePeriodEnd{#1} %&nbsp; Was changed by myself <br>
} <br>
<br>
Up to know I didn't find any problems arouse by these command. I may
have to do some more tests ;)<br>
Thanks for your help.<br>
<br>
Just to give some credits back (not really a TeX-Problem)&nbsp; ;) Yesterday
I found (after a long journey in the I-net and some trial and errors)
that you have to add the following line in the preamble of a index
style file to get also fancy-headers at the first page of an index.
Takes me more then 4 hours to come there. The original docu is somewhat
quite about this topic. Therefore I believe this could be interesting
to others here in TexHax.<br>
<br>
% Style file for the a index saved e.g. with myindey.ist<br>
% commands to include the style file by makeindex:<br>
%&nbsp;&nbsp; makeindex -s myindex.ist -o myindex.ind myindex..idx<br>
% Note every LaTeX command have to start with two \\ one <br>
% for makeindex and one for LaTeX. Check the idx file it should contain<br>
% proper LaTeX-code. \n indicates a line break for makeindex<br>
<br>
preamble "\\begin{theindex}\n\\thispagestyle{fancy}\n"<br>
<br>
<br>
Just&nbsp; for your knowledge base if not placed there already.<br>
<br>
Thanks<br>
<br>
Totti<br>
<br>
<br>
Uwe L&uuml;ck wrote:
<blockquote cite="mid5.1.0.14.0.20050704222058.024a29d0@pop3.web.de"
 type="cite">At 16:50 24.06.05, Torsten Wagner wrote:
  <br>
  <br>
  <blockquote type="cite">e.g. I like to make the first letter of a
word capital, independent of what the user typed in.
    <br>
so that
    <br>
    <br>
\mycommand{my text}
    <br>
\mycommand{My text}
    <br>
    <br>
results both in
    <br>
    <br>
My text
    <br>
  </blockquote>
  <br>
Look as well what I have found by chance
  <br>
(if only for historical interest -- Uwe):
  <br>
  <br>
Date: Mon, 09 May 2005 19:12:32 +0100
  <br>
From: "P.Taylor" <a class="moz-txt-link-rfc2396E" href="mailto:P.Taylor@rhul.ac.uk">&lt;P.Taylor@rhul.ac.uk&gt;</a>
  <br>
To: Alex Torkhov <a class="moz-txt-link-rfc2396E" href="mailto:mail@atorkhov.pp.ru">&lt;mail@atorkhov.pp.ru&gt;</a>
  <br>
Subject: Re: [texhax] First character of a string
  <br>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:texhax@tug.org">texhax@tug.org</a>
  <br>
  <br>
Simplistically, something like the following
  <br>
\def \firstofmany #1#2\sentinel {#1}
  <br>
\def \firstchar #1{\firstofmany #1\sentinel}
  <br>
Of course, there are many caveats : TeX deals in
  <br>
tokens, not characters; #1 must not contain \sentinel,
  <br>
#1 must not be empty, and so on ...
  <br>
Philip Taylor
  <br>
--------
  <br>
Alex Torkhov wrote:
  <br>
&gt;
  <br>
&gt; How can I make function in TeX that returns first character of its
param?
  <br>
  <br>
_______________________________________________
  <br>
TeX FAQ: <a class="moz-txt-link-freetext" href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a>
  <br>
TeX newsgroup: <a class="moz-txt-link-freetext" href="http://groups.google.com/groups?group=comp.text.tex">http://groups.google.com/groups?group=comp.text.tex</a>
  <br>
Mailing list archives: <a class="moz-txt-link-freetext" href="http://tug.org/pipermail/texhax/">http://tug.org/pipermail/texhax/</a>
  <br>
More links: <a class="moz-txt-link-freetext" href="http://tug.org/begin.html">http://tug.org/begin.html</a>
  <br>
  <br>
Automated subscription management:
<a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/texhax">http://tug.org/mailman/listinfo/texhax</a>
  <br>
Human mailing list managers: <a class="moz-txt-link-abbreviated" href="mailto:postmaster@tug.org">postmaster@tug.org</a>
  <br>
  <br>
  <br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
----------------------------------------------------
Dipl.-Ing. Torsten Wagner, MSc 
University of Applied Sciences Aachen (Div. Juelich)
Laboratory for Chemo- and Biosensors
Ginsterweg 1, D-52428 Juelich, Germany
Tel.: +49 2461 993215 or 612466
Fax: +49 2461 993235
Email: <a class="moz-txt-link-abbreviated" href="mailto:torsten.wagner@fh-aachen.de">torsten.wagner@fh-aachen.de</a>
and
Research Centre Juelich GmbH
Institute of Thin Films and Interfaces (ISG-2)
D-52425 Juelich
----------------------------------------------------

Please avoid sending me Word or PowerPoint attachments.
See <a class="moz-txt-link-freetext" href="http://www.fsf.org/philosophy/no-word-attachments.html">http://www.fsf.org/philosophy/no-word-attachments.html</a>

</pre>
</body>
</html>