diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex')
67 files changed, 4297 insertions, 941 deletions
diff --git a/Master/texmf-dist/doc/latex/confproc/README b/Master/texmf-dist/doc/latex/confproc/README index 1f30b4fbd9b..126f50dcee6 100644 --- a/Master/texmf-dist/doc/latex/confproc/README +++ b/Master/texmf-dist/doc/latex/confproc/README @@ -1,67 +1,84 @@ The confproc package - ($Date: 2007/10/17 00:00:01 $) + ($Date: 2010/07/24 00:00:01 $) - Copyright (C) 2007 by Vincent Verfaille - <vincent@music.mcgill.ca> + Copyright (C) 2010 by Vincent Verfaille + <[lastname].[packagename]@gmail.com> Purpose: - This is a LaTeX2e package providing a new document-class - for building conference proceedings, mainly based on the - 'hyperref' and 'pdfpages' packages. + Confproc is a LaTeX2e package providing a new document-class together + with various tools (Perl and Unix/bash scripts) for building conference + proceedings, or concatenating any set of PDFs with a table of contents, + index, bookmarks and general bibliography. The LaTeX2e class is mainly + based on the 'pdfpages' package for PDF papers inclusion, and the + 'hyperref' package for creating proper links, bookmarks and general + bibliography back references. It also uses many other packages for fine + tuning the table of contents, bibliography and index of authors. + Current version 0.7 is a major update with key-value option management. + The added value of this class is in the time saved to quickly design + conference proceedings or any collection of PDFs. Files: - confproc.dtx Docstrip archive - --> To generate the doc, run this through LaTeX. - -Generated File: - confproc.ins Batch file, run through LaTeX. - --> Generated by running confproc.dtx through LaTeX. - confproc.drv Driver for documentation. - The file will be generated from confproc.ins - To generate customized documentation, edit this - file and run it through LaTeX. - confproc.cls LaTeX package. - --> Generated by running confproc.ins through LaTeX. - confproc.cfg Configuration file. - --> Generated by running confproc.ins through LaTeX. - confproc.dvi Package documentation. - --> Generated from confproc.drv. - - example.tex Example file demonstrating how to use this package. - --> Generated by running confproc.ins through LaTeX. - expapersswitch.tex Example of paper switch, to simplify paper insertion. - --> Generated by running confproc.ins through LaTeX. - exclasspre.tex Class and options declaration for the 1st LaTeX runs. - --> Generated by running confproc.ins through LaTeX. - exclasslast.tex Class and options declaration for the last LaTeX run. - --> Generated by running confproc.ins through LaTeX. - exbiblio.bib Bibliography for the example. - --> Generated by running confproc.ins through LaTeX. - - procswitchandtoc.pl Perl script used to generate the program (ie. - expaperswitch.tex) from the exprogram.csv file. - --> Generated by running confproc.ins through LaTeX. - exprogram.csv Example of comma-separated program of the conference. - --> Generated by running confproc.ins through LaTeX. - - buildproc Unix script to build the example proceedings. - --> Generated by running confproc.ins through LaTeX. - buildpapers Unix script to re-build all the papers. - --> Generated by running confproc.ins through LaTeX. - buildcppdfpapers Unix script to copy all PDf papers in the right spot. - --> Generated by running confproc.ins through LaTeX. - - readme.txt This file. - --> Generated by running confproc.dtx through LaTeX. + - main file: + confproc.dtx Docstrip archive + To generate the doc, run this through LaTeX. + + - class files: + confproc.ins Batch file (do: pdflatex confproc.dtx) + confproc.drv Driver for documentation (do: pdflatex confproc.ins) + Edit to generate customized doc + pdflatex confproc.drv + confproc.cls LaTeX package (do: pdflatex confproc.ins) + confproc.cfg Configuration file (do: pdflatex confproc.ins) + confproc.dvi Package documentation (do: pdflatex confproc.drv) + + - example files (do: pdflatex confproc.ins): + confproc1.ist Index style + confproc2.ist Index style + example1empty.tex Simplest example file + example2custom.tex Customized example file + example3optim.tex Idem with automatic program generation + example4optim.tex Idem with option management + expapersswitch.tex Paper switch for paper insertion + exclasspre.tex Class options for 1st pdflatex runs on 'example4optim.tex' + exclasslastpb.tex Class options for last pdflatex run (paperback version) + exclasslastel.tex Class options for last pdflatex run (electronic version) + exbiblio.bib Bibliography for example*optim.tex + exprogram.csv Comma-separated conference program + newapave.bst Bibliography style from 'newapa.bst' + newapave.sty Bibliography style from 'newapa.sty' + + - example scripts (do: pdflatex confproc.ins): + prepareexample.sh Unix/bash script to prepare example files and + folders (used it after running LaTeX on .dtx and .ins) + + buildproc.sh Unix/bash script: build the example + buildpapers.sh Unix/bash script: re-build all the papers + buildcppdfpapers.sh Unix/bash script: copy papers to the right spot + countnbpages.sh Unix/bash script: count PDFs nb of pages + Requires 'pdftk' to be installed. Get it from: + http://www.pdftk.com or http://www.accesspdf.com/pdftk/ + exportIndividualPDFs.sh Unix/bash scrit using pdftk to extract + each individual paper from the proceedings, + for proper page numbering and headers + generateswitch.pl Perl script generating 'expapersswitch.tex' + from 'exprogram.csv' + papersinfo.sh Unix/bash script to generate individual PDFs + with proper metadata + paperssplitpreamble.sh preamble of a Unix/bash script (papersplit.sh) + generated by exportIndividualPDFs.sh + removeLaTeXcmds.sh Unix/bash script to remove LaTeX accents and + commands for titles in PDF metadata + + +Read me: + readme.txt This file (do: pdflatex confproc.dtx) -Installation: - LaTeX confproc.dtx Creates docstrip installation file +Installation: + pdflatex confproc.dtx Creates docstrip installation file confproc.ins and this file - (La)TeX confproc.ins Creates class file confproc.cls, example - files and scripts and documentation driver - confproc.drv + pdflatex confproc.ins Creates 'confproc.cls' class file, example + files, scripts and documentation drive 'confproc.drv' Docstrip options available: package - to produce a (LaTeX2e) class file (.cls) @@ -70,29 +87,26 @@ Installation: possibilities of the package Move confproc.cls into a directory searched by LaTeX. - LaTeX confproc.dtx Creates the (LaTeX2e) documentation. - - optionally: - Edit confproc.drv and customize the documentation to your wishes. - LaTeX confproc.drv Generates customized documentation. - Depending on your customization you will - have to run - makeindex confproc.idx -s gind.ist -o confproc.ind - and/or - makeindex confproc.glo -s gglo.ist -o confproc.gls - LaTeX example.tex Demonstrates the possibilities of this - package. + pdflatex confproc.dtx Creates the (LaTeX2e) documentation. + +optionally: + Edit confproc.drv and customize the documentation to your wishes. + LaTeX confproc.drv Generates customized documentation. + Depending on your customization you will have to run + makeindex confproc.idx -s gind.ist -o confproc.ind + and/or + makeindex confproc.glo -s gglo.ist -o confproc.gls + pdfLaTeX example*.tex Demonstrate the possibilities of this package. + Contact: - E-Mail: vincent@music.mcgill.ca - Address: Vincent Verfaille, Schulich School of Music, - McGill University, 555 Sherbrooke street west, - Montreal, Quebec, H3A 1E3, Canada + E-Mail: [lastname].[packagename]@gmail.com + Address: Vincent Verfaille, Montreal, QC, Canada Legal stuff: readme.txt, the ReadMe file for the confproc package - Copyright (C) 2007 by Vincent Verfaille - <vincent@music.mcgill.ca> + Copyright (C) 2010 by Vincent Verfaille + <[lastname].[packagename]@gmail.com> This file is part of the confproc package. ------------------------------------------- diff --git a/Master/texmf-dist/doc/latex/confproc/buildcls b/Master/texmf-dist/doc/latex/confproc/buildcls deleted file mode 100644 index c5363759372..00000000000 --- a/Master/texmf-dist/doc/latex/confproc/buildcls +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -#-- set path to LaTeX binaries -LaPath="/usr/texbin/" #- TexLive 2007 -#LaPath="/usr/local/teTeX/bin/i386-apple-darwin-current/" #- teTeX -#-- set names of LaTeX and related compilers -Latex=$LaPath"pdflatex" -Index=$LaPath"makeindex" -Target="confproc" #- set document's name -extarget="example" #- se tthe example folder name - -#-- build doc, class and example files -$Latex $Target.dtx #- build doc. and .ins file -$Latex $Target.ins #- build class and example files - -#-- prepare scripts for building example -#rm -rf $extarget -mkdir $extarget #- create the folder -mv ex*.* $extarget/ #move all example files into it -mv buildproc.tex $extarget/buildproc # move scripts into it -mv buildcppdfpapers.tex $extarget/buildcppdfpapers -mv buildpapers.tex $extarget/buildpapers -mv procswitchandtoc.pl $extarget/ -cp -r pictures $extarget/ #- copy pictures into it -cp -r papers $extarget/ #- copy papers into it -cp confproc.cls $extarget/ #- copy the class into it -cp confproc.ist $extarget/ #- copy the index style into it -cp newapave.* $extarget/ #- copy the newapave bib style files -cd $extarget -chmod +x buildproc -chmod +x procswitchandtoc.pl -mkdir papers -mv expages.tex papers/ -cd .. - -#-- finish to build the documentation -$Latex $Target.dtx #- re-run doc for toc update -$Latex $Target.dtx #- re-run doc for proper back-references -$Index -s gind.ist $Target #- with \CodelineIndex of \PageIndex -$Index -s gglo.ist -o $Target.gls $Target.glo #- with \RecordChanges -$Latex $Target.dtx #- insert index & list of changes, re-number -$Latex $Target.dtx #- last run with proper page numbers - -#-- prepare scripts for cleaning package -mv cleancls.tex cleancls -chmod +x cleancls - -#-- build example -cd $extarget -./buildproc diff --git a/Master/texmf-dist/doc/latex/confproc/buildcls.sh b/Master/texmf-dist/doc/latex/confproc/buildcls.sh new file mode 100644 index 00000000000..beffaedf337 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/buildcls.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +wd=`pwd` + +#-- set path to LaTeX binaries +LaPath="/usr/texbin/" # TeXLive + +#-- set names of LaTeX and related compilers +Latex=$LaPath"pdflatex" +Index=$LaPath"makeindex" +Target="confproc" #- set document's name +extarget="example/" #- set the example folder name + +#-- build doc, class and example files +$Latex $Target.dtx #- build doc. and .ins file +$Latex $Target.ins #- build class and example files + +#-- HACK: rename newapave2.sty +mv newapave2.sty newapave.sty + +cd $wd/ +#-- finish to build the documentation +$Latex $Target.dtx #- re-run doc for toc update +$Latex $Target.dtx #- re-run doc for proper back-references +$Index -s gind.ist $Target #- with \CodelineIndex of \PageIndex +$Index -s gglo.ist -o $Target.gls $Target.glo #- with \RecordChanges +$Latex $Target.dtx #- insert index & list of changes, re-number +$Latex $Target.dtx #- last run with proper page numbers + +#-- prepare scripts for cleaning package +cd $wd +chmod +x cleancls.sh + +#-- prepare scripts for building example +chmod +x prepareexample.sh +./prepareexample.sh + +#-- build example +cd $extarget +#./buildproc.sh diff --git a/Master/texmf-dist/doc/latex/confproc/example/buildcppdfpapers b/Master/texmf-dist/doc/latex/confproc/buildcppdfpapers.sh index f8d86ffac96..efc517a7afd 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/buildcppdfpapers +++ b/Master/texmf-dist/doc/latex/confproc/buildcppdfpapers.sh @@ -1,4 +1,5 @@ #!/bin/sh + cd papers/sources_tex for i in *; do echo '*********' $i '*********' diff --git a/Master/texmf-dist/doc/latex/confproc/example/buildpapers b/Master/texmf-dist/doc/latex/confproc/buildpapers.sh index 9c38da808b5..da6ff285a25 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/buildpapers +++ b/Master/texmf-dist/doc/latex/confproc/buildpapers.sh @@ -13,8 +13,7 @@ BUILD_TYPE=renumber #recompile only once for re-numbering #--- set system dependent variables -#LATEXPATH="/usr/local/teTeX/bin/i386-apple-darwin-current/" # teTeX -LATEXPATH="/usr/texbin/" # TexLive 2007 +LATEXPATH="/usr/texbin/" # TeXLive #--- paths LATEX=$LATEXPATH"latex" diff --git a/Master/texmf-dist/doc/latex/confproc/buildproc.sh b/Master/texmf-dist/doc/latex/confproc/buildproc.sh new file mode 100644 index 00000000000..9815e86e17f --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/buildproc.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +#--- set user dependent file name +TEXFILE="example3optim" +#--- set system-dependent variables +LATEXPATH="/usr/texbin/" # for TexLive +#--- set compilers' paths +PDFLATEX=$LATEXPATH"pdflatex" +BIBTEX=$LATEXPATH"bibtex" +MAKEINDEX=$LATEXPATH"makeindex" +mkdir pdftk_info/ + +#--- class settings: "empty" option and binding +cp exclasspre.tex exclass.tex + +#--- Compile +separator='___________________________________________________' +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: create toc (1/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Bibtex: generate the general biblio. (2/6) ***' +$BIBTEX $TEXFILE + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Makeindex: create index of authors (3/6) ***' +$MAKEINDEX -s confproc2.ist $TEXFILE.idx + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: add toc + insert index and bibliography (4/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: createupdate toc, index and bib page numbers (5/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: mod. class insertion, for proper PDF links for full papers (6/6) ***' +$PDFLATEX $TEXFILE.tex diff --git a/Master/texmf-dist/doc/latex/confproc/buildprocelpb.sh b/Master/texmf-dist/doc/latex/confproc/buildprocelpb.sh new file mode 100644 index 00000000000..36a01b4db66 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/buildprocelpb.sh @@ -0,0 +1,125 @@ +#!/bin/bash + +#--- set user dependent file name +INTEXFILE="example4optim" +TEXFILE="proceedings" +TEXFILEPATH="example" +PAPERBACKFOLDER="PDF_printed/" +ELECTRONICFOLDER="PDF_electronic/" + +#--- different class options for electronic vs paperback version +class_paperback_pre=exclasspre +class_paperback_final=exclasslastpb +class_electronic_final=exclasslastel + +#--- set system-dependent variables +LATEXPATH="/usr/texbin/" # TexLive + +#--- set compilers' paths +PDFLATEX=$LATEXPATH"pdflatex" +BIBTEX=$LATEXPATH"bibtex" +MAKEINDEX=$LATEXPATH"makeindex" + +#--- set script-specific paths +GPATH=`pwd` # general proc path +PAPERBACKFOLDER=${GPATH}/${PAPERBACKFOLDER} +ELECTRONICFOLDER=${GPATH}/${ELECTRONICFOLDER} +PDFPATH="${ELECTRONICFOLDER}/papers" +PDFTKPATH="pdftk_info/" +INPATH="tmp/papersinfo/" +SPPATH="tmp/papers_split/" + +#=== prepare output folders +mkdir -p ${PAPERBACKFOLDER} +mkdir -p ${ELECTRONICFOLDER} +rm -r ${ELECTRONICFOLDER}/papers/ +mkdir -p ${ELECTRONICFOLDER}/papers/ +mkdir -p $INPATH +mkdir -p $SPPATH +mkdir -p $PDFTKPATH + +#=== GO TO LaTeX FOLDER !!! +cd ${GPATH} + +#=== MAKE PAPERBACK VERSION +#--- class settings: "empty" option and binding +cat ${class_paperback_pre}.tex ${INTEXFILE}.tex >${TEXFILE}.tex + +#--- Compile +separator='___________________________________________________' +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: create toc (1/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Bibtex: generate the general biblio. (2/6) ***' +$BIBTEX $TEXFILE + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Makeindex: create index of authors (3/6) ***' +$MAKEINDEX -s confproc2.ist $TEXFILE.idx + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: add toc + insert index and bibliography (4/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: createupdate toc, index and bib page numbers (5/6) ***' +$PDFLATEX $TEXFILE.tex + +#--- class settings: "final" option and binding +cat ${class_paperback_final}.tex ${INTEXFILE}.tex >${TEXFILE}.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: mod. class insertion, for proper PDF links for full papers (6/6) ***' +$PDFLATEX $TEXFILE.tex + +#--- save PDF +cp ${TEXFILE}.pdf $PAPERBACKFOLDER/${TEXFILE}.pdf + +#=== MAKE ELECTRONIC VERSION FOR CD, FROM PAPERBACK VERSION +#--- class settings: "final" option and no binding +cd ${GPATH}/${TEXFILEPATH} +cat ${class_electronic_final}.tex ${INTEXFILE}.tex >${TEXFILE}.tex + +#--- Compile +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: create toc (1/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Bibtex: generate the general biblio. (2/6) ***' +$BIBTEX $TEXFILE + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Makeindex: create index of authors (3/6) ***' +$MAKEINDEX -s confproc2.ist $TEXFILE.idx + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: add toc (4/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: create toc + include index (5/6) ***' +$PDFLATEX $TEXFILE.tex + +#--- class settings: "final" option and binding +cat ${class_paperback_final}.tex ${INTEXFILE}.tex >${TEXFILE}.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: mod. class insertion, for proper PDF links for full papers (6/6) ***' +$PDFLATEX $TEXFILE.tex + +mkdir ${ELECTRONICFOLDER}/papers/ +#--- save PDF +echo "cmd: cp ${TEXFILE}.pdf ${GPATH}/${ELECTRONICFOLDER}/${TEXFILE}.pdf" +cp ${TEXFILE}.pdf $ELECTRONICFOLDER/${TEXFILE}.pdf + +#=== EXPORT individual pdf papers back from the proceedings + hdr/footers/metadata +cd ${GPATH} +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Export individual PDFs ***' +echo "cmd: ./exportIndividualPDFs.sh ${GPATH} ${TEXFILEPATH}/${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH} ${PDFTKPATH}" +./exportIndividualPDFs.sh ${GPATH} ${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH} ${PDFTKPATH} + +# rm -r ${GPATH}/tmp/ diff --git a/Master/texmf-dist/doc/latex/confproc/cleancls b/Master/texmf-dist/doc/latex/confproc/cleancls deleted file mode 100644 index d828e60d5e1..00000000000 --- a/Master/texmf-dist/doc/latex/confproc/cleancls +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -mkdir backup #--- move the files to be kept -mv confproc.dtx backup/ -mv buildcls backup/ -cp cleancls backup/ -mv pd1enc.def backup/ -rm *.* #--- clean up! -mv backup/confproc.dtx . #--- move the backed up files -mv backup/buildcls . -mv backup/cleancls . -mv backup/pd1enc.def . -rm -r backup #--- remove the temporary backup folder diff --git a/Master/texmf-dist/doc/latex/confproc/cleancls.sh b/Master/texmf-dist/doc/latex/confproc/cleancls.sh new file mode 100644 index 00000000000..50a733167fd --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/cleancls.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +mkdir backup #--- move the files to be kept +mv confproc.dtx backup/ +mv confproc_diag.pdf backup/ +mv confproc-short.tex backup/ +mv confproc-short.pdf backup/ +mv buildcls.sh backup/ +cp cleancls.sh backup/ +rm *.* #--- clean up! +mv backup/* . #--- move the backed up files +rm -r backup #--- remove the temporary backup folder diff --git a/Master/texmf-dist/doc/latex/confproc/confproc-short.pdf b/Master/texmf-dist/doc/latex/confproc/confproc-short.pdf Binary files differnew file mode 100644 index 00000000000..162d44406c9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/confproc-short.pdf diff --git a/Master/texmf-dist/doc/latex/confproc/confproc-short.tex b/Master/texmf-dist/doc/latex/confproc/confproc-short.tex new file mode 100644 index 00000000000..d08132af226 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/confproc-short.tex @@ -0,0 +1,404 @@ +\documentclass{article} + + \IfFileExists{fontenc.sty}{% + \usepackage[T1]{fontenc}}{} +\usepackage{mathptmx} +\usepackage[super]{nth} +\usepackage{graphicx} +\usepackage{url} +\usepackage{amssymb,amsmath} +\usepackage{manfnt} +\usepackage{xcolor} +\usepackage{layout} + +\usepackage[text={6.9in,9in},% + inner=0.8in,top=1in,bottom=1in,% + headsep=7.05mm,footskip=10mm,voffset=-5mm]{geometry} + +\RequirePackage[pdftex,colorlinks=true,linkcolor=blue!80!black,citecolor=blue!80!black,% + urlcolor=blue!80!black,bookmarksopen=true,bookmarksopenlevel=1,raiselinks,% + hyperindex,backref,pagebackref,plainpages=false,pdfpagelabels,% + breaklinks,linktocpage=false,pdfstartview=XYZ]{hyperref} + +\usepackage{supertabular} + + +\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} +\def\cmd@to@cs#1#2{\char\number`#2\relax} +\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} +%\newcommand{\cs}[1]{\texttt{\char`\\#1}} +\newcommand{\ctan}{\textsc{ctan}} +\newcommand{\file}[1]{\texttt{#1}} +\newcommand{\filename}{confproc} +\newcommand{\Lopt}[1]{\textsf{\color{red!100!black}#1}} +\newcommand{\package}[1]{\texttt{#1}} +\newcommand{\TeXLive}{\TeX{}Live} +\newcommand{\version}{0.7} + + +\title{\file{confproc} (v0.7) short documentation} +\author{Vincent Verfaille} + +%======================== +\begin{document} + +\maketitle + +\begin{abstract} + This short documentation offers a condensed information (all options and + commands) necessary to build proceedings. + + The \package{\filename} package provided a \LaTeXe\ document-class + together with various tools (Perl and Unix/bash scripts) for + building conference proceedings, or concatenating any set of + PDFs with a table of contents, index and bookmarks. The LaTeX2e + class is mainly based on the \package{pdfpages} package for PDF papers including, and + the \package{hyperref} package for creating proper links, bookmarks and + general bibliography back references. It also uses many other + packages for fine tuning of table of contents, bibliography and + index of authors. The added value of this class is in the time it + saves for you to quickly design conference proceedings. + See \file{readme.txt} for a short overview and additional (legal) + information, \file{confproc.pdf} for a full documentation with the code, + and \file{exampleN.tex} and corresponding files and + scripts for examples of use. +\end{abstract} + +%================================================================= +\section{Option list} + +See Tables~\ref{tab:options:all:1} and \ref{tab:options:all:2}. + + \begin{table}[htbp] + \centering + \begin{tabular}{@{}lp{1.8cm}p{6.5cm}@{}}\hline + \textbf{Option / category} & \textbf{Package(s)} & \textbf{Function}\\ \hline\hline + \multicolumn{3}{@{}l}{\bf Document formatting} \\ \hline + \Lopt{[letterpaper]} $\mid$ \Lopt{a4paper} & \package{hyperref}, \package{confproc} & European A4 $\mid$ North American paper format\\\hline + \Lopt{[10pt]} $\mid$ \Lopt{11pt} $\mid$ \Lopt{12pt} & \package{book}, \package{confproc} & set normal font size\\\hline + \Lopt{[twoside]} $\mid$ \Lopt{oneside} & \package{book}, \package{confproc} & for two/one-side documents (2-side: new chapters start on odd \& right pages) \\ \hline + \Lopt{[twosidepapers]} $\mid$ \Lopt{onesidepapers} & \package{confproc} & for papers to be locally considered as two/one-side documents \\ \hline\hline + \multicolumn{3}{@{}l}{\bf Proceedings-specific formatting} \\ \hline + \Lopt{[electronic]} $\mid$ \Lopt{printed} & \package{\filename} & links with/without colors. Identical to \Lopt{colorlinks=true} $\mid$ \Lopt{false} from \package{pdfpages} \\\hline + \Lopt{binding=Xmm [0mm]} & \package{\filename} & amount of horizontal space added to printed version (independent from \Lopt{printed}) \\\hline + \Lopt{papers=[final]} & \package{\filename} & inserts PDF papers from page 1 to N (slow)\\ + \Lopt{\phantom{papers=}draft} & \package{pdfpages}, \package{\filename} & fakes PDF papers inclusion from page 1 to N, but checks page existence (faster) \\ + \Lopt{\phantom{papers=}empty} & \package{\filename} & fakes PDF papers inclusion from page 1 to N without checking page existence (fastest) \\ + \Lopt{\phantom{papers=}countpages} & \package{\filename} & include full PDF papers (slowest; ignore N and breaks blibliography) \\ \hline + \Lopt{headers=[allpages]} & \package{\filename} & header/footer for all pages\\ + \Lopt{\phantom{headers=}pdfonly} & \package{\filename} & header/footer only for PDF papers\\ + \Lopt{\phantom{headers=}exceptpdf} & \package{\filename} & header/footer for all pages except PDF papers\\ + \Lopt{\phantom{headers=}none} & \package{confproc} & no header/footer for any pages\\\hline + \Lopt{bib=[none]} & \package{confproc} & no general bibliography\\ + \Lopt{\phantom{bib=}last} & \package{confproc} & for the final compilation with general bibliography (breaks back-references)\\ + \Lopt{\phantom{bib=}merge} & \package{confproc} & only includes 1st and last page (faster run) for merging bib items in the general bibliography \\ + \Lopt{\phantom{bib=}backref} & \package{confproc} & prepares back-references before final run \\\hline \hline + \multicolumn{3}{@{}l}{\bf List of inserted papers} \\ \hline + \Lopt{paperselec=[all]} $\mid$ \Lopt{p\_001}... & \package{confproc} & indicate the papers to be inserted (1 or all)\\ \hline\hline + \multicolumn{3}{@{}l}{\bf Lists formatting} \\ \hline + \Lopt{[onecoltoc]} $\mid$ \Lopt{twocoltoc} & \package{confproc} & one/two column(s) table of contents \\\hline + \Lopt{tocnum=[left]} $\mid$ \Lopt{right} & \package{confproc} & left/right page numbering table of contents \\\hline + \Lopt{[onecolbib]} $\mid$ \Lopt{twocolbib} & \package{confproc} & one/two column(s) general bibliography \\\hline + \Lopt{[threecolindex]} $\mid$ \Lopt{twocolindex} & \package{confproc} & three/two columns index of authors \\ \hline \hline + \multicolumn{3}{@{}l}{\bf Help for checking data and layout}\\ \hline + \Lopt{checktitle} ([false]) & \package{\filename} & overlays the title onto each paper's 1st page\\ \hline + \Lopt{checkauthor} ([false]) & \package{\filename} & overlays the author list onto each paper's 1st page\\ \hline + \Lopt{showpapernumber} ([false]) & \package{\filename} & adds paper number below page number\\ \hline + \Lopt{movepagenumber} ([false]) & \package{\filename} & moves page number down by a few millimeters\\ \hline + \Lopt{showmarginlines} ([false]) & \package{\filename} & shows margin lines of paper template\\ \hline + \Lopt{colorheaders=[black]} & \package{\filename} & changes color of header/footer\\ \hline + \end{tabular} + \caption{{\it List of options 1/2}} + \label{tab:options:all:1} + \end{table} + \begin{table}[htbp] + \centering + \begin{tabular}{lp{1.8cm}p{6cm}}\hline + Option / category & Package(s) & Function\\ \hline\hline + \multicolumn{3}{@{}l}{\bf Verbose and \package{pdftk} options}\\ \hline + \Lopt{debug} ([false]) & \package{hyperref} & sets \Lopt{debug=true} for \package{hyperref}\\\hline + \Lopt{verbose} ([false]) & \package{\filename} & sets \Lopt{debug=true} + adds \package{\filename} specific debug\\ \hline + \Lopt{pdftk} ([false]) & \package{\filename} & generates \filename.pdftk with \package{pdftk} commands for metadata of individual papers\\ \hline + \Lopt{pdftksubject} ([Conference]) &\package{\filename} & set PDF subject metadata for \package{pdftk} \\ \hline + \Lopt{pdftkproducer} & \package{\filename} & set PDF producer metadata for \package{pdftk} \\ + ([pdftk 1.12 + Ghostscript 8.71]) & &\\ + \Lopt{pdftkcreator} ([LaTeX2e + confproc 0.7]) & \package{\filename} & set PDF creator metadata for \package{pdftk}\\ \hline \hline + \multicolumn{3}{@{}l}{\bf Passed to \package{hyperref} using \Lopt{hyperref=\{option list\}}}\\ \hline + \Lopt{backref} &\package{hyperref} & add reference page number and link to each bibliographic item\\ + \Lopt{breaklinks} & \package{hyperref} & allows links to break over lines by making links over multiple lines into PDF links to the same target (great for table of contents and bibliography in two columns)\\ + \Lopt{citecolor=[blue]} & \package{hyperref} & use the user-defined \Lopt{colorforcite} color for links to bibliography items cited \\ + \Lopt{colorlinks=[true]} $\mid$ \Lopt{false} & \package{hyperref} & links without/without colors. Equivalent to \Lopt{electronic} $\mid$ \Lopt{printed}\\ + \Lopt{hyperindex} & \package{hyperref} & author index entries pages = hyperlinks to each paper\\ + \Lopt{linkcolor=[red]} & \package{hyperref} & color to use for links (from index, TOC, and bibliography back-references)\\ + \Lopt{linktocpage=[true]}& \package{hyperref} & TOC link is the page number, not the text\\ + \Lopt{pdfpagelabels=[true]} & \package{hyperref} & set PDF page labels: compulsory for creating any link to page!\\ + \Lopt{pdfstartview=[XYZ]} & \package{hyperref} & open the PDF file in Acrobat with zoom=100\% instead of full screen\\ + \Lopt{pdftex=[true]} & \package{hyperref} & set up \package{hyperref} for use with pdf\TeX{} \\ + \Lopt{plainpages=[false]} & \package{hyperref} & forces page anchors to be named by the arabic form of the page number, rather than the formatted form\\ + \Lopt{raiselinks=[true]} & \package{hyperref} & forces \package{special} commands to reflect the link real height (may contain a graphic)\\ +% \Lopt{raiselinks=[true]} & \package{hyperref} & forces \cmd{\special} commands to reflect the link real height (may contain a graphic)\\ + \Lopt{urlcolor=blue} & \package{hyperref} & use the \Lopt{blue} color for URL (general bibliography, publishing information)\\ \hline \hline + \multicolumn{3}{@{}l}{\bf Passed to \package{geometry} using \Lopt{geometry=\{option list\}}}\\ \hline + \Lopt{text=\{height=21cm,width=15cm\}} &\package{geometry} & see \package{geometry} \\ \hline + \end{tabular} + \caption{{\it Alphabetical list of all options 2/2}} + \label{tab:options:all:2} + \end{table} + +%================================================================= +\section{Layout commands and customization}\label{subsec:commands}\label{sec:custom} + +%----------------------------------------------------------------------- +\subsection{PDF vertical and horizontal shifts} + +\begin{verbatim} +\setlength{\LaTeXxShift}{0pt} +\setlength{\LaTeXyShift}{-3mm} %letter +%\setlength{\LaTeXyShift}{1mm} %A4 +\setlength{\WordxShift}{10pt} +\setlength{\WordyShift}{-40pt} +\end{verbatim} + +%----------------------------------------------------------------------- +\subsection{Colors for internal and external hyper-links}\label{sec:custom:colors} + +\begin{itemize} + \item color for links in the table of contents, index of authors, and back-references; +\begin{verbatim} +\definecolor{colorforlink}{rgb}{0,0,0.8} +\end{verbatim} + \item color for cited documents in the preamble, and/or in the general bibliography: +\begin{verbatim} +\definecolor{colorforcite}{rgb}{0,0.8,0} +\end{verbatim} + \item color for URL(s) in the preamble, or in the general bibliography (if any): +\begin{verbatim} +\definecolor{colorforurl}{rgb}{0,0,1} +\end{verbatim} +\end{itemize} + +%------------------------------------------------------------------------ +\subsection{PDF metadata}\label{sec:custom:metadata} + +\begin{itemize} + \item PDF author (default: `[Proceedings author/editor]'): +\begin{verbatim} +\renewcommand{\procpdfauthor}{Vincent Verfaille, McGill University} +\end{verbatim} + \item PDF short title (default: `[Proceedings title]'): +\begin{verbatim} +\renewcommand{\procpdftitle}{DAFx-06 Proceedings - Montreal, Qc, Canada} +\end{verbatim} + \item PDF subject (default: `[Proceedings description]'): +\begin{verbatim} +\renewcommand{\procpdfsubject}{Conference proceedings} +\end{verbatim} +\end{itemize} + +% the titles for special section (see sec.~\ref{sec:custom:special:section:titles}); + +%------------------------------------------------------------------------ +\subsection{Header and footer}\label{sec:custom:header:footer} + +\begin{itemize} + \item conference name: +\begin{verbatim} +\newcommand{\DAFxname}{Proc.~of the \nth{9} % + Int.~Conference on Digital Audio Effects (DAFx-06)} +\end{verbatim} + \item conference date(s): \verb+\newcommand{\DAFxdate}{September 18-20, 2006}+ + \item conference address: \verb+\newcommand{\DAFxaddress}{Montreal, Canada}+ + \item central header: \verb+\renewcommand{\proclhead}{{\em \small \procpdfsubject}}+ + \item left header: \verb+\renewcommand{\proclhead}{{\em \small \DAFxname, \DAFxaddress, \DAFxdate}}+ + \item central footers with page number: \verb+\renewcommand{\proccfoot}{\small DAFX-\thepage}+ + \item adjustment of the footer vertical position: \verb+\setlength{\procfootvskip}{5.43mm}+ +\end{itemize} + +%------------------------------------------------------------------------ +\subsection{Special section titles (toc, index, biblio)} + +\begin{itemize} + \item title of the table of contents (default: `Conference Program'): +\begin{verbatim} +\renewcommand{\contentsname}{Day-by-Day Conference Program} +\end{verbatim} + \item title of the general bibliography (default: `Full Bibliography'): +\begin{verbatim} +\renewcommand{\bibname}{General Bibliography} +\end{verbatim} + \item title of the index (default: `Index of Authors'): \verb+\renewcommand{\indexname}{List of Authors}+ +\end{itemize} + + +%------------------------------------------------------------------------ +\subsection{Front page and title commands}\label{sec:custom:front:page} + +\begin{itemize} + \item the proceedings' author/editor: \verb+\author{\procpdfauthor}+ + \item the proceedings' title: \verb+\title{\DAFxname\\ \DAFxaddress}+ + \item the proceedings' date: \verb+\date{\DAFxdate}+ +\end{itemize} + +%------------------------------------------------------------------------ +\subsection{Title/author layout} + +\begin{itemize} + \item title font style: \verb+\renewcommand{\papertitlestyle}{\texorpdfstring{}{\scshape}}+ + \item author font style: \verb+\renewcommand{\paperauthorstyle}{\texorpdfstring{, }{\break}}+ + \item alternative format to check the title: +\begin{verbatim} +\renewcommand{\confstylechecktitle}{\vspace*{0.3cm} % + \bf \sc \Large \noindent \centerline} +\end{verbatim} + \item alternative format to check the author list: +\begin{verbatim} +\renewcommand{\confstylecheckauthor}{\large \it \noindent \centerline} +\end{verbatim} +\end{itemize} + + +%================================================================= +\section{Program organization and paper insertion} + +\begin{itemize} + \item add a conference day: \verb+\procday{Day 2}+ + \item add a conference session: \verb+\session{Oral Session 2}+ + \item add a paper: +\begin{verbatim} + \procpaper[xshift=1cm, yshift=-4mm, switch=33, npages=4,% + title = {Templates for Two Authors},% + author={Alfred Alabama, Chris Christmas},% + index={\index{Alabama, Alfred}\index{Christmas, Chris}},% + ]{p_005} +\end{verbatim} +\end{itemize} + +%================================================================= +\section{List of scripts} + +\begin{itemize} + \item class-related scripts: + \begin{itemize} + \item {\bf \file{buildcls.sh} [bash]: generates the class files and documentation, and prepares the example-related files} + \item \file{cleancls.sh} [bash]: cleans up the folder where the class was generated + \item {\bf \file{prepareexample.sh} [bash]: prepares example-related files, scripts and folders} + \end{itemize} + \item example-related scripts: + \begin{itemize} + \item \file{generateswitch.pl} [Perl]: Generate the paper switch (\file{expaperswitch.tex}) and program (\file{exsessions.tex}) files + \item {\bf \file{buildproc.sh} [bash]: build the proceedings} + \item {\bf \file{buildproc2.sh} [bash]: generates both paperback and electronic final versions} + \item \file{buildpapers.sh} [bash]: re-compiles all papers + \item \file{buildcppdfpapers.sh} [bash]: copies all PDFs papers at the right place + \item \file{countnbpages.sh} [bash]: counts the number of pages for each individual PDF + \item \file{papersinfo.sh} [bash]: generates individual PDFs by extracting them from the whole proceedings PDF, and adds proper PDF metadata to each + \item \file{exportIndividualPDFs.sh} [bash]: exports individual papers (with proper page numbers) from the proceedings + \item \file{papersinfo.sh} [bash]: adds proper metadata to exported papers + \item \file{removeLaTeXcmds.sh} [bash]: converts \LaTeX\ strings for PDF metadata + \end{itemize} +\end{itemize} + +See also figure \ref{fig:confproc_diag} for suggested detailed compilation steps to build proceedings with general bibliography. +\begin{figure}[htbp] + \includegraphics[width=\textwidth]{confproc_diag.pdf} + \caption{Suggested stages to build proceedings} + \label{fig:confproc_diag} +\end{figure} + + +%================================================================= +\section{Compatibility with other packages} + +The `confproc' package has been successfully tested with \TeX{}Live 2008, 2009 \& 2010. + +%------------------------------------------------------------------------ +\subsection{Essential packages required by \package{\filename}} + +\begin{itemize} + \item \LaTeXe\ ($\ge$ 1994/12/01) and pdfTeXk Version 3.1415926-1.40.9 (Web2C 7.5.7)\\ + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/base}{macros/latex/base} + \item \package{book} + ($\ge$ 2005/09/16 v1.4f): standard document class on which \package{\filename} is based; \\ + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/unpacked/}{macros/latex/unpacked/} + \item \package{kvoptions} and \package{kvoptions-patch} + ($\ge$ 2009/04/10 v3.1): \\ + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/kvoptions.dtx}{macros/latex/contrib/oberdiek/kvoptions.dtx} + \item \package{xifthen} + ($\ge$ 2009/04/17 v1.3): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{macros/latex/contrib/xifthen/} + \item \package{pdfpages} + ($\ge$ 2009/02/07 v0.4g): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.dtx}{macros/latex/contrib/pdfpages/pdfpages.dtx} + \item \package{hyperref} + ($\ge$ 2009/05/01 v6.78r): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/hyperref.dtx}{macros/latex/contrib/hyperref/hyperref.dtx} + \item \package{geometry} + ($\ge$ 2008/12/21 v4.2): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/geometry.dtx}{macros/latex/contrib/geometry/geometry.dtx} + \item \package{color} + ($\ge$ 2005/11/14 v1.0j): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/color.dtx}{macros/latex/required/graphics/color.dtx} + \item \package{fancyhdr} + ($\ge$ 2005/03/22 v3.2): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/fancyhdr.sty}{macros/latex/contrib/fancyhdr/fancyhdr.sty} + \item \package{index} + ($\ge$ 2004/01/20 v4.2beta): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/index/index.dtx}{macros/latex/contrib/index/index.dtx} + \item \package{tocbibind} + ($\ge$ 2003/03/13 v1.5g): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocbibind/tocbibind.dtx}{macros/latex/contrib/tocbibind/tocbibind.dtx} + \item \package{titletoc} + ($\ge$ 2007/08/12 v1.6): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/titletoc.sty}{macros/latex/contrib/titlesec/titletoc.sty} + \item \package{multitoc} + ($\ge$ 1999/06/08 v2.01): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ms/multitoc.dtx}{macros/latex/contrib/ms/multitoc.dtx} + \item \package{multicol} + ($\ge$ 2006/05/18 v1.6g): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/multicol.dtx}{macros/latex/required/tools/multicol.dtx} + \item \package{sectsty} + ($\ge$ 2002/02/25 v2.0.2): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/sectsty/sectsty.dtx}{macros/latex/contrib/sectsty/sectsty.dtx} +\end{itemize} + +%------------------------------------------------------------------------ +\subsection{Other packages used with \package{\filename} in the examples} + +\begin{itemize} + \item \package{hypcap} + ($\ge$ 2006/02/20 v1.5): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.dtx}{macros/latex/contrib/oberdiek/hypcap.dtx} + \item \package{graphicx} + ($\ge$ 1996/08/05 v1.0a): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/graphicx.dtx}{macros/latex/required/graphics/graphicx.dtx} + \item \package{newapa} + ($\ge$ 1991/06/13 v2.0): + \ctan: \href{http://www.ctan.org/tex-archive/biblio/bibtex/contrib/newapa/}{biblio/bibtex/contrib/newapa/}\ + \item \package{newapave} + ($\ge$ 2006/07/31 v2.1), + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/conferences/confproc/}{macros/latex/contrib/conferences/confproc/} + \item \package{setspace} + ($\ge$ 2000/12/01 v6.7): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/setspace.sty}{macros/latex/contrib/setspace/setspace.sty} + \item \package{inputenc} + ($\ge$ 2006/05/05 v1.1b): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/base/inputenc.dtx}{macros/latex/base/inputenc.dtx} + \item \package{fontenc} + ($\ge$ 2005/09/27 v1.99g): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/unpacked/fontenc.sty}{macros/latex/unpacked/fontenc.sty} + \item \package{mathptmx} + ($\ge$ 2005/04/12 PSNFSS-v9.2a): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/required/psnfss/}{macros/latex/required/psnfss/} + \item \package{nth} + ($\ge$ 2002/02/27): + \ctan: \href{http://www.ctan.org/tex-archive/macros/generic/misc/nth.sty}{macros/generic/misc/nth.sty} + \item \package{layout} + ($\ge$ 2000/09/25 v1.2c): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/layout.dtx}{macros/latex/required/tools/layout.dtx} + \item \package{layouts} + ($\ge$ 2004/10/25 v2.6c): + \ctan: \href{http://www.ctan.org/tex-archive/macros/latex/contrib/layouts/layouts.dtx}{macros/latex/contrib/layouts/layouts.dtx} +\end{itemize} + + +\end{document} diff --git a/Master/texmf-dist/doc/latex/confproc/confproc.pdf b/Master/texmf-dist/doc/latex/confproc/confproc.pdf Binary files differindex a99be499bf1..58294180566 100644 --- a/Master/texmf-dist/doc/latex/confproc/confproc.pdf +++ b/Master/texmf-dist/doc/latex/confproc/confproc.pdf diff --git a/Master/texmf-dist/doc/latex/confproc/confproc_diag.pdf b/Master/texmf-dist/doc/latex/confproc/confproc_diag.pdf Binary files differnew file mode 100644 index 00000000000..6f3140d8386 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/confproc_diag.pdf diff --git a/Master/texmf-dist/doc/latex/confproc/countnbpages.sh b/Master/texmf-dist/doc/latex/confproc/countnbpages.sh new file mode 100644 index 00000000000..b104be0c39a --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/countnbpages.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +#-- set path to LaTeX binaries +LATEXPATH="/usr/texbin/" # TeXLive +#-- set names of LaTeX and related compilers +PDFLATEX=$LATEXPATH"pdflatex" + +TEXFILE="simple_proceedings" #- set document's name +PDFSPATH="papers" #- set the papers' folder name + +rm -f ${TEXFILE}.npt # count pages from terminal +cd ${PDFSPATH} +for file in *.pdf +do + pdfinfo -meta $file | grep "Pages:" > tmp0 + echo "file $file has `sed 's/.*\([0-9]\).*/\1/' < tmp0` pages" >> ../${TEXFILE}.npt +done +rm -f tmp0 +cd .. +more ${TEXFILE}.npt diff --git a/Master/texmf-dist/doc/latex/confproc/example/buildcppdfpapers.sh b/Master/texmf-dist/doc/latex/confproc/example/buildcppdfpapers.sh new file mode 100644 index 00000000000..efc517a7afd --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/buildcppdfpapers.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +cd papers/sources_tex +for i in *; do + echo '*********' $i '*********' + cp $i/$i.pdf .. +done +cd ../sources_pdftex +for i in *; do + echo '*********' $i '*********' + cp $i/$i.pdf .. +done diff --git a/Master/texmf-dist/doc/latex/confproc/example/buildpapers.sh b/Master/texmf-dist/doc/latex/confproc/example/buildpapers.sh new file mode 100644 index 00000000000..da6ff285a25 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/buildpapers.sh @@ -0,0 +1,69 @@ +#!/bin/sh + +# Compile all papers with 'pdflatex' of 'latex' +# (depending if they are in 'sources_pdftex' or 'sources_tex') +# and copy resulting pdf files in the 'papers' folder. +# Expected tree structure: +# proceedings/papers/sources_pdftex/ +# proceedings/papers/sources_tex/ +# with this script in 'proceedings/' + +#--- choose if you compile from scratch or only once +#BUILD_TYPE=final #recompile and re-do biblio +BUILD_TYPE=renumber #recompile only once for re-numbering + +#--- set system dependent variables +LATEXPATH="/usr/texbin/" # TeXLive + +#--- paths +LATEX=$LATEXPATH"latex" +DVIPDF=/usr/local/bin/dvipdf +PDFLATEX=$LATEXPATH"pdflatex" +BIBTEX=$LATEXPATH"bibtex" +MAKEINDEX=$LATEXPATH"makeindex" +PROCSTY='dafx_06.sty' + +#--- Compiling .tex files with pdfLaTeX +cd papers/sources_pdftex +for i in *; do + echo; echo; echo '=====> Compiling' $i '.tex with pdfLaTeX <=====' + cd $i + # copy the paper style (in case you changed it) + cp ../../$PROCSTY . + echo; echo ' ---> 1st compilation of ' $i '.tex' + $PDFLATEX $i + if [ $BUILD_TYPE = final ]; then + echo; echo ' ---> Compiling the bibliography ' $i '.tex' + $BIBTEX $i + echo; echo ' --- 2nd compilation of ' $i '.tex' + $PDFLATEX $i + echo; echo ' ---> 3rd compilation of ' $i '.tex' + $PDFLATEX $i + fi + #--- copy the pdf where the proceedings will be assembled + cp $i.pdf ../.. + cd .. +done +#--- Compiling .tex files with LaTeX (problems related with hyperref) +cd ../sources_tex +for i in *; do + echo; echo; echo '=====> Compiling' $i '.tex with LaTeX <=====' + cd $i + #--- copy the paper proceedings style (if you changed the tree) + cp ../../$PROCSTY . + echo; echo ' ---> 1st compilation of ' $i '.tex ' + $LATEX $i.tex + if [ $BUILD_TYPE = final ]; then + echo; echo ' ---> Compiling the bibliography ' $i '.tex ' + $BIBTEX $i + echo; echo ' ---> 2nd compilation of ' $i '.tex ' + $LATEX $i + echo; echo ' ---> 3rd compilation of ' $i '.tex ' + $LATEX $i + fi + #--- produce the pdf from dvi + $DVIPDF $i.dvi $i.pdf + #--- copy the pdf where the proceedings will be assembled + cp $i.pdf ../.. + cd .. +done diff --git a/Master/texmf-dist/doc/latex/confproc/example/buildproc b/Master/texmf-dist/doc/latex/confproc/example/buildproc deleted file mode 100644 index c6d47770f55..00000000000 --- a/Master/texmf-dist/doc/latex/confproc/example/buildproc +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -#--- set user dependent file name -TEXFILE="example" -#--- set system dependent variables -#LATEXPATH="/usr/local/teTeX/bin/i386-apple-darwin-current/" # for teTeX -LATEXPATH="/usr/texbin/" # for TexLive 2007 -#--- set compilers' paths -PDFLATEX=$LATEXPATH"pdflatex" -BIBTEX=$LATEXPATH"bibtex" -MAKEINDEX=$LATEXPATH"makeindex" - -#--- Compile -echo; echo; echo '*** bash: copying class insertion file ***' -cp exclasspre.tex exclass.tex -echo; echo; echo '*** PdfLaTeX: create toc (1/7) ***' -$PDFLATEX $TEXFILE.tex -echo; echo; echo '*** Bibtex: generate the general biblio. (2/7) ***' -$BIBTEX $TEXFILE -echo; echo; echo '*** Makeindex: create index of authors (3/7) ***' -$MAKEINDEX -s confproc.ist $TEXFILE.idx -echo; echo; echo '*** PdfLaTeX: create toc + include index (4/7) ***' -$PDFLATEX $TEXFILE.tex -echo; echo; echo '*** PdfLaTeX: create backrefs (5/7) ***' -$PDFLATEX $TEXFILE.tex -echo; echo; echo '*** PdfLaTeX: give proper toc and backrefs (6/7) ***' -$PDFLATEX $TEXFILE.tex -echo; echo; echo '*** bash: copying class insertion file ***' -cp exclasslast.tex exclass.tex -echo; echo; echo '*** PdfLaTeX: full papers (mod. class insertion) (7/7) ***' -$PDFLATEX $TEXFILE.tex diff --git a/Master/texmf-dist/doc/latex/confproc/example/buildproc.sh b/Master/texmf-dist/doc/latex/confproc/example/buildproc.sh new file mode 100644 index 00000000000..9815e86e17f --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/buildproc.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +#--- set user dependent file name +TEXFILE="example3optim" +#--- set system-dependent variables +LATEXPATH="/usr/texbin/" # for TexLive +#--- set compilers' paths +PDFLATEX=$LATEXPATH"pdflatex" +BIBTEX=$LATEXPATH"bibtex" +MAKEINDEX=$LATEXPATH"makeindex" +mkdir pdftk_info/ + +#--- class settings: "empty" option and binding +cp exclasspre.tex exclass.tex + +#--- Compile +separator='___________________________________________________' +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: create toc (1/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Bibtex: generate the general biblio. (2/6) ***' +$BIBTEX $TEXFILE + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Makeindex: create index of authors (3/6) ***' +$MAKEINDEX -s confproc2.ist $TEXFILE.idx + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: add toc + insert index and bibliography (4/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: createupdate toc, index and bib page numbers (5/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: mod. class insertion, for proper PDF links for full papers (6/6) ***' +$PDFLATEX $TEXFILE.tex diff --git a/Master/texmf-dist/doc/latex/confproc/example/buildprocelpb.sh b/Master/texmf-dist/doc/latex/confproc/example/buildprocelpb.sh new file mode 100644 index 00000000000..36a01b4db66 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/buildprocelpb.sh @@ -0,0 +1,125 @@ +#!/bin/bash + +#--- set user dependent file name +INTEXFILE="example4optim" +TEXFILE="proceedings" +TEXFILEPATH="example" +PAPERBACKFOLDER="PDF_printed/" +ELECTRONICFOLDER="PDF_electronic/" + +#--- different class options for electronic vs paperback version +class_paperback_pre=exclasspre +class_paperback_final=exclasslastpb +class_electronic_final=exclasslastel + +#--- set system-dependent variables +LATEXPATH="/usr/texbin/" # TexLive + +#--- set compilers' paths +PDFLATEX=$LATEXPATH"pdflatex" +BIBTEX=$LATEXPATH"bibtex" +MAKEINDEX=$LATEXPATH"makeindex" + +#--- set script-specific paths +GPATH=`pwd` # general proc path +PAPERBACKFOLDER=${GPATH}/${PAPERBACKFOLDER} +ELECTRONICFOLDER=${GPATH}/${ELECTRONICFOLDER} +PDFPATH="${ELECTRONICFOLDER}/papers" +PDFTKPATH="pdftk_info/" +INPATH="tmp/papersinfo/" +SPPATH="tmp/papers_split/" + +#=== prepare output folders +mkdir -p ${PAPERBACKFOLDER} +mkdir -p ${ELECTRONICFOLDER} +rm -r ${ELECTRONICFOLDER}/papers/ +mkdir -p ${ELECTRONICFOLDER}/papers/ +mkdir -p $INPATH +mkdir -p $SPPATH +mkdir -p $PDFTKPATH + +#=== GO TO LaTeX FOLDER !!! +cd ${GPATH} + +#=== MAKE PAPERBACK VERSION +#--- class settings: "empty" option and binding +cat ${class_paperback_pre}.tex ${INTEXFILE}.tex >${TEXFILE}.tex + +#--- Compile +separator='___________________________________________________' +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: create toc (1/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Bibtex: generate the general biblio. (2/6) ***' +$BIBTEX $TEXFILE + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Makeindex: create index of authors (3/6) ***' +$MAKEINDEX -s confproc2.ist $TEXFILE.idx + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: add toc + insert index and bibliography (4/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: createupdate toc, index and bib page numbers (5/6) ***' +$PDFLATEX $TEXFILE.tex + +#--- class settings: "final" option and binding +cat ${class_paperback_final}.tex ${INTEXFILE}.tex >${TEXFILE}.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: mod. class insertion, for proper PDF links for full papers (6/6) ***' +$PDFLATEX $TEXFILE.tex + +#--- save PDF +cp ${TEXFILE}.pdf $PAPERBACKFOLDER/${TEXFILE}.pdf + +#=== MAKE ELECTRONIC VERSION FOR CD, FROM PAPERBACK VERSION +#--- class settings: "final" option and no binding +cd ${GPATH}/${TEXFILEPATH} +cat ${class_electronic_final}.tex ${INTEXFILE}.tex >${TEXFILE}.tex + +#--- Compile +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: create toc (1/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Bibtex: generate the general biblio. (2/6) ***' +$BIBTEX $TEXFILE + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Makeindex: create index of authors (3/6) ***' +$MAKEINDEX -s confproc2.ist $TEXFILE.idx + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: add toc (4/6) ***' +$PDFLATEX $TEXFILE.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: create toc + include index (5/6) ***' +$PDFLATEX $TEXFILE.tex + +#--- class settings: "final" option and binding +cat ${class_paperback_final}.tex ${INTEXFILE}.tex >${TEXFILE}.tex + +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** PdfLaTeX: mod. class insertion, for proper PDF links for full papers (6/6) ***' +$PDFLATEX $TEXFILE.tex + +mkdir ${ELECTRONICFOLDER}/papers/ +#--- save PDF +echo "cmd: cp ${TEXFILE}.pdf ${GPATH}/${ELECTRONICFOLDER}/${TEXFILE}.pdf" +cp ${TEXFILE}.pdf $ELECTRONICFOLDER/${TEXFILE}.pdf + +#=== EXPORT individual pdf papers back from the proceedings + hdr/footers/metadata +cd ${GPATH} +echo; echo; echo; echo; echo; echo; echo $separator; echo $separator; +echo '*** Export individual PDFs ***' +echo "cmd: ./exportIndividualPDFs.sh ${GPATH} ${TEXFILEPATH}/${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH} ${PDFTKPATH}" +./exportIndividualPDFs.sh ${GPATH} ${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH} ${PDFTKPATH} + +# rm -r ${GPATH}/tmp/ diff --git a/Master/texmf-dist/doc/latex/confproc/example/confproc.cls b/Master/texmf-dist/doc/latex/confproc/example/confproc.cls index 638692b6b3a..7997d269916 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/confproc.cls +++ b/Master/texmf-dist/doc/latex/confproc/example/confproc.cls @@ -1,131 +1,382 @@ \NeedsTeXFormat{LaTeX2e}[1994/12/01]% \ProvidesClass{confproc} - [2007/10/17 v0.4f: Conference Proceedings class (VV)] -\LoadClass{book} -\DeclareOption{a4paper} - {\setlength\paperheight {297mm}% - \setlength\paperwidth {210mm}% - \setlength\oddsidemargin {-4.95truemm}% - \setlength\evensidemargin {-10.95truemm}% - \def\shiftsafourpaper{}} -\DeclareOption{letterpaper} - {\setlength\paperheight {11in}% + [2010/08/05 v0.7: Conference Proceedings class (VV)] +\RequirePackage{kvoptions} +\RequirePackage{kvoptions-patch} +\RequirePackage{xifthen} +\SetupKeyvalOptions{family=confproc,prefix=confproc@} +\newcommand*{\confproc}[1]{\setkeys{confproc}{#1}} +\DeclareStringOption{compil}{\PackageWarning{confproc}{Option % + "compil=bib*" ignored since v0.5; use "bib=*" instead of "compil=bib*"}} +\DeclareVoidOption{draft}{\PackageWarning{confproc}{Option "draft" % + ignored since v0.5; use "papers=draft" instead}} +\DeclareVoidOption{final}{\PackageWarning{confproc}{Option "final" % + ignored since v0.5; use "papers=final" instead}} +\DeclareVoidOption{tocnumleft}{\PackageWarning{confproc}{Option % + "tocnumleft" ignored since v0.5; use "tocnum=left" instead}} +\DeclareVoidOption{tocnumright}{\PackageWarning{confproc}{Option % + "tocnumright" ignored since v0.5; use "tocnum=right" instead}} +\DeclareVoidOption{cleardoublepage}{\PackageWarning{confproc}{Option % + "cleardoublepage" ignored since v0.5; use "twosidepapers" instead}} +\DeclareVoidOption{clearsinglepage}{\PackageWarning{confproc}{Option % + "clearsinglepage" ignored since v0.5; use "onesidepapers" instead}} +\DeclareVoidOption{10pt}{% + \expandafter\PassOptionsToPackage + \expandafter{\CurrentOption}{book}} +\DeclareVoidOption{11pt}{% + \expandafter\PassOptionsToPackage + \expandafter{\CurrentOption}{book}} +\DeclareVoidOption{12pt}{% + \expandafter\PassOptionsToPackage + \expandafter{\CurrentOption}{book}} +\newif\if@proc@letterpaper +\DeclareVoidOption{letterpaper}{% + \@proc@letterpapertrue + \setlength\paperheight {11in}% \setlength\paperwidth {8.5in}% \setlength\oddsidemargin {-4.95truemm}% \setlength\evensidemargin {-4.95truemm}% - \def\shiftsletterpaper{}} -\PassOptionsToPackage{a4paper,letterpaper}{book} -\PassOptionsToPackage{a4paper,letterpaper}{hyperref} -\DeclareOption{10pt}{\renewcommand\@ptsize{0}} -\DeclareOption{11pt}{\renewcommand\@ptsize{1}} -\DeclareOption{12pt}{\renewcommand\@ptsize{2}} -\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse% - \def\conf@WithClearsinglepage{}} -\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue% - \def\conf@WithCleardoublepage{}} -\DeclareOption{onesidepapers}{% - \def\conf@WithClearsinglepagePapers{}} -\DeclareOption{twosidepapers}{% - \def\conf@WithCleardoublepagePapers{}} -\DeclareOption{compil=bibmerge} - {\typeout{confproc: LaTeX run-> bib. items only (merging process)}% - \def\conf@BibMerge{}} -\DeclareOption{compil=bibbackref} - {\typeout{confproc: LaTeX run-> generating biblio back references}% - \def\conf@BibBackRef{}} -\DeclareOption{compil=last} - {\typeout{!!! confproc: LaTeX run-> LAST !!!}% - \def\conf@FinalVersion{}} -\DeclareOption{draft} - {\typeout{confproc: not including PDF files}% - \PassOptionsToPackage{draft}{pdfpages}% - \def\conf@DoNotIncludePDFs{}} -\DeclareOption{final} - {\typeout{confproc: including PDF files}% - \PassOptionsToPackage{final}{pdfpages}% - \def\conf@IncludePDFs{}} -\DeclareOption{electronic}% - {\typeout{confproc: adding colors for hyperlinks}% + \def\shiftsletterpaper{}% + \PassOptionsToClass{\CurrentOption}{book}% + \PassOptionsToPackage{\CurrentOption}{hyperref}} +\DeclareVoidOption{a4paper}{% + \@proc@letterpaperfalse + \setlength\paperheight {297mm}% + \setlength\paperwidth {210mm}% + \setlength\oddsidemargin {-4.95truemm}% + \setlength\evensidemargin {-10.95truemm}% + \def\shiftsafourpaper{}% + \PassOptionsToClass{\CurrentOption}{book}% + \PassOptionsToPackage{\CurrentOption}{hyperref}} +\DeclareVoidOption{oneside}{\@twosidefalse \@mparswitchfalse% + \PassOptionsToPackage{\CurrentOption}{book}} +\DeclareVoidOption{twoside}{\@twosidetrue \@mparswitchtrue% + \PassOptionsToPackage{\CurrentOption}{book}} +\DeclareBoolOption[true]{twosidepapers} +\DeclareComplementaryOption{onesidepapers}{twosidepapers} +\DeclareStringOption[final]{papers} +\DeclareBoolOption[true]{electronic} +\DeclareComplementaryOption{printed}{electronic} +\DeclareStringOption[0mm]{binding} +\DeclareStringOption[allpages]{headers} +\DeclareStringOption[none]{bib} +\DeclareStringOption[all]{paperselec} +\DeclareBoolOption[false]{twocoltoc} +\DeclareComplementaryOption{onecoltoc}{twocoltoc} +\DeclareStringOption[left]{tocnum} +\DeclareBoolOption[true]{twocolbib} +\DeclareComplementaryOption{onecolbib}{twocolbib} +\DeclareBoolOption[true]{twocolindex} +\DeclareComplementaryOption{threecolindex}{twocolindex} +\DeclareBoolOption[false]{checktitle} +\DeclareBoolOption[false]{checkauthor} +\DeclareStringOption[black]{colorheaders} +\DeclareBoolOption[false]{showmarginlines} +\DeclareBoolOption[false]{showpapernumber} +\DeclareBoolOption[false]{movepagenumber} +\DeclareBoolOption[false]{debug} +\DeclareBoolOption[false]{verbose} +\DeclareBoolOption[false]{pdftk} +\DeclareStringOption[.]{pdftkfolder} +\DeclareStringOption[Conference]{pdftksubject} +\DeclareStringOption[pdftk 1.12 + Ghostscript 8.71]{pdftkproducer} +\DeclareStringOption[LaTeX2e + confproc 0.7]{pdftkcreator} +\DeclareStringOption{hyperref}[] +\DeclareStringOption{geometry}[] +\DeclareStringOption{afterhyperref}[] +\DeclareStringOption{beforehyperref}[] +\DeclareDefaultOption{\PackageWarning{confproc}{Unknown % + option `\CurrentOption'; passed to 'hyperref'}% + \PassOptionsToClass{\CurrentOption}{hyperref}} +\ExecuteOptions{letterpaper,10pt,twoside,twosidepapers,% + electronic,binding=0mm,papers=final,paperselec=all,headers=allpages,% + onecoltoc,tocnum=left,threecolindex,twocolbib,bib=none,% + checktitle=false,checkauthor=false,showmarginlines=false,% + showpapernumber=false,movepagenumber=false,colorheaders=black,% + verbose=false,debug=false,pdftk=false,% + hyperref={colorlinks=true,linkcolor=red,citecolor=blue,urlcolor=blue,% + bookmarksopen=true,bookmarksopenlevel=1}% + geometry={text={6.9in,9in},% + inner=0.8in,top=1in,bottom=1in,% + headsep=7.05mm,footskip=10mm,voffset=-5mm}} +\ProcessKeyvalOptions* +\ifconfproc@electronic% \PassOptionsToPackage{colorlinks=true}{hyperref}% - \def\conf@procWithColors{}} -\DeclareOption{printed}% - {\typeout{confproc: hyperref with no color for hyperlinks} + \PackageInfo{confproc}{use color links with hyperref}% +\else \PassOptionsToPackage{colorlinks=false}{hyperref}% - \def\conf@procWithoutColors{}} -\DeclareOption{headers=no}% - {\typeout{confproc: no fancy headers}% - \def\conf@NoFancyHeaders{}} -\DeclareOption{headers=pdfonly}% - {\typeout{confproc: fancy headers on inserted PDFs only}% - \def\conf@FancyHeadersOnPapers{}} -\DeclareOption{headers=exceptpdf}% - {\typeout{confproc: fancy headers for all pages except PDFs}% - \def\conf@FancyHeadersExceptPapers{}} -\DeclareOption{headers=allpages}% - {\typeout{confproc: fancy headers on all pages, PDFs included}% - \def\conf@FancyHeadersOnPapers{}% - \def\conf@FancyHeadersExceptPapers{}} -\DeclareOption{twocolindex} - {\typeout{confproc: 2 columns index}% - \def\conf@TwoColumnIndex{}} -\DeclareOption{threecolindex} - {\typeout{confproc: 3 columns index}% - \def\conf@ThreeColumnIndex{}} -\DeclareOption{twocolbib} - {\typeout{confproc: 2 columns biblio}% - \def\conf@TwoColumnBib{}} -\DeclareOption{onecolbib} - {\typeout{confproc: 1 column biblio}% - \def\conf@OneColumnBib{}} -\DeclareOption{twocoltoc} - {\typeout{confproc: 2 columns TOC}% - \def\conf@TwoColumnTOC{}} -\DeclareOption{onecoltoc} - {\typeout{confproc: 1 column TOC}% - \def\conf@OneColumnTOC{}} -\DeclareOption{tocnumleft} - {\typeout{confproc: TOC numbering on left}% - \def\conf@TocNumberingLeft{}} -\DeclareOption{tocnumright} - {\typeout{Confproc: TOC numbering on right}% - \def\conf@TocNumberingRight{}} -\DeclareOption{movepagenumbers} - {\typeout{confproc: moving page numbers to check PDFs numbering}% - \def \conf@TestPageNumbering{}} -\DeclareOption{cleardoublepage}% - {\typeout{confproc: using double page clearing}% - \def\conf@WithCleardoublepage{}} -\DeclareOption{clearsinglepage}% - {\typeout{confproc: using double page clearing}% - \def\conf@WithClearsinglepage{}} -\DeclareOption{debug} - {\typeout{Confproc: printing debug for confproc, hyperref}% - \PassOptionsToPackage{debug}{hyperref}% - \def\conf@procWithDebug{}} -\DeclareOption{verbose} - {\typeout{Confproc: printing debug for confproc, hyperref}% - \PassOptionsToPackage{debug}{hyperref}% - \def\conf@procWithDebug{}} -\DeclareOption*{\PackageWarning{procconf}% - {Unknown option `\CurrentOption'; passed to 'hyperref'}% - \PassOptionsToClass{\CurrentOption}{hyperref}} -\ExecuteOptions{letterpaper,10pt,twoside,% - twosidepapers,electronic,headers=no,compil=bibbackref,% - tocnumleft,onecoltoc,threecolindex,twocolbib,% - colorlinks=true,linkcolor=red,citecolor=blue,pagecolor=red,urlcolor=blue,% - bookmarksopen=true,bookmarksopenlevel=1} -\ProcessOptions + \PackageInfo{confproc}{does not use color links with hyperref}% +\fi + +\newlength{\proc@binding} +\ifthenelse% + {\equal{\confproc@binding}{}} + {\setlength{\proc@binding}{0mm} + \PackageInfo{confproc}{setting binding to default (0mm)}} + {\setlength{\proc@binding}{\confproc@binding} + \PackageInfo{confproc}{setting binding to \confproc@binding}} + +\newif\if@proc@IncludePDFs +\newif\if@proc@ReplacePDFs +\newif\if@proc@IncludeFullPDFs +\newwrite\npagesfile +\ifthenelse% + {\equal{\confproc@papers}{empty}}% + {\PackageInfo{confproc}{replacing PDF files by information pages}% + \@proc@ReplacePDFstrue + \@proc@IncludeFullPDFsfalse + \@proc@IncludePDFsfalse + \immediate\openout\npagesfile=\jobname.nps} + {\ifthenelse% + {\equal{\confproc@papers}{draft}}% + {\PackageInfo{confproc}{not including PDF files with 'pdfpages'}% + \PassOptionsToPackage{draft}{pdfpages}% + \@proc@ReplacePDFsfalse + \@proc@IncludeFullPDFsfalse + \@proc@IncludePDFsfalse + \immediate\openout\npagesfile=\jobname.nps} + {\ifthenelse% + {\equal{\confproc@papers}{final}} + {\PackageInfo{confproc}{including PDF files with 'pdfpages'}% + \PassOptionsToPackage{final}{pdfpages}% + \@proc@ReplacePDFsfalse + \@proc@IncludeFullPDFsfalse + \@proc@IncludePDFstrue + \immediate\openout\npagesfile=\jobname.nps} + {\ifthenelse% + {\equal{\confproc@papers}{countpages}} + {\PackageInfo{confproc}{counting each paper's number of % + pages by including all its pages} + \@proc@ReplacePDFsfalse + \@proc@IncludeFullPDFstrue + \@proc@IncludePDFsfalse + \immediate\openout\npagesfile=\jobname.npc} + {\PackageWarning{confproc}{unknown option % + `papers=\confproc@papers' ; using `papers=final'}% + \@proc@ReplacePDFsfalse{} + \@proc@IncludeFullPDFsfalse + \@proc@IncludePDFstrue + \immediate\openout\npagesfile=\jobname.nps} + } + } + } + +\newif\if@proc@FancyHeadersOnPapers +\newif\if@proc@FancyHeadersExceptPapers +\ifthenelse% + {\equal{\confproc@headers}{none}} + {\PackageInfo{confproc}{no headers}% + \@proc@FancyHeadersOnPapersfalse + \@proc@FancyHeadersExceptPapersfalse} + {\ifthenelse% + {\equal{\confproc@headers}{pdfonly}} + {\PackageInfo{confproc}{headers on inserted PDFs only}% + \@proc@FancyHeadersOnPaperstrue + \@proc@FancyHeadersExceptPapersfalse} + {\ifthenelse% + {\equal{\confproc@headers}{exceptpdf}} + {\PackageInfo{confproc}{headers for all pages except PDFs}% + \@proc@FancyHeadersOnPapersfalse + \@proc@FancyHeadersExceptPaperstrue} + {\ifthenelse% + {\equal{\confproc@headers}{allpages}} + {\PackageInfo{confproc}{headers on all pages, PDFs included}% + \@proc@FancyHeadersOnPaperstrue + \@proc@FancyHeadersExceptPaperstrue} + {\PackageWarning{confproc}{unknown % + 'headers=\confproc@headers' option (using 'headers=allpages')}} + } + } + } + +\newif\if@proc@BibNone +\newif\if@proc@BibRemoveCiteHdr +\ifthenelse% + {\equal{\confproc@bib}{merge}}% + {\PackageInfo{confproc}{bib: display 1st+last page of each paper}% + \@proc@BibNonefalse% + \def\conf@BibMerge{}% + \@proc@BibRemoveCiteHdrfalse}% + {\ifthenelse% + {\equal{\confproc@bib}{backref}}% + {\PackageInfo{confproc}{bib: displays back references}% + \@proc@BibNonefalse% + \def\conf@BibBackRef{}% + \@proc@BibRemoveCiteHdrfalse}% + {\ifthenelse% + {\equal{\confproc@bib}{final}}% + {\PackageInfo{confproc}{bib: hide bib items using `nocite'}% + \@proc@BibNonefalse% + \@proc@BibRemoveCiteHdrtrue}% + {\PackageInfo{confproc}{bibliography: none}% + \@proc@BibNonetrue}% + }% + } +\if@proc@BibRemoveCiteHdr + \newcommand{\confcite}[1]{\nocite{#1}} + \PackageInfo{confproc}{removing citations (with nocite{*}): % + next run should be the last (will loose hyperlinks)} +\else \newcommand{\confcite}[1]{\cite{#1}} +\fi +\newif\if@proc@TocNumberingRight +\ifthenelse% + {\equal{\confproc@tocnum}{left}}% + {\PackageInfo{confproc}{TOC numbering on left}% + \@proc@TocNumberingRightfalse} + {\ifthenelse% + {\equal{\confproc@tocnum}{right}}% + {\PackageInfo{confproc}{TOC numbering on right}% + \@proc@TocNumberingRighttrue} + {\PackageWarning{confproc}{unknown tocnum=\confproc@tocnum % + (using 'right' instead)}% + \@proc@TocNumberingRighttrue} + } + +\ifconfproc@checkauthor + \PackageInfo{confproc}{add 'author list' field on the paper's 1st page}% +\else \PackageInfo{confproc}{do not add author list}% +\fi +\ifconfproc@checktitle + \PackageInfo{confproc}{add title field on the paper's 1st page}% +\else \PackageInfo{confproc}{do not add title}% +\fi +\ifconfproc@showmarginlines + \PackageInfo{confproc}{show margin lines to check template-complience}% +\else \PackageInfo{confproc}{do not show margin lines}% +\fi +\ifconfproc@showpapernumber + \PackageInfo{confproc}{add paper number below page number}% +\else \PackageInfo{confproc}{do not add paper number below page number}% +\fi + +\ifconfproc@twosidepapers + \PackageInfo{confproc}{papers opening on right (odd) side} +\else + \PackageInfo{confproc}{papers opening on any side} +\fi + +\newif\if@proc@verbose +\@proc@verbosefalse +\ifconfproc@verbose + \@proc@verbosetrue + \PackageInfo{confproc}{verbose mode turned on} +\else \PackageInfo{confproc}{verbose mode turned off} +\fi +\ifconfproc@debug + \@proc@verbosefalse + \PackageInfo{confproc}{verbose mode turned off and debug turned on} + \PassOptionsToPackage{debug}{hyperref} +\else \PackageInfo{confproc}{debug mode turned on} +\fi +\PassOptionsToPackage{\confproc@hyperref}{hyperref} +\PassOptionsToPackage{\confproc@geometry}{geometry} +\ifconfproc@verbose + \typeout{________________} + \if@proc@letterpaper + \typeout{| | Document formatting:} + \typeout{| | ____ letterpaper} + \else + \typeout{| | Document formatting:} + \typeout{| | ____ a4paper} + \fi + \iffalse\@twoside \typeout{| | ____ twoside=false (=oneside)} + \else \typeout{| | ____ twoside=true} + \fi + \ifconfproc@twosidepapers \typeout{| | ____ twosidepapers=true} + \else \typeout{| | twosidepapers=false (=onesidepaper)} + \fi + \typeout{| | Proceedings-specific formatting:} + \ifconfproc@electronic \typeout{| | ____ electronic=true (file version)} + \else \typeout{| | ____ electronic=false (printed)} + \fi + \typeout{| | ____ binding=\confproc@binding (for printed version)} + \typeout{| | ____ papers=\confproc@papers (paper insertion)} + \typeout{| | ____ headers=\confproc@headers (header add to pages)} + + \typeout{| | List of papers:} + \typeout{| | ____ paperselec=\confproc@paperselec} + + \typeout{| | Lists (toc, bib, index):} + \ifconfproc@twocoltoc \typeout{| | ____ twocoltoc=true} + \else \typeout{| | ____ twocoltoc=false (=onecoltoc)} + \fi + \ifthenelse{\equal{\confproc@tocnum}{left}}% + {\typeout{| | ____ tocnum=left}} + {\typeout{| | ____ tocnum=right}} + \ifconfproc@twocolbib \typeout{| | ____ twocolbib=true} + \else \typeout{| | ____ twocolbib=false (=onecolbib)} + \fi + \typeout{| | ____ bib=\confproc@bib} + \ifconfproc@twocolindex \typeout{| | ____ twocolindex=true} + \else \typeout{| | ____ twocolindex=false (=threecolindex)} + \fi + + \typeout{| | Help for layout design:} + \ifconfproc@checkauthor + \typeout{| | ____ checkauthor=true (add author list to 1st page)} + \else + \typeout{| | ____ checkauthor=false (do not add author list to 1st page)} + \fi + \ifconfproc@checktitle + \typeout{| | ____ checktitle=true (add title to 1st page)} + \else + \typeout{| | ____ checktitle=false (do not add title to 1st page)} + \fi + + \ifconfproc@showpapernumber + \typeout{| | ____ showpapernumber=true (add paper number)} + \else + \typeout{| | ____ showpapernumber=false (do not add paper number)} + \fi + \ifconfproc@movepagenumber + \typeout{| | ____ movepagenumber=true (move paper number for checking)} + \else + \typeout{| | ____ movepagenumber=false (do not move paper number)} + \fi + \ifconfproc@showmarginlines + \typeout{| | ____ showmarginlines=true (add template format)} + \else + \typeout{| | ____ showmarginlines=false (do not add template format)} + \fi + \typeout{| | ____ colorheaders=\confproc@colorheaders (color for header/footer)} + + \typeout{| | Verbose:} + \ifconfproc@debug \typeout{| | ____ debug=true (for hyperref)} + \else \typeout{| | ____ debug=false (for hyperref)} + \fi + \ifconfproc@verbose \typeout{| | ____ verbose=true (for confproc+hyperref)} + \else \typeout{| | ____ verbose=false (for confproc+hyperref)} + \fi + \ifconfproc@pdftk + \typeout{| | ____ pdftk=true (for use with pdftk to add PDF metadata)} + \typeout{| | ____ pdftkfolder=\confproc@pdftkfolder (folder where .pdftk files are saved)} + \typeout{| | ____ pdftksubject=\confproc@pdftksubject (subject for individual PDF metadata)} + \typeout{| | ____ pdftkproducer=\confproc@pdftkproducer (producer for individual PDF metadata)} + \typeout{| | ____ pdftkcreator=\confproc@pdftkcreator (creator for individual PDF metadata)} + \else \typeout{| | ____ pdftk=false (for use with pdftk to add PDF metadata)} + \fi + \typeout{| | passed to hyperref: \confproc@hyperref} + \typeout{| | passed to geometry: \confproc@geometry} + \typeout{________________} + \typeout{ } +\fi +\ifconfproc@pdftk + \newwrite\pdftkinfoall + \immediate\openout\pdftkinfoall=\jobname.pdftk + \newwrite\pdftkinfofile +\fi +\LoadClass[10pt,letterpaper]{book} \RequirePackage{graphicx} \RequirePackage{pdfpages} \RequirePackage{fancyhdr} \RequirePackage[nottoc,notbib,notindex]{tocbibind} -\RequirePackage{titletoc} -\ifdefined\conf@TwoColumnTOC +\RequirePackage[rightlabels]{titletoc} +\ifconfproc@twocoltoc \RequirePackage[toc]{multitoc} \fi \RequirePackage{index} \RequirePackage{multicol} -\ifdefined\conf@TwoColumnIndex +\ifconfproc@twocolindex \renewenvironment{theindex}{% \if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi @@ -145,7 +396,6 @@ \if@restonecol \onecolumn \else \clearpage \fi} \else - \ifdefined\conf@ThreeColumnIndex% \renewenvironment{theindex}{% \if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi @@ -164,10 +414,8 @@ }{\end{multicols}% \if@restonecol \onecolumn \else \clearpage \fi } - \fi \fi \RequirePackage{sectsty} -\newcommand{\confcite}[1]{\cite{#1}} \RequirePackage{newapave} \RequirePackage{color} \definecolor{colorforlink}{rgb}{0,0,0.5} @@ -177,334 +425,255 @@ \RequirePackage[pdftex,raiselinks,hyperindex,backref,pagebackref,% plainpages=false,pdfpagelabels,breaklinks,linktocpage,% pdfstartview=XYZ]{hyperref} -\RequirePackage[figure,table]{hypcap} -\newcommand{\procpdfauthor}{Proceedings author/editor} -\newcommand{\procpdftitle}{Proceedings title} -\newcommand{\procpdfsubject}{Proceedings description} +%%\RequirePackage[figure,table]{hypcap} +\RequirePackage{bookmark} +\newcommand{\procpdfauthor}{[Proceedings author/editor]} +\newcommand{\procpdftitle}{[Proceedings title]} +\newcommand{\procpdfsubject}{[Proceedings short title] % + ([Proceedings Acronym]), [City], [Country], [Dates]} \AtBeginDocument{ \hypersetup{ pdfauthor = \procpdfauthor, pdftitle = \procpdftitle, pdfsubject = \procpdfsubject, pdfkeywords = {}, - pdfcreator = {LaTeX with `confproc' package}, + pdfcreator = {LaTeX + confproc v0.7}, pdfproducer = {pdfLaTeX}}} -\topmargin 0truept -\headheight 12truept -\footskip 14mm -\textheight 229truemm -\textwidth 175truemm -\voffset -28truept -\headsep 20truept +\iffalse\@twoside + \usepackage[bindingoffset=\proc@binding]{geometry} +\else% + \usepackage[twoside,bindingoffset=\proc@binding]{geometry} +\fi \renewcommand{\contentsname}{Conference Program} \renewcommand{\bibname}{Full Bibliography} \renewcommand{\indexname}{Index of Authors} -\newcommand{\proclhead}{\em \small Proceedings of the blah blah blah} -\newcommand{\proccfoot}{\small Proc-\thepage} +\newcommand{\proclhead}{} +\newcommand{\procchead}{{\color{red}Proceedings of the... \hfill % + 01--29 February, 2001}} +\newcommand{\procrhead}{} +\newcommand{\proclfoot}{} +\newcommand{\proccfoot}{{\small \color{red} Proc-\thepage}} +\newcommand{\procrfoot}{} \pagestyle{fancyplain} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{-5mm} -\lhead{\proclhead} -\rhead{} +\newlength{\procfootvskip} +\setlength{\procfootvskip}{0cm} +\newlength{\procoptfootvskip} +\ifconfproc@movepagenumber \setlength{\procoptfootvskip}{3mm}% +\else \setlength{\procoptfootvskip}{0mm} \fi +\lhead{\color{\confproc@colorheaders}\proclhead} +\chead{\color{\confproc@colorheaders}\procchead} +\rhead{\color{\confproc@colorheaders}\procrhead} \lfoot{} \rfoot{} -\cfoot{\proccfoot}{} +\cfoot{\color{\confproc@colorheaders}\vskip\procfootvskip% + \vskip\procoptfootvskip\proccfoot}% \ifdefined \conf@FancyHeadersExceptPapers \pagestyle{fancy} \else \pagestyle{empty} \fi -\newlength{\procoptfootskip} -\ifdefined\conf@TestPageNumbering% - \setlength{\procoptfootskip}{3mm}% - \cfoot{\vskip \procoptfootskip \proccfoot}% -\else% - \setlength{\procoptfootskip}{0mm}% -\fi -\ifdefined\conf@TocNumberingRight - \titlecontents{section}[2.5em]% left margin - {\vspace*{0.3em}}% space between two papers in the TOC - {}{}{\contentsmargin{0pt} \hfill \contentspage}% filler and page +\if@proc@TocNumberingRight + \titlecontents{section}[0em]% left margin + {\vspace*{0.5mm}}% space between two papers in the TOC + {}% + {}% + {\hfill \hspace*{-2.5em}\makebox[0pt][r]{\contentspage}\hspace*{2.5em}}% filler and page + [\addvspace{0.5mm}]% space after \else% - \dottedcontents{section}[]{\fillright}{}{1pc} \titlecontents{section}[2.5em]% - {\vspace*{0.3em}}% - {\hspace*{-2.5em}\contentspage\hspace*{2.5em}}% left shifting page num. - {\hspace*{-2.5em}\contentspage\hspace*{2.5em}}% idem + {\vspace*{0.5mm}}% + {\hspace*{-2.5em}\makebox[0pt][r]{\contentspage}\hspace*{2.5em}}% left shifting page num. + {\hspace*{-2.5em}\makebox[0pt][r]{\contentspage}\hspace*{2.5em}}% idem {}% filler and page + [\addvspace{0.5mm}]% space after \fi -\newcommand{\tocmattertocstyle}{ - \titlecontents{part}[-1em]{\addvspace{1pc}}% - {\contentspage\hspace*{3.2em}\contentsmargin{0pt}% - \makebox[0pt][r]{\huge\thecontentslabel\enspace}\large}% - {\contentspage\hspace*{3.2em}\contentsmargin{0pt}\large}% - {}[\addvspace{.5pc}] - \titlecontents{chapter}[-1em]{\addvspace{1pc}}% - {\contentspage\hspace*{3.2em}\contentsmargin{0pt}% - \makebox[0pt][r]{\huge\thecontentslabel\enspace}\large}% - {\contentspage\hspace*{3.2em}\contentsmargin{0pt}\large}% - {}[\addvspace{.5pc}] -} -\ifdefined\conf@TocNumberingRight +\if@proc@TocNumberingRight + \newcommand{\frontmattertocstyle}{ + \titlecontents{part}[0em]% + {\addvspace{3mm}}% + {\Large\bfseries}% + {\Large\bfseries}% + {}% + [\addvspace{0.5mm}] + \titlecontents{chapter}[0em]% + {\addvspace{2mm}}% + {\large\bfseries\itshape}% + {\large\bfseries\itshape}% + {}% + [\addvspace{0.5mm}] + } +\else + \newcommand{\frontmattertocstyle}{ + \titlecontents{part}[0em]% + {\addvspace{3mm}}% + {\Large\bfseries}% + {\Large\bfseries}% + {}% + [\addvspace{0.5mm}] + \titlecontents{chapter}[0em]% + {\addvspace{2mm}}% + {\large\bfseries\itshape}% + {\large\bfseries\itshape}% + {}% + [\addvspace{0.5mm}] + } +\fi +\if@proc@TocNumberingRight \newcommand{\mainmattertocstyle}{ + \titlecontents{part}[0pt]% + {\addvspace{3mm}}% + {\Large\bfseries}% + {\Large\bfseries}% + {}% + [\addvspace{0.5mm}] \titlecontents{chapter}[0pt]% - {\addvspace{1pc}\bfseries\itshape}% - {\contentsmargin{0pt}\bfseries% - \makebox[0pt][r]{\huge\thecontentslabel\enspace}\large}% - {\contentsmargin{0pt}\large}{}[\addvspace{.5pc}]% + {\addvspace{2mm}}% + {\large\bfseries\itshape}% + {\large\bfseries\itshape}% + {}% + [\addvspace{0.5mm}] + } +\else % left TOC page numbers + \newcommand{\mainmattertocstyle}{ \titlecontents{part}[0pt]% - {\addvspace{1pc}\bfseries}% - {\contentsmargin{0pt}\bfseries% - \makebox[0pt][r]{\huge\thecontentslabel\enspace}\large}% - {\contentsmargin{0pt}\large}{}[\addvspace{.5pc}]% -\else - \ifdefined\conf@TocNumberingLeft% default - \newcommand{\mainmattertocstyle}{ - \titlecontents{section}[2.5em]% - {\vspace*{0.3em}}% - {\hspace*{-2.5em}\contentspage\hspace*{2.5em}}% - {\hspace*{-2.5em}\contentspage\hspace*{2.5em}}% - {}% - \titlecontents{chapter}[0pt]% - {\addvspace{1pc}\bfseries\itshape}% - {\contentsmargin{0pt}\bfseries % - \makebox[0pt][r]{\huge\thecontentslabel\enspace}\large}% - {\contentsmargin{0pt}\large}{}[\addvspace{.5pc}]% - \titlecontents{part}[0pt]% - {\addvspace{1pc}\bfseries}% - {\contentsmargin{0pt}\bfseries % - \makebox[0pt][r]{\huge\thecontentslabel\enspace}\large}% - {\contentsmargin{0pt}\large}{}[\addvspace{.5pc}]% - } - \else - \newcommand\mainmattertocstyle{} - \fi + {\addvspace{3mm}}% + {\Large\bfseries}% + {\Large\bfseries}% + {}% + [\addvspace{0.5mm}] + \titlecontents{chapter}[0pt]% + {\addvspace{2mm}}% + {\large\bfseries\itshape}% + {\large\bfseries\itshape}% + {}% + [\addvspace{0.5mm}] + } \fi +\newcounter{npagespreamble} \renewcommand\mainmatter{% - \cleardoublepage + \PackageInfo{confproc}{counted \arabic{npagespreamble} pages in the preamble} + \cleardoublepage \@mainmattertrue - \pagenumbering{arabic} - \mainmattertocstyle} -\ifdefined\conf@TocNumberingRight + \pagenumbering{arabic}} +\if@proc@TocNumberingRight \newcommand{\backmattertocstyle}{ - \titlecontents{section}[]{}{}{}{}[]% \titlecontents{part}% - [0pt]{\addvspace{1pc}}{}{}% - {\contentsmargin{0pt} \large \hfill\contentspage}% - [\addvspace{.5pc}]% + [0pt]% + {\addvspace{3mm}}% + {\Large\bfseries}% + {\Large\bfseries}% + {\hfill \hspace*{-2.5em}\contentspage\hspace*{2.5em}}% + [\addvspace{0.5mm}] + \titlecontents{chapter}% + [0pt]% + {\addvspace{2mm}}% + {\large\bfseries\itshape}% + {\large\bfseries\itshape}% + {\hfill \hspace*{-2.5em}\contentspage\hspace*{2.5em}}% + [\addvspace{0.5mm}] + }% +\else + \newcommand{\backmattertocstyle}{% + \titlecontents{part}% + [0pt]% + {\addvspace{3mm}}% + {\makebox[0pt][r]{\contentspage}\hspace*{2.5em}\Large\bfseries}% + {\makebox[0pt][r]{\contentspage}\hspace*{2.5em}\Large\bfseries}% + {}% + [\addvspace{0.5mm}] + \titlecontents{chapter}% + [0pt]% + {\addvspace{2mm}}% + {\makebox[0pt][r]{\contentspage}\hspace*{2.5em}\large\itshape\bfseries}% + {\makebox[0pt][r]{\contentspage}\hspace*{2.5em}\large\itshape\bfseries}% + {}% + [\addvspace{0.5mm}] }% -\else% - \ifdefined\conf@TocNumberingLeft% - \newcommand{\backmattertocstyle}{% - \titlecontents{section}[]{}{}{}{}[]% - \titlecontents{part}% - [0pt]% - {\addvspace{1pc}}% - {\contentspage\hspace*{2.5em}\contentsmargin{0pt}% - \bfseries% - \makebox[0pt][r]{\huge\thecontentslabel\enspace}% - \large\bfseries}% - {\contentspage\hspace*{2.5em}\contentsmargin{0pt} \large\bfseries}% - {}% - [\addvspace{.5pc}]% - }% - \else% - \newcommand\backmattertocstyle{}% - \fi% \fi \renewcommand\backmatter{% - \if@openright - \cleardoublepage - \else - \clearpage - \fi + \if@openright \cleardoublepage + \else \clearpage \fi \@mainmatterfalse - \backmattertocstyle} -\ifdefined\conf@FancyHeadersExceptPapers - \newcommand{\otherpagestyle}{\pagestyle{fancy}} - \newcommand{\thisotherpagestyle}{\thispagestyle{fancy}} -\else - \newcommand{\otherpagestyle}{\pagestyle{empty}} - \newcommand{\thisotherpagestyle}{\thispagestyle{empty}} -\fi -\ifdefined\conf@FancyHeadersOnPapers - \newcommand{\PDFpagestyle}{\thispagestyle{fancy}} -\else - \newcommand{\PDFpagestyle}{\thispagestyle{empty}} -\fi + \cfoot{\color{\confproc@colorheaders}\vskip \procfootvskip % + \vskip \procoptfootvskip \proccfoot}} +\newcommand{\otherpagestyle}{ + \if@proc@FancyHeadersExceptPapers\pagestyle{fancy} + \else \pagestyle{empty} \fi} +\newcommand{\thisotherpagestyle}{ + \if@proc@FancyHeadersExceptPapers\thispagestyle{fancy} + \else \thispagestyle{empty} \fi} +\newcommand{\PDFpagestyle}{ + \if@proc@FancyHeadersOnPapers\thispagestyle{fancy} + \else\thispagestyle{empty} \fi} \chapterfont{\thisotherpagestyle} -\ifdefined\conf@WithCleardoublepage - \newcommand{\clearsingleordoublepage}{\cleardoublepage} -\else - \ifdefined\conf@WithClearsinglepage - \newcommand{\clearsingleordoublepage}{\clearpage} - \else - \newcommand{\clearsingleordoublepage}{\cleardoublepage} - \fi -\fi -\ifdefined\conf@FinalVersion - \newcommand{\UseBackRef}{} -\else - \newcommand{\CreateBackRef}{} -\fi -\newlength{\LaTeXxShift} -\newlength{\LaTeXyShift} -\newlength{\WordxShift} -\newlength{\WordyShift} -\ifdefined\shiftsafourpaper - \setlength{\LaTeXxShift}{0pt} - \setlength{\LaTeXyShift}{28pt} - \setlength{\WordxShift}{10pt} - \setlength{\WordyShift}{-40pt} -\else - \ifdefined\shiftsletterpaper - \setlength{\LaTeXxShift}{8.45pt} - \setlength{\LaTeXyShift}{-3pt} - \setlength{\WordxShift}{10pt} - \setlength{\WordyShift}{-40pt} - \fi -\fi -\newcommand{\papertitle}{} -\newcommand{\paperauthors}{} -\newcommand{\paperindex}{} -\newcommand{\paperref}{} -\newcommand{\paperpagenum}{} -\newcommand{\papercite}{} +\newcommand{\clearsingleordoublepage}{ + \iffalse\@twoside \clearpage + \else \cleardoublepage \fi} +\newlength{\LaTeXxShift} \setlength{\LaTeXxShift}{0pt} +\newlength{\LaTeXyShift} \setlength{\LaTeXyShift}{0pt} +\newlength{\WordxShift} \setlength{\WordxShift}{0pt} +\newlength{\WordyShift} \setlength{\WordyShift}{0pt} +\newcommand{\conf@paper@title}{} +\newcommand{\conf@paper@authors}{} +\newcommand{\conf@paper@index}{} +\newcommand{\conf@paper@ref}{} +\newcommand{\conf@paper@pagenum}{} +\newcommand{\conf@paper@cite}{} \newcommand{\papertitlestyle}{} \newcommand{\paperauthorstyle}{\texorpdfstring{\newline\itshape}{\break}} -\newcounter{paperpagenum} +\newcounter{npages} \newcommand{\proctoctitleauthor}[2]{% - \texorpdfstring{{\papertitlestyle#1}{\paperauthorstyle#2}}% - {{\papertitlestyle#1}}} -%% \begin{macrocode} -\newcommand{\procinsertpaper}[9]{ - \setcounter{paperpagenum}{#2} - #6% - \ifnum\thepaperpagenum=1 - \ifdefined\conf@procWithDebug\typeout{confproc: 1-page long paper}\fi - \ifdefined\UseBackRef - \includepdf[noautoscale,offset= #1,pages=1,% - linktodoc,linkname=\PAPERPATH #8.pdf,% - addtotoc={1, section, 1, \proctoctitleauthor{#4}{#5}, #3},% - pagecommand = {#9\PDFpagestyle}% - ]{\PAPERPATH #8.pdf}% - \else - \includepdf[noautoscale,offset= #1,pages=1,% - linktodoc,linkname=\PAPERPATH #8.pdf,% - addtotoc={1, section, 1, \proctoctitleauthor{#4}{#5}, #3},% - pagecommand = {#9\PDFpagestyle\vspace*{-1cm}\confcite{#7}}% - ]{\PAPERPATH #8.pdf}% - \fi - \else - \includepdf[noautoscale,offset= #1,pages=1,% - linktodoc,linkname=\PAPERPATH #8.pdf,% - addtotoc={1, section, 1, \proctoctitleauthor{#4}{#5}, #3},% - pagecommand = {#9\PDFpagestyle}% - ]{\PAPERPATH #8.pdf}% - \ifdefined\conf@BibMerge% - \includepdf[noautoscale,offset= #1,pages=\thepaperpagenum,% - linktodoc,linkname=\PAPERPATH #8.pdf,% - pagecommand = {\PDFpagestyle\vspace*{-2cm}\confcite{#7}}% - ]{\PAPERPATH #8.pdf}% - \PDFpagestyle{}% - \ifdefined\conf@procWithDebug - \typeout{confproc: bibliography insertion only}\fi - \else - \addtocounter{paperpagenum}{-1} - \includepdf[noautoscale,offset= #1,pages=2-\thepaperpagenum,% - linktodoc,linkname=\PAPERPATH #8.pdf,% - pagecommand = {\PDFpagestyle}% - ]{\PAPERPATH #8.pdf}% - \PDFpagestyle{}% - \addtocounter{paperpagenum}{1} - \ifdefined\CreateBackRef - \includepdf[noautoscale,offset= #1,pages=\thepaperpagenum,% - linktodoc,linkname=\PAPERPATH #8.pdf,% - pagecommand = {\PDFpagestyle\vspace*{-2cm}\confcite{#7}}% - ]{\PAPERPATH #8.pdf}% - \else - \ifdefined\UseBackRef - \includepdf[noautoscale,offset= #1,pages=\thepaperpagenum,% - linktodoc,linkname=\PAPERPATH #8.pdf,% - pagecommand = {\PDFpagestyle}% - ]{\PAPERPATH #8.pdf}% - \fi - \fi - \fi - \ifdefined\conf@procWithDebug - \typeout{confproc: partial paper insertion (last page=bib items)}\fi - \fi - \ifdefined\conf@procWithDebug - \typeout{---> file: #8.pdf (#2 pages)} - \typeout{---> title: #4} - \typeout{---> author(s): #5} - \typeout{---> index: #6} - \fi - \newpage - \ifdefined\conf@WithClearsinglepagePapers - \clearpage - \else - \ifdefined\conf@WithCleardoublepagePapers - \cleardoublepage - \fi - \fi -} + \texorpdfstring{{\papertitlestyle #1}{\paperauthorstyle #2}}% + {{\papertitlestyle #1}}} \renewcommand\tableofcontents{% - \tocmattertocstyle \clearsingleordoublepage \pdfbookmark[0]{\contentsname}{contents} - \if@twocolumn - \@restonecoltrue\onecolumn - \else - \@restonecolfalse - \fi - \section*{\contentsname - \@mkboth{% - \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}% - \@starttoc{toc}% - \if@restonecol\twocolumn\fi - \clearsingleordoublepage -} + \if@twocolumn \@restonecoltrue\onecolumn + \else \@restonecolfalse \fi + \section*{\contentsname}% + \@starttoc{toc}% + \if@restonecol\twocolumn\fi + \clearsingleordoublepage} \newcommand{\procday}[1]{% - \phantomsection% - \addcontentsline{toc}{part}{#1}} + \phantomsection \addcontentsline{toc}{part}{#1}} \newcommand{\session}[1]{% - \phantomsection% - \addcontentsline{toc}{chapter}{#1}} + \phantomsection \addcontentsline{toc}{chapter}{#1}} \newcommand{\paperswitch}{} \setlength{\bibhang}{0.5em} % -\renewenvironment{thebibliography}[1] - {\ifdefined\conf@TwoColumnBib% - \twocolumn - \fi - \ifdefined\conf@BibMerge% - \nocite{*}% - \else% - \clearsingleordoublepage% - \fi% - \section*{\bibname}% - \addcontentsline{toc}{part}{\bibname} - \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}% - \procbibintro - \list{\@biblabel{\@arabic\c@enumiv}}% - {\settowidth\labelwidth{\@biblabel{#1}}% - \leftmargin\labelwidth - \advance\leftmargin\labelsep - \@openbib@code - \usecounter{enumiv}% - \let\p@enumiv\@empty - \renewcommand\theenumiv{\@arabic\c@enumiv}}% - \sloppy - \clubpenalty4000 - \@clubpenalty \clubpenalty - \widowpenalty4000% - \sfcode`\.\@m} - {\def\@noitemerr - {\@latex@warning{Empty `thebibliography' environment}}% - \endlist - \setlength{\labelsep}{0em} - \setlength{\itemindent}{-\bibhang} - \setlength{\leftmargin}{\bibhang}} +\if@proc@BibNone + \renewenvironment{thebibliography}[1]{% + \PackageInfo{confproc}{ignoring #1 biblio file (`bib=none' option)}} +\else + \renewenvironment{thebibliography}[1]{% + \ifconfproc@twocolbib \twocolumn \fi + \ifdefined\conf@BibMerge \nocite{*} + \else \clearsingleordoublepage \fi% + \section*{\bibname}% + \addcontentsline{toc}{part}{\bibname} + \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}% + \procbibintro + \list{\@biblabel{\@arabic\c@enumiv}}% + {\settowidth\labelwidth{\@biblabel{#1}}% + \leftmargin\labelwidth + \advance\leftmargin\labelsep + \@openbib@code + \usecounter{enumiv}% + \let\p@enumiv\@empty + \renewcommand\theenumiv{\@arabic\c@enumiv}}% + \sloppy + \clubpenalty4000 + \@clubpenalty \clubpenalty + \widowpenalty4000% + \sfcode`\.\@m} + {\def\@noitemerr + {\@latex@warning{Empty `thebibliography' environment}}% + \endlist + \setlength{\labelsep}{0em} + \setlength{\itemindent}{-\bibhang} + \setlength{\leftmargin}{\bibhang}} +\fi \renewcommand\newblock{\hskip 0em plus 0.0em minus .07em} \newcommand{\procbibintro}{{\it ~~~This bibliography is a compilation of all bibliographic references from each paper. Page numbers that @@ -516,9 +685,351 @@ \onecolumn \section*{~~}% \addcontentsline{toc}{part}{\indexname}% - \renewcommand{\proclhead}{}% + \renewcommand{\procchead}{}% \renewcommand{\proccfoot}{}% \printindex} +\ifconfproc@showmarginlines + \PackageInfo{confproc}{drawing margin lines' command (with a table)}% + \pagestyle{fancyplain} + \renewcommand{\headrulewidth}{0.0pt} + \newcommand{\procmarginlines}{ + \renewcommand{\footrulewidth}{0.4pt} + \noindent + \vspace*{7mm} % adjusting vertical initial space + \begin{table}[h!] % table for vertical lines + \centering + \color{blue} + \begin{tabular}{|@{}p{3.3in}@{}|@{}p{0.3in}@{}|@{}p{3.3in}@{}|} % spacing between columns & vertical lines + \hline % upper horizontal line + ~~~~~~~~~~~ & ~ &~~~~~~~~~~~~~\\ + \vspace*{7.5in} % less than a page height + ~~~~~~~~~~~ & ~ &~~~~~~~~~~~~~\\ + \end{tabular} + \end{table} + } +\else + \newcommand{\procmarginlines}{} + \PackageInfo{confproc}{no margin lines}% +\fi +\newcommand{\PAPERPATH}{} + +\newcommand{\confemptypapercite}[2]{% + \vspace*{0.3\textheight}% + \begin{flushleft} + \begin{tabular}{lp{0.7\textwidth}} + \Large [Title] & \Large \conf@papertitle\\ + & \vspace*{0.5cm}\\ + \Large [Author(s)] & \Large \conf@paperauthor\\ + & \vspace*{0.5cm}\\ + \Large [File name] & \Large \url{\PAPERPATH #2}\\ + & \vspace*{0.5cm}\\ + \if@proc@BibNone + \Large [Citation(s)] & \Large [disabled by ``bib=none'' option]\\ + & \vspace*{2cm}\\ + \else + \Large [Citation(s)] & \Large \confcite{\conf@cite}\\ + & \vspace*{2cm}\\ + \fi + & \textbf{\Huge Page #1}\\ + \end{tabular} + \end{flushleft} +} +\newcounter{conf@npages} +\newcommand{\confemptypaper}[2]{% + \vspace*{0.3\textheight}% + \begin{flushleft} + \begin{tabular}{lp{0.7\textwidth}} + \Large [Title] & \Large \conf@papertitle\\ + & \vspace*{0.5cm}\\ + \Large [Author(s)] & \Large \conf@paperauthor\\ + & \vspace*{0.5cm}\\ + \Large [File name] & \Large \url{\PAPERPATH #2}\\ + & \vspace*{0.5cm}\\ + \if@proc@BibNone + \Large [Citation(s)] & \Large [disabled by ``bib=none'' option]\\ + & \vspace*{2cm}\\ + \else + \Large [Citation(s)] & \Large [see page \theconf@npages{} of this paper]\\ + & \vspace*{2cm}\\ + \fi + & \textbf{\Huge Page #1}\\ + \end{tabular} + \end{flushleft} +} +%%%%% begin key-value option management for \procpaper{} command %%%%% +\newlength{\conf@xshift} +\newlength{\conf@yshift} +\newcounter{conf@switch} +\newcounter{conf@firstpage} +\newcounter{conf@lastpage} +\newcommand{\conf@pagecmd}{} +\newcommand{\conf@tmpauthorlist}{} +\newcommand{\conf@tmptitle}{} +\newcommand{\confstylecheckauthor}{} +\newcommand{\confstylechecktitle}{} +\newcounter{locnpages}% +\def\procpaper{\@ifnextchar[{\@procpaper}{\@procpaper[]}} +\def\@procpaper[#1]#2{{% +\ifthenelse{\equal{\confproc@paperselec}{all}\or\equal{\confproc@paperselec}{#2}} + {\setlength{\conf@xshift}{0cm} + \setlength{\conf@yshift}{0cm} + \setcounter{conf@npages}{1} + \setcounter{conf@switch}{1} + \def\conf@papertitle{Default paper title} + \def\conf@paperauthor{Default paper author list} + \def\conf@index{} + \def\conf@cite{} + \def\conf@bookmark{} %\pdfbookmark[2]{Default paper author 1}{p_XXX.author1}} + \setkeys{ppaper}{#1} + \iffalse\@twoside \addtolength{\conf@xshift}{0cm} + \else \addtolength{\conf@xshift}{\proc@binding} \fi + + \if@proc@ReplacePDFs + \immediate\write\npagesfile {file #2.pdf has \theconf@npages \space pages} + \clearsingleordoublepage + \setcounter{conf@firstpage}{\thenpagespreamble+\thepage} + \setcounter{conf@lastpage}{\thenpagespreamble+\thepage+% + \theconf@npages-1} + + \phantomsection + \addcontentsline{toc}{section}{\proctoctitleauthor{\conf@papertitle}% + {\conf@paperauthor}} + \ifnum\theconf@npages=0 + \typeout{confproc: Error, you asked for an empty paper} + \typeout{confproc: #2.pdf} + \fi + \ifnum\theconf@npages=1 + \confemptypapercite{1}{#2.pdf} \conf@bookmark \conf@index{}% + \fi + \ifnum\theconf@npages=2 + \confemptypaper{1}{#2.pdf} \conf@bookmark \conf@index{}% + \newpage \confemptypapercite{2}{#2.pdf} + \fi + \ifnum\theconf@npages>2 + \confemptypaper{1}{#2.pdf} \conf@bookmark \conf@index{}% + \setcounter{locnpages}{2} + \ifthenelse{\thelocnpages<\theconf@npages}% + {\typeout{smaller}}% + {\typeout{bigger}} + \whiledo{\value{locnpages}<\value{conf@npages}}{% + \newpage \confemptypaper{\thelocnpages}{#2.pdf}% + \addtocounter{locnpages}{1}} + \newpage \confemptypapercite{\theconf@npages}{#2.pdf} + \fi + \setcounter{conf@lastpage}{\thenpagespreamble+\thepage} + \else + \setcounter{conf@firstpage}{\thenpagespreamble+\thepage} + \conf@index{}% + \ifconfproc@showpapernumber + \cfoot{\color{\confproc@colorheaders}\vskip \procfootvskip % + \vskip \procoptfootvskip \proccfoot\\ + \color{\confproc@colorheaders}[paper \theconf@switch{}]}{} + \fi + \ifconfproc@checktitle + \renewcommand{\conf@tmptitle}{{\color{blue}% + \confstylechecktitle\conf@papertitle}} + \else + \renewcommand{\conf@tmptitle}{} + \fi + \ifconfproc@checkauthor + \renewcommand{\conf@tmpauthorlist}{{\color{blue}% + \confstylecheckauthor\conf@paperauthor}} + \else + \renewcommand{\conf@tmpauthorlist}{} + \fi + \renewcommand{\conf@pagecmd}{\conf@tmptitle\\ \conf@tmpauthorlist} + + \if@proc@IncludeFullPDFs % include all pages in order to count!!! + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},pages=1,% + linktodoc,linkname=\PAPERPATH #2.pdf,% + addtotoc={1, section, 1, % + \proctoctitleauthor{\conf@papertitle}{\conf@paperauthor},% + \theconf@switch},% + pagecommand = {\conf@pagecmd\procmarginlines % + \conf@bookmark \PDFpagestyle}% + ]{\PAPERPATH #2.pdf}% + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},pages=2-,% + linktodoc,linkname=\PAPERPATH #2.pdf,% + pagecommand = {\procmarginlines \PDFpagestyle}% + ]{\PAPERPATH #2.pdf}% + \else + \ifnum\theconf@npages=1 % 1-page paper + \if@proc@verbose + \typeout{confproc: 1-page long paper} + \fi + \if@proc@BibNone + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=1,linktodoc,linkname=\PAPERPATH #2.pdf,% + addtotoc={1, section, 1, % + \proctoctitleauthor{\conf@papertitle}{\conf@paperauthor},% + \theconf@switch},% + pagecommand = {\conf@pagecmd\procmarginlines % + \conf@bookmark \PDFpagestyle}% + ]{\PAPERPATH #2.pdf}% + \else + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=1,linktodoc,linkname=\PAPERPATH #2.pdf,% + addtotoc={1, section, 1,% + \proctoctitleauthor{\conf@papertitle}{\conf@paperauthor},% + \theconf@switch},% + pagecommand = {\conf@pagecmd\procmarginlines % + \conf@bookmark \PDFpagestyle\vspace*{-1cm}\confcite{\conf@cite}}% + ]{\PAPERPATH #2.pdf}% + \fi + \else + \ifnum\theconf@npages=2 % 2-pages paper + \if@proc@verbose\typeout{confproc: 2-page long paper}\fi + \if@proc@BibNone + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=1,linktodoc,linkname=\PAPERPATH #2.pdf,% + addtotoc={1, section, 1, % + \proctoctitleauthor{\conf@papertitle}{\conf@paperauthor},% + \theconf@switch},% + pagecommand = {\conf@pagecmd\procmarginlines \conf@bookmark % + \PDFpagestyle}% + ]{\PAPERPATH #2.pdf}% + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=2,linktodoc,linkname=\PAPERPATH #2.pdf,% + pagecommand = {\procmarginlines \PDFpagestyle}% + ]{\PAPERPATH #2.pdf}% + \else + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=1,linktodoc,linkname=\PAPERPATH #2.pdf,% + addtotoc={1, section, 1, % + \proctoctitleauthor{\conf@papertitle}{\conf@paperauthor},% + \theconf@switch},% + pagecommand = {\conf@pagecmd\procmarginlines \conf@bookmark % + \PDFpagestyle\vspace*{-1cm}\confcite{\conf@cite}}% + ]{\PAPERPATH #2.pdf}% + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=2,linktodoc,linkname=\PAPERPATH #2.pdf,% + pagecommand = {\procmarginlines % + \PDFpagestyle\vspace*{-2cm}\confcite{\conf@cite}}% + ]{\PAPERPATH #2.pdf}% + \fi + \else % 3 pages and more + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=1,% + linktodoc,linkname=\PAPERPATH #2.pdf,% + addtotoc={1, section, 1, % + \proctoctitleauthor{\conf@papertitle}{\conf@paperauthor},% + \theconf@switch},% + pagecommand = {\conf@pagecmd\procmarginlines % + \conf@bookmark \PDFpagestyle}% + ]{\PAPERPATH #2.pdf}% + \ifdefined\conf@BibMerge% + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=\theconf@npages,linktodoc,linkname=\PAPERPATH #2.pdf,% + pagecommand = {\procmarginlines % + \PDFpagestyle\vspace*{-2cm}\confcite{\conf@cite}}% + ]{\PAPERPATH #2.pdf}% + \PDFpagestyle{}% + \if@proc@verbose\typeout{confproc: bibliography insertion only}\fi + \else + \addtocounter{conf@npages}{-1} + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=2-\theconf@npages,linktodoc,linkname=\PAPERPATH #2.pdf,% + pagecommand = {\procmarginlines \PDFpagestyle}% + ]{\PAPERPATH #2.pdf}% + \PDFpagestyle{}% + \addtocounter{conf@npages}{1} + \if@proc@BibNone + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=\theconf@npages,linktodoc,linkname=\PAPERPATH #2.pdf,% + pagecommand = {\procmarginlines \PDFpagestyle}% + ]{\PAPERPATH #2.pdf}% + \else + \includepdf[noautoscale,offset=\conf@xshift{} \conf@yshift{},% + pages=\theconf@npages,linktodoc,linkname=\PAPERPATH #2.pdf,% + pagecommand = {\procmarginlines % + \PDFpagestyle\vspace*{-2cm}\confcite{\conf@cite}}% + ]{\PAPERPATH #2.pdf}% + \fi + \fi + \fi + \fi + \if@proc@verbose + \typeout{confproc: partial paper insertion % + (last page=bib items)} + \fi + \fi + \setcounter{conf@lastpage}{\thenpagespreamble+\thepage-1} + \setcounter{conf@npages}{\theconf@lastpage} + \addtocounter{conf@npages}{- \theconf@firstpage} + \immediate\write\npagesfile{file #2.pdf has \theconf@npages \space pages} + \newpage + \ifconfproc@twosidepapers \cleardoublepage + \else \clearpage \fi + \fi + \if@proc@verbose + \typeout{______ debug: insert paper ______} + \typeout{confproc/file: #2.pdf (\theconf@npages \space pages)} + \typeout{confproc/title: \conf@papertitle} + \typeout{confproc/authors: \conf@paperauthor} + \typeout{confproc/index: \conf@index} + \typeout{confproc/shift: (\the\conf@xshift, \the\conf@yshift)} + \typeout{confproc/citations: \conf@cite} + \typeout{confproc/bookmarks: \conf@bookmark} + \typeout{confproc/switch ID: \theconf@switch} + \typeout{_______________________} + \fi + \ifconfproc@pdftk +%%-- pdftk version: !!! does not work with PDF v > 1.3 +%% \immediate\write\pdftkinfoall{pdftk A=${PDFFILE} cat A\arabic{conf@firstpage}-\arabic{conf@lastpage} output ${SPPATH}/#2.pdf} +%%-- Ghostscript version: ok with PDF v = 1.4 + \immediate\write\pdftkinfoall{gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=\arabic{conf@firstpage} -dLastPage=\arabic{conf@lastpage} -sOUTPUTFILE=${SPPATH}/#2.pdf ${PDFFILE}} + +%%-- pdftk version: !!! does not work with PDF v > 1.3 +%% \immediate\write\pdftkinfoall{pdftk A=${PDFFILE} cat A\arabic{conf@firstpage}-\arabic{conf@lastpage} output ${SPPATH}/#2.pdf} +%%-- Ghostscript version: ok with PDF v = 1.4 + \immediate\openout\pdftkinfofile=\confproc@pdftkfolder/#2.pdftk + \immediate\write\pdftkinfofile {InfoKey: Title} + \immediate\write\pdftkinfofile {InfoValue: \conf@papertitle} + \immediate\write\pdftkinfofile {InfoKey: Author} + \immediate\write\pdftkinfofile {InfoValue: \conf@paperauthor} + \immediate\write\pdftkinfofile {InfoKey: Subject} + \immediate\write\pdftkinfofile {InfoValue: \confproc@pdftksubject} + \immediate\write\pdftkinfofile {InfoKey: Producer} + \immediate\write\pdftkinfofile {InfoValue: \confproc@pdftkproducer} + \immediate\write\pdftkinfofile {InfoKey: Creator} + \immediate\write\pdftkinfofile {InfoValue: \confproc@pdftkcreator} + \immediate\closeout\pdftkinfofile + \ifconfproc@verbose + \typeout{________________} + \typeout{pdftk A=${PDFFILE} cat A\arabic{conf@firstpage}-\arabic{conf@lastpage} output ${SPPATH}/#2.pdf} + \typeout{gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=\arabic{conf@firstpage} -dLastPage=\arabic{conf@lastpage} -sOUTPUTFILE=${SPPATH}/#2.pdf ${PDFFILE}} + \typeout{InfoName: #2.info} + \typeout{InfoKey: Title} + \typeout{InfoValue: \conf@papertitle} + \typeout{InfoKey: Author} + \typeout{InfoValue: \conf@paperauthor} + \typeout{InfoKey: Subject} + \typeout{InfoValue: \confproc@pdftksubject} + \typeout{InfoKey: Producer} + \typeout{InfoValue: \confproc@pdftkproducer} + \typeout{InfoKey: Creator} + \typeout{InfoValue: \confproc@pdftkcreator} + \typeout{InfoEnd} + \fi + \fi + }{} +}} +\define@key{ppaper}{xshift}{\setlength{\conf@xshift}{#1}} +\define@key{ppaper}{yshift}{\setlength{\conf@yshift}{#1}} +\define@key{ppaper}{npages}{\setcounter{conf@npages}{#1}} +\define@key{ppaper}{switch}{\setcounter{conf@switch}{#1}} +\define@key{ppaper}{title}{\def\conf@papertitle{#1}} +\define@key{ppaper}{author}{\def\conf@paperauthor{#1}} +\define@key{ppaper}{index}{\def\conf@index{#1}} +\define@key{ppaper}{cite}{\def\conf@cite{#1}} +\define@key{ppaper}{bookmark}{\def\conf@bookmark{#1}} +%%%%% end key-value option management for \procpaper{} command %%%%% +\newcommand{\procinsertpaper}[9]{% + \PackageWarning{confproc}{!!! '\procinsertpaper' cmd is obsolete (v0.5) % + and does not preserve PDFs' horizontal and vertical shifts, nor general % + bib items. Please use the '\procpaper' command instead.} + \procpaper[title={#4},author={#5},npages=#2,index={#6},cite={#7},% + bookmark={#9}]{#8}} \InputIfFileExists{confproc.cfg} {\typeout{************^^J% * Local config file confproc.cfg used *^^J% diff --git a/Master/texmf-dist/doc/latex/confproc/example/confproc.ist b/Master/texmf-dist/doc/latex/confproc/example/confproc1.ist index 7c862d052b3..317765b6612 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/confproc.ist +++ b/Master/texmf-dist/doc/latex/confproc/example/confproc1.ist @@ -1,14 +1,11 @@ %% -%% This is file `confproc.ist', -%% generated with the docstrip utility. -%% +%% This is file `confproc1.ist', generated with the docstrip utility. %% The original source files were: +%% confproc.dtx (with options: `doc') %% -%% confproc.dtx (with options: `doc') -%% -%% This is `confproc.ist', an index formatting example, for the confproc package. -%% Copyright (C) 2007 by Vincent Verfaille -%% <vincent@music.mcgill.ca> +%% This is `confproc1.ist', an index formatting example, for the confproc package. +%% Copyright (C) 2010 by Vincent Verfaille +%% <[lastname].[packagename]@gmail.com> %% %% This file is part of the confproc package. %% ------------------------------------------- diff --git a/Master/texmf-dist/doc/latex/confproc/example/confproc2.ist b/Master/texmf-dist/doc/latex/confproc/example/confproc2.ist new file mode 100644 index 00000000000..505b651dce5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/confproc2.ist @@ -0,0 +1,39 @@ +%% +%% This is file `confproc2.ist', generated with the docstrip utility. +%% The original source files were: +%% confproc.dtx (with options: `doc') +%% +%% This is `confproc2.ist', an index formatting example, for the confproc package. +%% Copyright (C) 2010 by Vincent Verfaille +%% <[lastname].[packagename]@gmail.com> +%% +%% This file is part of the confproc package. +%% ------------------------------------------- +%% +%% It may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License, either version 1.2 of this license or +%% (at your option) any later version. +%% +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% This file may not be distributed without the original source file +%% `confproc.dtx'. +%% +%% The list of all files belonging to the confproc package is given in +%% the file `readme.txt'. +%% +%% For more details, LaTeX the source `confproc.dtx'. +%% + +%%--add a letter between 2 lists, and horizontal lines + slashes around letters +heading_prefix "{\\bfseries\\hfil------/\\hfil " +heading_suffix "\\hfil/------\\hfil}\\nopagebreak\n" +headings_flag 1 + +%%-- Add lines with points between name and page numbers +delim_0 "\\dotfill" +delim_1 "\\dotfill" +delim_2 "\\dotfill" diff --git a/Master/texmf-dist/doc/latex/confproc/example/countnbpages.sh b/Master/texmf-dist/doc/latex/confproc/example/countnbpages.sh new file mode 100644 index 00000000000..b104be0c39a --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/countnbpages.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +#-- set path to LaTeX binaries +LATEXPATH="/usr/texbin/" # TeXLive +#-- set names of LaTeX and related compilers +PDFLATEX=$LATEXPATH"pdflatex" + +TEXFILE="simple_proceedings" #- set document's name +PDFSPATH="papers" #- set the papers' folder name + +rm -f ${TEXFILE}.npt # count pages from terminal +cd ${PDFSPATH} +for file in *.pdf +do + pdfinfo -meta $file | grep "Pages:" > tmp0 + echo "file $file has `sed 's/.*\([0-9]\).*/\1/' < tmp0` pages" >> ../${TEXFILE}.npt +done +rm -f tmp0 +cd .. +more ${TEXFILE}.npt diff --git a/Master/texmf-dist/doc/latex/confproc/example/example.pdf b/Master/texmf-dist/doc/latex/confproc/example/example.pdf Binary files differdeleted file mode 100644 index 508cbb5229d..00000000000 --- a/Master/texmf-dist/doc/latex/confproc/example/example.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/confproc/example/example.tex b/Master/texmf-dist/doc/latex/confproc/example/example.tex deleted file mode 100644 index db358ccd792..00000000000 --- a/Master/texmf-dist/doc/latex/confproc/example/example.tex +++ /dev/null @@ -1,170 +0,0 @@ -%% -%% This is file `example.tex', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% confproc.dtx (with options: `example') -%% -%% This is `example.tex', an example file for the confproc package. -%% Copyright (C) 2007 by Vincent Verfaille <vincent@music.mcgill.ca> -%% -%% This file is part of the confproc package. -%% ------------------------------------------- -%% -%% It may be distributed and/or modified under the conditions of the -%% LaTeX Project Public License, either version 1.2 of this license or -%% (at your option) any later version. -%% -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.2 or later is part of all distributions of LaTeX version -%% 1999/12/01 or later. -%% -%% This file may not be distributed without the original source file -%% `confproc.dtx'. -%% -%% The list of all files belonging to the confproc package is given in -%% the file `readme.txt'. -%% -%% For more details, LaTeX the source `confproc.dtx'. -%% -\NeedsTeXFormat{LaTeX2e}[1994/12/01]% -\ProvidesFile{example.tex} -\def\DescribesFile#1 [#2 #3 #4 (#5)] - {\def\filedate{#2}\def\fileversion{#3}} -\DescribesFile{confproc.cls} - [2007/10/17 v0.4f: Example for confproc (VV)] -%%\documentclass[a4paper,10pt,twoside,twosidepapers,% -%% compil=bibbackref,headers=allpages,movepagenumbers,electronic,% -%% citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl,% -%% pagecolor=colorforpage]{confproc} -\input{exclass} -\usepackage{setspace} -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{mathptmx} -\usepackage[super]{nth} -\usepackage{layout} -\usepackage{layouts} -\usepackage[width=175mm,height=229mm,voffset=-10.22mm,top=36.68mm,% - headsep=7.05mm,footskip=11.29mm,twoside,left=20.44mm]{geometry} -%%\headheight 12truept -\setlength{\LaTeXxShift}{8.45pt} -\setlength{\LaTeXyShift}{-3pt} -\setlength{\WordxShift}{10pt} -\setlength{\WordyShift}{-40pt} -\definecolor{colorforlink}{rgb}{0,0,0.8} -%%\definecolor{colorforpage}{rgb}{0,0,0.7} -\definecolor{colorforcite}{rgb}{0,0.8,0} -\definecolor{colorforurl}{cmyk}{1,0,0,0} -\renewcommand{\proclhead}{\em \small Proc.~of the \nth{9} % -Int.~Conference on Digital Audio Effects (DAFx-06), Montreal, % -Canada, September 18-20, 2006} -\renewcommand{\proccfoot}{\small DAFX-\thepage} -\setlength{\procoptfootskip}{3mm} -\renewcommand{\procpdfauthor}{Vincent Verfaille, McGill University} -\renewcommand{\procpdftitle}{DAFx-06 Proceedings} -\renewcommand{\procpdfsubject}{Proc. 9th Int. Conf. on % - Digital Audio Effects - Montreal, Quebec, Canada} -\renewcommand{\bibname}{Full Bibliography} -\renewcommand{\indexname}{Index of Authors} -\newcommand{\procbibfile}{\BIBPATH exbiblio} -\newcommand{\PICTPATH}{pictures/} -\newcommand{\BIBPATH}{} -\newcommand{\PAPERPATH}{papers/} -\newcommand{\TEXTPATH}{} -\makeindex -%%%=========== PROCEEDINGS =========== -\begin{document} -\frontmatter -%%\layout -%%\begin{figure} -%% \setlayoutscale{0.8} \tocdiagram -%% \caption{Table of Contents entry parameters} \label{fig:tocp} -%%\end{figure} -%%\begin{figure} -%% \setlayoutscale{0.8} \currenttoc \tocdesign -%% \caption{Typical Table of Contents entry for this document} -%% \label{fig:thistoc} -%%\end{figure} -%%\clearsingleordoublepage -\setcounter{page}{1} -\pdfbookmark[0]{Preamble}{preamble} -\pdfbookmark[1]{Cover}{cover} -\author{V. Verfaille, McGill University} -\title{Proceedings of the \nth{9} International Conference\\ - on Digital Audio Effects\\ Montreal, Quebec, Canada} -\date{Sept 18--20, 2006} -\maketitle -\newpage -\vspace*{1.7cm} -\pdfbookmark[1]{Publishing informations}{publishing} -\thispagestyle{empty} -\noindent {\bf Published by:}\\ Laboratory Name\\ Department name\\ -School Name\\ University Name\\ -\url{http://www.conferencesite.com}\\ -\vspace*{0.15cm}\newline -\noindent {\bf ISBN: X-XXXX-XXXXXX}\\ -\vspace*{0.35cm}\newline -\noindent {\bf Credits:}\\ -Cover design: Firstname Lastname\\ -Logo photo: Firstname Lastname\\ -\LaTeX{} editor: Firstname Lastname\\ -using \LaTeX's `confproc' class (optional: by V. Verfaille)\\ -\vspace*{0.35cm}\newline -\noindent Printed in City by Print-Company --- Month 20XX -\otherpagestyle -%%%-- Welcome letters -\clearsingleordoublepage -\vspace*{0.6cm} -\thisotherpagestyle -\pdfbookmark[1]{Welcome from Firstname Lastname}{welcome} -\section*{Welcome from Firstname Lastname, Conference Chair} -\vspace*{1.1cm} -\onehalfspace -\begin{center} - \begin{minipage}[h]{14cm} - Text of the welcome letter, with 1.5 lines spacing, blah blah... - Text of the welcome letter, with 1.5 lines spacing, blah blah... - Text of the welcome letter, with 1.5 lines spacing, blah blah... - Text of the welcome letter, with 1.5 lines spacing, blah blah... - Text of the welcome letter, with 1.5 lines spacing, blah blah... - Text of the welcome letter, with 1.5 lines spacing, blah blah... - \end{minipage} -\end{center} -\doublespace -\begin{center} - \begin{minipage}[h]{14cm} - Text of the welcome letter, with 2 lines spacing, blah blah... - Text of the welcome letter, with 2 lines spacing, blah blah... - Text of the welcome letter, with 2 lines spacing, blah blah... - Text of the welcome letter, with 2 lines spacing, blah blah... - Text of the welcome letter, with 2 lines spacing, blah blah... - Text of the welcome letter, with 2 lines spacing, blah blah... - \end{minipage} -\end{center} -\singlespace -\tableofcontents -%%%==== BEGINNING OF PAPERS ==== -\mainmatter -\input{\TEXTPATH expapersswitch} -\procday{Day 1} - \session{Oral Session 1} - \paperid{45}{p_001} - \paperid{21}{p_003} - \session{Poster Session 1} - \paperid{33}{p_005} -\procday{Day 2} - \session{Oral Session 2} - \paperid{75}{p_007} - \paperid{27}{p_009} -%%%==== END OF PAPERS ==== -\backmatter -\bibliographystyle{newapave} -{\footnotesize\bibliography{\procbibfile}} -\insertindex -\end{document} -\endinput -%% -%% End of file `example.tex'. diff --git a/Master/texmf-dist/doc/latex/confproc/example/example1empty.pdf b/Master/texmf-dist/doc/latex/confproc/example/example1empty.pdf Binary files differnew file mode 100644 index 00000000000..1aac848bc6c --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/example1empty.pdf diff --git a/Master/texmf-dist/doc/latex/confproc/example/example1empty.tex b/Master/texmf-dist/doc/latex/confproc/example/example1empty.tex new file mode 100644 index 00000000000..9df69175052 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/example1empty.tex @@ -0,0 +1,113 @@ +%% +%% This is file `example1empty.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% confproc.dtx (with options: `example1empty') +%% +%% This is `example1empty.tex', an example file for the confproc package. +%% Copyright (c) 2010 by Vincent Verfaille <verf[...].confproc@gmail.com> +%% +%% This file is part of the confproc package. +%% ------------------------------------------- +%% +%% It may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License, either version 1.2 of this license or +%% (at your option) any later version. +%% +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% This file may not be distributed without the original source file +%% `confproc.dtx'. +%% +%% The list of all files belonging to the confproc package is given in +%% the `readme.txt' file. +%% +%% For more details, LaTeX the source `confproc.dtx'. +%% +\documentclass[letterpaper,10pt,twoside,% + electronic,% [printed] | electronic + papers=countpages,% empty | draft | [final] | countpages + paperselec=all, %[all] | p_001 | p_fake + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + linkcolor=blue,urlcolor=blue},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{mathptmx} +\usepackage[super]{nth} + +\renewcommand{\procpdfauthor}{{\color{red}[Proceedings editor], [University]}} +\renewcommand{\procpdftitle}{{\color{red}[Acronym] Proceedings}} +\renewcommand{\procpdfsubject}{{\color{red}Proc. of the Xth International Conference % + on [Nice Topic] ([Acronym]), [City], [Country], [Dates]}} + +\renewcommand{\procchead}{} % +\renewcommand{\proclhead}{{\em \small \procpdfsubject}} + +\author{\procpdfauthor} +\title{\procpdftitle} +\date{\today} +\renewcommand{\PAPERPATH}{papers/} +\makeindex + +%%%=========== PROCEEDINGS =========== +\begin{document} +\frontmatter +\setcounter{page}{1} +\pdfbookmark[0]{Preamble}{preamble} +\pdfbookmark[1]{Cover}{cover} +\maketitle +\newpage + +\otherpagestyle +\tableofcontents + +%%%==== BEGINNING OF PAPERS ==== +\mainmatter + +\procday{Day 1} + \session{Oral Session 1} + \procpaper[switch=45,% + title={Templates for One Author},% + author={Alfred Alabama},% + index={\index{Alabama, Alfred}},% + ]{p_001} + \procpaper[switch=21,% + title={Templates for One Author with Two Affiliations},% + author={Bob Boogie-Woogie},% + index={\index{Boogie-Woogie, Bob}},% + ]{p_003} + \session{Poster Session 1} + \procpaper[switch=33,% + title = {Templates for Two Authors},% + author={Alfred Alabama, Chris Christmas},% + index={\index{Alabama, Alfred}\index{Christmas, Chris}},% + ]{p_005} + +\procday{Day 2} + \session{Oral Session 2} + \procpaper[switch=75,% + title={Templates for Three Authors},% + author={Bob Boogie-Woogie, Chris Christmas, Don Didon},% + index={\index{Boogie-Woogie, Bob}\index{Christmas, Chris}% + \index{Didon, Don}},% + ]{p_007} + \procpaper[switch=27,% + title={Templates f\'or F\`o\"ur Àuthors},% + author={J\o{}hn J\"oe, K\'e\~{n}t K\^{\i}ng, L\`ou L\'ou,% + M\`anfr\'ed J. M\^ost\u{e}k\i}, + index={\index{J\"oe, J\o{}hn}\index{K\^{\i}ng, K\'e\~{n}t}% + \index{L\'ou, L\`ou}\index{M\^ost\u{e}k\i, M\`anfr\'ed J.}}, + ]{p_009} + +%%%==== END OF PAPERS ==== +\backmatter +\insertindex +\end{document} diff --git a/Master/texmf-dist/doc/latex/confproc/example/example2custom.pdf b/Master/texmf-dist/doc/latex/confproc/example/example2custom.pdf Binary files differnew file mode 100644 index 00000000000..c09d42aef25 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/example2custom.pdf diff --git a/Master/texmf-dist/doc/latex/confproc/example/example2custom.tex b/Master/texmf-dist/doc/latex/confproc/example/example2custom.tex new file mode 100644 index 00000000000..b4249f018dc --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/example2custom.tex @@ -0,0 +1,158 @@ +%% +%% This is file `example2custom.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% confproc.dtx (with options: `example2custom') +%% +%% This is `example2custom.tex', an example file for the confproc package. +%% Copyright (c) 2010 by Vincent Verfaille <verf[...].confproc@gmail.com> +%% +%% This file is part of the confproc package. +%% ------------------------------------------- +%% +%% It may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License, either version 1.2 of this license or +%% (at your option) any later version. +%% +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% This file may not be distributed without the original source file +%% `confproc.dtx'. +%% +%% The list of all files belonging to the confproc package is given in +%% the `readme.txt' file. +%% +%% For more details, LaTeX the source `confproc.dtx'. +%% +\documentclass[letterpaper,10pt,twoside,% + electronic,% [printed] | electronic + papers=final,% empty | draft | [final] | countpages + headers=exceptpdf,% none | pdfonly | exceptpdf | [allpages] + paperselec=all, %[all] | p_001 | p_fake + colorheaders=red,% + verbose,% + pdftk,% + pdftkfolder={pdftk_info/},% + pdftksubject={DAFx-06 Conference},% + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} + +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{mathptmx} +\usepackage[super]{nth} + +\setlength{\LaTeXxShift}{0pt} +\setlength{\LaTeXyShift}{-3mm} %letter +\setlength{\WordxShift}{10pt} +\setlength{\WordyShift}{-40pt} + +\definecolor{colorforlink}{rgb}{0,0,0.8} +\definecolor{colorforcite}{rgb}{0,0.8,0} +\definecolor{colorforurl}{rgb}{0,0,1} + +\newcommand{\DAFxname}{Proc.~of the \nth{9} % + Int.~Conference on Digital Audio Effects (DAFx-06)} +\newcommand{\DAFxdate}{September 18-20, 2006} +\newcommand{\DAFxaddress}{Montreal, Canada} + +\renewcommand{\procpdfauthor}{Vincent Verfaille, McGill University} +\renewcommand{\procpdftitle}{DAFx-06 Proceedings - \DAFxaddress} +\renewcommand{\procpdfsubject}{Conference proceedings} + +\renewcommand{\procchead}{}% +%%\renewcommand{\proclhead}{{\em \small \procpdfsubject}} +\renewcommand{\proclhead}{{\em \small \DAFxname, \DAFxaddress, \DAFxdate}} +\renewcommand{\proccfoot}{\small DAFX-\thepage} +\setlength{\procfootvskip}{1.2mm} +%%\setlength{\procoptfootvskip}{4mm} + +%%\author{Vincent Verfaille, McGill University} +%%\title{Proc. of the \nth{9} Int. Conf. on Digital Audio Effects\\ +%% Montreal, Quebec, Canada} +%%\date{Sept.~18--20, 2006} +\author{\procpdfauthor} +%%\title{\procpdftitle} +\title{\DAFxname\\ \DAFxaddress} +%%\date{\today} +\date{\DAFxdate} +%%\includepdf[noautoscale,pages=1,link]{\PICTPATH ex_1stpage.pdf} + +%%\renewcommand{\contentsname}{List of Sessions} +%%\renewcommand{\bibname}{General Bibliography} +%%\renewcommand{\indexname}{List of Authors} +\renewcommand{\PAPERPATH}{papers/} +%%\renewcommand{\papertitlestyle}{\texorpdfstring{}{\scshape}} +%%\renewcommand{\paperauthorstyle}{\texorpdfstring{, }{\break}} +\renewcommand{\confstylechecktitle}{\vspace*{0.3cm} % + \bf \sc \Large \noindent \centerline} +\renewcommand{\confstylecheckauthor}{\large \it \noindent \centerline} +\makeindex + +%%%=========== PROCEEDINGS =========== +\begin{document} + +\frontmatter +\frontmattertocstyle +\setcounter{page}{1} +\pdfbookmark[0]{Preamble}{preamble} +\pdfbookmark[1]{Cover}{cover} +\maketitle +\newpage + +\otherpagestyle +\tableofcontents + +%%%==== BEGINNING OF PAPERS ==== +\setcounter{npagespreamble}{\arabic{page}-1} % only useful for the 'pdftk' option +\mainmatter +\mainmattertocstyle +\procday{Day 1} + \session{Oral Session 1} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=45, npages=6,% + title={Templates for One Author},% + author={Alfred Alabama},% + index={\index{Alabama, Alfred}},% + ]{p_001} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=21, npages=5,% + title={Templates for One Author with Two Affiliations},% + author={Bob Boogie-Woogie},% + index={\index{Boogie-Woogie, Bob}},% + ]{p_003} + +\session{Poster Session 1} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=33, npages=4,% + title = {Templates for Two Authors},% + author={Alfred Alabama, Chris Christmas},% + index={\index{Alabama, Alfred}\index{Christmas, Chris}},% + ]{p_005} + +\procday{Day 2} +\session{Oral Session 2} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=75, npages=6,% + title={Templates for Three Authors},% + author={Bob Boogie-Woogie, Chris Christmas, Don Didon},% + index={\index{Boogie-Woogie, Bob}\index{Christmas, Chris}% + \index{Didon, Don}},% + ]{p_007} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=27, npages=7,% + title={Templates f\'or F\`o\"ur Àuthors},% + author={J\o{}hn J\"oe, K\'e\~{n}t K\^{\i}ng, L\`ou L\'ou,% + M\`anfr\'ed J. M\^ost\u{e}k\i}, + index={\index{J\"oe, J\o{}hn}\index{K\^{\i}ng, K\'e\~{n}t}% + \index{L\'ou, L\`ou}\index{M\^ost\u{e}k\i, M\`anfr\'ed J.}}, + ]{p_009} + +%%%==== END OF PAPERS ==== +\backmatter +\backmattertocstyle +\insertindex +\end{document} diff --git a/Master/texmf-dist/doc/latex/confproc/example/example3optim.pdf b/Master/texmf-dist/doc/latex/confproc/example/example3optim.pdf Binary files differnew file mode 100644 index 00000000000..590e3a8604a --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/example3optim.pdf diff --git a/Master/texmf-dist/doc/latex/confproc/example/example3optim.tex b/Master/texmf-dist/doc/latex/confproc/example/example3optim.tex new file mode 100644 index 00000000000..720f3e8c9a9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/example3optim.tex @@ -0,0 +1,237 @@ +%% +%% This is file `example3optim.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% confproc.dtx (with options: `example3optim') +%% +%% This is `example3optim.tex', an example file for the confproc package. +%% Copyright (c) 2010 by Vincent Verfaille <verf[...].confproc@gmail.com> +%% +%% This file is part of the confproc package. +%% ------------------------------------------- +%% +%% It may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License, either version 1.2 of this license or +%% (at your option) any later version. +%% +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% This file may not be distributed without the original source file +%% `confproc.dtx'. +%% +%% The list of all files belonging to the confproc package is given in +%% the `readme.txt' file. +%% +%% For more details, LaTeX the source `confproc.dtx'. +%% +\documentclass[letterpaper,% [letterpaper] | a4paper + 10pt,% [10pt] | 11pt | 12pt + twoside,% [twoside] | oneside + twosidepapers,% [twosidepapers] | onesidepapers + electronic,% [electronic] | printed + binding=0mm,% [0mm] + papers=final,% empty | draft | [final] + headers=exceptpdf,% none | pdfonly | exceptpdf | [allpages] + bib=backref,% [none] | merge | backref | final + paperselec=all,% [all] | p_001 | paper_2 | 3 ... + onecoltoc,% [onecoltoc] | twocoltoc + tocnum=left,% [left] | right + twocolbib,% [twocolbib] | onecolbib + threecolindex,% [threecolindex] | twocolindex + checktitle=false,% true | [false] + checkauthor=false,% true | [false] + showpapernumber=false,% true | [false] + movepagenumber=false,% true | [false] + showmarginlines=false,% true | [false] + colorheaders=black,% [black] | red | any color! + debug=false,% true | [false] + verbose=false,% true | [false] + pdftk=true,% true | [false] + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + linkcolor=colorforlink,urlcolor=colorforurl}, % [blue, blue, blue] + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter + ]{confproc} +%%% inner=0.69in,top=33.9mm,bottom=38mm,footskip=10.4mm,voffset=-4.8mm},%A4 +%%\input{exclass} +\usepackage{setspace} +\usepackage{xkeyval} +\usepackage{newapave} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{mathptmx} +\usepackage[super]{nth} + +\setlength{\LaTeXxShift}{0pt} +\setlength{\LaTeXyShift}{-3mm} %letter +\setlength{\WordxShift}{10pt} +\setlength{\WordyShift}{-40pt} + +\definecolor{colorforlink}{rgb}{0,0,0.8} +\definecolor{colorforcite}{rgb}{0,0.8,0} +\definecolor{colorforurl}{rgb}{0,0,1} + +\newcommand{\DAFxname}{Proc.~of the \nth{9} % + Int.~Conference on Digital Audio Effects (DAFx-06)} +\newcommand{\DAFxdate}{September 18-20, 2006} +\newcommand{\DAFxaddress}{Montreal, Canada} + +\renewcommand{\procpdfauthor}{Vincent Verfaille, McGill University} +\renewcommand{\procpdftitle}{DAFx-06 Proceedings - \DAFxaddress} +\renewcommand{\procpdfsubject}{Conference proceedings} + +\renewcommand{\procchead}{} % +\renewcommand{\proclhead}{{\em \small \DAFxname, \DAFxaddress, \DAFxdate}} +\renewcommand{\proccfoot}{{\small DAFX-\thepage}} +\setlength{\procfootvskip}{1.2mm} +\setlength{\procoptfootvskip}{4mm} + +\author{\procpdfauthor} +\title{\DAFxname\\ \DAFxaddress} +\date{\DAFxdate} + +\renewcommand{\contentsname}{Day-by-Day Conference Program} +\renewcommand{\bibname}{General Bibliography} +\renewcommand{\indexname}{List of Authors} +\renewcommand{\PAPERPATH}{papers/} +\newcommand{\PICTPATH}{pictures/} + \newcommand{\TEXTPATH}{} + \newcommand{\BIBPATH}{} +\newcommand{\procbibfile}{\BIBPATH exbiblio} +\newcommand{\myaddhruletotoc}{\vspace*{0.1cm}% + \noindent\protect\hrulefill\par\vspace*{-0.15cm}} +\newcommand{\myaddthickhruletotoc}{\vspace*{0.5cm}% + \noindent\protect\hrule height 0.6ex \hfill\par\vspace*{0.1cm}} +\renewcommand{\procday}[1]{% + \phantomsection% + \addcontentsline{toc}{part}{#1}} % \centerline{#1} +\renewcommand{\session}[1]{% + \phantomsection% + \addcontentsline{toc}{chapter}{#1}} +%% idem for left/right numbering +\renewcommand{\mainmattertocstyle}{ + \titlecontents{part}[0pt]% + {\addvspace{3mm}}% + {\myaddthickhruletotoc\Large\bfseries}% + {\myaddthickhruletotoc\Large\bfseries}% + {}% + [\addvspace{0.5mm}]% + \titlecontents{chapter}[0pt]% + {\addvspace{2mm}}% + {\myaddhruletotoc\large\bfseries\itshape}% + {\myaddhruletotoc\large\bfseries\itshape}% + {}% + [\addvspace{0.5mm}]% +} +%%\renewcommand{\papertitlestyle}{} +\renewcommand{\papertitlestyle}{\texorpdfstring{}{\scshape}} +%%\renewcommand{\paperauthorstyle}{\texorpdfstring{\newline\itshape}{\break}} +\renewcommand{\paperauthorstyle}{\texorpdfstring{, \hfill}{\break}} +\renewcommand{\proctoctitleauthor}[2]{% + \texorpdfstring{{\paperauthorstyle #2}{\papertitlestyle #1}}% + {{\papertitlestyle #1}}} +\renewcommand{\paperauthorstyle}{\texorpdfstring{\itshape}{}} +\renewcommand{\papertitlestyle}{\texorpdfstring{\newline}{\break}} +\renewcommand{\confstylechecktitle}{\vspace*{0.3cm} % + \bf \sc \Large \noindent \centerline} +\renewcommand{\confstylecheckauthor}{\large \it \noindent \centerline} +\makeindex + +%%%=========== PROCEEDINGS =========== +\begin{document} + +\frontmatter +%%\layout +%%\begin{figure} +%% \setlayoutscale{0.8} \tocdiagram +%% \caption{Table of Contents entry parameters} \label{fig:tocp} +%%\end{figure} +%%\begin{figure} +%% \setlayoutscale{0.8} \currenttoc \tocdesign +%% \caption{Typical Table of Contents entry for this document} +%% \label{fig:thistoc} +%%\end{figure} +%%\clearsingleordoublepage +\setcounter{page}{1} +\pdfbookmark[0]{Preamble}{preamble} +\pdfbookmark[1]{Cover}{cover} +\maketitle +%%\includepdf[noautoscale,pages=1,link]{\PICTPATH ex_1stpage.pdf} +\addtocontents{toc}{\vskip 1cm} +\addtocontents{toc}{\centerline{\huge\textsc{Conference Program}}} +\renewcommand{\contentsname}{\texorpdfstring{}{Conference Program}} +\newpage +\vspace*{1.7cm} +\pdfbookmark[1]{Publishing informations}{publishing} +\thispagestyle{empty} +\noindent {\bf Published by:}\\ Laboratory Name\\ Department name\\ +School Name\\ University Name\\ +\url{http://www.conferencesite.com}\\ +\vspace*{0.15cm}\newline +\noindent {\bf ISBN: X-XXXX-XXXXXX}\\ +\vspace*{0.35cm}\newline +\noindent {\bf Credits:}\\ +Cover design: Firstname Lastname\\ +Logo photo: Firstname Lastname\\ +\LaTeX{} editor: Firstname Lastname\\ +using \LaTeX's `confproc' package, version 0.7 (optional: by V. Verfaille)\\ +\vspace*{0.35cm}\newline +\noindent Printed in City by Print-Company --- Month Year +\otherpagestyle +%%%-- Welcome letters +\clearsingleordoublepage +\vspace*{0.6cm} +\thisotherpagestyle +\pdfbookmark[1]{Welcome from Firstname Lastname}{welcome} +\section*{Welcome from Firstname Lastname, Conference Chair} +\vspace*{1.1cm} +\onehalfspace +\begin{center} + \begin{minipage}[h]{14cm} + Text of the welcome letter, with 1.5 lines spacing, blah blah... + Text of the welcome letter, with 1.5 lines spacing, blah blah... + Text of the welcome letter, with 1.5 lines spacing, blah blah... + Text of the welcome letter, with 1.5 lines spacing, blah blah... + \end{minipage} +\end{center} +\doublespace +\begin{center} + \begin{minipage}[h]{14cm} + Text of the welcome letter, with 2 lines spacing, blah blah... + Text of the welcome letter, with 2 lines spacing, blah blah... + Text of the welcome letter, with 2 lines spacing, blah blah... + Text of the welcome letter, with 2 lines spacing, blah blah... + \end{minipage} +\end{center} +\singlespace +\tableofcontents + +%%%==== BEGINNING OF PAPERS ==== +\setcounter{npagespreamble}{\arabic{page}-1} % only useful for the 'pdftk' option +\mainmatter +\mainmattertocstyle +\input{\TEXTPATH expapersswitch} +\procday{Day 1} + \session{Oral Session 1} + \paperid{45}{p_001} + \paperid{21}{p_003} + \session{Poster Session 1} + \paperid{33}{p_005} +\procday{Day 2} + \session{Oral Session 2} + \paperid{75}{p_007} + \paperid{27}{p_009} + +%%%==== END OF PAPERS ==== +\backmatter +\backmattertocstyle +\bibliographystyle{newapave} +%%\bibliographystyle{newapa} +{\footnotesize\bibliography{\procbibfile}} +\insertindex +\end{document} diff --git a/Master/texmf-dist/doc/latex/confproc/example/example4optim.tex b/Master/texmf-dist/doc/latex/confproc/example/example4optim.tex new file mode 100644 index 00000000000..c64536390f7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/example4optim.tex @@ -0,0 +1,191 @@ +\usepackage{setspace} +\usepackage{xkeyval} +\usepackage{newapave} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{mathptmx} +\usepackage[super]{nth} + +\setlength{\LaTeXxShift}{0pt} +\setlength{\LaTeXyShift}{-3mm} %letter +\setlength{\WordxShift}{10pt} +\setlength{\WordyShift}{-40pt} + +\definecolor{colorforlink}{rgb}{0,0,0.8} +\definecolor{colorforcite}{rgb}{0,0.8,0} +\definecolor{colorforurl}{rgb}{0,0,1} + +\newcommand{\DAFxname}{Proc.~of the \nth{9} % + Int.~Conference on Digital Audio Effects (DAFx-06)} +\newcommand{\DAFxdate}{September 18-20, 2006} +\newcommand{\DAFxaddress}{Montreal, Canada} + +\renewcommand{\procpdfauthor}{Vincent Verfaille, McGill University} +\renewcommand{\procpdftitle}{DAFx-06 Proceedings - \DAFxaddress} +\renewcommand{\procpdfsubject}{Conference proceedings} + +\renewcommand{\procchead}{} % +\renewcommand{\proclhead}{{\em \small \DAFxname, \DAFxaddress, \DAFxdate}} +\renewcommand{\proccfoot}{{\small DAFX-\thepage}} +\setlength{\procfootvskip}{1.2mm} +\setlength{\procoptfootvskip}{4mm} + +\author{\procpdfauthor} +\title{\DAFxname\\ \DAFxaddress} +\date{\DAFxdate} + +\renewcommand{\contentsname}{Day-by-Day Conference Program} +\renewcommand{\bibname}{General Bibliography} +\renewcommand{\indexname}{List of Authors} +\renewcommand{\PAPERPATH}{papers/} +\newcommand{\PICTPATH}{pictures/} + \newcommand{\TEXTPATH}{} + \newcommand{\BIBPATH}{} +\newcommand{\procbibfile}{\BIBPATH exbiblio} +\newcommand{\myaddhruletotoc}{\vspace*{0.1cm}% + \noindent\protect\hrulefill\par\vspace*{-0.15cm}} +\newcommand{\myaddthickhruletotoc}{\vspace*{0.5cm}% + \noindent\protect\hrule height 0.6ex \hfill\par\vspace*{0.1cm}} +\renewcommand{\procday}[1]{% + \phantomsection% + \addcontentsline{toc}{part}{#1}} % \centerline{#1} +\renewcommand{\session}[1]{% + \phantomsection% + \addcontentsline{toc}{chapter}{#1}} + \renewcommand{\mainmattertocstyle}{ + \titlecontents{section}[2.5em]% + {\vspace*{0.25em}}% + {\hspace*{-2.5em}\contentspage\hspace*{2.5em}}% + {\hspace*{-2.5em}\contentspage\hspace*{2.5em}}% + {}% + \titlecontents{chapter}[0pt]% + {\addvspace{0.5pc}\bfseries\itshape}% + {\myaddhruletotoc\contentsmargin{0pt}\bfseries % + \makebox[0pt][r]{\huge\contentspage\enspace}\large}% + {\myaddhruletotoc\contentsmargin{0pt}\large}% + {}[\addvspace{.3pc}]% + \titlecontents{part}[0pt]% + {\addvspace{0.5pc}\bfseries}% + {\myaddthickhruletotoc\contentsmargin{0pt}\bfseries % + \makebox[0pt][r]{\huge\contentspage\enspace}\large}% + {\myaddthickhruletotoc\contentsmargin{0pt}\large}% + {}[\addvspace{.3pc}]% +} + \renewcommand{\backmattertocstyle}{% + \titlecontents{section}[]{}{}{}{}[]% + \titlecontents{part}% + [0pt]% + {\addvspace{2pc}}% + {\contentspage\hspace*{2.5em}\vspace*{-8mm}\contentsmargin{0pt}% + \bfseries\makebox[0pt][r]{\huge\contentspage\enspace}\large\bfseries}% + {\contentspage\hspace*{2.5em}\vspace*{-8mm}\contentsmargin{0pt}\large\bfseries}% + {}% + [\addvspace{.5pc}]% +}% +%%\renewcommand{\papertitlestyle}{} +\renewcommand{\papertitlestyle}{\texorpdfstring{}{\scshape}} +%%\renewcommand{\paperauthorstyle}{\texorpdfstring{\newline\itshape}{\break}} +\renewcommand{\paperauthorstyle}{\texorpdfstring{, \hfill}{\break}} +\renewcommand{\proctoctitleauthor}[2]{% + \texorpdfstring{{\paperauthorstyle #2}{\papertitlestyle #1}}{{\papertitlestyle #1}}} +\renewcommand{\paperauthorstyle}{\texorpdfstring{\itshape}{}} +\renewcommand{\papertitlestyle}{\texorpdfstring{\newline}{\break}} +\renewcommand{\confstylechecktitle}{\vspace*{0.3cm} % + \bf \sc \Large \noindent \centerline} +\renewcommand{\confstylecheckauthor}{\large \it \noindent \centerline} +\makeindex + +%%%=========== PROCEEDINGS =========== +\begin{document} + +\frontmatter +\frontmattertocstyle +%%\layout +%%\begin{figure} +%% \setlayoutscale{0.8} \tocdiagram +%% \caption{Table of Contents entry parameters} \label{fig:tocp} +%%\end{figure} +%%\begin{figure} +%% \setlayoutscale{0.8} \currenttoc \tocdesign +%% \caption{Typical Table of Contents entry for this document} +%% \label{fig:thistoc} +%%\end{figure} +%%\clearsingleordoublepage +\setcounter{page}{1} +\pdfbookmark[0]{Preamble}{preamble} +\pdfbookmark[1]{Cover}{cover} +\maketitle +%%\includepdf[noautoscale,pages=1,link]{\PICTPATH ex_1stpage.pdf} +\addtocontents{toc}{\vskip 1cm} +\addtocontents{toc}{\centerline{\huge\textsc{Conference Program}}} +\renewcommand{\contentsname}{\texorpdfstring{}{Conference Program}} +\newpage +\vspace*{1.7cm} +\pdfbookmark[1]{Publishing informations}{publishing} +\thispagestyle{empty} +\noindent {\bf Published by:}\\ Laboratory Name\\ Department name\\ +School Name\\ University Name\\ +\url{http://www.conferencesite.com}\\ +\vspace*{0.15cm}\newline +\noindent {\bf ISBN: X-XXXX-XXXXXX}\\ +\vspace*{0.35cm}\newline +\noindent {\bf Credits:}\\ +Cover design: Firstname Lastname\\ +Logo photo: Firstname Lastname\\ +\LaTeX{} editor: Firstname Lastname\\ +using \LaTeX's `confproc' package, version 0.7 (optional: by V. Verfaille)\\ +\vspace*{0.35cm}\newline +\noindent Printed in City by Print-Company --- Month Year +\otherpagestyle +%%%-- Welcome letters +\clearsingleordoublepage +\vspace*{0.6cm} +\thisotherpagestyle +\pdfbookmark[1]{Welcome from Firstname Lastname}{welcome} +\section*{Welcome from Firstname Lastname, Conference Chair} +\vspace*{1.1cm} +\onehalfspace +\begin{center} + \begin{minipage}[h]{14cm} + Text of the welcome letter, with 1.5 lines spacing, blah blah... + Text of the welcome letter, with 1.5 lines spacing, blah blah... + Text of the welcome letter, with 1.5 lines spacing, blah blah... + Text of the welcome letter, with 1.5 lines spacing, blah blah... + \end{minipage} +\end{center} +\doublespace +\begin{center} + \begin{minipage}[h]{14cm} + Text of the welcome letter, with 2 lines spacing, blah blah... + Text of the welcome letter, with 2 lines spacing, blah blah... + Text of the welcome letter, with 2 lines spacing, blah blah... + Text of the welcome letter, with 2 lines spacing, blah blah... + \end{minipage} +\end{center} +\singlespace +\tableofcontents + +%%%==== BEGINNING OF PAPERS ==== +\setcounter{npagespreamble}{\arabic{page}-1} % only useful for the 'pdftk' option +\mainmatter +\mainmattertocstyle +\input{\TEXTPATH expapersswitch} +\procday{Day 1} + \session{Oral Session 1} + \paperid{45}{p_001} + \paperid{21}{p_003} + \session{Poster Session 1} + \paperid{33}{p_005} +\procday{Day 2} + \session{Oral Session 2} + \paperid{75}{p_007} + \paperid{27}{p_009} + +%%%==== END OF PAPERS ==== +\backmatter +\backmattertocstyle +\bibliographystyle{newapave} +%%\bibliographystyle{newapa} +{\footnotesize\bibliography{\procbibfile}} +\insertindex +\end{document} diff --git a/Master/texmf-dist/doc/latex/confproc/example/exclass.tex b/Master/texmf-dist/doc/latex/confproc/example/exclass.tex index 2f195fb6ebe..4e30c8b4ba4 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/exclass.tex +++ b/Master/texmf-dist/doc/latex/confproc/example/exclass.tex @@ -1,38 +1,17 @@ -%% -%% This is file `exclasslast.tex', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% confproc.dtx (with options: `exclasslast') -%% -%% This is `exclasslast.tex', an example file for the confproc package. -%% Copyright (C) 2007 by Vincent Verfaille <vincent@music.mcgill.ca> -%% -%% This file is part of the confproc package. -%% ------------------------------------------- -%% -%% It may be distributed and/or modified under the conditions of the -%% LaTeX Project Public License, either version 1.2 of this license or -%% (at your option) any later version. -%% -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.2 or later is part of all distributions of LaTeX version -%% 1999/12/01 or later. -%% -%% This file may not be distributed without the original source file -%% `confproc.dtx'. -%% -%% The list of all files belonging to the confproc package is given in -%% the file `readme.txt'. -%% -%% For more details, LaTeX the source `confproc.dtx'. -%% -\documentclass[a4paper,10pt,twoside,twosidepapers, - compil=last,headers=exceptpdf,electronic, - citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl, - pagecolor=colorforpage]{confproc} -\endinput -%% -%% End of file `exclasslast.tex'. +\documentclass[letterpaper,10pt,twoside,twosidepapers,% + electronic,% [printed] | electronic + papers=countpages,% empty | draft | [final] | countpages + headers=allpages,% none | pdfonly | exceptpdf | [allpages] + paperselec=all, %[all] | p_001 | p_fake + bib=backref,% + colorheaders=red,% + verbose,% + pdftk,% + pdftkfolder={pdftk_info/},% + pdftksubject={DAFx-06 Conference},% + movepagenumber,% + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} diff --git a/Master/texmf-dist/doc/latex/confproc/example/exclasslastel.tex b/Master/texmf-dist/doc/latex/confproc/example/exclasslastel.tex new file mode 100644 index 00000000000..37f3e753482 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/exclasslastel.tex @@ -0,0 +1,15 @@ +\documentclass[letterpaper,10pt,twoside,twosidepapers,% + electronic,% [printed] | electronic + papers=final,% empty | draft | [final] | countpages + headers=exceptpdf,% none | pdfonly | exceptpdf | [allpages] + paperselec=all, %[all] | p_001 | p_fake + bib=last,% + pdftk,% + pdftkfolder={pdftk_info/},% + pdftksubject={DAFx-06 Conference},% + binding=0mm,% [0mm] -> no binding for electronic version + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.0in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} diff --git a/Master/texmf-dist/doc/latex/confproc/example/exclasslastpb.tex b/Master/texmf-dist/doc/latex/confproc/example/exclasslastpb.tex new file mode 100644 index 00000000000..b1e344e979a --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/exclasslastpb.tex @@ -0,0 +1,15 @@ +\documentclass[letterpaper,10pt,twoside,twosidepapers,% + printed,% [printed] | electronic + papers=final,% empty | draft | [final] | countpages + headers=exceptpdf,% none | pdfonly | exceptpdf | [allpages] + paperselec=all, %[all] | p_001 | p_fake + bib=last,% + pdftk,% + pdftkfolder={pdftk_info/},% + pdftksubject={DAFx-06 Conference},% + binding=5mm,% [0mm] -> adjust the binding depending on the proceedings thickness + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} diff --git a/Master/texmf-dist/doc/latex/confproc/example/exclasspre.tex b/Master/texmf-dist/doc/latex/confproc/example/exclasspre.tex index 3c30b043049..4e30c8b4ba4 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/exclasspre.tex +++ b/Master/texmf-dist/doc/latex/confproc/example/exclasspre.tex @@ -1,38 +1,17 @@ -%% -%% This is file `exclasspre.tex', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% confproc.dtx (with options: `exclasspre') -%% -%% This is `exclasspre.tex', an example file for the confproc package. -%% Copyright (C) 2007 by Vincent Verfaille <vincent@music.mcgill.ca> -%% -%% This file is part of the confproc package. -%% ------------------------------------------- -%% -%% It may be distributed and/or modified under the conditions of the -%% LaTeX Project Public License, either version 1.2 of this license or -%% (at your option) any later version. -%% -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.2 or later is part of all distributions of LaTeX version -%% 1999/12/01 or later. -%% -%% This file may not be distributed without the original source file -%% `confproc.dtx'. -%% -%% The list of all files belonging to the confproc package is given in -%% the file `readme.txt'. -%% -%% For more details, LaTeX the source `confproc.dtx'. -%% -\documentclass[a4paper,10pt,twoside,twosidepapers, - compil=bibbackref,headers=allpages,movepagenumbers,electronic, - citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl, - pagecolor=colorforpage]{confproc} -\endinput -%% -%% End of file `exclasspre.tex'. +\documentclass[letterpaper,10pt,twoside,twosidepapers,% + electronic,% [printed] | electronic + papers=countpages,% empty | draft | [final] | countpages + headers=allpages,% none | pdfonly | exceptpdf | [allpages] + paperselec=all, %[all] | p_001 | p_fake + bib=backref,% + colorheaders=red,% + verbose,% + pdftk,% + pdftkfolder={pdftk_info/},% + pdftksubject={DAFx-06 Conference},% + movepagenumber,% + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} diff --git a/Master/texmf-dist/doc/latex/confproc/example/expapersswitch.tex b/Master/texmf-dist/doc/latex/confproc/example/expapersswitch.tex index 2e1ac9bd5a0..8a6d6687321 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/expapersswitch.tex +++ b/Master/texmf-dist/doc/latex/confproc/example/expapersswitch.tex @@ -1,98 +1,60 @@ -%% -%% This is file `expapersswitch.tex', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% confproc.dtx (with options: `expapersswitch') -%% -%% This is `expapersswitch.tex', an example file for the confproc package. -%% Copyright (C) 2007 by Vincent Verfaille <vincent@music.mcgill.ca> -%% -%% This file is part of the confproc package. -%% ------------------------------------------- -%% -%% It may be distributed and/or modified under the conditions of the -%% LaTeX Project Public License, either version 1.2 of this license or -%% (at your option) any later version. -%% -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.2 or later is part of all distributions of LaTeX version -%% 1999/12/01 or later. -%% -%% This file may not be distributed without the original source file -%% `confproc.dtx'. -%% -%% The list of all files belonging to the confproc package is given in -%% the file `readme.txt'. -%% -%% For more details, LaTeX the source `confproc.dtx'. -%% \newcommand{\paperid}[2]{ + \renewcommand{\paperswitch}{#1} -\ifnum\paperswitch=45 { - \renewcommand{\papertitle}{Templates for One Author} - \renewcommand{\paperauthors}{Alfred Alabama} - \renewcommand{\paperindex}{\index{Alabama, Alfred}} - \renewcommand{\paperref}{\paperswitch} - \renewcommand{\paperpagenum}{6} - \renewcommand{\papercite}{Serra:1996:sms,% - Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,% - Mitra:Kaiser:1993:DSP:handbook} - \procinsertpaper{\LaTeXxShift{} \LaTeXyShift}{\paperpagenum}% - {\paperref}{\papertitle}{\paperauthors}{\paperindex}{\papercite}% - {#2}{\pdfbookmark[2]{Alfred Alabama}{#2.author1}}} + +%======= PAPER ID = 45 ======= +\ifnum\paperswitch=45 + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=6, switch=\paperswitch,% + title={Templates for One Author},% paper title + author={Alfred Alabama},% list of authors + index={\index{Alabama, Alfred}},% authors index entries + cite={Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Mitra:Kaiser:1993:DSP:handbook},% cited bib items + bookmark={\pdfbookmark[2]{Alfred Alabama}{#2.Alfred Alabama}}% for PDF bookmark structure + ]{#2} \fi + +%======= PAPER ID = 21 ======= \ifnum\paperswitch=21 - \procinsertpaper{\LaTeXxShift{} \LaTeXyShift}{5}{\paperswitch}% - {Templates for One Author with Two Affiliations}% paper title - {Bob Boogie-Woogie}% list of authors - {\index{Boogie-Woogie, Bob}}% authors index entries - {Serra:1996:sms,Moorer:2000:AES:audio:millenium,% - Arfib:1998:DAFx,Haykin:1991:adaptive:filter}% - {#2}{\pdfbookmark[2]{Bob Boogie-Woogie}{#2.author1}} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=5, switch=\paperswitch,% + title={Templates for One Author with Two Affiliations},% paper title + author={Bob Boogie-Woogie},% list of authors + index={\index{Boogie-Woogie, Bob}},% authors index entries + cite={Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Haykin:1991:adaptive:filter},% cited bib items + bookmark={\pdfbookmark[2]{Bob Boogie-Woogie}{#2.Bob Boogie-Woogie}}% for PDF bookmark structure + ]{#2} \fi - -\ifnum\paperswitch=27 - \procinsertpaper{\LaTeXxShift{} \LaTeXyShift}{7}{\paperswitch}% - {Templates f\'or F\`o\"ur Àuthors}% - {J\o{}hn J\"oe, K\'e\~{n}t K\^{\i}ng, L\`ou L\'ou, % - M\`anfr\'ed J. M\^ost\u{e}k\i}% - {\index{J\"oe, J\o{}hn}\index{K\^{\i}ng, K\'e\~{n}t}% - \index{L\'ou, L\`ou}\index{M\^ost\u{e}k\i, M\`anfr\'ed J.}}% - {Serra:1996:sms,Moorer:2000:AES:audio:millenium,% - Dutilleux:1991,Fitz:Haken:2003:Web:morphing:loris}% - {#2}{\pdfbookmark[2]{J\o{}hn J\"oe}{#2.author1}% - \pdfbookmark[2]{K\'e\~{n}t K\^{\i}ng}{#2.author2}% - \pdfbookmark[2]{L\`ou L\'ou}{#2.author3}% - \pdfbookmark[2]{M\`anfr\'ed J. M\^ost\u{e}k\i}{#2.author4}} -\fi - + +%======= PAPER ID = 33 ======= \ifnum\paperswitch=33 - \procinsertpaper{\LaTeXxShift{} \LaTeXyShift}{4}{\paperswitch}% - {Templates for Two Authors}% - {Alfred Alabama, Chris Christmas}% - {\index{Alabama, Alfred}\index{Christmas, Chris}}% - {Serra:1996:sms,Moorer:2000:AES:audio:millenium,% - Arfib:1998:DAFx,Askenfelt:1976:automatic:transcription}% - {#2}{\pdfbookmark[2]{Alfred Alabama}{#2.author1}% - \pdfbookmark[2]{Chris Christmas}{#2.author2}} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=4, switch=\paperswitch,% + title={Templates for Two Authors},% paper title + author={Alfred Alabama, Chris Christmas},% list of authors + index={\index{Alabama, Alfred}\index{Christmas, Chris}},% authors index entries + cite={Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Askenfelt:1976:automatic:transcription},% cited bib items + bookmark={\pdfbookmark[2]{Alfred Alabama}{#2.Alfred Alabama}\pdfbookmark[2]{Chris Christmas}{#2.Chris Christmas}}% for PDF bookmark structure + ]{#2} \fi - + +%======= PAPER ID = 75 ======= \ifnum\paperswitch=75 - \procinsertpaper{\LaTeXxShift{} \LaTeXyShift}{6}{\paperswitch}% - {Templates for Three Authors}% - {Bob Boogie-Woogie, Chris Christmas, Don Didon}% - {\index{Boogie-Woogie, Bob}\index{Christmas, Chris}% - \index{Didon, Don}}% - {Serra:1996:sms,Moorer:2000:AES:audio:millenium,% - Arfib:1998:DAFx,Egozy:1995:MIT:features:gesture}% - {#2}{\pdfbookmark[2]{Bob Boogie-Woogie}{#2.author1}% - \pdfbookmark[2]{Chris Christmas}{#2.author2}% - \pdfbookmark[2]{Don Didon}{#2.author3}} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=6, switch=\paperswitch,% + title={Templates for Three Authors},% paper title + author={Bob Boogie-Woogie, Chris Christmas, Don Didon},% list of authors + index={\index{Boogie-Woogie, Bob}\index{Christmas, Chris}\index{Didon, Don}},% authors index entries + cite={Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Egozy:1995:MIT:features:gesture},% cited bib items + bookmark={\pdfbookmark[2]{Bob Boogie-Woogie}{#2.Bob Boogie-Woogie}\pdfbookmark[2]{Chris Christmas}{#2.Chris Christmas}\pdfbookmark[2]{Don Didon}{#2.Don Didon}}% for PDF bookmark structure + ]{#2} +\fi + +%======= PAPER ID = 27 ======= +\ifnum\paperswitch=27 + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=7, switch=\paperswitch,% + title={Templates fór Fòür Àuthors},% paper title + author={John Jöe, Kéñt Kîng, Lòu Lóu, Mànfréd J. Môstu{e}ki},% list of authors + index={\index{Jöe, John}\index{Kîng, Kéñt}\index{Lóu, Lòu}\index{Môstu{e}ki, Mànfréd J.}},% authors index entries + cite={Serra:1996:sms,Moorer:2000:AES:audio:millenium,Dutilleux:1991,Fitz:Haken:2003:Web:morphing:loris},% cited bib items + bookmark={\pdfbookmark[2]{John Jöe}{#2.John Jöe}\pdfbookmark[2]{Kéñt Kîng}{#2.Kéñt Kîng}\pdfbookmark[2]{Lòu Lóu}{#2.Lòu Lóu}\pdfbookmark[2]{Mànfréd J. Môstu{e}ki}{#2.Mànfréd J. Môstu{e}ki}}% for PDF bookmark structure + ]{#2} \fi + } -\endinput -%% -%% End of file `expapersswitch.tex'. diff --git a/Master/texmf-dist/doc/latex/confproc/example/exportIndividualPDFs.sh b/Master/texmf-dist/doc/latex/confproc/example/exportIndividualPDFs.sh new file mode 100644 index 00000000000..0f63243a260 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/exportIndividualPDFs.sh @@ -0,0 +1,73 @@ +#!/bin/bash + +args=("$@") +GPATH=${args[0]} #= ~/e-proceedings +TEXFILE=${args[1]} #= proceedings +INPATH=${args[2]} #= papers_info +#mkdir -p $INPATH +SPPATH=${args[3]} #= papers_split +#mkdir -p $SPPATH +PDFPATH=${args[4]} +PDFTKPATH=${args[5]} + +PDFFILE=${TEXFILE}.pdf # for use in the paper_split.sh and paper_info.sh scripts + +echo "-PATH (working path): $GPATH" +echo "-TeX file (orig. TeX proc): $TEXFILE" +echo "-PDF: $PDFFILE (original PDF proc)" +echo "-PDFPATH (indiv. PDFs): $PDFPATH " +echo "-PDFTKPATH (pdftk info): $PDFTKPATH" +echo "-INPATH (papers info): $INPATH" +echo "-SPPATH (split papers): $SPPATH" + +cd $PDFTKPATH +list=`ls *.pdftk` +for tmpfile in $list +do + cp ${tmpfile} test.txt + #-- 2-concat all lines, removing carriage returns + sed -e :a -e '$!N;s/\n/LineBreak/;ta' -e 'P;D' test.txt >test2.txt + perl -ne ' s/LineBreakInfoKey/\nInfoKey/g; print ' test2.txt >test3.txt + perl -ne ' s/LineBreakInfoValue/\nInfoValue/g; print ' test3.txt >test4.txt + perl -ne ' s/LineBreak//g; print ' test4.txt >test5.txt + mv test5.txt $tmpfile +done + +rm -f tmp* +rm -f test*.txt + +cd $GPATH +echo "__________" +echo "__ split PDFs: generate bash script file" +pwd +echo "cmd: cat paperssplitpreamble.sh $TEXFILE.pdftk >tmp.sh" +cat paperssplitpreamble.sh $TEXFILE.pdftk >tmp.sh +mv tmp.sh ${GPATH}/papers_split.sh + +echo "__________" +echo "__ split PDFs: Perl to add echo lines to 'papers_split.sh' script" + +#echo "cmd: Perl to copy/add 'echo' cmd to each pdftk command, in 'papers_split.sh'" +perl -p -e 's/^pdftk(.*[\n\r])/echo \"pdftk $1\"\npdftk $1/gm' ${GPATH}/papers_split.sh >tmp.txt +mv tmp.txt ${GPATH}/papers_split_all.sh + +echo; echo "__________" +echo "__ split PDFs: launch bash script file" +#echo "cmd: chmod +x papers_split_all.sh" +chmod +x papers_split_all.sh + +echo "cmd: ./papers_split_all.sh" +#echo " ./papers_split_all.sh ${GPATH} ${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH}" +./papers_split_all.sh ${GPATH} ${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH} +# rm ${SPPATH}/*.ps #useful only if 'pdf2ps -> ps2pdf', not useful with 'gs' + +#--- generate PDF with corrected metadata +echo "__________" +echo "__ Correct PDF metadata with papersinfo.sh" +./papersinfo.sh ${GPATH} ${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH} ${PDFTKPATH} + +##--- clean +#rm -r ${INPATH} +#rm -r ${SPPATH} +#rm papers_split.sh +#rm -r tmp diff --git a/Master/texmf-dist/doc/latex/confproc/example/exprogram.csv b/Master/texmf-dist/doc/latex/confproc/example/exprogram.csv index 9e0afeef4ab..c21790c1397 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/exprogram.csv +++ b/Master/texmf-dist/doc/latex/confproc/example/exprogram.csv @@ -1,12 +1,12 @@ Type,Paper Number,PC Decision,Pages,Title,File Name,Generated,Citations,Auth1 First Name,Auth1 Last Name,Auth2 First Name,Auth2 Last Name,Auth3 First Name,Auth3 Last Name,Auth4 First Name,Auth4 Last Name,, Type,-2,O,,,,,,First Name,Last Name,First Name,Last Name,First Name,Last Name, F.Name, L.Name,, -Day,0,,,Day 1: September 18 2007,,,,,,,,,,,,, +Day,0,,,"Day 1: September 18, 2007",,,,,,,,,,,,, Session,0,,,Oral Session 1,,,,,,,,,,,,, paper,45,O,6,Templates for One Author,p_001,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Mitra:Kaiser:1993:DSP:handbook",Alfred,Alabama,,,,,,,, paper,21,O,5,Templates for One Author with Two Affiliations,p_003,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Haykin:1991:adaptive:filter",Bob,Boogie-Woogie,,,,,,,, Poster Session,0,,,Poster Session 1,,,,,,,,,,,,, -paper,32,P,4,Templates for Two Authors,p_005,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Askenfelt:1976:automatic:transcription",Alfred,Alabama,Chris,Christmas,,,,,, -Day,0,,,Day 2: September 19 2007,,,,,,,,,,,,, +paper,33,P,4,Templates for Two Authors,p_005,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Askenfelt:1976:automatic:transcription",Alfred,Alabama,Chris,Christmas,,,,,, +Day,0,,,"Day 2: September 19, 2007",,,,,,,,,,,,, Session,0,,,Oral Session 2,,,,,,,,,,,,, paper,75,O,6,Templates for Three Authors,p_007,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Egozy:1995:MIT:features:gesture",Bob,Boogie-Woogie,Chris,Christmas,Don,Didon,,,, paper,27,O,7,Templates fór Fòür Àuthors,p_009,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Dutilleux:1991,Fitz:Haken:2003:Web:morphing:loris",John,Jöe,Kéñt,Kîng,Lòu,Lóu,Mànfréd J.,Môst\u{e}k\i,, diff --git a/Master/texmf-dist/doc/latex/confproc/example/exsessions.tex b/Master/texmf-dist/doc/latex/confproc/example/exsessions.tex new file mode 100644 index 00000000000..4d56f40a2df --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/exsessions.tex @@ -0,0 +1,20 @@ + +%%%== Day +\procday{Day 1: September 18, 2007} + +%%%-- session +\session{Oral Session 1} +\paperid{45}{p_001} +\paperid{21}{p_003} + +%%%-- session +\session{Poster Session 1} +\paperid{33}{p_005} + +%%%== Day +\procday{Day 2: September 19, 2007} + +%%%-- session +\session{Oral Session 2} +\paperid{75}{p_007} +\paperid{27}{p_009} diff --git a/Master/texmf-dist/doc/latex/confproc/example/procswitchandtoc.pl b/Master/texmf-dist/doc/latex/confproc/example/generateswitch.pl index 325a5718267..499a82e515c 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/procswitchandtoc.pl +++ b/Master/texmf-dist/doc/latex/confproc/example/generateswitch.pl @@ -1,10 +1,10 @@ #!/usr/bin/perl -w -# procswitchandtoc.pl +# generateswitch.pl # created as dafxproctoc.pl by Marc Zadel, 2006-04-28 -# modified for confproc.cls by Vincent Verfaille, 2007-08-08 +# modified for confproc.cls by Vincent Verfaille, 2007-08-08 (v0.4) & 2009-10-30 (v0.7) # Execute as -# ./procswitchandtoc.pl < intputfile.txt > +# ./generateswitch.pl < intputfile.txt > use strict; use Text::ParseWords; @@ -31,7 +31,7 @@ sub parseinputline { # parse the input line my @wordlist = "ewords($fieldseparator, 0, $inputline); - # replace accented characters with latex escaped equivalents. To be done after + # replace accented characters with latex escaped equivalents. Use it after # quotewords() so the '\' don't get interpreted by quotewords() as escapes foreach my $word ( @wordlist ) { if ( $word ) { $word = &latexifyaccentedcharacters($word); } @@ -156,18 +156,19 @@ sub genbookmark { sub outputpaperlatex { my ($fields) = @_; open(SWI, ">>expapersswitch.tex"); #open for append - print SWI '%=========== PAPER ID = ', $fields->{'number'}, ' ==========='; + print SWI '%======= PAPER ID = ', $fields->{'number'}, ' ======='; print SWI '\ifnum\paperswitch=', $fields->{'number'}; - print SWI ' \procinsertpaper{\LaTeXxShift{} \LaTeXyShift}{', - $fields->{'nbpages'}, '}{\paperswitch}%'; - print SWI ' {', $fields->{'title'}, '}% paper title'; - print SWI ' {', join( ', ', @{&authorsbyfirstname($fields->{'authors'})}), - '}% list of authors'; - print SWI ' {', &genindex(&authorsbysurname($fields->{'authors'})), - '}% authors index entries'; - print SWI ' {', $fields->{'cite'}, '}% cited bib items'; + print SWI ' \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=', + $fields->{'nbpages'}, ', switch=\paperswitch,%'; + print SWI ' title={', $fields->{'title'}, '},% paper title'; + print SWI ' author={', join( ', ', @{&authorsbyfirstname($fields->{'authors'})}), + '},% list of authors'; + print SWI ' index={', &genindex(&authorsbysurname($fields->{'authors'})), + '},% authors index entries'; + print SWI ' cite={', $fields->{'cite'}, '},% cited bib items'; # print SWI ' {#2}{\paperbookmark}'; - print SWI ' {#2}{', &genbookmark(&authorsbyfirstname($fields->{'authors'})),'}'; + print SWI ' bookmark={', &genbookmark(&authorsbyfirstname($fields->{'authors'})),'}% for PDF bookmark structure'; + print SWI ' ]{#2}'; print SWI '\fi'; print SWI ' '; open(SESSIONS, ">>exsessions.tex"); #open for write, overwrite diff --git a/Master/texmf-dist/doc/latex/confproc/example/newapave.bst b/Master/texmf-dist/doc/latex/confproc/example/newapave.bst index 1e978ff3106..2aee35a4f37 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/newapave.bst +++ b/Master/texmf-dist/doc/latex/confproc/example/newapave.bst @@ -13,7 +13,7 @@ % (2) if you do make changes, you name it something other than 'newapave.bst'. % There are undoubtably bugs in this style. If you make bug fixes, % improvements, etc. please let me know. My e-mail address is: -% vincent@music.mcgill.ca +% [lastname].[packagename]@gmail.com % % This style was made from 'plain.bst', 'named.bst', and 'apalike.bst', % with lots of tweaking to make it look like APA style, along with tips @@ -215,7 +215,7 @@ FUNCTION {output.year.check} } { write$ ", " year * "." * "~\hfill " * % shorter and simpler without label (2002a, 2002b useless) -%% ", " year * extra.label * "." * " \Pointinghand{} " * % shorter +% ", " year * extra.label * "." * " \Pointinghand{} " * % shorter mid.sentence 'output.state := % mid.sentence 'output.state := * "}" } diff --git a/Master/texmf-dist/doc/latex/confproc/example/newapave.sty b/Master/texmf-dist/doc/latex/confproc/example/newapave.sty index c5ac3d4897e..db7a357ccd8 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/newapave.sty +++ b/Master/texmf-dist/doc/latex/confproc/example/newapave.sty @@ -1,4 +1,4 @@ -%$$$ newapave.sty $$$ --- July 31, 2006 (Version 2.1) +%$$$ newapave2.sty $$$ --- July 15, 2010 (Version 2.21) % - Version 2.1. % % This file implements citations for the ``newapave'' bibliography style. @@ -184,7 +184,7 @@ \def\@biblabel#1{} \newlength{\bibhang} %\setlength{\bibhang}{1em} % ORIGINAL -\setlength{\bibhang}{0.5em} % DAFx-06 +\setlength{\bibhang}{0.5em} % DAFx-06 % \def\thebibliography#1{% \section*{\bibname} @@ -194,7 +194,7 @@ \setlength{\itemindent}{-\bibhang} \setlength{\leftmargin}{\bibhang}} % \def\newblock{\hskip .11em plus .33em minus .07em} % ORIGINAL - \def\newblock{\hskip 0em plus 0.0em minus .07em} % DAFx-06 + \def\newblock{\hskip 0em plus 0.0em minus .07em} % DAFx-06 \sloppy\clubpenalty4000\widowpenalty4000 \sfcode`\.=1000\relax} % diff --git a/Master/texmf-dist/doc/latex/confproc/example/papers/expages.tex b/Master/texmf-dist/doc/latex/confproc/example/papers/expages.tex index e095f93f20f..901c0e266c6 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/papers/expages.tex +++ b/Master/texmf-dist/doc/latex/confproc/example/papers/expages.tex @@ -7,7 +7,7 @@ %% confproc.dtx (with options: `expages') %% %% This is `expages.tex', an example file for the confproc package. -%% Copyright (C) 2007 by Vincent Verfaille <vincent@music.mcgill.ca> +%% Copyright (C) 2009 by Vincent Verfaille <[lastname].[packagename]@gmail.com> %% %% This file is part of the confproc package. %% ------------------------------------------- @@ -29,6 +29,7 @@ %% %% For more details, LaTeX the source `confproc.dtx'. %% + \newcommand{\setpagenumber}[1]{ \newcommand{\paperswitch}{#1} \ifnum\paperswitch=01 {\setcounter{page}{1}}\fi @@ -37,6 +38,7 @@ \ifnum\paperswitch=04 {\setcounter{page}{17}}\fi \ifnum\paperswitch=05 {\setcounter{page}{23}}\fi } + \endinput %% %% End of file `expages.tex'. diff --git a/Master/texmf-dist/doc/latex/confproc/example/papers/pages.tex b/Master/texmf-dist/doc/latex/confproc/example/papers/pages.tex new file mode 100644 index 00000000000..ca5f1636b80 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/papers/pages.tex @@ -0,0 +1,8 @@ +\newcommand{\setpagenumber}[1]{ + \newcommand{\paperswitch}{#1} + \ifnum\paperswitch=01 {\setcounter{page}{1}}\fi + \ifnum\paperswitch=02 {\setcounter{page}{7}}\fi + \ifnum\paperswitch=03 {\setcounter{page}{13}}\fi + \ifnum\paperswitch=04 {\setcounter{page}{17}}\fi + \ifnum\paperswitch=05 {\setcounter{page}{23}}\fi +}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/confproc/example/papers_split.sh b/Master/texmf-dist/doc/latex/confproc/example/papers_split.sh new file mode 100644 index 00000000000..884b7bdbb76 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/papers_split.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +args=("$@") +GPATH=${args[0]} +TEXFILE=${args[1]} # example1 +INPATH=${args[2]} # papers_info +SPPATH=${args[3]} #papers_split +PDFPATH=${args[4]} + +cd ${GPATH} +SPPATH=${GPATH}/${SPPATH} +PDFFILE=${GPATH}/${TEXFILE}.pdf # PDF proceedings +echo "PDF proc used for individual PDFs extraction:\n --> $PDFFILE" +echo "saving tmp .ps and .pdf files into\n --> $SPPATH" +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=7 -dLastPage=12 -sOUTPUTFILE=${SPPATH}/p_001.pdf ${PDFFILE} +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=13 -dLastPage=17 -sOUTPUTFILE=${SPPATH}/p_003.pdf ${PDFFILE} +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=19 -dLastPage=22 -sOUTPUTFILE=${SPPATH}/p_005.pdf ${PDFFILE} +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=23 -dLastPage=28 -sOUTPUTFILE=${SPPATH}/p_007.pdf ${PDFFILE} +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=29 -dLastPage=35 -sOUTPUTFILE=${SPPATH}/p_009.pdf ${PDFFILE} diff --git a/Master/texmf-dist/doc/latex/confproc/example/papers_split_all.sh b/Master/texmf-dist/doc/latex/confproc/example/papers_split_all.sh new file mode 100644 index 00000000000..884b7bdbb76 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/papers_split_all.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +args=("$@") +GPATH=${args[0]} +TEXFILE=${args[1]} # example1 +INPATH=${args[2]} # papers_info +SPPATH=${args[3]} #papers_split +PDFPATH=${args[4]} + +cd ${GPATH} +SPPATH=${GPATH}/${SPPATH} +PDFFILE=${GPATH}/${TEXFILE}.pdf # PDF proceedings +echo "PDF proc used for individual PDFs extraction:\n --> $PDFFILE" +echo "saving tmp .ps and .pdf files into\n --> $SPPATH" +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=7 -dLastPage=12 -sOUTPUTFILE=${SPPATH}/p_001.pdf ${PDFFILE} +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=13 -dLastPage=17 -sOUTPUTFILE=${SPPATH}/p_003.pdf ${PDFFILE} +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=19 -dLastPage=22 -sOUTPUTFILE=${SPPATH}/p_005.pdf ${PDFFILE} +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=23 -dLastPage=28 -sOUTPUTFILE=${SPPATH}/p_007.pdf ${PDFFILE} +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=29 -dLastPage=35 -sOUTPUTFILE=${SPPATH}/p_009.pdf ${PDFFILE} diff --git a/Master/texmf-dist/doc/latex/confproc/example/papersinfo.sh b/Master/texmf-dist/doc/latex/confproc/example/papersinfo.sh new file mode 100644 index 00000000000..61c444520d7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/papersinfo.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +args=("$@") +GPATH=${args[0]} #= ~/proceedings/e-proceedings +TEXFILE=${args[1]} #= ICMC2009_proceedings +INPATH=${args[2]} #= papers_info +SPPATH=${args[3]} #= papers_split +PDFPATH=${args[4]} #= ~/proceedings/e-proceedings +PDFTKPATH=${args[5]} #= ~/pdftk_info + +PDFFILE=${TEXFILE}.pdf # for use in the paper_split.sh and paper_info.sh scripts + +cd ${GPATH}/${SPPATH} +filelist=`ls *.pdf` +mkdir ${PDFPATH} + +cd ${GPATH} +chmod +x removeLaTeXcmds.sh + +for file in $filelist +do + base=${file%%.*} + echo "removing LaTeX accents: ${base}.pdftk -> ${base}_clean.info" +# echo "cmd: removeLaTeXcmds.sh ${GPATH} ${PDFTKPATH}/${base}.pdftk ${INPATH}/${base}_clean.info" + ${GPATH}/removeLaTeXcmds.sh ${GPATH} ${PDFTKPATH}/${base}.pdftk ${INPATH}/${base}_clean.info + echo "adding PDF metadata: ${base}_clean.info -> ${base}.pdf" +# echo "cmd: pdftk ${SPPATH}/${base}.pdf update_info ${INPATH}/${base}_clean.info output ${PDFPATH}/${base}.pdf" + echo "pdftk ${GPATH}/${SPPATH}/${base}.pdf update_info ${GPATH}/${INPATH}/${base}_clean.info output ${PDFPATH}/${base}.pdf" + pdftk ${GPATH}/${SPPATH}/${base}.pdf update_info ${GPATH}/${INPATH}/${base}_clean.info output ${PDFPATH}/${base}.pdf +done diff --git a/Master/texmf-dist/doc/latex/confproc/example/paperssplitpreamble.sh b/Master/texmf-dist/doc/latex/confproc/example/paperssplitpreamble.sh new file mode 100644 index 00000000000..3c42c713005 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/paperssplitpreamble.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +args=("$@") +GPATH=${args[0]} +TEXFILE=${args[1]} # example1 +INPATH=${args[2]} # papers_info +SPPATH=${args[3]} #papers_split +PDFPATH=${args[4]} + +cd ${GPATH} +SPPATH=${GPATH}/${SPPATH} +PDFFILE=${GPATH}/${TEXFILE}.pdf # PDF proceedings +echo "PDF proc used for individual PDFs extraction:\n --> $PDFFILE" +echo "saving tmp .ps and .pdf files into\n --> $SPPATH" diff --git a/Master/texmf-dist/doc/latex/confproc/example/removeLaTeXcmds.sh b/Master/texmf-dist/doc/latex/confproc/example/removeLaTeXcmds.sh new file mode 100644 index 00000000000..1f651b93648 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example/removeLaTeXcmds.sh @@ -0,0 +1,65 @@ +#!/bin/bash + +# arg 0: path, arg 1: input file; arg 2: output file + +#-- save arguments for use +args=("$@") +path=${args[0]} +file=${args[1]} +outputfile=${args[2]} +cd ${path} +cp ${file} tmp.txt +#echo "__ ORIGINAL: $file ___" +#cat tmp.txt + +#echo " " +#echo "__ removed accents: __" +perl -p -i -e " s/\\\'e/e/g " tmp.txt +perl -p -i -e " s/\\'{e}/e/g " tmp.txt +perl -p -i -e " s/\\\`e/e/g " tmp.txt +perl -p -i -e ' s/\\"e/e/g ' tmp.txt +perl -p -i -e " s/\\\`{e}/e/g " tmp.txt +perl -p -i -e " s/\\\'a/a/g " tmp.txt +perl -p -i -e " s/\\\`a/a/g " tmp.txt +perl -p -i -e " s/\\\`{a}/a/g " tmp.txt +perl -p -i -e ' s/\\"{o}/oe/g ' tmp.txt +perl -p -i -e ' s/\\"o/o/g ' tmp.txt +perl -p -i -e ' s/\\o{}/o/g ' tmp.txt +perl -p -i -e ' s/\\\^o/o/g ' tmp.txt +perl -p -i -e " s/\\\'o/o/g " tmp.txt +perl -p -i -e " s/\\\`o/o/g " tmp.txt +perl -p -i -e " s/\\\'u/u/g " tmp.txt +perl -p -i -e ' s/\\u //g ' tmp.txt +perl -p -i -e ' s/\\"u/u/g ' tmp.txt +perl -p -i -e ' s/\\i /i/g ' tmp.txt +perl -p -i -e ' s/\\i/i/g ' tmp.txt +perl -p -i -e " s/\\\'{i}/i/g " tmp.txt +perl -p -i -e ' s/\\"{i}/i/g ' tmp.txt +perl -p -i -e ' s/\\c {c}/c/g ' tmp.txt + +#echo " " +#echo "__ removed textit, texbf, {, }: __" +perl -p -i -e ' s/\--/-/g ' tmp.txt +perl -p -i -e " s/\\ss/ss/g " tmp.txt +perl -p -i -e ' s/\\textsuperscript //g ' tmp.txt +perl -p -i -e " s/\\&/&/g " tmp.txt +perl -p -i -e ' s/\\mu/mu\:/g ' tmp.txt +perl -p -i -e ' s/\\sim\s//g ' tmp.txt +perl -p -i -e ' s/\\sim//g ' tmp.txt +perl -p -i -e ' s/\s:/:/g ' tmp.txt + +perl -p -i -e ' s/\$//g ' tmp.txt +perl -p -i -e " s/textit //g " tmp.txt +perl -p -i -e " s/textbf //g " tmp.txt +perl -p -i -e " s/\{//g " tmp.txt +perl -p -i -e " s/\}//g " tmp.txt +perl -p -i -e ' s/\`\`/"/g ' tmp.txt +perl -p -i -e " s/\'\'/\"/g " tmp.txt + +#echo " " +#echo "__ removed \: ___" +perl -pi -e 's/\\//g' tmp.txt +perl -pi -e 's/\s{2,10}\{\}/ /g' tmp.txt +perl -pi -e 's/\s{2,10}/ /g' tmp.txt + +cp tmp.txt $outputfile diff --git a/Master/texmf-dist/doc/latex/confproc/example1empty.tex b/Master/texmf-dist/doc/latex/confproc/example1empty.tex new file mode 100644 index 00000000000..9df69175052 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example1empty.tex @@ -0,0 +1,113 @@ +%% +%% This is file `example1empty.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% confproc.dtx (with options: `example1empty') +%% +%% This is `example1empty.tex', an example file for the confproc package. +%% Copyright (c) 2010 by Vincent Verfaille <verf[...].confproc@gmail.com> +%% +%% This file is part of the confproc package. +%% ------------------------------------------- +%% +%% It may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License, either version 1.2 of this license or +%% (at your option) any later version. +%% +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% This file may not be distributed without the original source file +%% `confproc.dtx'. +%% +%% The list of all files belonging to the confproc package is given in +%% the `readme.txt' file. +%% +%% For more details, LaTeX the source `confproc.dtx'. +%% +\documentclass[letterpaper,10pt,twoside,% + electronic,% [printed] | electronic + papers=countpages,% empty | draft | [final] | countpages + paperselec=all, %[all] | p_001 | p_fake + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + linkcolor=blue,urlcolor=blue},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{mathptmx} +\usepackage[super]{nth} + +\renewcommand{\procpdfauthor}{{\color{red}[Proceedings editor], [University]}} +\renewcommand{\procpdftitle}{{\color{red}[Acronym] Proceedings}} +\renewcommand{\procpdfsubject}{{\color{red}Proc. of the Xth International Conference % + on [Nice Topic] ([Acronym]), [City], [Country], [Dates]}} + +\renewcommand{\procchead}{} % +\renewcommand{\proclhead}{{\em \small \procpdfsubject}} + +\author{\procpdfauthor} +\title{\procpdftitle} +\date{\today} +\renewcommand{\PAPERPATH}{papers/} +\makeindex + +%%%=========== PROCEEDINGS =========== +\begin{document} +\frontmatter +\setcounter{page}{1} +\pdfbookmark[0]{Preamble}{preamble} +\pdfbookmark[1]{Cover}{cover} +\maketitle +\newpage + +\otherpagestyle +\tableofcontents + +%%%==== BEGINNING OF PAPERS ==== +\mainmatter + +\procday{Day 1} + \session{Oral Session 1} + \procpaper[switch=45,% + title={Templates for One Author},% + author={Alfred Alabama},% + index={\index{Alabama, Alfred}},% + ]{p_001} + \procpaper[switch=21,% + title={Templates for One Author with Two Affiliations},% + author={Bob Boogie-Woogie},% + index={\index{Boogie-Woogie, Bob}},% + ]{p_003} + \session{Poster Session 1} + \procpaper[switch=33,% + title = {Templates for Two Authors},% + author={Alfred Alabama, Chris Christmas},% + index={\index{Alabama, Alfred}\index{Christmas, Chris}},% + ]{p_005} + +\procday{Day 2} + \session{Oral Session 2} + \procpaper[switch=75,% + title={Templates for Three Authors},% + author={Bob Boogie-Woogie, Chris Christmas, Don Didon},% + index={\index{Boogie-Woogie, Bob}\index{Christmas, Chris}% + \index{Didon, Don}},% + ]{p_007} + \procpaper[switch=27,% + title={Templates f\'or F\`o\"ur Àuthors},% + author={J\o{}hn J\"oe, K\'e\~{n}t K\^{\i}ng, L\`ou L\'ou,% + M\`anfr\'ed J. M\^ost\u{e}k\i}, + index={\index{J\"oe, J\o{}hn}\index{K\^{\i}ng, K\'e\~{n}t}% + \index{L\'ou, L\`ou}\index{M\^ost\u{e}k\i, M\`anfr\'ed J.}}, + ]{p_009} + +%%%==== END OF PAPERS ==== +\backmatter +\insertindex +\end{document} diff --git a/Master/texmf-dist/doc/latex/confproc/example2custom.tex b/Master/texmf-dist/doc/latex/confproc/example2custom.tex new file mode 100644 index 00000000000..b4249f018dc --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example2custom.tex @@ -0,0 +1,158 @@ +%% +%% This is file `example2custom.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% confproc.dtx (with options: `example2custom') +%% +%% This is `example2custom.tex', an example file for the confproc package. +%% Copyright (c) 2010 by Vincent Verfaille <verf[...].confproc@gmail.com> +%% +%% This file is part of the confproc package. +%% ------------------------------------------- +%% +%% It may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License, either version 1.2 of this license or +%% (at your option) any later version. +%% +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% This file may not be distributed without the original source file +%% `confproc.dtx'. +%% +%% The list of all files belonging to the confproc package is given in +%% the `readme.txt' file. +%% +%% For more details, LaTeX the source `confproc.dtx'. +%% +\documentclass[letterpaper,10pt,twoside,% + electronic,% [printed] | electronic + papers=final,% empty | draft | [final] | countpages + headers=exceptpdf,% none | pdfonly | exceptpdf | [allpages] + paperselec=all, %[all] | p_001 | p_fake + colorheaders=red,% + verbose,% + pdftk,% + pdftkfolder={pdftk_info/},% + pdftksubject={DAFx-06 Conference},% + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} + +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{mathptmx} +\usepackage[super]{nth} + +\setlength{\LaTeXxShift}{0pt} +\setlength{\LaTeXyShift}{-3mm} %letter +\setlength{\WordxShift}{10pt} +\setlength{\WordyShift}{-40pt} + +\definecolor{colorforlink}{rgb}{0,0,0.8} +\definecolor{colorforcite}{rgb}{0,0.8,0} +\definecolor{colorforurl}{rgb}{0,0,1} + +\newcommand{\DAFxname}{Proc.~of the \nth{9} % + Int.~Conference on Digital Audio Effects (DAFx-06)} +\newcommand{\DAFxdate}{September 18-20, 2006} +\newcommand{\DAFxaddress}{Montreal, Canada} + +\renewcommand{\procpdfauthor}{Vincent Verfaille, McGill University} +\renewcommand{\procpdftitle}{DAFx-06 Proceedings - \DAFxaddress} +\renewcommand{\procpdfsubject}{Conference proceedings} + +\renewcommand{\procchead}{}% +%%\renewcommand{\proclhead}{{\em \small \procpdfsubject}} +\renewcommand{\proclhead}{{\em \small \DAFxname, \DAFxaddress, \DAFxdate}} +\renewcommand{\proccfoot}{\small DAFX-\thepage} +\setlength{\procfootvskip}{1.2mm} +%%\setlength{\procoptfootvskip}{4mm} + +%%\author{Vincent Verfaille, McGill University} +%%\title{Proc. of the \nth{9} Int. Conf. on Digital Audio Effects\\ +%% Montreal, Quebec, Canada} +%%\date{Sept.~18--20, 2006} +\author{\procpdfauthor} +%%\title{\procpdftitle} +\title{\DAFxname\\ \DAFxaddress} +%%\date{\today} +\date{\DAFxdate} +%%\includepdf[noautoscale,pages=1,link]{\PICTPATH ex_1stpage.pdf} + +%%\renewcommand{\contentsname}{List of Sessions} +%%\renewcommand{\bibname}{General Bibliography} +%%\renewcommand{\indexname}{List of Authors} +\renewcommand{\PAPERPATH}{papers/} +%%\renewcommand{\papertitlestyle}{\texorpdfstring{}{\scshape}} +%%\renewcommand{\paperauthorstyle}{\texorpdfstring{, }{\break}} +\renewcommand{\confstylechecktitle}{\vspace*{0.3cm} % + \bf \sc \Large \noindent \centerline} +\renewcommand{\confstylecheckauthor}{\large \it \noindent \centerline} +\makeindex + +%%%=========== PROCEEDINGS =========== +\begin{document} + +\frontmatter +\frontmattertocstyle +\setcounter{page}{1} +\pdfbookmark[0]{Preamble}{preamble} +\pdfbookmark[1]{Cover}{cover} +\maketitle +\newpage + +\otherpagestyle +\tableofcontents + +%%%==== BEGINNING OF PAPERS ==== +\setcounter{npagespreamble}{\arabic{page}-1} % only useful for the 'pdftk' option +\mainmatter +\mainmattertocstyle +\procday{Day 1} + \session{Oral Session 1} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=45, npages=6,% + title={Templates for One Author},% + author={Alfred Alabama},% + index={\index{Alabama, Alfred}},% + ]{p_001} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=21, npages=5,% + title={Templates for One Author with Two Affiliations},% + author={Bob Boogie-Woogie},% + index={\index{Boogie-Woogie, Bob}},% + ]{p_003} + +\session{Poster Session 1} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=33, npages=4,% + title = {Templates for Two Authors},% + author={Alfred Alabama, Chris Christmas},% + index={\index{Alabama, Alfred}\index{Christmas, Chris}},% + ]{p_005} + +\procday{Day 2} +\session{Oral Session 2} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=75, npages=6,% + title={Templates for Three Authors},% + author={Bob Boogie-Woogie, Chris Christmas, Don Didon},% + index={\index{Boogie-Woogie, Bob}\index{Christmas, Chris}% + \index{Didon, Don}},% + ]{p_007} + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, switch=27, npages=7,% + title={Templates f\'or F\`o\"ur Àuthors},% + author={J\o{}hn J\"oe, K\'e\~{n}t K\^{\i}ng, L\`ou L\'ou,% + M\`anfr\'ed J. M\^ost\u{e}k\i}, + index={\index{J\"oe, J\o{}hn}\index{K\^{\i}ng, K\'e\~{n}t}% + \index{L\'ou, L\`ou}\index{M\^ost\u{e}k\i, M\`anfr\'ed J.}}, + ]{p_009} + +%%%==== END OF PAPERS ==== +\backmatter +\backmattertocstyle +\insertindex +\end{document} diff --git a/Master/texmf-dist/doc/latex/confproc/example3optim.tex b/Master/texmf-dist/doc/latex/confproc/example3optim.tex new file mode 100644 index 00000000000..720f3e8c9a9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/example3optim.tex @@ -0,0 +1,237 @@ +%% +%% This is file `example3optim.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% confproc.dtx (with options: `example3optim') +%% +%% This is `example3optim.tex', an example file for the confproc package. +%% Copyright (c) 2010 by Vincent Verfaille <verf[...].confproc@gmail.com> +%% +%% This file is part of the confproc package. +%% ------------------------------------------- +%% +%% It may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License, either version 1.2 of this license or +%% (at your option) any later version. +%% +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% This file may not be distributed without the original source file +%% `confproc.dtx'. +%% +%% The list of all files belonging to the confproc package is given in +%% the `readme.txt' file. +%% +%% For more details, LaTeX the source `confproc.dtx'. +%% +\documentclass[letterpaper,% [letterpaper] | a4paper + 10pt,% [10pt] | 11pt | 12pt + twoside,% [twoside] | oneside + twosidepapers,% [twosidepapers] | onesidepapers + electronic,% [electronic] | printed + binding=0mm,% [0mm] + papers=final,% empty | draft | [final] + headers=exceptpdf,% none | pdfonly | exceptpdf | [allpages] + bib=backref,% [none] | merge | backref | final + paperselec=all,% [all] | p_001 | paper_2 | 3 ... + onecoltoc,% [onecoltoc] | twocoltoc + tocnum=left,% [left] | right + twocolbib,% [twocolbib] | onecolbib + threecolindex,% [threecolindex] | twocolindex + checktitle=false,% true | [false] + checkauthor=false,% true | [false] + showpapernumber=false,% true | [false] + movepagenumber=false,% true | [false] + showmarginlines=false,% true | [false] + colorheaders=black,% [black] | red | any color! + debug=false,% true | [false] + verbose=false,% true | [false] + pdftk=true,% true | [false] + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + linkcolor=colorforlink,urlcolor=colorforurl}, % [blue, blue, blue] + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter + ]{confproc} +%%% inner=0.69in,top=33.9mm,bottom=38mm,footskip=10.4mm,voffset=-4.8mm},%A4 +%%\input{exclass} +\usepackage{setspace} +\usepackage{xkeyval} +\usepackage{newapave} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{mathptmx} +\usepackage[super]{nth} + +\setlength{\LaTeXxShift}{0pt} +\setlength{\LaTeXyShift}{-3mm} %letter +\setlength{\WordxShift}{10pt} +\setlength{\WordyShift}{-40pt} + +\definecolor{colorforlink}{rgb}{0,0,0.8} +\definecolor{colorforcite}{rgb}{0,0.8,0} +\definecolor{colorforurl}{rgb}{0,0,1} + +\newcommand{\DAFxname}{Proc.~of the \nth{9} % + Int.~Conference on Digital Audio Effects (DAFx-06)} +\newcommand{\DAFxdate}{September 18-20, 2006} +\newcommand{\DAFxaddress}{Montreal, Canada} + +\renewcommand{\procpdfauthor}{Vincent Verfaille, McGill University} +\renewcommand{\procpdftitle}{DAFx-06 Proceedings - \DAFxaddress} +\renewcommand{\procpdfsubject}{Conference proceedings} + +\renewcommand{\procchead}{} % +\renewcommand{\proclhead}{{\em \small \DAFxname, \DAFxaddress, \DAFxdate}} +\renewcommand{\proccfoot}{{\small DAFX-\thepage}} +\setlength{\procfootvskip}{1.2mm} +\setlength{\procoptfootvskip}{4mm} + +\author{\procpdfauthor} +\title{\DAFxname\\ \DAFxaddress} +\date{\DAFxdate} + +\renewcommand{\contentsname}{Day-by-Day Conference Program} +\renewcommand{\bibname}{General Bibliography} +\renewcommand{\indexname}{List of Authors} +\renewcommand{\PAPERPATH}{papers/} +\newcommand{\PICTPATH}{pictures/} + \newcommand{\TEXTPATH}{} + \newcommand{\BIBPATH}{} +\newcommand{\procbibfile}{\BIBPATH exbiblio} +\newcommand{\myaddhruletotoc}{\vspace*{0.1cm}% + \noindent\protect\hrulefill\par\vspace*{-0.15cm}} +\newcommand{\myaddthickhruletotoc}{\vspace*{0.5cm}% + \noindent\protect\hrule height 0.6ex \hfill\par\vspace*{0.1cm}} +\renewcommand{\procday}[1]{% + \phantomsection% + \addcontentsline{toc}{part}{#1}} % \centerline{#1} +\renewcommand{\session}[1]{% + \phantomsection% + \addcontentsline{toc}{chapter}{#1}} +%% idem for left/right numbering +\renewcommand{\mainmattertocstyle}{ + \titlecontents{part}[0pt]% + {\addvspace{3mm}}% + {\myaddthickhruletotoc\Large\bfseries}% + {\myaddthickhruletotoc\Large\bfseries}% + {}% + [\addvspace{0.5mm}]% + \titlecontents{chapter}[0pt]% + {\addvspace{2mm}}% + {\myaddhruletotoc\large\bfseries\itshape}% + {\myaddhruletotoc\large\bfseries\itshape}% + {}% + [\addvspace{0.5mm}]% +} +%%\renewcommand{\papertitlestyle}{} +\renewcommand{\papertitlestyle}{\texorpdfstring{}{\scshape}} +%%\renewcommand{\paperauthorstyle}{\texorpdfstring{\newline\itshape}{\break}} +\renewcommand{\paperauthorstyle}{\texorpdfstring{, \hfill}{\break}} +\renewcommand{\proctoctitleauthor}[2]{% + \texorpdfstring{{\paperauthorstyle #2}{\papertitlestyle #1}}% + {{\papertitlestyle #1}}} +\renewcommand{\paperauthorstyle}{\texorpdfstring{\itshape}{}} +\renewcommand{\papertitlestyle}{\texorpdfstring{\newline}{\break}} +\renewcommand{\confstylechecktitle}{\vspace*{0.3cm} % + \bf \sc \Large \noindent \centerline} +\renewcommand{\confstylecheckauthor}{\large \it \noindent \centerline} +\makeindex + +%%%=========== PROCEEDINGS =========== +\begin{document} + +\frontmatter +%%\layout +%%\begin{figure} +%% \setlayoutscale{0.8} \tocdiagram +%% \caption{Table of Contents entry parameters} \label{fig:tocp} +%%\end{figure} +%%\begin{figure} +%% \setlayoutscale{0.8} \currenttoc \tocdesign +%% \caption{Typical Table of Contents entry for this document} +%% \label{fig:thistoc} +%%\end{figure} +%%\clearsingleordoublepage +\setcounter{page}{1} +\pdfbookmark[0]{Preamble}{preamble} +\pdfbookmark[1]{Cover}{cover} +\maketitle +%%\includepdf[noautoscale,pages=1,link]{\PICTPATH ex_1stpage.pdf} +\addtocontents{toc}{\vskip 1cm} +\addtocontents{toc}{\centerline{\huge\textsc{Conference Program}}} +\renewcommand{\contentsname}{\texorpdfstring{}{Conference Program}} +\newpage +\vspace*{1.7cm} +\pdfbookmark[1]{Publishing informations}{publishing} +\thispagestyle{empty} +\noindent {\bf Published by:}\\ Laboratory Name\\ Department name\\ +School Name\\ University Name\\ +\url{http://www.conferencesite.com}\\ +\vspace*{0.15cm}\newline +\noindent {\bf ISBN: X-XXXX-XXXXXX}\\ +\vspace*{0.35cm}\newline +\noindent {\bf Credits:}\\ +Cover design: Firstname Lastname\\ +Logo photo: Firstname Lastname\\ +\LaTeX{} editor: Firstname Lastname\\ +using \LaTeX's `confproc' package, version 0.7 (optional: by V. Verfaille)\\ +\vspace*{0.35cm}\newline +\noindent Printed in City by Print-Company --- Month Year +\otherpagestyle +%%%-- Welcome letters +\clearsingleordoublepage +\vspace*{0.6cm} +\thisotherpagestyle +\pdfbookmark[1]{Welcome from Firstname Lastname}{welcome} +\section*{Welcome from Firstname Lastname, Conference Chair} +\vspace*{1.1cm} +\onehalfspace +\begin{center} + \begin{minipage}[h]{14cm} + Text of the welcome letter, with 1.5 lines spacing, blah blah... + Text of the welcome letter, with 1.5 lines spacing, blah blah... + Text of the welcome letter, with 1.5 lines spacing, blah blah... + Text of the welcome letter, with 1.5 lines spacing, blah blah... + \end{minipage} +\end{center} +\doublespace +\begin{center} + \begin{minipage}[h]{14cm} + Text of the welcome letter, with 2 lines spacing, blah blah... + Text of the welcome letter, with 2 lines spacing, blah blah... + Text of the welcome letter, with 2 lines spacing, blah blah... + Text of the welcome letter, with 2 lines spacing, blah blah... + \end{minipage} +\end{center} +\singlespace +\tableofcontents + +%%%==== BEGINNING OF PAPERS ==== +\setcounter{npagespreamble}{\arabic{page}-1} % only useful for the 'pdftk' option +\mainmatter +\mainmattertocstyle +\input{\TEXTPATH expapersswitch} +\procday{Day 1} + \session{Oral Session 1} + \paperid{45}{p_001} + \paperid{21}{p_003} + \session{Poster Session 1} + \paperid{33}{p_005} +\procday{Day 2} + \session{Oral Session 2} + \paperid{75}{p_007} + \paperid{27}{p_009} + +%%%==== END OF PAPERS ==== +\backmatter +\backmattertocstyle +\bibliographystyle{newapave} +%%\bibliographystyle{newapa} +{\footnotesize\bibliography{\procbibfile}} +\insertindex +\end{document} diff --git a/Master/texmf-dist/doc/latex/confproc/exbiblio.bib b/Master/texmf-dist/doc/latex/confproc/exbiblio.bib new file mode 100644 index 00000000000..2d4d6c89649 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/exbiblio.bib @@ -0,0 +1,69 @@ +@book{Mitra:Kaiser:1993:DSP:handbook, + Author = {S.~K. Mitra and J.~F. Kaiser}, + Title = {Handbook for Digital Signal Processing}, + Publisher = {J. Wiley {\&} Sons}, + Year = {1993}} + +@book{Haykin:1991:adaptive:filter, + Author = {Simon Haykin}, + Title = {Adaptive Filter Theory}, + Publisher = {Prentice Hall}, + Address = {Englewood Cliffs}, + Edition = {Second}, + Year = {1991}} + +@inbook{Serra:1996:sms, + Author = {X. Serra}, + Chapter = {Musical Sound Modeling with Sinusoids plus Noise}, + Publisher = {G. D. Poli, A. Picialli, S. T. Pope and C. Roads,% + Eds.~Swets~\&~Zeitlinger}, + Title = {Musical Signal Processing}, + Pages = {91--122}, + Year = {1996}} + +@article{Moorer:2000:AES:audio:millenium, + Author = {James A. Moorer}, + Title = {Audio in the New Millennium}, + Journal = {Journal of the {AES}}, + Volume = 48, + Number = 5, + Year = 2000, + Month = may, + Pages = {490--498}} + +@inproceedings{Arfib:1998:DAFx, + Author = {D. Arfib}, + Booktitle = {Proc. of the COST-G6 Workshop on Digital Audio Effects % + (DAFx-98)}, + Title = {Different Ways to Write Digital Audio Effects Programs}, + Address = {Barcelona, Spain}, + Pages = {188--91}, + Year = {1998}} + +@techreport{Askenfelt:1976:automatic:transcription, + Author = {A. Askenfelt}, + Title = {Automatic notation of played music (status report)}, + Institution = {{STL-QPSR, Vol. 1, pp. 1--11}}, + Year = {1976}} + +@mastersthesis{Egozy:1995:MIT:features:gesture, + Author = {E.~B. Egozy}, + title = {Deriving musical control features from a real-time timbre % + analysis of the clarinet}, + School = {Massachusetts Institute of Technology}, + Year = {1995}} + +@phdthesis{Dutilleux:1991, + Author = {P. Dutilleux}, + School = {University of Aix-Marseille II}, + Title = {Vers la machine \`a sculpter le son, modification en % + temps-r\'eel des caract\'eristiques fr\'equentielles et temporelles% + des sons}, + Year = {1991}} + +@unpublished{Fitz:Haken:2003:Web:morphing:loris, + Author = {K. Fitz and L. Haken}, + Title = {{Current Research in Real-time Sound Morphing}}, + Note = {Available at \href{http://www.cerlsoundgroup.org/RealTimeMorph/}% + {http://www.cerlsoundgroup.org/RealTimeMorph/}}, + Year = {Accessed March 08, 2006}} diff --git a/Master/texmf-dist/doc/latex/confproc/exclasslastel.tex b/Master/texmf-dist/doc/latex/confproc/exclasslastel.tex new file mode 100644 index 00000000000..37f3e753482 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/exclasslastel.tex @@ -0,0 +1,15 @@ +\documentclass[letterpaper,10pt,twoside,twosidepapers,% + electronic,% [printed] | electronic + papers=final,% empty | draft | [final] | countpages + headers=exceptpdf,% none | pdfonly | exceptpdf | [allpages] + paperselec=all, %[all] | p_001 | p_fake + bib=last,% + pdftk,% + pdftkfolder={pdftk_info/},% + pdftksubject={DAFx-06 Conference},% + binding=0mm,% [0mm] -> no binding for electronic version + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.0in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} diff --git a/Master/texmf-dist/doc/latex/confproc/exclasslastpb.tex b/Master/texmf-dist/doc/latex/confproc/exclasslastpb.tex new file mode 100644 index 00000000000..b1e344e979a --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/exclasslastpb.tex @@ -0,0 +1,15 @@ +\documentclass[letterpaper,10pt,twoside,twosidepapers,% + printed,% [printed] | electronic + papers=final,% empty | draft | [final] | countpages + headers=exceptpdf,% none | pdfonly | exceptpdf | [allpages] + paperselec=all, %[all] | p_001 | p_fake + bib=last,% + pdftk,% + pdftkfolder={pdftk_info/},% + pdftksubject={DAFx-06 Conference},% + binding=5mm,% [0mm] -> adjust the binding depending on the proceedings thickness + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} diff --git a/Master/texmf-dist/doc/latex/confproc/exclasspre.tex b/Master/texmf-dist/doc/latex/confproc/exclasspre.tex new file mode 100644 index 00000000000..4e30c8b4ba4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/exclasspre.tex @@ -0,0 +1,17 @@ +\documentclass[letterpaper,10pt,twoside,twosidepapers,% + electronic,% [printed] | electronic + papers=countpages,% empty | draft | [final] | countpages + headers=allpages,% none | pdfonly | exceptpdf | [allpages] + paperselec=all, %[all] | p_001 | p_fake + bib=backref,% + colorheaders=red,% + verbose,% + pdftk,% + pdftkfolder={pdftk_info/},% + pdftksubject={DAFx-06 Conference},% + movepagenumber,% + hyperref={bookmarksdepth=1,bookmarksopen,bookmarksopenlevel=0,% + citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl},% + geometry={text={175truemm,226truemm},% A4 & letter + inner=0.805in,top=29.15mm,bottom=24.5mm,footskip=9.68mm,voffset=-5mm},%letter +]{confproc} diff --git a/Master/texmf-dist/doc/latex/confproc/example/exclasslast.tex b/Master/texmf-dist/doc/latex/confproc/expages.tex index 2f195fb6ebe..dba9a9675e1 100644 --- a/Master/texmf-dist/doc/latex/confproc/example/exclasslast.tex +++ b/Master/texmf-dist/doc/latex/confproc/expages.tex @@ -1,13 +1,13 @@ %% -%% This is file `exclasslast.tex', +%% This is file `expages.tex', %% generated with the docstrip utility. %% %% The original source files were: %% -%% confproc.dtx (with options: `exclasslast') +%% confproc.dtx (with options: `expages') %% -%% This is `exclasslast.tex', an example file for the confproc package. -%% Copyright (C) 2007 by Vincent Verfaille <vincent@music.mcgill.ca> +%% This is `expages.tex', an example file for the confproc package. +%% Copyright (c) 2010 by Vincent Verfaille <verf[...].confproc@gmail.com> %% %% This file is part of the confproc package. %% ------------------------------------------- @@ -25,14 +25,15 @@ %% `confproc.dtx'. %% %% The list of all files belonging to the confproc package is given in -%% the file `readme.txt'. +%% the `readme.txt' file. %% %% For more details, LaTeX the source `confproc.dtx'. %% -\documentclass[a4paper,10pt,twoside,twosidepapers, - compil=last,headers=exceptpdf,electronic, - citecolor=colorforcite,linkcolor=colorforlink,urlcolor=colorforurl, - pagecolor=colorforpage]{confproc} -\endinput -%% -%% End of file `exclasslast.tex'. +\newcommand{\setpagenumber}[1]{ + \newcommand{\paperswitch}{#1} + \ifnum\paperswitch=45 {\setcounter{page}{1}}\fi + \ifnum\paperswitch=21 {\setcounter{page}{7}}\fi + \ifnum\paperswitch=27 {\setcounter{page}{13}}\fi + \ifnum\paperswitch=33 {\setcounter{page}{17}}\fi + \ifnum\paperswitch=75 {\setcounter{page}{23}}\fi +} diff --git a/Master/texmf-dist/doc/latex/confproc/expapersswitch.tex b/Master/texmf-dist/doc/latex/confproc/expapersswitch.tex new file mode 100644 index 00000000000..c8ca3c0c63b --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/expapersswitch.tex @@ -0,0 +1,99 @@ +%% +%% This is file `expapersswitch.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% confproc.dtx (with options: `expapersswitch') +%% +%% This is `expapersswitch.tex', an example file for the confproc package. +%% Copyright (c) 2010 by Vincent Verfaille <verf[...].confproc@gmail.com> +%% +%% This file is part of the confproc package. +%% ------------------------------------------- +%% +%% It may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License, either version 1.2 of this license or +%% (at your option) any later version. +%% +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% This file may not be distributed without the original source file +%% `confproc.dtx'. +%% +%% The list of all files belonging to the confproc package is given in +%% the `readme.txt' file. +%% +%% For more details, LaTeX the source `confproc.dtx'. +%% +\newcommand{\paperid}[2]{ +\renewcommand{\paperswitch}{#1} +\ifnum\paperswitch=45 { + \newcommand{\papertitle}{Templates for One Author} + \newcommand{\paperauthors}{Alfred Alabama} + \newcommand{\paperindex}{\index{Alabama, Alfred}} + \newcommand{\paperref}{\paperswitch} + \newcommand{\paperpagenum}{6} + \newcommand{\papercite}{Serra:1996:sms,% + Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,% + Mitra:Kaiser:1993:DSP:handbook} + \procinsertpaper{\LaTeXxShift{} \LaTeXyShift}{\paperpagenum}% + {\paperref}{\papertitle}{\paperauthors}{\paperindex}{\papercite}% + {#2}{\pdfbookmark[2]{Alfred Alabama}{#2.author1}}} +\fi +\ifnum\paperswitch=21 + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=5, switch=21,% + title={Templates for One Author with Two Affiliations},% + author={Bob Boogie-Woogie},% + index={\index{Boogie-Woogie, Bob}},% + cite={Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,% + Haykin:1991:adaptive:filter},% + bookmark={\pdfbookmark[2]{Bob Boogie-Woogie}{#2.author1}}% + ]{#2} +\fi + +\ifnum\paperswitch=27 + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=7, switch=27,% + title={Templates f\'or F\`o\"ur Àuthors},% + author={J\o{}hn J\"oe, K\'e\~{n}t K\^{\i}ng, L\`ou L\'ou,% + M\`anfr\'ed J. M\^ost\u{e}k\i},% + index={\index{J\"oe, J\o{}hn}\index{K\^{\i}ng, K\'e\~{n}t}% + \index{L\'ou, L\`ou}\index{M\^ost\u{e}k\i, M\`anfr\'ed J.}},% + cite={Serra:1996:sms,Moorer:2000:AES:audio:millenium,Dutilleux:1991,% + Fitz:Haken:2003:Web:morphing:loris}, + bookmark={\pdfbookmark[2]{J\o{}hn J\"oe}{#2.author1}% + \pdfbookmark[2]{K\'e\~{n}t K\^{\i}ng}{#2.author2}% + \pdfbookmark[2]{L\`ou L\'ou}{#2.author3}% + \pdfbookmark[2]{M\`anfr\'ed J. M\^ost\u{e}k\i}{#2.author4}}% + ]{#2} +\fi + +\ifnum\paperswitch=33 + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=4, switch=33,% + title = {Templates for Two Authors},% + author={Alfred Alabama, Chris Christmas},% + index={\index{Alabama, Alfred}\index{Christmas, Chris}},% + cite={Serra:1996:sms,Moorer:2000:AES:audio:millenium,% + Arfib:1998:DAFx,Askenfelt:1976:automatic:transcription}, + bookmark={\pdfbookmark[2]{Alfred Alabama}{#2.author1}% + \pdfbookmark[2]{Chris Christmas}{#2.author2}}% + ]{#2} +\fi + +\ifnum\paperswitch=75 + \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=6, switch=75,% + title={Templates for Three Authors},% + author={Bob Boogie-Woogie, Chris Christmas, Don Didon},% + index={\index{Boogie-Woogie, Bob}\index{Christmas, Chris}% + \index{Didon, Don}},% + cite={Serra:1996:sms,Moorer:2000:AES:audio:millenium,% + Arfib:1998:DAFx,Egozy:1995:MIT:features:gesture},% + bookmark={\pdfbookmark[2]{Bob Boogie-Woogie}{#2.author1}% + \pdfbookmark[2]{Chris Christmas}{#2.author2}% + \pdfbookmark[2]{Don Didon}{#2.author3}}% + ]{#2} +\fi +} diff --git a/Master/texmf-dist/doc/latex/confproc/exportIndividualPDFs.sh b/Master/texmf-dist/doc/latex/confproc/exportIndividualPDFs.sh new file mode 100644 index 00000000000..0f63243a260 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/exportIndividualPDFs.sh @@ -0,0 +1,73 @@ +#!/bin/bash + +args=("$@") +GPATH=${args[0]} #= ~/e-proceedings +TEXFILE=${args[1]} #= proceedings +INPATH=${args[2]} #= papers_info +#mkdir -p $INPATH +SPPATH=${args[3]} #= papers_split +#mkdir -p $SPPATH +PDFPATH=${args[4]} +PDFTKPATH=${args[5]} + +PDFFILE=${TEXFILE}.pdf # for use in the paper_split.sh and paper_info.sh scripts + +echo "-PATH (working path): $GPATH" +echo "-TeX file (orig. TeX proc): $TEXFILE" +echo "-PDF: $PDFFILE (original PDF proc)" +echo "-PDFPATH (indiv. PDFs): $PDFPATH " +echo "-PDFTKPATH (pdftk info): $PDFTKPATH" +echo "-INPATH (papers info): $INPATH" +echo "-SPPATH (split papers): $SPPATH" + +cd $PDFTKPATH +list=`ls *.pdftk` +for tmpfile in $list +do + cp ${tmpfile} test.txt + #-- 2-concat all lines, removing carriage returns + sed -e :a -e '$!N;s/\n/LineBreak/;ta' -e 'P;D' test.txt >test2.txt + perl -ne ' s/LineBreakInfoKey/\nInfoKey/g; print ' test2.txt >test3.txt + perl -ne ' s/LineBreakInfoValue/\nInfoValue/g; print ' test3.txt >test4.txt + perl -ne ' s/LineBreak//g; print ' test4.txt >test5.txt + mv test5.txt $tmpfile +done + +rm -f tmp* +rm -f test*.txt + +cd $GPATH +echo "__________" +echo "__ split PDFs: generate bash script file" +pwd +echo "cmd: cat paperssplitpreamble.sh $TEXFILE.pdftk >tmp.sh" +cat paperssplitpreamble.sh $TEXFILE.pdftk >tmp.sh +mv tmp.sh ${GPATH}/papers_split.sh + +echo "__________" +echo "__ split PDFs: Perl to add echo lines to 'papers_split.sh' script" + +#echo "cmd: Perl to copy/add 'echo' cmd to each pdftk command, in 'papers_split.sh'" +perl -p -e 's/^pdftk(.*[\n\r])/echo \"pdftk $1\"\npdftk $1/gm' ${GPATH}/papers_split.sh >tmp.txt +mv tmp.txt ${GPATH}/papers_split_all.sh + +echo; echo "__________" +echo "__ split PDFs: launch bash script file" +#echo "cmd: chmod +x papers_split_all.sh" +chmod +x papers_split_all.sh + +echo "cmd: ./papers_split_all.sh" +#echo " ./papers_split_all.sh ${GPATH} ${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH}" +./papers_split_all.sh ${GPATH} ${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH} +# rm ${SPPATH}/*.ps #useful only if 'pdf2ps -> ps2pdf', not useful with 'gs' + +#--- generate PDF with corrected metadata +echo "__________" +echo "__ Correct PDF metadata with papersinfo.sh" +./papersinfo.sh ${GPATH} ${TEXFILE} ${INPATH} ${SPPATH} ${PDFPATH} ${PDFTKPATH} + +##--- clean +#rm -r ${INPATH} +#rm -r ${SPPATH} +#rm papers_split.sh +#rm -r tmp diff --git a/Master/texmf-dist/doc/latex/confproc/exprogram.csv b/Master/texmf-dist/doc/latex/confproc/exprogram.csv new file mode 100644 index 00000000000..c21790c1397 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/exprogram.csv @@ -0,0 +1,12 @@ +Type,Paper Number,PC Decision,Pages,Title,File Name,Generated,Citations,Auth1 First Name,Auth1 Last Name,Auth2 First Name,Auth2 Last Name,Auth3 First Name,Auth3 Last Name,Auth4 First Name,Auth4 Last Name,, +Type,-2,O,,,,,,First Name,Last Name,First Name,Last Name,First Name,Last Name, F.Name, L.Name,, +Day,0,,,"Day 1: September 18, 2007",,,,,,,,,,,,, +Session,0,,,Oral Session 1,,,,,,,,,,,,, +paper,45,O,6,Templates for One Author,p_001,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Mitra:Kaiser:1993:DSP:handbook",Alfred,Alabama,,,,,,,, +paper,21,O,5,Templates for One Author with Two Affiliations,p_003,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Haykin:1991:adaptive:filter",Bob,Boogie-Woogie,,,,,,,, +Poster Session,0,,,Poster Session 1,,,,,,,,,,,,, +paper,33,P,4,Templates for Two Authors,p_005,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Askenfelt:1976:automatic:transcription",Alfred,Alabama,Chris,Christmas,,,,,, +Day,0,,,"Day 2: September 19, 2007",,,,,,,,,,,,, +Session,0,,,Oral Session 2,,,,,,,,,,,,, +paper,75,O,6,Templates for Three Authors,p_007,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Arfib:1998:DAFx,Egozy:1995:MIT:features:gesture",Bob,Boogie-Woogie,Chris,Christmas,Don,Didon,,,, +paper,27,O,7,Templates fór Fòür Àuthors,p_009,LaTeX,"Serra:1996:sms,Moorer:2000:AES:audio:millenium,Dutilleux:1991,Fitz:Haken:2003:Web:morphing:loris",John,Jöe,Kéñt,Kîng,Lòu,Lóu,Mànfréd J.,Môst\u{e}k\i,, diff --git a/Master/texmf-dist/doc/latex/confproc/generateswitch.pl b/Master/texmf-dist/doc/latex/confproc/generateswitch.pl new file mode 100644 index 00000000000..499a82e515c --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/generateswitch.pl @@ -0,0 +1,211 @@ +#!/usr/bin/perl -w + +# generateswitch.pl +# created as dafxproctoc.pl by Marc Zadel, 2006-04-28 +# modified for confproc.cls by Vincent Verfaille, 2007-08-08 (v0.4) & 2009-10-30 (v0.7) +# Execute as +# ./generateswitch.pl < intputfile.txt > + +use strict; +use Text::ParseWords; +open(SWI, ">expapersswitch.tex"); #open for write, overwrite +open(SESSIONS, ">exsessions.tex"); #open for write, overwrite + +# ----- Configuration +# field separator for the input file +my $fieldseparator=','; + +# mac line endings: "\r" / Unix line endings: :\n" +$/ = "\n"; # line endings for the input file +$\ = "\n"; # line endings for the output file + +# ----- Subroutines +# -- split one line of input into a hash with named fields +sub parseinputline { + my ($inputline) = @_; + + # escape single quotes on the input line: they interfere with quotewords()'s + # quote handling (ie, they start to quote stuff) + $inputline =~ s/'/\\'/g; + + # parse the input line + my @wordlist = "ewords($fieldseparator, 0, $inputline); + + # replace accented characters with latex escaped equivalents. Use it after + # quotewords() so the '\' don't get interpreted by quotewords() as escapes + foreach my $word ( @wordlist ) { + if ( $word ) { $word = &latexifyaccentedcharacters($word); } + } + + # extract the fields into local variables. Author names stored as a list + my ($type, $number, $pcdecision, $nbpages, $title, $filename, + $generatedfrom, $cite) = @wordlist; + + # remove the first 8 elements (just parsed out), leaving only author names. + # reminder: list of 8 scalars, though some may be "" if less than 4 authors + splice( @wordlist, 0, 8 ); + + # store the author names as a list of lists. We end up with a list that looks + # like ((Udo,Zoelzer),(Daniel,Arfib)) + my @authors = (); + while ( $wordlist[0] ) { + push( @authors, [splice( @wordlist, 0, 2 )] ); + # "splice( @wordlist, 0, 2 )": cuts the first 2 scalars off of @wordlist + # and returns them; calling [splice(@wordlist,0,2)] returns a *reference* + # to a list containing the first two scalars. (see perldoc perldsc.) + } + + # create a hash reference containing the named fields and return it + my $fields = { + type => $type, + number => $number, + pcdecision => $pcdecision, + nbpages => $nbpages, + title => $title, + generatedfrom => $generatedfrom, + filename => $filename, + cite => $cite, + authors => \@authors, + }; + return $fields; +} + +# -- takes a string in Mac OS Roman encoding and encode the accented +# characters with latex escapes (only for a subset of available characters). +sub latexifyaccentedcharacters { + # for mapping between unicode and mac os western encoding, see: + # http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/ROMAN.TXT + my ($inputstring) = @_; + $inputstring =~ s/\x8a/\\"a/g; # \"a: unicode 0xe4, mac os western 0x8a + $inputstring =~ s/\x87/\\'a/g; # \'a: unicode 0xe9, mac os western 0x87 + $inputstring =~ s/\x88/\\`a/g; # \`a: unicode 0xe8, mac os western 0x88 + $inputstring =~ s/\x8e/\\'e/g; # \'e: unicode 0xe9, mac os western 0x8e + $inputstring =~ s/\x8f/\\`e/g; # \`e: unicode 0xe8, mac os western 0x8f + $inputstring =~ s/\x91/\\"e/g; # \"e: unicode 0xeb, mac os western 0x91 + $inputstring =~ s/\x97/\\'o/g; # \'o: unicode 0xf3, mac os western 0x97 + $inputstring =~ s/\x98/\\`o/g; # \`o: unicode 0xf2, mac os western 0x98 + $inputstring =~ s/\x9a/\\"o/g; # \"o: unicode 0xf6, mac os western 0x9a + $inputstring =~ s/\x99/\\^o/g; # \^o: unicode 0xf4, mac os western 0x99 + $inputstring =~ s/\xbf/\\o /g; # \o: unicode 0xf8, mac os western 0xbf + $inputstring =~ s/\x96/\\~n /g; # \~n: unicode 0xF1, mac os western 0x96 + $inputstring =~ s/\x94/\\^{\\i}/g; # \^{\i}: unicode 0xee, mac os western 0x94 + $inputstring =~ s/\x/\\i/g; # \i: unicode , mac os western + $inputstring =~ s/\x9f/\\"u/g; # \"u: unicode 0xfc, mac os western 0x9f + $inputstring =~ s/\x5c/\\/g; # \: unicode 0x5C, mac os western 0x5C + + return $inputstring; +} + +# -- output the information for a day +sub outputdaylatex { + my ($fields) = @_; + my $sessiontitle = $fields->{'title'}; + open(SESSIONS, ">>exsessions.tex"); #open for append + print SESSIONS ' '; + print SESSIONS '%%%== Day'; + print SESSIONS '\procday{', $sessiontitle, '}' +} + +# -- output the information for a session line +sub outputsessionlatex { + my ($fields) = @_; + my $sessiontitle = $fields->{'title'}; + open(SESSIONS, ">>exsessions.tex"); #open for append + print SESSIONS ' '; + print SESSIONS '%%%-- session'; + print SESSIONS '\session{', $sessiontitle, '}' +} + +# -- in: ref. to a list of lists of author names ((Udo,Zoelzer),(Daniel,Arfib)) +# out: ref. to a Perl list w/ entries "Udo Zoelzer" and "Daniel Arfib" (no quotes) +sub authorsbyfirstname { + my ($authors) = @_; + # generate a list of full "first last" author names + my @authorlistbyfirstname = map { "$_->[0] $_->[1]" } @$authors; + return \@authorlistbyfirstname; # return a ref. to the new list of authors +} + +# -- in: ref. to a list of lists of author names ((Udo,Zoelzer),(Daniel,Arfib)) +# out: ref. to a Perl list w/ entries "Zoelzer, Udo" and "Arfib, Daniel" +sub authorsbysurname { + my ($authors) = @_; + # generate a list of authors with surnames written first + my @authorlistbysurname = map { "$_->[1], $_->[0]" } @$authors; + return \@authorlistbysurname; # return a ref. to the new list of authors +} + +# -- in: ref. to a list of author names: "Zoelzer, Udo" and "Arfib, Daniel" +# out: LaTeX index entries: "\index{Zoelzer, Udo}\index{Arfib, Daniel}" +sub genindex { + my ($authorsbysurname) = @_; + my @indexentries = map { "\\index{$_}" } @$authorsbysurname; + return join('', @indexentries); +} + +# -- in: ref. to a list of author names: "Zoelzer, Udo" and "Arfib, Daniel" +# out: bookmarks cmds: "\pdfbookmark[2]{Udo Zoelzer}{#2.Udo Zoelzer} +# \pdfbookmark[2]{Daniel Arfib}{#2.Daniel Arfib}" +sub genbookmark { + my ($authorsbyfirstname) = @_; + my @indexentries = map { "\\pdfbookmark[2]{$_}{#2.$_}" } + @$authorsbyfirstname; + return join('', @indexentries); +} + +# -- output the information for a paper line +sub outputpaperlatex { + my ($fields) = @_; + open(SWI, ">>expapersswitch.tex"); #open for append + print SWI '%======= PAPER ID = ', $fields->{'number'}, ' ======='; + print SWI '\ifnum\paperswitch=', $fields->{'number'}; + print SWI ' \procpaper[xshift=\LaTeXxShift{}, yshift=\LaTeXyShift{}, npages=', + $fields->{'nbpages'}, ', switch=\paperswitch,%'; + print SWI ' title={', $fields->{'title'}, '},% paper title'; + print SWI ' author={', join( ', ', @{&authorsbyfirstname($fields->{'authors'})}), + '},% list of authors'; + print SWI ' index={', &genindex(&authorsbysurname($fields->{'authors'})), + '},% authors index entries'; + print SWI ' cite={', $fields->{'cite'}, '},% cited bib items'; +# print SWI ' {#2}{\paperbookmark}'; + print SWI ' bookmark={', &genbookmark(&authorsbyfirstname($fields->{'authors'})),'}% for PDF bookmark structure'; + print SWI ' ]{#2}'; + print SWI '\fi'; + print SWI ' '; + open(SESSIONS, ">>exsessions.tex"); #open for write, overwrite + print SESSIONS '\paperid{', $fields->{'number'}, '}{', $fields->{'filename'}, '}'; +} + +# ----- Main +# FIXME: parse a line, and confirm that all of the fields are set up properly +# --> correct number of fields, and the fields have the correct values +open(SWI, ">>expapersswitch.tex"); #open for write, overwrite +print SWI '\newcommand{\paperid}[2]{'; +print SWI ' '; +print SWI '\renewcommand{\paperswitch}{#1}'; +print SWI ' '; + +while ( <> ) { + chomp; # clear the newline character from the end of the line + my $fields = &parseinputline($_); # parse the line into fields + # take some action depending on what type of line it is; case insensitive + if ( lc($fields->{'type'}) eq lc('day') ) { + &outputdaylatex($fields); + } elsif ( lc($fields->{'type'}) eq lc('session') + || lc($fields->{'type'}) eq lc('paper session') + || lc($fields->{'type'}) eq lc('demo session') + || lc($fields->{'type'}) eq lc('poster session') ) { + &outputsessionlatex($fields); + } elsif ( lc($fields->{'type'}) eq lc('oral') + || lc($fields->{'type'}) eq lc('paper') + || lc($fields->{'type'}) eq lc('demo') + || lc($fields->{'type'}) eq lc('poster') ) { + &outputpaperlatex($fields); + } elsif ( lc($fields->{'type'}) eq lc('Type')) { + } else { print '!!! a day, session or paper (', + $fields->{'type'},') is lost by the script...'; + } +open(SWI, ">>expapersswitch.tex"); #open for append +} +print SWI '}'; +close(SWI); +close(SESSIONS); diff --git a/Master/texmf-dist/doc/latex/confproc/papersinfo.sh b/Master/texmf-dist/doc/latex/confproc/papersinfo.sh new file mode 100644 index 00000000000..61c444520d7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/papersinfo.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +args=("$@") +GPATH=${args[0]} #= ~/proceedings/e-proceedings +TEXFILE=${args[1]} #= ICMC2009_proceedings +INPATH=${args[2]} #= papers_info +SPPATH=${args[3]} #= papers_split +PDFPATH=${args[4]} #= ~/proceedings/e-proceedings +PDFTKPATH=${args[5]} #= ~/pdftk_info + +PDFFILE=${TEXFILE}.pdf # for use in the paper_split.sh and paper_info.sh scripts + +cd ${GPATH}/${SPPATH} +filelist=`ls *.pdf` +mkdir ${PDFPATH} + +cd ${GPATH} +chmod +x removeLaTeXcmds.sh + +for file in $filelist +do + base=${file%%.*} + echo "removing LaTeX accents: ${base}.pdftk -> ${base}_clean.info" +# echo "cmd: removeLaTeXcmds.sh ${GPATH} ${PDFTKPATH}/${base}.pdftk ${INPATH}/${base}_clean.info" + ${GPATH}/removeLaTeXcmds.sh ${GPATH} ${PDFTKPATH}/${base}.pdftk ${INPATH}/${base}_clean.info + echo "adding PDF metadata: ${base}_clean.info -> ${base}.pdf" +# echo "cmd: pdftk ${SPPATH}/${base}.pdf update_info ${INPATH}/${base}_clean.info output ${PDFPATH}/${base}.pdf" + echo "pdftk ${GPATH}/${SPPATH}/${base}.pdf update_info ${GPATH}/${INPATH}/${base}_clean.info output ${PDFPATH}/${base}.pdf" + pdftk ${GPATH}/${SPPATH}/${base}.pdf update_info ${GPATH}/${INPATH}/${base}_clean.info output ${PDFPATH}/${base}.pdf +done diff --git a/Master/texmf-dist/doc/latex/confproc/paperssplitpreamble.sh b/Master/texmf-dist/doc/latex/confproc/paperssplitpreamble.sh new file mode 100644 index 00000000000..3c42c713005 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/paperssplitpreamble.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +args=("$@") +GPATH=${args[0]} +TEXFILE=${args[1]} # example1 +INPATH=${args[2]} # papers_info +SPPATH=${args[3]} #papers_split +PDFPATH=${args[4]} + +cd ${GPATH} +SPPATH=${GPATH}/${SPPATH} +PDFFILE=${GPATH}/${TEXFILE}.pdf # PDF proceedings +echo "PDF proc used for individual PDFs extraction:\n --> $PDFFILE" +echo "saving tmp .ps and .pdf files into\n --> $SPPATH" diff --git a/Master/texmf-dist/doc/latex/confproc/prepareexample.sh b/Master/texmf-dist/doc/latex/confproc/prepareexample.sh new file mode 100644 index 00000000000..5472c1e415f --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/prepareexample.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +wd=`pwd` + +extarget="example" #- set the example folder name + +#-- prepare scripts for building example +mkdir $extarget #- create the folder + +#-- generate the program session files +perl generateswitch.pl<exprogram.csv + +mv ex*.* $extarget/ #- move all other example files into proper folder +mv buildproc* $extarget/ #- move scripts into it +mv buildcppdfpapers* $extarget/ +mv buildpapers* $extarget/ +mv countnbpages.sh $extarget/ +mv generateswitch.pl $extarget/ +mv papersinfo.sh $extarget/ +mv paperssplitpreamble.sh $extarget/ +mv removeLaTeXcmds.sh $extarget/ + +cp -r pictures $extarget/ #- copy pictures into it +cp -r papers $extarget/ #- copy papers into it +cp confproc.cls $extarget/ #- copy the class into it +cp confproc*.ist $extarget/ #- copy the index style into it +cp newapave* $extarget/ #- copy the newapave bib style files + +#-- prepare building scripts and generate needed directories +cd $wd/$extarget +mkdir pdftk_info/ +mv expages.tex papers/ + +cd $wd/$extarget +chmod +x buildproc* +chmod +x generateswitch.pl +chmod +x exportIndividualPDFs.sh +chmod +x papersinfo.sh +chmod +x paperssplitpreamble.sh +cd .. + +#-- build example +cd $wd/$extarget +#./buildproc.sh diff --git a/Master/texmf-dist/doc/latex/confproc/removeLaTeXcmds.sh b/Master/texmf-dist/doc/latex/confproc/removeLaTeXcmds.sh new file mode 100644 index 00000000000..1f651b93648 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/removeLaTeXcmds.sh @@ -0,0 +1,65 @@ +#!/bin/bash + +# arg 0: path, arg 1: input file; arg 2: output file + +#-- save arguments for use +args=("$@") +path=${args[0]} +file=${args[1]} +outputfile=${args[2]} +cd ${path} +cp ${file} tmp.txt +#echo "__ ORIGINAL: $file ___" +#cat tmp.txt + +#echo " " +#echo "__ removed accents: __" +perl -p -i -e " s/\\\'e/e/g " tmp.txt +perl -p -i -e " s/\\'{e}/e/g " tmp.txt +perl -p -i -e " s/\\\`e/e/g " tmp.txt +perl -p -i -e ' s/\\"e/e/g ' tmp.txt +perl -p -i -e " s/\\\`{e}/e/g " tmp.txt +perl -p -i -e " s/\\\'a/a/g " tmp.txt +perl -p -i -e " s/\\\`a/a/g " tmp.txt +perl -p -i -e " s/\\\`{a}/a/g " tmp.txt +perl -p -i -e ' s/\\"{o}/oe/g ' tmp.txt +perl -p -i -e ' s/\\"o/o/g ' tmp.txt +perl -p -i -e ' s/\\o{}/o/g ' tmp.txt +perl -p -i -e ' s/\\\^o/o/g ' tmp.txt +perl -p -i -e " s/\\\'o/o/g " tmp.txt +perl -p -i -e " s/\\\`o/o/g " tmp.txt +perl -p -i -e " s/\\\'u/u/g " tmp.txt +perl -p -i -e ' s/\\u //g ' tmp.txt +perl -p -i -e ' s/\\"u/u/g ' tmp.txt +perl -p -i -e ' s/\\i /i/g ' tmp.txt +perl -p -i -e ' s/\\i/i/g ' tmp.txt +perl -p -i -e " s/\\\'{i}/i/g " tmp.txt +perl -p -i -e ' s/\\"{i}/i/g ' tmp.txt +perl -p -i -e ' s/\\c {c}/c/g ' tmp.txt + +#echo " " +#echo "__ removed textit, texbf, {, }: __" +perl -p -i -e ' s/\--/-/g ' tmp.txt +perl -p -i -e " s/\\ss/ss/g " tmp.txt +perl -p -i -e ' s/\\textsuperscript //g ' tmp.txt +perl -p -i -e " s/\\&/&/g " tmp.txt +perl -p -i -e ' s/\\mu/mu\:/g ' tmp.txt +perl -p -i -e ' s/\\sim\s//g ' tmp.txt +perl -p -i -e ' s/\\sim//g ' tmp.txt +perl -p -i -e ' s/\s:/:/g ' tmp.txt + +perl -p -i -e ' s/\$//g ' tmp.txt +perl -p -i -e " s/textit //g " tmp.txt +perl -p -i -e " s/textbf //g " tmp.txt +perl -p -i -e " s/\{//g " tmp.txt +perl -p -i -e " s/\}//g " tmp.txt +perl -p -i -e ' s/\`\`/"/g ' tmp.txt +perl -p -i -e " s/\'\'/\"/g " tmp.txt + +#echo " " +#echo "__ removed \: ___" +perl -pi -e 's/\\//g' tmp.txt +perl -pi -e 's/\s{2,10}\{\}/ /g' tmp.txt +perl -pi -e 's/\s{2,10}/ /g' tmp.txt + +cp tmp.txt $outputfile diff --git a/Master/texmf-dist/doc/latex/confproc/whatsnew.txt b/Master/texmf-dist/doc/latex/confproc/whatsnew.txt new file mode 100644 index 00000000000..d00943d6d20 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/whatsnew.txt @@ -0,0 +1,77 @@ +Confproc is a LaTeX2e package providing a new document-class together +with various tools (Perl and Unix/bash scripts) for building conference +proceedings, or concatenating any set of PDFs with a table of contents, +index, bookmarks and general bibliography. The LaTeX2e class is mainly +based on the 'pdfpages' package for PDF papers inclusion, and the +'hyperref' package for creating proper links, bookmarks and general +bibliography back references. It also uses many other packages for fine +tuning the table of contents, bibliography and index of authors. +The added value of this class is in the time saved to quickly design +conference proceedings or any collection of PDFs. + +________________________________________________________________ +New in version 0.7 (major update) - In short: +- key-value options for the class and \procpaper{} function +- tested with TeXLive 2008-2010 +- can insert papers with any number of pages +- various new class options (hyperref, geometry, binding=Xmm, + checktitle, checkauthor, showmarginlines, showpapernumber, + colorheaders=red, pdftk) +- documentation reorganized with more examples (incremental learning) +- new 2-minute summary of commands and options (confproc-short.tex) +- new Unix/bash scripts: exportIndividualPDFs.sh, countnbpages.sh + +________________________________________________________________ +New in version 0.7 (major update) - In details: + +- class: + - class options: interface re-designed to make use of key-values + style ('kvoptions' package) + - tested with TeXLive 2008, 2009 and 2010 (as of July 18th, 2010) + - code clarified, using key-values ('keyval' package) and + \ifthenelse ('xifthen' package) + +- PDF insertion: + - command \procpaper[]{} with 1 argument (file name) and 8 + optional arguments replaces \cmdDescribe{\insertprocpaper} with + its 9 arguments. This re-design also makes use of key-values style + options (using keyval) + - removed the limitation to a minimum of 2 pages and a maximum of + 8 pages (now 1 to anything) + +- class options: + - hyperref/geometry: can now directly pass options to the 'hyperref' + and 'geometry' packages with the new hyperref={<option list>} and + geometry={<option list>} options + - added 'papers=empty' option and mode. This offers a much faster + fake paper insertion, compared to 'papers='raft} ('draft' mode of + 'pdfpages', but not checking if pages actually exist) + - added new options for layout fine tuning and debug: + - 'binding=Xmm' to indicate the binding of the paperback version + - 'checktitle' and 'checkauthor' to overlay the title and author + list onto the 1st page of each paper, for checking the + consistency of the table of contents with individual PDF papers + - 'showmarginlines' to draw the margin lines (so that one can + match each page fits the template) + - 'showpapernumber' to show the paper number below the page number + - 'colorheaders=red' to color the header/footer + - 'pdftk' to output commands for later setting PDF metadata of + individual PDFs + - 'verbose' and 'debug' are now different options, and their + output texts have been clarified and now makes use of \PackageInfo + and \PackageWarning + - options' default values: reset to simplify the most possible the + first tests + +- documentation: + - added a 2-minutes summary of commands and options (confproc-short.tex) + - added a second (and simpler) example + - improved & re-organized for incremental learning, and clarified + with margin notes and color code (using gray/black color code to + show differences between successive version of the code, and using + the 'colordoc' package for color code) + +- scripts: added Unix/bash scripts for more functionalities, such as: + - exportIndividualPDFs.sh: extracts individual paper with new page + numbers and proper metadata + - countnbpages.sh: counts number of pages in each individual PDF paper |