Debian Codegraph @

texmf-dist/doc/latex/modernnewspaper/example/modernnewspaper-example.tex

raw
1 \documentclass{article}
2 \usepackage{modernnewspaper}
3
4 % ---------------------------------
5 % Metadata
6 % ---------------------------------
7 \SetPaperName{Modern Newspaper}
8 \SetPaperSlogan{Unicode Multilingual Test Edition}
9 \SetPaperLocation{Yangon, Myanmar}
10 \SetPaperWebsite{https://github.com/Laitei40/modernnewspaper}
11 \SetPaperVolume{1}
12 \SetPaperIssue{5}
13 \SetPaperDate{\today}
14
15 \begin{document}
16
17 % =================================================
18 % PAGE 1 — FRONT PAGE
19 % =================================================
20 \MakePaperHeader
21
22 \BeginNewsColumns{3}
23
24 % ---------------- Myanmar ----------------
25 \begin{article}
26 \headline{မြန်မာဘာသာ}
27 \byline{Laitei}
28
29 {\MyanmarFont
30 \DropCap{မ}ျန်မာစာသည် ယူနီကုဒ်အခြေခံဖြင့် ရေးသားရသော ဘာသာစကားဖြစ်ပြီး
31 ခေတ်မီ သတင်းစာပုံစံများတွင် မှန်ကန်စွာ ဖော်ပြနိုင်ရပါသည်။
32 }
33 \end{article}
34
35 % ---------------- Arabic (RTL) ----------------
36 \EnableRTL
37 \SetByWord{بقلم}
38
39 \begin{article}
40 \headline{اللغة العربية}
41 \byline{لايتي}
42
43 {\ArabicFont
44 \DropCap{ا}للغة العربية تُكتب من اليمين إلى اليسار،
45 وهذا المثال يوضح دعم النصوص العربية في الأعمدة متعددة الصفحات.
46 }
47 \end{article}
48
49 \DisableRTL
50 \SetByWord{By}
51
52 % ---------------- Hindi ----------------
53 \begin{article}
54 \headline{हिन्दी भाषा}
55 \byline{Editor}
56
57 {\DevaFont
58 \DropCap{ह}िन्दी देवनागरी लिपि में लिखी जाने वाली भाषा है।
59 यह उदाहरण यूनिकोड समर्थन को दर्शाता है।
60 }
61 \end{article}
62
63 \EndNewsColumns
64
65 % =================================================
66 % PAGE BREAK
67 % =================================================
68 \newpage
69
70 % =================================================
71 % PAGE 2 — INNER PAGE (NEW HEADER)
72 % =================================================
73
74
75 \vspace{0.1em}
76 \hrule
77 \vspace{0.1em}
78
79 \begin{center}
80 {\small Modern Newspaper — Vol. 2, No. 1 \quad | \quad \today}
81 \end{center}
82
83 \vspace{0.1em}
84 \hrule
85 \vspace{0.1em}
86
87
88
89 \BeginNewsColumns{3}
90
91 % ---------------- Chinese ----------------
92 \begin{article}
93 \headline{中文}
94 \byline{编辑}
95
96 {\CJKFont
97 \DropCap{中}文在现代排版系统中对 Unicode 的支持非常重要。
98 本页展示了报纸内页的多语言排版效果。
99 }
100 \end{article}
101
102 % ---------------- English ----------------
103 \begin{article}
104 \headline{English Language}
105 \byline{Editor}
106
107 \DropCap{E}nglish now appears together with all other scripts correctly.
108 This inner page intentionally uses a simplified header,
109 which is typical in real-world newspaper layouts.
110 \end{article}
111
112 % ---------------- Mixed article ----------------
113 \begin{article}
114 \headline{Multilingual Publishing Today}
115 \byline{Laitei}
116
117 \DropCap{M}odern newspapers often publish content in multiple languages.
118 A Unicode-first LaTeX package makes it possible to present
119 Myanmar, Arabic, Hindi, Chinese, and English together
120 without layout conflicts.
121 \end{article}
122
123 \EndNewsColumns
124
125 \end{document}