I want something as follows:

enter image description here

I tried it with $\hline$ and some text but getting some errors. I'm almost a beginner in LaTeX.

\usepackage{amsmath, amsfonts, amsthm}

    Problem: \underline{\hspace{30pt}}
        Page \underline{\hspace{30pt}} of \underline{\hspace{30pt}}

Any help is appreciated.

  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – TobiBS
    Jul 25, 2020 at 14:04
  • @TobiBS Added my work. Those packages aren't really used, though
    – VIVID
    Jul 25, 2020 at 14:08
  • This may help u: tex.stackexchange.com/questions/19579/…
    – domperor
    Jul 25, 2020 at 14:09
  • 3
    Do you just want something like Problem: \underline{\hspace{30pt}} ? Jul 25, 2020 at 14:11
  • You can try also with a table.
    – Sebastiano
    Jul 25, 2020 at 15:17

1 Answer 1

\lhead{Problem : \underline{\hspace{30pt}} \\ Page \underline{\hspace{15pt}} of \underline{\hspace{15pt}}}
Problem 01: Evaluate the following integral : $$\int_1^e \left(\ln x\right)^2 dx$$

I used the fancyhdr package to write on the head of the page, and according to @lanThompson comment I used the following \underline{\hspace{30pt}}. enter image description here

As I said, I'm not satisfied with the blank space, meaning I don't know how to make that line, I used only the comment of @lanthompson!

  • Thank you! Could you please add the commands to remove the page number at the bottom? I really need this.
    – VIVID
    Jul 25, 2020 at 15:48
  • @VIVID All that you need to do is to replace \cfoot{\thepage/\pageref{LastPage}} with \cfoot{}
    – user209604
    Jul 25, 2020 at 17:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .