]> rtime.felk.cvut.cz Git - modosist/iidtitlepage.git/commitdiff
Separate creating the title page and including it in manuscript
authorIstvan Modos <istvan.modos@cvut.cz>
Tue, 6 Feb 2018 18:49:49 +0000 (19:49 +0100)
committerIstvan Modos <istvan.modos@cvut.cz>
Tue, 6 Feb 2018 19:34:14 +0000 (20:34 +0100)
README.html
README.md
bibfile.bib
example.pdf [deleted file]
example.tex [deleted file]
iidtitlepage.sty
title_page.pdf [new file with mode: 0644]
title_page.tex [new file with mode: 0644]

index 1f52d4f81b7d0b0dedf5f3600dbb344286fba744..aafa360ca8ea2685b02603413e15716e9ffc65f9 100644 (file)
@@ -47,37 +47,26 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
 <body>
 <h1 id="documentation-for-iidtitlepage-package">Documentation for <code>iidtitlepage</code> package</h1>
 <p>TODO: what is it</p>
-<h2 id="package-installation">Package installation</h2>
-<p>Put files <code>iidtitlepage.sty</code> and <code>iid-logo.pdf</code> into the root directory of your article, i.e., where your main <code>.tex</code> file is located. The package has a few dependencies, you may either check them in <code>.sty</code> file (<code>\RequirePackage</code> commands) or just keep building your article until you will have no errors left ;).</p>
-<p>TODO: installation to system LaTeX?</p>
 <h2 id="package-usage">Package usage</h2>
