diff options
author | Karl Berry <karl@freefriends.org> | 2013-08-15 22:13:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-08-15 22:13:47 +0000 |
commit | 348ee98f6e5612626fbf72093fa8b526e573a1a3 (patch) | |
tree | f9d9b527a52eceea9851541e954d16b0b2035d7f /Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty | |
parent | 383f3a1a4878dab62fcae9f73369be14150bf0a6 (diff) |
upmethodology (16aug13)
git-svn-id: svn://tug.org/texlive/trunk@31435 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty | 120 |
1 files changed, 73 insertions, 47 deletions
diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty index 1b92c130f44..db7d1e20c61 100644 --- a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty +++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty @@ -16,47 +16,8 @@ % License along with this library; see the file COPYING. If not, % write to the Free Software Foundation, Inc., 59 Temple Place - Suite % 330, Boston, MA 02111-1307, USA. -% -% Creation date: 2006-04-06 -% Modifications (lastest first): -% 2013-07-06 Redefine the \underline macro. -% 2013-05-31 Add the extensions 'pdf_tex' and 'ps_tex' in the default list of extensions -% for \includegraphicswtex. -% 2013-05-30 Add macro \includegraphicswtex, which is supporting 'pdftex_t' and 'pstex_t'. -% 2013-05-18 Replace the image extension 'pstex_t' by 'pdftex_t'. -% 2013-05-17 Define the default graphic extensions: pdf, png, jpg, jpeg, tiff, gif. -% Define the default graphic search path to the current directory. -% 2013-04-01 Do not put the default bibliography style if it was already provided. -% 2012-09-21 Move \copyright into upmethodology-fmt.sty -% 2012-09-17 Bug fix: \makename and \upmmakename have invalid first name size -% when the macro is used inside a font-size change context. -% 2009-11-02 Bug fix: footnote macros are fixed. -% Add macros: \prname, \drname, \phdname, \scdname, -% \mdname, \pename, \iename. -% 2009-10-30 Add support for book and report classes. -% 2009-10-28 Add \parskip. -% Rename macros to avoid conflicts: \st->\ust, \nd->\und, -% \rd->\urd, \th->\uth -% 2009-10-27 Add framedminipage environment. -% 2009-06-25 Add \tablenote in mtable environment. -% 2009-06-23 Add upmcaution, upminfo and upmquestion environments. -% 2009-05-08 Remove CR character -% Add \arakhneorg command -% 2009-04-29 Include package pifont (texlive distribution) -% 2007-07-07 Override the bibliography functions. -% 2007-07-06 Bug fix: use varioref for the footnote references. -% 2007-07-05 Add people name formatting function. -% 2007-07-02 Add exponent/indice commands and st/nd/rd/th symbols. -% 2007-06-27 Add inline enumeration. -% 2007-03-19 Add date fonctions. -% Add localization. -% 2006-04-19 Add version number. -% Add mtabular and mtable. -% 2006-04-20 Bug fix: invalid position of the tables. -% Bug fix: centering table's headers. -% -\global\edef\upm@package@fmt@ver{2013/05/31} +\global\edef\upm@package@fmt@ver{2013/08/15} \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{upmethodology-fmt}[\upm@package@fmt@ver] @@ -73,6 +34,7 @@ %---------------------------------------- % LOCALES %---------------------------------------- +\global\let\upm@format@lang@extractyear\upm@date@first% \def\upm@format@lang@english{% \gdef\upm@lang@@{\message{**** upmethodology-fmt is using English language ****}}% \global\renewcommand{\upm@format@lang@makedate}[3]{##3\string/\two@digits{##2}\string/\two@digits{##1}}% @@ -86,7 +48,6 @@ \gdef\upm@format@lang@professionalengineer{CEng.}% \gdef\upm@format@lang@incorporatedengineer{IEng.}% } - \global\let\upm@format@lang@extractyear\upm@date@first% \def\upm@format@lang@french{% \gdef\upm@lang@@{\message{**** upmethodology-fmt is using French language ****}}% \global\renewcommand{\upm@format@lang@makedate}[3]{\two@digits{##1}\string/\two@digits{##2}\string/##3}% @@ -136,6 +97,7 @@ \RequirePackage{txfonts} \RequirePackage{relsize} \RequirePackage{keyval} +\RequirePackage{hyphenat} %---------------------------------------- % Exponent and indice @@ -148,8 +110,14 @@ \newcommand{\textsub}[1]{\upm@textsubscript{#1}\xspace} %---------------------------------------- +% Major Emphazing +%---------------------------------------- +\newcommand{\Emph}[1]{\textbf{#1}\xspace} + +%---------------------------------------- % SYMBOLS %---------------------------------------- +\renewcommand{\copyright}{\Pisymbol{psy}{211}\xspace} \newcommand{\trademark}{\Pisymbol{psy}{228}\xspace} \newcommand{\regmark}{\Pisymbol{psy}{226}\xspace} \newcommand{\smalltrade}{{\tiny\trademark}\xspace} @@ -160,7 +128,6 @@ \newcommand{\urd}{\textsup{rd}} \newcommand{\uth}{\textsup{th}} - %---------------------------------------- % DEFAULT GRAPHICX CONFIGURATION %---------------------------------------- @@ -491,7 +458,7 @@ \addcontentsline{toc}{part}{#1}% \fi \markboth{}{}% - {\centering + {\huge\centering \interlinepenalty \@M \normalfont \ifnum \c@secnumdepth >-2\relax @@ -499,13 +466,13 @@ \par \vskip 20\p@ \fi - \upm@format@parttitle{#2}\par}% + \upm@format@parttitle{\nohyphens{#2}}\par}% \@endpart} \gdef\@spart#1{% {\centering \interlinepenalty \@M \normalfont - \upm@format@parttitle{#1}\par}% + \upm@format@parttitle{\nohyphens{#1}}\par}% \@endpart} \fi @@ -513,7 +480,7 @@ \ifupmarticleformat\else \newcommand{\upm@format@makechapterhead}[2]{% %\vspace*{50\p@}% - {\parindent \z@ \raggedleft \normalfont + {\parindent \z@ \Huge \raggedleft \normalfont \ifx\@empty#1\ifnum \c@secnumdepth >\m@ne \upm@format@chapternum{\thechapter} \par\nobreak @@ -521,7 +488,7 @@ \fi\fi \interlinepenalty\@M \ifupmbookformat\doublespacing\fi - \upm@format@chaptertitle{#2}\par\nobreak + \upm@format@chaptertitle{\nohyphens{#2}}\par\nobreak \vskip 80\p@ } } @@ -889,6 +856,55 @@ } %---------------------------------------- +% DESCRIPTION LIST WITH BULLETS +%---------------------------------------- + +\newcounter{@upm@fmt@enumdescription@cnt@} +\newcommand{\upm@fmt@enumdescription@fmt@}[1]{} +\newcommand{\enumdescriptionlabel}[1]{\textbf{#1}} +\newenvironment{enumdescriptionx}[3][i]{% + \begingroup\setcounter{@upm@fmt@enumdescription@cnt@}{1}% + \let\upm@fmt@enumdescription@savedlabel\@currentlabel% + \ifthenelse{\equal{#1}{a}}{% + \renewcommand{\upm@fmt@enumdescription@fmt@}[1]{#2\alph{##1}#3}% + }{% + \ifthenelse{\equal{#1}{i}}{% + \renewcommand{\upm@fmt@enumdescription@fmt@}[1]{#2\roman{##1}#3}% + }{% + \renewcommand{\upm@fmt@enumdescription@fmt@}[1]{#2\expandafter{\csname the##1\endcsname}#3}% + }% + }% + \begin{list}{}{% + \renewcommand{\makelabel}[1]{\xdef\@currentlabel{\upm@fmt@enumdescription@fmt@{@upm@fmt@enumdescription@cnt@}}\enumdescriptionlabel{\@currentlabel~-~##1}:~{\addtocounter{@upm@fmt@enumdescription@cnt@}{1}}}% + \settowidth{\labelwidth}{iii)~}% + } +}{% + \global\let\@currentlabel\upm@fmt@enumdescription@savedlabel% + \end{list}\endgroup% +} +\newenvironment{enumdescription}[1][i]{% + \begin{enumdescriptionx}[#1]{}{}% +}{% + \end{enumdescriptionx}% +} + +%---------------------------------------- +% DESCRIPTION LIST WITH BULLETS +%---------------------------------------- +\let\upm@fmt@itemizeddescription@olditem\item +\newcommand{\upm@fmt@itemizeddescription@formatdescription}[1]{\textbf{#1}} +\newcommand{\upm@fmt@itemizeddescription@desc}[1][]{\ifthenelse{\equal{a#1}{a}}{}{\upm@fmt@itemizeddescription@formatdescription{#1 :}\xspace}}% +\renewenvironment{description}[1][]{% + \bgroup% + \itemize + \global\let\upm@fmt@itemizeddescription@olditem\item% + \renewcommand{\item}{\upm@fmt@itemizeddescription@olditem\relax\upm@fmt@itemizeddescription@desc}% +}{% + \enditemize% + \egroup% +} + +%---------------------------------------- % SIZE MANAGEMENT %---------------------------------------- \newenvironment{upmfontsize}[1]{% @@ -1008,6 +1024,16 @@ \newcommand{\href}[3][]{\texttt{#3}} %---------------------------------------- +% Exponents and Indices +%---------------------------------------- +\renewcommand{\textup}[1]{\textsuperscript{#1}\xspace} +\def\@textsubscript#1{% + {\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}} +\newcommand{\textsubscript}[1]{\@textsubscript{\selectfont#1}} +\newcommand{\textdown}[1]{\textsubscript{#1}\xspace} + + +%---------------------------------------- % UNDERLINE %---------------------------------------- |