Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

3 views
Skip to first unread message

peter knezel

unread,
Feb 8, 2013, 9:06:06 AM2/8/13
to Czech and Slovak TeX-related mailing list
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.

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

Zdenek Wagner

unread,
Feb 8, 2013, 9:43:04 AM2/8/13
to Czech and Slovak TeX-related mailing list
2013/2/8 peter knezel <peter....@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.
> _______________________________________________
> csTeX mailing list
> cs...@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

peter knezel

unread,
Feb 10, 2013, 4:53:57 AM2/10/13
to Czech and Slovak TeX-related mailing list
Dobry den prajem,

Dakujem za "hint".
Pouzitim
\documentclass[usenames,dvipsnames]{article}
a
%\usepackage[usenames,dvipsnames]{color} % An easy way to get shaded boxes
\usepackage{color}

som odstranil prvu cast chyby.
Nadalej sa vsak trapim s ostatnymi castami kodu...

S pozdravom,

Peter Knezel



peter knezel

unread,
Feb 11, 2013, 6:09:03 AM2/11/13
to Czech and Slovak TeX-related mailing list
Zdravim vsetkych,

okrem bodu

b) nadpis nie je vycentrovany ale posunuty doprava
sa mi podarilo vyriest vsetky ostatne drobnosti, ktore ma trapili.
S pozdravom,

Peter Knezel
0 new messages