-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.tex
50 lines (36 loc) · 1002 Bytes
/
example.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
\documentclass[a4paper,11pt]{article}
\usepackage{graphicx}
\usepackage[empty]{fullpage}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
urlcolor=blue,
breaklinks=true
}
\usepackage{arrayjob}
\usepackage{multido}
\newcommand{\food}{%FOOD%}
\newcommand{\city}{%CITY%}
\newarray\CountryList
\newarray\CityList
\readarray{CountryList}{%COUNTRY_LIST%}
\readarray{CityList}{%CITY_LIST%}
\newcommand{\ListSize}{%LIST_SIZE%}
\title{SpringBooTex Example}
\date{}
\begin{document}
\maketitle
\section{Single Variable}
I am from \city. I love eating \food.
\section{Image}
This image was downloaded from \href{https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Hubble_ultra_deep_field.jpg/1024px-Hubble_ultra_deep_field.jpg}{Wikipedia}
\vspace{1cm}
\includegraphics[scale=0.2]{universe.jpg}
\section{Array}
List of Countries and their Capitals
\begin{itemize}
\multido{\i=1+1}{\ListSize}{
\item \CountryList(\i) : \CityList(\i)
}
\end{itemize}
\end{document}