-<p>File <code>example.tex</code> shows a complete example on how to use the package.</p>
-<p>To import the package, use following</p>
-<div class="sourceCode"><pre class="sourceCode latex"><code class="sourceCode latex"><span class="bu">\usepackage</span>[elsevier]{<span class="ex">iidtitlepage</span>}</code></pre></div>
-<p>The package has one mandatory argument which is either <code>elsevier</code> or <code>ieee</code>, depending on the publisher of your article.</p>
-<p>Then, you need to provide some mandatory information such as title name, authors, year and citation text</p>
-<div class="sourceCode"><pre class="sourceCode latex"><code class="sourceCode latex"><span class="co">% Title.</span>
-<span class="fu">\title</span>{An example document using <span class="fu">\texttt</span>{iidtitlepage} package}
-
-<span class="co">% Authors.</span>
-<span class="co">% Unfortunately, we cannot use \author command, since some journal templates require to use a specific macros that might be not compatible with the package.</span>
-<span class="fu">\IidTitlePageAuthors</span>{Istv<span class="fu">\'</span>{a}n M<span class="fu">\'</span>{o}dos, Va<span class="fu">\v</span>{s}ek Chv<span class="fu">\'</span>{a}tal}
-
-<span class="co">% Year of publication.</span>
-<span class="fu">\IidTitlePageYear</span>{2017}
-
-<span class="co">% How to cite this article. Can be either full-text or, as in this case, a bibtex entry.</span>
-<span class="fu">\IidTitlePageCiteAs</span>{modos2018}</code></pre></div>
-<p>You may specify some optional information such as DOI and source code url</p>
-<div class="sourceCode"><pre class="sourceCode latex"><code class="sourceCode latex"><span class="fu">\IidTitlePageDoi</span>{https://doi.org/10.1016/j.cie.2017.08.011}
-<span class="fu">\IidTitlePageSourceCodes</span>{https://github.com/torvalds/linux}</code></pre></div>
-<p>After all information is specified, call <code>\IidTitlePage{}</code> to create a title page</p>
-<div class="sourceCode"><pre class="sourceCode latex"><code class="sourceCode latex"><span class="kw">\begin</span>{<span class="ex">document</span>}
-...
-<span class="fu">\IidTitlePage</span>{}
-...
-<span class="fu">\maketitle</span>
-...
-<span class="kw">\end</span>{<span class="ex">document</span>}</code></pre></div>
+<p>The process of adding the title page to your manuscript is following:</p>
+<ol style="list-style-type: decimal">
+<li>Create the PDF file of title page with all the information.</li>
+<li>Include the title page into your manuscript.</li>
+</ol>
+<h3 id="creating-the-title-page-pdf">Creating the title page PDF</h3>
+<p>First, either download the whole <code>iidtitlepage</code> project or clone its git. To change the information on the title page (such as name of the authors, title etc.), edit the file <code>title_page.tex</code> using your favorite editor and follow the LaTeX comments to include the necessary info. Build the title page PDF using <code>pdflatex</code> command.</p>
+<h3 id="including-the-title-page-into-your-manuscript">Including the title page into your manuscript</h3>
+<p>Copy the generated title page <code>title_page.pdf</code> to directory with your manuscript LaTeX project. Include a <code>pdfpages</code> package into your project</p>
+<div class="sourceCode"><pre class="sourceCode latex"><code class="sourceCode latex"><span class="bu">\usepackage</span>{<span class="ex">pdfpages</span>}</code></pre></div>
+<p>The following action depends on the journal publisher.</p>
+<h4 id="elsevier">Elsevier</h4>
+<p>Locate <code>\begin{frontmatter}</code> command and replace it with the following</p>
+<div class="sourceCode"><pre class="sourceCode latex"><code class="sourceCode latex"><span class="kw">\begin</span>{<span class="ex">frontmatter</span>}
+<span class="fu">\includepdf</span>[pages=1,fitpaper,noautoscale]{title_page.pdf}</code></pre></div>
+<h4 id="ieee-and-springer">IEEE and Springer</h4>
+<p>Locate <code>\maketitle</code> command and replace it with the following</p>
+<div class="sourceCode"><pre class="sourceCode latex"><code class="sourceCode latex"><span class="fu">\null</span>
+<span class="fu">\includepdf</span>[pages=1,fitpaper,noautoscale]{title_page.pdf}
+<span class="fu">\maketitle</span></code></pre></div>
 </body>
 </html>
index 700dfd3265adc5133df944a689f78a12ade29d29..f9b11aee064c9764629eea9a1a88a29d38eb737c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,51 +1,37 @@
 # Documentation for `iidtitlepage` package
 TODO: what is it
 
+## Package usage
+The process of adding the title page to your manuscript is following:
 
-## Package installation
-Put files `iidtitlepage.sty` and `iid-logo.pdf` into the root directory of your article, i.e., where your main `.tex` file is located.
-The package has a few dependencies, you may either check them in `.sty` file (`\RequirePackage` commands) or just keep building your article until you will have no errors left ;).
-
-TODO: installation to system LaTeX?
+1. Create the PDF file of title page with all the information.
+2. Include the title page into your manuscript.
 
-## Package usage
-File `example.tex` shows a complete example on how to use the package.
+### Creating the title page PDF
+First, either download the whole `iidtitlepage` project or clone its git.
+To change the information on the title page (such as name of the authors, title etc.), edit the file `title_page.tex` using your favorite editor and follow the LaTeX comments to include the necessary info.
+Build the title page PDF using `pdflatex` command.
 
-To import the package, use following
+### Including the title page into your manuscript
+Copy the generated title page `title_page.pdf` to directory with your manuscript LaTeX project.
+Include a `pdfpages` package into your project
 ```latex
-\usepackage[elsevier]{iidtitlepage}
+\usepackage{pdfpages}
 ```
-The package has one mandatory argument which is either `elsevier` or `ieee`, depending on the publisher of your article.
-
-Then, you need to provide some mandatory information such as title name, authors, year and citation text
-```latex
-% Title.
-\title{An example document using \texttt{iidtitlepage} package}
 
-% Authors.
-% Unfortunately, we cannot use \author command, since some journal templates require to use a specific macros that might be not compatible with the package.
-\IidTitlePageAuthors{Istv\'{a}n M\'{o}dos, Va\v{s}ek Chv\'{a}tal}
+The following action depends on the journal publisher.
 
-% Year of publication.
-\IidTitlePageYear{2017}
-
-% How to cite this article. Can be either full-text or, as in this case, a bibtex entry.
-\IidTitlePageCiteAs{modos2018}
-```
-
-You may specify some optional information such as DOI and source code url
+#### Elsevier
+Locate `\begin{frontmatter}` command and replace it with the following
 ```latex
-\IidTitlePageDoi{https://doi.org/10.1016/j.cie.2017.08.011}
-\IidTitlePageSourceCodes{https://github.com/torvalds/linux}
+\begin{frontmatter}
+\includepdf[pages=1,fitpaper,noautoscale]{title_page.pdf}
 ```
 
-After all information is specified, call `\IidTitlePage{}` to create a title page
+#### IEEE and Springer
+Locate `\maketitle` command and replace it with the following
 ```latex
-\begin{document}
-...
-\IidTitlePage{}
-...
+\null
+\includepdf[pages=1,fitpaper,noautoscale]{title_page.pdf}
 \maketitle
-...
-\end{document}
-```
+```
\ No newline at end of file
index e753653052924df40e8691938e7017aa8a009205..e50f4adfa22bfb29be4d46aa20152cb70e0119b4 100644 (file)
@@ -1,4 +1,4 @@
-@article{modos2018,
+@article{manuscript,
 title = "An example document using iidtitlepage package",
 journal = "Computers \& Industrial Engineering",
 volume = "112",
@@ -8,5 +8,5 @@ year = "2017",
 issn = "0360-8352",
 doi = "https://doi.org/10.1016/j.cie.2017.08.011",
 url = "http://www.sciencedirect.com/science/article/pii/S0360835217303534",
-author = "Istvan Modos and Vasek Chvatal",
+author = "Erdős, Pál and Chvátal, Vašek",
 }
\ No newline at end of file
diff --git a/example.pdf b/example.pdf
deleted file mode 100644 (file)
index 0019617..0000000
Binary files a/example.pdf and /dev/null differ
diff --git a/example.tex b/example.tex
deleted file mode 100644 (file)
index 85b2c0c..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-\documentclass[twocolumn,a4paper,12pt]{article}
-
-\usepackage[springer]{iidtitlepage}
-
-% Lorem ipsum, dummy text
-\usepackage{blindtext}
-
-\title{An example document using \texttt{iidtitlepage} package}
-\author{Istv\'{a}n M\'{o}dos, Va\v{s}ek Chv\'{a}tal}
-\IidTitlePageAuthors{Istv\'{a}n M\'{o}dos, Va\v{s}ek Chv\'{a}tal}
-\IidTitlePageDoi{https://doi.org/10.1016/j.cie.2017.08.011}
-\IidTitlePageYear{2017}
-\IidTitlePageCiteAs{modos2018}
-\IidTitlePageSourceCodes{https://github.com/torvalds/linux}
-\date{\today}
-
-\begin{document}
-
-\IidTitlePage{}
-
-\maketitle
-
-\cite{modos2018}\Blindtext
-
-\bibliographystyle{abbrv}
-\bibliography{bibfile}
-
-\end{document}
index a5f3e96ae10a580c7f5fc06b4026e3e08f9f86dc..8a9e3541f63111e1a91107ca87c103eaaeecd01b 100644 (file)
@@ -1,6 +1,8 @@
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{iidtitlepage}
 
+\RequirePackage[utf8]{inputenc}
+\RequirePackage[czech]{babel}
 \RequirePackage{etoolbox}
 \RequirePackage{geometry}
 \RequirePackage{graphicx}
@@ -12,6 +14,8 @@
 \RequirePackage{mdframed}
 \RequirePackage{fancyhdr}
 
+\bibliographystyle{abbrv}
+
 \newtoggle{iidieee}
 \newtoggle{iidelsevier}
 \newtoggle{iidspringer}
 \DeclareOption{springer}{ \toggletrue{iidspringer} }
 \ProcessOptions{}
 
-\newcommand{\IidTitlePageAuthors}[1]{
-    \newcommand{\@IidTitlePageAuthors}{#1}
-}
-
 \newcommand{\IidTitlePageYear}[1]{
     \newcommand{\@IidTitlePageYear}{#1}
 }
@@ -74,7 +74,7 @@
 
         \vspace{0.3cm}
 
-        \noindent\nohyphens{{\large \@IidTitlePageAuthors}}
+        \noindent\nohyphens{{\large \@author}}
 
 
         \vfill
@@ -97,6 +97,7 @@
     \end{titlepage}
     \makeatother
     \restoregeometry{}
+    \nobibliography{bibfile}
 }
 
 \endinput
\ No newline at end of file
diff --git a/title_page.pdf b/title_page.pdf
new file mode 100644 (file)
index 0000000..7b50243
Binary files /dev/null and b/title_page.pdf differ
diff --git a/title_page.tex b/title_page.tex
new file mode 100644 (file)
index 0000000..6f5ed52
--- /dev/null
@@ -0,0 +1,29 @@
+% DO NOT CHANGE THIS!
+\documentclass[a4paper,12pt]{article}
+
+% Select the journal template for your manuscript.
+% Options: elsevier, ieee, springer
+\usepackage[elsevier]{iidtitlepage}
+
+% Mandatory: The title of the manuscript.
+\title{An example title page using \texttt{iidtitlepage} package}
+
+% Mandatory: the authors. Will appear on the title page exactly as provided to the command.
+\author{Pál Erdős and Vašek Chvátal}
+
+% Optional: DOI of the journal article.
+\IidTitlePageDoi{https://doi.org/10.1007/s10479-016-2184-6}
+
+% Mandatory: year when the manuscript was produced.
+\IidTitlePageYear{2017}
+
+% Optional: link to the corresponding source codes (e.g., for algorithm described in the manuscript).
+\IidTitlePageSourceCodes{https://github.com/torvalds/linux}
+
+% Mandatory: bibtex entry that represents the citation to the manuscript. To change the citation, modify bibfile.bib file.
+\IidTitlePageCiteAs{manuscript}
+
+% Generates the title page.
+\begin{document}
+\IidTitlePage{}
+\end{document}