0

This question already has an answer here:

Does anybody know how you can draw a line, that starts very thin and then gets thick to the middle and then thin again? I hope this is clear because I cannot produce a minimal example here. I think this should be possible with tikz but any solution / suggestion would be welcome.

I would like to use it to separate the Author from the title on the titlepage.

marked as duplicate by Werner, Stefan Pinnow, Mico, barbara beeton, Mensch Dec 12 '16 at 21:58

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.

  • You want a swelled rule: look at the manual of the gmp package. There are surely TikZ based methods, too. – egreg Dec 12 '16 at 18:51
  • 4
    Depending on your usage, the following might be a duplicate: PRL style horizontal line in Latex – Werner Dec 12 '16 at 18:53
  • More decorated rules can be found in pgfornament – Ignasi Dec 12 '16 at 19:58
2

Three ways with tikz: using the calligraphy library (for pen like strokes), making a very thin losangle and a very thin ellipse.

\documentclass[tikz]{standalone}
\usetikzlibrary{calligraphy}
\begin{document}
\begin{tikzpicture}
\node[minimum size=5cm]{};
\pen (0,0);
\calligraphy (-1,0) -- (1,0);
\fill (-1,-.25) -- ++(1,.1mm) -- ++(1,-.1mm) -- ++(-1,-.1mm) -- cycle;
\fill (0,-0.5) circle[x radius=1cm, y radius=.1mm];
\end{tikzpicture}
\end{document}

enter image description here

Ridicolous zoom:

enter image description here

  • You should move this answer to the one marked as duplicate – egreg Dec 12 '16 at 20:53
  • @egreg You think so? Is there a "formal" way to do it or just copy/paste/delete? – Guilherme Zanotelli Dec 13 '16 at 7:03

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