%20%EB%9D%BC%ED%85%8D%EC%8A%A4.png)
지금 저는 논문의 스케치를 진행하고 있습니다. 우리 대학 규정에 따르면, 우리는 다음 사항을 준수해야 합니다.타밀어 버전의 시놉시스우리 논문에서. 저는 Texmaker(LualaTEX)를 사용해 왔습니다. 다른 섹션 내용을 방해하지 않고 특정 섹션에서 타밀어를 호출하는 방법을 안내해 줄 수 있습니까?
답변1
"Akshar Unicode"는 제가 타밀어를 아름답게 출력하는 데 도움이 된 글꼴입니다.
소스 파일
\documentclass{article}
%Always start xelatex files with these in preamble. This helps in defining the script and fonts
\usepackage{fontspec}
%Set the main languge next as main font.
\setmainfont[Script=Devanagari]{Lohit Hindi}
%Set rest of the languages l;ike this. Experiment a bit. script=punjabi did not work. Replaced with gurmukhi and it works.
\newfontfamily{\tam}[Script=Tamil]{Akshar Unicode}
\newfontfamily{\tel}[Script=Telugu]{Akshar Unicode}
\newfontfamily{\kan}[Script=Kannada]{Mallige}
\newfontfamily{\Guja}[Script=Gujarati]{Lohit Gujarati}
\newfontfamily{\ben}[Script=Bengali]{Lohit Bengali}
\newfontfamily{\Punj}[Script=Gurmukhi]{Lohit Punjabi}
%English does not need any script specifiction! Just define the font.
\newfontfamily{\eng}{Arial}
\begin{document}
%No need to define script as this is the manin font set. Like defalut.
नमो पकवते नारायणाय! \\
%Switch language like this. { begins the changed line. \xxx denotes the switched language. Use the same definition as denoted in preamble. } will end the switch and default to main unless again specified.
{\tel నమో పకవతే నారాయణాయ!}\\
{\kan ನಮೋ ಪಕವತೇ ನಾರಾಯಣಾಯ
}\\
{\Guja નમો પકવતે નારાયણાય!}\\
{\Punj ਨਮੋ ਪਕਵਤੇ ਨਾਰਾਯਣਾਯ!}\\
{\ben নমো পকবতে নারায়ণায়!}\\
{\tam நமோ பகவதே நாராயணாய!}\\
{\eng namo bhagavate naraayanaaya}\\
%the next line does not begin liekt he ones above. so it defaults to mainfont which is devanagari.
शुभम।
\end{document}
산출:
여기에도 같은 내용을 썼습니다
https://goinggnu.wordpress.com/2013/06/10/indian-언어s-in-latex/
답변2
귀하의 요구 사항은 다소 모호하며 MWE가 없으면 적절한 답변을 제공하기가 쉽지 않습니다. 그러나 시작점은 다음과 같습니다.
\documentclass{article}
\usepackage[english]{babel}
\babelfont[tamil]{rm}[Renderer=Harfbuzz]{FreeSerif}
\begin{document}
\section{English}
A section in English.
\section{Tamil}
\begin{otherlanguage}{tamil}
நூல் என்பது எண்ணப் பதிவாகிய கருத்துகளை எழுத்து உருவில் காட்டும் ஒரு கருவி.
\end{otherlanguage}
\section{English}
Another section in English.
\end{document}