| 1 | # modernnewspaper |
| 2 | |
| 3 | **modernnewspaper** is a modern, Unicode-first LaTeX package for creating |
| 4 | newspaper-style documents. It is designed as a clean, stable, and |
| 5 | extensible alternative to the legacy `newspaper` package, with first-class |
| 6 | support for multilingual content and modern typographic workflows. |
| 7 | |
| 8 | This package is suitable for both **print** and **digital** newspapers, |
| 9 | newsletters, and bulletins. |
| 10 | |
| 11 | --- |
| 12 | |
| 13 | ## ✨ Features |
| 14 | |
| 15 | - Unicode-first (XeLaTeX / LuaLaTeX) |
| 16 | - Clean front-page newspaper masthead |
| 17 | - Inner-page custom headers |
| 18 | - Volume, issue, date, and website metadata |
| 19 | - Multi-column layouts (2, 3, or more columns) |
| 20 | - Article system (headline, byline, dateline, body) |
| 21 | - Unicode-safe drop caps (works in columns) |
| 22 | - Column-safe images (no floating conflicts) |
| 23 | - Right-to-left (RTL) support for Arabic and similar scripts |
| 24 | - Multilingual support (Myanmar, Arabic, Hindi, Chinese, English, etc.) |
| 25 | - Open-source and LPPL licensed |
| 26 | |
| 27 | --- |
| 28 | |
| 29 | ## 📦 Requirements |
| 30 | |
| 31 | - **XeLaTeX** or **LuaLaTeX** |
| 32 | - `pdfLaTeX` is **not supported** |
| 33 | |
| 34 | ### Fonts (important) |
| 35 | |
| 36 | To display non-Latin scripts correctly, appropriate fonts must be installed. |
| 37 | Recommended free fonts include: |
| 38 | |
| 39 | - Myanmar: **Noto Serif Myanmar** |
| 40 | - Arabic: **Amiri** |
| 41 | - Devanagari (Hindi): **Noto Serif Devanagari** |
| 42 | - Chinese: **Noto Serif CJK** |
| 43 | |
| 44 | On Debian/Ubuntu: |
| 45 | |
| 46 | ```bash |
| 47 | sudo apt install fonts-noto fonts-noto-cjk fonts-amiri |
| 48 | ``` |
| 49 | |
| 50 | --- |
| 51 | |
| 52 | ## 🔧 Installation |
| 53 | |
| 54 | ### Option 1: Local (recommended) |
| 55 | |
| 56 | Copy `modernnewspaper.sty` into the same directory as your `.tex` file. |
| 57 | |
| 58 | ### Option 2: User installation |
| 59 | |
| 60 | Install into your local `texmf` tree: |
| 61 | |
| 62 | ``` |
| 63 | ~/texmf/tex/latex/modernnewspaper/ |
| 64 | ``` |
| 65 | |
| 66 | --- |
| 67 | |
| 68 | ## 🚀 Quick Start |
| 69 | |
| 70 | ```latex |
| 71 | \documentclass{article} |
| 72 | \usepackage{modernnewspaper} |
| 73 | |
| 74 | \SetPaperName{Modern Newspaper} |
| 75 | \SetPaperSlogan{Informing the future} |
| 76 | \SetPaperLocation{Yangon, Myanmar} |
| 77 | \SetPaperWebsite{https://example.com} |
| 78 | \SetPaperVolume{1} |
| 79 | \SetPaperIssue{5} |
| 80 | \SetPaperDate{\today} |
| 81 | |
| 82 | \begin{document} |
| 83 | |
| 84 | \MakePaperHeader |
| 85 | |
| 86 | \BeginNewsColumns{3} |
| 87 | |
| 88 | \begin{article} |
| 89 | \headline{Hello World} |
| 90 | \byline{Editor} |
| 91 | |
| 92 | \DropCap{U}nicode text works across scripts: |
| 93 | |
| 94 | မြန်မာစာ · العربية · हिन्दी · 中文 · English |
| 95 | \end{article} |
| 96 | |
| 97 | \EndNewsColumns |
| 98 | |
| 99 | \end{document} |
| 100 | ``` |
| 101 | |
| 102 | Compile with: |
| 103 | |
| 104 | ```bash |
| 105 | xelatex example.tex |
| 106 | ``` |
| 107 | |
| 108 | or: |
| 109 | |
| 110 | ```bash |
| 111 | lualatex example.tex |
| 112 | ``` |
| 113 | |
| 114 | --- |
| 115 | |
| 116 | ## 📰 Section Banners |
| 117 | |
| 118 | Newspaper-style section banners can be created with rules above and below |
| 119 | centered text: |
| 120 | |
| 121 | ```latex |
| 122 | \SectionBanner{World News} |
| 123 | ``` |
| 124 | |
| 125 | This produces: |
| 126 | |
| 127 | ``` |
| 128 | -------------------- |
| 129 | World News |
| 130 | -------------------- |
| 131 | ``` |
| 132 | |
| 133 | --- |
| 134 | |
| 135 | ## 📘 Documentation |
| 136 | |
| 137 | - Full manual: `docs/manual.tex` |
| 138 | - Example file: `example/example.tex` |
| 139 | |
| 140 | --- |
| 141 | |
| 142 | ## 🗺 Roadmap |
| 143 | |
| 144 | Planned improvements: |
| 145 | |
| 146 | - Automatic font switching per script |
| 147 | - Running headers and page numbers |
| 148 | - Newspaper class file (`modernnewspaper.cls`) |
| 149 | - Theme presets |
| 150 | - CTAN submission |
| 151 | |
| 152 | --- |
| 153 | |
| 154 | ## 🤝 Contributing |
| 155 | |
| 156 | Contributions are welcome! |
| 157 | |
| 158 | You can help by: |
| 159 | - Reporting bugs |
| 160 | - Suggesting features |
| 161 | - Improving documentation |
| 162 | - Submitting pull requests |
| 163 | |
| 164 | Please keep changes compatible with **LPPL** and focused on layout stability. |
| 165 | |
| 166 | --- |
| 167 | |
| 168 | ## 📄 License |
| 169 | |
| 170 | This project is licensed under the |
| 171 | **LaTeX Project Public License (LPPL) v1.3c**. |
| 172 | |
| 173 | See the `LICENSE` file or: |
| 174 | https://www.latex-project.org/lppl.txt |
| 175 | |
| 176 | --- |
| 177 | |
| 178 | ## 👤 Author |
| 179 | |
| 180 | **Laitei** |
| 181 | |
| 182 | - GitHub: https://github.com/Laitei40 |
| 183 | - Facebook: https://www.facebook.com/laitei.fb |
| 184 | |
| 185 | --- |
| 186 | |
| 187 | ## ⭐ Status |
| 188 | |
| 189 | This project is under active development. |
| 190 | Current version: **v0.2.1** |