On (19:36 28/12/12), David Woodfall <d...@dawoodfall.net> put forth the 
proposition:
>On (13:35 28/12/12), Ruthard Baudach <ruthard.baud...@web.de> put forth the 
>proposition:
>>>== Auszüge aus der Nachricht von  David Woodfall vom 2012-12-26 01:59:
>>> I'm having a problem that when I choose a template it ends up with
>>> several lines at the top snipped off and the spacing/indentation is
>>> messed up too.
>>I've had the same observation with my templates. If you analyze the generic 
>>templates -
>>they all start with some lines producing a file header, and the first
>>line -- only the first one -- is stripped. I think this line is for a
>>comment on the template file that is not part of the file. Thus, my
>>custom templates start with
>>
>>%
>>
>>as first line.
>>
>>The latter is a problem of vim when you do pasting with automatic
>>indentation turned on (as is default with most filetype plugins) -- the
>>indentations of the pasted text and the autoindent induced indentations
>>sum up, messing the format.
>>
>>see
>>  :help paste
>>for detail,
>>use
>>  :set paste
>>before pasting text
>>and
>>  :set nopaste
>>to return to normal behaviour.
>
>Strangely, the problem has gone. I had tried :set paste and turning
>off autoindent, but it didn't seem to make any difference. Obviously
>something I did fixed it, but I don't know what...

I spoke too soon I think. Something strange is going on here. Compare
my koma-letter template original to what gets pasted into vim:

Original:

   7 \usepackage[strict=true, style=british]{csquotes}
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
  10 \newif\ifletterclosed
  11 \AtEndDocument{\ifletterclosed\else\end{letter}\fi}
  12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
  13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  14 %% Here you can modify the layout of your letter
  15 %% Have a look at the KOMA script documentation
  16 %% for details. Most commands are commented out
  17 %% here (i.e. we use default settings)
  18 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  19 %% Load an *.lco style file (see KOMA documentation)
  20 \LoadLetterOption{DIN}%

The result:

   7 \usepackage[strict=true, style=british]{csquotes}
   8 0
   9 %% Here you can modify the layout of your letter
  10 %% Have a look at the KOMA script documentation
  11 %% for details. Most commands are commented out
  12 %% here (i.e. we use default settings)
  13 0
  14 %% Load an *.lco style file (see KOMA documentation)
  15 \LoadLetterOption{DIN}%

It seems to have deleted some lines and replaced some with '0'.


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to