I am working with a sharelatex template for AIP and use this document class command:  \documentclass[%  aip,  jmp,%  amsmath,amssymb, %preprint,%  reprint,% %author-year,% %author-numerical,% ]{revtex4-1}   when I give the command \date{sth} I get in the pdf: (Dated: sth). How can I change the way \date{sth} displays the  date? For instance I would like it to be: (The date: sth), or without parenthesis.  Thanks for your help. Sorry if my language is not precise.
51586
I found the similar  for renaming some of the keywords, but they were for revtex4-1. Since my document is giving me strange errors when I'm using revtex4-1, and not when I'm using revtex4, this solution didn't help.   I also found  about revtex4 and there I found this:     The optional argument allows the user to override the text that will   be typeset along with the date; the default value of that text is   itself a localized macro.   1156\renewcommand*\date[2][\Dated@name]{\def\@date{#1#2}}% 1157\def\@date{}%   But this isn't working (or I don't understand how to use this)  Here's the 'mwe'  \documentclass[onecolumn,prb,floats,amsmath,amssymb,superscriptaddress,nofootinbib,12pt]{revtex4}  \usepackage{graphicx} \usepackage{bm} \usepackage[croatian]{babel} \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage[dvipdfm,colorlinks=true,bookmarks=false,urlcolor=DarkOrchid,citecolor=ForestGreen,linkcolor=Cerulean,pdfstartview={XYZ null null 1.00}]{hyperref} \usepackage{extarrows} \usepackage{subfigure} \usepackage{caption} \usepackage{mathtools} \usepackage{bbm} %\usepackage{float} \usepackage{psfrag} \usepackage{url} \usepackage[all]{hypcap} \usepackage{subfigure} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{listings} \usepackage{array} \usepackage[paperwidth=210mm,paperheight=297mm,centering,hmargin=2cm,vmargin=2.5cm]{geometry} \usepackage{enumitem} \setlist{nolistsep} \makeatletter  \gdef\@ptsize{0}% 10pt documents  % or:  %\gdef\@ptsize{1}% 11pt documents  %\gdef\@ptsize{2}% 12pt documents  \let\@currsize\normalsize  \makeatother  \usepackage{setspace}  \onehalfspacing  \renewcommand*\date[2][\Dated@name]{\def\@date{#1#2}}% \def\@date{Datum:}%  \renewcommand{\tocname}{Sadržaj}  \makeatletter \renewcommand{\thesection}{\arabic{section}} \renewcommand{\thesubsection}{\thesection.\arabic{subsection}} \renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}} \makeatother   \DeclareCaptionFont{white}{\color{white}} \DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}} \captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}  \newcolumntype{y}[1]{&gt;{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}} \renewcommand*{\arraystretch}{1.2}   \begin{document}  \title{Random title} \author{Random guy} \affiliation{Random place, 99999 Randomville} \date{\today}  \begin{abstract}  \end{abstract}  \maketitle  \begingroup \hypersetup{linkcolor=black} \tableofcontents \endgroup   \section{Intro}  \section{Bla}  \subsection{Bla1}   \section{Bla!}   \end{document}
645
I have a command that has been floating around in my standard preamble for a while:  \newcommand{\xeq}[1]{\stackrel{\;#1}{\cleaders\hbox{=\!}\hfill}\:}   It is meant to mimic the AMS-LaTeX extendible arrow symbols \xleftarrow and \xrightarrow.   It's not perfect for two reasons:   It does not take the optional lower argument like the AMS \xrightarrow[down]{up} The overlap of the constituent equals signs is slightly visible.   Does anyone have a better command or know of a package with such a command?
9589
Newbie question: Within the body of the text that I've inserted into a Journal's Latex Template, I don't understand why I get a newline and italicized font when I add the command \leq to generate "less than or equal to"...  Below is (1) the Journal's template preamble and (2) my text in the body of the document.  I'm using MacText/TexShop on MacOSx10.6  (1) PREAMBLE  \NeedsTeXFormat{LaTeX2e}[1995/12/01] \documentclass[10pt]{bmc_article}      % Load packages \usepackage{cite} % Make references as [1-4], not [1,2,3,4] \usepackage{url}  % Formatting web addresses   \usepackage{ifthen}  % Conditional  \usepackage{multicol}   %Columns \usepackage[utf8]{inputenc} %unicode support %\usepackage[applemac]{inputenc} %applemac support if unicode package fails %\usepackage[latin1]{inputenc} %UNIX support if unicode package fails \usepackage{times} %so today's date appears on each version \urlstyle{rm}  \def\includegraphic{} \def\includegraphics{}  \setlength{\topmargin}{0.0cm} \setlength{\textheight}{21.5cm} \setlength{\oddsidemargin}{0cm}  \setlength{\textwidth}{16.5cm} \setlength{\columnsep}{0.6cm}  \newboolean{publ}   (2) IN THE BODY OF THE DOCUMENT .tex  coefficients kappa: \leq 0.4 poor to fair; 0.6 moderate agreement.   in Typeset: this pdf reads      coefficients kappa:      &lt;={italics}0.4poortofair;0.6moderateagreement
4892
Consider the following document:  \documentclass[10pt,a4paper]{report} \usepackage{xepersian}  \settextfont{FreeFarsi}% http://sourceforge.net/projects/fpf/ \begin{document} این یک متن فارسی  است. \LR{Ch4}  ادامه متن فارسی... \end{document}   It prints \LR{Ch4} as Ch۴, whereas I want it to be printed as Ch4. But I do not want this to effect other numbers in the text. How can I do this?  I could use \begin{latin}...\end{latin} or \latin ... \persian, but they add new lines before and after the contained text.
44986
I have a String representation of a date that I need to create a Date or Calendar object from. I've looked through Date and Calendar APIs but haven't found anything that can do this other than creating my own ugly parse method. I know there must be a way, does anyone know of a solution?
102254
I want to change the date/time format on the top panel to a format close to RFC 3339 / ISO 8601, like one of these:  %F %T → 2013-06-24 16:13:00  %F %a %T → 2013-06-24 Mon 16:13:00  %A %F %T → Monday 2013-06-24 16:13:00  I know Unity has a preference somewhere hidden away in dconf, this is how I did it in Unity, but I can't find such a preference for Gnome 3 shell. Preferably, I'd also like to set one of these as my system-wide date/time locale preference.
57923
I wanted to use this, but I don't know if it's actually valid in English:     The specified date is invalid.It points to a non-existing day.   I'm not a native speaker, and I just want to say that the input points to a date that does not exist, like 30th February.
26496
I want to display dates in the format: short day of week, short month, day of month without leading zero but including "th", "st", "nd", or "rd" suffix.  For example, the day this question was asked would display "Thu Oct 2nd".  I'm using Ruby 1.8.7, and  just doesn't seem to do this.  I'd prefer a standard library if one exists.
65885
I have a file                                bla bla bla bla bla bla bla bla bla bla bla bla bla bla \newcommand{\datestamp}{20180215} bla bla bla bla bla bla bla bla bla bla bla bla bla bla   I need to search for \newcommand{\datestamp} and want to replace a nearby pattern with a new pattern.                          Required output file   bla bla bla bla bla bla bla                                     bla bla bla bla bla bla bla                                                     \newcommand{\datestamp}{20180218}                               bla bla bla bla bla bla bla                              bla bla bla bla bla bla bla     The backslashes are complicating this task. How do I manage?
81419
Is it possible to use the =today() function (or something else) to insert the current date but then not update each time the file is opened?  I want to create a numbers template for my invoices. I'd like it to auto fill invoice date and date due then, when I save the document, store the values, not the function.
78854
Can anyone tell me the difference between those two commands?  Edit: Thanks for the answers, but I didn't get the clue yet. Here's an example:  test.tex  \documentclass[a4paper,oneside]{mytestclass} ...   mytestclass.cls  \NeedsTeXFormat{LaTeX2e}  \ProvidesClass{testclass}[2011/01/30 v0.1 testclass] \LoadClass{book}   or  \NeedsTeXFormat{LaTeX2e}  \ProvidesClass{testclass}[2011/01/30 v0.1 testclass] \LoadClassWithOptions{book}   In both examples the options a4paper and oneside are passed to book. So, I don't see any difference in the result.
55600
The &gt; and &lt; preamble options of the array package (and possibly other table packages) allow automatically inserting text and commands before and after each cell of a column, respectively.  Can they be used to insert things like \hyperlink{foo}{ before and } after each cell, or something like that? Attempts so far:   &gt;{  \hyperlink{foo}{  }  c  &lt;{  }  } causes an error because the braces are unbalanced. Escaping the braces by \{ just inserts braces into the PDF. &gt;{  \begin{hyperlink}{foo}  }  c  &lt;{  \end{hyperlink}  } interestingly causes sharelatex to complain about the closed brace between begin and end, but does not cause a latex error.   The problem though is that this results in \begin{hyperlink}{foo}text in cell\end{hyperlink}, adding a hyperlink only to the first letter "t", whereas I need the result to be \begin{hyperlink}{foo}{text in cell}\end{hyperlink}, and for some reason not even surrounding every cell entry by braces manually helps.   Is there a way to achieve this?
70128
I've noticed a few posts (and it is only a few—maybe a handful) which are missing the year and time from the timestamp—The year is replaced with \yy and the time is replaced with AM/PM.  The timestamp shows as expected in the revision log (in the app) and everywhere on the site.  For example: two answers on                              App Version: 1.6.0.7 Device: iPhone 6s OS Version: Version 10.0.1 (Build 14A403)
92273
I'm relatively new to TeX but until now I used mostly the beamer class. There I did this:  \documentclass{beamer}   \title{title}   \subtitle{subtitle}   \author{name}   \date{\today} \begin{document}     %content \end{document}   And it worked as I would expect but when I use the article class the subtitle does not work.  So it seems that a) I got something wrong or b) it's not the right document class. So I ask you guys:  How do I use a subtitle in the article class?  or   Which document class should I use for my document? I'm attempting to write a document with 50 to 100 pages. It will be a documentation for a programming project so it will contain code snippets and diagrams.
24971
The input string for dates in Google Docs's spreadsheet app seems to be set to en_US, which is quite unnatural to me.  How can I change the input format?
59293
I'm not very good at LaTeX but I've been using it to write my dissertation. Have just come to the end and trying to format everything correctly. Whenever I try to put my Abstract paragraph into the form \begin{abstract} (writing here) \end{abstract} and click play the whole abstract section just disappears. What am I doing wrong?  \documentclass[12pt]{amsart}  \begin{document}  \begin{abstract} (my abstract here) \end{abstract} \end{document}
37695
in a file containing :  ... 18-11-2018:othercharacters 10-11-2018:othercharacters 03-10-2018:othercharacters 30-10-2018:othercharacters 27-09-2018:othercharacters 03-12-2018:othercharacters ...   the command :  sort -t- -k2 -k1    does not sort by date, what am I missing ?