Sometimes, you may want to set a piece of text in bold face. Or you want to emphasize
it by using an italic font.
In TeX/LaTeX a general concept named "grouping" is used. A
"group"
consists of an opening brace "{"
, arbitrary text and the
closing brace "}"
.
So in the input sentence
This is {a small} example.
the text "a small
" is "grouped" now. For changing the font style
you have to use the appropriate TeX/LaTeX command. All commands begin with the
backslash "\"
, immediately followed by the name of the command.
This is "bf"
for "bold face" and "em"
for "emphasize", i.e. an
italic face font.
If you wanted to set the "grouped" text in bold face you would have to
enter
This is {\bf a small} example.
as input. Using "\em"
as command yields the text in italic face.
These kind of
font changes are "local", i.e. they affect only the inner group. That is why
the word "example"
is not set to bold or italic face anymore,
the "group"
stops right after the word "small"
with the closing brace
"}"
.
If this brace would not be there, all the rest of the input text would be set to bold or
italic face, respectively. Thus, it is important that you provide a closing brace
"}"
for each opening brace "{"
in the input.
ChessTask can help you with this. If you have activated one of the text fields
Title of the task, Task or Solution you can click on one of the
"text command" buttons Bold Face or Italic Face.
Then, a pair of braces "{}"
is automatically inserted
into the selected
text field, together with the correct command (either "\bf"
or "\em"
).
Additionally, the cursor is positioned right before the closing brace
"}"
, such that you can immediately type the words you want to set
to bold or
italic face. Afterwards, you have to reposition the cursor to the end of the
text---or outside of the group, at least---in order to continue with entering
"normal" text.
Another "group" that is provided by the LaTeX style file
`skak.sty
' looks a bit different because it starts with a command
and then the grouping characters "{}" follow. Any text between
an opening "\movecomment{"
and a
"}"
for closing the group,
is interpreted as a list of chess moves. If you click on the Move button these
delimiters are inserted into the currently active text field.
Within this environment
certain characters get a new and special meaning:
"x"
results in the symbol for a "capture"
() in both, TeX/LaTeX and HTML. "KDLST"
for the german and "KQBNR"
for the
english version---appear
as symbols. In HTML this only works if you export the files with the "TrueType"
font enabled (see
Export to HTML,
Informator symbols and
The DBChess fonts).If you would like to see an example for "move" groups, have a look at the file example.tsk from the examples.
You can also mix the "move" environment with the usage of bold or italic faced fonts like I did in the test of the Informator symbols. Then you have to obey the following rule: You can not include a "bf" or "em" font face selection within a "movecomment" but have to do it the other way round.
For the first moves of the "symbol test" I entered
{\bf \movecomment{1. e4 e5 2. Sf3 Sc6 3. d4 exd4 4. Sxd4 Lc5
5. Le3 Df6 6. c3 Se7 7. Lc4 Se5 8. Le2 Dg6 9. 0-0 d6 10. f3}}
\movecomment{[10. Tfd1 \see{} 23.4]} {\bf \movecomment{0-0 11. Kh1}}
\movecomment{[11. Td8 Sd8 12. Td1 Lb7 13. Sd2 Sc6 \see{} 24.1;
13. ..., Se6!?\equal]}
using ChessTask switched to "German".
From now on, you are allowed to use the characters
"{}\"
in your input
texts because you (hopefully) know their meaning.