General ⇒ Horizontal line?
Horizontal line?
How can I create horizontal lines like this?
What is your opinion of LyX? ______________________________________________
_________________________________________________________________________
_________________________________________________________________________
Do you like Weetabix? ____________________________________________________
_________________________________________________________________________
etc.
I guess it can be done manually with the /line command, but it is there a more automatic way? (e.g. /dolines {x} - where x is the number of lines)
Thanks
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Horizontal line?
you can create those lines "manually" using \hrulefill:
Code: Select all
\documentclass{article}
\begin{document}
text text \hrulefill
\noindent\hrulefill
\noindent\hrulefill
\end{document}
Re: Horizontal line?
\documentclass{article}
\begin{document}
text text (this works fine) \hrulefill
\noindent\hrulefill (this doesn't work)
. \noindent\hrulefill (this works as there is a character before the command)
\end{document}
Horizontal line?
I don't understand what is not working exactly. The code that I posted produces three horizontal rules; I attach the resulting pdf file. Are you getting something different?ck9 wrote:Thanks a lot. Works great however it's not creating the line on blank lines. Any ideas? Inserting a horizontal space doesn't do it either.
\documentclass{article}
\begin{document}
text text (this works fine) \hrulefill
\noindent\hrulefill (this doesn't work)
. \noindent\hrulefill (this works as there is a character before the command)
\end{document}
- Attachments
-
- test.pdf
- (10.74 KiB) Downloaded 1668 times