• Tidak ada hasil yang ditemukan

I created a pattern in the style file, where you can add your language typical letters, if the ones already defined do not match your preferences

N/A
N/A
Nguyễn Gia Hào

Academic year: 2023

Membagikan "I created a pattern in the style file, where you can add your language typical letters, if the ones already defined do not match your preferences"

Copied!
4
0
0

Teks penuh

(1)

The xq package is made for writing about xiangqi or chinese chess. This file demonstrates what the package can do.

First we write down a complete game.

Player 1 – Player 2

1. Af1–e2 Ch8–e8

Moves are input like this: "f1e2 h8e8", the letter for the piece that is moved is generated automatically and also, whether it is a capture or not.

The piece letters shown depend on the language, you choose at the beginning of the tex file, in this case it is

"english". By now there are letters defined for english, spanish, french, italian, czech, dutch and my mother tongue german. I created a pattern in the style file, where you can add your language typical letters, if the ones already defined do not match your preferences.

2. Hh1–g3 Hh0–g8

3. Hb1–c3 Ri0–h0

4. Ri1–h1 Rh0–h6

5. Ch3–h5 Hb0–a8

6. Pc4–c5 Cb8–c8

7. Ec1–e3 Pc7–c6

8. Hc3–b5 Pc6×c5

9. Ee3×c5 Rh6–c6

10. Ec5–e3 Pg7–g6

11. Hb5×a7 Rc6–c3

12. Cb3–b6 Rc3–c7

13. Ch5–h7 Pe7–e6

14. Cb6×g6!

W MF EW M

E P

S S S S s K

P w Ks p k k p

w emfme

77 N B 3444 4445 314G D 15

414 4 4 366666665 3777 7 75

4 4141

1 H I 15 3444C4445

6 6A

a b c d e f g h i

1 2 3 4 5 6 7 8 9 0

The board is shown with a single command. The style finds the correct position depending on the moves you input.

14. . . . Rc7×a7?

Black wins a major piece, but more important is that Red gets a strong attack on the right wing of the board.

15. Cg6×g0+ Af0–e9

16. Ch7–h0+

It is not better for Red to play 16.Ci0, for af- ter 16. . .Kf0 17.Chh0+ Kf9 18.Rh9+ Kf8 19.Rg9 Hh6 20.Rg6 Red gets back the major piece only. . .

16. . . . Hg8×h0

17. Rh1×h0 Ra0–a9

18. Cg0×d0+ Ae9–f0

19. Cd0×f0 Ra9–f9

20. Cf0×c0+

but in the game Red takes the whole defense of Black. . .

20. . . . Ke0–e9

21. Ra1–b1 Ra7–f7

22. Rb1–b9+ Cc8–c9

23. Cc0–a0 Ce8–d8

1

(2)

MF E M

E P

S S S S s

w s p k

Wk fw

K W

977 N 7B 3444 4445 314G D 15

414 4 4 366666665 3777 7775 04141 14

14 4I415 3 4 445 66O6Q6 A

a b c d e f g h i

1 2 3 4 5 6 7 8 9 0

You can also show the board with western pieces.

24. Rb9–a9 Cd8–d2

25. Ca0×a8 . . . and the major piece.

25. . . . Ke9–e8

26. Rh0–h8+ Rf7–f8

27. Ra9×c9 Black resigned the game.

1 : 0

Now we start playing from a special position, that is input in the tex file.

Exercise

In the diagram shown below both sides can checkmate the opponent, depending only on who is to move.

E FM W M

P E

S S S S k K

sw s s s K p e p

m e fm

97 J 7 B 3444 4445 14G D415 04 414 4

666 666 37 77 75

414 4 42 31 H I 15 3444 4445 86 O 66A

a b c d e f g h i

1 2 3 4 5 6 7 8 9 0

1. Red to move checkmates in 3 moves 2. Black to move checkmates in 4 moves Solution

1. Red to move

1. Ci5–i0+ Hg8–h0

2. Cg7–g0+ Ee8×g0

3. Ci0×g0#

2. Black to move

1. . . . Ke0–d0

2. Ci5–i0+ Kd0–d9

3. Ci0–i9+ Kd9–d8

4. Ci9–i6

. . . or any other move

4. . . . Rd6–d1#

2

(3)

I added a small font with some

additional signs, f.e. to demonstrate legal moves of pieces. But by now this is not more than a first draft with only the four extra signs shown in the diagram

F

s p

R L L L

U U L L L L B L L

77 77B 3444 4445 314G4D415 041414145 366666665 37777 7 5 0414 4 4 314H4I 15 3444 444

66O6 6 A

a b c d e f g h i

1 2 3 4 5 6 7 8 9 0

pieces in running text

Ff the kings

Mm the advisors/guards ...

Pp the knights/horses

Ss the pawns/soldiers

3

(4)

I also included a large board.

WPEMFMEPW

K K

S S S S S s s s s s

k k

wpemfmepw

3444C4445 3 4G4D4 5

4 4 4 4 366666665 377777775

4 4 4 4 3 4H4I4 5 3444C4445

a b c d e f g h i

1 2 3 4 5 6 7 8 9 0

Thats all! Hopefully everything works like it should!

4

Referensi

Dokumen terkait

Related to those phenomena, the research problems are explored, namely “what types of syntactic errors are found in the argumentative essays of the students of English letters

Proceedings of the 42nd Annual Meeting of the English Language Education Society of Japan This compilation is edited by the editorial committee of the English Language Education