Subversion Repositories bdplot

Rev

Rev 62 | Rev 64 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 62 Rev 63
Line 12... Line 12...
12
## size.unit:
12
## size.unit:
13
 
13
 
14
.bdpapertemplates <- function(){
14
.bdpapertemplates <- function(){
15
  bdpars <- list()
15
  bdpars <- list()
16
 
16
 
17
  bdpars$a4.word <- list(
17
  bdpars$a4_word <- list(
18
### According to word 2003, the default width for word is 21cm - 2*3.17cm = 14.66cm
18
### According to word 2003, the default width for word is 21cm - 2*3.17cm = 14.66cm
19
                         width = 14.66/2.54,
19
                         width = 14.66/2.54,
20
                         height.full = (29.7-2.54*2)/2.54,
20
                         height.full = (29.7-2.54*2)/2.54,
21
                         size.unit="in"
21
                         size.unit="in"
22
                         )
22
                         )
23
  bdpars$a4.word$height <- bdpars$a4.word$height.full/4
23
  bdpars$a4_word$height <- bdpars$a4.word$height.full/4
24
 
24
 
25
  bdpars$a4.word.half <- list(
25
  bdpars$a4_word_half <- list(
26
### According to word 2003, the default width for word is 21cm - 2*3.17cm = 14.66cm
26
### According to word 2003, the default width for word is 21cm - 2*3.17cm = 14.66cm
27
                              width = 7/2.54,
27
                              width = 7/2.54,
28
                              height = 5/2.54,
28
                              height = 5/2.54,
29
                              height.full = (29.7-2.54*2)/2.54,
29
                              height.full = (29.7-2.54*2)/2.54,
30
                              size.unit="in"
30
                              size.unit="in"
31
                         )
31
                         )
32
  bdpars$a4.word$height <- bdpars$a4.word$height.full/4
32
  bdpars$a4_word$height <- bdpars$a4.word$height.full/4
33
  
33
## for backward compatibility
-
 
34
  bdpars$a4.word <- bdpars$a4_word
34
  
35
  
35
### b5 is set up for the IMM phd thesis template
36
### b5 is set up for the IMM phd thesis template
36
  ## \showthe\textwidth gives 356.0pt
37
  ## \showthe\textwidth gives 356.0pt
37
  ## \showthe\textheight gives 459.8002pt
38
  ## \showthe\textheight gives 459.8002pt
38
  bdpars$b5=list(
39
  bdpars$b5=list(
Line 63... Line 64...
63
    width=4.98,
64
    width=4.98,
64
    height=4.98,
65
    height=4.98,
65
    height.full=4.98,
66
    height.full=4.98,
66
    size.unit="in"
67
    size.unit="in"
67
    )
68
    )
68
  bdpars$a4.full=list(
69
  bdpars$a4_full=list(
69
    width=4.98,
70
    width=4.98,
70
    ## this is the full height but leaves no space for caption
71
    ## this is the full height but leaves no space for caption
71
    ##    height=8.24,
72
    ##    height=8.24,
72
    height.full=7.9,
73
    height.full=7.9,
73
    size.unit="in"
74
    size.unit="in"
74
    )
75
    )
75
  
76
  
76
  ### not fully tested
77
  ### not fully tested
77
  bdpars$a4.half=list(
78
  bdpars$a4_half=list(
78
    width=2.45,
79
    width=2.45,
79
    height=2.45,
80
    height=2.45,
80
    height.full=8.24,
81
    height.full=8.24,
81
    size.unit="in"
82
    size.unit="in"
82
    )
83
    )