bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] (LaTeX) export. A new variable to the move structs?


From: Øystein Johansen
Subject: [Bug-gnubg] (LaTeX) export. A new variable to the move structs?
Date: Fri, 21 Nov 2003 20:27:31 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

Hi,

I'm working on commenting a match, and I want to export it to LaTeX. The "Problem is that the LaTeX export, and all the other export formats as well, exports all boards and all the analysis, and the documents becomes enormous. A simple 9 point match will easily become 100+ pages, and most of the space is taken by printed boards and most of the printed boards are even uninteresing.

So.....
I've been thinking of several solutions to this. The user should in some way be able to choose which positions and analysis which should be exported.

Alternative 1:
Make a escape command in the commentary field for each board to be printed. I.e if I start a commentary with \exportboard this will be recognized by the export function and PrintLaTeXboard will be called for this move record.

if (strncmp(pmr->n.sz, "\\exportboard" 12)
    PrintLaTeXBoard( pf, &msExport, pmr->n.fPlayer );

Alternative 2:
Add two new items to the move record union structs MOVE_NORMAL, MOVE_DOUBLE, MOVE_TAKE and MOVE_DROP.
Each of these structs can add the items:

int fExportBoard;
int fExportAnalysis;

If these flags are set by the user, the boards and the anlysis are exported.

Which is best? Why? Suggestions? Is there any thing I'm missing?

-Øystein





reply via email to

[Prev in Thread] Current Thread [Next in Thread]