AI & Technology
How to translate CSV data safelyTo translate CSV data safely, select the columns that contain human-readable text, keep identifiers and numeric fields u…
Amanda Lee
Translate the sentences people read in a .tex file, while keeping the instructions that build the document intact. Start with a copy of the complete project, mark the text that may change, and compile both versions before reviewing their PDFs. This is source translation: converting LaTeX syntax to another format or translating text extracted from a rendered PDF is a different task. For a paper you must edit again, retain the source project as the working document.
Translate paragraphs, headings, footnotes and captions when they contain human language. A command argument is not automatically protected: the words inside \section{Methods} or \caption{Experimental setup} are visible prose. By contrast, keep command names, braces, environment names and options intact unless a knowledgeable editor has approved a configuration change. LaTeX combines text with commands whose arguments can be enclosed in braces; those braces do not tell you whether the contents are prose or an identifier. Decide from the command's purpose. Also preserve escape sequences: a literal percent sign in prose may need \%, while an unescaped % begins a comment. LearnLaTeX.
Keep \label{sec:method}, \ref{sec:method} and \cite{Smith2024} unchanged. These are matching keys, even if an English word appears in them. The nearby words “see section” may change; the reference key should not. Preserve math such as E=mc^2, variable names, URLs, file paths, \input targets and \includegraphics filenames. Citation notes can contain prose, so inspect optional arguments instead of freezing every citation command wholesale. Custom macros need human judgment: an argument might be a printed term, a path or a programmatic switch. Read the definition and its use before deciding. If a macro prints the same phrase throughout the paper, review that definition once and check every resulting occurrence. LearnLaTeX.
The following English and French documents are format examples, not tested ForgeFile output. They change the section title, sentence and caption but keep the equation and reference key. The caption has no external image dependency because the figure uses a simple framed placeholder. Compile each complete document twice to resolve its section reference. ASCII TeX accent commands keep this example independent of a Unicode font setup; they are not a recommendation for every language. In your own project, compare the actual changes rather than assuming that all text between braces should be translated.
English source: format example
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\section{Method}
\label{sec:method}
We use the relation
\begin{equation}
E=mc^2
\end{equation}
See section~\ref{sec:method}.
\begin{figure}[ht]
\centering
\fbox{\rule{0pt}{1cm}\rule{2cm}{0pt}}
\caption{Experimental setup}
\end{figure}
\end{document}French translation: format example
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\section{M\'ethode}
\label{sec:method}
Nous utilisons la relation
\begin{equation}
E=mc^2
\end{equation}
Voir la section~\ref{sec:method}.
\begin{figure}[ht]
\centering
\fbox{\rule{0pt}{1cm}\rule{2cm}{0pt}}
\caption{Dispositif exp\'erimental}
\end{figure}
\end{document}English source: format example · French translation: format example
In this teaching example, someone translated the identifier in the label but left the reference unchanged. The PDF may show ?? instead of a section number. Restore sec:method in the label, translate the visible section heading, and compile twice. Check the log and the resulting section number; merely hiding the warning does not fix the link.
\label{sec:methode}
Voir la section~\ref{sec:method}.\label{sec:method}
Voir la section~\ref{sec:method}.Compile the original before changing prose, and retain its PDF and log as a baseline. Collect included .tex files, images, .bib databases, local .sty and .cls files, plus the engine and build instructions. A standalone chapter may depend on definitions in the main file; sending that chapter alone can hide the reason a command fails. Keep the directory structure and filename case. LaTeX citation workflows can require BibTeX or Biber and additional compilation passes, so repeat the project's existing build sequence. Do not translate bibliographic identifiers or rewrite published titles just to match the surrounding language; agree on any bibliography changes with the author. LearnLaTeX.
First compile the translation with the same engine and dependencies as the original. A new script, font or writing direction may require a reviewed change to the language or engine configuration; address that explicitly rather than changing engines to silence an unexplained error. The LaTeX Project documentation links to font selection, font encodings and language resources. Resolve missing references and citations, then examine overfull-box warnings and the pages they concern. Open the PDF and check headings, captions, table cells, line breaks and mathematical context. A successful build proves that the source can compile, not that the translation preserves meaning. Have a fluent subject reader check terminology, qualifications, units and negation against the original before accepting the result. LaTeX Project.
Review the available options against your source project, then compile and check the result yourself.
View LaTeX translation
AI & Technology
How to translate CSV data safelyTo translate CSV data safely, select the columns that contain human-readable text, keep identifiers and numeric fields u…
Amanda Lee
AI & Technology
Translate SRT subtitles and verify timing in playbackTranslate the subtitle text while preserving cue numbers and timestamp syntax, then watch it with the video. Unchanged t…
Amanda Lee