I'm using TeXLive 2016 in ubuntu. I get this message for every line when I run my code:

Underfull \hbox (badness 10000) has occurred while \output is active

and it makes a pdf with size 0 byte.

that's my code.

this code works well without this lines:


what's the problem?


add \hfill before the final }

the \@oddhead macro has to fill the entire page head to the full width of \textwidth your pstricks construct (why pstricks there?) is a fixed width box so you need to add some stretchy white space afterwards.

  • that error solved, but I get this: Segmentation fault (core dumped) ) Error 35584 (driver return code) generating output; – Mohammad Kazemi Apr 29 '17 at 15:40
  • @MohammadKazemi You'll probably need to ask a new question. While you're doing that, I would strongly suggest you put all the relevant code in the question, not in a pastebin link. You'll get more and better answers that way. – Teepeemm Apr 29 '17 at 15:48
  • @MohammadKazemi a segmentation fault is never due to a user error/ No input should ever segfault. It must be a bug in xetex or xdvipdfmx (depending which one crashed) and you should report it to the maintainers. – David Carlisle Apr 29 '17 at 17:07
  • It works on windows! – Mohammad Kazemi Apr 29 '17 at 17:16
  • Explaining \hfill, it is a horizontal stretched space in a line so that the rest gets "pushed" toward the right margin. https://en.wikibooks.org/wiki/LaTeX/Text_Formatting#Stretched_spaces – user Aug 23 '17 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.