Skip to content

Commit 576c9c8

Browse files
Merge pull request #193 from pdxrconf/2025_dev
Clean name tags code, final agenda updates
2 parents 4744a4d + 1d470ac commit 576c9c8

File tree

15 files changed

+48835
-1375
lines changed

15 files changed

+48835
-1375
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ R_code/name_tags/*.html
99
R_code/name_tags/*.PDF
1010
R_code/name_tags/name_tags_regular.Rmd
1111
R_code/name_tags/name_tags_speaker.Rmd
12+
R_code/name_tags/archive/*
1213
R_code/ticket_codes/speaker_ticket_codes.R
1314
R_code/ticket_codes/speaker_ticket_codes.R

R_code/name_tags/name_tag_data_prep.R

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ dat <- read_csv(file[length(file)]) %>%
4343
preferred_pronouns %in% c(""," "),"&nbsp;",
4444
preferred_pronouns)) %>%
4545
#Fix errors
46-
mutate(ticket_type = ifelse(first_name=="Carrie" & last_name=="Preston",
46+
#for example. Change as needec each year
47+
mutate(ticket_type = ifelse(first_name=="X" & last_name=="Y",
4748
"Speaker", ticket_type)) %>%
4849
#create wrapper info
4950
mutate(line1 = "::: {.wrapper data-repeat='1'}",
@@ -54,6 +55,7 @@ dat <- read_csv(file[length(file)]) %>%
5455
arrange(last_name,first_name) %>%
5556
rownames_to_column() %>%
5657
#combo workshop and conf label
58+
## !!!! update date as needed !!!! ##
5759
mutate(group = ifelse(grepl("6/20",ticket_type), "workshop","conf")) %>%
5860
group_by(line2,line3) %>%
5961
mutate(types = length(unique(group))) %>%
@@ -63,24 +65,20 @@ dat <- read_csv(file[length(file)]) %>%
6365
grepl("Speaker",ticket_type)~"speaker",
6466
grepl("Committee|Organizer", ticket_type)~"committee",
6567
types>1~"combo",
68+
## !!!! update date as needed !!!! ##
6669
grepl("6/20", ticket_type)~"workshop",
6770
grepl("Virtual|virtual",ticket_type)~"virtual",
6871
TRUE~"regular")) %>%
69-
distinct(ticket_group, line1, line2, line3, line4, line6) %>%
70-
#Fix committee errors
71-
mutate(ticket_group = case_when(
72-
line2=="[Cameron]{slot='name'}" &
73-
line3=="[Mulder]{slot='title'}"~"committee",
74-
TRUE~ticket_group))
72+
distinct(ticket_group, line1, line2, line3, line4, line6)
7573
# unique(dat$line2)
7674

7775
## Conference
7876
dat %>%
7977
filter(ticket_group %in% c("regular","speaker")) %>%
8078
#Fix speaker errors
79+
#Change as needed
8180
mutate(ticket_group= case_when(
82-
line2=="[Ted]{slot='name'}" & line3=="[Laderas]{slot='title'}"~"speaker",
83-
line2=="[Evan]{slot='name'}" & line3=="[Landman]{slot='title'}"~"speaker",
81+
line2=="[X]{slot='name'}" & line3=="[Y]{slot='title'}"~"speaker",
8482
TRUE~ticket_group
8583
)) %>%
8684
mutate(line5=case_when(ticket_group=="speaker"~"[Speaker]{slot='url'}",
@@ -109,16 +107,6 @@ dat %>%
109107
## Combo
110108
dat %>%
111109
filter(ticket_group == "combo") %>%
112-
mutate(ticket_group= case_when(
113-
line2=="[Yan]{slot='name'}" & line3=="[Liu]{slot='title'}"~"speaker",
114-
line2=="[Mauro]{slot='name'}" & line3=="[Lepore]{slot='title'}"~"speaker",
115-
line2=="[Megan]{slot='name'}" & line3=="[Holtorf]{slot='title'}"~"speaker",
116-
line2=="[Lindsay]{slot='name'}" & line3=="[Dickey]{slot='title'}"~"speaker",
117-
line2=="[Hanna]{slot='name'}" & line3=="[Winter]{slot='title'}"~"speaker",
118-
line2=="[Arilene]{slot='name'}" & line3=="[Novak]{slot='title'}"~"speaker",
119-
line2=="[Andie]{slot='name'}" & line3=="[Hendrick]{slot='title'}"~"speaker",
120-
TRUE~ticket_group
121-
)) %>%
122110
mutate(line5=case_when(
123111
ticket_group=="combo"~"[Workshop & Conference]{slot='url'}",
124112
ticket_group=="speaker"~"[Speaker]{slot='url'}")) %>%
Lines changed: 61 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
logo: "logo_2023.png"
3-
paperwidth: 8.5in
4-
paperheight: 11in
2+
logo: "logo_2025.png"
3+
paperwidth: 8in
4+
paperheight: 9in
55
cardwidth: 4in
66
cardheight: 3in
77
cols: 2
@@ -10,60 +10,94 @@ mainfont: Helvetica
1010
output: pagedown::business_card
1111
---
1212

13-
# Paste the appropriate output from `name_tag_data_prep.R`
13+
```{r eval=FALSE, include=FALSE}
14+
# HOW TO
15+
# 1. Update the logo file in the header and make sure that file is in the same directory as this Rmd file
16+
# 2. Paste in the output from name_tag_data_prep.R below this code chunk. Remove the example below
17+
# - All tickets in each Rmd get the same banner color so recommend separate files for organizer, conf, and workshops
18+
# 3. Proofread for repeats or errors that made it through the Rscript
19+
# 4. Add blanks at the end for day-of registrants and name tag errors
20+
# - Blanks just have a space character code in all the [ ] aka &nbsp;
21+
# 5. Update the wd and file name at the end.
22+
# 6. Knit!
1423
15-
Looks something like
24+
# OPTIONAL
25+
# 1. Change the log size with logo height: 10%; Make sure it doesn't overlap the longest first name you have
26+
# 2. Change the bottom banner color in the wrapper border-bottom: 50px solid #e59a91; Suggest using opposing color for a committee "highlight" such as red vs green, blue vs orange, etc
27+
28+
```
1629

1730
::: {.wrapper data-repeat='1'}
18-
[Firstname<br>Lastname]{slot='name'}
19-
[Pronouns]{slot='title'}
20-
[Speaker or Organizer or blank]{slot='url'}
31+
[FIRST]{slot='name'}
32+
[LAST]{slot='title'}
33+
[PRONOUNS]{slot='email'}
34+
[TICKET TYPE]{slot='url'}
2135
:::
2236

2337
```{css}
24-
br {
25-
content: "";
26-
margin: 2em;
27-
display: block;
28-
font-size: 24%;
29-
}
3038
.wrapper {
3139
color: black;
3240
background-color: white;
33-
border: 1px dashed grey;
41+
/*border: 1px dashed grey; /*Only need if cutting out ourselves */
42+
border: 5px white;
3443
text-align: center;
35-
background-image: "logo_2023.png";
3644
background-repeat: no-repeat;
3745
background-position: center center;
3846
background-size: cover;
39-
border-bottom: 50px solid orange;
47+
border-bottom: 50px solid #e59a91;
48+
margin-bottom: 10px;
49+
box-sizing: border-box;
4050
}
4151
42-
<!-- Change color of bottom bar with line 39-->
52+
[slot="name"] {
53+
font-weight: normal;
54+
font-size: 40px;
55+
margin: 0 0 0 0;
56+
position: relative;
57+
top: 2em;
58+
}
4359
44-
.name{
60+
[slot="title"] {
4561
font-weight: normal;
4662
font-size: 40px;
47-
padding-top: 2em;
63+
margin: 0 0 0 0;
64+
position: relative;
65+
top: 2.2em;
4866
}
4967
50-
.title{
68+
[slot="email"] {
5169
font-weight: normal;
5270
font-size: 25px;
53-
padding-top: 1em;
71+
color: black;
72+
margin: 0 0 0 0;
73+
position: relative;
74+
top: 3.2em;
5475
}
5576
56-
.coordinates {
57-
color: black;
77+
[slot="url"] {
78+
font-weight: normal;
5879
font-size: 25px;
59-
padding-top: 0.5em;
80+
padding-top: 0em;
81+
color: black;
82+
margin: 0 0 0 0;
83+
position: relative;
84+
top: 5.5em;
6085
}
6186
6287
.logo {
63-
height: 8%;
88+
height: 10%;
6489
float: left;
6590
margin-left: 10px;
66-
margin-top: -20px;
91+
margin-top: -10px;
6792
position: absolute;
6893
}
94+
95+
.page {
96+
margin: 0in;
97+
}
98+
```
99+
100+
```{r include=FALSE, eval=FALSE}
101+
setwd("YOUR_DIRECTORY")
102+
pagedown::chrome_print("name_tags_GROUP.Rmd")
69103
```

R_code/name_tags/name_tags_committee.Rmd

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)