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.

I use the epigraph package to define the following declaration that looks as follows:

\epigraph{This work has appeared in:}{Max Mustermann, How the Euro will crash.}

That looks then as follows

This work has appeared in:
-----------------------------
Max Mustermann, How the Euro will crash.

It does look okay, but I do not like the line in between.

The docu says:

By default, a rule is drawn between the text and source , with the rule thickness being given by the value of \epigraphrule. The value can be changed by using the LaTeX \setlength command. A value of 0pt will eliminate the rule.

UPDATE

I am not too sure where to put this setlength command, e.g.

\setlength{\epigraphrule}{0pt}
\epigraph{This work has appeared in:}{Max Mustermann, How the Euro will crash.}

does not work. I get the error: Missing number, treated as zero.

Any idea how to do that properly?

share|improve this question
    
Welcome! I gather from the question that you're using the epigraph package to generate your epigraphs rather than one of the classes which provide it automatically (e.g., memoir). Would you mind clarifying that in your question for posterity? –  Matthew Leingang Nov 29 '10 at 14:37
    
thanks, i did that –  Heinz Nov 29 '10 at 14:50
add comment

2 Answers

You can use \setlength it this way:

\setlength{\epigraphrule}{0pt}

A complete tiny example, which compiles without error and doesn't show the line:

\documentclass{book}
\usepackage{epigraph}
\setlength{\epigraphrule}{0pt}
\begin{document}
\chapter{Test}
\epigraph{This work has appeared in:}{Max Mustermann, How the Euro will crash.}
text
\end{document}
share|improve this answer
    
Thanks Stefan, I tried to integrate as you mentioned (see above), but still it does not work :(. –  Heinz Nov 29 '10 at 14:48
1  
@Heinz: I added a minimal example. You could test that. Perhaps the problem is somewhere else: try to create a minimal example which raises this error. –  Stefan Kottwitz Nov 29 '10 at 14:57
add comment

Try with

\renewcommand{\epigraphrule}{0pt}

It worked for me :)

share|improve this answer
3  
It might work, but \epigraphrule is a length, so redefining it to be a macro can have unexpected side effects. –  egreg Nov 29 '13 at 12:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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