auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] patch for the exam class.


From: Arash Esbati
Subject: Re: [AUCTeX-devel] patch for the exam class.
Date: Mon, 26 Dec 2016 14:07:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1

Uwe Brauer <address@hidden> writes:

>>>> "Arash" == Arash Esbati <address@hidden> writes:
>
>    >> +   (TeX-add-symbols
>    >> +    '("part" [ "Points" ] (TeX-arg-literal " "))
>    >> +    '("subpart" [ "Points" ] (TeX-arg-literal " "))
>
>    >> +    '("gradetable" [ "1. Option" ](TeX-arg-literal "")[ "2. Option" 
> ](TeX-arg-literal ""))
>    >> +    '("partialgradetable" 1 [ "1. Option" ](TeX-arg-literal "")[ "2. 
> Option" ](TeX-arg-literal ""))
>
>    > What's the rationale behind the (TeX-arg-literal "") here?  You could
>    > write something like:
>
> You mean in (partial)gradtable or also in part?

I mean in (partial)gradtable.  In part, you have (TeX-arg-literal " ")
which adds a space, i.e. `\part[100] ' to mimic an \item.

> As for (partial)gradtable
>
> When I use Tex-insert-macro
> RET
> gradtable
> Optional 1. Option: h
> RET
> Optional 2. Option: question
> RET
>
> I obtain what I want, namely
>
> \gradetable[h][question]
>
> Are you saying this is a ugly hack. Fine I take your code, but my
> «solution» works

In (partial)gradtable, you have (TeX-arg-literal "") which actually does
nothing.  I was wondering why it is necessary.

> Thanks again, I will take your suggestions, but I am bit curious about
> my ugly hack solutions
>     '("extrafootheight"  ["Measure"](TeX-arg-literal "")1)
>       '("gradetable" [ "1. Option" ](TeX-arg-literal "")[ "2. Option" 
> ](TeX-arg-literal ""))

Same here, I'm asking why (TeX-arg-literal "") is necessary at all?  I
don't see the added value.

Best, Arash



reply via email to

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