aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans-Nikolai Viessmann2016-04-22 12:03:39 +0100
committerHans-Nikolai Viessmann2016-04-22 12:03:39 +0100
commite5855bb007a1bc7b72efa36faaef19791b2a6f02 (patch)
treec998f061edff0de3e4a2f308387a70b3c957e646
parentc49c663334eb965b7ede9c58ae9427020dce64d9 (diff)
downloadecr-poster-e5855bb007a1bc7b72efa36faaef19791b2a6f02.tar.gz
ecr-poster-e5855bb007a1bc7b72efa36faaef19791b2a6f02.zip
Updated tex class to use new HW logo
* also made a few additional fixes
-rw-r--r--README.md30
-rw-r--r--ecrposter.cls32
-rw-r--r--example.pdfbin1847783 -> 1862733 bytes
-rw-r--r--example.tex13
-rw-r--r--logos/EPSRC_Logo.pdfbin8905 -> 10477 bytes
-rw-r--r--logos/HW_Logo_positive.epsbin0 -> 469106 bytes
-rw-r--r--logos/HW_Logo_positive.pdfbin0 -> 37712 bytes
-rw-r--r--logos/University_of_Edinburgh_Logo.pdfbin0 -> 35167 bytes
-rw-r--r--logos/University_of_Edinburgh_Logo.svg (renamed from logos/University_of_Edinburgh_logo.svg)0
-rw-r--r--logos/University_of_Edinburgh_logo.pdfbin33157 -> 0 bytes
10 files changed, 50 insertions, 25 deletions
diff --git a/README.md b/README.md
index 8e4fd5b..1c5222a 100644
--- a/README.md
+++ b/README.md
@@ -18,15 +18,21 @@ the TikZPoster document class, and so depends on the TikZPoster package - make
sure this and all its dependencies are installed (more info at [CTAN][0]).
1. Add the `ecrposter.cls` file to your work directory
-1. In your new LaTeX document, set your document class to `ecrposter`. The options supported by the document class are identical to that used by TikZPoster, so have a look at their [documentation][0] for possible options.<br/> *The default options are:* `17pt`, `a1paper`, and `landscape`
-1. Populate the title information by executing the `\title`, `\author`, and `\institute` macros
-1. Within the `\begin{document} ...` environment call the `\maketitle` macro to generate the title
+1. In your new LaTeX document, set your document class to `ecrposter`. The
+ options supported by the document class are identical to that used by
+ TikZPoster, so have a look at their [documentation][0] for possible
+ options.<br/> *The default options are:* `17pt`, `a1paper`, and `landscape`
+1. Populate the title information by executing the `\title`, `\author`, and
+ `\institute` macros
+1. Within the `\begin{document} ...` environment call the `\maketitle` macro to
+ generate the title
1. Populate the document with your content :D
Contributors
------------
Hans-Nikolai Viessmann
+
*More to follow...*
License
@@ -46,8 +52,8 @@ Extras
### SVG to PDF
-Evidently, this is not trival as most of the tools that exist to do this
-(InkScape, Adobe Illistrator, etc.) will tend to rasterise parts of the SVG
+Evidently, this is not trivial as most of the tools that exist to do this
+(InkScape, Adobe Illustrator, etc.) will tend to rasterise parts of the SVG
in the process of converting it. This can contribute to an increase in file
size as well, and more importantly, a decrease in quality.
@@ -57,6 +63,20 @@ problems (mostly). The tool to do this is either [svg2pdf][4] or
[svgconvert][5]. You'll need to compile the tool yourself, ensuring that all
dependencies are met.
+### Detecting rasterised content in PDF files
+
+Depending on what tool suite is used to generate a PDF file, it may opt to
+generate bitmaps/lossy versions of any vector graphics. This leads to bad
+visual scaling of the PDF. There are several ways of determining whether a
+PDF contains rasterised content or not.
+
+1. Visually check the PDF by zooming in and out of parts of the document to see
+ if anything is pixelated or not.
+1. Search the PDF file for the `/image` token: `grep -c -i "/image"
+ PDF-FILE.pdf`.
+1. Use a tool like `pdfimages` to list/extract any bitmaps from the PDF:
+ `pdfimages -list PDF-FILE.pdf`
+
[0]: https://www.ctan.org/pkg/tikzposter "CTAN: TikZPoster LateX package"
[1]: http://www.edinburgh-robotics.org/ "Edinburgh Centre for Robotics website"
[2]: http://cairographics.org/ "Cairo Graphics library"
diff --git a/ecrposter.cls b/ecrposter.cls
index d0fef20..9fab484 100644
--- a/ecrposter.cls
+++ b/ecrposter.cls
@@ -4,7 +4,7 @@
% The copyright of this LaTeX Document Class is held by The Edinburgh Centre
% for Robotics, this document may not be distributed without their permission.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{ecrposter}[2015/10/13%
+\ProvidesClass{ecrposter}[2016/04/20%
Document class for typesetting posters with ECR branding]
% ---------------------------------------------------------------------------- %
@@ -28,7 +28,7 @@
% Font Configurations
%% ensure that we are using sans font throughout
\renewcommand{\familydefault}{\sfdefault}
-%% ensure that maths exquations are typeset with sans fonts
+%% ensure that maths equations are typeset with sans fonts
\sansmath
% ---------------------------------------------------------------------------- %
@@ -57,13 +57,13 @@
% ---------------------------------------------------------------------------- %
% TikZPoster related setup
%% color style
-\definecolorstyle{ECRcolors} {
+\definecolorstyle{ECRcolors} {%
\definecolor{colorOne}{RGB}{219,225,233} % Gray
\definecolor{colorTwo}{RGB}{53,74,106} % Dark Sky Blue
\definecolor{colorThree}{RGB}{53,74,106} % Dark Sky Blue
\definecolor{innerColorOne}{RGB}{227, 164, 166} % Off Red
\definecolor{innerColorTwo}{RGB}{138, 113, 153} % Off Blue
- }{
+ }{%
% Background Colours
\colorlet{backgroundcolor}{colorOne}
\colorlet{framecolor}{black}
@@ -88,7 +88,7 @@
}
%% title style
-\definetitlestyle{ECRtitle}{width=\linewidth, titlegraphictotitledistance=-75mm, innersep=15mm,titletotopverticalspace=0mm, titletoblockverticalspace=20mm}{
+\definetitlestyle{ECRtitle}{width=\linewidth, titlegraphictotitledistance=-75mm, innersep=15mm,titletotopverticalspace=0mm, titletoblockverticalspace=20mm}{%
\begin{scope}[line width=\titlelinewidth]
\fill[fill=titlebgcolor] (\titleposleft,\titleposbottom) rectangle (\titleposright,\titlepostop);
\draw[color=titlebottomcolor] (\titleposleft,\titleposbottom) -- (\titleposright,\titleposbottom);
@@ -96,12 +96,12 @@
}
%% block style
-\defineblockstyle{ECRblocks}{
+\defineblockstyle{ECRblocks}{%
titlewidthscale=1, bodywidthscale=1,titlecenter,
titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0mm, bodyoffsety=0mm,
bodyverticalshift=0mm, roundedcorners=0, linewidth=2pt,
titleinnersep=6mm, bodyinnersep=1cm
-}{
+}{%
\fill[blockbodybgcolor,rounded corners=\blockroundedcorners] (blockbody.south west) rectangle (blockbody.north east);
\ifBlockHasTitle
\fill[blocktitlebgcolor,rounded corners=\blockroundedcorners] (blocktitle.south west) rectangle (blocktitle.north east);
@@ -109,12 +109,12 @@
}
%% innerblock style
-\defineinnerblockstyle{ECRinnerblocks}{
+\defineinnerblockstyle{ECRinnerblocks}{%
titlewidthscale=1, bodywidthscale=1,titleleft,
titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0mm, bodyoffsety=0mm,
bodyverticalshift=0mm, roundedcorners=0, linewidth=2pt,
titleinnersep=5mm, bodyinnersep=3mm
-}{
+}{%
\draw[innerblockbodybgcolor,rounded corners=\innerblockroundedcorners] (innerblockbody.south west) rectangle (innerblockbody.north east);
\ifInnerblockHasTitle
\draw[innerblocktitlebgcolor, fill=innerblocktitlebgcolor,rounded corners=\innerblockroundedcorners] (innerblocktitle.south west) rectangle (innerblocktitle.north east);
@@ -132,12 +132,12 @@
\usetheme{ECR}
%% new environment for tables
-\newenvironment{tikztable}[1][]{
+\newenvironment{tikztable}[1][]{%
\def\rememberparameter{#1}
\addvspace{\medskipamount}
\begin{center}
\small
-}{
+}{%
\ifx\rememberparameter\@empty
% Nothing
\else
@@ -156,9 +156,9 @@
\vbox{%
$\vcenter{\hbox{\includegraphics[height=10em]{logos/ECR_Logo.pdf}}}$
\hfill
- $\vcenter{\hbox{\includegraphics[height=8em]{logos/HW_Logo.pdf}}}$
+ $\vcenter{\hbox{\includegraphics[height=6em]{logos/HW_Logo_positive.pdf}}}$
\hspace{2em}
- $\vcenter{\hbox{\includegraphics[height=8em]{logos/University_of_Edinburgh_logo.pdf}}}$ \\
+ $\vcenter{\hbox{\includegraphics[height=8em]{logos/University_of_Edinburgh_Logo.pdf}}}$ \\
[\TP@titlegraphictotitledistance]
\hspace*{\offcentre}
\color{titlefgcolor}{\bfseries \huge \parbox{\titleboxwidth}{\vspace{2em}\centering \@title} \par}
@@ -174,7 +174,7 @@
%% footer layout
\newcommand{\makefooter}{%
\begin{scope}
- \node[fill=white,minimum height=\footerheight, minimum width=\linewidth,anchor=south] at (0, -0.5\textheight) {\parbox{\TP@titlewidth-\TP@titleinnersep}{
+ \node[fill=white,minimum height=\footerheight, minimum width=\linewidth,anchor=south] at (0, -0.5\textheight) {\parbox{\TP@titlewidth-\TP@titleinnersep}{%
\vspace{0.5\baselineskip}
\hspace{0.5\TP@titleinnersep}
\begin{minipage}[t]{0.14\linewidth}
@@ -183,7 +183,7 @@
\end{minipage}%
\begin{minipage}[t]{0.45\linewidth}
\vspace*{0pt}
- \vbox{
+ \vbox{%
{\small \bfseries Acknowledgements}\\
{\small This research is supported by the Engineering and Physical Sciences Research Council (EPSRC), as part of the CDT in Robotics and Autonomous Systems at Heriot-Watt University and The University of Edinburgh.}
}
@@ -191,7 +191,7 @@
\hfill%
\begin{minipage}[t]{0.3\linewidth}
\vspace*{0pt}
- \vbox{
+ \vbox{%
{\small \bfseries Contact Details}\\
{\small Email: \texttt{some-email@[hw/ed].ac.uk}}\\
{\small Web: \texttt{www.edinburgh-robotics.org}}\\
diff --git a/example.pdf b/example.pdf
index 47151f9..9c0daa8 100644
--- a/example.pdf
+++ b/example.pdf
Binary files differ
diff --git a/example.tex b/example.tex
index bc0cbf0..13cc3c7 100644
--- a/example.tex
+++ b/example.tex
@@ -1,8 +1,13 @@
+%% This is an example document showcasing how to use the ECRPoster document
+%% class. Last updated 20/04/2016.
+%%
+%% Default options: [17pt, a1paper, landscape]
+%% You can use any options supported by TikZPoster package
\documentclass{ecrposter}
%% This macro has not been added to the ECRPoster document class because
%% it might be nice, if it doesn't bother you, to show the TikZPoster logo :)
-\tikzposterlatexaffectionproofoff % to remove the TikZPoster logo
+\tikzposterlatexaffectionproofoff{} % to remove the TikZPoster logo
% Title Related content
\title{Title of Your Work}
@@ -16,7 +21,7 @@
% Main Content
\begin{columns}
\column{0.25} % See Section 4.4
- \block{Introduction}{
+ \block{Introduction}{%
\section*{Motivation}
The above \texttt{\textbackslash{}section*\string{\string}} creates a gap, this can be altered through the \texttt{titlespec} package.\\
@@ -45,11 +50,11 @@
\block{B}{Lorem ipsum dolor sit amet}
\column{0.5} % See Section 4.4
- \block{Method}{You can use multicols for a two-column layout here or adjust the column-sizes back to 0.333 -- 0.333 -- 0.333 using the nice macro \texttt{\textbackslash{}third}, e.g. \texttt{\textbackslash{}column\string{\textbackslash{}third\string}}.}
+ \block{Method}{You can use multicols for a two-column layout here or adjust the column-sizes back to 0.333 --- 0.333 --- 0.333 using the nice macro \texttt{\textbackslash{}third}, e.g. \texttt{\textbackslash{}column\string{\textbackslash{}third\string}}.}
\column{0.25} % See Section 4.4
\block{Results}{Some results}
\block{Conclusion}{This is the conclusion.}
\end{columns}
-\end{document} \ No newline at end of file
+\end{document}
diff --git a/logos/EPSRC_Logo.pdf b/logos/EPSRC_Logo.pdf
index cf26a7e..953c7c0 100644
--- a/logos/EPSRC_Logo.pdf
+++ b/logos/EPSRC_Logo.pdf
Binary files differ
diff --git a/logos/HW_Logo_positive.eps b/logos/HW_Logo_positive.eps
new file mode 100644
index 0000000..2e311d4
--- /dev/null
+++ b/logos/HW_Logo_positive.eps
Binary files differ
diff --git a/logos/HW_Logo_positive.pdf b/logos/HW_Logo_positive.pdf
new file mode 100644
index 0000000..b961418
--- /dev/null
+++ b/logos/HW_Logo_positive.pdf
Binary files differ
diff --git a/logos/University_of_Edinburgh_Logo.pdf b/logos/University_of_Edinburgh_Logo.pdf
new file mode 100644
index 0000000..2392115
--- /dev/null
+++ b/logos/University_of_Edinburgh_Logo.pdf
Binary files differ
diff --git a/logos/University_of_Edinburgh_logo.svg b/logos/University_of_Edinburgh_Logo.svg
index 76a52a6..76a52a6 100644
--- a/logos/University_of_Edinburgh_logo.svg
+++ b/logos/University_of_Edinburgh_Logo.svg
diff --git a/logos/University_of_Edinburgh_logo.pdf b/logos/University_of_Edinburgh_logo.pdf
deleted file mode 100644
index 65b6200..0000000
--- a/logos/University_of_Edinburgh_logo.pdf
+++ /dev/null
Binary files differ