I want to use package datatool for putting different names in one specified space of one image. Here for everyone's convenience I've formed a tikzpicture instead of image. Please see this minimal code.
\begin{filecontents}{abcd.csv}
a, b, c
Niranjan, Tambe, Vikas
Sushant, Devalekar, Shankar
Pranav, Patwardhan, Sachin
\end{filecontents}
\documentclass{article}
\usepackage{datatool}
\usepackage{tikz}
\DTLloaddb{abc}{abcd.csv}
\begin{document}
\DTLforeach{abc}{\firstname=a,\surname=b,\father=c}{\begin{tikzpicture}
\draw (-3,0) node[above]{\firstname{} \father{} \surname{} \\} -- (3,0);
\end{tikzpicture}\\
}
\end{document}
If we look at the output, I've got the names above the line. Now I want to do further things, which I don't know how to do. I want every name at the center of that line. Please note that optional arguments of node
like [near end]
are not useful for me right now as I want to implement all of this on an .jpg image. For now let's assume that the tikz code presented is frozen and we can't change it. It is here just for the sake of convenience and to avoid uploading a file. I want something which will allow me to specify some portion of the document and apply regular LaTeX commands on it. Please suggest me how to make LaTeX apply some commands like centering
or center
environment "only" on the specified portion of the document.
datatool
package, add many names on that line, but keeping in mind all the names should be centrally alligned. (I hope I am not confusing :P) Is eso-pic still helpful for this kind of specifications?