[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Newbie trying to understand the parser.
From: |
Bernard Hurley |
Subject: |
[AUCTeX-devel] Newbie trying to understand the parser. |
Date: |
Fri, 18 Jul 2014 04:34:53 +0100 |
Hi all,
I'm trying to understand how the parser works as I would like to write
some style files for TikZ. I hope you don't mind if I ask some possibly
stupid questions, but I haven't seem them answered anywhere.
The first question is this: The code in "Hacking the Parser" in the info
file contains:
(defvar TeX-newmacro-regexp
'("\\\\newmacro{\\\\\\([a-zA-Z]+\\)}{\\\\\\([a-zA-Z]+\\)}"
(1 2) TeX-auto-multi)
"Matches \newmacro definitions.")
What is the purpose of the list (1 2) and what is the significance of
the numbers?
For the second question, the following file (01-Hagen-Petri-net.ly) was
automatically generated in my auto subdirectory:
(TeX-add-style-hook "01-Hagen-Petri-net"
(lambda ()
(TeX-run-style-hooks
"tikz"
""
"latex2e"
"art10"
"article"
"a4paper")))
Why does it contain an empty string? What is the purpose of it?
Regards,
Bernard.
- [AUCTeX-devel] Newbie trying to understand the parser.,
Bernard Hurley <=