Hello
Look at the following german example document.
\documentclass[12pt]{article}
\usepackage[german]{babel}
\usepackage[latin1]{inputenc}
\begin{document}
\title{Title}
\author{Ich}
\date{2014/07/23}
\maketitle{}
\section{Einleitung}
\label{sec:einleitung}
Blabla
\end{document}
When I executed TeX-insert-macro
the minibuffer showed
Date (default (2014/07/23))
The corresponding code seems to me:
(defun TeX-arg-date (optional &optional prompt)
"Prompt for a date, defaulting to the current date.
If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one. Use PROMPT as the prompt
string."
(let ((default (format-time-string "%Y/%m/%d" (current-time))))
(TeX-argument-insert
(TeX-read-string (TeX-argument-prompt
optional prompt (format "Date (default %s)" default))
nil nil default)
optional)))
Two question:
- couldn't this function allow to select other time formats, like
%d.%m.%Y (german standard)
- or best when scanning the header and recognising
\usepackage[german]{babel} auctex does it itself.
thanks
Uwe Brauer
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
