1 \documentclass[book]{upmethodology-document}
3 \setfrontcover{classic}
5 \declaredocument{\LaTeX\ Packages for Unified Process Methodology}{Official Documentation}{UPM-2015-01}
7 \updateversion{22.0}{\makedate{15}{08}{2013}}{Add the macros: \texttt{{\textbackslash}textup}, \texttt{{\textbackslash}textsubscript}, \texttt{{\textbackslash}textdown}, \texttt{{\textbackslash}textsubscript}, \texttt{{\textbackslash}Emph}. Add the environments \texttt{enumdescription}, \texttt{enumdescriptionx}.}{\upmpublic}
8 \incversion{\makedate{17}{08}{2013}}{Update the second parameter of \texttt{{\textbackslash}mfigurewtex} to have the same semantic as for \texttt{{\textbackslash}mfigure}.}{\upmpublic}
9 \incversion{\makedate{26}{08}{2013}}{Major bug fixes in the environments \texttt{mtabular} and \texttt{mtable}. \newline Add the macro \texttt{{\textbackslash}tabulartitlespec}. \newline Add the macro \texttt{{\textbackslash}makenamespacing}.}{\upmpublic}
10 \incversion{\makedate{27}{08}{2013}}{Add the environment \texttt{framedcolorminipage}. Add the \texttt{definition} environment.}{\upmpublic}
11 \incversion{\makedate{02}{09}{2013}}{Change the specification of the optional parameter of \texttt{mtable}. Add the macro \texttt{{\textbackslash}makelastname}}{\upmpublic}
12 \incversion{\makedate{05}{09}{2013}}{Add the macro \texttt{{\textbackslash}declareupmtheorem}}{\upmpublic}
13 \incversion{\makedate{19}{09}{2013}}{Add the mathematic symbols}{\upmpublic}
14 \incsubversion{\makedate{26}{09}{2013}}{Add the missed table placement flag \texttt{p}}{\upmpublic}
15 \incsubversion{\makedate{29}{09}{2013}}{Add a notification text about the version of the library at the beginning of the introduction.}{\upmpublic}
16 \incsubversion{\makedate{30}{09}{2013}}{Add the macro \texttt{{\textbackslash}makefirstname}}{\upmpublic}
17 \incsubversion{\makedate{09}{10}{2013}}{Remove references to \texttt{fancyhdr}}{\upmpublic}
18 \incsubversion{\makedate{14}{10}{2013}}{Add the macros \texttt{{\textbackslash}chapterfull}, \texttt{{\textbackslash}sectionfull} and \texttt{{\textbackslash}newpageintoc}.}{\upmpublic}
19 \incsubversion{\makedate{16}{10}{2013}}{Add the section about the environment \texttt{description}.}{\upmpublic}
20 \incsubversion{\makedate{14}{12}{2013}}{Add the section about \texttt{backcovermessage}.}{\upmpublic}
21 \incsubversion{\makedate{09}{02}{2014}}{Add the section about \texttt{enumerate}. Typos are fixed.}{\upmpublic}
22 \incsubversion{\makedate{20}{06}{2014}}{Add the class option \texttt{standardlists}. Add the dependency to \texttt{environ}.}{\upmpublic}
23 \incversion{\makedate{09}{07}{2014}}{Add the environment \texttt{emphbox}.}{\upmpublic}
24 \incsubversion{\makedate{10}{09}{2014}}{Complete the documentation of \texttt{enumerate}.}{\upmpublic}
25 \incversion{\makedate{24}{04}{2015}}{Add explanations about the macros on the current language.}{\upmpublic}
26 \incversion{\makedate{10}{08}{2015}}{Add on enumeration counter saving mechanism.}{\upmpublic}
28 \addauthorvalidator*[galland@arakhne.org]{St{\'e}phane}{Galland}{Original Author}
29 \addauthor*{Frans}{van Dunn\'e}{Reviewer}
31 \setdockeywords{\LaTeX, Methodology Document Style, User Documentation, Extensible}
33 \setdocabstract{The packages in upmethodology enable users to write documents according to Unified Process Methodology or other methodology. It was initially wittren by St\'ephane \textsc{Galland} from the laboratory ``Syst\`emes et Transports'' and is distributed by the \arakhneorg website.}
36 \let\VERversion\upm@package@version@ver
37 \let\VERfmt\upm@package@fmt@ver
38 \let\VERdoc\upm@package@doc@ver
39 \let\VERfp\upm@package@fp@ver
40 \let\VERbp\upm@package@bp@ver
41 \let\VERext\upm@package@ext@ver
42 \let\VERtask\upm@package@task@ver
43 \let\VERdocclazz\upm@package@docclazz@ver
44 \let\VERcode\upm@package@code@ver
47 \setpublisher{Arakhn\^e.org Group}
48 \setcopyrighter{St\'ephane GALLAND}
49 \setprintingaddress{France}
50 \defupmlogo{arakhne_org_logo}
51 \defupmsmalllogo{arakhne_org_logo}
56 \declareupmtheorem{mytheorem}{My Theorem}{List of my Theorems}
66 %###########################################################
68 \chapter{Introduction}
71 \textcolor{red}{\large This documentation is written for and compiled by the\\version \UPMVERSION\\of tex-upmethodology.}
74 This set of packages enables users to write documents according to the Unified Process Methodology. It was initially written by St\'ephane \textsc{Galland} from the laboratory ``Syst\`emes et Transports''\savefootnote{Laboratory \emph{Syst\`emes et Transport} (IRTES-SET), Institut de Recherche sur le Transport, l'\'Energie et la Soci\'et\'e (ITRTES), Universit\'e de Technologie de Belfort-Montb{\'e}liard (UTBM), France, \href{http://set.utbm.fr/}{http://set.utbm.fr/}}{foot:setlab} and is distributed by the \arakhneorg website.
75 The provided packages and classes may also be used for other types of documents (reports, theses...). Since 2012, it is used to support the layout and the style for the PhD theses of the Doctoral School SPIM\footnote{Doctoral School on the Sciences for engineers, and microtechnics, \href{http://ed-spim.univ-fcomte.fr/}{http://ed-spim.univ-fcomte.fr/}}.
79 \item \texttt{upmethodology-version.sty}: makes it possible to set the version and the status of the document. It also makes it possible to manage the document history;
80 \item \texttt{upmethodology-fmt.sty}: provides some useful functions to format the UP documents;
81 \item \texttt{upmethodology-document.sty}: provides functions to manage the project, the subproject and the status of the document;
82 \item \texttt{upmethodology-frontpage.sty}: formats and provides a front page for the document;
83 \item \texttt{upmethodology-backpage.sty}: formats and provides a back page for the document;
84 \item \texttt{upmethodology-task.sty}: is the \LaTeXe\xspace package that provides macros to manage project's tasks.
85 \item \texttt{upmethodology-document.cls}: is the \LaTeXe\xspace class that provides the whole document specification. It is based on \texttt{book} and on the previous packages;
86 \item \texttt{upmethodology-code.sty}: provides macros for source code formatting;
87 \item \texttt{upmethodology-extension.sty}: provides macros for extension mechanism.
91 %###########################################################
92 \part{General User Documentation}
94 \chapter{Download and Installation}
96 This chapter describes where to download \texttt{tex-upmethodology} and how to install it.
100 \texttt{tex-upmethodology} is available on the \arakhneorg website: \url{http://www.arakhne.org/tex-upmethodology/}.
102 Different types of installation are available: manual installation, Debian packages.
104 \section{Manual System-wide Installation}
106 To make \texttt{tex-upmethodology} available to all users, copy the content of the \texttt{tex-upmethodology} archive inside one of your system texmf directory, usually one of:
108 \item \texttt{/usr/share/texmf-texlive/tex/latex/upmethodology},
109 \item \texttt{/usr/share/texmf/tex/latex/upmethodology}.
112 The second is to rebuild the \LaTeX\ databases by invoking on a console (Unix syntax us used): \\
113 \texttt{\$> sudo mktexlsr}\\
114 \texttt{\$> sudo update-updmap --quiet}\\
116 \texttt{sudo} is a standard Linux tool that allows authorized users to temporarily obtain the administration rights.
118 \section{Manual User-wide Installation}
120 To make \texttt{tex-upmethodology} available to one user, copy the content of the \texttt{tex-upmethodology} archive inside the \texttt{\$HOME/texmf} directory.
122 It is not required to rebuild the system-wide \LaTeX\ databases because the user's texmf are dynamically parsed by the \LaTeX\ distributions.
124 \section{Debian Package Installation}
126 Debian packages are available on \arakhneorg website: \url{http://www.arakhne.org/ubuntu.html}. Please follow the given rules.
128 \section{Package Dependencies}
130 This section contains the list of all the package dependencies for the \texttt{upmethodology} packages.
132 \subsection{upmethdology-backpage.sty}
134 \texttt{upmethodology-backpage} package depends on:
136 \item \texttt{upmethodology-extension}
137 \item \texttt{upmethodology-p-common}
140 \subsection{upmethdology-code.sty}
142 \texttt{upmethodology-code} package depends on:
144 \item \texttt{upmethodology-p-common}
147 \subsection{upmethdology-document.cls}
149 \texttt{upmethodology-document} class depends on:
151 \item \texttt{a4wide}
152 \item \texttt{hyperref}
153 \item \texttt{upmethodology-backpage}
154 \item \texttt{upmethodology-code}
155 \item \texttt{upmethodology-document}
156 \item \texttt{upmethodology-extension}
157 \item \texttt{upmethodology-frontpage}
158 \item \texttt{upmethodology-p-common}
159 \item \texttt{upmethodology-spec}
160 \item \texttt{upmethodology-task}
164 \subsection{upmethdology-document.sty}
166 \texttt{upmethodology-document} package depends on:
169 \item \texttt{upmethodology-extension}
170 \item \texttt{upmethodology-fmt}
171 \item \texttt{upmethodology-p-common}
172 \item \texttt{upmethodology-version}
173 \item \texttt{vmargin}
176 \subsection{upmethdology-extension.sty}
178 \texttt{upmethodology-extension} package depends on:
180 \item \texttt{upmethodology-p-common}
183 \subsection{upmethdology-fmt.sty}
185 \texttt{upmethodology-fmt} package depends on:
187 \item \texttt{amsmath}
188 \item \texttt{amsthm}
189 \item \texttt{colortbl}
190 \item \texttt{environ}
191 \item \texttt{graphicx}
192 \item \texttt{hyphenat}
193 \item \texttt{mathbb}
194 \item \texttt{multicol}
195 \item \texttt{picinpar}
196 \item \texttt{pifont}
197 \item \texttt{setspace}
198 \item \texttt{subfigure}
199 \item \texttt{tabularx}
200 \item \texttt{thmtools}
201 \item \texttt{txfonts}
202 \item \texttt{upmethodology-p-common}
203 \item \texttt{xkeyval}
206 \subsection{upmethdology-frontpage.sty}
208 \texttt{upmethodology-frontpage} package depends on:
210 \item \texttt{upmethodology-document}
211 \item \texttt{upmethodology-extension}
212 \item \texttt{upmethodology-p-common}
215 \subsection{upmethdology-p-common.sty}
217 \texttt{upmethodology-p-common} package depends on:
219 \item \texttt{ifthen}
220 \item \texttt{xcolor}
221 \item \texttt{xspace}
224 \subsection{upmethdology-spec.sty}
226 \texttt{upmethodology-spec} package depends on:
229 \item \texttt{upmethodology-code}
230 \item \texttt{upmethodology-fmt}
231 \item \texttt{upmethodology-p-common}
234 \subsection{upmethdology-task.sty}
236 \texttt{upmethodology-task} package depends on:
238 \item \texttt{upmethodology-p-common}
239 \item \texttt{upmethodology-version}
242 \subsection{upmethdology-version.sty}
244 \texttt{upmethodology-version} package depends on:
246 \item \texttt{upmethodology-fmt}
247 \item \texttt{upmethodology-p-common}
250 %###########################################################
251 \part{Package Documentation}
253 \chapter{Class upmethodology-document}
256 \texttt{Version: \VERdocclazz}
259 The \LaTeX\ class \texttt{upmethodology-document} provides the basic configuration for a document. According to an option, this class is able to extend the standard \texttt{book}, \texttt{report} or \texttt{article} \LaTeX\ classes. It also include several of the other \texttt{upmethdology} packages.
261 \section{Types of documents}\label{section:documentclass:doctype}
263 \texttt{upmethodology-document} supports three particular options, which permit to set the type of document:
265 \item \texttt{book}: A book-specification is a two-sided document composed of parts and chapters, and with a copyright page and document information page. This option indicates to \texttt{upmethodology-document} to load the \LaTeX\ standard \texttt{book} class. In addition the \texttt{{\textbackslash}part} and \texttt{{\textbackslash}chapter} macros are supported, and the following macros are automatically expanded: \texttt{{\textbackslash}makefrontcover}, \texttt{{\textbackslash}upmpublicationpage}, \texttt{{\textbackslash}upmdocumentsummary}, \texttt{{\textbackslash}makebackcover}. This behaviour may be overridden by the other class options.
267 \item \texttt{report}: A report-specification is a one-sided document composed of chapters (no part), and with a document information page. This option indicates to \texttt{upmethodology-document} to load the \LaTeX\ standard \texttt{report} class. In addition the \texttt{{\textbackslash}part} macro is ignored\savefootnote{The macro is redefined to print a warning message when used, no error message is generated.}{ignoretexmacro} and \texttt{{\textbackslash}chapter} macro is supported, and the following macros are automatically expanded: \texttt{{\textbackslash}makefrontcover}, \texttt{{\textbackslash}upmdocumentsummary}, \texttt{{\textbackslash}makebackcover}. This behaviour may be overridden by the other class options.
269 \item \texttt{article}: An article-specification is a one-sided document composed of sections (no part nor chapter). This option indicates to \texttt{upmethodology-document} to load the \LaTeX\ standard \texttt{article} class. In addition the \texttt{{\textbackslash}part} and \texttt{{\textbackslash}chapter} macros are ignored\reffootnote{ignoretexmacro}, and the following macros are automatically expanded: \texttt{{\textbackslash}makefrontcover}, \texttt{{\textbackslash}makebackcover}. This behaviour may be overridden by the other class options.
273 \section{Class options}
275 Table~\tabref{documentclassoptions} contains the options supported by \texttt{upmethodology-document}. Any option not explicitely supported by the class is directly pass to the underlying standard \LaTeX\ class (\texttt{book}, \texttt{report} or \texttt{article} according to the type of document, see~\ref{section:documentclass:doctype}).
277 \begin{mtable}{\linewidth}{2}{|l|X|}{Options of \texttt{upmethodology-document} class}{documentclassoptions}
279 \tabularheader{Option}{Explanation}
281 book & see section~\ref{section:documentclass:doctype}. \\
283 report & see section~\ref{section:documentclass:doctype}. \\
285 article & see section~\ref{section:documentclass:doctype}. \\
289 oneside & the document is generated assuming that each page will be printed on its recto side. This option overrides any previous occurrence of \texttt{twoside} option. \\
291 twoside & the document is generated assuming that each page will be printed on both recto and verso sides. This option overrides any previous occurrence of \texttt{oneside} option. \\
295 francais & same as \texttt{french}. \\
297 french & the document is written in French. \texttt{upmethodology} packages use the French translations for the generated texts. This option overrides any previous occurrence of \texttt{english} option. \\
299 english & the document is written in English. \texttt{upmethodology} packages use the English translations for the generated texts. This option overrides any previous occurrence of \texttt{french} option. \\
303 documentinfo & invoke \texttt{{\textbackslash}upmdocumentsummary}, \texttt{{\textbackslash}upmdocumentauthors}, \texttt{{\textbackslash}upmdocumentvalidators}, \texttt{{\textbackslash}upmdocumentinformedpeople}, and \texttt{{\textbackslash}upmhistory} macros at the begining of the document. This option overrides any previous occurrence of \texttt{nodocumentinfo} option. \\
305 nodocumentinfo & do not invoke \texttt{{\textbackslash}upmdocumentsummary}, \texttt{{\textbackslash}upmdocumentauthors}, \texttt{{\textbackslash}upmdocumentvalidators}, \texttt{{\textbackslash}upmdocumentinformedpeople}, nor \texttt{{\textbackslash}upmhistory} macros at the begining of the document. This option overrides any previous occurrence of \texttt{documentinfo} option. \\
309 pubpage & invoke \texttt{{\textbackslash}upmpublicationpage} macro at the begining of the document. This option overrides any previous occurrence of \texttt{nopubpage} option. \\
311 nopubpage & do not invoke \texttt{{\textbackslash}upmpublicationpage} macro at the begining of the document. This option overrides any
312 previous occurrence of \texttt{pubpage} option. \\
316 standardlist & disable the override of the lists (enumeration, etc.) for restoring the standard \LaTeX\ lists. \\
320 frontmatter & invoke \texttt{{\textbackslash}frontmatter} (and other related macros). \\
321 nofrontmatter & do not invoke \texttt{{\textbackslash}frontmatter} (and other related macros). \\
325 frontcover & put the cover page at the beginning of the document. \\
326 nofrontcover & do not put a cover page at the beginning of the document. \\
330 backcover & put the cover page at the end of the document. \\
331 nobackcover & do not put a cover page at the end of the document. \\
336 \section{Additional Features}
338 \texttt{upmethodology-document} provides a constant behaviour for all types of document:
340 \item \texttt{hyperref} is loaded and set with the document informations;
341 \item \texttt{{\textbackslash}setpdfcolor} is redefined and linked to \texttt{hyperref};
344 %###########################################################
346 \chapter{Package upmethodology-version}
349 \texttt{Version: \VERversion}
352 The package \texttt{upmethodology-version} makes it possible to set the version and the status of the document. It also provides functions to manage the document history;
354 \section{Constants for the Document Status}
356 Some \LaTeXe\xspace variables provides strings that describe the status of the document. They can be used in functions such as \texttt{{\textbackslash}updateversion}.
358 \item \texttt{{\textbackslash}upmrestricted}: the document is under a restricted access, generally corresponding to the list of authors;
359 \item \texttt{{\textbackslash}upmvalidable}: authors indicates with this flag that the document could be sent to validators;
360 \item \texttt{{\textbackslash}upmvalidated}: the document was validated, but not published;
361 \item \texttt{{\textbackslash}upmpublic}: the document published and accessible to all people;
364 \subsection{Information about the Document}
366 The following functions permit to access to the informations about the document:
368 \item \texttt{{\textbackslash}theupmversion}: replies the last version number for the document;
370 \item \texttt{{\textbackslash}upmdate\{version\}}: replies the updating date of the document corresponding to the given version number;
372 \item \texttt{{\textbackslash}upmdescription\{version\}}: replies the updating comment of the document corresponding to the given version number;
374 \item \texttt{{\textbackslash}upmstatus\{version\}}: replies the status of the document corresponding to the given version number.
376 \item \texttt{{\textbackslash}theupmdate}: replies the last updating date for the document. It is equivalent to \texttt{{\textbackslash}upmdate\{{\textbackslash}theupmversion\}};
378 \item \texttt{{\textbackslash}theupmlastmodif}: replies the last updating comment for the document. It is equivalent to \texttt{{\textbackslash}upmdescription\{{\textbackslash}theupmversion\}};
380 \item \texttt{{\textbackslash}theupmstatus}: replies the last status for the document. It is equivalent to \texttt{{\textbackslash}upmstatus\{{\textbackslash}theupmversion\}};
383 \section{Register Revisions}
385 The package \texttt{upmethodology-version} makes it possible to register revisions for building an history. The available functions are:
387 \item \texttt{{\textbackslash}updateversion\{version\}\{date\}\{description\}\{status\}}: registers a revision for the document. The revision indicates that the given version was produced at the given date. A small description of the changes and the resulting document's status must be also provided. The function \texttt{{\textbackslash}updateversion} is a generalization of the following functions;
389 \item \texttt{{\textbackslash}initialversion[version]\{date\}\{description\}\{status\}}: registers the initial version of the document. If not given, the version is assumed to be \texttt{0.1};
391 \item \texttt{{\textbackslash}incversion\{date\}\{description\}\{status\}}: registers a revision corresponding to the next major version. For example, if the version number was \texttt{2.67} before \texttt{{\textbackslash}incversion}, this function add the version \texttt{3.67} with the given informations (incrementation of the major part of the version number);
393 \item \texttt{{\textbackslash}incsubversion\{date\}\{description\}\{status\}}: registers a revision corresponding to the next minor version. For example, if the version number was \texttt{2.67} before \texttt{{\textbackslash}incsubversion}, this function add the version \texttt{2.68} with the given informations (incrementation of the minor part of the version number);
396 \section{Formatted List of Versions}
398 To obtain a formatted list of versions, you could use the macro \texttt{{\textbackslash}upmhistory[width]} which produces:
402 \section{Localization}
404 The following macros defines some localized strings used by \texttt{upmethodology-version}:
406 \item \texttt{{\textbackslash}upm@lang@date}: Date;
407 \item \texttt{{\textbackslash}upm@lang@updates}: Updates;
408 \item \texttt{{\textbackslash}upm@lang@version}: Version;
409 \item \texttt{{\textbackslash}upm@lang@version@history}: Version History;
412 %###########################################################
414 \chapter{Package upmethodology-fmt}
417 \texttt{Version: \VERfmt}
420 The package \texttt{upmethodology-fmt} provides some useful facilities to format a document.
422 \section{Default Configuration for the Package \texttt{graphicx}}
424 The package \texttt{graphicx} is included, and the following configuration is applied:
426 \item[Image extensions] By default, the supported image extensions ar, in the preference order: \texttt{pdf}, \texttt{png}, \texttt{jpg}, \texttt{jpeg}, \texttt{tiff}, \texttt{gif}. Note that, the \texttt{tiff} picture format is not always supported by the \TeX\ tools.
428 To redefine these extensions, you must invoke:\\
429 \texttt{{\textbackslash}DeclareGraphicsExtensions\{extensions\}} \\
430 where \texttt{extensions} must be replaced by a list of extensions separated by comas. \\
431 Example: \texttt{{\textbackslash}DeclareGraphicsExtensions\{.pdf,.png,.eps\}} \\
432 \item[Image search path] By default, the images are search inside the path "\texttt{./}". To redefine the search paths, you must invoke:
433 \texttt{{\textbackslash}graphicspath\{\{path1\},\{path2\},\{path3\}...\}} \\
434 where \texttt{path1}, \texttt{path2}, \texttt{path2}, etc. must be replaced by the names of the directories in which the images are located. The paths in the list are separated by comas. \emph{Do not forget to write a slash or a backslash character (depending on the path naming conventions for your operating system) at the end of each path.} \\
435 Example: \texttt{{\textbackslash}graphicspath\{\{./imgs/\},\{./imgs/auto/\}\}} \\
440 It may be verbose to put \LaTeX\ code to include a figure inside your document. To simplify your life, you could include a figure with the following macros: \\
441 \texttt{{\textbackslash}mfigure[position]\{include\_graphics\_options\}\{filename\}\{caption\}\{label\}} \\
442 \texttt{{\textbackslash}mfigure*[position]\{include\_graphics\_options\}\{filename\}\{caption\}\{label\}} \\
444 These two macros make it possible to include an image in your document. The parameters are:
446 \item \texttt{position}: is the desired position of the figure (see {\textbackslash}begin\{figure\}[position]). It could be \texttt{t} (top of the page), \texttt{b} (bottom of the page), \texttt{h} (at the macro location if possible) or \texttt{H} (at macro location);
448 \item \texttt{include\_graphics\_options}: are the options passed to \texttt{{\textbackslash}includegraphics};
450 \item \texttt{filename}: is the filename passed to \texttt{{\textbackslash}includegraphics};
452 \item \texttt{caption}: is the caption of the figure (see {\textbackslash}caption\{caption\});
454 \item \texttt{label}: is the label used to reference the figure (see {\textbackslash}label\{fig:label\}).
457 The difference between \texttt{{\textbackslash}mfigure} and \texttt{{\textbackslash}mfigure*} is the same as the difference between \texttt{{\textbackslash}begin\{figure\}} and \texttt{{\textbackslash}begin\{figure*\}}: the star-version fits to the entire paper width event if the document has two or more columns.
459 Because the two macros above register a label with string starting with \texttt{fig:}, we propose the following function to easily access to the figure's references:
461 \item \texttt{{\textbackslash}figref\{label\}}: is equivalent to \texttt{{\textbackslash}ref\{fig:label\}};
462 \item \texttt{{\textbackslash}figpageref\{label\}}: is equivalent to \texttt{{\textbackslash}pageref\{fig:label\}}.
465 The figure~\figref{example:mfigure} page~\figpageref{example:mfigure} is obtained with the macro: \texttt{{\textbackslash}mfigure[ht]\{width=.4{\textbackslash}linewidth\}\{slogo\}\{Example of figure inclusion with {\textbackslash}texttt\{\{{\textbackslash}textbackslash\}mfigure\}\}\{example:mfigure\}}. The reference and page reference are obtained with \texttt{{\textbackslash}figref\{example:mfigure\}} and \texttt{{\textbackslash}figpageref\{example:mfigure\}}.
467 \mfigure[ht]{width=.4\linewidth}{arakhne_org_logo}{Example of figure inclusion with \texttt{{\textbackslash}mfigure}}{example:mfigure}
469 \section{Sub-figures}
471 In some case, it is useful to put several images inside the same floating figure, but without loosing the possibility to reference each of the subfigures. This feature was proposed by the package \texttt{subfigure}. The following environments provides helper functions for \texttt{subfigure}:
472 \texttt{{\textbackslash}begin\{mfigures\}[position]\{caption\}\{label\}\\
474 {\textbackslash}end\{mfigures\}} \\
475 \texttt{{\textbackslash}begin\{mfigures*\}[position]\{caption\}\{label\}\\
477 {\textbackslash}end\{mfigures*\}} \\
479 These two macros enable you to include an image in your document. The parameters are:
481 \item \texttt{position}: is the desired position of the figure (see {\textbackslash}begin\{figure\}[position]). It could be \texttt{t} (top of the page), \texttt{b} (bottom of the page), \texttt{h} (at the macro location if possible) or \texttt{H} (at macro location);
483 \item \texttt{caption}: is the caption of the figure (see {\textbackslash}caption\{caption\});
485 \item \texttt{label}: is the label used to reference the figure (see {\textbackslash}label\{fig:label\}).
488 Inside the environment \texttt{{\textbackslash}mfigures[*]}, you could use the macro \texttt{{\textbackslash}mfigure} to properly include a subfigure (the first optional parameter is ignored), or you could use the macro \texttt{{\textbackslash}msubfigure\{options\}\{file\}\{caption\}}.
490 The figure~\figref{example:msubfigure} page~\figpageref{example:msubfigure} is obtained with the environment:\\
491 \texttt{{\textbackslash}begin\{mfigures\}\{Example of subfigures with {\textbackslash}texttt\{mfigures\}\}\{example:msubfigure\}}\\
492 \texttt{{\textbackslash}mfigure\{width=.4{\textbackslash}linewidth\}\{img1\}\{First subfigure\}\{example:firstsubfigure\}} \\
493 \texttt{{\textbackslash}hfill} \\
494 \texttt{{\textbackslash}msubfigure\{width=.4{\textbackslash}linewidth\}\{img2\}\{Second subfigure\}} \\
495 \texttt{{\textbackslash}end\{mfigures\}}
497 The reference and page reference are obtained with \texttt{{\textbackslash}figref\{example:msubfigure\}} and \texttt{{\textbackslash}figpageref\{example:msubfigure\}}.
499 \begin{mfigures}{Example of subfigures with \texttt{mfigures}}{example:msubfigure}
500 \mfigure{width=.4\linewidth}{arakhne_org_logo}{First subfigure}{example:firstsubfigure}
502 \msubfigure{width=.4\linewidth}{figure_and_tex}{Second subfigure}
505 The references to the subfigures could be obtained in two way:\nopagebreak\begin{itemize}
506 \item using the label given as the last parameter of \texttt{{\textbackslash}mfigure}, eg. the label \texttt{example:firstsubfigure} corresponds to \figref{example:firstsubfigure};
507 \item using the label of the enclosing figure to which the index of the subfigure could be appended (in its Roman representation and prefixed by the character ``\texttt{:}''), eg. the label \texttt{example:msubfigure:b} corresponds to \figref{example:msubfigure:b};
510 \section{Figures with embedded \TeX\xspace macros}
512 In several case it is useful to include \TeX\xspace macros inside a figure. It is possible to combine figures and \TeX\ macros. Several figure editors provide exporting features to obtain combined figures: \texttt{xfig}, \texttt{inkscape}, \texttt{GNU Plot}, etc. Basically, these tools create two files per source figure: \begin{itemize}
513 \item the figure in PDF or Postscript format (filename extensions, \texttt{.pdf} or \texttt{.ps}); and
514 \item a \TeX\ file that contains the macros to put over the figure, and that is including the generated figure. Its filename extension depends on the type of the figure: \texttt{.pdftex\_t} or \texttt{.pdf\_tex} for PDF, and \texttt{.pstex\_t} or \texttt{.ps\_tex} for Postscript.
516 To include this combined figure in your document, you simply need to include the generated \TeX\ file (see below for details).
518 \subsection{Include a Combined Picture/\TeX\ Figure}
520 To include a figure with \TeX\ macros inside, you must have: \begin{enumerate}
521 \item a Postcript figure (\texttt{.eps}), and a \TeX\ file \texttt{.pstex\_t} related to the Postscript figure; or
522 \item a PDF figure (\texttt{.pdf}), and a \TeX\ file \texttt{.pdftex\_t} related to the PDF figure.
525 With the \texttt{upmethodology-fmt} package, the inclusion of the figure with embedded \TeX\ macros is similar to the inclusion of figures with \texttt{{\textbackslash}includegraphics}. You must type the following macro: \\
526 \texttt{{\textbackslash}includegraphicswtex[options]\{filename\}} \\
527 where \texttt{options} must be one or more of: \begin{itemize}
528 \item \texttt{width=xxx}: specification of the width of the figure (\texttt{xxx} must be replaced by the length);
529 \item \texttt{height=xxx}: specification of the height of the figure (\texttt{xxx} must be replaced by the length);
532 If the \texttt{filename} given to the macro \texttt{{\textbackslash}includegraphicswtex} does not specify a filename extension, the macro tries to add the extensions \texttt{.pdftex\_t}, \texttt{.pstex\_t}, \texttt{.pdf\_tex}, or \texttt{.ps\_tex}, by default. If you want to specify other file extensions, you must use the macro:
533 \texttt{{\textbackslash}DeclareGraphicsExtensionsWtex\{extensions\}} \\
534 where the \texttt{extensions} is a list of file extensions (including the point character), separated by coma characters. \\
535 Example: \texttt{{\textbackslash}DeclareGraphicsExtensionsWtex\{.pdftex,.pstex\}}
537 If the \texttt{filename} does not correspond to a file on the disk, the macro \texttt{{\textbackslash}includegraphicswtex} tries to find the file in the directories specified in \texttt{{\textbackslash}graphicspath} (declared in the package \texttt{graphicx} for example). \\
538 Example: \texttt{{\textbackslash}graphicspath\{\{./imgs/\},\{./imgs/additional/\}\}} \\
539 \emph{Note that each of the given directories must be finished by the separation character of your operating system: \texttt{/} on Unix, \texttt{\textbackslash} on Windows. You must always use the Unix standard because it is assumed by a lot of \TeX\ compilers, even on Windows platforms.}
541 Figure~\figref{figure_and_tex} gives an example of a floating figure combined with \TeX\ macros, which is using the macro \texttt{{\textbackslash}includegraphicswtex}.
543 \subsection{Floating figure with embedded \TeX\ macros}
545 To put a floating figure with \TeX\xspace macro inside, you may use one of the macros:
546 \texttt{{\textbackslash}mfigurewtex[position]\{include\_graphics\_options\}\{filename\}\{caption\}\{label\}} \\
547 \texttt{{\textbackslash}mfigurewtex*[position]\{include\_graphics\_options\}\{filename\}\{caption\}\{label\}}
551 \item \texttt{position}: is the desired position of the figure (see {\textbackslash}begin{figure}[position]). It could be \texttt{t} (top of the page), \texttt{b} (bottom of the page), \texttt{h} (at the macro location if possible) or \texttt{H} (at macro location);
553 \item \texttt{include\_graphics\_options}: are the options to pass to \texttt{{\textbackslash}includegraphicswtex}. For ascendant compatibility, if you pass a length without a key, e.g. \texttt{\{.8{\textbackslash}linewidth\}}, the length is assumed to be the width of the figure;
555 \item \texttt{filename}: is the name of the file of the figure (see \texttt{{\textbackslash}includegraphicswtex} for details);
557 \item \texttt{caption}: is the caption of the figure (see {\textbackslash}caption\{caption\});
559 \item \texttt{label}: is the label used to reference the figure (see {\textbackslash}label\{fig:label\}).
562 The difference between \texttt{{\textbackslash}mfigurewtex} and \texttt{{\textbackslash}mfigurewtex*} is the same as the difference between \texttt{{\textbackslash}begin\{figure\}} and \texttt{{\textbackslash}begin\{figure*\}}: the star-version fits to the entire paper width event if the document has two or more columns.
564 Because the two macros above register a label with string starting with \texttt{fig:}, the macros \texttt{{\textbackslash}figref} and \texttt{{\textbackslash}figpageref} could be used.
566 \figmath{exampleofexpression}{t_i = \sum_i \left(\alpha + \beta\right)}
567 \mfigurewtex{.8\linewidth}{figure_and_tex}{Example of a figure combined with \TeX\ macros}{figure_and_tex}
569 Figure~\figref{figure_and_tex} gives an example of a floating figure combined with \TeX\ macros. Note that:
571 \item the title of the figure contains the macro \texttt{{\textbackslash}LaTeX}, which produces: \LaTeX;
572 \item a small equation, written in \TeX, is put between the two planes;
575 \subsection{Helpers for embedded \TeX}
577 To help you to put \TeX\ macros in a figure, and to define its real test inside the \LaTeX\ document, several functions are provided:
579 \item \texttt{{\textbackslash}figmath\{id\}\{expr\}} will associate to the given identifier the given mathematical expression,
580 \item \texttt{{\textbackslash}figtext\{id\}\{expr\}} will associate to the given identifier the given text expression;
583 These expressions, defined with the two previous functions, may be referenced in the figure by a \TeX\ macro with a name similar to \texttt{{\textbackslash}FIG$\delta$}, where $\delta$ must be replaced by an identifier of your choice and used as parameter of one of the two previous functions (example: \texttt{{\textbackslash}FIGmyid}).
585 Figure~\figref{figure_and_tex} gives an example where the equation is written as: \texttt{{\textbackslash}FIGexampleofexpression} in the figure, and it is replaced by the real equation with: \\
586 \texttt{{\textbackslash}figmath\{exampleofexpression\}\{t\_i = {\textbackslash}sum\_i {\textbackslash}left({\textbackslash}alpha + {\textbackslash}beta{\textbackslash}right)\}}
592 You could include a tabular inside your document with the following environment: \\
593 \texttt{{\textbackslash}begin\{mtabular\}[width]\{ncolumns\}\{columns\}...{\textbackslash}end\{mtabular\}} \\
595 This tabular is an extension of the \texttt{tabularx} environment which provides dynamic columns with the specifier \texttt{X}. The parameters are:
597 \item \texttt{width}: is the desired width of the tabular;
599 \item \texttt{ncolumns}: is the count of columns in the tabular. It must be consistent with the column description;
601 \item \texttt{columns}: is the description of the columns according to the \texttt{tabular} and \texttt{tabularx} packages.
607 You must note put any text nor \TeX\ macro before the first use of \texttt{{\textbackslash}tabulartitle} or \texttt{{\textbackslash}tabularheader}. Otherwhise, you will obtain an \TeX\ error.
611 The \texttt{mtabular} environment provides:
613 \item \texttt{{\textbackslash}tabulartitle\{title\}} \\
614 This macro allows you to define the title of the tabular. It uses the colors \texttt{backtableheader} and \texttt{fronttableheader} for the background and the foreground respectively. The title has a single line at the top, and a single line below;
616 \item \texttt{{\textbackslash}tabulartitleinside\{title\}} \\
617 This macro allows you to define the title of the tabular. It uses the colors \texttt{backtableheader} and \texttt{fronttableheader} for the background and the foreground respectively. The title has two lines at the top, and a single line below;
619 \item \texttt{{\textbackslash}tabularheader\{$header_1$\}...\{$header_n$\}} \\
620 This macro allows you to define the titles of the columns. It uses the colors \texttt{backtableheader} and \texttt{fronttableheader} for the background and the foreground respectively. Because the count of columns was given to the environment this function takes the same count of parameters as the count of columns. This macro adds a line after the header, \emph{BUT NOT BEFORE}.
622 Because \texttt{{\textbackslash}tabularheader} is adding a \texttt{{\textbackslash}hline} at the end of its expansion. You must put a \texttt{{\textbackslash}tabularheader} just after \texttt{{\textbackslash}tabularheader}. Otherwise you may obtain a \TeX\ error.
625 \item \texttt{{\textbackslash}tabularrowheader\{title\}} \\
626 This macro is designed to be used in the first cell of a row. It is rendering the cell as a row's header.
628 \item \texttt{{\textbackslash}tabulartitlespec\{column\_spec\}} \\
629 This macro defines the specification of the column used to render the title of the table.
630 The default value of the column specification is $|$\texttt{c}$|$.
634 The following example of table is obtained by: \\
636 \begin{mtabular}[\linewidth]{4}{lXrX}
637 \tabulartitle{Example of \texttt{mtabular}}
638 \tabularheader{Col1}{Col2}{Col3}{Col4}
642 \tabulartitleinside{Example of second title in the table}
644 \tabularrowheader{i} & j & k & l \\
645 \tabularheader{Col1-2}{Col2-2}{Col3-2}{Col4-2}
650 \begin{mtabular}[\linewidth]{4}{lXrX}
651 \tabulartitle{Example of \texttt{mtabular}}
652 \tabularheader{Col1}{Col2}{Col3}{Col4}
656 \tabulartitleinside{Example of second title in the table}
658 \tabularrowheader{i} & j & k & l \\
659 \tabularheader{Col1-2}{Col2-2}{Col3-2}{Col4-2}
665 You could include a table inside your document with the following environment: \\
666 \texttt{{\textbackslash}begin\{mtable\}[options]\{width\}\{ncolumns\}\{columns\}\{caption\}\{label\}...{\textbackslash}end\{mtable\}} \\
668 This environment is based on the \texttt{mtabular} environment. The parameters are:
670 \item \texttt{options}: are the options to pass to the \texttt{mtable} environment: \begin{itemize}
671 \item a table placement composed of one or more of the following characters. The order in which the placement options are specified does not make any difference, as the placement options are always attempted in the order \texttt{h-t-b-p}. Thus \texttt{[hb]} and \texttt{[bh] }are both attempted as \texttt{h-b}. The more float placement options are given to \LaTeX, the better it handles float placement. Consequently, and because we want a simple \TeX\ code in the background, all the permutations are not supported by the \texttt{mtable} environment. We recommend to put placement letters in the order they appear in the following list: \begin{itemize}
673 \item \texttt{h}: Place the float here, i.e., approximately at the same point it occurs in the source text (however, not exactly at the spot),
674 \item \texttt{t}: Position at the top of the page,
675 \item \texttt{b}: Position at the bottom of the page,
676 \item \texttt{p}: Put on a special page for floats only,
677 \item \texttt{H}: Places the float at precisely the location in the \LaTeX\ code. Requires the \texttt{float} package. This is somewhat equivalent to \texttt{h!}.;
678 \item \texttt{!}: Override internal parameters \LaTeX\ uses for determining ``good'' float positions,
680 If you specify more than one table placement in the options, the last one is used.
681 \item \texttt{size=\string<macro\string>}: specify the size of the text in the table (by default, \texttt{{\textbackslash}normalsize});
683 \item \texttt{width}: is the desired width of the table (ie., the tabular inside the table);
684 \item \texttt{ncolumns}: is the count of columns in the table (ie., the tabular inside the table). It must be consistent with the column description;
685 \item \texttt{columns}: is the description of the columns according to the \texttt{tabular} and \texttt{tabularx} packages;
686 \item \texttt{caption}: is the caption of the table;
687 \item \texttt{label}: is the label referencing the table.
690 Because the \texttt{mtable} environment registers a label with a string starting with \texttt{tab:}, the following functions are proposed to easily access to the table's references:
692 \item \texttt{{\textbackslash}tabref\{label\}}: is equivalent to \texttt{{\textbackslash}ref\{tab:label\}};
693 \item \texttt{{\textbackslash}tabpageref\{label\}}: is equivalent to \texttt{{\textbackslash}pageref\{tab:label\}}.
696 The table~\tabref{example:mtable} page~\tabpageref{example:mtable} is an illustration of the following \LaTeX\ code: \\
697 \texttt{{\textbackslash}begin\{mtable\}\{{\textbackslash}linewidth\}\{4\}\{lXrX\}\{Example of {\textbackslash}texttt{mtable}\}\{example:mtable\}} \\
698 %\texttt{{\textbackslash}tabulartitle\{Example of {\textbackslash}texttt\{mtable\}\}} \\
699 \texttt{{\textbackslash}captionastitle} \\
700 \texttt{{\textbackslash}tabularheader\{Col1\}\{Col2\}\{Col3\}\{Col4\}} \\
701 \texttt{a \& b \& c \& d {\textbackslash}{\textbackslash}} \\
702 \texttt{{\textbackslash}hline} \\
703 \texttt{e \& f \& g \& h {\textbackslash}{\textbackslash}} \\
704 \texttt{{\textbackslash}end\{mtable\}}
706 \begin{mtable}{\linewidth}{4}{lXrX}{Example of \texttt{mtable}}{example:mtable}
707 %\tabulartitle{Example of \texttt{mtable}}
709 \tabularheader{Col1}{Col2}{Col3}{Col4}
715 The macro \texttt{{\textbackslash}captionastitle} is equivalent to a call to the macro \texttt{{\textbackslash}tabulartitle} with the caption in parameter.
718 \section{Enumerations}
720 The package \texttt{upmethodology-fmt} provides a set of macros dedicated to enumeration lists.
722 \subsection{Enumeration Counters}
724 Sometimes it is useful to start an enumeration list from a specific given number. This package provides several macros for saving and restoring the counter use by the enumeration lists.
727 Only once counter could be saved at a given time.
728 It means that you cannot save the counters for an enumeration and for an enclosing enumeration at the same time.
731 Two general macros are defined for helping you to save a counter value into the global variable:
733 \item \texttt{{\textbackslash}savecounter\{name\}} \\
734 save the value of the counter identified by the given name in a global variable.
735 The name of the counter must be previously defined with one of thee standard \LaTeX\ or \TeX\ macros, e.g. \texttt{{\textbackslash}newcounter};
736 \item \texttt{{\textbackslash}restorecounter\{name\}} \\
737 put the previously saved value into the counter with the given name.
738 The name of the counter must be previously defined with one of thee standard \LaTeX\ or \TeX\ macros, e.g. \texttt{{\textbackslash}newcounter};
741 The counter is extensively used in enumeration lists. The following macros will help you for managing the enumeration counter:
743 \item \texttt{{\textbackslash}setenumcounter\{value\}} \\
744 force the value of the counter used by the enumeration environments;
745 \item \texttt{{\textbackslash}getenumcounter} \\
746 replies the value of the counter used by the enumeration environments;
747 \item \texttt{{\textbackslash}saveenumcounter} \\
748 save the value of the counter used by the enumeration environment with \texttt{{\textbackslash}savecounter};
749 \item \texttt{{\textbackslash}restoreenumcounter} \\
750 restore the value of the counter used by the enumeration environment with \texttt{{\textbackslash}restorecounter}.
753 \paragraph{Example:} The following \LaTeX~code produces the result below:
755 This is a text: \begin{enumerate}
756 \item This is an item.
757 \item This is another item.
760 This is a text in the between.
763 \item The list goes on
766 This is a second text in the between.
769 \item The list goes on again
771 \end{enumerate} This is the text after.
774 \fbox{\parbox{\linewidth}{
775 This is a text: \begin{enumerate}
776 \item This is an item.
777 \item This is another item.
780 This is a text in the between.
783 \item The list goes on
786 This is a second text in the between.
789 \item The list goes on again
791 \end{enumerate} This is the text after.
794 \subsection{Inline Enumeration}
796 In several document, an enumeration of things is written inside a paragraph instead of inside a list of points.
798 \paragraph{Example:} The following \LaTeX~code produces the result below:
800 This is a text: \begin{inlineenumeration}
804 \end{inlineenumeration} This is the text after.
807 This is a text: \begin{inlineenumeration}
811 \end{inlineenumeration} This is the text after.
813 \section{Environment \texttt{description}}
815 The environment \texttt{description} is redefined as following:
817 \begin{description}[separator]
821 The text put in place of \texttt{desc} represents the text which may be emphasized in the description item.
822 The \texttt{separator} is the text that is inserted at the end of the head of each description item.
825 \paragraph{Example~1:} The following \LaTeX~code, using Roman numbers, produces the description just below:
828 \item[first thing] this is a text for the first thing;
829 \item[second thing] this is a text for the second thing;
835 \item[first thing] this is a text for the first thing;
836 \item[second thing] this is a text for the second thing;
840 \paragraph{Example~2:} The following \LaTeX~code produces the description just below:
842 \begin{description}[///]
843 \item[first thing] this is a text for the first thing;
844 \item[second thing] this is a text for the second thing;
849 \begin{description}[///]
850 \item[first thing] this is a text for the first thing;
851 \item[second thing] this is a text for the second thing;
855 \section{Descriptions in conjunction with enumeration}
857 It may be helpful to put a list of descriptions in conjunction with an enumeration.
858 In other words, the following environment provides a mix between the standards \LaTeX~environments \texttt{description} and \texttt{enumerate}.
860 \subsection{Environment \texttt{enumdescription}}
862 The environment \texttt{enumdescription} is:
864 \begin{enumdescription}[type]
866 \end{enumdescription}
868 where the \texttt{type} is the type of the enumeration. It may be one of:
870 \item ``\texttt{i}'': for an enumeration with Roman numbers (this is the default),
871 \item ``\texttt{1}'': for an enumeration with Arabic numbers,
872 \item ``\texttt{a}'': for an enumeration with letters.
874 The text put in place of \texttt{desc} represents the text which may be emphasized in the description item.
877 To change the rendering of the labels, you must redefined the macro as:
879 \renewcommand{\enumdescriptionlabel}[1]{ ... #1 ... }
882 To change the separator between the counter and the description, you must redefined the macro as:
884 \renewcommand{\enumdescriptioncounterseparator}{ ... }
887 To change the separator between the description and the rest of the text, you must redefined the macro as:
889 \renewcommand{\enumdescriptionlabelseparator}{ ... }
892 \paragraph{Example~1:} The following \LaTeX~code, using Roman numbers, produces the enumerated description just below:
894 \begin{enumdescription}
895 \item[first thing] this is a text for the first thing;
896 \item[second thing] this is a text for the second thing;
898 \end{enumdescription}
901 \begin{enumdescription}
902 \item[first thing] this is a text for the first thing;
903 \item[second thing] this is a text for the second thing;
905 \end{enumdescription}
907 \paragraph{Example~2:} The following \LaTeX~code, using numeric numbers, produces the enumerated description just below:
909 \begin{enumdescription}[1]
910 \item[first thing] this is a text for the first thing;
911 \item[second thing] this is a text for the second thing;
913 \end{enumdescription}
916 \begin{enumdescription}[1]
917 \item[first thing] this is a text for the first thing;
918 \item[second thing] this is a text for the second thing;
920 \end{enumdescription}
922 \paragraph{Example~3:} The following \LaTeX~code, using letter numbers, produces the enumerated description just below:
924 \begin{enumdescription}[a]
925 \item[first thing] this is a text for the first thing;
926 \item[second thing] this is a text for the second thing;
928 \end{enumdescription}
931 \begin{enumdescription}[a]
932 \item[first thing] this is a text for the first thing;
933 \item[second thing] this is a text for the second thing;
935 \end{enumdescription}
937 \subsection{Environment \texttt{enumerate}}
939 The environment \texttt{enumerate} exists in the standard \LaTeX\ distributions.
940 The UPM package redefines this environment to provide a behavior similar to the one of the environment \texttt{enumdescription}.
942 Additionally, you could specify the format of the counter in the first optional parameter. This format is a text in which the first occurrence of one of the following characters is replaced by the value of the counter with the associated number format:
944 \item \texttt{1}: the counter is an arabic number;
945 \item \texttt{a}: the counter is a sequence of lower-case alphabetic letters;
946 \item \texttt{A}: the counter is a sequence of upper-case alphabetic letters;
947 \item \texttt{i}: the counter is a lower-case roman number;
948 \item \texttt{I}: the counter is an upper-case roman number.
951 \paragraph{Example~1:} The following \LaTeX~code produces a list, which is similar to the one generated by the standard \LaTeX\ environment \texttt{enumerate}:
954 \item this is a text for the first thing;
955 \item this is a text for the second thing;
961 \item this is a text for the first thing;
962 \item this is a text for the second thing;
966 \paragraph{Example~2:} The following \LaTeX~code illustrates how the environment is reacting to a given description:
969 \item this is a text for the first thing;
970 \item[description] this is a text for the second thing;
976 \item this is a text for the first thing;
977 \item[description] this is a text for the second thing;
981 \paragraph{Example~3:} The following \LaTeX~code illustrates the alphabetic counter specification. Note that the parenthesis characters are directly rendered in the list:
983 \begin{enumerate}[(a)]
984 \item this is a text for the first thing;
985 \item this is a text for the second thing;
990 \begin{enumerate}[(a)]
991 \item this is a text for the first thing;
992 \item this is a text for the second thing;
996 \paragraph{Example~4:} The following \LaTeX~code illustrates the roman counter specification. Note that the dot character is directly rendered in the list:
998 \begin{enumerate}[I.]
999 \item this is a text for the first thing;
1000 \item this is a text for the second thing;
1005 \begin{enumerate}[I.]
1006 \item this is a text for the first thing;
1007 \item this is a text for the second thing;
1011 \subsection{Environment \texttt{enumdescriptionx}}
1013 The environment \texttt{enumdescriptionx} extends the environment \texttt{enumdescription} by enabling a finer configuration with more parameters.
1016 The environment \texttt{enumdescriptionx} is:
1018 \begin{enumdescriptionx}[type]{counter\_prefix}{counter\_postfix}
1020 \end{enumdescriptionx}
1022 where the \texttt{type} is the type of the enumeration. It may be one of:
1024 \item ``\texttt{i}'': for an enumeration with Roman numbers (this is the default),
1025 \item ``\texttt{1}'': for an enumeration with Arabic numbers,
1026 \item ``\texttt{a}'': for an enumeration with letters.
1028 The text put in place of \texttt{desc} represents the text which may be emphasized in the description item.
1029 The text \texttt{counter\_prefix} is put before all the counter values in the enumeration.
1030 The text \texttt{counter\_postfix} is put after all the counter values in the enumeration.
1033 To change the rendering of the labels, you must redefined the macro as:
1035 \renewcommand{\enumdescriptionlabel}[1]{ ... #1 ... }
1039 \paragraph{Example:} The following \LaTeX~code, using letter numbers, produces the enumerated description just below:
1041 \begin{enumdescriptionx}[a]{$\langle$}{$\rangle$}
1042 \item[first thing] this is a text for the first thing;
1043 \item[second thing] this is a text for the second thing;
1045 \end{enumdescriptionx}
1048 \begin{enumdescriptionx}[a]{$\langle$}{$\rangle$}
1049 \item[first thing] this is a text for the first thing;
1050 \item[second thing] this is a text for the second thing;
1052 \end{enumdescriptionx}
1057 The package \texttt{upmethodology-fmt} provides a set of macros allowing to save the reference number of a footnote and to recall this reference many time as required.
1060 \item \texttt{{\textbackslash}savefootnote\{footnote text\}\{footnote id\}} \\
1061 put a footnote and mark it with the corresponding label. \\
1062 Example: \texttt{{\textbackslash}savefootnote\{This is an example of a recallable footnote\}\{footrecalla\}}\savefootnote{This is an example of a recallable footnote}{footrecalla};
1063 \item \texttt{{\textbackslash}savefootnote*\{footnote text\}\{footnote id\}} \\
1064 mark a footnote with the corresponding label but do not put in the current page. \\
1065 Example 1: \texttt{{\textbackslash}savefootnote*\{This is a second example of a recallable footnote\}\{footrecallb\}}\savefootnote*{This is a second example of a recallable footnote}{footrecallb}; \\
1066 Example 2: \texttt{{\textbackslash}savefootnote*\{This is a third example of a recallable footnote\}\{footrecallc\}}\savefootnote*{This is a third example of a recallable footnote}{footrecallc}.
1067 \item \texttt{{\textbackslash}reffootnote\{footnote id\}} \\
1068 recall the footnote reference without page number. \\
1069 Example 1: \texttt{{\textbackslash}reffootnote\{footrecalla\}}\reffootnote{footrecalla}$=B$; \\
1070 example 2: \texttt{{\textbackslash}reffootnote\{footrecallb\}}\reffootnote{footrecallb}$=A$; \\
1071 example 4: \texttt{{\textbackslash}reffootnote\{footrecalld\}}\reffootnote{footrecalld}$=?$.
1072 \item \texttt{{\textbackslash}reffootnote*\{footnote id\}} \\
1073 recall the footnote reference with the page number if different of the current page. \\
1074 Example 1: \texttt{{\textbackslash}reffootnote*\{footrecalla\}}\reffootnote*{footrecalla}; \\
1075 example 2: \texttt{{\textbackslash}reffootnote*\{footrecallb\}}\reffootnote*{footrecallb}; \\
1076 example 3: \texttt{{\textbackslash}reffootnote*\{footrecallc\}}\reffootnote*{footrecallc}; \\
1077 example 4: \texttt{{\textbackslash}reffootnote*\{footrecalld\}}\reffootnote*{footrecalld}.
1080 \section{UML diagrams on the side of paragraphs}
1082 The package \texttt{upmethodology-fmt} provides an environment that makes it possible to put an UML diagram (or any other picture) on the side of a paragraph.
1085 \item \texttt{{\textbackslash}begin\{umlinpar\}[width]\{picture\_path\}}\\\texttt{text}\\\texttt{{\textbackslash}end\{umlinpat\}} \\
1086 put the specified picture on the side of the given text. The optional parameter \texttt{width} corresponds to the desired width ofthe picture. By default it is \texttt{.5{\textbackslash}linewidth}.
1089 \begin{umlinpar}{figure_and_tex}
1090 This paragraph is an typical example of the usage of the environment \texttt{umlinpar}. To obtain it, the following \LaTeX\ code was typed: \\
1091 \texttt{{\textbackslash}begin\{umlinpar\}\{smalllogo\}} \\
1092 \texttt{This paragraph is an typical example of the usage of the environment {\textbackslash}texttt\{umlinpar\}.} \\
1093 \texttt{{\textbackslash}end\{umlinpar\}} \\
1096 \section{Date formatting}
1098 Because the concept of date was important and unfortunately localized, this package provides a set of functions to define and extract information from dates (the supported date formats are described in table~\ref{tab:date.formats}):
1101 \item \texttt{{\textbackslash}makedate\{day\}\{month\}\{year\}}\\
1102 allows you to create the text corresponding to the given date according to the current localized date format.
1103 \item \texttt{{\textbackslash}extractyear\{formatted\_date\}}\\
1104 extract the year field from a date respecting the localized date format.
1105 \item \texttt{{\textbackslash}extractmonth\{formatted\_date\}}\\
1106 extract the month field from a date respecting the localized date format.
1107 \item \texttt{{\textbackslash}extractday\{formatted\_date\}}\\
1108 extract the day field from a date respecting the localized date format.
1113 \begin{tabular}{|>{\ttfamily}l|l|}
1115 yyyy/mm/dd & default format \\
1116 %mm/dd/yyyy & US format \\
1117 dd/mm/yyyy & french format \\
1121 \caption{List of supported date formats}
1122 \label{tab:date.formats}
1125 \section{Text formatting}
1127 The package \texttt{upmethodology-fmt} provides a set of macros to format the text.
1130 \item \texttt{{\textbackslash}textsup\{text\}} \\
1131 put a text as exponent in text mode instead of the basic \LaTeX exponent in math mode. In opposite to the standard \LaTeX\ macro \texttt{{\textbackslash}textsuperscript}, this macro adds an extra space after the macro when needed. \\
1132 Example: \texttt{{\textbackslash}textsup\{this is an exponent\}}\textsup{this is an exponent}this is the following text;
1133 \item \texttt{{\textbackslash}textup\{text\}} \\
1134 same as \texttt{{\textbackslash}textsup}.
1135 \item \texttt{{\textbackslash}textsub\{text\}} \\
1136 put a text as indice in text mode instead of the basic \LaTeX indice in math mode. In opposite to \texttt{{\textbackslash}textsubscript}, this macro adds an extra space after the macro when needed. In opposite to \texttt{{\textbackslash}textdown}, the size of the text is not changed in the text down. \\
1137 Example: \texttt{{\textbackslash}textsub\{this is an indice\}}\textsub{this is an indice}this is the following text;
1138 \item \texttt{{\textbackslash}textdown\{text\}} \\
1139 put a text as indice in text mode instead of the basic \LaTeX indice in math mode. In opposite to \texttt{{\textbackslash}textsubscript}, this macro adds an extra space after the macro when needed. In opposite to \texttt{{\textbackslash}textsub}, the size of the text is changed in the text down. \\
1140 Example: \texttt{{\textbackslash}textdown\{this is an indice\}}\textdown{this is an indice}this is the following text;
1141 \item \texttt{{\textbackslash}textsubscript\{text\}} \\
1142 put a text as indice in text mode instead of the basic \LaTeX indice in math mode. As for the standard \LaTeX\ macro \texttt{{\textbackslash}textsuperscript}, this macro does not add an extra space after the macro. \\
1143 Example: \texttt{{\textbackslash}textsubscript\{this is an indice\}}\textsubscript{this is an indice}this is the following text;
1144 \item \texttt{{\textbackslash}Emph\{text\}} \\
1145 put a \emph{very important} text. This macro is similar to the standard \LaTeX\ macro \texttt{{\textbackslash}emph}. The difference is: \texttt{{\textbackslash}emph} is for ``important things''; and \texttt{{\textbackslash}Emph} is for ``very important things''.\\
1146 Example: This text is \texttt{{\textbackslash}emph\{important\}}, but this one is \texttt{{\textbackslash}Emph\{very important\}} \\
1147 gives: This text is \emph{important}, but this one is \Emph{very important};
1148 \item \texttt{{\textbackslash}makename[von]\{first name\}\{last name\}} \\
1149 format the specified people name components according to the document standards. By default, the format \texttt{first von last} is used. \\
1150 Example: \texttt{{\textbackslash}makename[von]\{Ludwig Otto Frederik Wilhelm\}\{Wittelsbach\}},\\
1151 ``\makename[von]{Ludwig Otto Frederik Wilhelm}{Wittelsbach}'';
1152 \item \texttt{{\textbackslash}upmmakename[von]\{first name\}\{last name\}\{separator\}} \\
1153 format the specified people name components according to the document standards. By default, the format \texttt{first von last} is used. \\
1154 Example: \texttt{{\textbackslash}upmmakename[von]\{Ludwig Otto Frederik Wilhelm\}\{Wittelsbach\}\{/\}}, \\
1155 ``\upmmakename[von]{Ludwig Otto Frederik Wilhelm}{Wittelsbach}{/}'';
1156 \item \texttt{{\textbackslash}makenamespacing\{name\}} \\
1157 format the specified name to be sure that the spaces after the points of the initials are demi-spaces. \\
1158 Example: \texttt{{\textbackslash}makenamespacing\{S\string.G\string.\}Galland}, \\
1159 ``\makenamespacing{S.G.}Galland'';
1160 \item \texttt{{\textbackslash}makelastname\{name\}} \\
1161 format the specified last/family name. \\
1162 Example: \texttt{{\textbackslash}makelastname\{Galland\}}, \\
1163 ``\makelastname{Galland}'';
1164 \item \texttt{{\textbackslash}makefirstname\{name\}} \\
1165 format the specified first name. \\
1166 Example: \texttt{{\textbackslash}makefirstname\{St\'ephane\}}, \\
1167 ``\makefirstname{St\'ephane}'';
1168 \item \texttt{{\textbackslash}prname[von]\{first name\}\{last name\}} \\
1169 \texttt{{\textbackslash}prname*[von]\{first name\}\{last name\}} \\
1170 format the specified people name components according to the document standards for \emph{Professor} title. By default, the format \texttt{first von last} is used. The star-ed version is post-fixed, the non-star-ed version is prefixed. \\
1171 Example 1: \texttt{{\textbackslash}prname\{Pierre\}\{Martin\}}, ``\prname{Pierre}{Martin}''; \\
1172 Example 2: \texttt{{\textbackslash}prname*\{Pierre\}\{Martin\}}, ``\prname*{Pierre}{Martin}'';
1173 \item \texttt{{\textbackslash}drname[von]\{first name\}\{last name\}} \\
1174 \texttt{{\textbackslash}drname*[von]\{first name\}\{last name\}} \\
1175 format the specified people name components according to the document standards for \emph{Doctor} title. By default, the format \texttt{first von last} is used. The star-ed version is post-fixed, the non-star-ed version is prefixed. \\
1176 Example 1: \texttt{{\textbackslash}drname\{Pierre\}\{Martin\}}, ``\drname{Pierre}{Martin}''; \\
1177 Example 2: \texttt{{\textbackslash}drname*\{Pierre\}\{Martin\}}, ``\drname*{Pierre}{Martin}'';
1178 \item \texttt{{\textbackslash}phdname[von]\{first name\}\{last name\}} \\
1179 \texttt{{\textbackslash}phdname*[von]\{first name\}\{last name\}} \\
1180 format the specified people name components according to the document standards for \emph{Philosophi\ae Doctor} title. By default, the format \texttt{first von last} is used. The star-ed version is post-fixed, the non-star-ed version is prefixed. \\
1181 Example 1: \texttt{{\textbackslash}phdname\{Pierre\}\{Martin\}}, ``\phdname{Pierre}{Martin}''; \\
1182 Example 2: \texttt{{\textbackslash}phdname*\{Pierre\}\{Martin\}}, ``\phdname*{Pierre}{Martin}'';
1183 \item \texttt{{\textbackslash}scdname[von]\{first name\}\{last name\}} \\
1184 \texttt{{\textbackslash}scdname*[von]\{first name\}\{last name\}} \\
1185 format the specified people name components according to the document standards for \emph{Scienti\ae Doctor} title. By default, the format \texttt{first von last} is used. The star-ed version is post-fixed, the non-star-ed version is prefixed. \\
1186 Example 1: \texttt{{\textbackslash}scdname\{Pierre\}\{Martin\}}, ``\scdname{Pierre}{Martin}''; \\
1187 Example 2: \texttt{{\textbackslash}scdname*\{Pierre\}\{Martin\}}, ``\scdname*{Pierre}{Martin}'';
1188 \item \texttt{{\textbackslash}mdname[von]\{first name\}\{last name\}} \\
1189 \texttt{{\textbackslash}mdname*[von]\{first name\}\{last name\}} \\
1190 format the specified people name components according to the document standards for \emph{Medicin\ae Doctor} title. By default, the format \texttt{first von last} is used. The star-ed version is post-fixed, the non-star-ed version is prefixed. \\
1191 Example 1: \texttt{{\textbackslash}mdname\{Pierre\}\{Martin\}}, ``\mdname{Pierre}{Martin}''; \\
1192 Example 2: \texttt{{\textbackslash}mdname*\{Pierre\}\{Martin\}}, ``\mdname*{Pierre}{Martin}'';
1193 \item \texttt{{\textbackslash}pengname[von]\{first name\}\{last name\}} \\
1194 \texttt{{\textbackslash}pengname*[von]\{first name\}\{last name\}} \\
1195 format the specified people name components according to the document standards for \emph{Professional/Chartered Engineer} title. By default, the format \texttt{first von last} is used. The star-ed version is post-fixed, the non-star-ed version is prefixed. \\
1196 Example 1: \texttt{{\textbackslash}pengname\{Pierre\}\{Martin\}}, ``\pengname{Pierre}{Martin}''; \\
1197 Example 2: \texttt{{\textbackslash}pengname*\{Pierre\}\{Martin\}}, ``\pengname*{Pierre}{Martin}'';
1198 \item \texttt{{\textbackslash}iengname[von]\{first name\}\{last name\}} \\
1199 \texttt{{\textbackslash}iengname*[von]\{first name\}\{last name\}} \\
1200 format the specified people name components according to the document standards for \emph{Incorporated Engineer} title. By default, the format \texttt{first von last} is used. The star-ed version is post-fixed, the non-star-ed version is prefixed. \\
1201 Example 1: \texttt{{\textbackslash}iengname\{Pierre\}\{Martin\}}, ``\iengname{Pierre}{Martin}''; \\
1202 Example 2: \texttt{{\textbackslash}iengname*\{Pierre\}\{Martin\}}, ``\iengname*{Pierre}{Martin}''.
1208 \subsection{Symbols in Text Mode}
1210 The package \texttt{upmethodology-fmt} provides several symbols in text mode, and described inside the table~\ref{tab:symbols:text}.
1214 \begin{tabular}{|>{\ttfamily}l|l|}
1216 {\textbackslash}arakhneorg & \arakhneorg \\
1217 {\textbackslash}copyright & \copyright \\
1218 {\textbackslash}trademark & \trademark \\
1219 {\textbackslash}regmark & \regmark \\
1220 {\textbackslash}smalltrade & \smalltrade \\
1221 {\textbackslash}smallreg & \smallreg \\
1222 {\textbackslash}smallcopy & \smallcopy \\
1223 {\textbackslash}ust & \ust \\
1224 {\textbackslash}und & \und \\
1225 {\textbackslash}urd & \urd \\
1226 {\textbackslash}uth & \uth \\
1230 \caption{List of symbols}
1231 \label{tab:symbols:text}
1234 \subsection{Symbols in Math Mode}
1236 The package \texttt{upmethodology-fmt} provides several symbols in math mode, and described inside the table~\ref{tab:symbols:math}.
1240 \begin{tabular}{|>{\ttfamily}l|l|}
1242 \multicolumn{2}{|c|}{Sets} \\
1244 {\textbackslash}R & \R \\
1245 {\textbackslash}N & \N \\
1246 {\textbackslash}Z & \Z \\
1247 {\textbackslash}Q & \Q \\
1248 {\textbackslash}C & \C \\
1249 {\textbackslash}powerset p & $\powerset p$ \\
1251 \multicolumn{2}{|c|}{Operators} \\
1253 {\textbackslash}sgn expr & $\sgn expr$ \\
1257 \caption{List of symbols}
1258 \label{tab:symbols:math}
1261 \section{Bibliography}
1263 The package \texttt{upmethodology-fmt} provides a set of macros allowing to manage the bibliography. The default bibliography style is \texttt{abbr}.
1266 \item \texttt{{\textbackslash}bibliographystyle\{style\}} \\
1267 set the bibliography style to use. \\
1268 Example: \texttt{{\textbackslash}bibliographystyle\{alpha\}};
1269 \item \texttt{{\textbackslash}bibliography\{file\}} \\
1270 set the \textsc{Bib}\TeX\ file to use. \\
1271 Example: \texttt{{\textbackslash}bibliography\{mybib\}};
1272 \item \texttt{{\textbackslash}bibsize\{size\}} \\
1273 set the font size used for the bibliography section. \\
1274 Example: \texttt{{\textbackslash}bibsize\{{\textbackslash}Huge\}};
1277 \section{Theorems and Mathematic Environments}
1279 The package \texttt{upmethodology-fmt} defines several environments and macros that are based on the \texttt{theorem} or the math API of \LaTeX.
1281 \subsection{Definition of a new theorem environment}
1283 If you want to create a new theorem environment based on the style provided by this package, you could invoke \texttt{{\textbackslash}declareupmtheorem}: \\
1284 \texttt{{\textbackslash}declareupmtheorem[name of the style]\{name\}\{label\}\{title of the list\}}
1288 \item the environment with the given name, and
1289 \item the macro \texttt{{\textbackslash}listof$\langle$name$\rangle$s}.
1292 The \texttt{name of the style} is the name of the theorem style to be used. This style is defined by \texttt{{\textbackslash}newtheoremstyle}. By default, it is \texttt{upmdefinition}.
1293 The \texttt{label} is the text to put in the theorem header.
1294 The \texttt{title of the list} is used by the macro \texttt{{\textbackslash}listof$\langle$name$\rangle$s} as the title of the chapter.
1297 Some features provided by this package depend on the version of the package \texttt{thmtools}. We recommend to use and install the version 2012/05/04, or later.
1301 The macro \texttt{{\textbackslash}declareupmtheorem} can be used only inside the preamble of your document.
1304 \paragraph{Example:} The following code define the environment \texttt{mytheorem}:
1306 \documentclass{upmethodology-document}
1307 \declareupmtheorem{mytheorem}{My Theorem}{List of my Theorems}
1309 \begin{mytheorem}[Theorem of Everything]
1310 This is the theorem of Evereything.
1315 \begin{mytheorem}[Theorem of Everything]
1316 This is the theorem of Everything.
1319 \subsection{\texttt{definition}}
1321 The package \texttt{upmethodology-fmt} defines the environment \texttt{definition} to put a definition in your document. This environment is based on the standard \texttt{theorem} environment. The \texttt{definition} takes one optional parameter: the name of the definition.
1323 \paragraph{Example:} The following \LaTeX\ code:
1325 \begin{definition}[Name of the definition]
1326 Text of the definition.
1331 \begin{definition}[Name of the definition]
1332 Text of the definition.
1335 \paragraph{Change the colors of the definition:} You could change the colors of the \texttt{definition} environment by redefining the colors below with one of the macros \texttt{{\textbackslash}definecolor} or \texttt{{\textbackslash}colorlet}:
1337 \item \texttt{definitionbackground} is the color of the background of the definition;
1338 \item \texttt{definitionborder} is the color of the frame;
1339 \item \texttt{definitionheaderforeground} is the color of the text in the header of the definition;
1340 \item \texttt{definitiontextforeground} is the color of the text in the body of the definition.
1343 \paragraph{Example of color redefinition:} The following \LaTeX\ code:
1345 \definecolor{definitionheaderforeground}{rgb}{.3,.5,.8}
1346 \colorlet{definitionbackground}{gray!20}
1347 \colorlet{definitionborder}{red}
1348 \begin{definition}[Name of the definition]
1349 Text of the definition.
1354 \definecolor{definitionheaderforeground}{rgb}{.3,.5,.8}
1355 \colorlet{definitionbackground}{gray!20}
1356 \colorlet{definitionborder}{red}
1357 \begin{definition}[Name of the definition]
1358 Text of the definition.
1361 \section{Emphazing Box}
1363 If you want to create a text that is emphazed with a box, you could use the environment: \\
1364 \texttt{{\textbackslash}begin\{emphbox\}[width] text {\textbackslash}end\{emphbox\}}
1366 \paragraph{Example:} The following \LaTeX\ code:
1368 \begin{emphbox}[.7\linewidth]
1369 This is an emphazed text.
1374 \begin{emphbox}[.7\linewidth]
1375 This is an emphazed text.
1378 \paragraph{Change the colors of the emphazing box:} You could change the colors of the \texttt{emphbox} environment by redefining the colors below with one of the macros \texttt{{\textbackslash}definecolor} or \texttt{{\textbackslash}colorlet}:
1380 \item \texttt{emphboxbackground} is the color of the background of the environment;
1381 \item \texttt{emphboxborder} is the color of the frame;
1382 \item \texttt{emphboxtext} is the color of the text in the body of the environment.
1385 \paragraph{Example of color redefinition:} The following \LaTeX\ code:
1387 \colorlet{emphboxbackground}{gray!20}
1388 \colorlet{emphboxborder}{red}
1390 This is an emphazed text.
1395 \colorlet{emphboxbackground}{gray!20}
1396 \colorlet{emphboxborder}{red}
1398 This is an emphazed text.
1402 \section{Framed Boxes or Mini Pages}
1404 Standard \LaTeX\ distribution provides the \texttt{minipage} environment. This environment allows you to put a small piece of page inside your document. The package \texttt{upmethodology-fmt} provides two framed extensions of the original \texttt{minipage} environment: \texttt{framedminipage} and \texttt{framedcolorminipage}.
1406 The prototypes of there two new environments are, respectively:
1408 \item \texttt{{\textbackslash}begin\{framedminipage\}\{width\} \dots {\textbackslash}end\{framedminipage\}}
1409 \item \texttt{{\textbackslash}begin\{framedcolorminipage\}\{width\}\{border\string_color\}\{background\string_color\} \dots {\textbackslash}end\{framedcolorminipage\}}
1412 \paragraph{Example of \texttt{framedminipage}} The following \LaTeX\ code:
1414 \begin{framedminipage}{.75\linewidth}
1415 This is a text inside a framed minipage.
1416 \end{framedminipage}
1419 \begin{framedminipage}{.75\linewidth}
1420 This is a text inside a framed minipage.
1421 \end{framedminipage}
1423 \paragraph{Example of \texttt{framedcolorminipage}} The following \LaTeX\ code:
1425 \begin{framedcolorminipage}{.75\linewidth}{red}{yellow}
1426 This is a text inside a framed minipage with colors.
1427 \end{framedcolorminipage}
1430 \begin{framedcolorminipage}{.75\linewidth}{red}{yellow}
1431 This is a text inside a framed minipage with colors.
1432 \end{framedcolorminipage}
1434 \section{Message Boxes}
1436 The package \texttt{upmethodology-fmt} provides a set of environment to put emphasis message boxes in the text. Three types of boxes are supported: caution, information, and question.
1439 \begin{tabularx}{\linewidth}{XX}
1441 \texttt{{\textbackslash}begin\{upmcaution\}{[}width{]}} \newline
1442 \texttt{This is an example of a caution message. This text must be rendered with enough height (usually 2 lines of text) to avoid intersection between the caution icon and the box frame.} \newline
1443 \texttt{{\textbackslash}end\{upmcaution\}}
1445 \begin{upmcaution}This is an example of a caution message. This text must be rendered with enough height (usually 2 lines of text) to avoid intersection between the caution icon and the box frame.\end{upmcaution}
1448 \texttt{{\textbackslash}begin\{upminfo\}{[}width{]}} \newline
1449 \texttt{This is an example of an information message. This text must be rendered with enough height (usually 2 lines of text) to avoid intersection between the caution icon and the box frame.} \newline
1450 \texttt{{\textbackslash}end\{upminfo\}}
1452 \begin{upminfo}This is an example of an information message. This text must be rendered with enough height (usually 2 lines of text) to avoid intersection between the caution icon and the box frame.\end{upminfo}
1455 \texttt{{\textbackslash}begin\{upmquestion\}{[}width{]}} \newline
1456 \texttt{This is an example of a question message. This text must be rendered with enough height (usually 2 lines of text) to avoid intersection between the caution icon and the box frame.} \newline
1457 \texttt{{\textbackslash}end\{upmquestion\}}
1459 \begin{upmquestion}This is an example of a question message. This text must be rendered with enough height (usually 2 lines of text) to avoid intersection between the caution icon and the box frame.\end{upmquestion}
1464 \section{Additional Macros for the Table of Content}
1466 The macro \texttt{{\textbackslash}newpageintoc} makes it possible to insert a page break inside the table of contents (toc).
1467 It may be used to avoid orphan titles in the toc.
1469 \section{Additional Document Sectioning Macros}
1471 The package \texttt{upmethodology-fmt} provides several macros that permit to create special sections.
1473 \subsection{Non-numbered Part in Table of Content}
1475 If you want to add a document part that has no part number but appearing inside the table of content, the classical \LaTeX\ macros \texttt{{\textbackslash}part} and \texttt{{\textbackslash}part*} are inefficient. Indeed, \texttt{{\textbackslash}part} is adding a numbered part inside the table of content, and \texttt{{\textbackslash}part*} is adding an unnumbered part but not inside the table of content.
1477 To add a unnumbered part inside the table of content, you could use one of the macros: \\
1478 \texttt{{\textbackslash}parttoc[toctitle]\{title\}} \\
1479 \texttt{{\textbackslash}parttoc*[toctitle]\{title\}}
1481 The macros \texttt{{\textbackslash}parttoc} and \texttt{{\textbackslash}parttoc*} have the same effect except that \texttt{{\textbackslash}parttoc*} aligns the part's title to the other numbered parts' titles; and \texttt{{\textbackslash}parttoc} not.
1483 \subsection{Non-numbered Chapter in Table of Content}
1485 If you want to add a document chapter that has no chapter number but appearing inside the table of content, the classical \LaTeX\ macros \texttt{{\textbackslash}chapter} and \texttt{{\textbackslash}chapter*} are inefficient. Indeed, \texttt{{\textbackslash}chapter} is adding a numbered chapter inside the table of content, and \texttt{{\textbackslash}chapter*} is adding an unnumbered chapter but not inside the table of content.
1487 To add a unnumbered chapter inside the table of content, you could use one of the macros: \\
1488 \texttt{{\textbackslash}chaptertoc[toctitle]\{title\}} \\
1489 \texttt{{\textbackslash}chaptertoc*[toctitle]\{title\}}
1491 The macros \texttt{{\textbackslash}chaptertoc} and \texttt{{\textbackslash}chaptertoc*} have the same effect except that \texttt{{\textbackslash}chaptertoc*} aligns the chapter's title to the other numbered chapters' titles; and \texttt{{\textbackslash}chaptertoc} not.
1493 \subsection{Non-numbered Section in Table of Content}
1495 If you want to add a document section that has no a section number but appearing inside the table of content, the classical \LaTeX\ macros \texttt{{\textbackslash}section} and \texttt{{\textbackslash}section*} are inefficient. Indeed, \texttt{{\textbackslash}section} add a numbered section inside the table of content, and \texttt{{\textbackslash}section*} adds an unnumbered section but not inside the table of content.
1497 To add a unnumbered section inside the table of content, you could use one of the macros: \\
1498 \texttt{{\textbackslash}sectiontoc[toctitle]\{title\}} \\
1499 \texttt{{\textbackslash}sectiontoc*[toctitle]\{title\}}
1501 The macros \texttt{{\textbackslash}sectiontoc} and \texttt{{\textbackslash}sectiontoc*} have the same effect except that \texttt{{\textbackslash}sectiontoc*} aligns the section's title to the other numbered sections' titles; and \texttt{{\textbackslash}sectiontoc} not.
1503 \subsection{Non-numbered Subsection in Table of Content}
1505 If you want to add a document subsection that has no subsection number but appearing inside the table of content, the classical \LaTeX\ macros \texttt{{\textbackslash}subsection} and \texttt{{\textbackslash}subsection*} are inefficient. Indeed, \texttt{{\textbackslash}subsection} is adding a numbered subsection inside the table of content, and \texttt{{\textbackslash}subsection*} is adding an unnumbered subsection but not inside the table of content.
1507 To add a unnumbered subsection inside the table of content, you could use one of the macros: \\
1508 \texttt{{\textbackslash}subsectiontoc[toctitle]\{title\}} \\
1509 \texttt{{\textbackslash}subsectiontoc*[toctitle]\{title\}}
1511 The macros \texttt{{\textbackslash}subsectiontoc} and \texttt{{\textbackslash}subsectiontoc*} have the same effect except that \texttt{{\textbackslash}subsectiontoc*} aligns the subsection's title to the other numbered subsections' titles; and \texttt{{\textbackslash}subsectiontoc} not.
1513 \subsection{Non-numbered Subsubsection in Table of Content}
1515 If you want to add a document subsubsection that has no subsubsection number but appearing inside the table of content, the classical \LaTeX\ macros \texttt{{\textbackslash}subsubsection} and \texttt{{\textbackslash}subsubsection*} are inefficient. Indeed, \texttt{{\textbackslash}subsubsection} is adding a numbered subsubsection inside the table of content, and \texttt{{\textbackslash}subsubsection*} is adding an unnumbered subsubsection but not inside the table of content.
1517 To add a unnumbered subsubsection inside the table of content, you could use one of the macros: \\
1518 \texttt{{\textbackslash}subsubsectiontoc[toctitle]\{title\}} \\
1519 \texttt{{\textbackslash}subsubsectiontoc*[toctitle]\{title\}}
1521 The macros \texttt{{\textbackslash}subsubsectiontoc} and \texttt{{\textbackslash}subsubsectiontoc*} have the same effect except that \texttt{{\textbackslash}subsubsectiontoc*} aligns the subsubsection's title to the other numbered subsubsections' titles; and \texttt{{\textbackslash}subsubsectiontoc} not.
1523 \subsection{Chapter with different labels in TOC, headers and document}
1525 If you want to control the labels in the table of contents (TOC), the headers and the document for a chapter, the classical \LaTeX\ macros \texttt{{\textbackslash}chapter} and \texttt{{\textbackslash}chapter*} are inefficient.
1527 To control these labels, you could use the macro: \\
1528 \texttt{{\textbackslash}chapterfull[toctitle]\{title\}\{headertitle\}}
1530 The macro create a chapter with the given label ``\texttt{title}'' in the core part of the document, with the given label ``\texttt{toctitle}'' in the table of contents, and with the label ``\texttt{headertitle}'' in the headers.
1532 \subsection{Section with different labels in TOC, headers and document}
1534 If you want to control the labels in the table of contents (TOC), the headers and the document for a section, the classical \LaTeX\ macros \texttt{{\textbackslash}section} and \texttt{{\textbackslash}section*} are inefficient.
1536 To control these labels, you could use the macro: \\
1537 \texttt{{\textbackslash}sectionfull[toctitle]\{title\}\{headertitle\}}
1539 The macro create a section with the given label ``\texttt{title}'' in the core part of the document, with the given label ``\texttt{toctitle}'' in the table of contents, and with the label ``\texttt{headertitle}'' in the headers.
1542 %###########################################################
1544 \chapter{Package upmethodology-document}
1547 \texttt{Version: \VERdoc}
1550 The package \texttt{upmethodology-document} provides base function to manage document information (project, subproject, authors...).
1552 \section{Document Information and Declaration}
1554 The informations associated to an UP document are:
1556 \item \texttt{{\textbackslash}theupmproject} is the name of the project for which the document was produced;
1557 \item \texttt{{\textbackslash}theupmsubproject} is the name of the sub-project for which the document was produced;
1558 \item \texttt{{\textbackslash}theupmdocname} is the name of the document;
1559 \item \texttt{{\textbackslash}theupmdocref} is the reference number of the document;
1560 \item \texttt{{\textbackslash}theupmfulldocname} is the complete name of the document (composing by the project, subp-project and name of the document).
1563 You could declare the information about your document with one of the following functions: \\
1564 \texttt{{\textbackslash}declaredocument\{project\}\{name\}\{ref\}} \\
1565 \texttt{{\textbackslash}declaredocumentex\{project\}\{subproject\}\{name\}\{ref\}} \\
1566 where the parameters are:
1568 \item \texttt{project} is the name of the project the document belongs to;
1569 \item \texttt{subproject} is the name of the sub-project the document belongs to;
1570 \item \texttt{name} is the name of the document;
1571 \item \texttt{ref} is the reference number of the document.
1574 \section{Abstract and Key-words}
1576 You are able to declare the abstract and the key-words for your document. Both are basically used by the back page package.
1578 \subsection{Declarations}
1580 The macro \texttt{{\textbackslash}setdocabstract} is for entering the docment's abstract:\\
1581 \texttt{{\textbackslash}setdocabstract{[}lang{]}\{abstract\_text\}} \\
1582 where \texttt{abstract\_text} is the text of your abstract and \texttt{lang} designates for which language the abstract text is for. If the language is not specified, this macro uses the current document language.
1584 The macro \texttt{{\textbackslash}setdockeywords} is for entering the document's key-words:\\
1585 \texttt{{\textbackslash}setdockeywords{[}lang{]}\{keywords\}} \\
1586 where \texttt{keywords} is the list of key-words and \texttt{lang} designates for which language the key-words are for. If the language is not specified, this macro uses the current document language.
1588 \subsection{Rendering}
1590 The macro \texttt{{\textbackslash}theupmdocabstract} is expanded with the abstract text:\\
1591 \texttt{{\textbackslash}theupmdocabstract}
1593 The macro \texttt{{\textbackslash}theupmdockeywords} is expanded with the key-words:\\
1594 \texttt{{\textbackslash}theupmdockeywords}
1596 \section{Document Summary}
1598 You can obtain a document summary with the macro \texttt{{\textbackslash}upmdocumentsummary{[}width{]}} which produces:
1602 \section{Change Icons}
1604 By default, this package uses the logo of \arakhneorg as icons. You could change them with the macros:
1607 \item \texttt{{\textbackslash}defupmsmalllogo\{filename\}} defines the small logo used in the headers for instance;
1608 \item \texttt{{\textbackslash}defupmlogo\{filename\}} defines the logo used on the front page for instance.
1611 The logos' filenames are accessible with the functions \texttt{{\textbackslash}theupmsmalldoclogo} and \texttt{{\textbackslash}theupmdoclogo}.
1613 \section{Document Authors}
1615 An author is someone who participates to the writing of the document. You could register author identities with: \\
1616 \texttt{{\textbackslash}addauthor[email]\{firstname\}\{name\}} \\
1617 \texttt{{\textbackslash}addauthor*[email]\{firstname\}\{name\}\{comment\}} \\
1618 \texttt{{\textbackslash}addauthorvalidator[email]\{firstname\}\{name\}} \\
1619 \texttt{{\textbackslash}addauthorvalidator*[email]\{firstname\}\{name\}\{comment\}}
1621 The list of the authors is accessible by two means:
1623 \item \texttt{{\textbackslash}theauthorlist} is a coma-separated list of the authors' names;
1624 \item \texttt{{\textbackslash}upmdocumentauthors} produces an array of all the authors (see below for an example).
1629 You could test if a string is the name of the author with:
1631 \item \texttt{{\textbackslash}ifdocumentauthor\{lowercasename\}\{then\}\{else\}}; the first parameter \textbf{must} be lower case. If the \texttt{lowercasename} is the name of one of the authors, then the \texttt{then} clause is expanded, otherwise the \texttt{else} clause is expanded.
1636 \section{Document Validators}
1638 A validator is someone who participates to the validation of the document. You could register validator identities with: \\
1639 \texttt{{\textbackslash}addvalidator[email]\{firstname\}\{name\}} \\
1640 \texttt{{\textbackslash}addvalidator*[email]\{firstname\}\{name\}\{comment\}} \\
1641 \texttt{{\textbackslash}addauthorvalidator[email]\{firstname\}\{name\}} \\
1642 \texttt{{\textbackslash}addauthorvalidator*[email]\{firstname\}\{name\}\{comment\}}
1644 The list of the validators is accessible by two means:
1646 \item \texttt{{\textbackslash}thevalidatorlist} is a coma-separated list of the validator' names;
1647 \item \texttt{{\textbackslash}upmdocumentvalidators} produces an array of all the validators (see below for an example).
1650 \upmdocumentvalidators
1652 \section{Informed People}
1654 An informed people is someone who receives the document to be informed about its content. You could register informed people identities with: \\
1655 \texttt{{\textbackslash}addinformed[email]\{firstname\}\{name\}} \\
1656 \texttt{{\textbackslash}addinformed*[email]\{firstname\}\{name\}\{comment\}}
1658 The list of the informed people is accessible by two means:
1660 \item \texttt{{\textbackslash}theinformedlist} is a coma-separated list of the informed people' names;
1661 \item \texttt{{\textbackslash}upmdocumentinformedpeople} produces an array of all the informed people (see below for an example).
1664 \upmdocumentinformedpeople
1666 \section{Copyright and Publication Information}
1668 Package \texttt{upmethodology-document} provides several macros to define the copyright owner and the publication informations required to generate a publication page.
1670 \subsection{Setting Information}
1672 The Copyright holder(s) are person(s) or institution(s), that own the copyright on the document. The following macro allows you to set the identity of the copyright holder in all parts of the documents: \\
1673 \texttt{{\textbackslash}setcopyrighter\{name\}}\\
1675 Publisher is the people or the institution, or both, which is publishing the document. Basically it is the same the copyrighter (see above): \\
1676 \texttt{{\textbackslash}setpublisher\{name\}}\\
1678 Some times, copyright laws depend on the location where the document is printed. The following macro allows you to put a message in the publication page which is indicating where the document is printed: \\
1679 \texttt{{\textbackslash}setprintingaddress\{address\}}\\
1681 Publications may be identifier by international identifiers. Package \texttt{upmethodology-document} supports ISBN, ISSN and DOI:
1682 \texttt{{\textbackslash}setisbn\{number\}}\\
1683 \texttt{{\textbackslash}setissn\{number\}}\\
1684 \texttt{{\textbackslash}setdoi\{number\}}\\
1686 \subsection{Retreiving Information}
1688 The information set by the macros described in the previous section may be retreived with the following macros: \\
1689 \texttt{{\textbackslash}theupmcopyrighter}\\
1690 \texttt{{\textbackslash}theupmpublisher}\\
1691 \texttt{{\textbackslash}theupmprintedin}\\
1692 \texttt{{\textbackslash}theupmisbn}\\
1693 \texttt{{\textbackslash}theupmissn}\\
1694 \texttt{{\textbackslash}theupmdoi}\\
1696 \subsection{Publication Page}
1698 The package \texttt{upmethodology-document} provides the \texttt{{\textbackslash}upmpublicationpage} macro which is displaying a empty page with publication informations and optionally set the page number (default value is $-1$). Figure~\ref{fig:publication:page} illustrates the publication page of this document.
1702 \begin{framedminipage}{.8\linewidth}
1703 \upmpublicationminipage % in place of \upmpublicationpage to avoid page number and page style changes
1704 \end{framedminipage}
1705 \caption{Example of Publication Page generated with \texttt{{\textbackslash}upmpublicationpage}}
1706 \label{fig:publication:page}
1710 \section{Localization}
1712 The current language is defined in the macro \texttt{{\textbackslash}upmcurrentlang}.
1714 For testing the current language, you could use the macro \texttt{{\textbackslash}ifuplang\{lang\_id\}\{then macros\}\{else macros\}}. This macro tests if the given \texttt{lang\_id} corresponds to the value expended by the macro \texttt{{\textbackslash}upmcurrentlang}. If it is true, the macros specified in the ``then macros'' are expanded. Otherwise, the macros specified in the ``else macros'' are expanded.
1716 The following macros defines some localized strings used by \texttt{upmethodology-document}:
1718 \item \texttt{{\textbackslash}upm@lang@project}: Project;
1719 \item \texttt{{\textbackslash}upm@lang@document}: Document;
1720 \item \texttt{{\textbackslash}upm@lang@docref}: Reference;
1721 \item \texttt{{\textbackslash}upm@lang@lastupdate}: Last Update;
1722 \item \texttt{{\textbackslash}upm@lang@document@summary}: Document Summary;
1723 \item \texttt{{\textbackslash}upm@lang@document@authors}: Authors;
1724 \item \texttt{{\textbackslash}upm@lang@document@validators}: Validators;
1725 \item \texttt{{\textbackslash}upm@lang@document@names}: Names;
1726 \item \texttt{{\textbackslash}upm@lang@document@emails}: Emails;
1727 \item \texttt{{\textbackslash}upm@lang@document@initials}: Initials;
1728 \item \texttt{{\textbackslash}upm@lang@document@abstract}: Abstract;
1729 \item \texttt{{\textbackslash}upm@lang@document@keywords}: Key-words.
1733 %###########################################################
1735 \chapter{Package upmethodology-frontpage}
1738 \texttt{Version: \VERfp}
1741 The \texttt{upmethodology-frontpage} package provides an front page for the UP documents. This package does not provides any public function. It is based on all the previous packages.
1743 \section{Display the front page}
1745 The front cover is displayed by invoking one of the following macros: \\
1746 \texttt{{\textbackslash}maketitle} \\
1747 \texttt{{\textbackslash}makefrontcover} \\
1749 \section{Change Front Page Layout}
1751 It is possible to change the layout of the front page with the macro: \\
1752 \texttt{{\textbackslash}setfrontlayout\{layout\_name\}}\\
1753 where \texttt{layout\_name} must be one of:
1755 \item \texttt{classic}: classic front page layout with title and logo;
1756 \item \texttt{modern}: front page layout with title and logo and background picture.
1759 The figure~\figref{frontpage:layout} illustrates the different layouts.
1761 \begin{mfigures}{Front Page Layouts}{frontpage:layout}
1763 \msubfigure{width=.45\linewidth}{frontclassic}{\texttt{classic}}
1765 \msubfigure{width=.45\linewidth}{frontmodern}{\texttt{modern}}
1769 \section{Change Illustration Picture}
1771 It is possible to insert an illustration picture on the front page. You could specify the image with the macro: \\
1772 \texttt{{\textbackslash}setfrontillustration[width\_factor]\{filename\}} \\
1775 \item \texttt{width\_factor} is the scaling factor of the picture according to the line width. If you specifies \texttt{1} the image will not be scaled, for \texttt{.5} the image will be the half of its original width...
1776 \item \texttt{filename} is the name of picture to use as the illustration.
1779 \section{Define a Front Page in Extensions}
1781 The \texttt{upmethodology-frontpage} package is able to use a page layout defined in a document extension (see chapter~\ref{section:document:extension} for details on document extension).
1783 \pagebreak A \LaTeX\ macro must be defined in the \texttt{upmext-NAME.cfg} file of the extension. The name of this macro (for example \texttt{mylayout}) must be set with the \texttt{{\textbackslash}set} macro in the same file:\\
1784 \texttt{{\textbackslash}set\{frontpage\}\{mylayout\}}\\
1786 \section{Localization}
1788 The following macros defines some localized strings used by \texttt{upmethodology-frontpage}:
1790 \item \texttt{{\textbackslash}upm@lang@front@authors}: Authors;
1793 %###########################################################
1795 \chapter{Package upmethodology-backpage}
1798 \texttt{Version: \VERbp}
1801 The package \texttt{upmethodology-backpage} provides an back page for the UP documents. This package does not provides any public function. It is based on all the previous packages.
1803 \section{Display the back page}
1805 The back cover is displayed by invoking the following macro: \\
1806 \texttt{{\textbackslash}makebackcover} \\
1808 \section{Change Back Page Layout}
1810 It is possible to change the layout of the back page with the macro: \\
1811 \texttt{{\textbackslash}setbacklayout\{layout\_name\}}\\
1812 where \texttt{layout\_name} must be one of:
1814 \item \texttt{none}: no back page.
1817 \section{Small text before the back page}
1819 It is possible to insert a text at the bottom of the page just before the back page (usually the inner page of the cover for a two sided document).
1820 You must set tha macro \texttt{backcovermessage} with the \texttt{{\textbackslash}Set} macro: \\
1821 \texttt{{\textbackslash}Set\{backcovermessage\}\{text\}}\\
1823 \section{Define a Back Page in Extensions}
1825 The \texttt{upmethodology-backpage} package is able to use a page layout defined in a document extension (see chapter~\ref{section:document:extension} for details on document extension).
1827 A \LaTeX\ macro must be defined in the \texttt{upmext-NAME.cfg} file of the extension. The name of this macro is \texttt{backpage}, and it must be set with the \texttt{{\textbackslash}Set} macro in the same file:\\
1828 \texttt{{\textbackslash}Set\{backpage\}\{\TeX\ macros\}}\\
1831 %###########################################################
1833 \chapter{Package upmethodology-extension}\label{section:document:extension}
1836 \texttt{Version: \VERext}
1839 The package \texttt{upmethodology-extension} provides tools to create layout and rendering extensions.
1840 It is possible to write an extension to the \texttt{upmethodology-document} package. An extension is able to override several values from the default \texttt{upmethodology-}packages or may be used by the other suite's packages. For example, the Systems and Transport laboratory\reffootnote*{foot:setlab} extension is providing laboratory's icons, publisher's name and page layouts.
1842 \section{Load a Document Extension}
1844 To load and use a document extension, you must invoke the macro:\\
1845 \texttt{{\textbackslash}UseExtension\{extension\_name\}}\\
1846 where \texttt{extension\_name} is the identifier of the extension to load. The extension's files must be inside your \LaTeX\ search path.
1848 \section{Write a Document Extension}
1850 A document extension could be written and described inside a file named \texttt{upmext-NAME.cfg}, where \texttt{NAME} is the name of the extension. This file must be put in your \LaTeX\ search path.
1852 The \texttt{upmext-NAME.cfg} file is a \LaTeX\ file in which a set of definition macros are put. These macros must respect the \LaTeX\ syntax.
1854 The \texttt{{\textbackslash}DeclareCopyright} macro enables you to declare additional copyright information about the extension: \\
1855 \texttt{{\textbackslash}DeclareCopyright{[}lang{]}\{extension\_name\}\{year\}\{copyrighter\}\{trademark and copyright information\}} \\
1857 This macro declares the \texttt{copyright} value which contains the copyright text (for this documentation ``\Get{copyright}'').
1858 This macro also declares the \texttt{trademarks} value which contains the trademark and other related informations about the extension (for this documentation ``\Get{trademarks}'').
1860 Additional macros are provided to redefine the \texttt{upmethodology-document} constants:\\
1861 \texttt{{\textbackslash}Set{[}lang{]}\{variable\_name\}\{value\}}\\
1863 The \texttt{variable\_name} is the name of the value to override. It must be taken in one of the names listed in table~\tabref{documentextension:names:set}. The \texttt{lang} parameter is a language identifier. It is used to restrict the definition to a specific language. If not given, the default language is used insteed. The \texttt{image\_name} and \texttt{image\_scale} are the name of the image file and the scaling factor respectively.
1865 \begin{mtable}{\linewidth}{2}{lX}{List of overiddable value names}{documentextension:names:set}
1867 \tabularheader{Value Name}{Description}
1868 logo & the filename of the picture which must be used as a large logo. \\
1870 smalllogo & the filename of the picture which must be used as a small logo. \\
1872 copyrighter & the name of the authors or the institution which own the copyright on the document. \\
1874 publisher & the name of the document's publisher. The \texttt{lang} parameter is supported. \\
1876 printedin & the location/address where this document is printed. \\
1878 frontillustration & the image to use as illustration. The \texttt{lang} parameter is ignored. \\
1880 frontpage & the name of the front page style --- not the \LaTeX\ macros --- to layout the front page. \newline OR \newline the front page illustration.\\
1882 backpage & the \LaTeX\ macros to layout the back page. \newline OR \newline the back page illustration.\\
1884 cfrontpage & the \LaTeX\ macros --- not the name of the front page style --- to layout the front page.\\
1888 The \texttt{{\textbackslash}Get} macro allows you to retrieve the value defined by a \texttt{{\textbackslash}Set}:\\
1889 \texttt{{\textbackslash}Get\{variable\_name\}} \\
1891 The \texttt{{\textbackslash}Unset} macro allows you to remove the definition of a value:\\
1892 \texttt{{\textbackslash}Unset\{variable\_name\}} \\
1894 The \texttt{{\textbackslash}Ifnotempty} macro allows you to expand the \LaTeX\ macros if the given text is not empty:\\
1895 \texttt{{\textbackslash}Ifnotempty\{text\}\{latex\_code\}} \\
1897 The \texttt{{\textbackslash}Ifempty} macro allows you to expand the \LaTeX\ macros if the given text is empty:\\
1898 \texttt{{\textbackslash}Ifempty\{text\}\{latex\_code\}} \\
1900 The \texttt{{\textbackslash}Ifelsedefined} macro allows you to expand the \LaTeX\ macros in \texttt{then\_code} if a value with the given name was defined, or to expand the \LaTeX\ macros in \texttt{else\_code} if no value with the given name was defined:\\
1901 \texttt{{\textbackslash}Ifelsedefined\{value\_name\}\{then\_code\}\{else\_code\}} \\
1903 The \texttt{{\textbackslash}Put} macro is an extension of the standard picture \texttt{{\textbackslash}put} macro. It takes into account the joint margin applied in two sided documents when it is used on page's backside (eg. the back page of the document):\\
1904 \texttt{{\textbackslash}Put(x,y)\{macros\}} \\
1906 This macro must be used inside a \texttt{picture} environment in place of the standard \texttt{{\textbackslash}put} macro.
1908 %###########################################################
1910 \chapter{Package upmethodology-task}
1913 \texttt{Version: \VERtask}
1916 The \LaTeX\ package \texttt{upmethodology-task} provides a set of macros to define project's tasks.
1918 During \LaTeX\ compilation this package could log the message \texttt{"Project Task(s) may have changed. Rerun to get cross-references right"} when some task information was not found or due to cross-references on them.
1920 \section{Task Definition}
1922 The definition of a task could be made only inside one of the following environments: \\
1923 \texttt{{\textbackslash}begin\{taskdescription\}\{id\}...{\textbackslash}end\{taskdescription\}} \\
1924 \texttt{{\textbackslash}begin\{taskdescription*\}\{id\}...{\textbackslash}end\{taskdescription*\}} \\
1925 where \texttt{id} is the identifier of the task.
1927 The environment \texttt{taskdefinion} displays the task's description with a call to \texttt{{\textbackslash}thetaskdescription\{id\}}. On the other hand, \texttt{taskdefinition*} never displays the task's description.
1929 Inside one of the task's definition environment above, you could use one of the following macros to define the task's attributes:
1931 \item \texttt{{\textbackslash}taskname\{name\}} \\
1932 to define the name of the task;
1933 \item \texttt{{\textbackslash}tasksuper\{id\}} \\
1934 indicates that the current task is a sub-task of the task identified by the given identifier;
1935 \item \texttt{{\textbackslash}taskcomment\{text\}} \\
1936 to describe the task's purposes and goals (will be shown in the description box of the task's description);
1937 \item \texttt{{\textbackslash}taskprogress\{percent\}} \\
1938 to set the percentage for task achievement;
1939 \item \texttt{{\textbackslash}taskstart\{date\}} \\
1940 to set the starting date of the task (real or predicted);
1941 \item \texttt{{\textbackslash}taskend\{date\}} \\
1942 to set the finished date of the task (real or predicted);
1943 \item \texttt{{\textbackslash}taskmanager\{name\}} \\
1944 adds a task's manager into the list of the managers;
1945 \item \texttt{{\textbackslash}taskmember\{name\}} \\
1946 adds a task's member into the list of the members;
1947 \item \texttt{{\textbackslash}taskmilestone\{date\}\{comment\}} \\
1948 add a milestone into the task for the given date and described by the given comment.
1951 \section{Task Reference}
1953 You could reference any information about the defined tasks in your document. In case you used cross-references this package could log the message "\verb+Project Task(s) may have changed. Rerun to get cross-references right+" to complain about rebuilding of our document.
1955 The following macros are available:
1957 \item \texttt{{\textbackslash}thetasksuper\{id\}} \\
1958 replies the identifier of the parent task corresponding to the task identified by \texttt{id};
1959 \item \texttt{{\textbackslash}thetaskname\{id\}} \\
1960 replies the name of the the task identified by \texttt{id};
1961 \item \texttt{{\textbackslash}thetaskcomment\{id\}} \\
1962 replies the description for the the task identified by \texttt{id};
1963 \item \texttt{{\textbackslash}thetaskprogress\{id\}} \\
1964 replies the archieving percent for the the task identified by \texttt{id};
1965 \item \texttt{{\textbackslash}thetaskstart\{id\}} \\
1966 replies the starting date for the the task identified by \texttt{id};
1967 \item \texttt{{\textbackslash}thetaskend\{id\}} \\
1968 replies the ending date for the the task identified by \texttt{id};
1969 \item \texttt{{\textbackslash}thetaskmanagers\{id\}} \\
1970 replies the managers' list for the the task identified by \texttt{id};
1971 \item \texttt{{\textbackslash}thetaskmembers\{id\}} \\
1972 replies the members' list for the the task identified by \texttt{id};
1973 \item \texttt{{\textbackslash}thetaskmilestones\{id\}} \\
1974 replies the list of milestone's dates for the the task identified by \texttt{id};
1975 \item \texttt{{\textbackslash}thetaskmilestonecomment\{id\}\{date\}} \\
1976 replies the comment of the given milestone for the the task identified by \texttt{id};
1977 \item \texttt{{\textbackslash}thetaskdescription[width]\{id\}} \\
1978 replies the complete description of the the task identified by \texttt{id}.
1981 \section{Localization}
1983 The following macros defines some localized strings used by \texttt{upmethodology-task}:
1985 \item \texttt{{\textbackslash}upm@task@lang@task}: Task;
1986 \item \texttt{{\textbackslash}upm@task@lang@escription}: Description;
1987 \item \texttt{{\textbackslash}upm@task@lang@startat}: Start at;
1988 \item \texttt{{\textbackslash}upm@task@lang@endat}: End at;
1989 \item \texttt{{\textbackslash}upm@task@lang@archieved}: Achieved;
1990 \item \texttt{{\textbackslash}upm@task@lang@managers}: Managers;
1991 \item \texttt{{\textbackslash}upm@task@lang@members}: Members;
1992 \item \texttt{{\textbackslash}upm@task@lang@Milestones}: Milestones;
1993 \item \texttt{{\textbackslash}upm@task@lang@subtask}: Sub-task of.
1996 %###########################################################
1998 \chapter{Package upmethodology-code}
2001 \texttt{Version: \VERcode}
2004 The \LaTeX\ package \texttt{upmethodology-code} provides a set of macros for source code formatting. The supported source codes are UML, Java and C++.
2006 You could load the package with the following options:
2008 \begin{tabular}{|>{\ttfamily}l|l|}
2010 uml & use the UML notation (default value)\\
2011 java & use the Java notation \\
2012 cpp & use the C++ notation \\
2017 You could also change the notation language with the macro: \\
2018 \texttt{{\textbackslash}upmcodelang\{upm\string|java\string|cpp\}}
2020 The provided macros are listed in the following table: \\
2021 \begin{tabularx}{\linewidth}{|>{\ttfamily}l|X|X|X|}
2023 {\normalfont macro} & UML & Java & C++ \\
2025 \multicolumn{4}{|X|}{Prototypes} \\
2027 {\textbackslash}jclass\{TheClass\} & \upmcodelang{uml}\jclass{TheClass} & \upmcodelang{java}\jclass{TheClass} & \upmcodelang{cpp}\jclass{TheClass} \\
2028 {\textbackslash}jinterface\{TheInterface\} & \upmcodelang{uml}\jinterface{TheInterface} & \upmcodelang{java}\jinterface{TheInterface} & \upmcodelang{cpp}\jinterface{TheInterface} \\
2029 {\textbackslash}jpackage\{ThePackage\} & \upmcodelang{uml}\jpackage{ThePackage} & \upmcodelang{java}\jpackage{ThePackage} & \upmcodelang{cpp}\jpackage{ThePackage} \\
2030 {\textbackslash}jfunc\{FunctionName\} & \upmcodelang{uml}\jfunc{FunctionName} & \upmcodelang{java}\jfunc{FunctionName} & \upmcodelang{cpp}\jfunc{FunctionName} \\
2032 \multicolumn{4}{|X|}{Types} \\
2034 {\textbackslash}jclazz & \upmcodelang{uml}\jclazz & \upmcodelang{java}\jclazz & \upmcodelang{cpp}\jclazz \\
2035 {\textbackslash}jvoid & \upmcodelang{uml}\jvoid & \upmcodelang{java}\jvoid & \upmcodelang{cpp}\jvoid \\
2036 {\textbackslash}jboolean & \upmcodelang{uml}\jboolean & \upmcodelang{java}\jboolean & \upmcodelang{cpp}\jboolean \\
2037 {\textbackslash}jint & \upmcodelang{uml}\jint & \upmcodelang{java}\jint & \upmcodelang{cpp}\jint \\
2038 {\textbackslash}jlong & \upmcodelang{uml}\jlong & \upmcodelang{java}\jlong & \upmcodelang{cpp}\jlong \\
2039 {\textbackslash}jfloat & \upmcodelang{uml}\jfloat & \upmcodelang{java}\jfloat & \upmcodelang{cpp}\jfloat \\
2040 {\textbackslash}jdouble & \upmcodelang{uml}\jdouble & \upmcodelang{java}\jdouble & \upmcodelang{cpp}\jdouble \\
2041 {\textbackslash}jchar & \upmcodelang{uml}\jchar & \upmcodelang{java}\jchar & \upmcodelang{cpp}\jchar \\
2042 {\textbackslash}jstring & \upmcodelang{uml}\jstring & \upmcodelang{java}\jstring & \upmcodelang{cpp}\jstring \\
2043 {\textbackslash}jarray\{T\} & \upmcodelang{uml}\jarray{\jclass{T}} & \upmcodelang{java}\jarray{\jclass{T}} & \upmcodelang{cpp}\jarray{\jclass{T}} \\
2044 {\textbackslash}jcollection\{T\} & \upmcodelang{uml}\jcollection{\jclass{T}} & \upmcodelang{java}\jcollection{\jclass{T}} & \upmcodelang{cpp}\jcollection{\jclass{T}} \\
2045 {\textbackslash}jset\{T\} & \upmcodelang{uml}\jset{\jclass{T}} & \upmcodelang{java}\jset{\jclass{T}} & \upmcodelang{cpp}\jset{\jclass{T}} \\
2049 \begin{tabularx}{\linewidth}{|>{\ttfamily}l|X|X|X|}
2051 {\normalfont macro} & UML & Java & C++ \\
2053 \multicolumn{4}{|X|}{Constants} \\
2055 {\textbackslash}jtrue & \upmcodelang{uml}\jtrue & \upmcodelang{java}\jtrue & \upmcodelang{cpp}\jtrue \\
2056 {\textbackslash}jfalse & \upmcodelang{uml}\jfalse & \upmcodelang{java}\jfalse & \upmcodelang{cpp}\jfalse \\
2058 \multicolumn{4}{|X|}{Operations} \\
2060 {\textbackslash}jcode\{source code\} & \upmcodelang{uml}\jcode{source code} & \upmcodelang{java}\jcode{source code} & \upmcodelang{cpp}\jcode{source code} \\
2061 {\textbackslash}jcall\{fct\}\{params\} & \upmcodelang{uml}\jcall{fct}{params} & \upmcodelang{java}\jcall{fct}{params} & \upmcodelang{cpp}\jcall{fct}{params} \\
2062 {\textbackslash}jop\{operator\} & \upmcodelang{uml}\jop{operator} & \upmcodelang{java}\jop{operator} & \upmcodelang{cpp}\jop{operator} \\
2066 %###########################################################
2068 \chapter{Authors and License}
2070 Copyright \copyright\ \upmcopyrightdate\ \makename{St\'ephane}{Galland}
2074 This program is free library; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version.
2078 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
2082 You should have received a copy of the GNU Lesser General Public License along with this library; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
2083 Boston, MA 02111-1307, USA.