Debian Codegraph @

texmf-dist/doc/latex/affilauthor/affilauthor-doc.tex

raw
1 \documentclass{article}
2 %\usepackage{affilauthor}
3 \usepackage{listings,xcolor}
4 \usepackage{graphicx}
5 \usepackage[colorlinks]{hyperref}
6 \usepackage{makeidx}
7
8 \makeindex
9
10
11 \lstdefinestyle{mystyle}
12 {
13 language=[LaTeX]{TeX},
14 texcsstyle=*\color{blue},
15 basicstyle=\ttfamily,
16 moretexcs={affil,affilstyle},
17 columns=fullflexible
18 }
19
20 \title{affilauthor\thanks{Package to customize author and affiliations tagging for \TeX\ inputs.}}
21
22 \author{Selvam P.\thanks{Suggestions and feedbacks are welcome, please reach me at [email protected]}}
23
24 \date{} %% if you don't need date to appear
25
26 \begin{document}
27 \maketitle
28
29 \section*{Introduction}
30
31 {\tt affilauthor} package provides key-value style fields to tag the author and affiliation informations in a structured format. Each field has a specific name within \textbackslash author\ and \textbackslash affil\ commands similar to bib format. We can customize the styles as per preferences for {\tt article.cls} class layouts.
32
33 Instead of giving all information(author and affiliation) in single tag {\textbackslash author\{...\}}, we can split the information in a format of key-value style. It will given control over the elements and later we can do changes/styles by given values. It is very simple package, lot more could be added in further improvements.
34
35 \section*{Author name tagging}
36
37 Available filed names are listed below and it could be placed any order. Fields are optional, e.g.: If we don't have own/org site then we ignore such fields. Contact informations (mail,phone,url) and note field values will treated as footnote with footer mark.\index{\textbackslash author}
38
39 \begin{lstlisting}[style=mystyle]
40 \author
41 {
42 name={...},
43 mail={...},
44 phone={...},
45 url={...},
46 affil={...},
47 note={...}
48 }
49 \end{lstlisting}
50
51 More than one value for a field can be added with separation operators.
52 \index{mail}
53 \begin{lstlisting}[style=mystyle]
54 mail={[email protected],[email protected]}
55 \end{lstlisting}
56
57 Required to mention the affiliation ids for determine the affiliations those belongs to author. More than one affiliation can be added by comma separation. ID name could be any format like \textbackslash label. Based on the ID, the affiliation number will be displayed after name and also contacts/notes marker.\index{affil}
58
59 \begin{lstlisting}[style=mystyle]
60 affil={af1,af2,af5}
61 \end{lstlisting}
62
63 \subsection*{Sample output}
64
65 \subsubsection*{Affiliation ID as numeric:}\index{sample output 1}
66
67 \noindent\centerline{\includegraphics[width=.8\textwidth]{affilauthor-image1.pdf}}
68
69 \subsubsection*{Affiliation ID as alphabet:}\index{sample output 2}
70
71 \noindent\centerline{\includegraphics[width=.8\textwidth]{affilauthor-image2.pdf}}
72
73 \subsubsection*{Author's note as footnote:}\index{sample output 3}
74
75 \noindent\centerline{\includegraphics[width=.8\textwidth]{affilauthor-image3.pdf}}
76
77 Here, we get appropriate marker to the notes in sequence order and also we can change the format like alphabet or roman.
78
79 \section*{Affiliation tagging}
80
81 Affiliation related fields are listed below and it could be placed any order. {\tt id} should be a unique label(mandatory field) which is used in author field to get appropriate affiliation number. Other remaining fields are related to respective type of contents, it can be ignored optionally except {\tt id}.\index{\textbackslash affil}
82
83 \begin{lstlisting}[style=mystyle]
84 \affil
85 {
86 id = {...},
87 div = {...},
88 org = {...},
89 addr = {...},
90 street = {...},
91 landmark = {...},
92 pincode = {...},
93 postbox = {...},
94 city = {...},
95 state = {...},
96 country = {...}
97 }
98 \end{lstlisting}
99
100 \section*{Formatting style}
101
102 It provide options to customize the font shape and size. Available types are listed below. We can directly use any Primitive \TeX\ commands to change the style in value part.\index{\textbackslash affilstyle}
103
104 \begin{lstlisting}[style=mystyle]
105 \affilstyle
106 {
107 authfont = {...},
108 affilfont = {...},
109 mailfont = {...},
110 urlfont = {...},
111 phonefont = {...},
112 notefont = {...},
113 notenum = { alpha, fnsym, roman },
114 authspace = {...},
115 affilspace = {...}
116 }
117 \end{lstlisting}
118
119 Suppose, if I want to change mail font size and shape then below option is preferred. Same way we can do other properties as well.\index{mailfont}
120
121 \begin{lstlisting}[style=mystyle]
122 \affilstyle{mailfont = {\itshape\small}}
123 \end{lstlisting}
124
125 To change the note marker either alphabet or roman number below option can be used.
126 Here, it is choice options so should be choose of those three values:\index{notenum}
127
128 \medskip
129
130 {\tt alpha} Alphabet number
131
132 {\tt fnsym} Default \TeX\ note sequence
133
134 {\tt roman} Roman number
135
136 \begin{lstlisting}[style=mystyle]
137 \affilstyle{notenum = {alpha}}
138 \end{lstlisting}
139
140 \medskip
141
142 Adjust the vertical space before author and affiliation.\index{authspace}
143
144 \begin{lstlisting}[style=mystyle]
145 \affilstyle{authspace = {\baselineskip},
146 affilspace = {\baselineskip}}
147 \end{lstlisting}
148
149 \bigskip
150
151 Add note it, I have defined these for article class which doesn't have such options. So later updates we can add more features and styles.
152
153 \section*{Sample Code}
154
155 \begin{lstlisting}[style=mystyle]
156 \affilstyle[authfont={\sf},
157 mailfont={\tt},
158 affilfont={\it},
159 notenum={fnsym}
160 ]
161
162 \author{name={Author1 Name},
163 mail={[email protected]},
164 phone={+111-222-333},
165 url={author1.com},
166 affil={af1,af2},
167 note={Thanks to LaTeX Community}
168 }
169 \author{name={Author2 Name},
170 mail={[email protected]},
171 phone={+111-222-333},
172 url={author2.com},
173 affil={af2}
174 }
175 \author{name={Author3 Name},
176 mail={[email protected]},
177 url={author3.com},
178 affil={af2},
179 }
180
181 \affil{id={af2},
182 div={Department of Computer Science},
183 org={University of London},
184 street={1st block},
185 city={London},
186 country={UK}
187 }
188 \affil{id={af1},
189 div={Department of Computer Science},
190 org={Delhi University},
191 city={Delhi},
192 country={India}
193 }
194
195 \end{lstlisting}
196
197
198 \section*{To do lists}
199
200 \begin{itemize}
201 \item Adding customize colour options to differentiation
202 \item More layout styles
203 \item Convert to various formats
204 \item etc....
205 \end{itemize}
206
207 \printindex
208
209 \end{document}