Questions tagged [debugging]

is about finding the cause of errors or wrong results in (La)TeX code/documents using a methodical approach.

Filter by
Sorted by
Tagged with
0
votes
0answers
36 views

How can I fix overfull \hbox problem in biblatex? [duplicate]

The errors aren't creating any problem in my desired output, but what does it mean? How can I fix it? I will share my tex file if needed.
0
votes
0answers
28 views

How do I know whether my LaTeX file has errors?

I have changed the settings in TeXShop so that the console appears only when there are errors. However, I always pops up. How can I identify the number of errors I have? MWE: \documentclass[12pt,...
0
votes
1answer
13 views

Error with tabular* (Underfull \hbox (badness 10000))

I get an error when compiling a tabular* environment. The error I get is: Underfull \hbox (badness 10000) in alignment at lines 3--5 [] Overfull \hbox (17.62482pt too wide) in paragraph at lines ...
0
votes
1answer
32 views

problem with \mathaccent when \usepackage{hyperref} is loaded

Here is a MWE. \documentclass[a4,12pt]{report} \usepackage{amssymb} \usepackage{amsmath} \renewcommand{\.}[1]{\ensuremath{\mathrm{#1}}} \newcommand{\+}[1]{\ensuremath{\mathbf{#1}}} \newcommand{\ud}{...
1
vote
1answer
80 views

I've a 12 in my first page but I don't know why

I have a problem to solve because I read three time my code \documentclass{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{graphicx} \...
2
votes
0answers
36 views

How can I tell how big a minipage is?

I'm debugging a document layout that uses a minipage, and I've seen somewhere where you can turn on an option to draw rectangles around the various boxes for debugging. However, I tried searching and ...
0
votes
1answer
44 views

How to include an external code file?

I have the following file structure: File |-urlaubsfahrt.py |-Test |-test.tex And the following tex file: \documentclass[a4paper,10pt]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8x]{...
6
votes
1answer
87 views

Debugging of expl3 code

I've been programming quite a bit in expl3 for the last weeks, and while I really like the expressiveness of the provided API, what often is incredibly painful is debugging larger programs. In many ...
4
votes
0answers
97 views

Logic quantifiers displayed wrong when using newpxmath

When using the package newpxmath, the quantifiers \foralland \exists are displayed as \hslash and \hbar, respectively. See the following MWE: \documentclass{article} \usepackage[T1]{fontenc} \...
2
votes
1answer
93 views

Convert XeLaTeX to ePub

Hi all, I have a XeLaTeX file which once compiled gives that kind of pdf page : What I need is to have from the tex file an ePub format instead of the pdf one. So before posting all this message, ...
2
votes
1answer
45 views

What is wrong with my plot?

My plot as shown below is not reflecting the upper cap surface exactly as I have defined it (I simply negated the z-ordinate of the parametric equations) Is this some kind of numerical bug? \...
0
votes
1answer
51 views

\ref + \inaccessible : ideas to help debug a document?

I have a error in a document and I'm unable to debug it. The errors At the second compilation of my document, the command \ref{} raises the error Missing control sequence inserted \...
3
votes
1answer
75 views

Change in everypage package behavior (which hasn't been revised since 2007)

The everypage package was last changed in June 2007 (https://www.ctan.org/pkg/everypage). And yet, in the last few months, since I upgraded my LaTeX installation, it behaves differently. The only ...
0
votes
0answers
69 views

Biber error on Mac - locale and bibtex subsystem issues [duplicate]

Biber runs with this warning: Running `Biber' on `citation_issues' with ``biber citation_issues'' perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: ...
0
votes
1answer
60 views

How can I more efficently debug “Missing character” errors?

I am working on a rather long paper with a ton of inline math. I have a ton of "Missing character: There is no � in font pplr7t!" errors upon compiling, and I understand that using characters no ...
0
votes
1answer
51 views

Debug: how to fix this “missing delimiter” error

I am using an example-code for my CV. The code here is really simple, I acctually didn't use any "\left", but still getting this error of "missing \right", along with the error "missing delimiter" and ...
1
vote
1answer
68 views

LYX debugging does not allow going to error in document

Lyx produces an error message when compiling, but I cannot find where the error is in the document. When hovering over the errors it says clicking it would take me to the error in the document but it'...
1
vote
1answer
80 views

Included graphics in TiKZ with XeLaTeX get displaced

I have a problem with \includegraphics within TikZ with XeLaTeX, namely that the images get displaced. This is similar to the problem described in this question, but the symptoms are different. ...
2
votes
1answer
54 views

Workflow for patching and testing expl3 modules

Say I want to write a patch for one or some of the expl3 modules. As far as I can see, to test the patch I have to do the following: Edit the module's .dtx file; Run l3.ins to compile (beside others) ...
8
votes
0answers
128 views

Proper usage of otherkeywords option in listings

I'm trying to understand how listings' otherkeywords option really works. The documentation says about it: Defines keywords that contain other characters, or start with digits. Each given 'keyword' ...
3
votes
1answer
65 views

Why can't this MetaPost drawing be placed more than once in ConTeXt?

I used the code at How to conditionally draw parts of a MetaPost drawing in ConTeXt? to display a crossword puzzle. The code works great, until I try to display another crossword puzzle, at a later ...
3
votes
1answer
102 views

How to debug “Inconsistent local/global assignment” in l3seq (expl3)?

I'm trying to debug an expl3 code that usesl3seq and seq_gput_right. By adding the enable-debug and reviewing the code I get the error: ! LaTeX3 Error: Inconsistent local / global assignment That ...
1
vote
0answers
32 views

`\show` for macro arguments

For debugging purposes, I want to write to the log what is actually passed to a macro as argument. A naive \newcommand\test[1]{\show#1} obviously doesn't do the job. So how can I printout a list of ...
0
votes
1answer
119 views

Why do I keep getting a “missing \begin{document}” error?

Sorry about the awful formatting, this is a screenshot from my mobile. I am an absolute beginner when it comes to Latex and I just can't understand why it keeps giving me such an error when I clearly ...
2
votes
1answer
74 views

How to display string variable without hanging texworks

I was getting unexpected results storing a parameter into a string variable, and added the statement "\str_show:N \l_tmpa_str" to produce debugging output. Texworks treats the output as an error. My ...
0
votes
1answer
42 views

Debugging space in badges

I would like to create badges in Latex. I want to place the badges on the paper next to each other, so I have to cut the paper only once! I have the following code: \documentclass[a4paper,12pt]{...
1
vote
1answer
40 views

Text not wrapping on column boundary

I am trying to render a LaTeX project and the words are spilling over the column boundary. What could be the reason for this? I thought that the class library took care of these issues. For example: ...
2
votes
1answer
62 views

Can't Find what's causing the error in this code, trying to insert a figure

\documentclass[12pt]{article} \usepackage{cite} \usepackage[UKenglish]{babel} \usepackage{fixltx2e} \usepackage{hyperref} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{chngcntr} \...
0
votes
1answer
80 views

Gibberish string prepended to deleted text in the PDF obtained by compiling 'diff' file generated by latexdiff

I am using latexdiff for marking up corrections requested by the examiners to my PhD thesis. I have a strange issue with this. Upon compiling the diff.tex file, I get a specific string 4.0pt=-.55ex ...
2
votes
0answers
24 views

Possible bug in flexsym

From this answer we find a solution to use prime in text mode, via \textprime from flexisym package. The problem is that the package has a problem with amsmath, since it makes \dots not be aligned ...
3
votes
2answers
65 views

Warning if footnote text appears to early

I am currently finishing a book project, and there it sometimes happens that the text of the footnote appears a page too early, meaning not on the same page as the footnote reference but one before ...
1
vote
1answer
82 views

Extra vertical space at end of last column when loading adjustbox (only luatex)

I have noticed some odd extra vertical when placing boxes in a twocolumn layout: \documentclass[a5paper]{article} \usepackage{calc} % issue only happens with adjustbox loaded \usepackage{adjustbox} ...
1
vote
0answers
197 views

Cryptic tikz error - 'pgfpmth@float@max' [closed]

I have a tikz chart that won't build. When I check the log file I find Package PGF Math error: Could not parse input 'pgfpmth@float@max' as a floating point number, sorry. The unreadable part ...
1
vote
0answers
273 views

Missing $ inserted with tikzpicture [closed]

Forgive me if I breach ettiquite here, it's been a while... A couple of years ago I wrote two papers as part of my PhD research and submitted them to a journal...they were each about 20 pages long. ...
5
votes
2answers
181 views

The “max” function on Tikz being annoying, help?

I used Tikz to chart the following function. This is fine, except that I want the function to equal 0 instead of negative values. So I tried using "max(0,f(x))", where f(x) is my function (specified ...
0
votes
1answer
81 views

equivalent of showframe on generic boxes (for debugging)

I have done a lot of searching but cannot figure out how to visualized the box that a piece of content falls into without shifting the content. How do you debug? Note: How can I visualize boxes? ...
1
vote
0answers
112 views

ACMart documentclass creates a vertical space at the end of the second column of the first page

When using \documentclass[sigconf,letter]{acmart} I noticed that without regard for the text (I tried different nudges), latex always leaves a space of a couple line-spaces on the end of the right ...
3
votes
1answer
281 views

Debugging - spacing in math mode

I was trying to do some debugging in math mode related to spacing. More specific, I wanted to create some vertical rulers to check for discrepancies in horizontal alignment in math mode. With this ...
2
votes
1answer
1k views

Compilation error: “! Argument of ” has an extra }"

My TeX document gives me the error: ("C:\Program Files\MiKTeX 2.9\tex\latex\base\ulasy.fd") ! Argument of " has an extra }. \par l.32 } Can anyone tell me what's wrong? This is my code: \...
9
votes
3answers
154 views

Stacking thick bars below a symbol

I am using the following commands to place an arbitrary number of specialized, thick bars (\xbar) below a letter. \documentclass[prb,preprint]{revtex4-1} \usepackage{stackengine} \stackMath \...
1
vote
0answers
100 views

`pstricks` package preventing compilation [closed]

Today I updated to the latest version of MiKTeX (2.9.6703, I was previously using an older version of MiKTeX 2.9) and now the pstricks package entirely prevents me from compiling a document when ...
1
vote
1answer
124 views

Collision between `siunitx`, `cellspace` and the letters 'd' and 'e'

The following code fails to compile. It can be made to compile by any of the following changes Removing \usepackage{siunitx} Removing the S from from the tabular column specifiers Replacing the d in ...
1
vote
0answers
106 views

Chasing a non-deterministic bug in LaTeX

I have a latex file that when processed repeated times (like a thousand times) -- in a very small number of the runs (1 or 2) xelatex will drop a very specific character \emptyset from the PDF file, ...
2
votes
1answer
30 views

Force line return with \message

I am trying to use \message to debug my code; in particular, to print information to the console. For some reason it is not adding line returns after each invocation (see example below). How can I ...
0
votes
1answer
40 views

Error message in align environment not showing line number

Is it possible to get more specific information such as the line number in case of an error in an align* environment? It is very annoying if you have to manually pinpoint an error in a 10 line align* ...
1
vote
1answer
135 views

Beamer won't let me add an algorithm environment

I am writing a beamer presentation and I keep trying to add an algorithm to it with no success. I have: \begin{frame}{Proposed Solutions}{Curve Projection} \begin{block}{} Ellipses are implicit ...
5
votes
1answer
524 views

How to debug BibTeX?

     How do I debug BibTeX code? I would like to know how to: step through execution, step into and out of function calls, set breakpoints, visualize the stack, watch ...
0
votes
1answer
5k views

Overfull \hbox (124.69516pt too wide) in paragraph in a table

I'm making a table with the following code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \title{Answer} \author{That's me} \date{March 2018} \setlength{\parindent}{...
1
vote
0answers
610 views

Command \itab overlapping

I'm trying to edit a CV Template to my own specifications. However, I am having some weird behavior with command \itab. The section in question: \begin{rSection}{Technologies} \itab{\textbf{...
0
votes
0answers
79 views

Why does this produce “missing \endcsname” error? [duplicate]

I need to dynamically create the name of a macro, where part of the name is based on the argument which needs to be capitalized beforehand. The following MWE illustrates my intention: \documentclass{...

1
2 3 4 5
7