latex3 / babel

The babel system for LaTeX, LuaLaTeX and XeLaTeX
LaTeX Project Public License v1.3c
126 stars 34 forks source link

numbers instead of accents in spanish "capítulo" #115

Closed rexmalebka closed 3 years ago

rexmalebka commented 3 years ago

Hello I'm inputing files from a  sections directory, but Ii'm having issues rendering some accents of input files, display as numbers instead of accents or Capítulo word

\section{Algoritmicidad ideas preliminares}

¿Qué significa lo experimental en el contexto de los algoritmos?


- headers of  `entrypoint.tex`:
```latex
\documentclass[12pt, spanish, oneside]{book} %twocolumn
\usepackage[spanish]{babel}
\selectlanguage{spanish}
\usepackage[utf8]{inputenc}

%\usepackage{minted} %para introducir codigo
\usepackage{    }% subsubsecciones
\usepackage{hyperref}
\usepackage{float} % Allows putting an [H] in \begin{figure} to specify the exact location of the figure
\setcounter{secnumdepth}{4}
\usepackage{mdwlist}
\usepackage{natbib}
\usepackage{bibentry}
\nobibliography*
\usepackage{geometry} % Required to change the page size to A4
\geometry{
    %paper=a4paper, % Change to letterpaper for US letter
    inner=2cm, % Inner margin
    outer=2cm, % Outer margin
    bindingoffset=.5cm, % Binding offset
    top=2.5cm, % Top margin
    bottom=2.5cm, % Bottom margin
    %showframe, % Uncomment to show how the type block is set on the page
}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{tikz} % para iteraciones
\usepackage{xstring}
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
%\fancyfoot[LO,RE]{User's Guide \copyright\ Copyright Information}
\fancyhead[RE]{\sffamily\nouppercase{\rightmark}}
\fancyhead[LO]{\sffamily\nouppercase{\leftmark}}
\renewcommand{\headrulewidth}{0.1pt}

%autor

%Interlineado
\renewcommand{\baselinestretch}{1.2}

%Para sangria
\setlength{\parindent}{2em}

%Para parrafos
\setlength{\parskip}{0pt}

%Para viudas y huerfanas
\clubpenalty=10000
\widowpenalty=10000

%para imagenes
\usepackage{graphicx}

\title{Propuesta inicial}  
\graphicspath{ {./images/} } % path de imagenes
\begin{document}

\input{sections/introduccion}

image image image

rexmalebka commented 3 years ago

nevermind, found the problem

someone named the variable used in the foreach as \ithat it was later used to replace í just solved it renaming the variable to something like \k


% lee las secciones desde una carpeta y los incluye en orden numérico
\foreach \k in {0, ...,99} {% chktex 11 chktex 1  chktex 26
    \edef\FileName{./sections/subCap\k.tex}%     The % here are necessary to eliminate any
    \IfFileExists{\FileName}{%  spurious spaces that may get inserted
\input{\FileName}%
\FileName
    }
}
```