Debian Codegraph @

texmf-dist/doc/latex/essaykit/README.md

raw
1 <!---This project uses LPPL 1.3c or later licence -->
2
3 # essaykit - LaTeX Package
4
5
6 A comprehensive LaTeX package for creating styled boxes, titles, quotes, and bibliographic references, designed for academic and scientific documents.
7
8
9 ## Features
10
11 - **🎨 Styled Boxes** (`\rbox`) - Customizable colored boxes with titles
12 - **📝 Main Titles** (`\maintitle`) - Large, styled section titles
13 - **💬 Quotes** (`\quoter`) - Formatted quotations with author attribution
14 - **📏 Rules** (`\rrule`) - Clean horizontal separators
15 - **📚 Sources** (`\sources`) - Bibliography with hyperlink support
16
17 ## Quick Start
18
19 ### Installation
20
21 ```latex
22 \usepackage{essaykit}
23 ```
24
25 ### Basic Usage
26
27 ```latex
28 % Styled box
29 \rbox[title=Important, color=softblue]{
30 This is a highlighted box with a title.
31 }
32
33 % Main title
34 \maintitle[titlecolor=mybluecolour]{Chapter 1: Introduction}
35
36 % Quote
37 \quoter{Science is organized knowledge.}{Herbert Spencer}
38
39 % Horizontal rule
40 \rrule
41
42 % Sources with hyperlinks
43 \sources{
44 \href{https://example.com}{Online Article},
45 Book Title by Author,
46 Journal Reference
47 }
48 ```
49
50 ## Key Features
51
52 ### Customizable Options
53
54 All commands support extensive customization through key-value options:
55
56 - **Colors**: `color`, `textcolor`, `titlecolor`, `authorcolor`
57 - **Sizing**: `width`, `titlesize`, `quotesize`
58 - **Spacing**: `titlespacing`, `quotespacing`
59
60 ### Predefined Colors
61
62 ```latex
63 greycolour, sharelatexcolour, mybluecolour, lightgray,
64 softgray, box-color, darkgray, softblue
65 ```
66
67 ### Box Examples
68
69 ```latex
70 % Basic box
71 \rbox{Simple content}
72
73 % Titled box with custom styling
74 \rbox[title=Warning, color=red, textcolor=white]{
75 Important safety information
76 }
77
78 % Custom width box
79 \rbox[width=0.7\textwidth, color=lightgray]{
80 Narrower box for specific layouts
81 }
82 ```
83
84 ### Title Examples
85
86 ```latex
87 % Large blue title
88 \maintitle[titlecolor=mybluecolour, titlesize=\LARGE]{
89 Research Methodology
90 }
91
92 % Custom spacing
93 \maintitle[titlespacing=1cm]{Section Overview}
94 ```
95
96 ### Quote Examples
97
98 ```latex
99 % Styled quote
100 \quoter[authorcolor=darkgray, quotesize=\Large]{
101 The important thing is not to stop questioning.
102 }{Albert Einstein}
103 ```
104
105 ### Image Commands
106
107 #### Logo
108 Insert images without captions:
109 ```latex
110 % Basic usage
111 \logo{image.png}{5cm}
112
113 % Use with positioning
114 \placeleft{2cm}{\logo{company-logo.png}{3cm}}{8cm}
115 ```
116
117 #### Figure
118 Insert captioned figures that can be referenced:
119 ```latex
120 % Basic figure
121 \fig{chart.png}{Monthly sales data}{0.7\textwidth}
122
123 % Smaller figure
124 \fig{diagram.png}{System architecture}{0.5\textwidth}
125 ```
126
127 ### Positioning Commands
128
129 Position content at absolute locations on the page without affecting text flow:
130
131 #### Place Left
132 ```latex
133 % Place content from left margin
134 \placeleft{distance from left}{content}{content width}
135
136 % Example
137 \placeleft{3cm}{\logo{sidebar.png}{4cm}}{10cm}
138 ```
139
140 #### Place Right
141 ```latex
142 % Place content from right margin
143 \placeright{distance from right}{content}{content width}
144
145 % Example
146 \placeright{2cm}{\rbox[color=softblue]{Note}}{8cm}
147 ```
148
149 **Note**: Content placed with these commands floats above the text and doesn't affect document flow, similar to absolute positioning in CSS.
150
151
152 ## File Structure
153
154 ```
155 essaykit/
156 ├── essaykit.dtx # Documented source code
157 ├── essaykit.ins # Installation script
158 ├── essaykit.pdf # Package documentation
159 ├── README.md # This file
160
161 ```
162
163 ## Building from Source
164
165 ```bash
166 # Generate package file
167 latex essaykit.ins
168
169 # Build documentation
170 pdflatex essaykit.dtx
171 makeindex -s gind.ist essaykit.idx
172 pdflatex essaykit.dtx
173 pdflatex essaykit.dtx
174
175 # Or use Makefile
176 make all
177 ```
178 <!--
179 ## Examples
180
181 See the `examples/` directory for complete working examples:
182
183 - `basic-example.tex` - Simple usage demonstration
184 - `advanced-example.tex` - Advanced styling options
185 - `complete-document.tex` - Full academic document example -->
186
187 ## Dependencies
188
189 The package automatically loads:
190 - `tcolorbox` - Colored boxes
191 - `hyperref` - PDF hyperlinks
192 - `xkeyval` - Key-value options
193 - `xcolor` - Color support
194 - `graphicx` - Image support
195 - `textpos` - Absolute positioning
196 - And several others for full functionality
197
198 ## Compatibility
199
200 - **LaTeX Version**: Requires LaTeX2e (2005/12/01 or later)
201 - **Engines**: pdfLaTeX, XeLaTeX, LuaLaTeX
202 - **Package Conflicts**: Handles `hyperref` conflicts automatically
203
204 ## Common Use Cases
205
206 ### Academic Papers
207 ```latex
208 \maintitle{Abstract}
209 \rbox[color=lightgray]{
210 This paper presents a novel approach to...
211 }
212 ```
213
214 ### Laboratory Reports
215 ```latex
216 \rbox[title=Objective, color=softblue]{
217 To investigate the relationship between...
218 }
219 ```
220
221 ### Presentations
222 ```latex
223 \quoter{Imagination is more important than knowledge.}{Einstein}
224 ```
225
226 ## Troubleshooting
227
228 ### Package Conflicts
229 Load conflicting packages before essaykit:
230 ```latex
231 \usepackage{animate}
232 \usepackage{multimedia}
233 \usepackage{essaykit} % Load last
234 ```
235
236 ### Color Issues
237 Use predefined colors or define custom ones:
238 ```latex
239 \definecolor{mycolor}{RGB}{100,150,200}
240 \rbox[color=mycolor]{Content}
241 ```
242
243 ## License
244
245 This package is released under the LaTeX Project Public License v1.3c or later.
246 See [LPPL 1.3c or later](https://www.latex-project.org/lppl.txt) for details.
247
248 ## Support
249
250 - **Documentation**: `essaykit.pdf`
251 - **Issues**: Report on GitHub
252 - **Contact**: [email protected]
253
254 ## Contributing
255
256 Contributions are welcome! Please:
257 1. Follow existing code style
258 2. Add tests/examples for new features
259 3. Update documentation
260 4. Submit via standard channels
261
262 ## Version History
263
264 - **v1.0** (2025/08/15) - Initial release
265 - Core functionality: boxes, titles, quotes, rules, sources
266 - Comprehensive key-value option system
267 - Hyperref integration
268 - **v2.0** (2026/01/02) - Second release
269 - New logo box for university/school logos
270
271 ---
272
273 *For complete documentation, see `essaykit.pdf`*