help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Hiding references when editing LaTeX?


From: Felix E. Klee
Subject: Re: Hiding references when editing LaTeX?
Date: Fri, 28 Feb 2003 11:36:37 +0100
User-agent: KNode/0.7.1

David Kastrup wrote:
>> [...]
>> >> But font-lock-mode can't hide he "\emph{" and the corresponding "}",
>> >> right?
>> > Well, you could let it use an invisible font or something, but that
>> > would probably be not quite convenient for editing.  Perhaps in
>> > connection with auto-reveal-mode something could be fudged.
>> [...]
>> 
>> Hmm, what would be the cleaner/easier solution: to add that feature to
>> preview-latex or to the font-locking in AUCTeX?
> 
> preview-latex would need to achieve two different things here: not
> display \emph at all, and add text properties to the argument.  The
> interface does not currently permit a command and its arguments to be
> treated differently, and it might be quite a feat to implement
> something like that consistently. 

Is this really neccessary? Preview-LaTeX takes for example "\emph{bla bla 
bla}" and passes it to an external tool, latex, which creates an image that 
replaces the corresponding text. Wouldn't it be possible to let the user 
specify another tool (probably a simple lisp function) instead that takes 
"\emph{bla bla bla}", processes it and creates soem text (eg. "*bla bla 
bla*", faces might be problematic) that is used to replace "\emph{bla bla 
bla}"?

Felix



reply via email to

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