• No results found

The dlfltxbmisc package

N/A
N/A
Protected

Academic year: 2021

Share "The dlfltxbmisc package"

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The

dlfltxbmisc

package

∗ Lars Madsen†

March 4, 2010

This package provides a variety of macros that are used forMadsen(2010).

For typesetting arguments \Arg{〈text〉} \Arg 〈text〉 \Arg*{〈text〉} \Arg* text \marg{〈text〉} \marg {〈text〉} \marg*{〈text〉} \marg* {text} \oarg{〈text〉} \oarg [〈text〉] \oarg*{〈text〉} \oarg* [text] \parg{〈text〉} \parg (〈text〉) \parg*{〈text〉} \parg* (text) Syntax

Environments syntax and syntax* for explaining syntax. In the unstared version

\obey-syntax

syntax* linesis in effect and\\is disabled. In the stared version we are in a normal situation

and\\has its normal line changing behavior. Text contents of the two environments are indented by\parindent.

Special wrapping urls in bibliographies

In the bibliography ofMadsen(2010) we refer to a lot of LATEX packages and their URLs onCTAN. In order to make those URLs look nice and space some space the URL wraps it self up into the bibliography item above. The effect can be seen here:

text text text text text text text text text text text URL: http://www.imf.au.dk/system/latex/ bog/ The effect is achieved with the macro

\addurl[〈pre text〉]{〈url〉}{〈see below〉}

\addurl

\addurlis only intended to be used in bibliographies, i.e. inside the\thebibliography

environment (it uses \bibhang internally). The macro was created to be used with BibTEX, where one adds it as the very last item in the »note« field. As most BibTEX styles

add a ».« at the end of the entry we simply let\addurl‘eat’ that ».« by just specifying the first argument. So if you use this macro by hand (i.e. not using BibTEX), you will

Version: 0.3Email: daleif@imf.au.dk

(2)

need to specify the last argument as an empty argument. By default[〈pre text〉]is set to »\textsc{url}:«.

\addurlworks this way:

(i) We start a new paragraph and measure the length of the last line in the preceding paragraph.

(ii) In the new paragraph we set everything\RaggedLeft, and start the text by setting a phantom-like width corresponding to the measured length found in (i). If the mea-sured length is larger than 0.6\linewidth, then we do not activate the wrapping, instead the URL is just typeset ragged left below the bibliographic entry.

(iii) Then we simply typeset the URL using\url.

There is one small problem with\addurl: If we get close to a page break the wrap-ping URL may be moved to the next page. One method for fixing this is to make\itemsep

more flexible inside the thebibliography, for example using

\let\oldthebibliography\thebibliography \renewcommand\thebibliography[1]{%

\oldthebibliography{#1}%

\setlength\itemsep{10pt plus 3pt minus 5pt} }

Additionally, we also have a\addCTANmacro where the argument will be replaced by (if usinghyperref)

\href{http://mirror.ctan.org/#2}{#1\path{#2}}

e.g.\addCTAN{/fonts/kpfonts/}→

\href{http://mirror.ctan.org/fonts/kpfonts}{\textsc{ctan}:\path{#2}}

Since\addCTANis also useful in the regular text, we also support a\CTAN{〈path〉}

\CTAN

macro.

Example text in math

InMadsen(2010) we use the macro\dbx[〈width〉]to illustrate some math instead of \dbx

writing random formulas. It just typesets where the width is adjustable using the optional argument.

Acknowledgement

Special thanks to Morten Høgholm and Dan Luecking for their help with various parts of

\addurl.

Bibliography

Lars Madsen. Introduktion til LATEX. http://www.imf.au.dk/system/latex/bog/, 2010. The current version of the book is 3rd edition beta.

Referenties

GERELATEERDE DOCUMENTEN

• Really large (more than two lines tall) dropped text is not very beautiful unless the graphics.cfg files specifies dvips as the default graphics’ driver (or an option which in

But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the

振り仮名 in Japanese, which translates to something like 'sprinkled (syllabic)

This file provides two minimal examples of typesetting parallel texts with eledmac plus eledpar.. The first minimal example is parallel typesetting in columns, the second one

Construite au XIII e si` ecle, elle contrˆ olait l’unique voie d’acc` es terrestre de la ville fortifi´ ee, celle qui menait ` a Psalmody, l’une des ¡¡abbayes de sel¿¿ dont il

The aim of this thesis is to develop a pipeline for IVOCT tissue analysis using estimation based on the depth-resolved model. In particular, we address the following specific aims:

Holt, Reimer and Illich (who belong to the left radical camp) define or describe the school merely phenomenologically (cf.. From the earliest times the parents

Keywords Path-following gradient method · Dual fast gradient algorithm · Separable convex optimization · Smoothing technique · Self-concordant barrier · Parallel implementation..