Re: Import unicode in TeX

Neal Becker <[email protected]>
Newsgroups gmane.editors.lyx.general
Message-ID <CAG3t+pHbEPTojeHMoL7o9stfeVfbBmxu+_4dtY_AUm6TvKtO-w@mail.gmail.com>
On Wed, Oct 29, 2025 at 9:32 AM Jürgen Spitzmüller <[email protected]>
wrote:

> Neal Becker schrieb am 29.10.2025 13:28 (GMT +01:00):
> >> Can you give me an example of the text that gets mangled, so I can try
> >> it here?
>
> Since it does not have concrete hints, tex2lyx assumes latin1 encoding
> here.
>
> You have the following possibilities:
>
> * call tex2lyx with the respective option (tex2lyx -e utf8)
> * use a complete tex file and give an encoding specification:
>
> \documentclass{article}
>
> \usepackage[utf8]{inputenc}
>
> \begin{document}
>
> ...
>
>
> \end{document}
>
>
> Whether tex2lyx should rather assume utf8 as default nowadays is a
> different question.
>
> The tex2lyx source has this to say about it:
>
>         // Always start with ISO-8859-1, (formerly known by its latex name
>         // latin1), since ISO-8859-1 does not cause an iconv error if the
>         // actual encoding is different (bug 7509).
>
>
> Jürgen
>
>
Thanks!  That helps, I prepared a complete .tex file to import,
although the final column of the table did something quite strange

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users
test_table.tex (text/x-tex, 1011 B)
\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{tabularx}

\begin{document}
% Requires in preamble:

\begin{frame}{Summary at a Glance}
\scriptsize
\setlength{\tabcolsep}{4pt}
\renewcommand{\arraystretch}{1.25}

\begin{tabularx}{\linewidth}{l c c c c c}
\toprule
\textbf{Approach} & \textbf{Coverage} & \textbf{Throughput} & \textbf{MIMO} & \textbf{Complexity} & \textbf{Cost}\\
\midrule
Distributed Small Cells     & ★★☆  & ★★★  & ★★★  & High  & $$$ \\
Passive DAS                 & ★★★  & ★★   & ★     & Low   & $$  \\
Active DAS / RF-over-Fiber  & ★★★  & ★★★  & ★★★  & High  & $$$$\\
Leaky Coax (Radiating)      & ★★★★ & ★    & ★     & Low   & $$  \\
Hybrid (Mixed)              & ★★★  & ★★★  & ★★☆  & Med   & $$$ \\
\bottomrule
\end{tabularx}

\vspace{0.6em}
\footnotesize
\textbf{Legend:} ★–★★★ (more is better); Cost: \$ (lower) to \$\$\$\$ (higher).
\end{frame}
\end{document}
test_table.lyx (application/x-lyx, 7.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.