On Sun, Dec 21, 2025 at 10:14:44PM +0000, Gavin Smith wrote:
> On Sun, Dec 21, 2025 at 10:08:58PM +0000, Gavin Smith wrote:
> > I was testing a Texinfo file that was encoded in Latin-1.  The LateX output
> > didn't work and had error messages.
> > 
> > See the attachments for a simple test case.  I created the LaTeX file
> > latin1.tex with "texi2any --latex latin1.tex".
> > 

This is the result file, it would be better to have the Texinfo input
file?

> 
> Looks like I didn't attach the file properly - trying again.

> \documentclass{book}
> \usepackage{amsfonts}
> \usepackage{amsmath}
> \usepackage[gen]{eurosym}
> \usepackage{textcomp}
> \usepackage{graphicx}
> \usepackage{etoolbox}
> \usepackage{titleps}
> \usepackage[latin1]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage{float}
> % use hidelinks to remove boxes around links to be similar to Texinfo TeX
> \usepackage[hidelinks]{hyperref}
> 
> \makeatletter
> \newcommand{\Texinfothechapterheading}{}
> \newtitlemark{\Texinfothechapterheading}%
> \newcommand{\Texinfoheadingchaptername}{\chaptername}
> \newtitlemark{\Texinfoheadingchaptername}%
> \newcommand{\Texinfosettitle}{No Title}%
> 
> \newcommand{\Texinfounnumberedchapter}[1]{\chapter*{#1}
> \addcontentsline{toc}{chapter}{\protect\textbf{#1}}%
> \renewcommand{\Texinfothechapterheading}{}%
> \chaptermark{#1}%
> }%
> 
> \newcommand{\Texinfounnumberedpart}[1]{\part*{#1}
> \addcontentsline{toc}{part}{\protect\textbf{#1}}%
> }%
> 
> \newcommand{\Texinfounnumberedsection}[1]{\section*{#1}
> \addcontentsline{toc}{section}{\protect\textbf{#1}}%
> \sectionmark{#1}%
> }%
> 
> \newcommand{\Texinfounnumberedsubsection}[1]{\subsection*{#1}
> \addcontentsline{toc}{subsection}{\protect\textbf{#1}}%
> }%
> 
> \newcommand{\Texinfounnumberedsubsubsection}[1]{\subsubsection*{#1}
> \addcontentsline{toc}{subsubsection}{\protect\textbf{#1}}%
> }%
> 
> \newcommand{\Texinfochapter}[1]{\chapter{#1}
> \renewcommand{\Texinfothechapterheading}{\Texinfoheadingchaptername{} 
> \thechapter{} }%
> }%
> 
> % redefine the \mainmatter command such that it does not clear page
> % as if in double page
> \renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
> \newenvironment{Texinfopreformatted}{%
>   \par\GNUTobeylines\obeyspaces\frenchspacing\parskip=\z@\parindent=\z@}{}
> {\catcode`\^^M=13 \gdef\GNUTobeylines{\catcode`\^^M=13 \def^^M{\null\par}}}
> \newenvironment{Texinfoindented}{\begin{list}{}{}\item\relax}{\end{list}}
> 
> % used for substitutions in commands
> \newcommand{\Texinfoplaceholder}[1]{}
> 
> \newpagestyle{single}{\sethead[\Texinfothechapterheading{}\chaptertitle{}][][\thepage]
>                               
> {\Texinfothechapterheading{}\chaptertitle{}}{}{\thepage}}
> 
> % allow line breaking at underscore
> \let\Texinfounderscore\_
> \renewcommand{\_}{\Texinfounderscore\discretionary{}{}{}}
> \makeatother
> % set default for @setchapternewpage
> \makeatletter
> \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\Texinfoplaceholder{setchapternewpage
>  placeholder}\clearpage}{}{}
> \makeatother
> \pagestyle{single}%
> 
> 
> \begin{document}
> \Texinfounnumberedchapter{{Test}}
> \label{anchor:Test}%
> 
> The representable extrema in the `\texttt{i}' and `\texttt{I}' formats
> correspond to Arabic ?39,999.  GNU \texttt{troff} uses `\texttt{w}' and
> `\texttt{z}' to represent 5,000 and 10,000 in Roman numerals, respectively,
> following the convention of AT\&T \texttt{troff}---currently, the
> 
> \end{document}


Reply via email to