Hi Timo,
> Finally I was able to track the reason to pdflatex producing too many
> errors because it could not handle “ligatures” in the UTF-8 files.
Yeah, LaTeX doesn't want you to use ligatures in the source. It will of
course automatically use them in the output to improve readability. So
whenever you are copying text from a LaTeX-generated PDF file into your
source you run into this problem.
Here is a Python solution [1] that might help with replacing them. Would
it make sense to turn that into a Git pre-commit hook? This would also
give us the opportunity to run additional style checks in the future
(e.g. prevent users from committing files with spaces at the end of a
line etc.). The downside of pre-commit hooks is that they aren't copied
automatically when cloning a repo.
-Martin
[1] https://stackoverflow.com/a/9175406/7583635
--
Martin Konrad
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: konrad at frib.msu.edu
- Replies:
- Re: Document builds on readthedocs (lesson I learned) Timo Korhonen via Core-talk
- Navigate by Date:
- Prev:
Document builds on readthedocs (lesson I learned) Timo Korhonen via Core-talk
- Next:
Re: Document builds on readthedocs (lesson I learned) Timo Korhonen via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
Document builds on readthedocs (lesson I learned) Timo Korhonen via Core-talk
- Next:
Re: Document builds on readthedocs (lesson I learned) Timo Korhonen via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
2025
|