LaTeX forum ⇒ XeTeXQuotation with author name witouth breakpages Topic is solved

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
max_mad666
Posts: 12
Joined: Thu Sep 08, 2011 4:04 pm

Quotation with author name witouth breakpages

Postby max_mad666 » Thu Jun 28, 2012 5:37 pm

Hello it's me again ;)

On the web I've find this macro in order to get quotation and autor name. And in addition the autor name will not be cut from the citation if the citation is at the end of a page.

This is the macro.

  1. \def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em
  2. \hbox{}\nobreak\hfil(#1)%
  3. \parfillskip=0pt \finalhyphendemerits=0 \endgraf}}
  4.  
  5. \newsavebox\mybox
  6. \newenvironment{aquote}[1]
  7. {\savebox\mybox{#1}\begin{quotation}}
  8. {\signed{\usebox\mybox}\end{quotation}}


And this is how to use it in a document :

  1. \begin{aquote}{Name Author to near from citation}
  2. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
  3. \end{aquote}
  4.  
  5. \begin{aquote}{Other Name Author}
  6. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
  7. \end{aquote}


What I just wish is to know how to get more space (I have no specific vertical size in cm but I just wish to get more space cuz now its really to near) between the author name and the citation itself. But again witouth cutting the author name from the citation... I've tried to change some number in the macro but it did not work...

P.-S. I m using xelatex that's why I've posted here...
Thank you
Attachments
Capture.PNG
Capture.PNG (70.76 KiB) Viewed 5365 times

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Thu Jun 28, 2012 9:29 pm

Hi,

that \signed macro is almost 1:1 from the TeXbook…

How about this: change \signed to this one
  1. \def\signed#1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em
  2. \hbox{}\nobreak\hfil\raise-3pt\hbox{(#1)}%
  3. \parfillskip=0pt \finalhyphendemerits=0 \endgraf}}

and leave the rest as is was.

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

max_mad666
Posts: 12
Joined: Thu Sep 08, 2011 4:04 pm

Postby max_mad666 » Thu Jun 28, 2012 11:28 pm

@cgnieder Thank you a lot it works like a charm


Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 1 guest