Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Can LaTeX be used to make a sheet of blank lines?

I try to create horizontal lines so that students exercise book to write the answer. I can not understand why the following command does not work.

\documentclass[b5paper,svgnames,11pt]{book}

\begin{document}
 \hrulefill{}  \\
 \hrulefill{}  \\
 \hrulefill{}  \\
 \hrulefill{}  \\
\end{document}

Then I writing like this and everything is okay.

\documentclass[b5paper,svgnames,11pt]{book}

\begin{document}
 \phantom{.} \hrulefill{} \smallskip \\
 \phantom{.} \hrulefill{} \smallskip \\
 \phantom{.} \hrulefill{} \smallskip \\
 \phantom{.} \hrulefill{} \smallskip \\
\end{document}

but this does not satisfy me to write a few simple lines one below the other.

share|improve this question

marked as duplicate by lockstep, Kurt, Qrrbrbirlbel, Harish Kumar, Werner Oct 23 '12 at 14:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
Does this question help? –  egreg Oct 23 '12 at 10:40
    
@egreg I think we're pretty close to what I want –  karathan Oct 23 '12 at 10:49
    
If they directly solve your problem, then leave a comment so the question can be closed as duplicate; if the solution you find is substantially different, then you can self-answer; if you aren't able to find a solution, then let us know by adding to your question. –  egreg Oct 23 '12 at 10:52
    
\fillwithlines{2in} does not work for me there is a package for this? I compiled with xelatex –  karathan Oct 23 '12 at 10:55
    
The \fillwithlines is a command of the exam class, so not for general use. Probably my own is better for you; I'll add a complete example with the result. –  egreg Oct 23 '12 at 11:15
show 1 more comment

1 Answer

Try adding \null:

\documentclass[b5paper,svgnames,11pt]{book}
\begin{document}
    \noindent
    \null\hrulefill{}  \\
    \null\hrulefill{}  \\
    \null\hrulefill{}  \\
    \null\hrulefill{}  \\
\end{document}

Gives:

Lines

share|improve this answer
    
thanks this works well but I'm trying to make fillwithlines{1in} to work –  karathan Oct 23 '12 at 11:31
    
@egreg suggested that a good thing but I can not make it work –  karathan Oct 23 '12 at 11:34
add comment

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