[Tutkielma-TeX] natbib
Tuomo Valkonen
tujumava at jyu.fi
Tue Mar 11 10:23:59 EET 2008
On Fri, Mar 07, 2008 at 04:36:18PM +0200, Tuomo Valkonen wrote:
> On Fri, Mar 07, 2008 at 04:25:22PM +0200, Antti-Juhani Kaijanaho wrote:
> > Voitko kertoa tarkemmin? :) Anna mielellään lyhyet esimerkkitiedostot.
>
> loar-optio ja \usepackage{natbib} example.texiin näyttäisi riittävän.
> Ilman loaria ei näyttäisi räjähtävän.
Oheinen maksimiruma pätsi näyttäisi korjaavan tilanteen. Se ei toimi
kuin natbibin kanssa, sopivilla asetuksilla, mutta antaa ehkä jotain
ajatusta mitä pitäisi tehdä. Hyvänä puolena, koska bibitem on siirretty
artikkelin otsikkosivulle, hyperlinkit menee sinne. Huonona puolena
pitää klunssata törkeästi, että se vaan määrittelisi asioita, eikä
tuottaisi mitään tulostetta. \cite-häk ei näyttäisi enää toimivan,
vaan luotetaan natbibin oletusasetuksilla olevan lisäämättä sulkuja
viittauksen ympärille. \artlabel:n perään tarvitaan () kertomaan sille,
että \artlabel on nimi, ja vuotta ei ole annettu; muuten se itkee.
Kokeilin myös natbibin \defcitealiasta (ja sitten \citetalias mukana
oleviin artikkeleihin, mikä ehkä olisi jopa nätimpi tapa), mutta jostain
syystä ne ei tule .auxista eikä .loarista mukaan, vaan natbib alkaa
itkemään, ettei aliasta olisi määritelty.
-------------- next part --------------
New patches:
[Ugly natbib hack
Tuomo Valkonen <tuomov at iki.fi>**20080311082134] {
hunk ./jydiss.cls 911
+% Maximum ugliness: prevent \bibitem from producing any output,
+% just define stuff.
+\def\@biblabel##1{}%
+\def\item[##1]{\def\hfil{}##1}%
+\bibitem[\artlabel()]{\diss at art@label}
+%\bibitem[\diss at art@author (\diss at art@year)]{\diss at art@label}
hunk ./jydiss.cls 959
-\immediate\write\@auxout{\string\@writefile{loar}{\string\bibitem[\artlabel]{\diss at art@label} \artmakebib}}
+\immediate\write\@auxout{\string\@writefile{loar}{\string\item[\artlabel\hfil] \artmakebib}}
+%\immediate\write\@auxout{\string\defcitealias{\diss at art@label}{\artlabel}}}
hunk ./jydiss.cls 1013
-\newif\ifdiss at artcite\diss at artcitefalse
-\let\@cite at rig=\@cite
-\def\@cite#1#2{\ifdiss at artcite\textbf{#1}\else\@cite at rig{#1}{#2}\fi\diss at artcitefalse}
+%\newif\ifdiss at artcite\diss at artcitefalse
+%\let\@cite at rig=\@cite
+%\def\@cite#1#2{\ifdiss at artcite\textbf{#1}\else\@cite at rig{#1}{#2}\fi\diss at artcitefalse}
hunk ./jydiss.cls 1017
-\let\@citex at rig=\@citex
-\def\@citex[#1]#2{\@ifundefined{diss at artcite@#2}{\diss at artcitefalse\@citex at rig[#1]{#2}}{\diss at artcitetrue\@citex at rig[#1]{#2}}}
+%\let\@citex at rig=\@citex
+%\def\@citex[#1]#2{\@ifundefined{diss at artcite@#2}{\diss at artcitefalse\@citex at rig[#1]{#2}}{\diss at artcitetrue\@citex at rig[#1]{#2}}}
}
Context:
[Fixed the opening of article title pages
Matthieu Weber <mweber at mit.jyu.fi>**20071114093424]
[Punctation fixes for references to included articles.
Matthieu Weber <mweber at mit.jyu.fi>**20071112100328]
[Page numbering in references and in Finnish Summary is on the top of the page, not bottom
Matthieu Weber <mweber at mit.jyu.fi>**20071108113803]
[Added a \backmatter option to allow for page numbering in the bibiliography's first page and Finnish Summary's first page. Obsoletes the "stupid" class option (which still exists for compatibility reasons but does nothing).
Matthieu Weber <mweber at mit.jyu.fi>**20071108104217]
[Counter-patch for the "stupid" option. The option still exists, but does nothing. The user must now put \backmatter in the document just before including the bibiliography.
Matthieu Weber <mweber at mit.jyu.fi>*-20071108101755]
[One more vertical spacing fix
Matthieu Weber <mweber at mit.jyu.fi>**20071108101914]
[Counter-patch for the "stupid" option. The option still exists, but does nothing. The user must now put \backmatter in the document just before including the bibiliography.
Matthieu Weber <mweber at mit.jyu.fi>**20071108101755]
[Added a "stupid" option to put page numbers on included articles title pages and on the finnish summary page (which is against the rules set in the example document from the Library)
Matthieu Weber <mweber at mit.jyu.fi>**20071107094014]
[Fixed vertical spacing after chapter headings in front matter, between "people" and in the Abstract page
Matthieu Weber <mweber at mit.jyu.fi>**20071105132111]
[Fixed the writing into the .loar file to use \immediate\write
Matthieu Weber <mweber at mit.jyu.fi>**20071005124240]
[Changed the date and version number
Matthieu Weber <mweber at mit.jyu.fi>**20071004075458]
[Fixed an incompatibility with the color package and subsequently with all packages using color, such as pdfpages
Matthieu Weber <mweber at mit.jyu.fi>**20071004075102]
[Fixed a possible indentation problem at the beginning of the author's contribution
Matthieu Weber <mweber at mit.jyu.fi>**20071004074932]
[Ugly hack so that the citations of included articles are in bold, whereas normal citations are between square brackets
Matthieu Weber <mweber at mit.jyu.fi>**20070904124613]
[Added the "contribution" environment for defining the author's contribution
Matthieu Weber <mweber at mit.jyu.fi>**20070904124416]
[Add a pointer to the darcs repository in the class
Antti-Juhani Kaijanaho <antkaij at mit.jyu.fi>**20070212142245]
[TAG kaijanaho.info jydiss
Automatic Date Tagger <antti-juhani at kaijanaho.fi>**20070210215815]
Patch bundle hash:
e2b3373e2d0ec048d1f72f4a3ed773794f4e2ef0
More information about the Tutkielma-TeX
mailing list