[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa b66c10a 08/51: TikZ: Add parabola command.
From: |
Tassilo Horn |
Subject: |
[elpa] elpa b66c10a 08/51: TikZ: Add parabola command. |
Date: |
Sun, 22 May 2016 07:22:47 +0000 (UTC) |
branch: elpa
commit b66c10aa0ae12d3cf85cb75e097e82bd342278dc
Author: Matthew Leach <address@hidden>
Commit: Matthew Leach <address@hidden>
TikZ: Add parabola command.
* style/tikz.el (TeX-TikZ-arg-bend): New.
(TeX-TikZ-arg-parabola): New.
(TeX-TikZ-draw-arg-function-map): Add mapping from "Parabola" to
`TeX-TikZ-arg-parabola'.
---
style/tikz.el | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/style/tikz.el b/style/tikz.el
index 222be06..9754347 100644
--- a/style/tikz.el
+++ b/style/tikz.el
@@ -182,6 +182,24 @@ them as a list of strings, dropping the '()'."
(let ((options (TeX-TikZ-arg-options t)))
(concat "arc" options)))
+(defun TeX-TikZ-arg-bend (optional)
+ "Prompt the user for a bend argument.
+If OPTIONAL is non-nil and the user doesn't provide a point,
+ return \"\"."
+ (let ((point
+ (TeX-TikZ-single-macro-arg TeX-TikZ-point-function-map
+ (TeX-argument-prompt optional nil "Bend
point")
+ optional)))
+ (if (string= point "")
+ point
+ (concat " bend" point))))
+
+(defun TeX-TikZ-arg-parabola (_ignored)
+ "Prompt the user for the arguments to the parabola command."
+ (let ((options (TeX-TikZ-arg-options t))
+ (bend (TeX-TikZ-arg-bend t)))
+ (concat "parabola" options bend)))
+
(defconst TeX-TikZ-point-function-map
'(("Rect Point" TeX-TikZ-arg-rect-point)
("Polar Point" TeX-TikZ-arg-polar-point)
@@ -205,7 +223,8 @@ A set of base connectors along with variants that have \"
+\" and
,@TeX-TikZ-path-connector-function-map
("Node" TeX-TikZ-arg-node)
("Circle" TeX-TikZ-arg-circle)
- ("Arc" TeX-TikZ-arg-arc))
+ ("Arc" TeX-TikZ-arg-arc)
+ ("Parabola" TeX-TikZ-arg-parabola))
"An alist of argument names and functoins for TikZ's \draw.")
(defun TeX-TikZ-draw-arg (_ignored)
- [elpa] elpa updated (7573813 -> ebf4b8a), Tassilo Horn, 2016/05/22
- [elpa] elpa da88a3e 01/51: Dinamically put delete-selection prop to TeX-insert-dollar, Tassilo Horn, 2016/05/22
- [elpa] elpa c58162a 04/51: TikZ: Add circle command., Tassilo Horn, 2016/05/22
- [elpa] elpa 310008b 05/51: TikZ: Add the arc command., Tassilo Horn, 2016/05/22
- [elpa] elpa b66c10a 08/51: TikZ: Add parabola command.,
Tassilo Horn <=
- [elpa] elpa 84dfb76 13/51: Do not use add-to-list for let-bound variable, Tassilo Horn, 2016/05/22
- [elpa] elpa de0d445 07/51: TikZ: Add optional parameter to `TeX-TikZ-single-macro-arg'., Tassilo Horn, 2016/05/22
- [elpa] elpa 44e654b 22/51: Use `match-string-no-properties', Tassilo Horn, 2016/05/22
- [elpa] elpa 36b6051 12/51: Compatibility for XEmacs, Tassilo Horn, 2016/05/22
- [elpa] elpa af27d33 17/51: TikZ: Add the grid command., Tassilo Horn, 2016/05/22
- [elpa] elpa bc8d07f 27/51: Temporarily bind `TeX-insert-macro-default-style' to 'show-optional-args', Tassilo Horn, 2016/05/22
- [elpa] elpa 88fbf80 20/51: Fix in TeX sentinels, Tassilo Horn, 2016/05/22
- [elpa] elpa 693eee6 11/51: TikZ: Remove unneeded function., Tassilo Horn, 2016/05/22
- [elpa] elpa b20cd68 16/51: Fix a documentation type., Tassilo Horn, 2016/05/22
- [elpa] elpa 71349ec 23/51: Use `deactivate-input-method' if defined, Tassilo Horn, 2016/05/22