Monday, August 6, 2012

Re: Encoding of double quotes by Vim

On Aug 5, 2012, at 6:13 PM, Tim Gray wrote:

> On Aug 05, 2012 at 05:16 PM -0400, Eric Weir wrote:
>> Thanks for the information on what Vim does, Tony. As my response to Alick indicates, the LyX folks are aware of the problem and that it is their's.
>
> I think the point people are trying to make that a) it's a property of LyX and not Vim and b) it's not necessarily a 'problem' in LyX. If LyX is using TeX for it's typesetting, the way you type open and closing quotes is with ` and ' as said before (and `` and '' for double quotes). It's not 'fixing' the problem to do it that way - it's doing it properly that way. Typing a sentence like this with a "word" in quotes is wrong. First, I used a " and not '', and second, I need to specify the opening and closing quotes using ` or ' as appropriate.

Thanks for the clarification, Tim. I now have two ways to address the issue from within Vim, the TeX way---`` and ''---and the Mac way---Option+[ and Shift+Option+[. The former is not displayed in LyX but it compiles. The latter is displayed and it compiles.

> As stated by someone else, you might want to try the Vim package that inserts the right quote while typing TeX for you

I plan to do so.

> It's possible that there is a TeX package that does smart quoting for you, but I'm not aware if there is.

Maybe 'csquotes'? http://www.ctan.org/pkg/csquotes/

> I'm also not familiar with how (and if) you can add packages to LyX.

On a per document basis you can. I believe also in LyX per se. At least some packages.

> I use LaTeX myself quite a bit, but I just call it from Vim with a keymap and preview it in Skim, so have never found the need for LyX. No need to paste any of my text/source into another program that way.

An advantage of LyX---in addition to making LaTeX available to folks like me who can't code it---is that while composing and editing documents are more readable, since the LaTeX code is not displayed.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA
eeweir@bellsouth.net

"A writer is a person for whom writing is more difficult
than it is for other people."

- Thomas Mann






--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: