/[auctex]/auctex/font-latex.el
ViewVC logotype

Diff of /auctex/font-latex.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5.120 by angeli, Tue May 24 14:38:00 2005 UTC revision 5.121 by angeli, Sun Jun 5 13:59:10 2005 UTC
# Line 176  use \\[customize]." Line 176  use \\[customize]."
176            (set-face-attribute face-name nil :height  height-scale))))))            (set-face-attribute face-name nil :height  height-scale))))))
177    
178  (defcustom font-latex-fontify-sectioning 1.1  (defcustom font-latex-fontify-sectioning 1.1
179    "Whether to fontify LaTeX titles with varying height faces or a color face.    "Whether to fontify sectioning macros with varying height or a color face.
180    
181  If it is a number, use varying height faces.  The number is used  If it is a number, use varying height faces.  The number is used
182  for scaling starting from `font-latex-sectioning-5-face'.  Typically  for scaling starting from `font-latex-sectioning-5-face'.  Typically
# Line 280  variable `font-latex-fontify-sectioning' Line 280  variable `font-latex-fontify-sectioning'
280        "negthinspace" "enspace" "enskip" "quad" "qquad" "nonumber"        "negthinspace" "enspace" "enskip" "quad" "qquad" "nonumber"
281        "centering" "TeX" "LaTeX")        "centering" "TeX" "LaTeX")
282       font-lock-function-name-face 2 (command 1 t))       font-lock-function-name-face 2 (command 1 t))
283      ("title-0"      ("sectioning-0"
284       ("part")       ("part")
285       font-latex-sectioning-0-face 2 (title 1 t))       font-latex-sectioning-0-face 2 (sectioning 1 t))
286      ("title-1"      ("sectioning-1"
287       ("chapter")       ("chapter")
288       font-latex-sectioning-1-face 2 (title 1 t))       font-latex-sectioning-1-face 2 (sectioning 1 t))
289      ("title-2"      ("sectioning-2"
290       ("section")       ("section")
291       font-latex-sectioning-2-face 2 (title 1 t))       font-latex-sectioning-2-face 2 (sectioning 1 t))
292      ("title-3"      ("sectioning-3"
293       ("subsection")       ("subsection")
294       font-latex-sectioning-3-face 2 (title 1 t))       font-latex-sectioning-3-face 2 (sectioning 1 t))
295      ("title-4"      ("sectioning-4"
296       ("subsubsection")       ("subsubsection")
297       font-latex-sectioning-4-face 2 (title 1 t))       font-latex-sectioning-4-face 2 (sectioning 1 t))
298      ("title-5"      ("sectioning-5"
299       ("paragraph" "subparagraph" "subsubparagraph")       ("paragraph" "subparagraph" "subsubparagraph")
300       font-latex-sectioning-5-face 2 (title 1 t))       font-latex-sectioning-5-face 2 (sectioning 1 t))
301      ("textual"      ("textual"
302       ("item" "title" "author" "date" "thanks" "address" "caption"       ("item" "title" "author" "date" "thanks" "address" "caption"
303        "textsuperscript")        "textsuperscript")
304       font-lock-type-face 2 (command 1 t))       font-lock-type-face 2 (command 1 t))
305      ("bold-command"      ("bold-command"
306       ("textbf" "textsc" "textup" "boldsymbol" "pmb")       ("textbf" "textsc" "textup" "boldsymbol" "pmb")
307       font-latex-bold-face       font-latex-bold-face 1 (command 1 nil))
      1 (command 1 nil))  
308      ("italic-command"      ("italic-command"
309       ("emph" "textit" "textsl")       ("emph" "textit" "textsl")
310       font-latex-italic-face       font-latex-italic-face 1 (command 1 nil))
      1 (command 1 nil))  
311      ("math-command"      ("math-command"
312       ("ensuremath")       ("ensuremath")
313       font-latex-math-face       font-latex-math-face 1 (command 1 nil))
      1 (command 1 nil))  
314      ("type-command"      ("type-command"
315       ("texttt" "textsf" "textrm" "textmd")       ("texttt" "textsf" "textrm" "textmd")
316       font-lock-type-face 1 (command 1 nil))       font-lock-type-face 1 (command 1 nil))
317      ("bold-declaration"      ("bold-declaration"
318       ("bf" "bfseries" "sc" "scshape" "upshape")       ("bf" "bfseries" "sc" "scshape" "upshape")
319       font-latex-bold-face       font-latex-bold-face 1 declaration)
      1 declaration)  
320      ("italic-declaration"      ("italic-declaration"
321       ("em" "it" "itshape" "sl" "slshape")       ("em" "it" "itshape" "sl" "slshape")
322       font-latex-italic-face       font-latex-italic-face 1 declaration)
      1 declaration)  
323      ("type-declaration"      ("type-declaration"
324       ("tt" "ttfamily" "sf" "sffamily" "rm" "rmfamily" "mdseries"       ("tt" "ttfamily" "sf" "sffamily" "rm" "rmfamily" "mdseries"
325        "tiny" "scriptsize" "footnotesize" "small" "normalsize"        "tiny" "scriptsize" "footnotesize" "small" "normalsize"
# Line 348  inside a TeX group (like \"{\\bfseries f Line 343  inside a TeX group (like \"{\\bfseries f
343  form `(command <number of mandatory arguments> <flag determining  form `(command <number of mandatory arguments> <flag determining
344  if trailing asterisk should be fontified>)' which will match  if trailing asterisk should be fontified>)' which will match
345  macros of the form \"\\foo[bar]{baz}\", or a list of the form  macros of the form \"\\foo[bar]{baz}\", or a list of the form
346  `(title <num>)' which is basically the same as the `(command <num>)'  `(sectioning <num>)' which is basically the same as the `(command <num>)'
347  list but puts conditional into the keyword highlighter which  list but puts a conditional into the keyword highlighter which
348  tests for `font-latex-fontify-sectioning'.")  tests for `font-latex-fontify-sectioning'.")
349    
350  (defun font-latex-make-match-defun (prefix name type)  (defun font-latex-make-match-defun (prefix name type)
# Line 396  respective match function.  FACE is a fa Line 391  respective match function.  FACE is a fa
391  properties that will be applied to the respective part of the  properties that will be applied to the respective part of the
392  match returned by the match function.  TYPE is the type of  match returned by the match function.  TYPE is the type of
393  construct to be highlighted.  Currently the symbols 'command,  construct to be highlighted.  Currently the symbols 'command,
394  'title, 'declaration and 'noarg are valid.  'sectioning, 'declaration and 'noarg are valid.
395    
396  This is a helper function for `font-latex-make-built-in-keywords'  This is a helper function for `font-latex-make-built-in-keywords'
397  and `font-latex-make-user-keywords' and not intended for general  and `font-latex-make-user-keywords' and not intended for general
# Line 406  use." Line 401  use."
401             (0 'font-lock-keyword-face append t)             (0 'font-lock-keyword-face append t)
402             (1 'font-lock-variable-name-face append t)             (1 'font-lock-variable-name-face append t)
403             (2 ',face append t)))             (2 ',face append t)))
404          ((eq type 'title)          ((eq type 'sectioning)
405           `(,(intern (concat prefix name))           `(,(intern (concat prefix name))
406             (0 'font-lock-keyword-face append t)             (0 'font-lock-keyword-face append t)
407             (1 'font-lock-variable-name-face append t)             (1 'font-lock-variable-name-face append t)

Legend:
Removed from v.5.120  
changed lines
  Added in v.5.121

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26