[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] TeX-auto-generate confused by comments
From: |
Tristan Miller |
Subject: |
[AUCTeX] TeX-auto-generate confused by comments |
Date: |
Fri, 8 Sep 2017 15:46:10 +0200 |
Dear all,
In a separate thread I was advised to run TeX-auto-generate to generate
style hooks for the custom classes I'm using. I discovered that this
command seems to get confused by comments in the optional argument to
\RequirePackage. For example, take the following class file:
\NeedsTeXFormat{LaTeX2e}
\LoadClassWithOptions{article}
\ProvidesClass{foo}[2017/09/07 v0.1 test class]
\RequirePackage[
backend=biber, % here is a comment
]{biblatex}
Running TeX-auto-generate on this class file results in the following
style file, which fails to account for the use of biblatex:
(TeX-add-style-hook
"foo"
(lambda ()
(TeX-run-style-hooks
"latex2e"
"article"
"art10"))
:latex)
However, removing "% here is a comment" and re-running
TeX-auto-generate results in the following, which looks more correct:
(TeX-add-style-hook
"foo"
(lambda ()
(TeX-add-to-alist 'LaTeX-provided-package-options
'(("biblatex" "backend=biber" "")))
(TeX-run-style-hooks
"latex2e"
"article"
"art10"
"biblatex"))
:latex)
Am I correct in assuming that this is a bug? I know that a lot of
people use comments like this to explain the purpose of (sometimes very
obscure) package options.
Regards,
Tristan
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Tristan Miller
Free Software developer, ferret herder, logologist
https://logological.org/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
pgpBkfxp4_r6B.pgp
Description: OpenPGP digital signature
- [AUCTeX] TeX-auto-generate confused by comments,
Tristan Miller <=
- Re: [AUCTeX] TeX-auto-generate confused by comments, Ikumi Keita, 2017/09/08
- Re: [AUCTeX] TeX-auto-generate confused by comments, Tristan Miller, 2017/09/08
- Re: [AUCTeX] TeX-auto-generate confused by comments, Ikumi Keita, 2017/09/09
- Re: [AUCTeX] TeX-auto-generate confused by comments, Tassilo Horn, 2017/09/10
- Re: [AUCTeX] TeX-auto-generate confused by comments, Mosè Giordano, 2017/09/10
- Re: [AUCTeX] TeX-auto-generate confused by comments, Ikumi Keita, 2017/09/10
- Re: [AUCTeX] TeX-auto-generate confused by comments, Arash Esbati, 2017/09/10