[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] \date insert american format
From: |
Uwe Brauer |
Subject: |
[AUCTeX-devel] \date insert american format |
Date: |
Wed, 23 Jul 2014 15:01:38 +0200 |
User-agent: |
Gnus/5.13001 (Ma Gnus v0.10) XEmacs/21.5-b33 (linux) |
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] \date insert american format,
Uwe Brauer <=