From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/elbioimp/Makefile | 26 ++ macros/latex/contrib/elbioimp/README | 76 ++++ macros/latex/contrib/elbioimp/elbioimp-basis.tex | 99 +++++ macros/latex/contrib/elbioimp/elbioimp.cls | 159 ++++++++ macros/latex/contrib/elbioimp/elbioimp.dtx | 472 +++++++++++++++++++++++ macros/latex/contrib/elbioimp/elbioimp.ins | 38 ++ macros/latex/contrib/elbioimp/elbioimp.pdf | Bin 0 -> 289142 bytes macros/latex/contrib/elbioimp/test-bib.bib | 52 +++ macros/latex/contrib/elbioimp/test-ill.png | Bin 0 -> 8253 bytes macros/latex/contrib/elbioimp/test1.tex | 113 ++++++ 10 files changed, 1035 insertions(+) create mode 100644 macros/latex/contrib/elbioimp/Makefile create mode 100644 macros/latex/contrib/elbioimp/README create mode 100644 macros/latex/contrib/elbioimp/elbioimp-basis.tex create mode 100644 macros/latex/contrib/elbioimp/elbioimp.cls create mode 100644 macros/latex/contrib/elbioimp/elbioimp.dtx create mode 100644 macros/latex/contrib/elbioimp/elbioimp.ins create mode 100644 macros/latex/contrib/elbioimp/elbioimp.pdf create mode 100644 macros/latex/contrib/elbioimp/test-bib.bib create mode 100644 macros/latex/contrib/elbioimp/test-ill.png create mode 100644 macros/latex/contrib/elbioimp/test1.tex (limited to 'macros/latex/contrib/elbioimp') diff --git a/macros/latex/contrib/elbioimp/Makefile b/macros/latex/contrib/elbioimp/Makefile new file mode 100644 index 0000000000..e69d998792 --- /dev/null +++ b/macros/latex/contrib/elbioimp/Makefile @@ -0,0 +1,26 @@ +PACKAGE = elbioimp + +$(PACKAGE).cls: $(PACKAGE).ins $(PACKAGE).dtx + tex $(PACKAGE).ins + +$(PACKAGE).pdf: $(PACKAGE).cls + pdflatex $(PACKAGE).dtx + bibtex $(PACKAGE) + makeindex -s gglo.ist -o elbioimp.gls elbioimp.glo + makeindex -s gind.ist -o elbioimp.ind elbioimp.idx + pdflatex $(PACKAGE).dtx + +test1.pdf: test1.tex $(PACKAGE).cls + pdflatex test1.tex + bibtex test1 + pdflatex test1.tex + pdflatex test1.tex + +distr: $(PACKAGE).pdf test1.pdf + zip elbioimp README Makefile $(PACKAGE).dtx $(PACKAGE).ins \ + $(PACKAGE).cls $(PACKAGE).pdf test1.tex test-bib.bib \ + test-ill.png $(PACKAGE)-basis.tex + cp elbioimp.pdf ~dag/www_docs/latex-links + +clean: + rm -f *.aux *.bbl *.blg *.dvi *.glo *.gls *.idx *.ilg *.ind *.log *.zip *~ diff --git a/macros/latex/contrib/elbioimp/README b/macros/latex/contrib/elbioimp/README new file mode 100644 index 0000000000..582912ff0d --- /dev/null +++ b/macros/latex/contrib/elbioimp/README @@ -0,0 +1,76 @@ +Document class elbioimp +----------------------- +A LaTeX document class for the Journal of Electrical Bioimpedance +Version 1.2 dated 2 March 2011 + + +Contents +-------- +- Files +- Licence +- Requirements +- Installation +- Documentation +- Use + + +Files +----- +README - this file +elbioimp.cls - the document class +elbioimp.ins - a driver file for extracting elbioimp.cls from +elbioimp.dtx - combined documentation and code file +elbioimp.pdf - documented source code +elbioimp-basis.tex - a basis for writing your own articles +test1.tex - a test document +test1.pdf - the test document (processed) +test-bib.bib - a bibliography for the test document +test-ill.png - an illustration for the test document + + +Licence +------- + +This document class and the documentation are distributed according to +the LaTeX Project Public License, see +http://www.latex-project.org/lppl.txt + + +Requirements +------------ +The document class should run with any standard LaTeX distribution from +2007 or later; it was tested with TeXlive 2007. The following packages +are needed: + +caption - for adapting the figure and table captions +ifthen - for adding an if-then-else-construct +geometry - for specifying page dimensions +mathptmx - for using the Times Roman font +url - for typesetting e-mail addresses and URLs + +All these should be available in a standard LaTeX distribution. + + +Installation +------------ + +Put elbioimp.cls in a folder when LaTeX will find it. (Remember to +rebuild the file name database.) + +If you don't know how to do this, you can just put elbioimp.cls in the +same folder as your LaTeX file. + + +Documentation +------------- + +See the enclosed file elbioimp.pdf. To create this PDF file, let LaTeX +process elbioimp.dtx. + + +Use +--- + +Make a copy of elbioimp-basis.tex. Modify the settings (as specified +in the comments -- look particularly for the word "OPTION") and write +your article. diff --git a/macros/latex/contrib/elbioimp/elbioimp-basis.tex b/macros/latex/contrib/elbioimp/elbioimp-basis.tex new file mode 100644 index 0000000000..4379a782a8 --- /dev/null +++ b/macros/latex/contrib/elbioimp/elbioimp-basis.tex @@ -0,0 +1,99 @@ +%% Base file for an article submitted to the Journal of Electrical +%% Bioimpedance. + +%% 1. Make a copy of this file. +%% 2. Select your options (look for "OPTION" below). +%% 3. Add your text and illustrations. + + + +\documentclass{elbioimp} + +%% OPTION: Select encoding used in you LaTeX file: +\usepackage[latin1]{inputenc} % ISO 8859-1 (standard single-byte + % encoding in the Western world) +% \usepackage[applemac]{inputenc} % Standard Mac encoding +% \usepackage[utf8]{inputenc} % Unicode in UTF-8 + +%% OPTION: Select your language: +\usepackage[USenglish]{babel} % American English +% \usepackage[UKenglish]{babel} % British English + +%% Other packages you might need: +% \usepackage{graphicx} % Add this package if you have illustrations +% \usepackage{textcomp} % Additional characters + + +%% OPTION: Document information: +\title{My title} % Article title + +\author{First author\affiliation{Institution of first author}\and + Second author\affiliation{Institution of second author}\and + Third author\affiliation{Institution of third author}} + +%% For identical affiliations: +% \author{A Author\affiliation{Uni 1}\and +% B Author\sameaffiliation} +% +%% In more complex cases, use \sameaffiliation[n]. +%% For example: Assume first and third author have the same affiliation: +% \author{A Author\affiliation{Uni 1}\and +% B Author\affiliation{Uni 2}\and +% C Author\sameaffiliation[1]} + +%% OPTION: Keywords: +\keywords{Keyword1, keyword2, keyword3} % Article keywords + + + +%% And, finally, the article itself: + +\begin{document} +%% NOTE: Always use \maketitle! +\maketitle + + +%% NOTE: Always include an abstract! +\begin{abstract} + Put your abstract here. + +\end{abstract} + + +\section{Introduction} % Level 1 heading +\subsection{Previous results} % Level 2 heading +\subsubsection{The 2001 investigations} % Level 3 heading + +%% NOTE: Your text. +%% REMEMBER: +%% \# for # \% for % \{ for { \_ for _ +%% \$ for $ \& for & \} for } +%% \textbackslash for \ +%% \textasciicircum for ^ +%% \textasciitilde fir ~ +%% +%% Use a blank line to separate paragraphs. +%% Use \url{...} for e-mail addresses and URLs. + +%% OPTION: An illustration: +% \begin{figure} +% \centering +% \includegraphics[width=\columnwidth]{illustration1} +% \caption{Figure caption\label{a label}} +% \end{figure} + +%% OPTION: A table: +% \begin{table} +% \centering +% \begin{tabular}{|l|c|r|} %% l=left, c=center, r=right, |=vertical rule +% \hline %% horizontal rule +% A& B& C\\ %% & separates columns; \\ ends row +% \hline +% \end{tabular} +% \caption{Table caption\label{a label}} +% \end{table} + + +%% OPTION: Name of your BibTeX bibliography file: +% \bibliography{mybib} %% No .bib suffix! +\end{document} diff --git a/macros/latex/contrib/elbioimp/elbioimp.cls b/macros/latex/contrib/elbioimp/elbioimp.cls new file mode 100644 index 0000000000..fe1e47ac7a --- /dev/null +++ b/macros/latex/contrib/elbioimp/elbioimp.cls @@ -0,0 +1,159 @@ +%% +%% This is file `elbioimp.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% elbioimp.dtx (with options: `class') +%% This is a generated file. +%% +%% Copyright (C) 2011 by Dag Langmyhr +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, see +%% http://www.latex-project.org/lppl.txt +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesClass{elbioimp} + [2011/03/02 v1.2 Document class for Journal of Electrical Bioimpedance] +\DeclareOption*{\ClassWarningNoLine + {elbioimp}{Class option \CurrentOption + \space is illegal in this document class}} +\ProcessOptions \relax +\LoadClass[twocolumn]{article} +\RequirePackage{ifthen} +\RequirePackage[T1]{url} +\urlstyle{sf} +\AtBeginDocument{\renewcommand{\maketitle}{% + \twocolumn[\begin{minipage}{\textwidth} + \renewcommand{\and}{, } + \let \thanks = \affiliation + \let \samethanks = \sameaffiliation + \renewcommand{\footnoterule}{} + \def \@makefntext ##1{\noindent + \small \@thefnmark. \it ##1} + \renewcommand{\thempfootnote}% + {\arabic{mpfootnote}} + \parindent = 0pt + {\huge \@title}\par\vspace{16pt} + {\large \@author} + \end{minipage}\par\vspace{14pt}\noindent + \elb@rule{\textwidth}\vspace{11pt}]}} +\newcommand{\elb@rule}[1]{\rule{#1}{0.6pt}} +\newcommand{\affiliation}[1]{\footnote{#1}} +\newcommand{\sameaffiliation}[1][0]{% + \addtocounter{mpfootnote}{-1}% + \ifthenelse{#1<1} + {\@makefnmark} + {\@textsuperscript{\normalfont#1}}% + \addtocounter{mpfootnote}{1}} +\newcommand{\keywords}[1]{\def\elb@keywords{#1}} +\renewenvironment{abstract} + {\small\noindent + \textbf{\abstractname}\par\vspace{1pt} + \noindent\ignorespaces} + {\par + \@ifundefined{elb@keywords}{}{% + \vspace{\baselineskip}\noindent + \textbf{Keywords:} \elb@keywords\par} + \vspace{\baselineskip}\noindent + \elb@rule{\columnwidth}} +\RequirePackage[a4paper, + margin=1.5cm,top=2.5cm]{geometry} +\setlength{\columnsep}{1cm} +\pretolerance = 1000 +\tolerance = 2000 \hbadness = \tolerance +\AtBeginDocument{\pagestyle{empty}} +\RequirePackage{mathptmx} +\renewcommand{\Huge}{\@setfontsize + \Huge {20}{26}} +\renewcommand{\huge}{\@setfontsize + \huge {16}{20.8}} +\renewcommand{\LARGE}{\@setfontsize + \LARGE {14}{18.2}} +\renewcommand{\Large}{\@setfontsize + \Large {12}{15.6}} +\renewcommand{\large}{\@setfontsize + \large {11}{14.3}} +\renewcommand{\normalsize}{% + \@setfontsize \normalsize {10}{13}% + \abovedisplayskip = + 10pt plus 2pt minus 5pt + \abovedisplayshortskip = + 0pt plus 3pt + \belowdisplayshortskip = + 6pt plus 3pt minus 3pt + \belowdisplayskip = \abovedisplayskip + \def\@listi{\leftmargin = \leftmargini + \topsep = 5pt plus 2pt minus 2pt + \parsep = 3pt plus 1pt minus 1pt + \itemsep = \topsep}} +\renewcommand{\small}{% + \@setfontsize \small {9}{11.7}% + \abovedisplayskip = + 8.5pt plus 3pt minus 4pt + \abovedisplayshortskip = + 0pt plus 2pt + \belowdisplayshortskip = + 4pt plus 2pt minus 2pt + \def\@listi{\leftmargin = \leftmargini + \topsep = 4pt plus 2pt minus 2pt + \parsep = 2pt plus 1pt minus 1pt + \itemsep = \topsep}% + \belowdisplayskip = \abovedisplayskip} +\renewcommand{\footnotesize}{% + \@setfontsize \footnotesize {8}{10.4}% + \abovedisplayskip = + 6pt plus 2pt minus 4pt + \abovedisplayshortskip = + 0pt plus 1pt + \belowdisplayshortskip = + 3pt plus 1pt minus 2pt + \def\@listi{\leftmargin = \leftmargini + \topsep = 3pt plus 1pt minus 1pt + \parsep = 1.5pt plus 1pt minus 1pt + \itemsep = \topsep}% + \belowdisplayskip = \abovedisplayskip} +\renewcommand{\scriptsize}{\@setfontsize + \scriptsize {7}{9.1}} +\renewcommand{\tiny}{\@setfontsize + \tiny {5}{6.5}} +\normalsize +\RequirePackage{type1cm,type1ec} +\DeclareMathSizes{11}{11}{8}{6} +\DeclareMathSizes{14}{14}{11}{8} +\DeclareMathSizes{16}{16}{12}{10} +\DeclareMathSizes{20}{20}{14}{12} +\renewcommand{\section}{\@startsection + {section}{1}{0pt}% + {-11pt plus -6pt minus -2pt}% + {11pt plus 6pt minus 2pt}% + {\normalfont\normalsize\bf}} +\renewcommand{\subsection}{\@startsection + {subsection}{2}{0pt}% + {-11pt plus -6pt minus -2pt}% + {11pt plus 6pt minus 2pt}% + {\normalfont\normalsize\it}} +\renewcommand{\subsubsection}{\@startsection + {subsubsection}{3}{0pt}% + {-11pt plus -6pt minus -2pt}% + {11pt plus 6pt minus 2pt}% + {\normalfont\normalsize}} +\setcounter{secnumdepth}{-2} +\RequirePackage[margin=0.5cm,font=footnotesize, + aboveskip=5pt]{caption} +\DeclareCaptionLabelFormat{fig} + {\ifthenelse{\equal{#1}% + {Figure}}{Fig}{Tab}.~#2} +\captionsetup{labelformat=fig} +\setlength{\floatsep}{6pt plus 3pt} +\setlength{\textfloatsep}{\floatsep} +\renewcommand{\floatpagefraction}{0.8} +\bibliographystyle{vancouver} +\renewcommand{\@openbib@code}{\small + \setlength{\itemsep}{3pt}% + \setlength{\parsep}{1pt plus 1pt}} +\renewcommand\@biblabel[1]{#1.} +\endinput +%% +%% End of file `elbioimp.cls'. diff --git a/macros/latex/contrib/elbioimp/elbioimp.dtx b/macros/latex/contrib/elbioimp/elbioimp.dtx new file mode 100644 index 0000000000..e36fc10008 --- /dev/null +++ b/macros/latex/contrib/elbioimp/elbioimp.dtx @@ -0,0 +1,472 @@ +% \iffalse meta-comment +% +% Copyright (C) 2011 by Dag Langmyhr +% +% This file may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, see +% http://www.latex-project.org/lppl.txt +% +% \fi +% +% \iffalse +%<*driver> +\ProvidesFile{elbioimp.dtx} +% +%\NeedsTeXFormat{LaTeX2e}[1999/12/01] +%\ProvidesClass{elbioimp} +%<*class> + [2011/03/02 v1.2 Document class for Journal of Electrical Bioimpedance] +% +% +%<*driver> +\documentclass{elbioimp} +\usepackage[T1]{fontenc} +\usepackage{doc,textcomp,varioref} +\EnableCrossrefs +\CodelineIndex +\RecordChanges +\keywords{\LaTeX{} document class, journal document style} + +\begin{document} +\DocInput{elbioimp.dtx} +\end{document} +% +% \fi +% +% \CharacterTable +% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} +% +% % \CheckSum{224} +% +% \newcommand{\cmd}[1]{\texttt{\textbackslash #1}} +% \newcommand{\Cname}{\textsf{elbioimp}} +% \newcommand{\Jname}{\emph{Journal of Electrical Bioimpedance}} +% +% \changes{v1.0}{2010/01/20}{Initial version} +% \changes{v1.1}{2010/11/02}{Line spacing modified} +% \changes{v1.2}{2011/03/01}{Added \cmd{subsection}, +% \cmd{affiliation}, and \cmd{sameaffiliation}} +% +% \GetFileInfo{elbioimp.dtx} +% +% \DoNotIndex{\,} +% \DoNotIndex{\abstractname,\addtocounter,\arabic,\AtBeginDocument,\@author} +% \DoNotIndex{\baselineskip,\begin,\bf,\bibliographystyle} +% \DoNotIndex{\captionsetup,\ClassWarningNoLine,\columnwidth,\CurrentOption} +% \DoNotIndex{\DeclareCaptionLabelFormat,\DeclareMathSizes,\DeclareOption,\def} +% \DoNotIndex{\end,\equal} +% \DoNotIndex{\footnote,\footnoterule} +% \DoNotIndex{\ifthenelse,\@ifundefined,\ignorespaces,\it,\itemsep} +% \DoNotIndex{\leftmargin,\leftmargini,\let,\@listi,\@listI,\LoadClass} +% \DoNotIndex{\@makefnmark,\@makefntext} +% \DoNotIndex{\newcommand,\newenvironment,\noindent,\normalfont} +% \DoNotIndex{\pagestyle,\par,\parindent,\parsep,\ProcessOptions} +% \DoNotIndex{\relax,\renewcommand,\renewenvironment,\RequirePackage,\rule} +% \DoNotIndex{\setcounter,\@setfontsize,\setlength,\space,\@startsection} +% \DoNotIndex{\textbf,\@textsuperscript,\textwidth,\@thefnmark,% +% \thempfootnote,\@title,\topsep,\twocolumn} +% \DoNotIndex{\urlstyle} +% \DoNotIndex{\vspace} +% +% \title{The \Cname{} class} +% \author{Dag Langmyhr\affiliation{Department of Informatics, +% University of Oslo, \textsf{dag@ifi.uio.no}}} +% +% \maketitle +% +% \begin{abstract} +% \noindent +% This paper describes the implementation of the document class +% \Cname{} which has been designed for writing articles in the \Jname. +% It corresponds to \Cname{}~\fileversion, dated \filedate. +% \end{abstract} +% +% +% \section{Introduction} +% The \Jname{} (see its web page at +% \url{https://www.journals.uio.no/index.php/bioimpedance}) has +% defined a typographic style for its publication, to some extent +% based on recommendations from the \emph{US National institute of +% health}\cite{NIH}. The \LaTeX{} document class \Cname{} implements +% this style. +% As an example, this documentation uses the \Cname{} class. +% +% This \LaTeX{} code is published with a \textbf{\LaTeX{} project +% public license}, as described in +% \url{http://www.latex-project.org/lppl/}. +% +% +% \section{Usage} +% To use this document class, you must first put the +% \url{elbioimp.cls} file somewhere that \LaTeX{} can find +% it.\footnote{If you are not very familiar with your \LaTeX{} +% installation or your system administrator, you can put the +% \url{elbioimp.cls} file in the same folder as your \LaTeX{} source +% files.} +% Then you can write your \LaTeX{} document starting with +% \begin{verbatim} +%\documentclass{elbioimp} +% \end{verbatim} +% The document class is based on the standard \emph{article} class and +% is used just like that class, with three exceptions: +% \begin{enumerate} +% \item The authors' affiliations (to companies or academic institutions) +% are given with the \verb:\affiliation: command: +% \begin{verbatim} +%\author{My name\affiliation{My univerisity, +% My city, My country}} +% \end{verbatim} +% If there is more than one author, their names should be separated +% by an \verb:\and: command. +% +% If two authors have the same affiliation, the latter one may use the +% \verb:\sameaffiliation: command, as in +% \begin{verbatim} +%\author{First Author\affiliation{My university, +% My city, My country}\and +% Second Author\sameaffiliation} +% \end{verbatim} +% +% In case there should be three or more authors and some have identical +% affiliations, \verb:\sameaffiliation: may be given a +% numeric option referencing a previous author; for example, if the +% first and the third author belong to the same institution, you may +% write: +% \begin{verbatim} +%\author{A Bee\affiliation{Uni A}\and +% C Dee\affiliation{Uni B}\and +% E Eff\sameaffiliation[1]} +% \end{verbatim} +% +% \item The author may indicate keywords by empoying the +% \verb:\keyword: command. +% +% \item The document class will function poorly unless there is an +% \verb:abstract: environment and a \verb:\maketitle: command. +% \end{enumerate} +% +% \StopEventually{\bibliography{elbioimp}% +% \onecolumn\PrintChanges\PrintIndex} +% +% +% \section{Class headers} +% All \LaTeXe{} class files contain a header with a set of standard +% specifications. +% +% \subsection{Class options} +% This document class has no options. +% \begin{macrocode} +\DeclareOption*{\ClassWarningNoLine + {elbioimp}{Class option \CurrentOption + \space is illegal in this document class}} +\ProcessOptions \relax +% \end{macrocode} +% +% \subsection{Base class} +% This document class is based on the standard \emph{article} class. +% +% \begin{macrocode} +\LoadClass[twocolumn]{article} +% \end{macrocode} +% +% \section{Required packages} +% A couple of standard packages are necessary to implement this class. +% +% \subsection{The \textsf{ifthen} package} +% The \textsf{ifthen} package makes testing easier. +% \begin{macrocode} +\RequirePackage{ifthen} +% \end{macrocode} +% +% \subsection{The \textsf{url} package} +% URLs should be typeset in a \textsf{Sans serif font} rather than a +% \texttt{Teletype font}. +% \begin{macrocode} +\RequirePackage[T1]{url} +\urlstyle{sf} +% \end{macrocode} +% +% +% \section{Document title area} +% The title area has its own particular design. +% It is implemented by redefining the \verb:\maketitle: command. +% \begin{macrocode} +\AtBeginDocument{\renewcommand{\maketitle}{% + \twocolumn[\begin{minipage}{\textwidth} + \renewcommand{\and}{, } + \let \thanks = \affiliation + \let \samethanks = \sameaffiliation + \renewcommand{\footnoterule}{} + \def \@makefntext ##1{\noindent + \small \@thefnmark. \it ##1} + \renewcommand{\thempfootnote}% + {\arabic{mpfootnote}} + \parindent = 0pt + {\huge \@title}\par\vspace{16pt} + {\large \@author} + \end{minipage}\par\vspace{14pt}\noindent + \elb@rule{\textwidth}\vspace{11pt}]}} +\newcommand{\elb@rule}[1]{\rule{#1}{0.6pt}} +% \end{macrocode} +% (The names \verb:\thanks: and \verb:\samethanks: are kept for +% historic reasons.) +% +% \subsection{Affiliations} +% Affiliations are specified using the \verb:\affiliation: and +% \verb:\sameaffiliation: commands. +% \begin{macrocode} +\newcommand{\affiliation}[1]{\footnote{#1}} +\newcommand{\sameaffiliation}[1][0]{% + \addtocounter{mpfootnote}{-1}% + \ifthenelse{#1<1} + {\@makefnmark} + {\@textsuperscript{\normalfont#1}}% + \addtocounter{mpfootnote}{1}} +% \end{macrocode} +% +% \subsection{Keywords} +% An additional command \verb:\keywords: makes it possible to specify +% keywords that apply to the document. +% \begin{macrocode} +\newcommand{\keywords}[1]{\def\elb@keywords{#1}} +% \end{macrocode} +% +% \subsection{Abstract} +% The abstract is typeset in \verb:\small:, and includes the keywords (if +% any). +% \begin{macrocode} +\renewenvironment{abstract} + {\small\noindent + \textbf{\abstractname}\par\vspace{1pt} + \noindent\ignorespaces} + {\par + \@ifundefined{elb@keywords}{}{% + \vspace{\baselineskip}\noindent + \textbf{Keywords:} \elb@keywords\par} + \vspace{\baselineskip}\noindent + \elb@rule{\columnwidth}} +% \end{macrocode} +% +% +% \section{Body text} +% +% \subsection{Text area} +% The text area should be in two columns and fill an A4 paper with +% margins 1.5\,cm (except the top margin, which should be 2.5\,cm). +% The gutter space should be 1\,cm. +% \begin{macrocode} +\RequirePackage[a4paper, + margin=1.5cm,top=2.5cm]{geometry} +\setlength{\columnsep}{1cm} +% \end{macrocode} +% Since the layout uses double columns, I will increase the tolerance +% for line-breaking. +% \begin{macrocode} +\pretolerance = 1000 +\tolerance = 2000 \hbadness = \tolerance +% \end{macrocode} +% +% +% \subsection{Headers and footers} +% This document class has neither headers nor footers, presumably +% because the publisher will add them later. +% \begin{macrocode} +\AtBeginDocument{\pagestyle{empty}} +% \end{macrocode} +% +% +% \subsection{Text font} +% The specified journal font is \emph{Times Roman}. The +% \emph{mathptmx} packages is one of several packages that can handle this, +% but this particular package has the advantage that it also uses +% \emph{Times Roman} for the math fonts (as much as possible). +% \begin{macrocode} +\RequirePackage{mathptmx} +% \end{macrocode} +% The \emph{mathptmx} package retains the \textsf{Computer Modern Sans +% Serif} and \texttt{Computer Modern Teletype} fonts, but they blend +% reasonably well with \emph{Times Roman} (at least in my opinion) so +% I will keep them. +% +% \subsection{Text sizes} +% The specified text sizes are shown in Table\vref{tab:sizes}. +% The leading should be 30\%. +% \begin{table} +% \centering +% \begin{tabular}{cr} +% \Huge \strut\verb:\Huge:& 20\,pt\\ +% \huge \strut\verb:\huge:& 16\,pt\\ +% \LARGE \strut\verb:\LARGE:& 14\,pt\\ +% \Large \strut\verb:\Large:& 12\,pt\\ +% \large \strut\verb:\large:& 11\,pt\\ +% \normalsize \strut\verb:\normalsize:& 10\,pt\\ +% \small \strut\verb:\small:& 9\,pt\\ +% \footnotesize \strut\verb:\footnotesize:& 8\,pt\\ +% \scriptsize \strut\verb:\scriptsize:& 7\,pt\\ +% \tiny \strut\verb:\tiny:& 5\,pt\\ +% \end{tabular} +% \caption{Text sizes in \Cname\label{tab:sizes}} +% \end{table} +% \begin{macrocode} +\renewcommand{\Huge}{\@setfontsize + \Huge {20}{26}} +\renewcommand{\huge}{\@setfontsize + \huge {16}{20.8}} +\renewcommand{\LARGE}{\@setfontsize + \LARGE {14}{18.2}} +\renewcommand{\Large}{\@setfontsize + \Large {12}{15.6}} +\renewcommand{\large}{\@setfontsize + \large {11}{14.3}} +\renewcommand{\normalsize}{% + \@setfontsize \normalsize {10}{13}% + \abovedisplayskip = + 10pt plus 2pt minus 5pt + \abovedisplayshortskip = + 0pt plus 3pt + \belowdisplayshortskip = + 6pt plus 3pt minus 3pt + \belowdisplayskip = \abovedisplayskip + \def\@listi{\leftmargin = \leftmargini + \topsep = 5pt plus 2pt minus 2pt + \parsep = 3pt plus 1pt minus 1pt + \itemsep = \topsep}} +\renewcommand{\small}{% + \@setfontsize \small {9}{11.7}% + \abovedisplayskip = + 8.5pt plus 3pt minus 4pt + \abovedisplayshortskip = + 0pt plus 2pt + \belowdisplayshortskip = + 4pt plus 2pt minus 2pt + \def\@listi{\leftmargin = \leftmargini + \topsep = 4pt plus 2pt minus 2pt + \parsep = 2pt plus 1pt minus 1pt + \itemsep = \topsep}% + \belowdisplayskip = \abovedisplayskip} +\renewcommand{\footnotesize}{% + \@setfontsize \footnotesize {8}{10.4}% + \abovedisplayskip = + 6pt plus 2pt minus 4pt + \abovedisplayshortskip = + 0pt plus 1pt + \belowdisplayshortskip = + 3pt plus 1pt minus 2pt + \def\@listi{\leftmargin = \leftmargini + \topsep = 3pt plus 1pt minus 1pt + \parsep = 1.5pt plus 1pt minus 1pt + \itemsep = \topsep}% + \belowdisplayskip = \abovedisplayskip} +\renewcommand{\scriptsize}{\@setfontsize + \scriptsize {7}{9.1}} +\renewcommand{\tiny}{\@setfontsize + \tiny {5}{6.5}} +% \end{macrocode} +% As expected, \verb:\normalsize: is the default. +% \begin{macrocode} +\normalsize +% \end{macrocode} +% Since the class uses some non-standard sizes (i.e., not in the +% $1{.}2^n$-series) it must signal \LaTeX{} that font +% scaling may be used.\footnote{These days, all decent \LaTeX{} installations +% should provide scalable fonts.} +% \begin{macrocode} +\RequirePackage{type1cm,type1ec} +% \end{macrocode} +% The class must also define some math sizes. +% \begin{macrocode} +\DeclareMathSizes{11}{11}{8}{6} +\DeclareMathSizes{14}{14}{11}{8} +\DeclareMathSizes{16}{16}{12}{10} +\DeclareMathSizes{20}{20}{14}{12} +% \end{macrocode} +% +% +% \section{Sectioning} +% The section headers in this class have a different look from the +% standard \LaTeX{} classes. +% \begin{macrocode} +\renewcommand{\section}{\@startsection + {section}{1}{0pt}% + {-11pt plus -6pt minus -2pt}% + {11pt plus 6pt minus 2pt}% + {\normalfont\normalsize\bf}} +\renewcommand{\subsection}{\@startsection + {subsection}{2}{0pt}% + {-11pt plus -6pt minus -2pt}% + {11pt plus 6pt minus 2pt}% + {\normalfont\normalsize\it}} +\renewcommand{\subsubsection}{\@startsection + {subsubsection}{3}{0pt}% + {-11pt plus -6pt minus -2pt}% + {11pt plus 6pt minus 2pt}% + {\normalfont\normalsize}} +% \end{macrocode} +% The default definitions of \verb:\paragraph: and +% \verb:\subparagraph: are retained. +% +% \subsection{Section numbering} +% No sections should be numbered. +% \begin{macrocode} +\setcounter{secnumdepth}{-2} +% \end{macrocode} +% +% +% \section{Floats} +% Formating of float captions is best handled using the +% \textsf{caption} package. This style wants them +% \begin{itemize} +% \item indentend 0.5\,cm on each side +% \item 8\,pt type size +% \item numbering should use ``Fig.~1'' or ``Tab.~1''. +% \end{itemize} +% \begin{macrocode} +\RequirePackage[margin=0.5cm,font=footnotesize, + aboveskip=5pt]{caption} +\DeclareCaptionLabelFormat{fig} + {\ifthenelse{\equal{#1}% + {Figure}}{Fig}{Tab}.~#2} +\captionsetup{labelformat=fig} +% \end{macrocode} +% We also adjust the spacing around the floats, and we do not want +% half-empty float-columns. +% \begin{macrocode} +\setlength{\floatsep}{6pt plus 3pt} +\setlength{\textfloatsep}{\floatsep} +\renewcommand{\floatpagefraction}{0.8} +% \end{macrocode} +% +% +% \section{Document reference list} +% The reference list should be according to the Vancouver style: +% \begin{macrocode} +\bibliographystyle{vancouver} +% \end{macrocode} +% but the bibliography should be set in 9\,pt type size with 3\,pt vertical +% space. +% \begin{macrocode} +\renewcommand{\@openbib@code}{\small + \setlength{\itemsep}{3pt}% + \setlength{\parsep}{1pt plus 1pt}} +% \end{macrocode} +% In the bibliography, citations will be indicated as ``1.'' +% rather than as ``[1]''. +% \begin{macrocode} +\renewcommand\@biblabel[1]{#1.} +% \end{macrocode} +% +% \Finale +\endinput diff --git a/macros/latex/contrib/elbioimp/elbioimp.ins b/macros/latex/contrib/elbioimp/elbioimp.ins new file mode 100644 index 0000000000..03ee3fc61b --- /dev/null +++ b/macros/latex/contrib/elbioimp/elbioimp.ins @@ -0,0 +1,38 @@ +%% +%% Copyright (C) 2011 by Dag Langmyhr +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, see +%% http://www.latex-project.org/lppl.txt +%% + +\input docstrip.tex +\keepsilent + +\usedir{tex/latex/elbioimp} + +\preamble +This is a generated file. + +Copyright (C) 2011 by Dag Langmyhr + +This file may be distributed and/or modified under the +conditions of the LaTeX Project Public License, see +http://www.latex-project.org/lppl.txt + +\endpreamble + +\askforoverwritefalse +\generate{\file{elbioimp.cls}{\from{elbioimp.dtx}{class}}} + +\Msg{*********************************************************} +\Msg{* To finish the installation you have to move the} +\Msg{* following file into a directory searched by TeX:} +\Msg{*} +\Msg{* \space\space elbioimp.cls} +\Msg{*} +\Msg{* To produce the documentation run the file elbioimp.dtx} +\Msg{* through LaTeX.} +\Msg{*********************************************************} + +\endbatchfile diff --git a/macros/latex/contrib/elbioimp/elbioimp.pdf b/macros/latex/contrib/elbioimp/elbioimp.pdf new file mode 100644 index 0000000000..9ba7942bfa Binary files /dev/null and b/macros/latex/contrib/elbioimp/elbioimp.pdf differ diff --git a/macros/latex/contrib/elbioimp/test-bib.bib b/macros/latex/contrib/elbioimp/test-bib.bib new file mode 100644 index 0000000000..f518b0ed2a --- /dev/null +++ b/macros/latex/contrib/elbioimp/test-bib.bib @@ -0,0 +1,52 @@ +@InCollection{Meltzer, + crossref = {Vogelstein}, + author = {P S Meltzer and A Kallioniemi and J M Trent}, + title = {Chromosome alterations in human solid tumors}, + publisher = {McGraw-Hill}, + year = 2002, + pages = {93-113}} + +@Book{Vogelstein, + editor = {B Vogelstein and K W Kinzler}, + booktitle = {The genetic basis of human cancer}}, + publisher = {McGraw-Hill}, + year = 2002, + address = {New York}} + +@Book{Murray, + author = {P R Murray and K S Rosenthal and G S Kobayashi and + M A Pfaller}, + title = {Medical microbiology}, + publisher = {Mosby}, + year = 2002, + edition = {4th}, + address = {St.~Louis}} + +@Article{Rose, + author = {M E Rose and M B Huerbin and J Melick and D W Marion + and A M Palmer and J K Schiding an others}, + title = {Regulation of interstitial excitatory amino acid + concentrations after cortical contusion injury}, + journal = {Brain research}, + year = 2002, + volume = 935, + number = {1--2}, + pages = {40-46}} + +@Article{Halpern, + author = {S D Halpern and P A Ubel and A L Caplan}, + title = {Solid-organ transplantation in {HIV}-infected patients}, + journal = {{New England} journal of medicine}, + year = 2002, + volume = 347, + pages = {284-287}} + +@Misc{NIH, + author = {{National institue of health}}, + title = {International committee of medical journal editors + uniforum requirements for manuscripts submitted to + biomedical journals}, + howpublished = {Updated 2009 Aug 28; cited 2009 Oct 6}, + note = {Available from + \url{http://www.nlm.nih.gov/bsd/uniform_requirements.html}}} + diff --git a/macros/latex/contrib/elbioimp/test-ill.png b/macros/latex/contrib/elbioimp/test-ill.png new file mode 100644 index 0000000000..e4a229bc56 Binary files /dev/null and b/macros/latex/contrib/elbioimp/test-ill.png differ diff --git a/macros/latex/contrib/elbioimp/test1.tex b/macros/latex/contrib/elbioimp/test1.tex new file mode 100644 index 0000000000..93d913aba1 --- /dev/null +++ b/macros/latex/contrib/elbioimp/test1.tex @@ -0,0 +1,113 @@ +\documentclass{elbioimp} +\usepackage[latin1]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[USenglish]{babel} +\usepackage{textcomp,graphicx} +\usepackage{lipsum} %% For generating random text + +\title{This is your template for Journal of Electrical Bioimpedance} + +\author{First B. Author\affiliation{Department, University, City, Country}\and + Second C. Coauthor\sameaffiliation\and + Third D. Coauthor\affiliation{Xyz company}\and + Fourth E. Coauthor\sameaffiliation[1]\and + Last Z. Author\affiliation{E-mail any correspondence to: + \textsf{myname@domain.com}}} + +\keywords{Bioimpedance, current, voltage} + +\hyphenation{bio-impe-dance} + +\begin{document} +\maketitle + +\begin{abstract} + These are guidelines for preparing papers for the Journal of + Electrical Bioimpedance. The journal accepts original research + papers and review articles within the broad field of electrical + bioimpedance. Use this document as a template if you are using + \LaTeX. The paper size is A4 (21\,\texttimes\,29.7\,cm). +\end{abstract} + + +\section{Introduction} +This original source of this document is a template for Microsoft Word. +Please use the electronic version of this document as a +template when you produce your manuscript for submission to the +\emph{Journal of Electrical Bioimpedance}. The paper size is standard A4 +(21\,\texttimes\,29.7\,cm). + +The introduction section of your paper should include the necessary +background information, including an adequate review of earlier +findings and the justification for conducting this study. + + +\subsection{Materials and methods} +The margins in this document are set to 2.5\,cm for the top and 1.5\,cm +for the sides and bottom. The main body of the manuscript is in two +columns separated by a 1\,cm. The line spacing is 1.1. + +In the materials and methods section, please describe all necessary +details on how the study was performed. Do not include any discussions +of the work in this section. Enough information should be given so +that other researchers can reproduce your study. + + +\subsection{Results} +All figures should be numbered consecutively with the figure legend +indented 0.5 cm on each side.\footnote{See figure~\ref{fig:demo} for + an example.} + +Figures may be in color or black and white and must be of such quality +that they produce clear and sharp printouts on an ordinary (color) +laser printer. + +Use this section to present the results from the measurements or +studies that were described in the last section, but without going +into any discussion about the results. + +\begin{figure} + \centering + \includegraphics[width=0.8\columnwidth]{test-ill} + \caption{Box-plot showing the median value (line), mean value (cross), + middle 50\% (box) and smallest and largest point within + 1.5\,interquartiles from the box (whiskers) of all measurements on + days A, B and C.\label{fig:demo}} +\end{figure} + +\begin{table} + \centering + \renewcommand{\arraystretch}{1.2} + \begin{tabular}{clccc} + $D$& &$P_u$& $\sigma_N$\\ + (in)& & (lbs)& (psi)\\ \hline + 5& test 1& 285& 38.00\\ + & test 2& 287& 38.27\\ + & test 3& 230& 30.67\\ \hline + 10& test 1& 430& 28.67\\ + & test 2& 433& 28.87\\ + & test 3& 431& 28.73\\ \hline + \end{tabular} + \caption{A simple table\label{tab:demo}} +\end{table} + +\subsection{Concluding text} +\lipsum[1-9] + +\subsubsection{Additional comments} +\lipsum[10-11] + + +\section{Discussion} +Now you can discuss your results. Emphasize the new and important +aspects of the study and the conclusions that follow from them. Do not +repeat in detail data or other information given in the Introduction +or the Results section. After this section there may be sections +called Conclusion and Acknowledgments. The last section is +References. The \emph{Journal of Electrical Bioimpedance} uses the +Vancouver style of references with numbers in square brackets in the +text and a numbered list in the Reference section~\cite{NIH}. + +\nocite{Halpern,Meltzer,Murray,Rose} +\bibliography{test-bib} +\end{document} -- cgit v1.2.3