[cstex] drobne chyby pri pouzit casti kodu newspaper.sty priamo v tex subore

Zdenek Wagner zdenek.wagner at gmail.com
Fri Feb 8 15:43:04 CET 2013


2013/2/8 peter knezel <peter.knezel at gmail.com>:
> Zdravim,
>
> snazim sa pouzit cast kodu newspaper.sty priamo v tex dokumente,
> ale vyskytli sa mi nasledujuce chyby:
>
> a)po spusteni prikazu v cmd (windows xp, texlive 2012 z usb
> kluca)f:\texlive\bin\win32\pdflatex.exe ex2.tex
> dostanem chybu a program pokracuje az po stlaceni Enter:
>
> ) (f:/texlive/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
>
> ! LaTeX Error: Option clash for package color.
>
Nektery z balicku jiz nacetl color s jinymi parametry. zkuste nacist
\usepackage[...]{color} hned jako prvni. Pokud to nepomuze, musite
vyzkoumat, ktere balicky volaji \RequirePackage[...]{color}, a vsechny
options pripsat k tem svym. Pokud se nacita balicek jiz jednou nacteny
a pozadujete option, ktera nebyla zadana pri prvnim natazeni, nahlasi
se option clash.

> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...
>
> l.17 \definecolor
>                  {light-gray}{gray}{0.9} % Defines the color we're using for...
>
> ?
>
>
> b) nadpis nie je vycentrovany ale posunuty doprava
> c) vodorovna ciara za
> \floweroneleft\floweroneright\floweroneleft\floweroneright je o nieco
> kratsia ako ciara nad nimi a
> neviem, cim je to sposobene
> d) \fcolorbox{black}{red} mam posunuty a vycnieva mi na pravej strane
>
> Mohol by mi s tym niekto pomoct?
>
> Dakujem Vam za pomoc.
>
>
> KOD:
> =====
> \documentclass{article}
>
>
> \usepackage{newspaper}
> \date{\today}
> \currentvolume{1}
> \currentissue{1}
> \usepackage{times}
> \usepackage{graphicx}
> \usepackage{multicol}
> \usepackage[utf8]{inputenc}
> \usepackage{fourier-orns}
>
> \usepackage{picinpar}
> \usepackage{wrapfig} % Allows figures to go on the side of the page
> with text wrapping around them
> \usepackage[usenames,dvipsnames]{color} % An easy way to get shaded boxes
> \definecolor{light-gray}{gray}{0.9} % Defines the color we're using
> for shaded boxes
>
>
> %uasage of picinpar:
> %\begin{window}[1,l,\includegraphics{},caption]xxxxx\end{window}
>
> %%%%%%%%%  Front matter   %%%%%%%%%%
>
> \begin{document}
> %---Note: next 3 lines are original ones - commented ouut and tried to use parts
> %---from newspaper2.sty directly here
> %\maketitle
> %{\Huge
> %\hrulefill\hspace{0.2cm}
> \floweroneleft\floweroneright\floweroneleft\floweroneright
> \hspace{0.2cm} \hrulefill}
>
> %--------------------
> \thispagestyle{empty}
> \begin{center}
> {\setlength\fboxsep{3mm}\raisebox{12pt}{\framebox[1.2\width]{\parbox[c]{1.15in}{\begin{center}\small
> ``Everything about us.'' \end{center}}}}}\hfill%
> \font\g=ygoth scaled 6000
> \font\f=yfrak scaled 6000
> \g K\f\accent19\g a H\f\accent19 \g\char16 ra
> \raisebox{12pt}{\textbf{\footnotesize K\'ahira}}\\
> \vspace*{0.1in}
> %%%\rule[0pt]{\textwidth}{0.5pt}\\
> \color{green}\rule[0pt]{\textwidth}{0.5pt}\\
> \color{black}
> {\small VOL.\MakeUppercase{\roman{volume}}\ldots No.\arabic{issue}}
> \hfill \MakeUppercase{\small\it\@08-Feb-2013} \hfill
> {\small\MakeUppercase{\@Free}}\\
> \rule[6pt]{\textwidth}{1.2pt}
> \end{center}
> {\Huge
> \hrulefill\hspace{0.2cm}
> \floweroneleft\floweroneright\floweroneleft\floweroneright
> \hspace{0.2cm} \hrulefill}
> \pagestyle{plain}
> %--------------------
> \normalfont
>
>
>
> %\begin{center}
> \fcolorbox{black}{red}{
> \begin{minipage}[t]{0.977\textwidth}
> text: the texwidth is =\the\textwidth
> \end{minipage}
> }
> %\end{center}
>
> \begin{wrapfigure}{r}{0.5\textwidth}
>   \begin{center}
>     \includegraphics[width=0.48\textwidth]{texlogo.jpg}
>   \end{center}
>
>   \caption{Lorem ipsum}
> \end{wrapfigure}
>
> ...just started
> \end{document}
> ====
>
>
> Peter Knezel
> _______________________________________________
> csTeX mailing list
> csTeX at cs.felk.cvut.cz
> http://lists.felk.cvut.cz/mailman/listinfo/cstex



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz




More information about the csTeX mailing list