unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* double quote in latex mode
@ 2005-02-18 10:10 C.M. Klaij
  2005-02-18 13:24 ` Lute Kamstra
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: C.M. Klaij @ 2005-02-18 10:10 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i586-suse-linux, X toolkit, Xaw3d scroll bars)
 of 2003-03-17 on E205
configured using `configure '--with-gcc' '--with-pop' '--with-system-malloc' 
'--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' 
'--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--with-x' '--with-xpm' 
'--with-jpeg' '--with-tiff' '--with-gif' '--with-png' 
'--with-x-toolkit=lucid' '--x-includes=/usr/X11R6/include' 
'--x-libraries=/usr/X11R6/lib' 'i586-suse-linux' 'CC=gcc' 'CFLAGS=-O2 
-march=i586 -mcpu=i686 -fmessage-length=0 -pipe 	 
-DSYSTEM_PURESIZE_EXTRA=25000 	 -DSITELOAD_PURESIZE_EXTRA=10000 	 
-D_GNU_SOURCE ' 'LDFLAGS=-s' 'build_alias=i586-suse-linux' 
'host_alias=i586-suse-linux' 'target_alias=i586-suse-linux''
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

The double quote key in latex mode is not working correctly:

if I use it once I get two accents (``)

if I use it twice, I first get the two accents (``) and these
are then replaced with the correct double quote (")

if I use the double quote in *scratch* it directly gives 
the correct result.

The reason I encountered this problem is that the double quote 
is needed to specify the root file at the end of an include file:

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../rootfile"
%%% End: 

If instead I use:

%%% TeX-master: ``../rootfile``

auctex does not recognize the master file.

These are my settings form the .emacs file:

(require 'tex-site) 
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) 
(setq reftex-enable-partial-scans t)
(setq reftex-save-parse-info t)
(setq reftex-use-multiple-selection-buffers t)
(setq reftex-plug-into-AUCTeX t)


Recent input:
e r a t i v e SPC s o l v e r SPC <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <end> 
f o r m SPC $ <backspace> P E T S c <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <delete> 
<right> o <end> <left> <left> <left> <left> <left> 
t h e SPC <end> SPC p a c k a g e . C-x C-s C-c C-c 
<return> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>

Recent messages:
Mark set
call-interactively: End of buffer [4 times]
Auto-saving...done
Wrote /home/twmed/klaijcm/.emacs
Loading emacsbug...done
Loading view...done
Auto-saving...done
Wrote /home/twmed/klaijcm/C_Papers/CMAME2/files/method.tex
Type `C-c C-l' to display results of compilation.
LaTeX: successfully formatted {9} pages.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: double quote in latex mode
  2005-02-18 10:10 double quote in latex mode C.M. Klaij
@ 2005-02-18 13:24 ` Lute Kamstra
  2005-02-18 14:08 ` Reiner Steib
       [not found] ` <mailman.478.1108734029.32256.bug-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 4+ messages in thread
From: Lute Kamstra @ 2005-02-18 13:24 UTC (permalink / raw)
  Cc: bug-gnu-emacs

"C.M. Klaij" <c.m.klaij@math.utwente.nl> writes:

[...]

> The double quote key in latex mode is not working correctly:
>
> if I use it once I get two accents (``)
>
> if I use it twice, I first get the two accents (``) and these
> are then replaced with the correct double quote (")

This is actually a feature:

,----[ C-h k " ]
| " runs the command TeX-insert-quote
|    which is an interactive compiled Lisp function in `tex'.
| (TeX-insert-quote FORCE)
| 
| Insert the appropriate quote marks for TeX.
| Inserts the value of `TeX-open-quote' (normally ``) or `TeX-close-quote'
| (normally '') depending on the context.  If `TeX-quote-after-quote'
| is non-nil, this insertion works only after ".
| With prefix argument FORCE, always inserts " characters.
`----

Within LaTeX mode, you usually want to insert quotes like `` and ''.
So LaTeX mode binds these insertions to the " key.  The quote " is
still available by pressing the " key twice.  You can change this
behavior by setting TeX-quote-after-quote to t.

Lute.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: double quote in latex mode
  2005-02-18 10:10 double quote in latex mode C.M. Klaij
  2005-02-18 13:24 ` Lute Kamstra
@ 2005-02-18 14:08 ` Reiner Steib
       [not found] ` <mailman.478.1108734029.32256.bug-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 4+ messages in thread
From: Reiner Steib @ 2005-02-18 14:08 UTC (permalink / raw)
  Cc: bug-gnu-emacs

On Fri, Feb 18 2005, C.M. Klaij wrote:

> The double quote key in latex mode is not working correctly:
>
> if I use it once I get two accents (``)
>
> if I use it twice, I first get the two accents (``) and these
> are then replaced with the correct double quote (")

This is an AUCTeX feature, not a bug.  
See the manual: (info "(auctex)Quotes").

> The reason I encountered this problem is that the double quote 
> is needed to specify the root file at the end of an include file:
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: "../rootfile"
> %%% End: 
>
> If instead I use:
>
> %%% TeX-master: ``../rootfile``
>
> auctex does not recognize the master file.

As AUCTeX is not part of Emacs, your bug report on the following
problem should go to the AUCTeX list.  Please use `M-x
TeX-submit-bug-report RET'.  This we give provide more useful
information on your AUCTeX settings.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: double quote in latex mode
       [not found] ` <mailman.478.1108734029.32256.bug-gnu-emacs@gnu.org>
@ 2005-02-18 16:44   ` Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2005-02-18 16:44 UTC (permalink / raw)


Lute Kamstra wrote:
 > Within LaTeX mode, you usually want to insert quotes like `` and ''.
 > So LaTeX mode binds these insertions to the " key.  The quote " is
 > still available by pressing the " key twice.  You can change this
 > behavior by setting TeX-quote-after-quote to t.

And within any mode you can insert a character literally with C-q.

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-18 16:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-18 10:10 double quote in latex mode C.M. Klaij
2005-02-18 13:24 ` Lute Kamstra
2005-02-18 14:08 ` Reiner Steib
     [not found] ` <mailman.478.1108734029.32256.bug-gnu-emacs@gnu.org>
2005-02-18 16:44   ` Kevin Rodgers

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).