pdflatex_bengali

Provides a quick & easy way to write in Bengali using only pdflatex

https://github.com/aritraghsh09/pdflatex_bengali

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.2%) to scientific vocabulary

Keywords

bengali latex overleaf pdflatex
Last synced: 6 months ago · JSON representation ·

Repository

Provides a quick & easy way to write in Bengali using only pdflatex

Basic Info
  • Host: GitHub
  • Owner: aritraghsh09
  • License: gpl-3.0
  • Language: TeX
  • Default Branch: main
  • Homepage:
  • Size: 499 KB
Statistics
  • Stars: 24
  • Watchers: 1
  • Forks: 4
  • Open Issues: 1
  • Releases: 2
Topics
bengali latex overleaf pdflatex
Created over 3 years ago · Last pushed 10 months ago
Metadata Files
Readme License Citation

README.md

DOI License: GPL v3 Compile demo.tex


Introduction

Writing বাংলা in LaTeX is pretty straightforward these days using XeLaTeX or LuaTeX. However, there arises instances when one needs to write বাংলা only using pdflatex.

This is especially true with respect to many academic institutions (e.g., arXiv), which still support only pdflatex.

This short repository is meant to help you write বাংলা using only pdflatex. The examples in this repository have also been written/tested to work with Overleaf

Note that this repository is entirely based on the Bengali font and code developed by Palash Baran Pal for his excellent bangtex package

Quickstart Guide

  • Put the mf folder along with all its contents in the same directory as your LaTeX source code.
  • Put the bangla_commands.tex file in the same directory as your LaTeX source code.
  • Put \input{bangla_commands} in the preamble of your LaTeX source code
  • When you write বাংলা enclose it within the \bng command like this {\bng baNNGla \*l*ikhun} which should output বাংলা লিখুন
  • The \bng command can be replaced by commands specifying other sizes, and this is outlined in the demo.tex and demo.pdf files.
  • A simple example document is shown below

```tex \documentclass{article}

\title{Bengali Test} \author{{\lbng Airt/r *gh*eaSh}}

\input{bangla_commands}

\begin{document}

\maketitle

\section{Example}

{\bng baNNGla *l*ikhun}

\end{document} ```

Warning Line 97 of bangla_commands.tex gives an option to put an extremely high penalty on splitting words (so that your LaTeX compiler doesn't choose to do this). This line is commented out by default. But, if your document has many paragraphs of বাংলা text, it's recommended to uncomment this line.

Transliteration

  • Note that in order to write Bengali using bangtex, you cannot type using the বাংলা script directly. You need to write it using transliteration-esque Roman characters. This scheme is extensively outlined in the original bangtex manual.

  • As you may notice, the above scheme takes a little bit of time to learn and master; and there are a few options you have to automatically transform বাংলা text to the transliteration-esque Roman characters:

    • Md. Abdur Rakib Mollah has developed a pip installable Python package that converts UTF-8 Bangla (i.e., বাংলা ) to the bangtex commands. You can find the package and installation instructions here
    • Abhijit Dasgupta has developed a way to type directly in বাংলা and then convert the same into the bangtex commands using a perl script. You can access the details here

More Background & Why This Repository

  • While bangtex provides an excellent way to write extensive documents in বাংলা, I needed the exact opposite -- the need to insert বাংলা in a primarily English document using only pdflatex on Overleaf.

  • Thus, I created this repository, which only keeps the bare minimum functionality of bangtex while also not needing any extensive installation or dependencies on other software (as this is not possible on Overleaf)

  • Note that if you are trying to write a more extensive document with advanced features, you should not expect this simple repository to work properly and should use the original bangtex package instead.

Citation & Contact

I was not aware that I could write my name or other content in বাংলা for my arXiv submissions for many years. I encourage you to cite this repository (in the Software Section of your academic publications) to make others aware of its existence. To do this you can use the following Zeondo DOI and bibtex code

bib @software{Ghosh_pdfLaTeX_Bengali_2022, author = {Ghosh, Aritra}, doi = {10.5281/zenodo.6780690}, month = {6}, title = {{pdfLaTeX Bengali}}, url = {https://github.com/aritraghsh09/pdflatex_bengali}, version = {0.1}, year = {2022} }

You can reach out to me using the contact information on my website. If you want to contribute, feel free to open a pull request directly if you know how to/are comfortable doing that.

Owner

  • Name: Aritra Ghosh
  • Login: aritraghsh09
  • Kind: user
  • Location: New Haven, CT
  • Company: @YaleUniversity

Astrophysics Ph.D. Candidate @YaleUniversity. I use machine learning and large surveys to investigate the evolution of galaxies.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "You are encouraged to cite this repository to prmarily make others aware of its existence"
authors:
- family-names: "Ghosh"
  given-names: "Aritra"
  orcid: "https://orcid.org/0000-0002-2525-9647"
title: "pdfLaTeX Bengali"
version: 0.1
doi: 10.5281/zenodo.6780690
date-released: 2022-06-29
url: "https://github.com/aritraghsh09/pdflatex_bengali"

GitHub Events

Total
  • Watch event: 3
  • Push event: 3
  • Pull request event: 4
  • Create event: 2
Last Year
  • Watch event: 3
  • Push event: 3
  • Pull request event: 4
  • Create event: 2