-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accented characters + hyphenation + \usepackage[T1]{fontenc} = parsing error #198
Comments
I confirm I also get the error:
|
Interestingly, for me the problem is not necessely solved by commenting the fontenc package. This MWE does not work:
Instead, this works just fine:
The difference is that in the first one (that fails) we have: |
I think it is somehow related to hyphenation when there are accented words in the line, that's why it works in the second case and not in the first. Without accented characters in the line, I think it will always work fine. |
It seems to be correct. For instance, by wrapping the broken example into an mbox, |
I might be because pdflatex writes non-utf8 characters to the terminal? (See MiKTeX/miktex#581.) |
Yes, when specifying |
Hmm... Reporting an issue to Github does not seem very conclusive so far. I use TextMate daily and this is becoming a hassle. Maybe I should try other means of communication. What is the best way of reporting issues to TextMate developer(s)? |
In my opinion opening an issue here is the best way 👍. The problem is that I usually do not work on the bundle (as actively) as I should anymore. I do have a “real” day job and finding time and especially motivation to work on the bundle is kind of hard for me at the moment. Sorry for the lackluster answer :(. |
Ok I understand, thanks for your answer. I guess I'll be patient and hope for the best! |
Having the same problem (which I mentioned in another thread) so I was looking further. It does not seem to be an issue with Latex. If I run the command inside textmate I can see that textmate is trying to execute
If I am executing this in terminal I do not get an error message at all. If I runt his inside Textmate I get
|
Made some research and I am a little bit closer. Textmate/LatexBundle invokes in texmate.py (around line 1054) the command |
OK, I found the problem (but not a solution yet). There is a text written in LaTeX. This text contains a footnote that results in an overbox. LaTeX now outputs the following message |
OK, I now have a solution. This is a bad workaround for someone who simply wanted a quick-and-dirty solution but I do not know enough python to understand what is really going on. Since the issue has nothing to do with LaTeX itself but with the interaction between the latex output and the files that are shown in TextMate I decided to ignore/delete/discard those messages that produce the problem. They still can be read in the logfile. Then everything goes through. What I did is the following. Open parsing.py, it can be found in |
i can confirm that this change will work
|
Sorry for the super late response and thank you for the very well written bug report 👍. As far as I can tell the problem was fixed in the latest version of the Bundle in the repository. At least I was not able to reproduce the problem using the steps provided in the first post. Unfortunately, the Bundle index of TextMate (“Settings” → “Bundles”) seems to still contain an old version of the LaTeX Bundle (from April). You should be able to update the Bundle using the steps provided in the Wiki. For more advanced user we also provide steps to update the bundle using Git. In both cases the modified bundle should be updated again as soon as Michael (Bundle maintainer) or Allan (TextMate creator) update the Bundle index. |
Sounds good, but I get an error message "check_open“ kann nicht geöffnet werden, da der Entwickler nicht verifiziert werden kann." (cannot be opened because developer not modified?). I know this issue using simple programs where I have to use the right mouse button instead of clicking directly, but how I am resolving this? |
I might solved it by myself. Can someone check Nr 11. at https://github.com/textmate/latex.tmbundle/wiki/FAQ |
Thank you for adding the explanation 👍. While the warning window did not show up for me on a macOS VM when I used “Typset & View (PDF)”, I am pretty sure it would pop up for other LaTeX Bundle Commands. I reformulated your text slightly and added some screenshots to the Wiki. Thank you for the help 💖. |
I confirm it solves the issue. Many thanks @sanssecours and @andreasloe ! |
LaTeX compilation in TextMate sometimes throws a parsing error. Others have experienced the same problem, but AFAIK, no solution has been found yet (see https://stackoverflow.com/questions/74837558/pb-latex-compilation-with-textmate-under-os-ventura-13 or #190 for example). This error is not related to LaTeX: the document compiles just fine using the terminal.
Now, I did investigate a bit, and it seems that the culprits may be accented characters, hyphenation and
\usepackage[T1]{fontenc}
(that I thought to be mandatory for correct hyphenation when using accented characters... )Here is a MWE, that typesets fine when the
fontenc
package is not used, but fails when it is.The error:
Alas, I do not know how to investigate any further. Any idea on why this is happening would be most welcome!
P.S. I'm on MacOS 12.6.3, TextMate 2.0.23 with up-to-date bundles, TeXLive 2022 (also up-to-date). Note that I already asked this question on tex.stackexchange (https://tex.stackexchange.com/questions/673756/textmate-fontenc-hyphenation-and-accented-characters-parsing-error), but since this is TextMate-related, this place might be more appropriate.
The text was updated successfully, but these errors were encountered: