Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate horizontal pdf #359

Open
ericsirius opened this issue Dec 20, 2023 · 1 comment
Open

Generate horizontal pdf #359

ericsirius opened this issue Dec 20, 2023 · 1 comment

Comments

@ericsirius
Copy link

Hi, I already did all the steps and test, but it does not work here, someone can help me ? the pdf is not in landscap mode

%use square brackets as golang text templating delimiters
\documentclass{article}
\usepackage{pdflscape}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\graphicspath{ {images/} }
\begin{document}
\begin{landscape}
\title{[[.Title]] [[if .VariableValues]] \ \large [[.VariableValues]] [[end]] [[if .Description]] \ \small [[.Description]] [[end]]}
\date{[[.FromFormatted]]\to[[.ToFormatted]]}
\maketitle
\begin{center}
[[range .Panels]][[if .IsSingleStat]]\begin{minipage}{0.3\textwidth}
\includegraphics[width=\textwidth]{image[[.Id]]}
\end{minipage}
[[else]]\par
\vspace{0.5cm}
\includegraphics[width=\textwidth]{image[[.Id]]}
\par
\vspace{0.5cm}
[[end]][[end]]
\end{center}
\end{landscape}
\end{document}

291091107-df41f3bd-cbaf-4521-a5c2-f9cf6cbbc605
291091036-b18838ea-5180-45cc-95bb-71cd5b97da10

@JJ24093006
Copy link

JJ24093006 commented Jan 10, 2024

@ericsirius you need rerun the command "go install -v github.com/IzakMarais/reporter/cmd/grafana-reporter" and "grafana-reporter". this step is rquired after every change you make on the any files. than create a report. I hope it will work for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants