• No results found

Song Zhiwei songzw@gmail.com

N/A
N/A
Protected

Academic year: 2021

Share "Song Zhiwei songzw@gmail.com"

Copied!
1
0
0

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

Hele tekst

(1)

The memory package

Song Zhiwei songzw@gmail.com

May 13, 2013

1 Introduction

The package memory.sty provides an easy way to declare object or array contain- ers. If you are considering to use an auxiliary file, you really need this package rather than the heavy I/O manipulation.

2 Usage

These macros declare data variables locally and globally, respectively. The value

\newdata{ ⟨variable ⟩}

\newdata*{ ⟨variable ⟩} for star version is also saved globally.

\newdata{Person} % Note: no backslash for the variable declaration

\newdata*{Time}

Uses = or := to set value. The := version sets the expanded value to variable.

\⟨var ⟩[⟨p ⟩]={⟨value ⟩}

\⟨var ⟩[⟨p ⟩]:={⟨value ⟩} – Sets value as a single variable.

\Person = {Song Zhiwei} % Note: add backslash for declared variable

\Time := \today

– Sets value as an array.

\Person[1] = {28.3}

– Sets value as a multiple dimensional array.

\Time[2,5,\thesection] = {13 May 2013}

– Sets value as an object.

\Person[description] = {A Chinese gentleman.}

\Person[hair] = {black}

– Gets values.

\⟨variable ⟩[⟨p ⟩]

\Person Song Zhiwei

\Time May 13, 2013

\Person[1] 28.3

\Time[2,5,\thesection] 13 May 2013

\Person[description] A Chinese gentleman.

\Person[hair] black

This document corresponds to memory v1.2, dated 2013/05/13.

1

Referenties

GERELATEERDE DOCUMENTEN

We will use a local discontinuous Galerkin (LDG) fi- nite element method to solve systems modeling phase transitions in solids, Van der Waals fluids and the

This negative effect implies that the longer people looked at the disgusting image, the lower the intention was to reduce meat consumption and this contradicts the expected

As scientists claim that email abuse is worse for your brain than drugs, Jasper Gerard worries that he might have to go cold Toshiba.. We have the shakes, drum our fingers

• You may use results proved in the lecture or in the exercises, unless this makes the question trivial.. When doing so, clearly state the results that

not \tabskip), and any declarations in > and < expressions. Delimiters are not added to these macros as they correspond to the whole block, they are left in the

The package xskak has two internal commands which are used to set up the start moves of games and to retrieve the stored move data, and \chessboard has two keys that set move data

In this sense , it would be very interesting to have an available package which could turn easy the task of highlight some changes: \alert { alert a phrase ou period}; \highlight

The package then stores the dates of files and packages loaded after itself including its own