auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Comment or uncomment only one line


From: Tassilo Horn
Subject: Re: [AUCTeX] Comment or uncomment only one line
Date: Mon, 19 May 2014 21:41:13 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

Thorsten Grothe <address@hidden> writes:

Hi Thorsten,

> I got a small problem with Auctex. I got often constructs like this in
> my files:
>
> % \usepackage[forpaper,pointsonleft,nototals,answerkey]{eqexam}
> \usepackage[usecustomdesign,usexkv,links,useforms,forcolorpaper,%
> nozerototals,allowrandomize,noparttotals,nosummarytotals,%
> cfg=ka_normal,
> totalsonright,
> nosolutions,
> %answerkey
> % vspacewithsolns
> % proofing,
> % solutionsonly
> % nospacetowork
> ]{eqexam}
>
> let's say I only want to comment out one line like *nosolutions*, when
> I hit C-c ; or C-c % Auctex comments out the whole paragraph or the
> whole region but I want to comment out/in only *one single line*, is
> this possible with a shortcut?

If you are at the beginning of the line containing the key to
(un)comment, then you can just do `C-SPC C-n C-c ;' to mark the line and
then comment the region.  Well, but just inserting a % or deleting the
existing % is probably even more convenient.

Bye,
Tassilo




reply via email to

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