Debian Codegraph @

texmf-dist/doc/latex/asmeconf/examples/asmeconf-fontspec.tex

raw
1 % !TEX TS-program = LuaLaTeX
2 % !TEX encoding = UTF-8 Unicode
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %%
5 %% This file is an example of using asmeconf with fontspec and lualatex to support non-Latin alphabets.
6 %%
7 \def\fontspecversionno{1.04}
8 %% 2025/11/08
9 %%
10 %% Author: John H. Lienhard V
11 %% Department of Mechanical Engineering
12 %% Massachusetts Institute of Technology
13 %% Cambridge, MA 02139-4307 USA
14 %%
15 %=========================================================
16 %%
17 %% LICENSE:
18 %%
19 %% Copyright (c) 2025 John H. Lienhard
20 %% Offered under the MIT license: https://ctan.org/license/mit
21 %%
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23
24 \DocumentMetadata{%
25 pdfstandard=A-3b,% A-2b, A-2u, A-3b, or A-3u (don't use u options with LuaLaTeX)
26 pdfversion=1.7,
27 lang=en-US,
28 debug = {xmp-export},
29 }
30 \documentclass[loadscripts,colorlinks,nofoot,russian,greek,ukrainian,vietnamese,french,portuguese,turkish,polish,indonesian,italian,german,latin,serbianc,bidi=basic,japanese]{asmeconf}
31 %
32 %\documentclass[colorlinks,nofoot,bidi=basic]{asmeconf}
33 %
34 % spanish, german, and many others do not need to be named if babel is 2024 or later; just need bidi=basic for arabic (and japanese if using that language)
35 %
36 % March 2025: the japanese option has a minor conflict with the chinese-traditional font. Just click past the error message.
37 % November 2025: spanish has a minor issue with \@lbibitem - click past it or take spanish out of the optional argument.
38 %
39 % [loadscripts] option added 2025/04/13 - required to access non-Latin scripts.
40
41
42 \usepackage{hologo}% access various latex logos if needed
43
44 % directly add this xmp property. See l3pdfmeta.pdf. This is not automatic with \DocumentMetadata. "True" must be capitalized.
45 \ExplSyntaxOn
46 \pdfmeta_xmp_add:n{<xmpRights:Marked>True</xmpRights:Marked>}
47 \ExplSyntaxOff
48
49 \hypersetup{%
50 pdftitle={{Language Support in ASMECONF: Non-Latin Alphabets, Lualatex, and fontspec}},
51 pdfkeywords={asmeconf, non-Latin alphabets, fontspec, LuaLaTeX, PDFLaTeX},
52 pdfauthor={John H. Lienhard},
53 pdfsubject = {Describes font support in asmeconf LaTeX template},
54 pdfurl={https://ctan.org/pkg/asmeconf},% may delete
55 pdflicenseurl={https://ctan.org/pkg/asmeconf},
56 pdfcopyright={Copyright (c) \the\year\ by John H. Lienhard},
57 pdfcontactemail={[email protected]},
58 pdfcaptionwriter={{John H. Lienhard, V}},
59 pdfcontactaddress={77 Massachusetts Avenue, Room 3-166},
60 pdfcontactcity={Cambridge, MA},
61 pdfcontactpostcode={02139},
62 pdfcontactcountry={USA},
63 pdfcontacturl={https://lienhard.mit.edu},
64 pdfauthortitle={Professor of Mechanical Engineering},
65 }
66
67 % To avoid typing these over and over, define:
68 \newcommand*\FS{{\upshape\texttt{fontspec}}}
69 \newcommand*\LLT{{\upshape\hologo{LuaLaTeX}}}
70 \newcommand*\AC{{\upshape\texttt{asmeconf}}}
71 \newcommand*\PLT{{\upshape\texttt{\hologo{pdfLaTeX}}}}
72
73 % define a unicode character by its codepoint
74 \ExplSyntaxOn
75 \cs_new:Npn \MySym #1 { \codepoint_generate:nn {#1} { 12 } }
76 \ExplSyntaxOff
77
78 \providecommand*{\checkmark}{\MySym{"2713}} % because default checkmark has poor glyph information
79 \renewcommand*{\textast}{\MySym{"002A}} % because default checkmark has poor glyph information
80
81 %\AtBeginDocument{\let\ast\textast}
82 % brute force fix of bug in luatexja-fontspec, when Japanese option is used. This affects the \ast of \CorrespondingAuthor
83
84 %% It's necessary to force full embedding of the fonts to get valid PDF/A-3b
85 \usepackage{luacode}
86 \begin{luacode}
87 local function embedfull(tfmdata)
88 tfmdata.embedding = "full"
89 end
90 luatexbase.add_to_callback("luaotfload.patch_font", embedfull, "embedfull")
91 \end{luacode}
92
93
94 \makeatletter
95 \def\NotoBan@scale{0.98}% vary this if the Bengali is too small/large; the default value 0.92 matches scaling of the other Noto fonts used.
96 \def\NotoDev@scale{0.98}% vary this if the Devanagari is too small/large; the default value 0.92 matches scaling of the other Noto fonts used.
97 %\def\NotoTam@scale{0.92}% vary this if the Tamil is too small/large; the default value 0.92 matches scaling of the other Noto fonts used.
98 \def\NotoAra@scale{0.93}% The serif font only; the default value is 0.91
99
100 % Noto family is not as close to Tex Gyre Termes as I'd like, so for abstract examples in Latin script [only], I'm using Noto Serif Italic for visual consistency
101 \newfontfamily{\NotoSerif}{NotoSerif}[UprightFont=*-Regular,ItalicFont=*-Italic, BoldItalicFont=*-BoldItalic, BoldFont=*-Bold, Extension=.ttf,Scale=0.84,WordSpace={1,1.4,1}]
102 \newfontfamily{\NotoSerifItalns}{NotoSerif-Italic.ttf}[ItalicFont=*,Scale=\Noto@scale]% Turkish has trouble with WordSpace
103 \makeatother
104
105 % babel [serbianc] module redefines some math commands that are also redefined by babel [russian]. Let's avoid error messages
106 % by erasing the [serbianc] definitions before \begin{document}, which is where [russian] will define them.
107 \usepackage{etoolbox}
108 \AtEndPreamble{%
109 \let\sh\relax \let\ch\relax \let\tg\relax \let\ctg\relax \let\arctg\relax \let\arcctg\relax \let\cth\relax \let\cosec\relax }
110
111
112 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
113
114 % This environment will generate the .bib file the first time you run the code
115 % NB: if the .bib file already exists, it will not be overwritten
116 \begin{filecontents}{asmeconf-fontspec.bib}
117 @online{lienhard2021,
118 author = {John H. Lienhard},
119 title = {{\texttt{asmeconf}}: A template for {ASME} conference papers},
120 organization = {Comprehensive \TeX\ Archive Network},
121 version = {{\versionno}},
122 year = {2025},
123 url = {https://ctan.org/pkg/asmeconf},
124 urldate = {{\today}},
125 }
126 @online{bezos2025,
127 author = {Javier Bezos and Johannes L. Braams},
128 title = {{\texttt{babel}}: Localization and internationalization},
129 organization = {Comprehensive \TeX\ Archive Network},
130 version = {25.25},
131 year = {2025},
132 url = {https://ctan.org/pkg/babel},
133 urldate = {March 14, 2025},
134 }
135 @online{robertson2023,
136 author = {Will Robertson},
137 title = {Experimental Unicode mathematical typesetting: The \textsf{unicode-math} package},
138 version = {0.8r},
139 organization = {Comprehensive \TeX\ Archive Network},
140 year = {2023},
141 url = {https://ctan.org/pkg/unicode-math},
142 urldate = {March 9, 2025},
143 }
144 @online{lua-jp,
145 author = {{\hologo{LuaTeX}-ja project team}},
146 title = {The {\hologo{LuaLaTeX}}-ja package},
147 version = {20210103.0},
148 organization = {Comprehensive \TeX\ Archive Network},
149 year = 2021,
150 url = {https://ctan.org/pkg/luatexja},
151 urldate = {January 5, 2021},
152 }
153 @online{dpc,
154 author = {David Carlisle},
155 title = {The {\texttt{dcolumn}} package},
156 version = {1.06},
157 organization = {Comprehensive \TeX\ Archive Network},
158 year = 2014,
159 url = {https://ctan.org/pkg/dcolumn},
160 urldate = {January 8, 2021},
161 }
162 \end{filecontents}
163
164 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
165 \begin{document}
166
167 \ConfName{Proceedings of the \texttt{asmeconf} \linebreak International Examples Congress and Exposition}
168 \ConfAcronym{AIECE24}
169 \ConfDate{August 1, 2024}
170 \ConfCity{Cambridge, MA}
171 \PaperNo{AIECE2024-0002}
172
173 \title{Language Support in ASMECONF: Non-Latin Alphabets, Lualatex, and fontspec}
174
175 \SetAuthors{John H.\ Lienhard V\affil{}\CorrespondingAuthor{[email protected]}}
176 \SetAffiliation{}{Department of Mechanical Engineering \\ Massachusetts Institute of Technology, Cambridge, MA}
177
178 \maketitle
179
180 \versionfootnote{Version~\fontspecversionno, \today}
181
182 \keywords{asmeconf, language support, non-Latin alphabets, fontspec, \LLT}
183
184 %%%%%%%%% ABSTRACT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
185 \begin{abstract}
186 This note describes the use of \AC\ to format multilingual documents in Latin or non-Latin alphabets. Font support encompasses the Arabic, Chinese, Greek, Hindi, Korean, Marathi, Russian, and Tamil languages, among others. For asian alphabets, \LLT\ and \FS\ are employed. The system fonts that must be installed for \FS\ are listed, and examples of simple abstracts are shown in twenty-five languages.
187 \end{abstract}
188
189 %%%%%%%%% BODY OF PAPER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
190 \section{Introduction: why have this?}
191 The \AC\ class~\cite{lienhard2021} provides a template for formatting conference papers submitted to the American Society of Mechanical Engineers.
192 The goal of adding language support to \AC\ is to enable authors to include translations of a paper's abstract or brief quotations in languages other than English. Although the entire \AC\ template may, in principle, be switched to another language without modifying the class file, I have not explored this option in much detail. These language capabilities are experimental, and their future development will be guided by the feedback that I receive from authors.
193
194 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
195 \section{The babel package}
196 The typesetting of languages is handled by the \texttt{babel} package~\cite{bezos2025}, which is called by the \AC\ class. For many languages, \texttt{babel} includes language definition files (\texttt{.ldf}) that provide information about section or caption titles, hyphenation rules, and so on. When an \texttt{.ldf} exists, \texttt{babel} will recognize the language as a global option that can be passed as an option to \AC, assuming that an appropriate font is available. A list of the many languages with \texttt{.ldf} files is given in the \texttt{babel} documentation.
197
198 For languages in Latin scripts, it's usually safe to assume that the font is present, and many such languages have \texttt{.ldf} files. For other scripts, additional steps are needed. The \AC\ class handles this differently under \PLT\ and \LLT.
199
200 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
201 \section{Using Non-Latin Scripts}
202 When using \PLT, \AC will load appropriate fonts for Greek, Vietnamese, and certain cyrillic-script languages (see Table~\ref{tab:1}). The user can give the corresponding class option and then call for a change of language as described in Section~\ref{sec:6}. No additional work is required.
203
204 To access a broader range of fonts, \AC\ can be used under \LLT, with \FS. In that case, \AC\ will employ unicode fonts that are installed on the user's computer. The class option \texttt{[loadscripts]} must be called to load the non-Latin fonts listed in Tables~\ref{tab:1} and~\ref{tab:2}.
205
206 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
207 \begin{table}[t]
208 \caption{Languages in non-Latin scripts for which \NoCaseChange{\AC} provides font support.
209 Required class options are shown where needed. Several languages are available only with LUALATEX.\label{tab:1}}%
210 \centering{%
211 \begin{tabular}{@{\hspace*{1.5em}}l@{\hspace*{4em}}c@{\hspace*{2.5em}}c@{\hspace*{1.5em}}}
212 \toprule
213 \textbf{Language} & \textbf{\hologo{pdfLaTeX}} & \textbf{\LLT}\\ \midrule
214 Arabic & \textit{n/a} & bidi=basic\\
215 Belarusian & belarusian & \\
216 Bengali & \textit{n/a} & \\
217 Bulgarian & bulgarian & \\
218 Chinese & \textit{n/a} & \\
219 Greek & greek & \\
220 Hindi & \textit{n/a} & \\
221 Japanese & \textit{n/a} & japanese \\
222 Korean & \textit{n/a} & \\
223 Macedonian & macedonian & \\
224 Marathi & \textit{n/a} & \\
225 Russian & russian & \\
226 Serbian &serbianc$^\ast$& \\
227 Tamil & \textit{n/a} & \\
228 Ukrainian & ukrainian & \\
229 Vietnamese & vietnamese & \\
230 \bottomrule
231 \multicolumn{3}{@{}p{\columnwidth}}{\footnotesize$^\ast$\ Serbian option \texttt{[serbianc]}, for both engines, uses cyrillic. In \PLT, use \texttt{\textbackslash selectlanguage\{serbianc\}}. In \LLT, instead select ``\texttt{serbian-cyrillic}''.}
232 \end{tabular}
233 }
234 \end{table}
235
236 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
237 \section{Unicode fonts}
238 The \FS\ package~\cite{robertson2023} allows \LLT\ to access fonts that are on the user's system. Today, these fonts are normally in unicode, a 16-bit format that allows a font to contain a vast number of glyphs---up to $2^{16}$. Multiple languages can be contained within a single font. Specialized unicode fonts are dedicated to some languages that have many thousands of characters, such as Japanese or Chinese.
239
240 When processed in \PLT, \AC\ uses the \texttt{newtxtext} and \texttt{inconsolata} fonts, a collection of eight-bit fonts, for Latin script. To use \FS, those are replaced by corresponding unicode fonts. Specialized fonts are needed for some additional scripts. Only some of these fonts are included in a standard \LaTeX\ distribution. Thus, the user may need to install several unicode fonts onto their own system in order to use \AC\ with \FS.
241 Fortunately, such fonts are free and easily downloaded.
242
243 The needed fonts are listed in Table~\ref{tab:2}. The Latin fonts are required for English when using \FS; however, these are included in a standard \TeX\ Live installation.
244
245 %%%%%%%%%%%%%%% two column table %%%%%%%%%%%%%%%%%%
246 \NewDocumentCommand\R{O{11pt}}{\rule{0pt}{#1}}
247 \begin{table*}[t!]
248 \caption{System fonts used by \NoCaseChange{\AC} with \NoCaseChange{\FS}. For all fonts, load regular and bold face. For Latin, Cyrillic, and Greek serif and sans serif fonts, also load italic and bold italic. For Noto Sans Arabic, install semibold instead of bold.\label{tab:2}}%
249 \centering{%
250 \begin{tabular*}{\textwidth}{@{\hspace*{0.5em}}@{\extracolsep{\fill}}>{\raggedright}p{6em}>{\raggedright}p{12em}>{\raggedright}p{10em}p{23em}@{\hspace*{0.5em}}}
251 \toprule
252 \textbf{Script}\rule{0pt}{11pt} &
253 \multicolumn{1}{c}{\textbf{Language}} &
254 \multicolumn{1}{c}{\textbf{Fonts}} &
255 \multicolumn{1}{c}{\textbf{Where to get the font}}\\ \midrule
256 Latin$^*$ & most European languages & TeX Gyre Termes, & \url{https://ctan.org/tex-archive/fonts/newtx/opentype}, \rule{0pt}{11pt}\\
257 & & TeX~Gyre~Heros, & \url{https://ctan.org/tex-archive/fonts/tex-gyre/opentype}\\
258 %\url{http://www.gust.org.pl/projects/e-foundry/tex-gyre} \\
259 & & Inconsolatazi4 & \url{https://ctan.org/tex-archive/fonts/inconsolata/opentype} \\
260 Arabic\R & Arabic, Punjabi, Urdu, others & Amiri,\\ Noto~Sans~Arabic & \url{https://github.com/alif-type/amiri}\hfill\hbox{} \url{https://github.com/googlefonts/noto-fonts} \\
261 Bengali\R & Assamese, Bengali, others & Noto Serif Bengali,\\ Noto~Sans Bengali& \url{https://github.com/googlefonts/noto-fonts} \\
262 Cyrillic\R & Belarusian, Bulgarian, Macedonian, Russian, Serbian, Ukrainian, others & Noto Serif,\\ Noto~Sans, Noto~Sans~Mono & \url{https://github.com/googlefonts/noto-fonts} \\
263 Devanagari\R& Hindi, Kashmiri, Marathi, Nepali, Sanskrit, others & Noto Serif Devanagari,\\ Noto~Sans Devanagari& \url{https://github.com/googlefonts/noto-fonts} \\
264 Greek\R & Greek & Noto Serif, Noto~Sans, Noto~Sans~Mono & \url{https://github.com/googlefonts/noto-fonts} \\
265 Hangul\R & Korean & Noto~Serif~CJK~KR, Noto~Sans~CJK~KR, Noto~Sans~Mono~CJK~KR & \url{https://github.com/googlefonts/noto-fonts} \\
266 Japanese\R & Japanese & Noto~Serif~CJK~JP, Noto~Sans~CJK~JP, Noto~Sans~Mono~CJK~JP & \url{https://github.com/googlefonts/noto-fonts} \\
267 Simplified\R\ Chinese & Mandarin & Noto~Serif~CJK~SC, Noto~Sans~CJK~SC, Noto~Sans~Mono~CJK~SC & \url{https://github.com/googlefonts/noto-fonts} \\
268 Tamil\R & Tamil, others & Noto~Serif~Tamil, Noto~Sans~Tamil & \url{https://github.com/googlefonts/noto-fonts} \\
269 Traditional\R\ Chinese & Traditional Mandarin, Cantonese & Noto~Serif~CJK~TC, Noto~Sans~CJK~TC, Noto~Sans~Mono~CJK~TC & \url{https://github.com/googlefonts/noto-fonts} \\
270 \bottomrule
271 \multicolumn{4}{l}{\R $^*$\ The Latin fonts are \textit{required} with \AC+\FS, even if English is the only language called. Install others as needed.}
272 \end{tabular*}
273 }
274 \end{table*}
275
276 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
278 \section{Using fontspec with asmeconf}
279
280 When running \LLT, \texttt{fontspec} is loaded by default (as of Feb.\ 2024). With \FS, \texttt{babel} will use \texttt{.ldf} files or separate initialization files (\texttt{.ini}) when they are available for a given language. These files provide language specific information, using include the appropriate names for abstract, figure, table, appendix, and so on. These languages can be accessed as described in Section~\ref{sec:6}.
281
282 The class option \texttt{loadscripts} must be called to load the non-Latin fonts listed in Tables~\ref{tab:1} and~\ref{tab:2}.
283
284 When captions and the like are not needed (as for short passages like the abstracts herein), \texttt{babel} can load many languages ``on the fly'', with only a basic call in the \text{.tex} file (see Section \ref{sec:6}), if an appropriate font is available, without even using a class option. Adding the language name to as an option to \verb|\documentclass| ensures that an \texttt{.ldf} or \texttt{.ini} file will also be loaded.
285
286 Arabic typesetting is a little more complicated. The script runs right to left, and so arabic requires the \texttt{bidi} package, which can be loaded as a class option. Similarly, when \texttt{[japanese]} is given as an option to the class, \AC\ calls the \texttt{luatexja-fontspec} package~\cite{lua-jp}, which is a specialized module for typesetting Japanese. (\textit{The Japanese option has a conflict with Chinese-traditional text as of March 2025, but both still typeset.})
287
288 What about support for scripts not shown in Table~\ref{tab:2}? Macros from \texttt{babel} for adding fonts can be placed into the preamble of your document. The \texttt{babel} package supports roughly 250 languages, and \AC\ has been tried with only about thirty. In fact, any of the scripts mentioned can be called from your preamble rather than using the \texttt{[loadscripts]} option.
289
290 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
291
292 \section{How to call a language\label{sec:6}}
293
294 Call a language with \verb|\begin{selectlanguage}{<lang>}|, where \texttt{<lang>} is the lower-case name of the language.
295 For example, suppose that a Spanish language abstract is desired. The user puts \texttt{[spanish]} as a class option (this language has an \texttt{.ldf} file), and then writes:
296 \begin{quotation}
297 \noindent\hbox{}\verb|\begin{selectlanguage}{spanish}|\\
298 \verb|\begin{abstract*}|\\
299 \verb|Este es el resumen del artículo|\ldots\\
300 \verb|\end{abstract*}|\\
301 \verb|\end{selectlanguage}|
302 \end{quotation}
303
304 As it happens, this short snippet does not even require the class option because the word for ``abstract'' is grabbed on the fly and the font is the same as for the main English text. On the other hand, a Greek abstract needs to have a font specified. The \AC\ class loads this font automatically under \LLT ; for \PLT, the font is loaded if the class option \texttt{[greek]} is used.
305
306 \textsc{\textbf{Nota Bene:}} \textbf{1)} Your \texttt{.tex} file \textit{must} be saved in \texttt{utf-8} encoding. Some operating systems default to a different encoding that will garble unicode characters. \textbf{2)} The features used to provide language support under \FS\ require an up-to-date \LaTeX\ distribution (2020 or~later). \textbf{3)} The documentation of \texttt{babel} provides detailed guidance on loading languages.
307
308 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
309 \section{Abstracts}
310 Examples of abstracts in various languages now follow. Reading the source \texttt{.tex} file for this document may clarify the syntax.
311
312 \begin{selectlanguage}{chinese-simplified}
313 \begin{abstract*}
314 这是文章的摘要。我们用中文书写,描述了问题,方法和结果,还包括了参考文献。
315 \end{abstract*}
316 \end{selectlanguage}% edited by Zi Hao Foo
317
318 \begin{selectlanguage}{chinese-traditional}% this is Mandarin
319 \begin{abstract*}
320 這是文章的摘要。我們用中文書寫,描述了問題,方法和結果,還包括了參考文獻。
321 \end{abstract*}
322 \end{selectlanguage}% edited by Zi Hao Foo
323
324 \begin{selectlanguage}{chinese-traditional}% this is Cantonese
325 \begin{abstract*}
326 係文嘅摘要。 我哋用中文書寫,描述了問題,方法同結果,仲包括埋參考文獻。
327 \end{abstract*}
328 \end{selectlanguage}% edited by Zi Hao Foo
329
330 {\NotoSerif
331 \begin{selectlanguage}{spanish}
332 \begin{abstract*}
333 Este es el resumen del artículo. Escribimos en español. Se describen el problema, los métodos y los resultados. También se incluyen referencias.
334 \end{abstract*}
335 \end{selectlanguage}% edited by Aarón Montoya-Moraga
336
337 \begin{selectlanguage}{english}
338 \begin{abstract*}
339 This is the summary of the article. We write in English. The problem, methods, and results are described. References are also included.
340 \end{abstract*}
341 \end{selectlanguage}% checked by JHL :-)
342 }%
343
344 \begin{selectlanguage}{hindi}
345 \begin{abstract*}
346 यह हिंदी में लिखे गए एक लेख का सारांश है। समस्या, विधियों और परिणामों का वर्णन किया गया है। संदर्भ भी शामिल हैं।
347 \end{abstract*}
348 \end{selectlanguage}% Checked by Debanjan Banerjee
349
350 \begin{selectlanguage}{bengali}
351 \begin{abstract*}
352 এটি নিবন্ধের সংক্ষিপ্তসার। আমরা বাংলা ভাষায় লিখি। সমস্যা, পদ্ধতি এবং ফলাফল বর্ণনা করা হয়। উল্লেখগুলিও অন্তর্ভুক্ত রয়েছে।
353 \end{abstract*}
354 \end{selectlanguage}% Checked by Yagnaseni Roy
355
356 \begin{selectlanguage}{arabic}% NB: provide package option [bidi=basic] to get RL type.
357 \begin{abstract*}\upshape
358 هذا هو ملخص المقال. نكتب بالعربية. يتم وصف المشكلة والطرق والنتائج. يتم تضمين المراجع أيضاً.
359 \end{abstract*}
360 \end{selectlanguage}% Edited by Omar Labban
361
362 {\NotoSerif
363 \begin{selectlanguage}{portuguese}
364 \begin{abstract*}
365 Este é o resumo do artigo. Escrevemos em português. O problema, métodos e resultados são descritos. Referências também estão incluídas.
366 \end{abstract*}
367 \end{selectlanguage}% Checked by Igo Krebs
368 }%
369
370 \begin{selectlanguage}{russian}
371 \begin{abstract*}
372 Это резюме статьи. Пишем по русски. Описаны проблема, методы и результаты. Библиография также включена.
373 \end{abstract*}
374 \end{selectlanguage}% edited by Steven Gerasimoff
375
376 \begin{selectlanguage}{japanese}
377 \begin{abstract*}
378 %論文の要約です。日本語で記述します。問題、方法、および結果について説明します。また、参考文献も含めます。
379 この論文の日本語での要約は以下のとおりです。問題、方法、および結果が説明されています。参考資料も添付してあります。
380 \end{abstract*}
381 \end{selectlanguage}% Edited by Keiji Yano and Yoshiki Okamoto
382
383 \begin{selectlanguage}{marathi}
384 \begin{abstract*}
385 हा लेखाचा सारांश आहे. आपण मराठीत लिहित आहो. ह्यात समस्या , पद्धती आणि परिणामाचे वर्णन केले आहेत. संदर्भ देखील समविष्ट आहेत.
386 \end{abstract*}
387 \end{selectlanguage}% Edited by Vibhawari Deshmukh. (Note that proper fontspec renderer is needed for the combining characters.)
388
389 {\NotoSerif
390 \begin{selectlanguage}{turkish}
391 \begin{abstract*}{\NotoSerifItalns
392 Bu, makalenin özetidir. Türkçe yazıyoruz. Sorun, yöntemler ve sonuçlar açıklanmaktadır. Referanslar da dahildir.}%
393 \end{abstract*}%
394 \end{selectlanguage}% Edited by Aslı Demir
395 }%
396
397 \begin{selectlanguage}{korean}
398 \begin{abstract*}
399 이것은 한국어로 쓰인 논문의 초록입니다. 문제, 방법 및 결과가 설명되어 있습니다. 참조도 포함됩니다.
400 \end{abstract*}
401 \end{selectlanguage}% Edited by Hyung Won Chung.
402
403 {\NotoSerif
404 \begin{selectlanguage}{french}
405 \begin{abstract*}
406 Ceci est le résumé de l'article. Il est écrit en français. Le problème, les méthodes et les résultats sont décrits. Des références sont également incluses.
407 \end{abstract*}
408 \end{selectlanguage}% Edited by Christine Gervais.
409
410 \begin{selectlanguage}{german}
411 \begin{abstract*}
412 Hier ist die Zusammenfassung des Beitrags. Wir schreiben auf Deutsch. Die Fragestellung, die Methoden und die Ergebnisse werden beschrieben. Der Beitrag enthält auch ein Literaturverzeichnis.
413 \end{abstract*}
414 \end{selectlanguage}% Edited by Greg Thiel.
415 }%
416
417 \begin{selectlanguage}{tamil}
418 \begin{abstract*}
419 இது கட்டுரையின் சுருக்கம். நாங்கள் தமிழில் எழுதுகிறோம். சிக்கல், முறைகள் மற்றும் முடிவுகள் விவரிக்கப்பட்டுள்ளன. குறிப்புகளும் சேர்க்கப்பட்டுள்ளன.
420 \end{abstract*}
421 \end{selectlanguage}% Edited by Jaichander Swaminathan. (Note that HarfBuzz is needed for combining characters to render correctly.)
422
423 {\NotoSerif
424 \begin{selectlanguage}{vietnamese}
425 \begin{abstract*}
426 Đây là phần tóm tắt của bài báo khoa học. Chúng tôi viết bằng tiếng Việt. Vấn đề, các phương pháp và các kết quả được mô tả trong phần này. Tài liệu tham khảo cũng được bao gồm.%
427 \end{abstract*}
428 \end{selectlanguage}% Checked and edited by Nguyen Le and Thao Nguyen
429
430 \begin{selectlanguage}{italian}
431 \begin{abstract*}
432 Questo è il riassunto dell'articolo. Scriviamo in italiano. Vengono descritti il ​​problema, i metodi e i risultati. Sono inclusi anche i riferimenti.
433 \end{abstract*}
434 \end{selectlanguage}% Checked by Jacopo Buongiorno.
435
436 \begin{selectlanguage}{indonesian}
437 \begin{abstract*}
438 Ini adalah ringkasan dari artikel tersebut. Kami menulis dalam bahasa Indonesia. Masalah, metode, dan hasil dijelaskan. Referensi juga disertakan.
439 \end{abstract*}
440 \end{selectlanguage}% checked by Danyal Rehman and Turga Ganapathy
441
442 \begin{selectlanguage}{polish}
443 \begin{abstract*}
444 To jest podsumowanie artykułu. Piszemy po polsku. Opisano problem, metody i wyniki. Literatura źródłowa zostanie udostępniona.
445 \end{abstract*}
446 \end{selectlanguage}% Edited by Leon Awerbuch
447
448 \begin{selectlanguage}{swahili}
449 \begin{abstract*}
450 Huu ni Muhtasari wa makala. Tunaandika kwa Kiswahili.
451 Matatizo, Mbinu na matokeo yameelezewa. Marejeleo pia yamejumuishwa.
452 \end{abstract*}
453 \end{selectlanguage}% Edited by Judith Mmari
454 }%
455
456 \begin{selectlanguage}{ukrainian}
457 \begin{abstract*}
458 Це короткий зміст статті. Пишемо українською мовою. Описана проблема, методи та результати. Стаття включає список використаної літератури.
459 \end{abstract*}
460 \end{selectlanguage}% Edited by Svetlana Boriskina
461
462 \begin{selectlanguage}{greek}%
463 \begin{abstract*}
464 Αυτή είναι η περίληψη του άρθρου. Χρησιμοποιούμε την ελληνική γλώσσα. Περιγράφεται το πρόβλημα, οι μέθοδοι και τα αποτελέσματα. Περιλαμβάνονται επίσης αναφορές.
465 \end{abstract*}
466 \end{selectlanguage}% Edited by George Barbastathis
467
468 % Use global option [serbianc]
469 % Note -- the Slavic language .ldf files redefine math operators. Russian and Ukrainian avoid conflicts, but Serbian does not. See local fix in preamble.
470 \begin{selectlanguage}{serbian-cyrillic}
471 \begin{abstract*}
472 Ово је резиме чланка. Пишемо на српском. Описани су проблем, методе и резултати. Укључене су и референце.
473 \end{abstract*}
474 \end{selectlanguage}% confirmed by Bora Mikić
475
476 {\NotoSerif
477 \begin{selectlanguage}{latin}
478 \begin{abstract*}
479 Hoc argumentum in articulum. Latine scribere nobis. Quaestio est, modi, et describit eventus qui. Alia sunt opera citatis.
480 \end{abstract*}
481 \end{selectlanguage}
482 }%
483
484 %%% ENTIRE DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%
485 \section{Changing the language of the entire document}
486 The main language of the document is English by default. This means that section headings, captions, and other words chosen by macros will be in English.
487
488 To chose a different main language, give the option \texttt{[main=..]}, e.g., \texttt{[main=french]}. The standard caption and section names will follow \texttt{babel}'s dictionary for the language chosen. Users may additionally change ``Keywords'', ``Nomenclature'', ``Corresponding author'', and ``Joint first authors'' by renewing the commands \verb|\keywordname|, \verb|\nomname|, \verb|\CAwords|, and \verb|\JAwords|. Changes to the page footer are described in the \AC\ documentation~\cite{lienhard2021}.
489 % The pdf bookmark for ``Appendices'' may be changed by renewing \verb|\appendicesname|. % dropped this bookmark, Spring 2025.
490 (See the \texttt{babel} documentation \cite[Ch.~3]{bezos2025} if the dictionary for the main language lacks the correct word for, say, \verb|abstractname|).
491
492 I have not explored this usage in detail, and I would welcome comments from authors who attempt such conversions.
493
494 Note that some languages make characters active, which can have unexpected effects. For example, Spanish makes ``.'' an active character, which clashes with the default decimal separator when using \texttt{dcolumn}'s \texttt{d\{n.m\}}~\cite{dpc}. The command \texttt{\textbackslash spanishdeactivate\{.\}} stops this behavior. As of August 2024, \texttt{asmeconf} defines a \texttt{dcolumn} type \texttt{,\{n.m\}} that uses a comma (not a period) as the decimal separator.
495 %Alternatively, the decimal separator can be changed to a comma by putting \texttt{\textbackslash newcolumntype\{d\}[1]\{D\{,\}\{,\}\{\#1}\}\} in the preamble.
496
497
498 %%% CONCLUSIONS %%%%%%%%%%%%%%%%%%%%%%%%%%
499
500 \section{Conclusion}
501 \AC\ has multilingual capabilities under both \PLT\ and \LLT. In particular, with \FS, \AC\ can support a wide range of scripts and languages within a \LaTeX\ environment. These capabilities are largely experimental, and their future development will be guided by feedback that I receive from those using these features.
502
503 %%% ACKNOWLEDGMENTS %%%%%%%%%%%%%%%%%%%%%%%%%%
504
505 \section{Acknowledgments}
506 Thanks to everyone who helped me sort out the translated abstracts: Leon Awerbuch, Debanjan Banerjee, George Barbastathis, Svetlana Boriskina, Jacopo Buongiorno, Hyung Won Chung, Aslı Demir, Vibhawari Deshmukh, Zi Hao Foo, Turga Ganapathy, Steven Gerasimoff, Christine Gervais, Igo Krebs, Omar Labban, Nguyen Le, Bora Mikić, Judith Mmari, Aarón Montoya-Moraga, Thao Nguyen, Yoshiki Okamoto, Danyal Rehman, Yagnaseni Roy, Jaichander Swaminathan, Gregory Thiel, and Keiji Yano. All were generous with their time.
507
508 %%% REFERENCES %%%%%%%%%%%%%%%%%%%%%%%%%%
509
510 \bibliographystyle{asmeconf}%% .bst file following ASME conference format. Do not change.
511 \bibliography{asmeconf-fontspec}%% this bib file will be generated from the filecontents environment upon first run of this .tex file.
512
513 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
514
515 \end{document}
516