<newsletter:website> Place images on a minipage
Colomban Wendling
git-noreply at xxxxx
Tue Aug 23 22:03:10 UTC 2011
Updating branch refs/heads/website
to f1901c86ee14dc49063c3b68d7e8cb1e02df8a33 (commit)
from 45faa66a66cced087fc0b46ef45a78333b12cd5d (commit)
commit f1901c86ee14dc49063c3b68d7e8cb1e02df8a33
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Thu May 26 18:56:11 2011 +0200
Place images on a minipage
Because it looks better to be.
rst2latex.sed | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rst2latex.sed b/rst2latex.sed
index 6509a5f..ebee787 100644
--- a/rst2latex.sed
+++ b/rst2latex.sed
@@ -12,4 +12,4 @@
# center images and reduce them to something moderated fitting the page
# also force an empty line before: fixes placement after \paragraph and with previous text
-s/(.*\\includegraphics)(.*)/~\\\\\\centerline{\1[width=\\textwidth,height=0.30\\textheight,keepaspectratio=true]\2}/
+s/(.*\\includegraphics)(.*)/\\begin{center}\\begin{minipage}[c]{\\linewidth}\\begin{center}\1[width=\\textwidth,height=0.25\\textheight,keepaspectratio=true]\2\\end{center}\\end{minipage}\\end{center}/
More information about the Newsletter-Commits
mailing list