0

Before making an answer to this question, please make sure to be aware I'm asking about code editing, not the appearance of PDF file.

When I use tikz-cd, I have to type the double quote mark " in my code. This symbol must be typed in a single letter. But When I press the Shift + ' keys, I get the two letters '' on the editor, which is a wrong result.

I want to accomplish my goal only by pressing the Shift and the quotation mark key ' on the keyboard simultaneousely. What can I do for this? Should I modify some options of the editor?

By the way I tried the followings, all of which didn't work:

(1) Typing the single quote mark ' twice to get ''.

(2) Typing the single quote opening mark ` twice to get ``.

(3) Typing Shift+' twice. This is an answer to a very similar question to mine, but all I got was just the ''''. This answer doesn't work.

Alan Munn
  • 218,180
  • 4
    How this is related to (La)TeX? If I understood your question correctly, your problem depends on your editor settings, which is unknown to us. – Zarko Feb 27 '21 at 15:45
  • 2
    Why don't you want to type Shift + " directly? – Ulrike Fischer Feb 27 '21 at 15:50
  • 2
    I don't think this is off topic: it appears that Alpaca is using a LaTeX IDE that does automatic substitution, and since discussion of LaTeX IDEs is on topic, we should find out which editor is being used and then I'm sure there's a way to turn off the autocomplete for quotes. – Alan Munn Feb 27 '21 at 16:16
  • 3
    Alpaca: we can't help you unless you tell us what editor you are using. – Alan Munn Mar 08 '21 at 14:45
  • @AlanMunn I didn't even know there are several editors! Thanks for the comment, and I use TeXworks editor. – Springfield Mar 12 '21 at 08:19
  • But When I press the Shift + ' keys, I get the two letters '' on the editor, which is a wrong result. Isn't it just the auto-closing feature in your editor? The same probably occurs when typing (, ", as well as '. Regardless, as @UlrikeFischer suggested, what happens if you type ", directly? – Celdor Aug 01 '22 at 10:22
  • What happens if you insert the " in a plain text editor, before you open the file in your TeX editor? Does it make a substitution, or leave your typed character as-is? – rallg Mar 29 '23 at 17:41
  • Since I don't see this answer in either the comments here or in the linked question/answer, here's what I do on a Linux box: type q and then the double quote " . (q in this usage means to quote the following character.) – barbara beeton Mar 30 '23 at 02:48

1 Answers1

0

This problem persists in Vim text editor with vim-latex plugin activated. In this case the solution is:

Add string :

let g:Tex_SmartKeyQuote=0

to file (create file if doesn't exist) :

path_to_your_vim_directory/ftplugin/tex.vim
user2935704
  • 109
  • 1