R S Ananda Murthy wrote:

What I want is something like this:

-------------
bla bla bla |
---------------------------------------------------

Here bla bla bla should be in white and the the box surrounding it should be filled with black. Then, a rule in black should drawn aligned exactly with the bottom of the box till the right margin of the page.

see example, view it with ctrl-T (PostScript

Herbert
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\usepackage{pstricks}
\newsavebox\cBox
\def\writeBox#1{%
  \sbox\cBox{\color{white}\textbf{#1}}
  \noindent%
  \begin{pspicture}(\linewidth,\ht\cBox)
    \psframe[fillcolor=black,fillstyle=solid](1.2\wd\cBox,1.2\ht\cBox)
    \rput(.6\wd\cBox,.6\ht\cBox){\usebox\cBox}
    \psline(\linewidth,0)
  \end{pspicture}%
}
\end_preamble
\language ngerman
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\paperwidth 17cm
\paperheight 22cm
\leftmargin 1.2cm
\topmargin 1.4cm
\rightmargin 1.7cm
\bottommargin 1.4cm
\headsep 1cm
\secnumdepth 4
\tocdepth 4
\paragraph_separation skip
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle default

\layout Standard

first one
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
writeBox{
\end_inset 

blah blah blah
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Standard

Second one
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
writeBox{
\end_inset 

some text for
\newline 
the box
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\the_end

Reply via email to