2 Jun 2008 11:49

## Re: Fold citep

On Sat, May 31, 2008 at 06:58:45PM +0200, Ralf Angeli wrote:
> > sorry, my question was confusing. what i meant to say was: what happens
> > if the optional argument isn't there, and the user hasn't supplied an
> > *alternative string*?
>
> Then the placeholder would be replaced by an empty string, I guess.

so it's up to the user to make sure that folding doesn't actually make a
LaTeX command disappear altogether? (if i specify "[1]" as replacement
string for \item, and i use \item without any argument, it disappears
completely.)

> > mmm... perhaps i'm not understanding you correctly... isn't this what you
> > get when you supply "*" as the alternative string? i.e. if you specify
> > "[1:*]" as the replacement string?
>
> This would result in "*" for "\item", but "foo" for "\item[foo]".  In
> order to get "foo:" for "\item[foo]" one would need to supply "[1:*]:"
> but this would result in "*:" for "\item".

i'm not sure whether this is really a problem. personally, i wouldn't
supply such a colon in the replacement string if the command i'm folding
doesn't actually produce that colon. the reason being that as a general
rule, folding makes the text in the editor appear more like the resulting
dvi/pdf text.

--

--
Joost Kremers, PhD


2 Jun 2008 18:40

### Re: Fold citep

* Joost Kremers (2008-06-02) writes:

> On Sat, May 31, 2008 at 06:58:45PM +0200, Ralf Angeli wrote:
>> > sorry, my question was confusing. what i meant to say was: what happens
>> > if the optional argument isn't there, and the user hasn't supplied an
>> > *alternative string*?
>>
>> Then the placeholder would be replaced by an empty string, I guess.
>
> so it's up to the user to make sure that folding doesn't actually make a
> LaTeX command disappear altogether?

Yes.  One could add a safeguard by displaying an ellipsis if the
display string becomes empty.

--

--
Ralf

5 Jun 2008 01:41

### Exporting manual hyphenation instances to ispell or aspell.

I have many .tex files in a language with no suitable dictionary and I
want to start constructing one by making word lists from files where I
have manually inserted \- (discretionary hyphens) between syllables all
over the place in documents with Overfull box warnings in order to get
justification in my pdfs.
I am using emacs, auctex, and miktex on w2000 and have only ispell-win32
to work with. Has any of you tried to do something like this before? Is
there a web site with a newbie friendly recipe for assemlbling the
needed files on w32 (lang.dat, lang.dic, lang.aff, lang.hash .... are
there others?)
It seems like elisp might be an appropriate tool for solving my problem.

Thanks,

Ed


Gmane