-
Notifications
You must be signed in to change notification settings - Fork 111
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
log Missing character message from bend decimal angle #700
Comments
Well spotted 👍 Fixed in 36803f7. Meanwhile you can backport the fix using \documentclass[a4paper]{article}
\usepackage{tikz}
\makeatletter
\tikzoption{bend left}[]{%
\def\pgf@temp{#1}%
\ifx\pgf@temp\pgfutil@empty%
\else%
\pgfmathsetmacro\tikz@to@bend{#1}%
\fi%
\let\tikz@to@out=\tikz@to@bend%
\pgfmathsetmacro\tikz@to@in{180-\tikz@to@out}%
\tikz@to@switch@on%
\tikz@to@relativetrue%
}
\makeatother
\begin{document}
\begin{tikzpicture}
\node (A) at (0,0) {A};
\node (B) at (15,0) {B};
\draw[bend left=0.9] (A) to (B);
\end{tikzpicture}
\end{document} |
In LuaTeX you can also make the “Missing character” a hard error, so you don't have to rely on chance to look in the logfile. The following is one single file, but split into three code blocks because GitHub doesn't support mixed syntax highlighting. \documentclass[a4paper]{article}
\usepackage{tikz}
\usepackage{luacode}
\begin{luacode} local function glyph_error(id, char)
local fontname = tex.fontname(tex.fontidentifier(id))
local message = string.format(
"Missing character: There is no %s (U+%04X) in font %s!",
utf.char(char), char, fontname)
tex.error(message)
end
luatexbase.add_to_callback("glyph_not_found", glyph_error, "glyph_error") \end{luacode}
\begin{document}
\begin{tikzpicture}
\node (A) at (0,0) {A};
\node (B) at (15,0) {B};
\draw[bend left=0.9] (A) to (B);
\end{tikzpicture}
\end{document} |
Ah, beaut. |
uhm, but what about Edit: In theory this works for
|
@stefanct The latest code (since v3.1.6a) is different to what you shown, and it seems ok, see pgf/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex Lines 42 to 53 in b79c4c5
An example will better demonstrate your problem. |
In recent Debian packaged PGF 3.1.1, a file
\documentclass[a4paper]{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node (A) at (0,0) {A};
\node (B) at (15,0) {B};
\draw[bend left=0.9] (A) to (B);
\end{tikzpicture}
\end{document}
processed with "latex foo.tex" leaves in foo.log messages
This seems to be the .9 in the bend left. It seems decimals in such angle work correctly, but it could be good if the log was clean to them (or if it hints at anything fishy).
I struck this when some actual mistakes I'd made showed up in the log this way. I had bits like a stray semi in \draw ...; node[at end] ... so the "node" part did not take effect but gave Missing character n etc. Or a harmless bit like \foreach ... { }; where the final ; is unnecessary and likewise showed as Missing character.
The text was updated successfully, but these errors were encountered: