[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: www/areas/docs
From: Yuri Chornoivan <yurchor () ukr ! net>
Date: 2013-07-14 9:00:00
Message-ID: E1UyI9w-0006VQ-Ju () scm ! kde ! org
[Download RAW message or body]
SVN commit 1360361 by yurchor:
Use application logos instead of general KDE logo.
The scheme of logo name:
logo+<name of the application>.pdf
The size:
427x427
If the logo will not be found the default KDE logo be used.
M +2 -1 buildpdf.sh
M +18 -1 dblatex-cvs-install/share/dblatex/latex/contrib/kde_title.sty
AM dblatex-cvs-install/share/dblatex/latex/contrib/logookular.pdf
M +4 -4 dblatex-cvs-install/share/dblatex/latex/scripts/runlatex
--- trunk/www/areas/docs/buildpdf.sh #1360360:1360361
@@ -2,11 +2,12 @@
# for debug uncomment, go to the folder and run this script with parameter \
index.docbook #export \
SGML_CATALOG_FILES=/home/docs/docs/development/kdoctools/customization/catalog:/home/d \
ocs/docs/development/kdoctools/customization/catalog.xml:/home/docs/docs/development/kdoctools/docbook/xml-dtd-4.2/docbook.cat
+export PDF_FILE_NAME=$(pwd | awk -F/ '{ print $NF }')
# add -d to command below to keep the /tmp folder, so you can examine the generated \
tex. ~/docs/dblatex-cvs-install/bin/dblatex -b pdftex --style \
kdestyle\
- -o $(pwd | awk -F/ '{ print $NF }').pdf \
+ -o $PDF_FILE_NAME.pdf \
-P latex.output.revhistory=0 -P newtbl.use=1 \
-P imagedata.default.scale=pagebound \
-P literal.width.ignore=1 \
--- trunk/www/areas/docs/dblatex-cvs-install/share/dblatex/latex/contrib/kde_title.sty \
#1360360:1360361 @@ -2,6 +2,23 @@
% *** Page de garde
% ******************************************************************************
+\newread\myinput
+\immediate\write18{echo -n $PDF_FILE_NAME > 'logoname.temp'}
+\openin\myinput=logoname.temp
+\bgroup
+ \endlinechar=-1
+ \read\myinput to \localline
+ \global\let\mylogoname\localline
+\egroup
+\closein\myinput
+\immediate\write18{rm -f -- 'logoname.temp'}
+
+\newcommand{\logoimage}[2]{%
+ \def\testfile{#2}%
+ \IfFileExists{\testfile}%
+ {\includegraphics[#1]{\testfile}}
+ {\includegraphics[#1]{kdelogo}}
+}
\newlength{\oldbaselineskip}
\def\DBKcover{
@@ -21,7 +38,7 @@
\vspace{1cm}
\Large{\textbf{\DBKauthor}}\\
\vspace{2cm}
- \includegraphics[scale=1.6]{kdelogo.pdf}
+ \logoimage{scale=1.6}{logo\mylogoname.pdf}
\end{center}
\vfil
}
--- trunk/www/areas/docs/dblatex-cvs-install/share/dblatex/latex/scripts/runlatex \
#1360360:1360361 @@ -85,7 +85,7 @@
while [ $run -ne 0 ]
do
echo "latex $file"
- $xtex -interaction=batchmode $file
+ $xtex -interaction=batchmode --enable-write18 $file
if [ $? -ne 0 ]; then
echo "*** latex error"
if [ $verbose -ne 0 ]; then
@@ -102,8 +102,8 @@
sz=`cat $basefile.idx|wc -l`
if [ $sz -ne 0 ]; then
makeindex -s $scriptpath/doc.ist $basefile.idx
- $xtex -interaction=batchmode $file
- $xtex -interaction=batchmode $file
+ $xtex -interaction=batchmode --enable-write18 $file
+ $xtex -interaction=batchmode --enable-write18 $file
fi
fi
@@ -112,7 +112,7 @@
$execpost $file
# Run latex again for the final output
- $xtex -interaction=batchmode $file
+ $xtex -interaction=batchmode --enable-write18 $file
fi
# Remove the temporary files
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic