Set up the paper language
setup_paper_languageConfigures an Overleaf project for Korean or English writing: adds kotex and switches to XeLaTeX for Korean, or confirms no setup for English. Use before Korean text or Unicode errors.
Instructions
Prepare the project for writing in Korean or English. For "ko": adds \usepackage{kotex} to the main file's preamble (if no Korean package is loaded yet) and switches the compiler to XeLaTeX (needs the opt-in web mode; otherwise it says how to do it in Overleaf). For "en": reports that no setup is needed. Run this before writing Korean text, or when compile reports "Unicode character" errors for Korean.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project ID or Overleaf project URL (or project name in web mode). Defaults to OVERLEAF_PROJECT_ID. | |
| language | Yes | Paper language. | |
| main_file | No | Main .tex file. Detected automatically if omitted. |