This is a question on the internals of the TeX system rather than on how to use it. Every time an undefined control sequence is used in a document, TeX prints the message
where
<code>
is usually an excerpt from the code that contains the actual control sequence that caused the error. Many times, however, it seems TeX cannot give us a precise error messages. It often happens in
beamer
presentations, for example, where all we get is Of course, in this example,
end
is defined, and the problem lies in some piece of code inside the environment. This often happens also with undefined control sequences expanded from complicated macros.I understand that this behavior probably comes from the intricacies of how tokens get expanded in the
frame
environment, but since TeX itself is expanding the tokens, how hard can it be to print the name of the actual undefined control sequence? This could be immensely useful for debugging purposes.So is there a technical reason why TeX does not print which is the control sequence which is actually undefined, or is it like this on purpose?
gigabytesgigabytes
1 Answer
Generally you can find the undefined control sequence if you look in the right place. Here's a simple
beamer
document:And the error it generates:
The undefined control sequence is the last control sequence in the first line of code reported by the error. This is in fact fairly consistent, and if you ask TeX for help on the error (by entering
h
in the console), this is exactly what it tells you:So you can tell the actual offending undefined control sequence, you just need to know where to look. Unfortunately many editing environments hide or otherwise filter the console output, so perhaps this is why it appears not to report the offending command.
This is not to say that all errors are as easy to diagnose in TeX; they're not, because often the line that the error gets noticed is after the line that causes the error. But for undefined control sequences, this is not the case.
I am pro 3rdP but I do switch back and forth from time to time. Using 1stP in Obl was the ONLY way I could control the horse.I tried out the horse in the first day of release.I have yet to mount purchase one since. I have stolen one but that was an emergency get away. First person horse skyrim. The main issue I have with them is not being able to rotate the camera while continuing in your riding direction.I rarly used horses in Obl. But when I did it was in 1stP and it seems that you could continue running forward while panning the camera to the side.Posts: 3390 Joined: Sun Oct 14, 2007 8:28 am.
Alan MunnAlan Munn166k2929 gold badges435435 silver badges721721 bronze badges
Not the answer you're looking for? Browse other questions tagged tex-core or ask your own question.
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Undefined Control Sequence Usetikzlibrary
Sign upHave 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.
Sql server rename login windows 10. Already on GitHub? Sign in to your account
Comments
commented Nov 15, 2017
I'm trying to convert the 2. edition of ProGit (https://git-scm.com/book/en/v2) to PDF, but it fails. |
changed the titleUndefined control sequenceNov 16, 2017
commented Nov 16, 2017
I can reproduce this with current master: And two minimal examples. Put the following two HTML snippets in an epub file (e.g. generate one with pandoc, then open with vim and edit contained html file).
|
changed the titleUndefined control sequence chapterNov 16, 2017
commented Nov 16, 2017
Support for chapters was added in 266e197 |
commented Nov 16, 2017
I don't think any reader should generate level-0 headers. Maybe @mpickering can offer some insight about why it works this way and how it could be fixed? Mar 31, 2016 Page 2 of 2 - Become a God - posted in Skyrim Mod Requests: You know, I know it seems OP but Id like to see a proper mod for becoming a God, and Im talking one with a story, lore, all that, I dont want to just see heres a God item, smite everything I want to see a difficult queatline to earn that power, I want to see effort and Aetherius Magic has not been updated in a long time so its still a. When you're playing Skyrim or the Skyrim Special Edition, you can use Skyrim console commands and codes to cheat to your heart's content. Use console codes to become invincible, fly, or walk. A few things you need to become a 'god' without using command prompts OR mods to increase your crafting skills. 1- PATIENCE LOTS OF IT. 2- smithing 100 ( god damn iron daggers) only take light armor side( left) and upgrade enchanted armor perk. Why light armor? Stam regen perk for. Skyrim how to become a god. Jan 07, 2015 The mod allows you to become a god at the end of the main quest. In the vanilla version of Morrowind, you are only able to destroy the Tonal Enchantments from the heart and sever the Tribunal plus Dagoth Ur from the heart.With my mod, you are able to use the heart to become a god yourself (at the same time you still sever the rest from the heart). Mar 30, 2016 While it is possible for one to become a Daedric Prince, the best way would be the mantle one, but unless you have achieved CHIM your consciousness will be overpowered by the consciousness of the Daedric Prince. |
commented Nov 16, 2017 • edited
edited
I suppose one approach would be to have the HTML/epub reader set some flag in the internal PandocMonad state. This can then be checked (probably in App) and the With this change, we'd change the HTML reader so that instead of changing header levels when it sees the 'chapter' annotation on section, it sets this special flag in the internal PandocMonad state. |
commented Nov 16, 2017 • edited
edited
@adius as a workaround, you could try adding --top-level-division=chapter to your command line.(EDIT: you may also need --base-header-level=2 .) |
added a commit that referenced this issue Nov 18, 2017
HTML reader: ensure we don't produce level 0 headers,
removed priority:highbug labels Nov 18, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment