Difference between revisions of "Command/month"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(Add example, See Also)
Line 21: Line 21:
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
<context source=yes>
 +
% In English, months have initial capitals even in lowercase text.
 +
\month{1}--\month{6}
 +
 
 +
\language[ro] % merely changes the hyphenation language
 +
\month{1}--\month{6}
 +
 
 +
\mainlanguage[ro] % changes the language the document is in
 +
\month{1}--\month{6}
 +
</context>
 +
 
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|MONTH}} for the month in all caps
 +
* {{cmd|weekday}} and {{cmd|WEEKDAY|}} to print days of the week
 +
* {{cmd|mainlanguage}} to choose the language the month appears in
 +
* This command uses the labels mechanism. See {{cmd|setuplabeltext}} and {{cmd|labeltext}} to set up and use your own labeled concepts.
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 13:16, 21 May 2012

\month

Syntax

\month{...}
{...} number


Description

Produces the lowercase language label text for the month given by number, which should be between 1 and 12.

Example

% In English, months have initial capitals even in lowercase text.
\month{1}--\month{6}

\language[ro] % merely changes the hyphenation language
\month{1}--\month{6}

\mainlanguage[ro] % changes the language the document is in
\month{1}--\month{6}


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: