[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Aspell-user] Tex mode from a C program
From: |
Michele Mattioni |
Subject: |
[Aspell-user] Tex mode from a C program |
Date: |
Mon, 31 Mar 2008 11:51:57 +0100 |
Hello list,
I've modified the example file (attached) to load the tex mode.
The interesting lines are 61 - 65
config = new_aspell_config();
aspell_config_replace(config, "lang", argv[1]);
aspell_config_replace(config, "mode", "tex");
When I run this program as
$ ./example-c a.tex
I get
Error: Unknown mode: "tex".
I don't know why.
What am I doing wrong?
Everything work from the command line.
Thanks,
Michele
example-c.c
Description: Text Data