Research poster
Research poster
Purpose
Builds an A0 portrait, 3-column research poster in LaTeX (tikzposter). Python draws the figures at final size and writes every number the text uses. A script then measures the finished PDF.
It never adds an unmeasured value or an experiment that was not run. A cause shown by calculation stays apart from one not measured.
Input
- Required: measurements (table or CSV) and a title. If missing, ask only: "Please send the measurement file and the poster title."
- Helpful: event rules (size, format, deadline), co-authors, contact, references.
- If your school or instructor gave you a template, that template comes first, then the event's size rules. For another size, change `a0paper, portrait` and scale figure cm and font pt by the same ratio.
- Unknowns stay `[check needed]` or `[source needed]`. QR only from a real URL.
Output
1. `figures.py`, `poster.tex`, `check_poster.py`, and their output: `fig_*.pdf`, `numbers.tex`, `poster.pdf`.
2. In the chat, 3–7 "Please check" lines: check results, the conclusion, `[check needed]` slots, rule departures, Overfull count.
3. Cannot run code? Give the files and the order (`python figures.py` → `pdflatex poster.tex` twice → `python check_poster.py poster.pdf`). Never claim an unbuilt PDF.
Rules
1. Steps
1) Read size, format, deadline from the event rules.
2) Write the conclusion as one sentence with numbers.
3) Plan columns and figure sizes in cm.
4) Run `figures.py`, fill `poster.tex`, compile twice.
5) Run `check_poster.py`; fix every FAIL.
6) Print on A4 for the 1.5 m test.
2. Font sizes
| Element | Minimum | Here |
| Title | 80 pt | 90 pt |
| Block titles | 40 pt | 44 pt |
| Body | 24 pt | 26 pt |
| Captions, references | 20 pt | 21 pt |
| Text in figures | 20 pt | 22–26 pt |
- Sub/superscripts (70 %) are exempt; the script skips them.
- A0 on A4 is 1/4 scale: readable at 37 cm = readable at 1.5 m.
- One sans-serif family, bold for titles only, ragged right, no hyphens.
3. Layout
- 3 columns of about 25 cm; the key figure spans 2 (52 cm).
- Conclusion box top right, in the top third, at 36 pt, bottom aligned with its neighbor.
- Hung 80 cm up, the bottom quarter is below 1.1 m: only terms, references, QR, contact there.
- QR side ≥ 1/10 of scan distance: 6 cm for 60 cm.
- Align column bottoms with figure heights. Here Figure 2's height does it.
4. Text: 300–500 words
- Count title, captions, references; skip text in figures. Block body: 3–4 lines or 3 bullets.
- "In this study, output characteristics were examined under various conditions." → "We measured a module's maximum power at ΔT = 20–100 K."
- "Output increased significantly with temperature difference." → "A 5-fold rise in ΔT raised maximum power 21-fold, from 0.079 W to 1.69 W."
- "More precise experiments are needed in the future." → "Next: three runs for the uncertainty; heater power for the efficiency."
5. Figures: 40 % of the area
- Tables do not count. Draw at final size; give `\includegraphics` no size, so pt sizes survive. Widths here: 25.0, 52.3, 24.3 cm.
- Caption right under its figure, bigger gap after. Sketches fill their frame.
- Ticks 22 pt; axis labels 26 pt with quantity and unit. Log ticks 0.05, 0.1, 0.2 (not 10⁻¹).
- Blue for data, gray for theory, orange for emphasis. Several ΔT: shades of blue, labeled on the line ("100 K").
6. Numbers
- Text uses `numbers.tex` names only (`\nExp`, `\PHigh`); never retype a number.
- The Rin rise gives n = 1.90 by calculation. Junction temperature was not measured: it goes under "Limits".
7. Typesetting
- Redefine `\large` (block body) and `\LARGE` (block titles) to fix sizes.
- Set the title size in `\TP@maketitle`. Inside `settitle` the change dies with the environment: 62 pt.
- Ranges `20--100`. `~` is a non-breaking space (`20~100` prints "20 100"); write `100~K`.
- A macro eats the next space: `\PLow W` prints "0.079W". Write `\PLow~W`, `\PRatio{} times`.
- pdfLaTeX text fonts lack Δ and Ω: write `$\Delta$`, `$\Omega$`, load `lmodern`.
- An overfull block is cut silently; check the bottom edge.
8. Files
- Run end to end on a hypothetical case: thermoelectric module output vs. temperature difference. `data.csv` (`dT_K`, `R_load_ohm`, `V_V`, `I_A`) and all results are hypothetical.
- Compiler: pdfLaTeX (Overleaf default). Upload `fig_*.pdf` and `numbers.tex` too.
9. Final check
- Event size and format met? `check_poster.py` all pass?
- Conclusion in the top third, with numbers?
- Captions under figures; axes with quantity and unit?
- Column bottoms aligned; white space only at the bottom?
- `[check needed]` slots listed? QR from the real URL?
- Said what ran and what was only written?
Attachment 1 · poster.tex (LaTeX)
```latex
% poster.tex: A0 portrait, 3 columns (tikzposter). Run figures.py first, then pdflatex twice. Event size rules come first.
\documentclass[25pt, a0paper, portrait, margin=0mm, innermargin=15mm, blockverticalspace=12mm, colspace=12mm, subcolspace=12mm]{tikzposter}
\usepackage[T1]{fontenc}
\usepackage{lmodern} % math (Delta, Omega) that scales to 90 pt
\usepackage{helvet} % one sans-serif family
\renewcommand{\familydefault}{\sfdefault}
\usepackage{graphicx,booktabs,textcomp}
\frenchspacing
\tikzposterlatexaffectionproofoff % credit line under 20 pt
\input{numbers.tex}
\newcommand{\dT}{$\Delta$T}
\newcommand{\ohm}{\,$\Omega$}
% Minimums: title 80, block titles 40, body 24, captions 20 pt
\renewcommand{\LARGE}{\fontsize{44}{52}\selectfont} % block titles
\renewcommand{\large}{\fontsize{26}{36}\selectfont\raggedright\hyphenpenalty=10000} % body: ragged, no hyphens
\newcommand{\figcap}[1]{\par\vspace{5mm}{\raggedright\fontsize{21}{28}\selectfont #1\par}} % captions
% Blue (titles, figures), orange (conclusion)
\definecolor{colorOne}{HTML}{1F4E79}\definecolor{colorTwo}{HTML}{C55A11}\definecolor{colorThree}{HTML}{F2F2F2}
\colorlet{backgroundcolor}{white}\colorlet{framecolor}{white}\colorlet{titlefgcolor}{colorOne}\colorlet{titlebgcolor}{white}
\colorlet{blocktitlebgcolor}{white}\colorlet{blocktitlefgcolor}{colorOne}\colorlet{blockbodybgcolor}{white}\colorlet{blockbodyfgcolor}{black}
\usetitlestyle{Empty}
\defineblockstyle{WD}{titlewidthscale=1, bodywidthscale=1, titleleft, titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt,
bodyoffsety=0pt, bodyverticalshift=0pt, roundedcorners=0, linewidth=2mm, titleinnersep=6mm, bodyinnersep=6mm}{%
\ifBlockHasTitle\draw[colorOne, line width=2mm] (blocktitle.south west) -- (blocktitle.south east);\fi}
\defineblockstyle{Key}{titlewidthscale=1, bodywidthscale=1, titleleft, titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt,
bodyoffsety=0pt, bodyverticalshift=0pt, roundedcorners=0, linewidth=2mm, titleinnersep=6mm, bodyinnersep=6mm}{%
\fill[colorThree] (blockbody.south west) rectangle (blocktitle.north east); % gray box, orange rule
\draw[colorTwo, line width=2mm] (blocktitle.south west) -- (blocktitle.south east);}
\useblockstyle{WD}
\makeatletter % title 90 pt, names 40 pt
\renewcommand{\TP@maketitle}{\centering{\color{colorOne}\fontsize{90}{104}\selectfont\bfseries\@title\par}\vspace{10mm}{\fontsize{40}{48}\selectfont\@author\par}}
\makeatother
\title{Thermoelectric Power vs.\ Temperature Difference}
\author{[Name] (undergraduate researcher, energy engineering) \quad Advisor: [Name] \quad Hypothetical data}
\begin{document}
\maketitle[width=800mm]
\begin{columns}
\column{0.333}
\block{Background and aim}{
A thermoelectric module turns a temperature difference into a voltage. With constant internal resistance, maximum power grows as \dT\textsuperscript{2}.
We measured a real module at \dT{} = 20--100~K to test this square law.}
\block{Setup and method}{
{\centering\includegraphics{fig_setup.pdf}\par}
\figcap{Figure 1. Setup. \dT{} = Th $-$ Tc; the cold side was water-cooled to 25\,\textdegree C.}
\vspace{12mm}\begin{itemize}\setlength\itemsep{3mm} % caption hugs its figure, next text farther away
\item Copper plates and type K thermocouples on both faces (Bi\textsubscript{2}Te\textsubscript{3} module, 40~\texttimes{}~40~mm, hypothetical).
\item 5 temperature differences \texttimes{} 9 loads (0.5--10\ohm); V and I logged.
\item Open-circuit voltage and internal resistance from the V--I line.
\end{itemize}}
\block{Power curves}{
{\centering\includegraphics{fig_power.pdf}\par}
\figcap{Figure 2. Power vs.\ current. The peak (load = internal resistance) is the maximum power.}}
\column{0.667}
\begin{subcolumns}
\subcolumn{0.5}
\block{Measurements}{
{\centering\renewcommand{\arraystretch}{1.2}\begin{tabular}{rrrr}\toprule
\dT{} (K) & V\textsubscript{oc} (V) & R\textsubscript{in} ($\Omega$) & P\textsubscript{max} (W)\\\midrule
\dataRows\bottomrule\end{tabular}\par}
\figcap{Table 1. V--I line fit at each \dT{} (hypothetical data). Effective Seebeck coefficient \Seff~mV/K.}}
\subcolumn{0.5}
\useblockstyle{Key}
\block{\color{colorTwo}Conclusion}{\parbox[t][11.5cm][c]{\linewidth}{\raggedright\hyphenpenalty=10000 \fontsize{36}{50}\selectfont
% 11.5 cm: bottom meets the Measurements block
A 5-fold rise in \dT, from 20 to 100~K, raised maximum power \PRatio-fold, from \PLow~W to \PHigh~W.
Power grew as \dT\textsuperscript{\nExp}, not \dT\textsuperscript{2}; a \RinRise\,\% rise in internal resistance explains the gap.}}
\useblockstyle{WD}
\end{subcolumns}
\block{Result: temperature difference and maximum power}{
{\centering\includegraphics{fig_pmax.pdf}\par}
\figcap{Figure 3. P\textsubscript{max} = V\textsubscript{oc}\textsuperscript{2}/(4R\textsubscript{in}) vs.\ \dT{} (log--log). Fitted slope n = \nExp~$\pm$~\nUnc; dashed: slope 2.}}
\begin{subcolumns}
\subcolumn{0.5}
\block{Why the exponent is below 2}{
{\centering\includegraphics{fig_rin.pdf}\par}
\figcap{Figure 4. Internal resistance vs.\ mean temperature.}
\vspace{8mm}As the mean temperature rose from \TmLow{} to \TmHigh\,\textdegree C, internal resistance rose from \RinLow{} to \RinHigh\ohm.
That alone gives \mbox{n = 2 $-$ ln(\RinHigh/\RinLow)/ln~5} = \nRin, matching the fit.}
\subcolumn{0.5}
\block{Limits and next steps}{
\begin{itemize}\setlength\itemsep{3mm}
\item Temperatures were read on the copper plates; the junction \dT{} is smaller.
\item One module, one run. Next: three runs for the uncertainty.
\item Next: heater power, for the conversion efficiency.
\end{itemize}}
\block{Terms}{
\begin{itemize}\setlength\itemsep{3mm}
\item Open-circuit voltage V\textsubscript{oc}: voltage with no current.
\item Internal resistance R\textsubscript{in}: the module's own; current I lowers the voltage by R\textsubscript{in}I.
\item Effective Seebeck coefficient: V\textsubscript{oc} gained per 1~K of \dT.
\end{itemize}}
\block{References and contact}{
{\fontsize{21}{28}\selectfont [1] Module datasheet [source needed]\par [2] Textbook, maximum power formula [source needed]\par}
\vspace{8mm}\begin{tikzpicture}\draw[dashed, line width=1mm] (0,0) rectangle (6cm,6cm);\node[align=center] at (3cm,3cm) {QR here\\6~cm or more};\end{tikzpicture}\hspace{8mm}%
\parbox[b]{12cm}{\raggedright [Name]\\Email [check needed]\\Data and code [check needed]}}
\end{subcolumns}
\end{columns}
\end{document}
```
Attachment 2 · figures.py (Python)
```python
figures.py: data.csv -> fits -> 4 figures at final poster size (fig_*.pdf) + numbers.tex. Hypothetical case and values.
import csv
import math
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.patches import Rectangle
Size in cm. Width = column width (25.0, 52.3, 24.3); height lines up the column bottoms. Inserted unscaled, so pt sizes survive
SIZE = {"fig_setup": (25.0, 28), "fig_power": (25.0, 45.6), "fig_pmax": (52.3, 44), "fig_rin": (24.3, 28)}
MAIN, ACC, GRAY = "#1F4E79", "#C55A11", "#8C8C8C"
plt.rcParams.update({"font.family": "sans-serif", "font.sans-serif": ["Arial", "Liberation Sans", "DejaVu Sans"],
"font.size": 24, "axes.labelsize": 26, "xtick.labelsize": 22, "ytick.labelsize": 22, "axes.linewidth": 1.5,
"lines.linewidth": 3, "lines.markersize": 14, "axes.spines.top": False, "axes.spines.right": False})
def figure(name):
w, h = SIZE[name]
return plt.subplots(figsize=(w / 2.54, h / 2.54), layout="constrained")
1) Per dT fit V = Voc - Rin*I; Pmax = Voc^2/(4 Rin)
rows = list(csv.DictReader(open("data.csv", encoding="utf-8")))
D, VOC, RIN, P, CURVES = [], [], [], [], []
for dT in sorted({float(r["dT_K"]) for r in rows}):
I = np.array([float(r["I_A"]) for r in rows if float(r["dT_K"]) == dT])
V = np.array([float(r["V_V"]) for r in rows if float(r["dT_K"]) == dT])
slope, voc = np.polyfit(I, V, 1)
D.append(dT), VOC.append(voc), RIN.append(-slope), P.append(voc**2 / (-4 * slope)), CURVES.append((I, V * I))
D, VOC, RIN, P = map(np.array, (D, VOC, RIN, P))
(n, lnk), cov = np.polyfit(np.log(D), np.log(P), 1, cov=True) # Pmax = k * dT^n
un = math.sqrt(cov[0, 0])
n_rin = 2 - math.log(RIN[-1] / RIN[0]) / math.log(D[-1] / D[0]) # 2 minus the Rin rise alone
TM = 25 + D / 2 # mean temperature (deg C), cold side 25 deg C
fmt = lambda p: f"{p:.3f}" if p < 1 else f"{p:.2f}" # same digits everywhere
shade = [matplotlib.colors.to_hex(c) for c in np.linspace(np.array([0.72, 0.78, 0.85]), np.array([0.12, 0.31, 0.47]), len(D))]
2) Figure 1: setup sketch (1 unit = 1 cm), filling its frame so the caption stays close
fig, ax = figure("fig_setup")
ax.set(xlim=(0, 25), ylim=(0, 28)), ax.axis("off")
for y, h, c, label in [(22.6, 5.0, ACC, "Heater"), (20.6, 2.0, GRAY, "Copper plate +\nthermocouple (Th)"), (16.0, 4.6, "#D9D9D9", ""),
(14.0, 2.0, GRAY, "Copper plate +\nthermocouple (Tc)"), (8.0, 6.0, MAIN, "Water-cooled\nblock, 25 °C")]:
ax.add_patch(Rectangle((2, y), 10, h, color=c))
if label:
ax.annotate(label, (12, y + h / 2), (14, y + h / 2), va="center", fontsize=24, linespacing=1.3,
arrowprops=dict(arrowstyle="-", lw=1.5))
ax.text(7, 18.3, "Thermoelectric\nmodule\n40 × 40 mm", ha="center", va="center", fontsize=24, linespacing=1.4)
ax.annotate("", (12.9, 15.0), (12.9, 21.6), arrowprops=dict(arrowstyle="<->", lw=2.5)) # dT between the thermocouples
ax.text(13.3, 18.3, "ΔT", va="center", fontsize=24)
for wire in ([2, 0.6, 0.6, 13], [18.8, 18.8, 2.4, 2.4]), ([2, 1.3, 1.3, 13], [17.8, 17.8, 3.4, 3.4]): # leads around the block
ax.plot(*wire, color="black", lw=2.5)
ax.add_patch(Rectangle((13, 0.4), 10.5, 5.0, fill=False, lw=2.5))
ax.text(18.25, 2.9, "Load 0.5–10 Ω\nV and I logged", ha="center", va="center", fontsize=24, linespacing=1.5)
fig.savefig("fig_setup.pdf")
3) Figure 2: power vs. current; the peak is Pmax
fig, ax = figure("fig_power")
for (I, Pm), voc, rin, dT, c in zip(CURVES, VOC, RIN, D, shade):
x = np.linspace(0, voc / rin * 0.92, 100)
ax.plot(x, voc * x - rin * x**2, color=c), ax.plot(I, Pm, "o", color=c, mfc="white", mew=2.5)
ax.annotate(f"{dT:.0f} K", (voc / rin / 2, voc**2 / rin / 4), (0, 12), textcoords="offset points", ha="center", fontsize=22)
ax.set(xlabel="Current I (A)", ylabel="Power P (W)", ylim=(0, P.max() * 1.18))
fig.savefig("fig_power.pdf")
4) Figure 3: Pmax vs. dT, log-log; the slope is n
fig, ax = figure("fig_pmax")
x = np.linspace(D[0] * 0.9, D[-1] * 1.1, 50)
ax.loglog(x, P[0] * (x / D[0]) ** 2, "--", color=GRAY, label="Theory: slope 2 (constant internal resistance)")
ax.loglog(x, math.exp(lnk) * x**n, color=MAIN, label=f"Fit: slope n = {n:.2f} ± {un:.2f}")
ax.loglog(D, P, "o", color=MAIN, ms=22)
for d, p in zip(D, P):
ax.annotate(f"{fmt(p)} W", (d, p), (16, -36), textcoords="offset points", fontsize=24)
ax.set(xlabel="Temperature difference ΔT (K)", ylabel="Maximum power Pmax (W)", xticks=D, xticklabels=[f"{d:.0f}" for d in D],
yticks=[0.05, 0.1, 0.2, 0.5, 1, 2], yticklabels=["0.05", "0.1", "0.2", "0.5", "1", "2"])
ax.minorticks_off(), ax.legend(frameon=False, fontsize=26, loc="upper left")
fig.savefig("fig_pmax.pdf")
5) Figure 4: Rin vs. mean temperature
fig, ax = figure("fig_rin")
a, b = np.polyfit(TM, RIN, 1)
ax.plot(TM, a * TM + b, color=MAIN), ax.plot(TM, RIN, "o", color=MAIN, mfc="white", mew=2.5)
ax.annotate(f"+{(RIN[-1] / RIN[0] - 1) * 100:.0f} %", (TM[-1], RIN[-1]), (-24, -6), textcoords="offset points", ha="right", va="top", color=ACC, fontsize=26)
ax.set(xlabel="Mean temperature (°C)", ylabel="Internal resistance Rin (Ω)")
fig.savefig("fig_rin.pdf")
6) numbers.tex: the poster text calls numbers only by these names
area = sum(w * h for w, h in SIZE.values()) / (84.1 * 118.9) * 100
macros = {"nExp": f"{n:.2f}", "nUnc": f"{un:.2f}", "nRin": f"{n_rin:.2f}", "PLow": fmt(P[0]), "PHigh": fmt(P[-1]),
"PRatio": f"{P[-1] / P[0]:.0f}", "RinLow": f"{RIN[0]:.2f}", "RinHigh": f"{RIN[-1]:.2f}", "RinRise": f"{(RIN[-1] / RIN[0] - 1) * 100:.0f}",
"TmLow": f"{TM[0]:.0f}", "TmHigh": f"{TM[-1]:.0f}", "Seff": f"{np.polyfit(D, VOC, 1)[0] * 1000:.1f}", "FigArea": f"{area:.0f}",
"dataRows": " ".join(f"{d:.0f} & {v:.2f} & {r:.2f} & {fmt(p)} \\\\" for d, v, r, p in zip(D, VOC, RIN, P))}
with open("numbers.tex", "w", encoding="utf-8") as f:
f.writelines(f"\\newcommand{{\\{k}}}{{{v}}}\n" for k, v in macros.items())
print(f"n = {n:.3f} ± {un:.3f} (Rin alone {n_rin:.3f}), Pmax {P[0]:.3f} -> {P[-1]:.2f} W, figure area {area:.1f} %")
```
Attachment 3 · check_poster.py (Python)
```python
check_poster.py: measure poster.pdf against the minimums. Needs pdfplumber: python check_poster.py poster.pdf
import sys
from collections import Counter
import pdfplumber
from pdfminer.layout import LTFigure
LIMIT = {"title": 80, "body": 24, "smallest text": 20, "words": (300, 500), "figure area": 40}
pg = pdfplumber.open(sys.argv[1]).pages[0]
figs = [o for o in pg.layout if isinstance(o, LTFigure)] # figures placed with \includegraphics
inside = lambda c: any(f.x0 <= (c["x0"] + c["x1"]) / 2 <= f.x1 and pg.height - f.y1 <= (c["top"] + c["bottom"]) / 2 <= pg.height - f.y0 for f in figs)
chars = [c for c in pg.chars if c["upright"] and c["text"].strip()] # rotated text is measured wrong: skip
sz = [c["size"] for c in chars]
base = [s for k, s in enumerate(sz) if s >= 0.9 * max(sz[max(0, k - 2):k + 3])] # drop sub/superscripts (70 %)
text = pg.filter(lambda o: o.get("object_type") != "char" or not inside(o)).extract_text()
got = {"title": max(sz), "body": Counter(round(s) for c, s in zip(chars, sz) if not inside(c)).most_common(1)[0][0],
"smallest text": min(base), "words": len(text.split()),
"figure area": sum(f.width * f.height for f in figs) / (pg.width * pg.height) * 100}
print(f"page {pg.width / 72 * 2.54:.1f} x {pg.height / 72 * 2.54:.1f} cm, {len(figs)} figures")
print("characters per size (pt):", dict(Counter(round(s) for s in base).most_common(8)))
err = 0
for k, v in got.items():
lo, hi = LIMIT[k] if isinstance(LIMIT[k], tuple) else (LIMIT[k], float("inf"))
ok = lo <= v <= hi
err += not ok
print(f"{'pass' if ok else 'FAIL'} {k}: {v:.0f} (limit {lo}{'-' + str(hi) if hi < 1e9 else ' or more'})")
sys.exit(1 if err else 0)
```
Connect ChatGPT or Claude and use this prompt now · More prompts