Skip to content

Commit 3f56e72

Browse files
committed
consolidate references
1 parent 35a208f commit 3f56e72

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

combined.docx

11.3 MB
Binary file not shown.

generate_combined.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/zsh
2+
# Shell script to convert source files into a MS-Word
3+
# document. Most of the heavy lifting done by pandoc:
4+
# https://pandoc.org
5+
# Last tested with v3.1.
6+
#
7+
# Equation, Figure, and Table numbering/cross references
8+
# handled by pandoc-crossref:
9+
# https://lierdakil.github.io/pandoc-crossref/#citeproc-and-pandoc-crossref
10+
# Last tested with v0.3.15.1.
11+
12+
# Cleanup markdown before passing to pandoc
13+
# - missing italics for genes and QS systems
14+
# - unicode glyphs to markdown subscripts
15+
# - GitHub-friendly subscripts/superscripts to real markdown
16+
17+
cat paper.md supporting.md | sed \
18+
-e 's/ lasB/ _lasB_/g' \
19+
-e 's/ lasI/ _lasI_/g' \
20+
-e 's/ lasR/ _lasR_/g' \
21+
-e 's/ rhlI/ _rhlI_/g' \
22+
-e 's/ rhlR/ _rhlR_/g' \
23+
-e 's/ las/ _las_/g' \
24+
-e 's/ rhl/ _rhl_/g' \
25+
-e 's/C₄‑HSL/C~4~‑HSL/g' \
26+
-e 's/3‑oxo‑C₁₂‑HSL/3‑oxo‑C~12~‑HSL/g' \
27+
-e 's/<\/\{0,1\}sub>/~/g' \
28+
-e 's/<\/\{0,1\}sup>/^/g' \
29+
| pandoc \
30+
--from markdown \
31+
--filter pandoc-crossref \
32+
--citeproc \
33+
--csl plos-biology.csl \
34+
--bibliography "Bibliography (BibTeX).bib" \
35+
--reference-doc=reference.docx \
36+
--output "combined.docx"

supporting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Table: rhlr {#tbl:rhlr}
6767

6868
Gene expression data for *lasI,* *rhlI,* and *lasB* was collected every hour for a 24-hour period. Observations used for analysis were limited to a two-hour window that contained the peak expression level for each gene. Figures S[-@fig:lasi_time], S[-@fig:rhli_time], and S[-@fig:lasb_time] show the full time course of expression levels and highlight the intervals used for analysis. Those windows were 8–10 hours, 3–5 hours, and 4–6 hours for *lasI,* *rhlI,* and *lasB,* respectively.
6969

70-
![lasi_time](Figures/figs1_lasi_time.svg){#fig:lasi_time}
70+
![lasi_time](Figures/figs1_lasi_time.svg){#fig:lasi_time number=1}
7171

7272
<div custom-style="Caption"><p>
7373
**Figure S[-@fig:lasi_time]. Expression level of _lasI_ over time course of experiment.** Shaded regions highlight peak expression and indicate two-hour period used in analysis. (The data underlying this Figure and the code used to analyze it can be found in https://doi.org/10.5281/zenodo.15808353.)

0 commit comments

Comments
 (0)