{{ message }}

# Enhancement for LaTeX.pool.ltxml #876

Closed
opened this issue Oct 12, 2017 · 2 comments
Closed

# Enhancement for LaTeX.pool.ltxml#876

opened this issue Oct 12, 2017 · 2 comments
Labels
Milestone

### giovanni111 commented Oct 12, 2017

 When processing \documentclass{article} \includeonly{ a } \begin{document} \include{a} \end{document}  the file a.tex is not included. I propose the following change: diff --git a/lib/LaTeXML/Package/LaTeX.pool.ltxml b/lib/LaTeXML/Package/LaTeX.pool.ltxml index 7cffe68..035f70d 100644 --- a/lib/LaTeXML/Package/LaTeX.pool.ltxml +++ b/lib/LaTeXML/Package/LaTeX.pool.ltxml @@ -3006,6 +3006,8 @@ DefPrimitive('\include{}', sub { DefPrimitive('\includeonly{}', sub { my ($stomach,$paths) = @_; $paths = ToString($paths); + $paths =~ s/^\s+//; +$paths =~ s/\s+$//; my$table = LookupValue('including@only'); AssignValue('including@only', $table = {}, 'global') unless$table; map { table{$_} = 1 } split(/,\s*/,$paths);  The text was updated successfully, but these errors were encountered:
added the label Oct 12, 2017

### dginev commented Oct 12, 2017

 Sounds quite reasonable to me! I'm sure it'll be a quick merge when @brucemiller gets a minute. Also feel free to make pull requests if you prefer @giovanni111 , it may be easier than having to paste the diff in by hand. Thanks for another nice find!

### brucemiller commented Oct 22, 2017

 Pretty reasonable, but have to also guard against spaces around the commas. Should work better now. Thanks for the report & suggested patch!
added this to the LaTeXML-0.8.3 milestone Jan 6, 2018