I am new to Latex, just a Beginner, Basically a perl developer,
I have created a latex file
Code: Select all
\begin{document}
\cont{\iname{\isurname{Name1}\ifname{K. C. G.}}\iname{\isurname{Name11}\ifname{Y. Q.}}\iname{\isurname{Name111}\ifname{C.-Z.}}\ititles{Some title Text}\ipage{995}}
\end{document}
Name1 K. C. G., Name11 Y. Q. and Name111 C.-Z. Some title Text - 995.
\iname
- Person Name will repeat several times\isurname
- Surname of a person\ifname
- First Name of a person\iname
will repeat any number of times, say 1 to ...If only one
\iname
found inside \cont
, display should be like the belowName1 K. C. G. Some title Text - 995.
If only two
\iname
found inside \cont
, display should be like the belowName1 K. C. G. and Name11 Y. Q. Some title Text - 995.
If more than two
\iname
found inside \cont
, display should be like the below (and should come after last \iname
)Name1 K. C. G., Name11 Y. Q. and Name111 C.-Z. Some title Text - 995.
I can able to define for
\iname
seperated by comma, but i don't know how to write a macro to define \iname
with different outputs based on the if condition,Is it possible to define that, i am totally a beginner for latex, please guide me
Thanks & Regards
Sathish V.